head_music 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 907af3d8bc6ce8aa6190c98cb809824c3ff2fc6fe3e9de78f895c08f3212b10c
4
- data.tar.gz: e127bfa17bf001311947ab70471e0be132aaa2ecd83d9f0c539154060bd97252
3
+ metadata.gz: abe406f428c40b4ad6937006865ed6a6e8f70ee1fc682802406ef2bce97b27c0
4
+ data.tar.gz: 1e0264aae4a9fa7d904549f5e6decee869de8cd42be7b97f3850f59f6e3ed8cb
5
5
  SHA512:
6
- metadata.gz: e63258caae492d8668163f1444eed7c4a0e92a5fa07ff7cf4c6b1fd2439430b82b6589f31aa26116ff10d92f4ee5b89fb4e37ae271460f5b89ae8f3ad2ab9b03
7
- data.tar.gz: '005495aca86e5e8869b3a90d37412b966c0b62395470b527942faf9cde3531eca35d9c7e26a1f4b0301ba93adf899c81b7ff2b42512681ae9994d87b4e7b04ce'
6
+ metadata.gz: 4ba99a2957586f795ff211b92573551bbd6fd3b1b1333f0d826d90ddf80f529680769359e5edbee8f90950c620240f8289efd8ce8e8be7cb465f6e948c44b254
7
+ data.tar.gz: 0c1ab4d6ba42810f0b1f740a0dc44eb0674a2ce5bd82e211fd5403f040d288b07a017386f83a6dd2661d52ef8e5698fe82327604e373d709c4184b3af5679be2
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /spec/examples.txt
11
+ *.gem
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.4
1
+ 3.2.2
data/head_music.gemspec CHANGED
@@ -16,20 +16,20 @@ Gem::Specification.new do |spec|
16
16
  spec.license = "MIT"
17
17
 
18
18
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
- f.match(%r{^(test|spec|features)/})
19
+ f.match(%r{^(test|spec|features)/}) || f.match(/\.gem$/)
20
20
  end
21
+
21
22
  spec.bindir = "exe"
22
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
24
  spec.require_paths = ["lib"]
24
25
 
25
26
  spec.required_ruby_version = ">= 3.0"
26
27
 
27
- spec.add_runtime_dependency "activesupport", "~> 5.0", "> 5.0"
28
-
29
- spec.add_runtime_dependency "humanize", "~> 1.3"
28
+ spec.add_runtime_dependency "activesupport", "~> 7.0"
29
+ spec.add_runtime_dependency "humanize", "~> 2.0"
30
30
  spec.add_runtime_dependency "i18n", "~> 1.8"
31
31
 
32
- spec.add_development_dependency "rake", "~> 12.3", ">= 12.3.3"
32
+ spec.add_development_dependency "rake", "~> 13.0"
33
33
  spec.add_development_dependency "rspec", "~> 3.0"
34
34
  spec.add_development_dependency "rspec-its", "~> 1.2"
35
35
  end
@@ -49,7 +49,7 @@ class HeadMusic::Clef
49
49
  end
50
50
 
51
51
  def name(locale_code: Locale::DEFAULT_CODE)
52
- I18n.translate(name_key, scope: :clefs, locale: locale_code)
52
+ I18n.translate(name_key, scope: "head_music.clefs", locale: locale_code)
53
53
  end
54
54
 
55
55
  private_class_method :new
@@ -77,7 +77,7 @@ class HeadMusic::Clef
77
77
  def name_key_translations(name_keys)
78
78
  name_keys.map do |name_key|
79
79
  I18n.config.available_locales.map do |locale_code|
80
- I18n.translate(name_key, scope: :clefs, locale: locale_code)
80
+ I18n.translate(name_key, scope: "head_music.clefs", locale: locale_code)
81
81
  end.flatten.uniq.compact
82
82
  end.flatten.uniq.compact
83
83
  end
@@ -57,7 +57,7 @@ double_bass:
57
57
  flute:
58
58
  classification_keys:
59
59
  - aerophone
60
- - edge-blown aerophone
60
+ - edge_blown_aerophone
61
61
  - wind
62
62
  - woodwind
63
63
  orchestra_section_key: woodwind
@@ -50,7 +50,7 @@ class HeadMusic::Instrument
50
50
  def translation(locale = :en)
51
51
  return name unless name_key
52
52
 
53
- I18n.translate(name_key, scope: [:instruments], locale: locale)
53
+ I18n.translate(name_key, scope: %i[head_music instruments], locale: locale, default: name)
54
54
  end
55
55
 
56
56
  def family
@@ -104,7 +104,7 @@ class HeadMusic::Instrument
104
104
  def key_for_name(name)
105
105
  INSTRUMENTS.each do |key, _data|
106
106
  I18n.config.available_locales.each do |locale|
107
- translation = I18n.t("instruments.#{key}", locale: locale)
107
+ translation = I18n.t("head_music.instruments.#{key}", locale: locale)
108
108
  return key if translation.downcase == name.downcase
109
109
  end
110
110
  end
@@ -139,7 +139,7 @@ class HeadMusic::Instrument
139
139
 
140
140
  def initialize_names(record)
141
141
  @name_key = record["name_key"].to_sym
142
- self.name = I18n.translate(name_key, scope: "instruments", locale: "en", default: inferred_name)
142
+ self.name = I18n.translate(name_key, scope: "head_music.instruments", locale: "en", default: inferred_name)
143
143
  @alias_name_keys = record["alias_name_keys"] || []
144
144
  end
145
145
 
@@ -42,7 +42,7 @@ class HeadMusic::InstrumentFamily
42
42
  def key_for_name(name)
43
43
  INSTRUMENT_FAMILIES.each do |key, _data|
44
44
  I18n.config.available_locales.each do |locale|
45
- translation = I18n.t("instruments.#{key}", locale: locale)
45
+ translation = I18n.t("head_music.instruments.#{key}", locale: locale)
46
46
  return key if translation.downcase == name.downcase
47
47
  end
48
48
  end
@@ -60,7 +60,7 @@ class HeadMusic::InstrumentFamily
60
60
  @name_key = record["name_key"].to_sym
61
61
  @orchestra_section_key = record["orchestra_section_key"]
62
62
  @classification_keys = record["classification_keys"] || []
63
- self.name = I18n.translate(name_key, scope: "instruments", locale: "en", default: inferred_name)
63
+ self.name = I18n.translate(name_key, scope: "head_music.instruments", locale: "en", default: inferred_name)
64
64
  end
65
65
 
66
66
  def inferred_name
@@ -1,129 +1,130 @@
1
1
  de:
