song_pro 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/song_pro/song.rb +12 -0
- data/lib/song_pro/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5b9d169304e009b8c9876b13232d4d04304943598b0bbb92835c2661a777313
|
4
|
+
data.tar.gz: 415a129826227cd2a1a714dcb2c3cbdbf20064a51bc62598db79292b190fc5c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4d6365fdfcf86dd304ab76ac04b23168eb4650324b6aa858a8885ac538dd507b719be2a209e346c9d47f2cd1c7874ea2ccfcaeabc02c3f9455d88e70c3ca8d7
|
7
|
+
data.tar.gz: 3f7a514db743c783750feecdd093e78ca1d86cd30840a04f41561261e329b47f46c816da6904a85e2be36c4fdd626dc10b0de4933d418b5dc7d95bdef8bb185e
|
data/Gemfile.lock
CHANGED
data/lib/song_pro/song.rb
CHANGED
@@ -24,6 +24,18 @@ module SongPro
|
|
24
24
|
@custom[key.to_sym] = value
|
25
25
|
end
|
26
26
|
|
27
|
+
def chords
|
28
|
+
sections.collect do |section|
|
29
|
+
section.lines.collect do |line|
|
30
|
+
if line.measures?
|
31
|
+
line.measures.collect(&:chords)
|
32
|
+
else
|
33
|
+
line.parts.collect(&:chord)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end.flatten.uniq.reject(&:empty?)
|
37
|
+
end
|
38
|
+
|
27
39
|
def to_html
|
28
40
|
mab = Markaby::Builder.new(song: self)
|
29
41
|
mab.div.song do
|
data/lib/song_pro/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: song_pro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Kelly
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05
|
11
|
+
date: 2019-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: markaby
|