coltrane 4.1.1 → 4.1.2

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: 0c3c8660bcafcc989ef1797670510d821ab023664d7275095a6ee0fde7e93d6f
4
- data.tar.gz: 4ff8579977fb1bd8f6a4702504d036e5dbff517936f730ba79d2c620aa2e642c
3
+ metadata.gz: 0e8edb7e764965e718a974ba7afe215b71331aff1ea89d5bd5a1a48c448e0d44
4
+ data.tar.gz: f36b2bf339fb1a4cd09f9a819f8d000cc64e940389a2c6e97634d138dbdaafad
5
5
  SHA512:
6
- metadata.gz: cb931e46e6c45a238dc736e4b9de93fc9f56b0267163eca869add5fc091ff9a199eb94c31638b613444ff33c28e8c251709f2cfb820acc77129fdde76395167e
7
- data.tar.gz: 7cf87180e20807855537afad00d1657fd414b00fdf64ef75210b0eb759e07c15d6f261fb776dbcc2760e6a420d6540ff36cf53e4fbb7e89751ed744131de897e
6
+ metadata.gz: 437ce9e55fc64e08287e77e368f8334e62a0d5ca231ba6c1e3128bb4cc6b77935484644ab83fb4b475a5b88317c7b248ce5d65b803c703a91d8206c71473e1ed
7
+ data.tar.gz: da5a078063d656e30f492b9c62576aa97dbd509588053c0991887893212d07f6813795e1000013c3b18e2bfd8ab7aeff80311c54d063bc3c0105d0da6eb0a43a
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.0.4
data/Gemfile.lock CHANGED
@@ -1,45 +1,45 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coltrane (4.1.1)
4
+ coltrane (4.1.2)
5
5
  activesupport (> 5.2)
6
6
  color (~> 1.8)
7
7
  dry-monads (~> 0.4)
8
- gambiarra (~> 0)
8
+ gambiarra (= 0.0.6)
9
9
  paint (~> 2.0)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (6.1.1)
14
+ activesupport (7.0.4.3)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
16
  i18n (>= 1.6, < 2)
17
17
  minitest (>= 5.1)
18
18
  tzinfo (~> 2.0)
19
- zeitwerk (~> 2.3)
20
19
  ast (2.4.2)
21
20
  byebug (11.1.3)
22
- cli-ui (1.4.0)
21
+ cli-ui (1.5.1)
23
22
  coderay (1.1.3)
24
23
  color (1.8)
25
24
  concurrent-ruby (1.1.8)
26
25
  diff-lcs (1.4.4)
27
26
  docile (1.3.5)
28
- dry-core (0.5.0)
27
+ dry-core (0.9.1)
29
28
  concurrent-ruby (~> 1.0)
29
+ zeitwerk (~> 2.6)
30
30
  dry-equalizer (0.3.0)
31
31
  dry-monads (0.4.0)
32
32
  dry-core (~> 0.3, >= 0.3.3)
33
33
  dry-equalizer
34
- gambiarra (0.0.5)
34
+ gambiarra (0.0.6)
35
35
  activesupport (> 5.2)
36
36
  cli-ui (~> 1.1)
37
37
  thor (~> 1.1.0)
38
38
  hike (1.2.3)
39
- i18n (1.8.8)
39
+ i18n (1.12.0)
40
40
  concurrent-ruby (~> 1.0)
41
41
  method_source (1.0.0)
42
- minitest (5.14.3)
42
+ minitest (5.18.0)
43
43
  opal (0.10.6)
44
44
  hike (~> 1.2)
45
45
  sourcemap (~> 0.1.0)
@@ -47,7 +47,7 @@ GEM
47
47
  tilt (>= 1.4)
48
48
  opal-rspec (0.6.2)
49
49
  opal (>= 0.10.0, < 0.12)
50
- paint (2.2.1)
50
+ paint (2.3.0)
51
51
  parallel (1.20.1)
52
52
  parser (3.0.0.0)
53
53
  ast (~> 2.4.1)
@@ -56,9 +56,9 @@ GEM
56
56
  pry (0.13.1)
57
57
  coderay (~> 1.1)
58
58
  method_source (~> 1.0)