2
- clefs:
3
- alto_clef: Altschlüssel
4
- baritone_c_clef: Baritonschlüssel
5
- baritone_clef: Baritonschlüssel
6
- baritone_f_clef: Baritonschlüssel
7
- bass_clef: Bassschlüssel
8
- c_clef: C-Schlüssel
9
- vocal_tenor_clef: oktavierten Violinschlüssel
10
- contrabass_clef: contrabass clef
11
- countertenor_clef: countertenor clef
12
- double_treble_clef: double treble clef
13
- drum_clef: Schlagzeugschlüssel
14
- f_clef: F-Schlüssel
15
- fifth_line_c_clef: fifth-line C-clef
16
- fifth_line_f_clef: fifth-line F-clef
17
- first_line_c_clef: Sopranschlüssel
18
- first_line_g_clef: first-line G-clef
19
- fourth_line_c_clef: fourth-line C-clef
20
- fourth_line_f_clef: fourth-line F-clef
21
- french_clef: French clef
22
- french_violin_clef: French violin clef
23
- g_clef: G-Schlüssel
24
- indefinite_pitch_clef: indefinite pitch clef
25
- mezzo_soprano_clef: Mezzosopranschlüssel
26
- neutral_clef: Schlagzeugschlüssel
27
- percussion_clef: Schlagzeugschlüssel
28
- second_line_c_clef: second-line C-clef
29
- second_line_g_clef: second-line G-clef
30
- soprano_clef: Sopranschlüssel
31
- sub_bass_clef: Subbassschlüssel
32
- tenor_c_clef: Tenorschlüssel
33
- tenor_clef: Tenorschlüssel
34
- tenor_g_clef: tenor G-clef
35
- third_line_c_clef: third-line C-clef
36
- third_line_f_clef: third-line F-clef
37
- treble_clef: Violinschlüssel
38
- viola_clef: Bratschenschlüssel
39
- violin_clef: Violinschlüssel
40
- instrument_classifications:
41
- brass: Blechblas
42
- brass_instrument: Blechblasinstrument
43
- drum: Trommel
44
- keyboard_instrument: Tasteninstrumente
45
- percussion: Perkussions
46
- percussion_instrument: Schlaginstrumente
47
- plucked_instrument: Zupfinstrumente
48
- strings: Streicher
49
- stringed_instrument: Saiteninstrument
50
- wind_instrument: Blasinstrument
51
- woodwind_instrument: Holzblasinstrument
52
- instrument_voices:
53
- alto: Alt
54
- baritone: Bariton
55
- bass: Bass
56
- instruments:
57
- accordian: Akkordeon
58
- alto_flute: Altflöte
59
- alto_voice: Alt
60
- arpeggione: Arpeggione
61
- bagpipe: Dudelsack
62
- baritone_horn: Baritonhorn
63
- baritone_voice: Bariton
64
- bass_clarinet: Bassklarinette
65
- bass_drum: Grosse Trommel
66
- bass_trombone: Bass Posaune
67
- bass_voice: Bass
68
- bassoon: Fagott
69
- castanets: Kastagnetten
70
- celesta: Celesta
71
- cello: Cello
72
- cimbalom: Zymbal
73
- clarinet: Klarinette
74
- clavichord: Klavichord
75
- cornet: Kornett
76
- cymbal: Becken
77
- double_bass: Kontrabass
78
- english_horn: Englischhorn
79
- euphonium: Euphonium
80
- fiddle: Geige
81
- flugelhorn: Flügelhorn
82
- flute: Flöte
83
- french_horn: Horn
84
- glockenspiel: Glockenspiel
85
- guitar: Gitarre
86
- hammered_dulcimer: Hackbrett
87
- harp: Harfe
88
- harpsichord: Cembalo
89
- horn: Horn
90
- lute: Laute
91
- mandolin: Mandoline
92
- marimba: Marimbaphon
93
- natural_horn: Waldhorn
94
- oboe: Oboe
95
- oboe_d_amore: Liebesoboe
96
- organ: Orgel
97
- piano: Piano
98
- piccolo: Pikkoloflöte
99
- recorder: Blockflöte
100
- saxophone: Saxophon
101
- snare_drum: Leinentrommel
102
- tambourine: Tamburin
103
- tenor_drum: Tenortrommel
104
- timpani: Pauken
105
- trombone: Posaune
106
- trumpet: Trompete
107
- tuba: Tuba
108
- tubular_bells: Rohrenglocke
109
- viola: Bratsche
110
- viola_d_amore: Viola d'amore
111
- viola_da_gamba: Viola da gamba
112
- violin: Violine
113
- violoncello: Violoncello
114
- voice: Stimme
115
- xylophone: Xylophon
116
- zither: Zither
117
- locales:
118
- de: Deutsch
119
- en: Englisch
120
- es: Spanisch
121
- fr: Französisch
122
- it: Italienisch
123
- ru: Russisch
124
- reference_pitches:
125
- chamber_tone: Kammerton
126
- choir_tone: Chorton
127
- rudiments:
128
- clef: Notenschlüssel
129
- consonance: Konsonanz
2
+ head_music:
3
+ clefs:
4
+ alto_clef: Altschlüssel
5
+ baritone_c_clef: Baritonschlüssel
6
+ baritone_clef: Baritonschlüssel
7
+ baritone_f_clef: Baritonschlüssel
8
+ bass_clef: Bassschlüssel
9
+ c_clef: C-Schlüssel
10
+ vocal_tenor_clef: oktavierten Violinschlüssel
11
+ contrabass_clef: contrabass clef
12
+ countertenor_clef: countertenor clef
13
+ double_treble_clef: double treble clef
14
+ drum_clef: Schlagzeugschlüssel
15
+ f_clef: F-Schlüssel
16
+ fifth_line_c_clef: fifth-line C-clef
17
+ fifth_line_f_clef: fifth-line F-clef
18
+ first_line_c_clef: Sopranschlüssel
19
+ first_line_g_clef: first-line G-clef
20
+ fourth_line_c_clef: fourth-line C-clef
21
+ fourth_line_f_clef: fourth-line F-clef
22
+ french_clef: French clef
23
+ french_violin_clef: French violin clef
24
+ g_clef: G-Schlüssel
25
+ indefinite_pitch_clef: indefinite pitch clef
26
+ mezzo_soprano_clef: Mezzosopranschlüssel
27
+ neutral_clef: Schlagzeugschlüssel
28
+ percussion_clef: Schlagzeugschlüssel
29
+ second_line_c_clef: second-line C-clef
30
+ second_line_g_clef: second-line G-clef
31
+ soprano_clef: Sopranschlüssel
32
+ sub_bass_clef: Subbassschlüssel
33
+ tenor_c_clef: Tenorschlüssel
34
+ tenor_clef: Tenorschlüssel
35
+ tenor_g_clef: tenor G-clef
36
+ third_line_c_clef: third-line C-clef
37
+ third_line_f_clef: third-line F-clef
38
+ treble_clef: Violinschlüssel
39
+ viola_clef: Bratschenschlüssel
40
+ violin_clef: Violinschlüssel
41
+ instrument_classifications:
42
+ brass: Blechblas
43
+ brass_instrument: Blechblasinstrument
44
+ drum: Trommel
45
+ keyboard_instrument: Tasteninstrumente
46
+ percussion: Perkussions
47
+ percussion_instrument: Schlaginstrumente
48
+ plucked_instrument: Zupfinstrumente
49
+ strings: Streicher
50
+ stringed_instrument: Saiteninstrument
51
+ wind_instrument: Blasinstrument
52
+ woodwind_instrument: Holzblasinstrument
53
+ instrument_voices:
54
+ alto: Alt
55
+ baritone: Bariton
56
+ bass: Bass
57
+ instruments:
58
+ accordian: Akkordeon
59
+ alto_flute: Altflöte
60
+ alto_voice: Alt
61
+ arpeggione: Arpeggione
62
+ bagpipe: Dudelsack
63
+ baritone_horn: Baritonhorn
64
+ baritone_voice: Bariton
65
+ bass_clarinet: Bassklarinette
66
+ bass_drum: Grosse Trommel
67
+ bass_trombone: Bass Posaune
68
+ bass_voice: Bass
69
+ bassoon: Fagott
70
+ castanets: Kastagnetten
71
+ celesta: Celesta
72
+ cello: Cello
73
+ cimbalom: Zymbal
74
+ clarinet: Klarinette
75
+ clavichord: Klavichord
76
+ cornet: Kornett
77
+ cymbal: Becken
78
+ double_bass: Kontrabass
79
+ english_horn: Englischhorn
80
+ euphonium: Euphonium
81
+ fiddle: Geige
82
+ flugelhorn: Flügelhorn
83
+ flute: Flöte
84
+ french_horn: Horn
85
+ glockenspiel: Glockenspiel
86
+ guitar: Gitarre
87
+ hammered_dulcimer: Hackbrett
88
+ harp: Harfe
89
+ harpsichord: Cembalo
90
+ horn: Horn
91
+ lute: Laute
92
+ mandolin: Mandoline
93
+ marimba: Marimbaphon
94
+ natural_horn: Waldhorn
95
+ oboe: Oboe
96
+ oboe_d_amore: Liebesoboe
97
+ organ: Orgel
98
+ piano: Piano
99
+ piccolo: Pikkoloflöte
100
+ recorder: Blockflöte
101
+ saxophone: Saxophon
102
+ snare_drum: Leinentrommel
103
+ tambourine: Tamburin
104
+ tenor_drum: Tenortrommel
105
+ timpani: Pauken
106
+ trombone: Posaune
107
+ trumpet: Trompete
108
+ tuba: Tuba
109
+ tubular_bells: Rohrenglocke
110
+ viola: Bratsche
111
+ viola_d_amore: Viola d'amore
112
+ viola_da_gamba: Viola da gamba
113
+ violin: Violine
114
+ violoncello: Violoncello
115
+ voice: Stimme
116
+ xylophone: Xylophon
117
+ zither: Zither
118
+ locales:
119
+ de: Deutsch
120
+ en: Englisch
121
+ es: Spanisch
122
+ fr: Französisch
123
+ it: Italienisch
124
+ ru: Russisch
125
+ reference_pitches:
126
+ chamber_tone: Kammerton
127
+ choir_tone: Chorton
128
+ rudiments:
129
+ clef: Notenschlüssel
130
+ consonance: Konsonanz