Skip to content

Commit

Permalink
fix difficulty sup when unspecified
Browse files Browse the repository at this point in the history
bump version
  • Loading branch information
UlyssesZh committed Mar 23, 2024
1 parent c7e8b33 commit fbf41c6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
ruby:
- '3.2.0'
- '3.3.0'

steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
sscharter (0.5.3)
sscharter (0.5.4)
filewatcher (~> 2.0)
launchy (~> 2.5)
rubyzip (~> 2.3)
Expand All @@ -16,7 +16,7 @@ GEM
module_methods (~> 0.1.0)
launchy (2.5.2)
addressable (~> 2.8)
minitest (5.22.0)
minitest (5.22.3)
module_methods (0.1.0)
public_suffix (5.0.4)
rake (13.1.0)
Expand Down
1 change: 1 addition & 0 deletions lib/sscharter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ def init_chart_info
@difficulty_name = ''
@difficulty_color = '#000000'
@difficulty = ''
@difficulty_sup = ''
@title = ''
@artist = ''
@charter = ''
Expand Down
2 changes: 1 addition & 1 deletion lib/sscharter/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Sunniesnow
class Charter
VERSION = "0.5.3"
VERSION = "0.5.4"
end
end
15 changes: 15 additions & 0 deletions test/test_sscharter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ def test_chart_metadata
end
end

def test_chart_metadata_defaults
Charter.open __method__ do
end
chart = Charter.charts[__method__]
chart.instance_exec method :assert_equal do |t|
t.call '', @title
t.call '', @artist
t.call '', @charter
t.call '', @difficulty_name
t.call '#000000', @difficulty_color
t.call '', @difficulty
t.call '', @difficulty_sup
end
end

def test_difficulty_colors
chart = Charter.open __method__

Expand Down

0 comments on commit fbf41c6

Please sign in to comment.