song_pro 0.1.11 → 0.1.12

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 493de9f0e847cc708651498787e30288deb0a3d4c56e386005a2d0c7e3a45acc
4
- data.tar.gz: 8c847db3bb3081f92d01f8ca5b8b97ca494020b207fa082e4c4c4588089425b9
3
+ metadata.gz: c06c0b9f50bce6995726f812e4472defeb00cb4b37af5e5498b043fa1c9ed8a1
4
+ data.tar.gz: 955eec40e9481a7de7e4b0a46369f7e8c717e1919d653ec8aeb2b90d3eed1db2
5
5
  SHA512:
6
- metadata.gz: 714d2daca1841acebb02202fe164fb287687b722777334eddb85f322d7cfcf5cf151d94df71a850503fbdc1049082787b5a553902d06a6bc8f665b921617a889
7
- data.tar.gz: 8fda1e7a30888518b662e375729d3268ebc344dd54bf8e0ee4bee5b34b9bc8087fdea32d28005775ba207aeceae28063ccab706b148ef0fd3c737b26c8d12fa8
6
+ metadata.gz: 28b10e4bc6531745b33dd01b5cb59c48210e8bc1ba635e333232bf4ea5b89fb537c9b8ecc18e02509be429841dd4e8adcb66ccd85966e1e798264afe807b0b2e
7
+ data.tar.gz: 217c7f14d9b13d34b066886ae9f14d1ff0a92d5ccfe3fd699e0e63ce448586572a92da8ca2fc00f8446829cce7f01511c8f9e3bdb4166c220c6c3aadbcaf9e12
@@ -1,6 +1,10 @@
1
1
  name: Build
2
2
 
3
- on: [push, pull_request]
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@v3
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.2.2
1
+ 3.3.3
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.2.2
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.11)
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.0)
11
- json (2.6.3)
12
- language_server-protocol (3.17.0.2)
13
- parallel (1.22.1)
14
- parser (3.1.3.0)
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.0.6)
18
- regexp_parser (2.6.1)
19
- rexml (3.2.5)
20
- rspec (3.12.0)
21
- rspec-core (~> 3.12.0)
22
- rspec-expectations (~> 3.12.0)
23
- rspec-mocks (~> 3.12.0)
24
- rspec-core (3.12.0)
25
- rspec-support (~> 3.12.0)
26
- rspec-expectations (3.12.1)
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.12.0)
29
- rspec-mocks (3.12.1)
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.12.0)
32
- rspec-support (3.12.0)
33
- rubocop (1.40.0)
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.1.2.1)
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.23.0, < 2.0)
45
+ rubocop-ast (>= 1.31.1, < 2.0)
41
46
  ruby-progressbar (~> 1.7)
42
- unicode-display_width (>= 1.4.0, < 3.0)
43
- rubocop-ast (1.24.1)
44
- parser (>= 3.1.1.0)
45
- rubocop-performance (1.15.1)
46
- rubocop (>= 1.7.0, < 2.0)
47
- rubocop-ast (>= 0.4.0)
48
- ruby-progressbar (1.11.0)
49
- standard (1.20.0)
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
- rubocop (= 1.40.0)
52
- rubocop-performance (= 1.15.1)
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
- unicode-display_width (2.3.0)
68
+ strscan (3.1.0)
69
+ unicode-display_width (2.5.0)
56
70
 
57
71
  PLATFORMS
58
72
  ruby
@@ -1,3 +1,3 @@
1
1
  module SongPro
2
- VERSION = "0.1.11".freeze
2
+ VERSION = "0.1.12".freeze
3
3
  end
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.start_with?("|-")
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.11
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-06-13 00:00:00.000000000 Z
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.11
116
+ rubygems_version: 3.5.15
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Converts SongPro files to HTML