music 0.6.2 → 0.8.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 233bb144abfc81d9816b2136296a16c25a33b72a23c571d3e010fd947c8d8dda
4
+ data.tar.gz: 0ac2263fd0357000ee6c2a804bf6d44d5c37036b65403e36d5d066e8f521fe99
5
+ SHA512:
6
+ metadata.gz: 42e298406270084a5d7b0f544c699b94d1354c1b8751e4e910cb4a69ddf1c373e2288531520ae59f4987fb6527a5c2e7c8a32f1cfd1ef8c0c5f79582bc77e3bd
7
+ data.tar.gz: 2fc2e7fdb4f756f11cb20799434a5676f2f6506bfa155a1c5e419a41dfc9c5bf701fd29cf5b32605b01a356e9627140da49629a70d9ff13a8f5eea8152b8dc2a
data/.rubocop.yml ADDED
@@ -0,0 +1,72 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+
4
+
5
+ #---------------------------
6
+ # Style configuration
7
+ #---------------------------
8
+
9
+ # Cop supports --auto-correct.
10
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
11
+ Style/HashSyntax:
12
+ Enabled: true
13
+ EnforcedStyle: ruby19
14
+
15
+ # Cop supports --auto-correct.
16
+ Style/SpaceInsideHashLiteralBraces:
17
+ Enabled: true
18
+ EnforcedStyle: no_space
19
+
20
+ # I think this one is broken...
21
+ Style/FileName:
22
+ Enabled: false
23
+
24
+ #---------------------------
25
+ # Don't intend to fix these:
26
+ #---------------------------
27
+
28
+ # Cop supports --auto-correct.
29
+ # Reason: Double spaces can be useful for grouping code
30
+ Style/EmptyLines:
31
+ Enabled: false
32
+
33
+ # Cop supports --auto-correct.
34
+ # Reason: I have very big opinions on this one. See:
35
+ # https://github.com/bbatsov/ruby-style-guide/issues/329
36
+ # https://github.com/bbatsov/ruby-style-guide/pull/325
37
+ Style/NegatedIf:
38
+ Enabled: false
39
+
40
+ # Cop supports --auto-correct.
41
+ # Reason: I'm fine either way on this, but could maybe be convinced that this should be enforced
42
+ Style/Not:
43
+ Enabled: false
44
+
45
+ # Cop supports --auto-correct.
46
+ # Reason: I'm fine with this
47
+ Style/PerlBackrefs:
48
+ Enabled: false
49
+
50
+ # Configuration parameters: Methods.
51
+ # Reason: We should be able to specify full variable names, even if it's only one line
52
+ Style/SingleLineBlockParams:
53
+ Enabled: false
54
+
55
+ # Reason: Switched `extend self` to `module_function` in id_property.rb but that caused errors
56
+ Style/ModuleFunction:
57
+ Enabled: false
58
+
59
+ # Configuration parameters: AllowSafeAssignment.
60
+ # Reason: I'm a proud user of assignment in conditionals.
61
+ Lint/AssignmentInCondition:
62
+ Enabled: false
63
+
64
+ # Reason: Fine with any sort of lambda syntax
65
+ Style/Lambda:
66
+ Enabled: false
67
+
68
+ # Reason: I'm proud to be part of the double negative Ruby tradition
69
+ Style/DoubleNegation:
70
+ Enabled: false
71
+
72
+
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,47 @@
1
+ # This configuration was generated by `rubocop --auto-gen-config`
2
+ # on 2015-01-19 01:03:42 +0200 using RuboCop version 0.28.0.
3
+ # The point is for the user to remove these configuration records
4
+ # one by one as the offenses are removed from the code base.
5
+ # Note that changes in the inspected code, or installation of new
6
+ # versions of RuboCop, may require this file to be generated again.
7
+
8
+ # Offense count: 5
9
+ Metrics/AbcSize:
10
+ Max: 25
11
+
12
+ # Offense count: 1
13
+ # Configuration parameters: CountComments.
14
+ Metrics/ClassLength:
15
+ Max: 232
16
+
17
+ # Offense count: 2
18
+ Metrics/CyclomaticComplexity:
19
+ Max: 10
20
+
21
+ # Offense count: 53
22
+ # Configuration parameters: AllowURI, URISchemes.
23
+ Metrics/LineLength:
24
+ Max: 141
25
+
26
+ # Offense count: 4
27
+ # Configuration parameters: CountComments.
28
+ Metrics/MethodLength:
29
+ Max: 25
30
+
31
+ # Offense count: 1
32
+ Metrics/PerceivedComplexity:
33
+ Max: 9
34
+
35
+ # Offense count: 3
36
+ Style/Documentation:
37
+ Enabled: false
38
+
39
+ # Offense count: 2
40
+ # Configuration parameters: MinBodyLength.
41
+ Style/GuardClause:
42
+ Enabled: false
43
+
44
+ # Offense count: 29
45
+ # Cop supports --auto-correct.
46
+ Style/RedundantSelf:
47
+ Enabled: false
data/.travis.yml CHANGED
@@ -1,9 +1,9 @@
1
+ script:
2
+ - "bundle exec rubocop"
1
3
  language: ruby
