mirror of
https://github.com/PeterCamilleri/fOOrth
synced 2024-09-28 03:20:28 +02:00
Cleanup build env more like bundler would do it.
This commit is contained in:
parent
296f6cbcf6
commit
27eb21729d
6 changed files with 47 additions and 119 deletions
19
.gitignore
vendored
19
.gitignore
vendored
|
@ -1,5 +1,20 @@
|
|||
rdoc/
|
||||
*.bat
|
||||
*.gem
|
||||
*.zip
|
||||
*.tmp
|
||||
*.gem
|
||||
*.rbc
|
||||
.bundle
|
||||
.config
|
||||
.yardoc
|
||||
Gemfile.lock
|
||||
InstalledFiles
|
||||
_yardoc
|
||||
coverage
|
||||
doc/
|
||||
lib/bundler/man
|
||||
pkg
|
||||
rdoc
|
||||
spec/reports
|
||||
test/tmp
|
||||
test/version_tmp
|
||||
tmp
|
||||
|
|
4
Gemfile
Normal file
4
Gemfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
# Specify your gem's dependencies in fOOrth.gemspec
|
||||
gemspec
|
|
@ -1,51 +1,33 @@
|
|||
# coding: utf-8
|
||||
|
||||
#Specify the building of the fOOrth gem.
|
||||
|
||||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require 'fOOrth/version'
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = "fOOrth"
|
||||
s.summary = "FNF == fOOrth is Not FORTH."
|
||||
s.description = "An Object Oriented FORTHesque language gem."
|
||||
s.version = '0.6.0'
|
||||
s.version = XfOOrth::VERSION
|
||||
s.author = ["Peter Camilleri"]
|
||||
s.email = "peter.c.camilleri@gmail.com"
|
||||
s.homepage = "http://teuthida-technologies.com/"
|
||||
s.platform = Gem::Platform::RUBY
|
||||
s.required_ruby_version = '>=1.9.3'
|
||||
|
||||
s.add_development_dependency "bundler", "~> 1.3"
|
||||
s.add_development_dependency 'rake'
|
||||
s.add_development_dependency 'reek'
|
||||
s.add_development_dependency 'minitest'
|
||||
s.add_development_dependency 'rdoc', "~> 4.0"
|
||||
|
||||
s.files = ['lib/foorth.rb']
|
||||
s.files += Dir['lib/foorth/*.rb']
|
||||
s.files += Dir['lib/foorth/monkey_patch/*.rb']
|
||||
s.files += Dir['lib/foorth/core/*.rb']
|
||||
s.files += Dir['lib/foorth/interpreter/*.rb']
|
||||
s.files += Dir['lib/foorth/compiler/*.rb']
|
||||
|
||||
s.files += Dir['tests/*.rb']
|
||||
s.files += Dir['tests/monkey_patch/*.rb']
|
||||
s.files += Dir['tests/interpreter/*.rb']
|
||||
s.files += Dir['tests/compiler/*.rb']
|
||||
s.files += Dir['tests/compiler/*.txt']
|
||||
|
||||
s.files += Dir['integration/*.rb']
|
||||
s.files += Dir['integration/support/*.rb']
|
||||
|
||||
s.files += ['rakefile.rb',
|
||||
'sire.rb',
|
||||
'license.txt',
|
||||
'readme.txt',
|
||||
'reek.txt']
|
||||
|
||||
s.files = `git ls-files`.split($/)
|
||||
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
||||
s.extra_rdoc_files = ['license.txt']
|
||||
|
||||
s.test_files = Dir['tests/*.rb']
|
||||
s.test_files += Dir['tests/monkey_patch/*.rb']
|
||||
s.test_files += Dir['tests/interpreter/*.rb']
|
||||
s.test_files += Dir['tests/compiler/*.rb']
|
||||
s.test_files += Dir['tests/compiler/*.txt']
|
||||
|
||||
s.license = 'MIT'
|
||||
s.has_rdoc = true
|
||||
s.require_path = 'lib'
|
||||
s.require_paths = ["lib"]
|
||||
end
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
# The fOOrth Language System implemented via a Ruby gem.
|
||||
|
||||
require_relative 'fOOrth/version'
|
||||
require_relative 'fOOrth/exceptions'
|
||||
require_relative 'fOOrth/display_abort'
|
||||
require_relative 'fOOrth/monkey_patch'
|
||||
|
@ -24,7 +25,7 @@ module XfOOrth
|
|||
#<br>Returns
|
||||
#* A version string; <major>.<minor>.<step>
|
||||
def self.version
|
||||
"00.00.00"
|
||||
VERSION
|
||||
end
|
||||
|
||||
#The virtual machine is the heart of the fOOrth language system that is
|
||||
|
|
8
lib/fOOrth/version.rb
Normal file
8
lib/fOOrth/version.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
# coding: utf-8
|
||||
|
||||
#* version.rb - The version string for fOOrth.
|
||||
|
||||
module XfOOrth
|
||||
#The version string for fOOrth.
|
||||
VERSION = "0.0.1"
|
||||
end
|
90
rakefile.rb
90
rakefile.rb
|
@ -3,72 +3,14 @@
|
|||
|
||||
require 'rake/testtask'
|
||||
require 'rdoc/task'
|
||||
require "bundler/gem_tasks"
|
||||
|
||||
#Generate internal documentation with rdoc.
|
||||
RDoc::Task.new do |rdoc|
|
||||
rdoc.rdoc_dir = "rdoc"
|
||||
|
||||
#List out all the files to be documented.
|
||||
rdoc.rdoc_files = ["lib/fOOrth.rb",
|
||||
|
||||
"lib/fOOrth/main.rb",
|
||||
"lib/fOOrth/initialize.rb",
|
||||
"lib/fOOrth/exceptions.rb",
|
||||
"lib/fOOrth/display_abort.rb",
|
||||
"lib/fOOrth/symbol_map.rb",
|
||||
|
||||
"lib/fOOrth/core.rb",
|
||||
"lib/fOOrth/core/core_access.rb",
|
||||
"lib/fOOrth/core/object.rb",
|
||||
"lib/fOOrth/core/class.rb",
|
||||
"lib/fOOrth/core/virtual_machine.rb",
|
||||
"lib/fOOrth/core/exclusive.rb",
|
||||
"lib/fOOrth/core/shared.rb",
|
||||
"lib/fOOrth/core/shared_cache.rb",
|
||||
"lib/fOOrth/core/method_missing.rb",
|
||||
"lib/fOOrth/core/proxy_method_missing.rb",
|
||||
|
||||
"lib/fOOrth/library.rb",
|
||||
"lib/fOOrth/library/object_library.rb",
|
||||
"lib/fOOrth/library/class_library.rb",
|
||||
"lib/fOOrth/library/vm_library.rb",
|
||||
"lib/fOOrth/library/compile_library.rb",
|
||||
"lib/fOOrth/library/standard_library.rb",
|
||||
"lib/fOOrth/library/ctrl_struct_library.rb",
|
||||
"lib/fOOrth/library/stdio_library.rb",
|
||||
"lib/fOOrth/library/numeric_library.rb",
|
||||
"lib/fOOrth/library/string_library.rb",
|
||||
"lib/fOOrth/library/other_value_types_library.rb",
|
||||
"lib/fOOrth/library/command_library.rb",
|
||||
|
||||
"lib/fOOrth/interpreter.rb",
|
||||
"lib/fOOrth/interpreter/data_stack.rb",
|
||||
"lib/fOOrth/interpreter/ctrl_stack.rb",
|
||||
|
||||
"lib/fOOrth/compiler.rb",
|
||||
"lib/fOOrth/compiler/read_point.rb",
|
||||
"lib/fOOrth/compiler/console.rb",
|
||||
"lib/fOOrth/compiler/source.rb",
|
||||
"lib/fOOrth/compiler/string_source.rb",
|
||||
"lib/fOOrth/compiler/file_source.rb",
|
||||
"lib/fOOrth/compiler/process.rb",
|
||||
"lib/fOOrth/compiler/parser.rb",
|
||||
"lib/fOOrth/compiler/token.rb",
|
||||
"lib/fOOrth/compiler/context.rb",
|
||||
"lib/fOOrth/compiler/word_specs.rb",
|
||||
"lib/fOOrth/compiler/modes.rb",
|
||||
|
||||
"lib/fOOrth/monkey_patch.rb",
|
||||
"lib/fOOrth/monkey_patch/object.rb",
|
||||
"lib/fOOrth/monkey_patch/numeric.rb",
|
||||
"lib/fOOrth/monkey_patch/rational.rb",
|
||||
"lib/fOOrth/monkey_patch/complex.rb",
|
||||
"lib/fOOrth/monkey_patch/string.rb",
|
||||
"lib/fOOrth/monkey_patch/array.rb",
|
||||
"lib/fOOrth/monkey_patch/hash.rb",
|
||||
|
||||
"license.txt",
|
||||
"readme.txt"]
|
||||
rdoc.rdoc_files.include("lib/**/*.rb", "license.txt", "readme.txt")
|
||||
|
||||
#Make all access levels visible.
|
||||
rdoc.options << '--visibility' << 'private'
|
||||
|
@ -81,38 +23,14 @@ end
|
|||
#Run the fOOrth unit test suite.
|
||||
Rake::TestTask.new do |t|
|
||||
#List out all the test files.
|
||||
t.test_files = ["tests/monkey_patch/object_test.rb",
|
||||
"tests/monkey_patch/rational_test.rb",
|
||||
"tests/monkey_patch/numeric_test.rb",
|
||||
"tests/monkey_patch/complex_test.rb",
|
||||
"tests/monkey_patch/string_test.rb",
|
||||
"tests/monkey_patch/array_test.rb",
|
||||
"tests/monkey_patch/hash_test.rb",
|
||||
"tests/interpreter/data_stack_tests.rb",
|
||||
"tests/interpreter/ctrl_stack_tests.rb",
|
||||
"tests/compiler/string_source_tests.rb",
|
||||
"tests/compiler/file_source_tests.rb",
|
||||
"tests/compiler/parser_tests.rb",
|
||||
"tests/compiler/context_tests.rb",
|
||||
"tests/symbol_map_tests.rb",
|
||||
"tests/core_tests.rb"
|
||||
]
|
||||
|
||||
t.test_files = FileList['tests/**/*.rb']
|
||||
t.verbose = false
|
||||
end
|
||||
|
||||
#Run the fOOrth integration test suite.
|
||||
Rake::TestTask.new(:integration) do |t|
|
||||
#List out all the test files.
|
||||
t.test_files = ["integration/object_library_tests.rb",
|
||||
"integration/class_library_tests.rb",
|
||||
"integration/vm_library_tests.rb",
|
||||
"integration/standard_library_tests.rb",
|
||||
"integration/ctrl_struct_library_tests.rb",
|
||||
"integration/compile_library_tests.rb",
|
||||
"integration/stdio_library_tests.rb"
|
||||
]
|
||||
|
||||
t.test_files = FileList['integration/**/*.rb']
|
||||
t.verbose = false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue