nendo 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/History.txt +13 -0
  2. data/Rakefile +18 -19
  3. data/VERSION.yml +1 -1
  4. data/lib/{debug → nendo/debug}/syslog.nnd +0 -0
  5. data/lib/{debug → nendo/debug}/syslog.nndc +8 -8
  6. data/lib/{init.nnd → nendo/init.nnd} +18 -16
  7. data/lib/{init.nndc → nendo/init.nndc} +4167 -4114
  8. data/lib/nendo/{experimental.nnd → nendo/experimental.nnd} +0 -0
  9. data/lib/nendo/{experimental.nndc → nendo/experimental.nndc} +805 -805
  10. data/lib/nendo/{test.nnd → nendo/test.nnd} +0 -0
  11. data/lib/nendo/{test.nndc → nendo/test.nndc} +285 -285
  12. data/lib/{rfc → nendo/rfc}/json.nnd +0 -0
  13. data/lib/{rfc → nendo/rfc}/json.nndc +98 -98
  14. data/lib/{ruby → nendo/ruby}/builtin_functions.rb +0 -0
  15. data/lib/{ruby → nendo/ruby}/core.rb +1 -1
  16. data/lib/{ruby → nendo/ruby}/evaluator.rb +0 -0
  17. data/lib/{ruby → nendo/ruby}/out_of_module.rb +0 -0
  18. data/lib/{ruby → nendo/ruby}/printer.rb +0 -0
  19. data/lib/{ruby → nendo/ruby}/reader.rb +0 -0
  20. data/lib/{ruby → nendo/ruby}/types.rb +0 -0
  21. data/lib/{srfi-1.nnd → nendo/srfi-1.nnd} +0 -0
  22. data/lib/{srfi-1.nndc → nendo/srfi-1.nndc} +2644 -2644
  23. data/lib/{srfi-2.nnd → nendo/srfi-2.nnd} +0 -0
  24. data/lib/{srfi-2.nndc → nendo/srfi-2.nndc} +141 -141
  25. data/lib/{srfi-26.nnd → nendo/srfi-26.nnd} +0 -0
  26. data/lib/{srfi-26.nndc → nendo/srfi-26.nndc} +409 -409
  27. data/lib/{text → nendo/text}/html-lite.nnd +0 -0
  28. data/lib/{text → nendo/text}/html-lite.nndc +393 -393
  29. data/lib/{text → nendo/text}/tree.nnd +0 -0
  30. data/lib/{text → nendo/text}/tree.nndc +32 -32
  31. data/lib/{util → nendo/util}/combinations.nnd +0 -0
  32. data/lib/{util → nendo/util}/combinations.nndc +942 -942
  33. data/lib/{util → nendo/util}/list.nnd +0 -0
  34. data/lib/{util → nendo/util}/list.nndc +735 -735
  35. data/lib/{util → nendo/util}/match.nnd +0 -0
  36. data/lib/{util → nendo/util}/match.nndc +10840 -10840
  37. data/lib/nendo.rb +7 -8
  38. metadata +42 -64
data/History.txt CHANGED
@@ -1,3 +1,16 @@
1
+ === 0.6.3 / 2012-02-18
2
+
3
+ * Removed gem dependency for `jeweler' and `ruby-prof'.
4
+
5
+ * Changed install path of library files written in nendo. like
6
+ *.nnd => nendo/*.nnd
7
+ debug/*.nnd => nendo/debug/*.nnd
8
+ nendo/*.nnd => nendo/nendo/*.nnd
9
+ rfc/*.nnd => nendo/rfc/*.nnd
10
+ text/*.nnd => nendo/text/*.nnd
11
+ util/*.nnd => nendo/util/*.nnd
12
+
13
+
1
14
  === 0.6.2 / 2012-02-10
2
15
 
3
16
  * Supported testable gem
data/Rakefile CHANGED
@@ -39,8 +39,6 @@ begin
39
39
  gemspec.add_dependency "rspec"
40
40
  gemspec.add_dependency "json"
41
41
  gemspec.add_dependency "rake"
42
- gemspec.add_development_dependency "jeweler"
43
- gemspec.add_development_dependency "ruby-prof"
44
42
  end
45
43
  rescue LoadError
46
44
  puts 'Jeweler not available. If you want to build a gemfile, please install with "sudo gem install jeweler"'
@@ -99,7 +97,7 @@ end
99
97
 
100
98
  task :compile do
101
99
  # Replace Version Number
102
- targetFile = "./lib/ruby/core.rb"
100
+ targetFile = "./lib/nendo/ruby/core.rb"
103
101
  vh = Jeweler::VersionHelper.new "."
104
102
  (original, modified) = open( targetFile ) {|f|
105
103
  lines = f.readlines
@@ -120,21 +118,22 @@ task :compile do
120
118
  end
121
119
 
122
120
  # Compile
123
- sh "/bin/rm -f ./lib/*.nndc* ./lib/**/*.nndc*"
121
+ sh "/bin/rm -f ./lib/nendo/*.nndc* ./lib/nendo/**/*.nndc*"
122
+ sh "ruby -rrbconfig -e 'p RbConfig::CONFIG[ \"vendor_dir\" ]'"
124
123
  files = []
125
- files << "./lib/init.nnd"
126
- files << "./lib/srfi-1.nnd"
127
- files << "./lib/srfi-2.nnd"
128
- files << "./lib/srfi-26.nnd"
129
- files << "./lib/util/list.nnd"
130
- files << "./lib/text/html-lite.nnd"
131
- files << "./lib/text/tree.nnd"
132
- files << "./lib/debug/syslog.nnd"
133
- files << "./lib/nendo/test.nnd"
134
- files << "./lib/rfc/json.nnd"
135
- files << "./lib/util/match.nnd"
136
- files << "./lib/util/combinations.nnd"
137
- files << "./lib/nendo/experimental.nnd"
124
+ files << "./lib/nendo/init.nnd"
125
+ files << "./lib/nendo/srfi-1.nnd"
126
+ files << "./lib/nendo/srfi-2.nnd"
127
+ files << "./lib/nendo/srfi-26.nnd"
128
+ files << "./lib/nendo/util/list.nnd"
129
+ files << "./lib/nendo/text/html-lite.nnd"
130
+ files << "./lib/nendo/text/tree.nnd"
131
+ files << "./lib/nendo/debug/syslog.nnd"
132
+ files << "./lib/nendo/nendo/test.nnd"
133
+ files << "./lib/nendo/rfc/json.nnd"
134
+ files << "./lib/nendo/util/match.nnd"
135
+ files << "./lib/nendo/util/combinations.nnd"
136
+ files << "./lib/nendo/nendo/experimental.nnd"
138
137
  files.each {|fn|
139
138
  sh sprintf( "time ruby -I ./lib ./bin/nendo -c %s > %s", fn, fn + "c" )
140
139
  }
@@ -147,7 +146,7 @@ task :bench do
147
146
  end
148
147
 
149
148
  task :clean_nndc do
150
- sh "/bin/rm -f ./lib/*.nndc* ./lib/**/*.nndc*"
149
+ sh "/bin/rm -f ./lib/**/*.nndc* ./lib/**/**/*.nndc*"
151
150
  end
152
151
 
153
152
  task :condition_clean do
@@ -157,5 +156,5 @@ task :condition_clean do
157
156
  end
158
157
 
159
158
  task :repl do
160
- sh "ruby -I ./lib ./bin/nendo"
159
+ sh "ruby -I ./lib -I ./lib/nendo ./bin/nendo"
161
160
  end
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 6
4
- :patch: 2
4
+ :patch: 3
File without changes
@@ -5,13 +5,13 @@
5
5
 
