razyk 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/razyk.gemspec CHANGED
@@ -1,76 +1,37 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{razyk}
8
- s.version = "0.0.1"
3
+ lib = File.expand_path("../lib", __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require "razyk/version"
9
6
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
+ Gem::Specification.new do |s|
8
+ s.name = "razyk"
9
+ s.version = RazyK::VERSION
11
10
  s.authors = ["nagachika"]
12
- s.date = %q{2010-11-20}
13
- s.default_executable = %q{razyk}
14
- s.description = %q{RazyK is a LazyK implementetion by pure ruby}
15
- s.email = %q{nagachika00@gmail.com}
11
+ s.email = ["nagachika@ruby-lang.org"]
12
+
13
+ s.summary = "pure ruby LazyK implementation"
14
+ s.description = "RazyK is a LazyK implementetion by pure ruby."
15
+ s.homepage = "http://github.com/nagachika/razyk"
16
+ s.license = "Ruby"
17
+
18
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ s.bindir = "bin"
16
20
  s.executables = ["razyk"]
17
- s.extra_rdoc_files = [
18
- "LICENSE",
19
- "README.rdoc"
20
- ]
21
- s.files = [
22
- ".document",
23
- ".rspec",
24
- "LICENSE",
25
- "README.rdoc",
26
- "Rakefile",
27
- "VERSION",
28
- "bin/razyk",
29
- "examples/lazier.scm",
30
- "examples/prelude.scm",
31
- "examples/prime.lazy",
32
- "examples/reverse.lazy",
33
- "examples/reverse.scm",
34
- "lib/razyk.rb",
35
- "lib/razyk/graph.rb",
36
- "lib/razyk/node.rb",
37
- "lib/razyk/parser.rb",
38
- "lib/razyk/parser.y",
39
- "lib/razyk/vm.rb",
40
- "lib/razyk/webapp.rb",
41
- "lib/razyk/webapp/templates/main.html",
42
- "razyk.gemspec",
43
- "spec/node_spec.rb",
44
- "spec/spec_helper.rb",
45
- "spec/vm_spec.rb"
46
- ]
47
- s.homepage = %q{http://github.com/nagachika/razyk}
48
21
  s.require_paths = ["lib"]
49
- s.rubygems_version = %q{1.3.7}
50
- s.summary = %q{pure ruby LazyK implementation}
51
- s.test_files = [
52
- "spec/node_spec.rb",
53
- "spec/spec_helper.rb",
54
- "spec/vm_spec.rb"
55
- ]
22
+ s.has_rdoc = false
23
+
24
+ s.required_ruby_version = ">= 2.0.0"
56
25
 
57
- if s.respond_to? :specification_version then
58
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
59
- s.specification_version = 3
26
+ s.add_runtime_dependency "ruby-graphviz"
27
+ s.add_runtime_dependency "rack"
60
28
 
61
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
62
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
63
- s.add_runtime_dependency(%q<rack>, [">= 0"])
64
- s.add_runtime_dependency(%q<ruby-graphviz>, [">= 0"])
65
- else
66
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
67
- s.add_dependency(%q<rack>, [">= 0"])
68
- s.add_dependency(%q<ruby-graphviz>, [">= 0"])
69
- end
70
- else
71
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
72
- s.add_dependency(%q<rack>, [">= 0"])
73
- s.add_dependency(%q<ruby-graphviz>, [">= 0"])
74
- end
29
+ s.add_development_dependency "bundler", "~> 1.10"
30
+ s.add_development_dependency "rake", "~> 10.0"
31
+ s.add_development_dependency "racc"
32
+ s.add_development_dependency "test-unit"
33
+ s.add_development_dependency "simplecov"
34
+ s.add_development_dependency "test-unit-power_assert"
35
+ s.add_development_dependency "pry"
75
36
  end
76
37
 
metadata CHANGED
@@ -1,130 +1,207 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: razyk
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 1
9
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - nagachika
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2010-11-20 00:00:00 +09:00
18
- default_executable: razyk
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: rspec
11
+ date: 2015-11-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ruby-graphviz
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
22
21
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
26
24
  - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 1
30
- - 2
31
- - 9
32
- version: 1.2.9
33
- type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
36
28
  name: rack
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
41
31
  - - ">="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- version: "0"
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
46
34
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: ruby-graphviz
50
35
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- none: false
53
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
54
38
  - - ">="
55
- - !ruby/object:Gem::Version
56
- segments:
57
- - 0
58
- version: "0"
59
- type: :runtime
60
- version_requirements: *id003
61
- description: RazyK is a LazyK implementetion by pure ruby
62
- email: nagachika00@gmail.com
63
- executables:
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: racc
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: test-unit
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: test-unit-power_assert
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: RazyK is a LazyK implementetion by pure ruby.
140
+ email:
141
+ - nagachika@ruby-lang.org
142
+ executables:
64
143
  - razyk
65
144
  extensions: []
66
-
67
- extra_rdoc_files:
68
- - LICENSE
69
- - README.rdoc
70
- files:
71
- - .document
72
- - .rspec
145
+ extra_rdoc_files: []
146
+ files:
147
+ - ".document"
148
+ - ".gitignore"
149
+ - ".rspec"
150
+ - Gemfile
151
+ - Gemfile.lock
73
152
  - LICENSE
74
153
  - README.rdoc
75
154
  - Rakefile
76
155
  - VERSION
77
156
  - bin/razyk
157
+ - examples/air_on_the_g_string.lazy
158
+ - examples/air_on_the_g_string.score
159
+ - examples/encoder.rb
160
+ - examples/hello_world.lazy
78
161
  - examples/lazier.scm
162
+ - examples/major_scale.lazy
163
+ - examples/minor_scale.lazy
79
164
  - examples/prelude.scm
80
165
  - examples/prime.lazy
81
166
  - examples/reverse.lazy
82
167
  - examples/reverse.scm
168
+ - examples/score2lazy.rb
83
169
  - lib/razyk.rb
170
+ - lib/razyk/application.rb
171
+ - lib/razyk/audio.rb
172
+ - lib/razyk/audio/player.rb
173
+ - lib/razyk/audio/port.rb
84
174
  - lib/razyk/graph.rb
85
175
  - lib/razyk/node.rb
86
176
  - lib/razyk/parser.rb
87
177
  - lib/razyk/parser.y
178
+ - lib/razyk/version.rb
88
179
  - lib/razyk/vm.rb
89
180
  - lib/razyk/webapp.rb
90
181
  - lib/razyk/webapp/templates/main.html
91
182
  - razyk.gemspec
92
- - spec/node_spec.rb
93
- - spec/spec_helper.rb
94
- - spec/vm_spec.rb
95
- has_rdoc: true
96
183
  homepage: http://github.com/nagachika/razyk
97
- licenses: []
98
-
184
+ licenses:
185
+ - Ruby
186
+ metadata: {}
99
187
  post_install_message:
100
188
  rdoc_options: []
101
-
102
- require_paths:
189
+ require_paths:
103
190
  - lib
104
- required_ruby_version: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
191
+ required_ruby_version: !ruby/object:Gem::Requirement
192
+ requirements:
107
193
  - - ">="
108
- - !ruby/object:Gem::Version
109
- segments:
110
- - 0
111
- version: "0"
112
- required_rubygems_version: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
194
+ - !ruby/object:Gem::Version
195
+ version: 2.0.0
196
+ required_rubygems_version: !ruby/object:Gem::Requirement
197
+ requirements:
115
198
  - - ">="
116
- - !ruby/object:Gem::Version
117
- segments:
118
- - 0
119
- version: "0"
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
120
201
  requirements: []
121
-
122
202
  rubyforge_project:
123
- rubygems_version: 1.3.7
203
+ rubygems_version: 2.4.5.1
124
204
  signing_key:
125
- specification_version: 3
205
+ specification_version: 4
126
206
  summary: pure ruby LazyK implementation
127
- test_files:
128
- - spec/node_spec.rb
129
- - spec/spec_helper.rb
130
- - spec/vm_spec.rb
207
+ test_files: []
data/spec/node_spec.rb DELETED
@@ -1,58 +0,0 @@
1
- # encoding: utf-8
2
-
3
- require_relative "spec_helper"
4
-
5
- require "razyk/node"
6
-
7
- include RazyK
8
-
9
- describe Combinator do
10
- it "should be created with label" do
11
- Combinator.new(:l).label.should == :l
12
- end
13
-
14
- it "#to_s return label string" do
15
- Combinator.new(:name).to_s.should == "name"
16
- end
17
- end
18
-
19
- describe Pair do
20
- it "should be created with two Combinator" do
21
- a = Combinator.new :a
22
- b = Combinator.new :b
23
- pair = Pair.new(a, b)
24
- pair.car.should == a
25
- pair.cdr.should == b
26
- pair.to_s.should == "(a b)"
27
- a.from.should == [pair]
28
- b.from.should == [pair]
29
- end
30
-
31
- it "#car= should replace car" do
32
- a = Combinator.new :a
33
- b = Combinator.new :b
34
- pair = Pair.new(a, b)
35
- c = Combinator.new :c
36
- pair.car = c
37
- pair.car.should == c
38
- pair.cdr.should == b
39
- a.from.should be_empty
40
- c.from.should == [pair]
41
- b.from.should == [pair]
42
- pair.to_s.should == "(c b)"
43
- end
44
-
45
- it "#cdr= should replace cdr" do
46
- a = Combinator.new :a
47
- b = Combinator.new :b
48
- pair = Pair.new(a, b)
49
- c = Combinator.new :c
50
- pair.cdr = c
51
- pair.car.should == a
52
- pair.cdr.should == c
53
- a.from.should == [pair]
54
- b.from.should be_empty
55
- c.from.should == [pair]
56
- pair.to_s.should == "(a c)"
57
- end
58
- end