motion-music 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/Gemfile +8 -0
- data/Guardfile +6 -0
- data/LICENSE +23 -0
- data/README.md +53 -0
- data/doc/Gemfile.html +111 -0
- data/doc/Gemfile_lock.html +168 -0
- data/doc/Guardfile.html +111 -0
- data/doc/LICENSE.html +124 -0
- data/doc/Object.html +116 -0
- data/doc/RBMusic.html +164 -0
- data/doc/RBMusic/Interval.html +440 -0
- data/doc/RBMusic/Note.html +620 -0
- data/doc/RBMusic/NoteSet.html +277 -0
- data/doc/RBMusic/Scale.html +274 -0
- data/doc/README_md.html +163 -0
- data/doc/created.rid +8 -0
- data/doc/fonts.css +167 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +93 -0
- data/doc/js/darkfish.js +140 -0
- data/doc/js/jquery.js +18 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/searcher.js +228 -0
- data/doc/projections_json.html +115 -0
- data/doc/rb-music_gemspec.html +132 -0
- data/doc/rdoc.css +580 -0
- data/doc/table_of_contents.html +192 -0
- data/lib/motion-music.rb +9 -0
- data/lib/motion-music/version.rb +3 -0
- data/lib/rb-music.rb +8 -0
- data/lib/rb-music/constants.rb +105 -0
- data/lib/rb-music/interval.rb +50 -0
- data/lib/rb-music/note.rb +107 -0
- data/lib/rb-music/note_set.rb +61 -0
- data/lib/rb-music/scale.rb +30 -0
- data/lib/rb-music/version.rb +3 -0
- data/motion-music.gemspec +20 -0
- data/projections.json +12 -0
- data/rb-music.gemspec +29 -0
- data/spec/rb-music/constants_spec.rb +27 -0
- data/spec/rb-music/interval_spec.rb +90 -0
- data/spec/rb-music/note_set_spec.rb +191 -0
- data/spec/rb-music/note_spec.rb +318 -0
- data/spec/rb-music/scale_spec.rb +88 -0
- data/spec/spec_helper.rb +14 -0
- metadata +124 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 094729e2a46ad2b43f4d8b8b0c338edfbd4bee59
|
4
|
+
data.tar.gz: 19375779d9273b6c47b6ca4cf65a258c7a1f5d74
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e09bce196aae68f8041997f0384bb9db2972b9fbffb2eee993f62d3768fdb74972f7723caaaaf67bc63e1d2f45deb8ab1083c4ab3e1d4ab61494a9e9cd724ede
|
7
|
+
data.tar.gz: d67de9fe8046c265c128f40ba1373d48af557388aefc781a4f3c41c1ac1ce8a70175e5b0dba8b7d03ce43b7edbbabbf868d2c47cb3033255c0b3b1873f195462
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
guard "rspec", cmd: "rspec --color --tag focus", run_all: { cmd: "foo bard" } do
|
2
|
+
watch("spec/spec_helper.rb") { "spec" }
|
3
|
+
watch(%r{^spec/.+_spec\.rb$}) { "spec" }
|
4
|
+
watch(%r{^lib/(.+)\.rb$}) { "spec" }
|
5
|
+
# watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
6
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
LICENSE
|
2
|
+
|
3
|
+
The MIT License
|
4
|
+
|
5
|
+
Copyright (c) 2014 Mark Wise
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
9
|
+
in the Software without restriction, including without limitation the rights
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
12
|
+
furnished to do so, subject to the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be included in
|
15
|
+
all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# rb-music
|
2
|
+
|
3
|
+
**rb-music** is a Ruby gem for working with musical notes, scales and intervals. It is basically a direct port of the wonderful [music.js](https://github.com/gregjopa/music.js) library by Greg Jopa.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
In your Gemfile:
|
8
|
+
|
9
|
+
```
|
10
|
+
gem 'rb-music', git: 'https://github.com/mwise/rb-music', branch: 'master'
|
11
|
+
```
|
12
|
+
|
13
|
+
In your Ruby code:
|
14
|
+
|
15
|
+
```
|
16
|
+
require 'rb-music'
|
17
|
+
```
|
18
|
+
|
19
|
+
## Overview
|
20
|
+
|
21
|
+
### Note
|
22
|
+
|
23
|
+
`Note.from_latin(name)`: Note by latin name and octave
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
n = Note.from_latin('A4'); # single note
|
27
|
+
n.frequency # 440
|
28
|
+
n.latin # "A"
|
29
|
+
n.octave # 4
|
30
|
+
n.midi_note_number # 69
|
31
|
+
|
32
|
+
n = Note.from_latin('C4') # base note for scale
|
33
|
+
n.scale('major') # NoteSet built from the given note and scale
|
34
|
+
```
|
35
|
+
|
36
|
+
### Interval
|
37
|
+
|
38
|
+
`Interval.from_name(name)`: Interval by name
|
39
|
+
|
40
|
+
`Interval.from_semitones(num)`: Interval by semitones
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
Interval.from_name('fifth') # define by name
|
44
|
+
whole_step = Interval.from_semitones(2) # define by # of semitones
|
45
|
+
|
46
|
+
c = Note.from_latin('C3')
|
47
|
+
|
48
|
+
# use intervals to transpose notes
|
49
|
+
d = c.add(whole_step)
|
50
|
+
|
51
|
+
# use intervals to define chords
|
52
|
+
cmaj = c.add(['unison','major third','fifth'])
|
53
|
+
```
|
data/doc/Gemfile.html
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Gemfile - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link href="./fonts.css" rel="stylesheet">
|
10
|
+
<link href="./rdoc.css" rel="stylesheet">
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
var rdoc_rel_prefix = "./";
|
14
|
+
</script>
|
15
|
+
|
16
|
+
<script src="./js/jquery.js"></script>
|
17
|
+
<script src="./js/navigation.js"></script>
|
18
|
+
<script src="./js/search_index.js"></script>
|
19
|
+
<script src="./js/search.js"></script>
|
20
|
+
<script src="./js/searcher.js"></script>
|
21
|
+
<script src="./js/darkfish.js"></script>
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="file">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="project-metadata">
|
59
|
+
<div id="fileindex-section" class="nav-section">
|
60
|
+
<h3>Pages</h3>
|
61
|
+
|
62
|
+
<ul class="link-list">
|
63
|
+
|
64
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
65
|
+
|
66
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
67
|
+
|
68
|
+
<li><a href="./Guardfile.html">Guardfile</a>
|
69
|
+
|
70
|
+
<li><a href="./LICENSE.html">LICENSE</a>
|
71
|
+
|
72
|
+
<li><a href="./README_md.html">README</a>
|
73
|
+
|
74
|
+
<li><a href="./coverage/assets/0_8_0/application_css.html">application.css</a>
|
75
|
+
|
76
|
+
<li><a href="./coverage/assets/0_8_0/application_js.html">application.js</a>
|
77
|
+
|
78
|
+
<li><a href="./coverage/index_html.html">index.html</a>
|
79
|
+
|
80
|
+
<li><a href="./projections_json.html">projections.json</a>
|
81
|
+
|
82
|
+
<li><a href="./rb-music_gemspec.html">rb-music.gemspec</a>
|
83
|
+
|
84
|
+
</ul>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
</nav>
|
89
|
+
|
90
|
+
<main role="main" aria-label="Page Gemfile">
|
91
|
+
|
92
|
+
<p>source '<a href="https://rubygems.org">rubygems.org</a>'</p>
|
93
|
+
|
94
|
+
<p>group :development do</p>
|
95
|
+
|
96
|
+
<pre>gem "rspec"
|
97
|
+
gem "rake"
|
98
|
+
gem "simplecov"
|
99
|
+
gem "guard-rspec"</pre>
|
100
|
+
|
101
|
+
<p>end</p>
|
102
|
+
</main>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<footer id="validator-badges" role="contentinfo">
|
107
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
108
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
|
109
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
110
|
+
</footer>
|
111
|
+
|
@@ -0,0 +1,168 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Gemfile.lock - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link href="./fonts.css" rel="stylesheet">
|
10
|
+
<link href="./rdoc.css" rel="stylesheet">
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
var rdoc_rel_prefix = "./";
|
14
|
+
</script>
|
15
|
+
|
16
|
+
<script src="./js/jquery.js"></script>
|
17
|
+
<script src="./js/navigation.js"></script>
|
18
|
+
<script src="./js/search_index.js"></script>
|
19
|
+
<script src="./js/search.js"></script>
|
20
|
+
<script src="./js/searcher.js"></script>
|
21
|
+
<script src="./js/darkfish.js"></script>
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="file">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="project-metadata">
|
59
|
+
<div id="fileindex-section" class="nav-section">
|
60
|
+
<h3>Pages</h3>
|
61
|
+
|
62
|
+
<ul class="link-list">
|
63
|
+
|
64
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
65
|
+
|
66
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
67
|
+
|
68
|
+
<li><a href="./Guardfile.html">Guardfile</a>
|
69
|
+
|
70
|
+
<li><a href="./LICENSE.html">LICENSE</a>
|
71
|
+
|
72
|
+
<li><a href="./README_md.html">README</a>
|
73
|
+
|
74
|
+
<li><a href="./coverage/assets/0_8_0/application_css.html">application.css</a>
|
75
|
+
|
76
|
+
<li><a href="./coverage/assets/0_8_0/application_js.html">application.js</a>
|
77
|
+
|
78
|
+
<li><a href="./coverage/index_html.html">index.html</a>
|
79
|
+
|
80
|
+
<li><a href="./projections_json.html">projections.json</a>
|
81
|
+
|
82
|
+
<li><a href="./rb-music_gemspec.html">rb-music.gemspec</a>
|
83
|
+
|
84
|
+
</ul>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
</nav>
|
89
|
+
|
90
|
+
<main role="main" aria-label="Page Gemfile.lock">
|
91
|
+
|
92
|
+
<p>GEM</p>
|
93
|
+
|
94
|
+
<pre>remote: https://rubygems.org/
|
95
|
+
specs:
|
96
|
+
celluloid (0.15.2)
|
97
|
+
timers (~> 1.1.0)
|
98
|
+
celluloid-io (0.15.0)
|
99
|
+
celluloid (>= 0.15.0)
|
100
|
+
nio4r (>= 0.5.0)
|
101
|
+
coderay (1.1.0)
|
102
|
+
diff-lcs (1.2.5)
|
103
|
+
docile (1.1.3)
|
104
|
+
ffi (1.9.3)
|
105
|
+
formatador (0.2.4)
|
106
|
+
guard (2.6.1)
|
107
|
+
formatador (>= 0.2.4)
|
108
|
+
listen (~> 2.7)
|
109
|
+
lumberjack (~> 1.0)
|
110
|
+
pry (>= 0.9.12)
|
111
|
+
thor (>= 0.18.1)
|
112
|
+
guard-rspec (4.2.8)
|
113
|
+
guard (~> 2.1)
|
114
|
+
rspec (>= 2.14, < 4.0)
|
115
|
+
listen (2.7.4)
|
116
|
+
celluloid (>= 0.15.2)
|
117
|
+
celluloid-io (>= 0.15.0)
|
118
|
+
rb-fsevent (>= 0.9.3)
|
119
|
+
rb-inotify (>= 0.9)
|
120
|
+
lumberjack (1.0.5)
|
121
|
+
method_source (0.8.2)
|
122
|
+
multi_json (1.10.0)
|
123
|
+
nio4r (1.0.0)
|
124
|
+
pry (0.9.12.6)
|
125
|
+
coderay (~> 1.0)
|
126
|
+
method_source (~> 0.8)
|
127
|
+
slop (~> 3.4)
|
128
|
+
rake (10.3.1)
|
129
|
+
rb-fsevent (0.9.4)
|
130
|
+
rb-inotify (0.9.4)
|
131
|
+
ffi (>= 0.5.0)
|
132
|
+
rspec (2.14.1)
|
133
|
+
rspec-core (~> 2.14.0)
|
134
|
+
rspec-expectations (~> 2.14.0)
|
135
|
+
rspec-mocks (~> 2.14.0)
|
136
|
+
rspec-core (2.14.8)
|
137
|
+
rspec-expectations (2.14.5)
|
138
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
139
|
+
rspec-mocks (2.14.6)
|
140
|
+
simplecov (0.8.2)
|
141
|
+
docile (~> 1.1.0)
|
142
|
+
multi_json
|
143
|
+
simplecov-html (~> 0.8.0)
|
144
|
+
simplecov-html (0.8.0)
|
145
|
+
slop (3.5.0)
|
146
|
+
thor (0.19.1)
|
147
|
+
timers (1.1.0)</pre>
|
148
|
+
|
149
|
+
<p>PLATFORMS</p>
|
150
|
+
|
151
|
+
<pre>ruby</pre>
|
152
|
+
|
153
|
+
<p>DEPENDENCIES</p>
|
154
|
+
|
155
|
+
<pre>guard-rspec
|
156
|
+
rake
|
157
|
+
rspec
|
158
|
+
simplecov</pre>
|
159
|
+
</main>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<footer id="validator-badges" role="contentinfo">
|
164
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
165
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
|
166
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
167
|
+
</footer>
|
168
|
+
|
data/doc/Guardfile.html
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Guardfile - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<link href="./fonts.css" rel="stylesheet">
|
10
|
+
<link href="./rdoc.css" rel="stylesheet">
|
11
|
+
|
12
|
+
<script type="text/javascript">
|
13
|
+
var rdoc_rel_prefix = "./";
|
14
|
+
</script>
|
15
|
+
|
16
|
+
<script src="./js/jquery.js"></script>
|
17
|
+
<script src="./js/navigation.js"></script>
|
18
|
+
<script src="./js/search_index.js"></script>
|
19
|
+
<script src="./js/search.js"></script>
|
20
|
+
<script src="./js/searcher.js"></script>
|
21
|
+
<script src="./js/darkfish.js"></script>
|
22
|
+
|
23
|
+
|
24
|
+
<body id="top" role="document" class="file">
|
25
|
+
<nav role="navigation">
|
26
|
+
<div id="project-navigation">
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
28
|
+
<h2>
|
29
|
+
<a href="./index.html" rel="home">Home</a>
|
30
|
+
</h2>
|
31
|
+
|
32
|
+
<div id="table-of-contents-navigation">
|
33
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
34
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
35
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
41
|
+
<div id="search-field-wrapper">
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
+
</div>
|
47
|
+
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
49
|
+
aria-busy="false" aria-expanded="false"
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
51
|
+
</form>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
</div>
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
<div id="project-metadata">
|
59
|
+
<div id="fileindex-section" class="nav-section">
|
60
|
+
<h3>Pages</h3>
|
61
|
+
|
62
|
+
<ul class="link-list">
|
63
|
+
|
64
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
65
|
+
|
66
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
67
|
+
|
68
|
+
<li><a href="./Guardfile.html">Guardfile</a>
|
69
|
+
|
70
|
+
<li><a href="./LICENSE.html">LICENSE</a>
|
71
|
+
|
72
|
+
<li><a href="./README_md.html">README</a>
|
73
|
+
|
74
|
+
<li><a href="./coverage/assets/0_8_0/application_css.html">application.css</a>
|
75
|
+
|
76
|
+
<li><a href="./coverage/assets/0_8_0/application_js.html">application.js</a>
|
77
|
+
|
78
|
+
<li><a href="./coverage/index_html.html">index.html</a>
|
79
|
+
|
80
|
+
<li><a href="./projections_json.html">projections.json</a>
|
81
|
+
|
82
|
+
<li><a href="./rb-music_gemspec.html">rb-music.gemspec</a>
|
83
|
+
|
84
|
+
</ul>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
</div>
|
88
|
+
</nav>
|
89
|
+
|
90
|
+
<main role="main" aria-label="Page Guardfile">
|
91
|
+
|
92
|
+
<p>guard “rspec”, cmd: “rspec –color –tag focus”, run_all: { cmd: “foo bard” }
|
93
|
+
do</p>
|
94
|
+
|
95
|
+
<pre class="ruby"><span class="ruby-identifier">watch</span>(<span class="ruby-string">"spec/spec_helper.rb"</span>) { <span class="ruby-string">"spec"</span> }
|
96
|
+
<span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/.+_spec\.rb$}</span>) { <span class="ruby-string">"spec"</span> }
|
97
|
+
<span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^lib/(.+)\.rb$}</span>) { <span class="ruby-string">"spec"</span> }
|
98
|
+
<span class="ruby-comment"># watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }</span>
|
99
|
+
</pre>
|
100
|
+
|
101
|
+
<p>end</p>
|
102
|
+
</main>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<footer id="validator-badges" role="contentinfo">
|
107
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
108
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
|
109
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
110
|
+
</footer>
|
111
|
+
|