2
4
  rvm:
3
- - 1.8.7
4
- - 1.9.2
5
5
  - 1.9.3
6
- - jruby-18mode # JRuby in 1.8 mode
6
+ - 2.0.0
7
+ - 2.1.4
8
+ - 2.2.0
7
9
  - jruby-19mode # JRuby in 1.9 mode
8
- - rbx-18mode
9
- - rbx-19mode
data/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+
11
+ ## [0.8.0] - 2022-11-27
12
+
13
+ ### Added
14
+
15
+ - Support for parsing enharmonic notes such as 'E#5' (#9, thanks @stufro)
data/Gemfile CHANGED
@@ -1,8 +1,15 @@
1
- source "http://rubygems.org"
1
+ source 'http://rubygems.org'
2
2
  gemspec
3
3
 
4
4
  group :development do
5
5
  gem 'guard-bundler'
6
6
  gem 'guard-rspec'
7
+ gem 'guard-rubocop'
7
8
  gem 'rb-fsevent', '~> 0.9.1'
8
9
  end
10
+
11
+ platforms :rbx do
12
+ gem 'racc'
13
+ gem 'rubysl', '~> 2.0'
14
+ gem 'psych'
15
+ end
data/Gemfile.lock CHANGED
@@ -1,61 +1,300 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- music (0.5.1)
4
+ music (0.7.0)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- activemodel (3.2.3)
10
- activesupport (= 3.2.3)
11
- builder (~> 3.0.0)
12
- activesupport (3.2.3)
13
- i18n (~> 0.6)
14
- multi_json (~> 1.0)
15
- builder (3.0.0)
16
- coderay (1.0.8)
17
- diff-lcs (1.1.3)
18
- guard (1.5.3)
19
- listen (>= 0.4.2)
20
- lumberjack (>= 1.0.2)
21
- pry (>= 0.9.10)
22
- thor (>= 0.14.6)
23
- guard-bundler (1.0.0)
9
+ ast (2.0.0)
10
+ astrolabe (1.3.0)
11
+ parser (>= 2.2.0.pre.3, < 3.0)
12
+ celluloid (0.16.0)
13
+ timers (~> 4.0.0)
14
+ coderay (1.1.0)
15
+ diff-lcs (1.2.5)
16
+ ffi (1.9.6)
17
+ ffi2-generators (0.1.1)
18
+ formatador (0.2.5)
19
+ guard (2.11.1)
20
+ formatador (>= 0.2.4)
21
+ listen (~> 2.7)
22
+ lumberjack (~> 1.0)
23
+ nenv (~> 0.1)
24
+ notiffany (~> 0.0)
25
+ pry (>= 0.9.12)
26
+ shellany (~> 0.0)
27
+ thor (>= 0.18.1)
28
+ guard-bundler (2.1.0)
24
29
  bundler (~> 1.0)
25
- guard (~> 1.1)
26
- guard-rspec (1.2.1)
27
- guard (>= 1.1)
28
- i18n (0.6.0)
29
- listen (0.5.3)
30
- lumberjack (1.0.2)
31
- method_source (0.8.1)
32
- multi_json (1.3.5)
33
- pry (0.9.10)
34
- coderay (~> 1.0.5)
35
- method_source (~> 0.8)
36
- slop (~> 3.3.1)
37
- rake (0.9.2.2)
38
- rb-fsevent (0.9.2)
39
- rspec (2.10.0)
40
- rspec-core (~> 2.10.0)
41
- rspec-expectations (~> 2.10.0)
42
- rspec-mocks (~> 2.10.0)
43
- rspec-core (2.10.0)
44
- rspec-expectations (2.10.0)
45
- diff-lcs (~> 1.1.3)
46
- rspec-mocks (2.10.1)
47
- slop (3.3.3)
48
- thor (0.16.0)
30
+ guard (~> 2.2)
31
+ guard-compat (~> 1.1)
32
+ guard-compat (1.2.1)
33
+ guard-rspec (4.5.0)
34
+ guard (~> 2.1)
35
+ guard-compat (~> 1.1)
36
+ rspec (>= 2.99.0, < 4.0)
37
+ guard-rubocop (1.2.0)
38
+ guard (~> 2.0)
39
+ rubocop (~> 0.20)
40
+ hitimes (1.2.2)
41
+ listen (2.8.5)
42
+ celluloid (>= 0.15.2)
43
+ rb-fsevent (>= 0.9.3)
44
+ rb-inotify (>= 0.9)
45
+ lumberjack (1.0.9)
46
+ method_source (0.8.2)
47
+ nenv (0.2.0)
48
+ notiffany (0.0.3)
49
+ nenv (~> 0.1)
50
+ shellany (~> 0.0)
51
+ parser (2.2.0.2)
52
+ ast (>= 1.1, < 3.0)
53
+ powerpack (0.0.9)
54
+ pry (0.10.1)
55
+ coderay (~> 1.1.0)
56
+ method_source (~> 0.8.1)
57
+ slop (~> 3.4)
58
+ psych (2.0.10)
59
+ racc (1.4.12)
60
+ rainbow (2.0.0)
61
+ rake (0.9.6)
62
+ rb-fsevent (0.9.4)
63
+ rb-inotify (0.9.5)
64
+ ffi (>= 0.5.0)
65
+ rb-readline (0.5.2)
66
+ rspec (2.99.0)
67
+ rspec-core (~> 2.99.0)
68
+ rspec-expectations (~> 2.99.0)
69
+ rspec-mocks (~> 2.99.0)
70
+ rspec-core (2.99.2)
71
+ rspec-expectations (2.99.2)
72
+ diff-lcs (>= 1.1.3, < 2.0)
73
+ rspec-mocks (2.99.3)
74
+ rubocop (0.28.0)
75
+ astrolabe (~> 1.3)
76
+ parser (>= 2.2.0.pre.7, < 3.0)
77
+ powerpack (~> 0.0.6)
78
+ rainbow (>= 1.99.1, < 3.0)
79
+ ruby-progressbar (~> 1.4)
80
+ ruby-progressbar (1.7.1)
81
+ rubysl (2.1.0)
82
+ rubysl-abbrev (~> 2.0)
83
+ rubysl-base64 (~> 2.0)
84
+ rubysl-benchmark (~> 2.0)
85
+ rubysl-bigdecimal (~> 2.0)
86
+ rubysl-cgi (~> 2.0)
87
+ rubysl-cgi-session (~> 2.0)
88
+ rubysl-cmath (~> 2.0)
89
+ rubysl-complex (~> 2.0)
90
+ rubysl-continuation (~> 2.0)
91
+ rubysl-coverage (~> 2.0)
92
+ rubysl-csv (~> 2.0)
93
+ rubysl-curses (~> 2.0)
94
+ rubysl-date (~> 2.0)
95
+ rubysl-delegate (~> 2.0)
96
+ rubysl-digest (~> 2.0)
97
+ rubysl-drb (~> 2.0)
98
+ rubysl-e2mmap (~> 2.0)
99
+ rubysl-english (~> 2.0)
100
+ rubysl-enumerator (~> 2.0)
101
+ rubysl-erb (~> 2.0)
102
+ rubysl-etc (~> 2.0)
103
+ rubysl-expect (~> 2.0)
104
+ rubysl-fcntl (~> 2.0)
105
+ rubysl-fiber (~> 2.0)
106
+ rubysl-fileutils (~> 2.0)
107
+ rubysl-find (~> 2.0)
108
+ rubysl-forwardable (~> 2.0)
109
+ rubysl-getoptlong (~> 2.0)
110
+ rubysl-gserver (~> 2.0)
111
+ rubysl-io-console (~> 2.0)
112
+ rubysl-io-nonblock (~> 2.0)
113
+ rubysl-io-wait (~> 2.0)
114
+ rubysl-ipaddr (~> 2.0)
115
+ rubysl-irb (~> 2.1)
116
+ rubysl-logger (~> 2.0)
117
+ rubysl-mathn (~> 2.0)
118
+ rubysl-matrix (~> 2.0)
119
+ rubysl-mkmf (~> 2.0)
120
+ rubysl-monitor (~> 2.0)
121
+ rubysl-mutex_m (~> 2.0)
122
+ rubysl-net-ftp (~> 2.0)
123
+ rubysl-net-http (~> 2.0)
124
+ rubysl-net-imap (~> 2.0)
125
+ rubysl-net-pop (~> 2.0)
126
+ rubysl-net-protocol (~> 2.0)
127
+ rubysl-net-smtp (~> 2.0)
128
+ rubysl-net-telnet (~> 2.0)
129
+ rubysl-nkf (~> 2.0)
130
+ rubysl-observer (~> 2.0)
131
+ rubysl-open-uri (~> 2.0)
132
+ rubysl-open3 (~> 2.0)
133
+ rubysl-openssl (~> 2.0)
134
+ rubysl-optparse (~> 2.0)
135
+ rubysl-ostruct (~> 2.0)
136
+ rubysl-pathname (~> 2.0)
137
+ rubysl-prettyprint (~> 2.0)
138
+ rubysl-prime (~> 2.0)
139
+ rubysl-profile (~> 2.0)
140
+ rubysl-profiler (~> 2.0)
141
+ rubysl-pstore (~> 2.0)
142
+ rubysl-pty (~> 2.0)
143
+ rubysl-rational (~> 2.0)
144
+ rubysl-resolv (~> 2.0)
145
+ rubysl-rexml (~> 2.0)
146
+ rubysl-rinda (~> 2.0)
147
+ rubysl-rss (~> 2.0)
148
+ rubysl-scanf (~> 2.0)
149
+ rubysl-securerandom (~> 2.0)
150
+ rubysl-set (~> 2.0)
151
+ rubysl-shellwords (~> 2.0)
152
+ rubysl-singleton (~> 2.0)
153
+ rubysl-socket (~> 2.0)
154
+ rubysl-stringio (~> 2.0)
155
+ rubysl-strscan (~> 2.0)
156
+ rubysl-sync (~> 2.0)
157
+ rubysl-syslog (~> 2.0)
158
+ rubysl-tempfile (~> 2.0)
159
+ rubysl-thread (~> 2.0)
160
+ rubysl-thwait (~> 2.0)
161
+ rubysl-time (~> 2.0)
162
+ rubysl-timeout (~> 2.0)
163
+ rubysl-tmpdir (~> 2.0)
164
+ rubysl-tsort (~> 2.0)
165
+ rubysl-un (~> 2.0)
166
+ rubysl-uri (~> 2.0)
167
+ rubysl-weakref (~> 2.0)
168
+ rubysl-webrick (~> 2.0)
169
+ rubysl-xmlrpc (~> 2.0)
170
+ rubysl-yaml (~> 2.0)
171
+ rubysl-zlib (~> 2.0)
172
+ rubysl-abbrev (2.0.4)
173
+ rubysl-base64 (2.0.0)
174
+ rubysl-benchmark (2.0.1)
175
+ rubysl-bigdecimal (2.0.2)
176
+ rubysl-cgi (2.0.1)
177
+ rubysl-cgi-session (2.0.1)
178
+ rubysl-cmath (2.0.0)
179
+ rubysl-complex (2.0.0)
180
+ rubysl-continuation (2.0.0)
181
+ rubysl-coverage (2.0.3)
182
+ rubysl-csv (2.0.2)
183
+ rubysl-english (~> 2.0)
184
+ rubysl-curses (2.0.1)
185
+ rubysl-date (2.0.8)
186
+ rubysl-delegate (2.0.1)
187
+ rubysl-digest (2.0.3)
188
+ rubysl-drb (2.0.1)
189
+ rubysl-e2mmap (2.0.0)
190
+ rubysl-english (2.0.0)
191
+ rubysl-enumerator (2.0.0)
192
+ rubysl-erb (2.0.2)
193
+ rubysl-etc (2.0.3)
194
+ ffi2-generators (~> 0.1)
195
+ rubysl-expect (2.0.0)
196
+ rubysl-fcntl (2.0.4)
197
+ ffi2-generators (~> 0.1)
198
+ rubysl-fiber (2.0.0)
199
+ rubysl-fileutils (2.0.3)
200
+ rubysl-find (2.0.1)
201
+ rubysl-forwardable (2.0.1)
202
+ rubysl-getoptlong (2.0.0)
203
+ rubysl-gserver (2.0.0)
204
+ rubysl-socket (~> 2.0)
205
+ rubysl-thread (~> 2.0)
206
+ rubysl-io-console (2.0.0)
207
+ rubysl-io-nonblock (2.0.0)
208
+ rubysl-io-wait (2.0.0)
209
+ rubysl-ipaddr (2.0.0)
210
+ rubysl-irb (2.1.0)
211
+ rb-readline (~> 0.5)
212
+ rubysl-e2mmap (~> 2.0)
213
+ rubysl-mathn (~> 2.0)
214
+ rubysl-thread (~> 2.0)
215
+ rubysl-logger (2.1.0)
216
+ rubysl-mathn (2.0.0)
217
+ rubysl-matrix (2.1.0)
218
+ rubysl-e2mmap (~> 2.0)
219
+ rubysl-mkmf (2.0.1)
220
+ rubysl-fileutils (~> 2.0)
221
+ rubysl-shellwords (~> 2.0)
222
+ rubysl-monitor (2.0.0)
223
+ rubysl-mutex_m (2.0.0)
224
+ rubysl-net-ftp (2.0.1)
225
+ rubysl-net-http (2.0.4)
226
+ rubysl-cgi (~> 2.0)
227
+ rubysl-erb (~> 2.0)
228
+ rubysl-singleton (~> 2.0)
229
+ rubysl-net-imap (2.0.1)
230
+ rubysl-net-pop (2.0.1)
231
+ rubysl-net-protocol (2.0.1)
232
+ rubysl-net-smtp (2.0.1)
233
+ rubysl-net-telnet (2.0.0)
234
+ rubysl-nkf (2.0.1)
235
+ rubysl-observer (2.0.0)
236
+ rubysl-open-uri (2.0.0)
237
+ rubysl-open3 (2.0.0)
238
+ rubysl-openssl (2.2.1)
239
+ rubysl-optparse (2.0.1)
240
+ rubysl-shellwords (~> 2.0)
241
+ rubysl-ostruct (2.0.4)
242
+ rubysl-pathname (2.1.0)
243
+ rubysl-prettyprint (2.0.3)
244
+ rubysl-prime (2.0.1)
245
+ rubysl-profile (2.0.0)
246
+ rubysl-profiler (2.0.1)
247
+ rubysl-pstore (2.0.0)
248
+ rubysl-pty (2.0.3)
249
+ rubysl-rational (2.0.1)
250
+ rubysl-resolv (2.1.0)
251
+ rubysl-rexml (2.0.4)
252
+ rubysl-rinda (2.0.1)
253
+ rubysl-rss (2.0.0)
254
+ rubysl-scanf (2.0.0)
255
+ rubysl-securerandom (2.0.0)
256
+ rubysl-set (2.0.1)
257
+ rubysl-shellwords (2.0.0)
258
+ rubysl-singleton (2.0.0)
259
+ rubysl-socket (2.0.1)
260
+ rubysl-stringio (2.0.0)
261
+ rubysl-strscan (2.0.0)
262
+ rubysl-sync (2.0.0)
263
+ rubysl-syslog (2.1.0)
264
+ ffi2-generators (~> 0.1)
265
+ rubysl-tempfile (2.0.1)
266
+ rubysl-thread (2.0.2)
267
+ rubysl-thwait (2.0.0)
268
+ rubysl-time (2.0.3)
269
+ rubysl-timeout (2.0.0)
270
+ rubysl-tmpdir (2.0.1)
271
+ rubysl-tsort (2.0.1)
272
+ rubysl-un (2.0.0)
273
+ rubysl-fileutils (~> 2.0)
274
+ rubysl-optparse (~> 2.0)
275
+ rubysl-uri (2.0.0)
276
+ rubysl-weakref (2.0.0)
277
+ rubysl-webrick (2.0.0)
278
+ rubysl-xmlrpc (2.0.0)
279
+ rubysl-yaml (2.1.0)
280
+ rubysl-zlib (2.0.1)
281
+ shellany (0.0.1)
282
+ slop (3.6.0)
283
+ thor (0.19.1)
284
+ timers (4.0.1)
285
+ hitimes
49
286
 
50
287
  PLATFORMS
51
288
  ruby
52
289
 
53
290
  DEPENDENCIES
54
- activemodel (>= 3.2.0)
55
- bundler (>= 1.1.3)
56
291
  guard-bundler
57
292
  guard-rspec
293
+ guard-rubocop
58
294
  music!
59
- rake (>= 0.9)
295
+ psych
296
+ racc
297
+ rake (~> 0.9)
60
298
  rb-fsevent (~> 0.9.1)
61
- rspec
299
+ rspec (~> 2)
300
+ rubysl (~> 2.0)
data/Guardfile CHANGED
@@ -1,29 +1,16 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
1
  guard 'bundler' do
5
2
  watch('Gemfile')
6
3
  # Uncomment next line if Gemfile contain `gemspec' command
7
4
  # watch(/^.+\.gemspec/)
8
5
  end
9
6
 
10
- guard 'rspec', :version => 2, :rvm => ['1.9.3', '1.8.7', 'rbx'] do
11
- watch(%r{^spec/.+_spec\.rb$})
12
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
13
- watch('spec/spec_helper.rb') { "spec" }
7
+ guard :rubocop, cli: '--auto-correct --display-cop-names' do
8
+ watch(/.+\.rb$/)
9
+ watch(/(?:.+\/)?\.rubocop.*\.yml$/) { |m| File.dirname(m[0]) }
10
+ end
14
11
 
15
- # Rails example
16
- watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
17
- watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
18
- watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
19
- watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
20
- watch('config/routes.rb') { "spec/routing" }
21
- watch('app/controllers/application_controller.rb') { "spec/controllers" }
22
-
23
- # Capybara request specs
24
- watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
25
-
26
- # Turnip features and steps
27
- watch(%r{^spec/acceptance/(.+)\.feature$})
28
- watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
12
+ guard :rspec, cmd: 'bundle exec rspec' do
13
+ watch(/^spec\/.+_spec\.rb$/)
14
+ watch(/^lib\/(.+)\.rb/) { |m| "spec/lib/#{m[1]}_spec.rb" }
15
+ watch('spec/spec_helper.rb') { 'spec' }
29
16
  end
data/README.md CHANGED
@@ -5,9 +5,13 @@ The *music* gem provides a means on calculating notes and chords.
5
5
 
6
6
  [![Build Status](https://travis-ci.org/cheerfulstoic/music.png)](https://travis-ci.org/cheerfulstoic/music)
7
7
 
8
+ [![PullReview stats](https://www.pullreview.com/github/cheerfulstoic/music/badges/master.svg?)](https://www.pullreview.com/github/cheerfulstoic/music/reviews/master)
9
+
8
10
  Examples:
9
11
  ---------
10
12
 
13
+ All examples below assume that `include Music` has been called, though you can also use `Music::Note`, `Music::Chord`, etc...
14
+
11
15
  Creating notes:
12
16
 
13
17
  note = Note.new(698.46) # Creates a note object with the frequency 698.46
data/Rakefile CHANGED
@@ -1,13 +1,13 @@
1
1
  require 'rake'
2
2
  require 'rspec/core/rake_task'
3
3
 
4
- task :default => [:spec]
4
+ task default: [:spec]
5
5
 
6
- desc "Run all test"
7
- task :test => [:spec]
6
+ desc 'Run all test'
7
+ task test: [:spec]
8
8
 
9
9
  # RSpec tasks
10
- desc "Run all examples"
10
+ desc 'Run all examples'
11
11
  RSpec::Core::RakeTask.new(:spec) do |spec|
12
12
  spec.ruby_opts = '-I lib'
13
13
  spec.pattern = 'spec/**/*_spec.rb'
@@ -15,11 +15,10 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
15
15
  end
16
16
 
17
17
  # Gems tasks
18
- require "bundler"
18
+ require 'bundler'
19
19
  Bundler::GemHelper.install_tasks
20
20
 
21
- desc "Clean automatically generated files"
21
+ desc 'Clean automatically generated files'
22
22
  task :clean do
23
- FileUtils.rm_rf "pkg"
23
+ FileUtils.rm_rf 'pkg'
24
24
  end
25
-