nendo 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Rakefile +20 -18
- data/VERSION.yml +1 -1
- data/lib/nendo/init.nndc +269 -269
- data/lib/nendo/nendo/experimental.nnd +69 -1
- data/lib/nendo/nendo/experimental.nndc +1814 -933
- data/lib/nendo/nendo/test.nndc +16 -16
- data/lib/nendo/rfc/json.nndc +6 -6
- data/lib/nendo/ruby/builtin_functions.rb +2 -0
- data/lib/nendo/ruby/core.rb +1 -1
- data/lib/nendo/ruby/printer.rb +2 -0
- data/lib/nendo/srfi-1.nnd +20 -5
- data/lib/nendo/srfi-1.nndc +1814 -1706
- data/lib/nendo/srfi-2.nndc +154 -154
- data/lib/nendo/srfi-26.nndc +433 -433
- data/lib/nendo/text/html-lite.nndc +46 -46
- data/lib/nendo/util/combinations.nndc +213 -213
- data/lib/nendo/util/list.nndc +294 -294
- data/lib/nendo/util/match.nnd +1 -1
- data/lib/nendo/util/match.nndc +5724 -5724
- data/test/nendo-util-test.nnd +121 -0
- data/test/nendo_spec.rb +5 -0
- data/test/rspec_formatter_for_emacs.rb +1 -0
- metadata +66 -17
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
Nzk3MjcxOGM4OGYxOWMwYWIxMDBiNGZjZDg0OGYwNTNkNzcwZjA4Mg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MTU2Y2I0MzFkMjQ1YjU4OTdiYzFmMThhYjZjNWVlNzgyYWQ0OGE5Zg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZmMwOWIzZWUyYjA5NzJkYzM1NjQwODdlOWIwYTk3M2EwNzYxODhlYmY3YWY4
|
10
|
+
YzJkMzFiMTVmMmFjMWM0MjUzMTMzNWZmMzFkYzQ0Njg1MTM2NDBjMzE2NDRj
|
11
|
+
MzhhYmY0MjczMTcyYWM5NDM4YTVlMDMyZmRhZmYyZjgzNTdiYzg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NjA5MjZhY2VjMjExY2JlNTM2OTc1ZDllOWY2ZmIxNGNmMTIzNzkzZWI1ZTYx
|
14
|
+
OTcwZDlmMDdmMzkyYjcxOGZiMmNmOGQzYjRkZmExYTljMTYxNTg0MWZlNTA5
|
15
|
+
NTQ4MDQ0MjU3NjhmMjRiMjAxYjQ5ODEwMWJlMjEyZDY0NDFhYmU=
|
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# Rakefile for Nendo
|
3
3
|
# Release Engineering
|
4
4
|
# 1. edit the VERSION.yml file
|
5
|
-
# 2. rake compile && rake
|
5
|
+
# 2. rake compile && rake
|
6
6
|
# 3. rake gemspec && rake build
|
7
7
|
# to generate nendo-x.x.x.gem
|
8
8
|
# 4. install nendo-x.x.x.gem to clean environment and test
|
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
require 'rake'
|
13
13
|
begin
|
14
|
-
require '
|
14
|
+
require 'jeweler2'
|
15
15
|
Jeweler::Tasks.new do |gemspec|
|
16
16
|
gemspec.name = "nendo"
|
17
17
|
gemspec.summary = "Nendo is a dialect of Lisp."
|
@@ -38,12 +38,12 @@ begin
|
|
38
38
|
'emacs/*.el',
|
39
39
|
'benchmark/*.rb',
|
40
40
|
'benchmark/*.nnd'].to_a
|
41
|
-
gemspec.
|
41
|
+
gemspec.add_development_dependency "rspec"
|
42
|
+
gemspec.add_development_dependency "rake"
|
42
43
|
gemspec.add_dependency "json"
|
43
|
-
gemspec.add_dependency "rake"
|
44
44
|
end
|
45
45
|
rescue LoadError
|
46
|
-
puts '
|
46
|
+
puts 'Jeweler2 not available. If you want to build a gemfile, please install with "sudo gem install jeweler2"'
|
47
47
|
end
|
48
48
|
|
49
49
|
printf( "Info: NENDO_CLEAN_TEST is [%s]\n", ENV[ 'NENDO_CLEAN_TEST' ] )
|
@@ -55,30 +55,32 @@ task :test => [:test1, :test2] do
|
|
55
55
|
end
|
56
56
|
|
57
57
|
task :test1 do
|
58
|
-
sh "
|
59
|
-
sh "
|
60
|
-
sh "
|
61
|
-
sh "
|
58
|
+
sh "ruby -I ./lib `which rspec` -b ./test/nendo_spec.rb "
|
59
|
+
sh "ruby -I ./lib `which rspec` -b ./test/syntax_spec.rb "
|
60
|
+
sh "ruby -I ./lib `which rspec` -b ./test/testframework_spec.rb "
|
61
|
+
sh "ruby -I ./lib ./bin/nendo ./test/srfi-1-test.nnd"
|
62
62
|
end
|
63
63
|
|
64
64
|
task :test2 do
|
65
65
|
sh "/bin/rm -f test.record"
|
66
66
|
sh "echo "" > test.log"
|
67
|
-
sh "
|
68
|
-
sh "
|
69
|
-
sh "
|
70
|
-
sh "
|
71
|
-
sh "
|
72
|
-
sh "
|
67
|
+
sh "ruby -I ./lib ./bin/nendo ./test/textlib-test.nnd >> test.log"
|
68
|
+
sh "ruby -I ./lib ./bin/nendo ./test/nendo-util-test.nnd >> test.log"
|
69
|
+
sh "ruby -I ./lib ./bin/nendo ./test/json-test.nnd >> test.log"
|
70
|
+
sh "ruby -I ./lib ./bin/nendo ./test/srfi-2-test.nnd >> test.log"
|
71
|
+
sh "ruby -I ./lib ./bin/nendo ./test/srfi-26-test.nnd >> test.log"
|
72
|
+
sh "ruby -I ./lib ./bin/nendo ./test/util-list-test.nnd >> test.log"
|
73
73
|
sh "cat test.record"
|
74
|
+
sh "grep ' 0 failed, ' test.record > /dev/null"
|
74
75
|
end
|
75
76
|
|
76
77
|
task :test3 do
|
77
78
|
sh "/bin/rm -f test.record"
|
78
79
|
sh "echo "" > test3.log"
|
79
|
-
sh "
|
80
|
-
sh "
|
80
|
+
sh "ruby -I ./lib ./bin/nendo ./test/match-test.nnd | tee -a test3.log"
|
81
|
+
sh "ruby -I ./lib ./bin/nendo ./test/util-combinations-test.nnd | tee -a test3.log"
|
81
82
|
sh "cat test.record"
|
83
|
+
sh "grep ' 0 failed, ' test.record > /dev/null"
|
82
84
|
end
|
83
85
|
|
84
86
|
task :condition_test3 do
|
@@ -130,7 +132,7 @@ task :compile do
|
|
130
132
|
files << "./lib/nendo/util/combinations.nnd"
|
131
133
|
files << "./lib/nendo/nendo/experimental.nnd"
|
132
134
|
files.each {|fn|
|
133
|
-
sh sprintf( "
|
135
|
+
sh sprintf( "ruby -I ./lib ./bin/nendo -c %s > %s", fn, fn + "c" )
|
134
136
|
}
|
135
137
|
end
|
136
138
|
|
data/VERSION.yml
CHANGED