59
- pry-byebug (3.9.0)
59
+ pry-byebug (3.10.1)
60
60
  byebug (~> 11.0)
61
- pry (~> 0.13.0)
61
+ pry (>= 0.13, < 0.15)
62
62
  rack (2.2.3)
63
63
  rainbow (3.0.0)
64
64
  rake (10.5.0)
@@ -111,11 +111,11 @@ GEM
111
111
  tty-screen (~> 0.8)
112
112
  wisper (~> 2.0)
113
113
  tty-screen (0.8.1)
114
- tzinfo (2.0.4)
114
+ tzinfo (2.0.6)
115
115
  concurrent-ruby (~> 1.0)
116
116
  unicode-display_width (2.0.0)
117
117
  wisper (2.0.1)
118
- zeitwerk (2.4.2)
118
+ zeitwerk (2.6.7)
119
119
 
120
120
  PLATFORMS
121
121
  ruby
@@ -133,4 +133,4 @@ DEPENDENCIES
133
133
  tty-prompt
134
134
 
135
135
  BUNDLED WITH
136
- 2.2.5
136
+ 2.2.33
data/bin/bundle CHANGED
@@ -60,16 +60,16 @@ m = Module.new do
60
60
  Regexp.last_match(1)
61
61
  end
62
62
 
63
- def bundler_version
64
- @bundler_version ||=
63
+ def bundler_requirement
64
+ @bundler_requirement ||=
65
65
  env_var_version || cli_arg_version ||
66
- lockfile_version
66
+ bundler_requirement_for(lockfile_version)
67
67
  end
68
68
 
69
- def bundler_requirement
70
- return "#{Gem::Requirement.default}.a" unless bundler_version
69
+ def bundler_requirement_for(version)
70
+ return "#{Gem::Requirement.default}.a" unless version
71
71
 
72
- bundler_gem_version = Gem::Version.new(bundler_version)
72
+ bundler_gem_version = Gem::Version.new(version)
73
73
 
74
74
  requirement = bundler_gem_version.approximate_recommendation
75
75
 
data/coltrane.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.require_paths = ["lib"]
34
34
 
35
35
  spec.add_runtime_dependency 'dry-monads', '~> 0.4'
36
- spec.add_runtime_dependency 'gambiarra', '~> 0'
36
+ spec.add_runtime_dependency 'gambiarra', '= 0.0.6'
37
37
  spec.add_runtime_dependency 'paint', '~> 2.0'
38
38
  spec.add_runtime_dependency 'color', '~> 1.8'
39
39
  spec.add_runtime_dependency 'activesupport', '> 5.2'
@@ -90,6 +90,7 @@ module Coltrane
90
90
  chord_name, bass = name.match?(/\/9/) ? [name, nil] : name.split('/')
91
91
  chord_regex = /([A-Z](?:#|b)?)(.*)/
92
92
  _, root_name, quality_name = chord_name.match(chord_regex).to_a
93
+ raise ChordNotFoundError if [root_name, quality_name].include?(nil)
93
94
  root = Note[root_name]
94
95
  quality = ChordQuality.new(name: quality_name, bass: bass)
95
96
  notes = quality.notes_for(root)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coltrane
4
- VERSION = '4.1.1'
4
+ VERSION = '4.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coltrane
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Maciel
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-06 00:00:00.000000000 Z
11
+ date: 2023-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-monads
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: gambiarra
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.0.6
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.0.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: paint
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '10.0'
111
- description:
111
+ description:
112
112
  email:
113
113
  - pedro@pedromaciel.com
114
114
  executables:
@@ -284,7 +284,7 @@ licenses:
284
284
  - MIT
285
285
  metadata:
286
286
  allowed_push_host: https://rubygems.org
287
- post_install_message:
287
+ post_install_message:
288
288
  rdoc_options: []
289
289
  require_paths:
290
290
  - lib
@@ -299,8 +299,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  - !ruby/object:Gem::Version
300
300
  version: '0'
301
301
  requirements: []
302
- rubygems_version: 3.0.8
303
- signing_key:
302
+ rubygems_version: 3.2.33
303
+ signing_key:
304
304
  specification_version: 4
305
305
  summary: It deals with all sorts of calculations around music theory and allows for
306
306
  graphical representations of it