nendo 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/benchmark/benchmark.nnd +27 -5
- data/lib/debug/syslog.nndc +24 -18
- data/lib/init.nnd +12 -28
- data/lib/init.nndc +18733 -14143
- data/lib/nendo/experimental.nnd +120 -0
- data/lib/nendo/experimental.nndc +1069 -0
- data/lib/nendo/test.nndc +1122 -879
- data/lib/nendo.rb +67 -16
- data/lib/rfc/json.nndc +486 -375
- data/lib/srfi-1.nndc +12775 -9853
- data/lib/srfi-2.nndc +810 -552
- data/lib/srfi-26.nndc +2615 -1838
- data/lib/text/html-lite.nndc +2286 -1737
- data/lib/text/tree.nndc +136 -103
- data/lib/util/combinations.nndc +4747 -3436
- data/lib/util/list.nndc +3417 -2355
- data/lib/util/match.nndc +53574 -36147
- data/test/nendo-util-test.nnd +318 -32
- data/test/nendo_spec.rb +65 -12
- data/test/rspec_formatter_for_emacs.rb +25 -0
- data/test/syntax_spec.rb +2 -0
- metadata +86 -12
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'rspec/core/formatters/progress_formatter'
|
2
|
+
|
3
|
+
# Example of a formatter with custom bactrace printing. Run me with:
|
4
|
+
# ruby bin/spec xxxxx.rb -r ./test/rspec_formatter_for_emacs.rb -f CustomFormatter
|
5
|
+
class CustomFormatter < RSpec::Core::Formatters::ProgressFormatter
|
6
|
+
def backtrace_line(line)
|
7
|
+
str = line.gsub(/([^:]*\.rb):([0-9]+):in /) do
|
8
|
+
path = "#{$1}"
|
9
|
+
lineno = "#{$2}"
|
10
|
+
if path.match( /lib/ ) and path.match( /rspec/ )
|
11
|
+
"#{File.expand_path(path)}:#{lineno} IN "
|
12
|
+
else
|
13
|
+
"#{File.expand_path(path)}:#{lineno}:in "
|
14
|
+
end
|
15
|
+
end
|
16
|
+
str
|
17
|
+
end
|
18
|
+
|
19
|
+
def dump_backtrace(example)
|
20
|
+
format_backtrace(example.execution_result[:exception].backtrace, example).each do |backtrace_info|
|
21
|
+
output.puts cyan(" #{backtrace_info}")
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
data/test/syntax_spec.rb
CHANGED
@@ -290,6 +290,7 @@ end
|
|
290
290
|
describe Nendo, "when use syntax-rules " do
|
291
291
|
before do
|
292
292
|
@nendo = Nendo::Core.new()
|
293
|
+
@nendo.setDisplayErrors( false )
|
293
294
|
@nendo.loadInitFile
|
294
295
|
end
|
295
296
|
it "should" do
|
@@ -382,6 +383,7 @@ end
|
|
382
383
|
describe Nendo, "When use let-syntax" do
|
383
384
|
before do
|
384
385
|
@nendo = Nendo::Core.new()
|
386
|
+
@nendo.setDisplayErrors( false )
|
385
387
|
@nendo.loadInitFile
|
386
388
|
end
|
387
389
|
it "should" do
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nendo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 13
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.3
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Kiyoka Nishiyama
|
@@ -14,22 +15,92 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-
|
18
|
-
default_executable: nendo
|
18
|
+
date: 2011-08-13 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rspec
|
22
|
-
prerelease: false
|
23
22
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
23
|
none: false
|
25
24
|
requirements:
|
26
25
|
- - ">="
|
27
26
|
- !ruby/object:Gem::Version
|
27
|
+
hash: 3
|
28
28
|
segments:
|
29
29
|
- 0
|
30
30
|
version: "0"
|
31
|
-
type: :
|
31
|
+
type: :runtime
|
32
|
+
prerelease: false
|
32
33
|
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: jeweler
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
hash: 3
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
version: "0"
|
45
|
+
type: :runtime
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: json
|
50
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
hash: 3
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
version: "0"
|
59
|
+
type: :runtime
|
60
|
+
prerelease: false
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake
|
64
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
hash: 3
|
70
|
+
segments:
|
71
|
+
- 0
|
72
|
+
version: "0"
|
73
|
+
type: :runtime
|
74
|
+
prerelease: false
|
75
|
+
version_requirements: *id004
|
76
|
+
- !ruby/object:Gem::Dependency
|
77
|
+
name: ruby-prof
|
78
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
hash: 3
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
version: "0"
|
87
|
+
type: :runtime
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: *id005
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: rspec
|
92
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
hash: 3
|
98
|
+
segments:
|
99
|
+
- 0
|
100
|
+
version: "0"
|
101
|
+
type: :development
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: *id006
|
33
104
|
description: Nendo is a programming language written in Ruby.
|
34
105
|
email: kiyoka@sumibi.org
|
35
106
|
executables:
|
@@ -66,6 +137,8 @@ files:
|
|
66
137
|
- lib/init.nnd
|
67
138
|
- lib/init.nndc
|
68
139
|
- lib/nendo.rb
|
140
|
+
- lib/nendo/experimental.nnd
|
141
|
+
- lib/nendo/experimental.nndc
|
69
142
|
- lib/nendo/test.nnd
|
70
143
|
- lib/nendo/test.nndc
|
71
144
|
- lib/rfc/json.nnd
|
@@ -90,6 +163,7 @@ files:
|
|
90
163
|
- test/match-test.nnd
|
91
164
|
- test/nendo-util-test.nnd
|
92
165
|
- test/nendo_spec.rb
|
166
|
+
- test/rspec_formatter_for_emacs.rb
|
93
167
|
- test/srfi-1-test.nnd
|
94
168
|
- test/srfi-2-test.nnd
|
95
169
|
- test/srfi-26-test.nnd
|
@@ -98,7 +172,6 @@ files:
|
|
98
172
|
- test/util-combinations-test.nnd
|
99
173
|
- test/util-list-test.nnd
|
100
174
|
- README
|
101
|
-
has_rdoc: true
|
102
175
|
homepage: http://github.com/kiyoka/nendo
|
103
176
|
licenses: []
|
104
177
|
|
@@ -112,6 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
185
|
requirements:
|
113
186
|
- - ">="
|
114
187
|
- !ruby/object:Gem::Version
|
188
|
+
hash: 3
|
115
189
|
segments:
|
116
190
|
- 0
|
117
191
|
version: "0"
|
@@ -120,16 +194,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
194
|
requirements:
|
121
195
|
- - ">="
|
122
196
|
- !ruby/object:Gem::Version
|
197
|
+
hash: 3
|
123
198
|
segments:
|
124
199
|
- 0
|
125
200
|
version: "0"
|
126
201
|
requirements: []
|
127
202
|
|
128
203
|
rubyforge_project:
|
129
|
-
rubygems_version: 1.
|
204
|
+
rubygems_version: 1.7.2
|
130
205
|
signing_key:
|
131
206
|
specification_version: 3
|
132
207
|
summary: Nendo is a dialect of Lisp.
|
133
|
-
test_files:
|
134
|
-
|
135
|
-
- test/syntax_spec.rb
|
208
|
+
test_files: []
|
209
|
+
|