song_pro 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +7 -3
- data/.ruby-version +1 -1
- data/.tool-versions +1 -1
- data/Gemfile.lock +48 -34
- data/lib/song_pro/version.rb +1 -1
- data/lib/song_pro.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c06c0b9f50bce6995726f812e4472defeb00cb4b37af5e5498b043fa1c9ed8a1
|
4
|
+
data.tar.gz: 955eec40e9481a7de7e4b0a46369f7e8c717e1919d653ec8aeb2b90d3eed1db2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28b10e4bc6531745b33dd01b5cb59c48210e8bc1ba635e333232bf4ea5b89fb537c9b8ecc18e02509be429841dd4e8adcb66ccd85966e1e798264afe807b0b2e
|
7
|
+
data.tar.gz: 217c7f14d9b13d34b066886ae9f14d1ff0a92d5ccfe3fd699e0e63ce448586572a92da8ca2fc00f8446829cce7f01511c8f9e3bdb4166c220c6c3aadbcaf9e12
|
data/.github/workflows/build.yml
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
name: Build
|
2
2
|
|
3
|
-
on:
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ main ]
|
4
8
|
|
5
9
|
jobs:
|
6
10
|
test:
|
@@ -8,10 +12,10 @@ jobs:
|
|
8
12
|
|
9
13
|
strategy:
|
10
14
|
matrix:
|
11
|
-
ruby-version: [3.0, 3.1, 3.2]
|
15
|
+
ruby-version: [3.0, 3.1, 3.2, 3.3]
|
12
16
|
|
13
17
|
steps:
|
14
|
-
- uses: actions/checkout@
|
18
|
+
- uses: actions/checkout@v4
|
15
19
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
16
20
|
uses: ruby/setup-ruby@v1
|
17
21
|
with:
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.3.3
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 3.
|
1
|
+
ruby 3.3.3
|
data/Gemfile.lock
CHANGED
@@ -1,58 +1,72 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
song_pro (0.1.
|
4
|
+
song_pro (0.1.12)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ast (2.4.2)
|
10
|
-
diff-lcs (1.5.
|
11
|
-
json (2.
|
12
|
-
language_server-protocol (3.17.0.
|
13
|
-
|
14
|
-
|
10
|
+
diff-lcs (1.5.1)
|
11
|
+
json (2.7.2)
|
12
|
+
language_server-protocol (3.17.0.3)
|
13
|
+
lint_roller (1.1.0)
|
14
|
+
parallel (1.25.1)
|
15
|
+
parser (3.3.3.0)
|
15
16
|
ast (~> 2.4.1)
|
17
|
+
racc
|
18
|
+
racc (1.8.0)
|
16
19
|
rainbow (3.1.1)
|
17
|
-
rake (13.
|
18
|
-
regexp_parser (2.
|
19
|
-
rexml (3.
|
20
|
-
|
21
|
-
|
22
|
-
rspec-
|
23
|
-
rspec-
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
rake (13.2.1)
|
21
|
+
regexp_parser (2.9.2)
|
22
|
+
rexml (3.3.3)
|
23
|
+
strscan
|
24
|
+
rspec (3.13.0)
|
25
|
+
rspec-core (~> 3.13.0)
|
26
|
+
rspec-expectations (~> 3.13.0)
|
27
|
+
rspec-mocks (~> 3.13.0)
|
28
|
+
rspec-core (3.13.0)
|
29
|
+
rspec-support (~> 3.13.0)
|
30
|
+
rspec-expectations (3.13.1)
|
27
31
|
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
-
rspec-support (~> 3.
|
29
|
-
rspec-mocks (3.
|
32
|
+
rspec-support (~> 3.13.0)
|
33
|
+
rspec-mocks (3.13.1)
|
30
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
-
rspec-support (~> 3.
|
32
|
-
rspec-support (3.
|
33
|
-
rubocop (1.
|
35
|
+
rspec-support (~> 3.13.0)
|
36
|
+
rspec-support (3.13.1)
|
37
|
+
rubocop (1.64.1)
|
34
38
|
json (~> 2.3)
|
39
|
+
language_server-protocol (>= 3.17.0)
|
35
40
|
parallel (~> 1.10)
|
36
|
-
parser (>= 3.
|
41
|
+
parser (>= 3.3.0.2)
|
37
42
|
rainbow (>= 2.2.2, < 4.0)
|
38
43
|
regexp_parser (>= 1.8, < 3.0)
|
39
44
|
rexml (>= 3.2.5, < 4.0)
|
40
|
-
rubocop-ast (>= 1.
|
45
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
41
46
|
ruby-progressbar (~> 1.7)
|
42
|
-
unicode-display_width (>=
|
43
|
-
rubocop-ast (1.
|
44
|
-
parser (>= 3.
|
45
|
-
rubocop-performance (1.
|
46
|
-
rubocop (>= 1.
|
47
|
-
rubocop-ast (>=
|
48
|
-
ruby-progressbar (1.
|
49
|
-
standard (1.
|
47
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
48
|
+
rubocop-ast (1.31.3)
|
49
|
+
parser (>= 3.3.1.0)
|
50
|
+
rubocop-performance (1.21.0)
|
51
|
+
rubocop (>= 1.48.1, < 2.0)
|
52
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
53
|
+
ruby-progressbar (1.13.0)
|
54
|
+
standard (1.37.0)
|
50
55
|
language_server-protocol (~> 3.17.0.2)
|
51
|
-
|
52
|
-
rubocop
|
56
|
+
lint_roller (~> 1.0)
|
57
|
+
rubocop (~> 1.64.0)
|
58
|
+
standard-custom (~> 1.0.0)
|
59
|
+
standard-performance (~> 1.4)
|
60
|
+
standard-custom (1.0.2)
|
61
|
+
lint_roller (~> 1.0)
|
62
|
+
rubocop (~> 1.50)
|
63
|
+
standard-performance (1.4.0)
|
64
|
+
lint_roller (~> 1.1)
|
65
|
+
rubocop-performance (~> 1.21.0)
|
53
66
|
standardrb (1.0.1)
|
54
67
|
standard
|
55
|
-
|
68
|
+
strscan (3.1.0)
|
69
|
+
unicode-display_width (2.5.0)
|
56
70
|
|
57
71
|
PLATFORMS
|
58
72
|
ruby
|
data/lib/song_pro/version.rb
CHANGED
data/lib/song_pro.rb
CHANGED
@@ -16,6 +16,7 @@ module SongPro
|
|
16
16
|
MEASURES_REGEX = %r{([\[[\w#b/]+\]\s]+)[|]*}i
|
17
17
|
CHORDS_REGEX = %r{\[([\w#b+/]+)\]?}i
|
18
18
|
COMMENT_REGEX = />\s*([^$]*)/
|
19
|
+
TABLATURE_REGEX = /^\s?[a-zA-Z]?#?b?\|-/
|
19
20
|
|
20
21
|
def self.parse(lines)
|
21
22
|
song = Song.new
|
@@ -75,7 +76,7 @@ module SongPro
|
|
75
76
|
|
76
77
|
line = Line.new
|
77
78
|
|
78
|
-
if text.
|
79
|
+
if text.match(TABLATURE_REGEX)
|
79
80
|
line.tablature = text
|
80
81
|
elsif text.start_with?("| ")
|
81
82
|
captures = text.scan(MEASURES_REGEX).flatten
|
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.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Kelly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
rubygems_version: 3.5.
|
116
|
+
rubygems_version: 3.5.15
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Converts SongPro files to HTML
|