roborabb 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # History
2
2
 
3
+ ## 1.0.0 / 18 December 2011
4
+
5
+ * Use 1.9 stabby syntax for lambas rather than L alias (backwards incompatible)
6
+
3
7
  ## 0.0.1 / 10 December 2011
4
8
 
5
9
  * Initial release
data/README.md CHANGED
@@ -24,9 +24,9 @@ Then use it:
24
24
  unit: 8,
25
25
  time_signature: "4/4",
26
26
  notes: {
27
- hihat: L{|env| true },
28
- kick: L{|env| (env.subdivision + 0) % 4 == 0 },
29
- snare: L{|env| (env.subdivision + 2) % 4 == 0 },
27
+ hihat: ->(env) { true },
28
+ kick: ->(env) { (env.subdivision + 0) % 4 == 0 },
29
+ snare: ->(env) { (env.subdivision + 2) % 4 == 0 },
30
30
  }
31
31
  )
32
32
 
@@ -1,6 +1,5 @@
1
1
  require 'roborabb/version'
2
2
 
3
- require 'roborabb/core_ext'
4
3
  require 'roborabb/builder'
5
4
  require 'roborabb/lilypond'
6
5
 
@@ -1,3 +1,3 @@
1
1
  module Roborabb
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -8,9 +8,9 @@ describe 'outputting to lilypond' do
8
8
  unit: 8,
9
9
  time_signature: "4/4",
10
10
  notes: {
11
- hihat: L{|env| true },
12
- kick: L{|env| (env.subdivision + 0) % 4 == 0 },
13
- snare: L{|env| (env.subdivision + 2) % 4 == 0 },
11
+ hihat: ->(env) { true },
12
+ kick: ->(env) { (env.subdivision + 0) % 4 == 0 },
13
+ snare: ->(env) { (env.subdivision + 2) % 4 == 0 },
14
14
  }
15
15
  )
16
16
  ly = Roborabb::Lilypond.new(rabb, bars: 2)
@@ -50,7 +50,7 @@ describe Roborabb do
50
50
 
51
51
  it 'includes bar number in env yielded to config' do
52
52
  rabb = construct(
53
- subdivisions: L{|e| e.index + 1 },
53
+ subdivisions: ->(e) { e.index + 1 },
54
54
  notes: { a: 1 }
55
55
  )
56
56
 
@@ -64,7 +64,7 @@ describe Roborabb do
64
64
  it 'includes bar number in env yielded to notes' do
65
65
  rabb = construct(
66
66
  subdivisions: 2,
67
- notes: { a: L{|e| e.bar.index } }
67
+ notes: { a: ->(e) { e.bar.index } }
68
68
  )
69
69
 
70
70
  3.times.map { notes(rabb) }.should == [
@@ -85,7 +85,7 @@ describe Roborabb do
85
85
  end
86
86
 
87
87
  it 'includes generated unit in returned object' do
88
- rabb = construct(unit: L{|e| 8 })
88
+ rabb = construct(unit: ->(e) { 8 })
89
89
  rabb.next.unit.should == 8
90
90
  end
91
91
 
@@ -95,7 +95,7 @@ describe Roborabb do
95
95
  end
96
96
 
97
97
  it 'includes generated time_signature in returned object' do
98
- rabb = construct(time_signature: L{|e| "7/8" })
98
+ rabb = construct(time_signature: ->(e) { "7/8" })
99
99
  rabb.next.time_signature.should == "7/8"
100
100
  end
101
101
 
@@ -105,7 +105,7 @@ describe Roborabb do
105
105
  end
106
106
 
107
107
  it 'includes generated beat_structure in returned object' do
108
- rabb = construct(beat_structure: L{|e| [3, 2, 2] })
108
+ rabb = construct(beat_structure: ->(e) { [3, 2, 2] })
109
109
  rabb.next.beat_structure.should == [3, 2, 2]
110
110
  end
111
111
 
@@ -115,7 +115,7 @@ describe Roborabb do
115
115
  end
116
116
 
117
117
  it 'includes generated title in returned object' do
118
- rabb = construct(title: L{|e| "Hello" })
118
+ rabb = construct(title: ->(e) { "Hello" })
119
119
  rabb.next.title.should == "Hello"
120
120
  end
121
121
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roborabb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-11 00:00:00.000000000 Z
12
+ date: 2011-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2156657040 !ruby/object:Gem::Requirement
16
+ requirement: &2160544040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2156657040
24
+ version_requirements: *2160544040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &2156656460 !ruby/object:Gem::Requirement
27
+ requirement: &2160543380 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2156656460
35
+ version_requirements: *2160543380
36
36
  description: Algorithmically generate practice drum scores
37
37
  email:
38
38
  - hello@xaviershay.com
@@ -44,7 +44,6 @@ files:
44
44
  - spec/unit_spec.rb
45
45
  - lib/roborabb/bar.rb
46
46
  - lib/roborabb/builder.rb
47
- - lib/roborabb/core_ext.rb
48
47
  - lib/roborabb/lilypond.rb
49
48
  - lib/roborabb/version.rb
50
49
  - lib/roborabb.rb
@@ -1 +0,0 @@
1
- alias :L :lambda