6
6
  trampCall(
7
7
  begin
8
- embedBacktraceInfo( "./lib/debug/syslog.nnd", 37 );
8
+ embedBacktraceInfo( "./lib/nendo/debug/syslog.nnd", 37 );
9
9
  delayCall( '_require', 'require',
10
10
  begin
11
11
  if @global_lisp_binding.has_key?('_require') then
12
12
  trampCall(@_require)
13
13
  else raise NameError.new( "Error: undefined variable _require", "_require" ) end
14
- rescue => __e ; __e.set_backtrace( ["./lib/debug/syslog.nnd:37"] + __e.backtrace ) ; raise __e
14
+ rescue => __e ; __e.set_backtrace( ["./lib/nendo/debug/syslog.nnd:37"] + __e.backtrace ) ; raise __e
15
15
  end ,
16
16
  [
17
17
  "syslog"
@@ -31,32 +31,32 @@ trampCall(
31
31
  begin
32
32
  trampCall(Syslog).open(
33
33
  )
34
- rescue => __e ; __e.set_backtrace( ["./lib/debug/syslog.nnd:40"] + __e.backtrace ) ; raise __e
34
+ rescue => __e ; __e.set_backtrace( ["./lib/nendo/debug/syslog.nnd:40"] + __e.backtrace ) ; raise __e
35
35
  end
36
36
  begin
37
37
  trampCall(Syslog).log(
38
38
  begin
39
39
  trampCall(Syslog::LOG_WARNING)
40
- rescue => __e ; __e.set_backtrace( ["./lib/debug/syslog.nnd:41"] + __e.backtrace ) ; raise __e
40
+ rescue => __e ; __e.set_backtrace( ["./lib/nendo/debug/syslog.nnd:41"] + __e.backtrace ) ; raise __e
41
41
  end ,
42
42
  "%s" ,
43
43
  begin
44
- embedBacktraceInfo( "./lib/debug/syslog.nnd", 41 );
44
+ embedBacktraceInfo( "./lib/nendo/debug/syslog.nnd", 41 );
45
45
  __PLMARK_ARGS2(
46
46
  "Nendo: " ,
47
47
  begin
48
48
  trampCall(_str)
49
- rescue => __e ; __e.set_backtrace( ["./lib/debug/syslog.nnd:41"] + __e.backtrace ) ; raise __e
49
+ rescue => __e ; __e.set_backtrace( ["./lib/nendo/debug/syslog.nnd:41"] + __e.backtrace ) ; raise __e
50
50
  end
51
51
  )
52
52
  end
53
53
  )
54
- rescue => __e ; __e.set_backtrace( ["./lib/debug/syslog.nnd:41"] + __e.backtrace ) ; raise __e
54
+ rescue => __e ; __e.set_backtrace( ["./lib/nendo/debug/syslog.nnd:41"] + __e.backtrace ) ; raise __e
55
55
  end
56
56
  begin
57
57
  trampCall(Syslog).close(
58
58
  )
59
- rescue => __e ; __e.set_backtrace( ["./lib/debug/syslog.nnd:42"] + __e.backtrace ) ; raise __e
59
+ rescue => __e ; __e.set_backtrace( ["./lib/nendo/debug/syslog.nnd:42"] + __e.backtrace ) ; raise __e
60
60
  end
61
61
  }
62
62
  )
@@ -1168,22 +1168,24 @@
1168
1168
  (define (load path)
1169
1169
  (if (rxmatch #/^([.]\/|[.][.]\/|\/)/ path)
1170
1170
  (%load path)
1171
- (let loop ((load-path *load-path*))
1172
- (cond ((null? load-path)
1173
- (errorf "Error: can't load file [%s]\n" path))
1174
- (else
1175
- (let1 full-path (+ (car load-path) "/" path)
1176
- (cond
1177
- ((File.exist? full-path)
1178
- (if (rxmatch #/[.]nndc$/ full-path)
1179
- (%load-compiled-code full-path)
1180
- (%load full-path)))
1181
- ((File.exist? (+ full-path ".nndc"))
1182
- (%load-compiled-code (+ full-path ".nndc")))
1183
- ((File.exist? (+ full-path ".nnd"))
1184
- (%load (+ full-path ".nnd")))
1185
- (else
1186
- (loop (cdr load-path))))))))))
1171
+ (let1 lp (append (map (lambda (x) (+ x "/nendo")) *load-path*)
1172
+ *load-path*)
1173
+ (let loop ((load-path lp))
1174
+ (cond ((null? load-path)
1175
+ (errorf "Error: can't load file [%s]\n" path))
1176
+ (else
1177
+ (let1 full-path (+ (car load-path) "/" path)
1178
+ (cond
1179
+ ((File.exist? full-path)
1180
+ (if (rxmatch #/[.]nndc$/ full-path)
1181
+ (%load-compiled-code full-path)
1182
+ (%load full-path)))
1183
+ ((File.exist? (+ full-path ".nndc"))
1184
+ (%load-compiled-code (+ full-path ".nndc")))
1185
+ ((File.exist? (+ full-path ".nnd"))
1186
+ (%load (+ full-path ".nnd")))
1187
+ (else
1188
+ (loop (cdr load-path)))))))))))
1187
1189
 
1188
1190
  (define (add-load-path path . afterp)
1189
1191
  (set! *load-path*