coltrane 4.0.6 → 4.1.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: c3e26972df8988b780fba7a447408cfb7c5c80e2852ecc605bc2fe71bf056890
4
- data.tar.gz: 4bf04233585e2c2a284e914444d9d293c068f5cd5b0e731ec398bf5bacfdf371
3
+ metadata.gz: 200087e08310a5e41ca48641d1f3c1cf87f114eb3add7743fbc73ebd33d3953d
4
+ data.tar.gz: 03b3da0eb7f619d778cd12008cd397e15883678179c1e385a1e7c0f49b8e9671
5
5
  SHA512:
6
- metadata.gz: c4962377b0bf4b64a956b6a02c9b3241b58386c06399f373e99401d50973403c9b1c97f21c0c6cf0848081d992305cba5d2f63cfac2bdb16f235eddc95e630ab
7
- data.tar.gz: 2e2bdd93920af71911f1dd6a45077f5f116e975765d2cf46caeb4de0cd9a2369119fb22cb8e78429f5a1e2682cc6a515675d2e5722fdaa4b480612df20cffeac
6
+ metadata.gz: b438a82b687d8a673b08c5dca43a81ca06d2264260a4f11fc7e5fe62da5e313198e18fd35c71f8d253198e59239261bc10d890dbf069f1f3f7253378d342cc8d
7
+ data.tar.gz: ffa7d8a8dae84e23438cd1c42c7efafd64943b41b1672d0563f673e2ca5860da8c87d0cf4d6ce09b5e1870c6f3acfa493078ab417e61c881dff3b95e6db104e4
@@ -1 +1 @@
1
- 2.5.1
1
+ 3.0.0
@@ -7,7 +7,7 @@ git:
7
7
  depth: 1
8
8
 
9
9
  rvm:
10
- - 2.5.0
10
+ - 3.0.0
11
11
 
12
12
  before_script:
13
13
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coltrane (4.0.6)
4
+ coltrane (4.1.0)
5
5
  activesupport (> 5.2)
6
6
  color (~> 1.8)
7
7
  dry-monads (~> 0.4)
@@ -11,120 +11,117 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- activesupport (5.2.1)
14
+ activesupport (6.1.1)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
- i18n (>= 0.7, < 2)
17
- minitest (~> 5.1)
18
- tzinfo (~> 1.1)
19
- ast (2.4.0)
20
- byebug (10.0.2)
21
- cli-ui (1.1.4)
22
- coderay (1.1.2)
16
+ i18n (>= 1.6, < 2)
17
+ minitest (>= 5.1)
18
+ tzinfo (~> 2.0)
19
+ zeitwerk (~> 2.3)
20
+ ast (2.4.1)
21
+ byebug (11.1.3)
22
+ cli-ui (1.4.0)
23
+ coderay (1.1.3)
23
24
  color (1.8)
24
- concurrent-ruby (1.0.5)
25
- diff-lcs (1.3)
26
- docile (1.3.0)
27
- dry-core (0.4.7)
25
+ concurrent-ruby (1.1.7)
26
+ diff-lcs (1.4.4)
27
+ docile (1.3.5)
28
+ dry-core (0.5.0)
28
29
  concurrent-ruby (~> 1.0)
29
- dry-equalizer (0.2.1)
30
+ dry-equalizer (0.3.0)
30
31
  dry-monads (0.4.0)
31
32
  dry-core (~> 0.3, >= 0.3.3)
32
33
  dry-equalizer
33
- equatable (0.5.0)
34
- gambiarra (0.0.1)
34
+ gambiarra (0.0.3)
35
35
  activesupport (> 5.2)
36
36
  cli-ui (~> 1.1)
37
37
  thor (= 0.20)
38
38
  hike (1.2.3)
39
- hitimes (1.2.6)
40
- i18n (1.1.1)
39
+ i18n (1.8.7)
41
40
  concurrent-ruby (~> 1.0)
42
- json (2.1.0)
43
- method_source (0.9.0)
44
- minitest (5.11.3)
45
- necromancer (0.4.0)
46
- opal (0.10.5)
41
+ method_source (1.0.0)
42
+ minitest (5.14.3)
43
+ opal (0.10.6)
47
44
  hike (~> 1.2)
48
45
  sourcemap (~> 0.1.0)
49
46
  sprockets (~> 3.1)
50
47
  tilt (>= 1.4)
51
- opal-rspec (0.6.1)
48
+ opal-rspec (0.6.2)
52
49
  opal (>= 0.10.0, < 0.12)
53
- paint (2.0.1)
54
- parallel (1.12.1)
55
- parser (2.5.0.5)
56
- ast (~> 2.4.0)
57
- pastel (0.7.2)
58
- equatable (~> 0.5.0)
59
- tty-color (~> 0.4.0)
60
- powerpack (0.1.1)
61
- pry (0.11.3)
62
- coderay (~> 1.1.0)
63
- method_source (~> 0.9.0)
64
- pry-byebug (3.6.0)
65
- byebug (~> 10.0)
66
- pry (~> 0.10)
67
- rack (2.0.4)
50
+ paint (2.2.1)
51
+ parallel (1.20.1)
52
+ parser (3.0.0.0)
53
+ ast (~> 2.4.1)
54
+ pastel (0.8.0)
55
+ tty-color (~> 0.5)
56
+ pry (0.13.1)
57
+ coderay (~> 1.1)
58
+ method_source (~> 1.0)
59
+ pry-byebug (3.9.0)
60
+ byebug (~> 11.0)
61
+ pry (~> 0.13.0)
62
+ rack (2.2.3)
68
63
  rainbow (3.0.0)
69
64
  rake (10.5.0)
70
- rspec (3.7.0)
71
- rspec-core (~> 3.7.0)
72
- rspec-expectations (~> 3.7.0)
73
- rspec-mocks (~> 3.7.0)
74
- rspec-core (3.7.1)
75
- rspec-support (~> 3.7.0)
76
- rspec-expectations (3.7.0)
65
+ regexp_parser (2.0.3)
66
+ rexml (3.2.4)
67
+ rspec (3.10.0)
68
+ rspec-core (~> 3.10.0)
69
+ rspec-expectations (~> 3.10.0)
70
+ rspec-mocks (~> 3.10.0)
71
+ rspec-core (3.10.1)
72
+ rspec-support (~> 3.10.0)
73
+ rspec-expectations (3.10.1)
77
74
  diff-lcs (>= 1.2.0, < 2.0)
78
- rspec-support (~> 3.7.0)
79
- rspec-mocks (3.7.0)
75
+ rspec-support (~> 3.10.0)
76
+ rspec-mocks (3.10.1)
80
77
  diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.7.0)
82
- rspec-support (3.7.1)
83
- rubocop (0.54.0)
78
+ rspec-support (~> 3.10.0)
79
+ rspec-support (3.10.1)
80
+ rubocop (1.8.1)
84
81
  parallel (~> 1.10)
85
- parser (>= 2.5)
86
- powerpack (~> 0.1)
82
+ parser (>= 3.0.0.0)
87
83
  rainbow (>= 2.2.2, < 4.0)
84
+ regexp_parser (>= 1.8, < 3.0)
85
+ rexml
86
+ rubocop-ast (>= 1.2.0, < 2.0)
88
87
  ruby-progressbar (~> 1.7)
89
- unicode-display_width (~> 1.0, >= 1.0.1)
90
- ruby-progressbar (1.9.0)
91
- simplecov (0.16.1)
88
+ unicode-display_width (>= 1.4.0, < 3.0)
89
+ rubocop-ast (1.4.0)
90
+ parser (>= 2.7.1.5)
91
+ ruby-progressbar (1.11.0)
92
+ simplecov (0.21.2)
92
93
  docile (~> 1.1)
93
- json (>= 1.8, < 3)
94
- simplecov-html (~> 0.10.0)
95
- simplecov-html (0.10.2)
94
+ simplecov-html (~> 0.11)
95
+ simplecov_json_formatter (~> 0.1)
96
+ simplecov-html (0.12.3)
97
+ simplecov_json_formatter (0.1.2)
96
98
  sourcemap (0.1.1)
97
- sprockets (3.7.1)
99
+ sprockets (3.7.2)
98
100
  concurrent-ruby (~> 1.0)
99
101
  rack (> 1, < 3)
100
102
  thor (0.20.0)
101
- thread_safe (0.3.6)
102
- tilt (2.0.8)
103
- timers (4.1.2)
104
- hitimes
105
- tty-color (0.4.2)
106
- tty-cursor (0.5.0)
107
- tty-prompt (0.16.0)
108
- necromancer (~> 0.4.0)
109
- pastel (~> 0.7.0)
110
- timers (~> 4.0)
111
- tty-cursor (~> 0.5.0)
112
- tty-reader (~> 0.2.0)
113
- tty-reader (0.2.0)
114
- tty-cursor (~> 0.5.0)
115
- tty-screen (~> 0.6.4)
116
- wisper (~> 2.0.0)
117
- tty-screen (0.6.4)
118
- tzinfo (1.2.5)
119
- thread_safe (~> 0.1)
120
- unicode-display_width (1.3.0)
121
- wisper (2.0.0)
103
+ tilt (2.0.10)
104
+ tty-color (0.6.0)
105
+ tty-cursor (0.7.1)
106
+ tty-prompt (0.23.0)
107
+ pastel (~> 0.8)
108
+ tty-reader (~> 0.8)
109
+ tty-reader (0.9.0)
110
+ tty-cursor (~> 0.7)
111
+ tty-screen (~> 0.8)
112
+ wisper (~> 2.0)
113
+ tty-screen (0.8.1)
114
+ tzinfo (2.0.4)
115
+ concurrent-ruby (~> 1.0)
116
+ unicode-display_width (2.0.0)
117
+ wisper (2.0.1)
118
+ zeitwerk (2.4.2)
122
119
 
123
120
  PLATFORMS
124
121
  ruby
125
122
 
126
123
  DEPENDENCIES
127
- bundler (~> 1.14)
124
+ bundler (~> 2.2.5)
128
125
  coltrane!
129
126
  opal-rspec
130
127
  pry
@@ -136,4 +133,4 @@ DEPENDENCIES
136
133
  tty-prompt
137
134
 
138
135
  BUNDLED WITH
139
- 1.16.4
136
+ 2.2.5
data/bin/bundle CHANGED
@@ -11,7 +11,7 @@
11
11
  require "rubygems"
12
12
 
13
13
  m = Module.new do
14
- module_function
14
+ module_function
15
15
 
16
16
  def invoked_as_script?
17
17
  File.expand_path($0) == File.expand_path(__FILE__)
@@ -31,7 +31,7 @@ m = Module.new do
31
31
  bundler_version = a
32
32
  end
33
33
  next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
- bundler_version = $1 || ">= 0.a"
34
+ bundler_version = $1
35
35
  update_index = i
36
36
  end
37
37
  bundler_version
@@ -61,32 +61,41 @@ m = Module.new do
61
61
  end
62
62
 
63
63
  def bundler_version
64
- @bundler_version ||= begin
64
+ @bundler_version ||=
65
65
  env_var_version || cli_arg_version ||
66
- lockfile_version || "#{Gem::Requirement.default}.a"
67
- end
66
+ lockfile_version
67
+ end
68
+
69
+ def bundler_requirement
70
+ return "#{Gem::Requirement.default}.a" unless bundler_version
71
+
72
+ bundler_gem_version = Gem::Version.new(bundler_version)
73
+
74
+ requirement = bundler_gem_version.approximate_recommendation
75
+
76
+ return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
77
+
78
+ requirement += ".a" if bundler_gem_version.prerelease?
79
+
80
+ requirement
68
81
  end
69
82
 
70
83
  def load_bundler!
71
84
  ENV["BUNDLE_GEMFILE"] ||= gemfile
72
85
 
73
- # must dup string for RG < 1.8 compatibility
74
- activate_bundler(bundler_version.dup)
86
+ activate_bundler
75
87
  end
76
88
 
77
- def activate_bundler(bundler_version)
78
- if Gem::Version.correct?(bundler_version) && Gem::Version.new(bundler_version).release < Gem::Version.new("2.0")
79
- bundler_version = "< 2"
80
- end
89
+ def activate_bundler
81
90
  gem_error = activation_error_handling do
82
- gem "bundler", bundler_version
91
+ gem "bundler", bundler_requirement
83
92
  end
84
93
  return if gem_error.nil?
85
94
  require_error = activation_error_handling do
86
95
  require "bundler/version"
87
96
  end
88
- return if require_error.nil? && Gem::Requirement.new(bundler_version).satisfied_by?(Gem::Version.new(Bundler::VERSION))
89
- warn "Activating bundler (#{bundler_version}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_version}'`"
97
+ return if require_error.nil? && Gem::Requirement.new(bundler_requirement).satisfied_by?(Gem::Version.new(Bundler::VERSION))
98
+ warn "Activating bundler (#{bundler_requirement}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_requirement}'`"
90
99
  exit 42
91
100
  end
92
101
 
@@ -1,17 +1,29 @@
1
1
  #!/usr/bin/env ruby
2
- $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
2
+ # frozen_string_literal: true
3
3
 
4
- require "bundler/setup"
5
- require "coltrane"
6
- require "coltrane/commands"
7
- require "coltrane/representation"
8
- require "coltrane/renderers"
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'console' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
9
14
 
10
- require "pry"
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
11
16
 
12
- include Coltrane
13
- include Coltrane::Theory
14
- include Coltrane::Representation
15
- include Coltrane::Renderers
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
16
28
 
17
- Pry.start
29
+ load Gem.bin_path("wisper", "console")
data/bin/setup CHANGED
@@ -1,8 +1,29 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
5
3
 
6
- bundle install
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'setup' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
7
10
 
8
- # Do any other automated setup that you need to do here
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("wisper", "setup")
@@ -37,6 +37,6 @@ Gem::Specification.new do |spec|
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'
40
- spec.add_development_dependency "bundler", '~> 1.14'
40
+ spec.add_development_dependency "bundler", '~> 2.2.5'
41
41
  spec.add_development_dependency "rake", '~> 10.0'
42
42
  end
@@ -133,7 +133,7 @@ module Coltrane
133
133
  end
134
134
 
135
135
  def clone(override_args = {})
136
- self.class.new({
136
+ self.class.new(**{
137
137
  semitones: semitones,
138
138
  letter_distance: letter_distance,
139
139
  compound: compound?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Coltrane
4
- VERSION = '4.0.6'
4
+ VERSION = '4.1.0'
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.0.6
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Maciel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-20 00:00:00.000000000 Z
11
+ date: 2021-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-monads
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.14'
89
+ version: 2.2.5
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.14'
96
+ version: 2.2.5
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -299,8 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  - !ruby/object:Gem::Version
300
300
  version: '0'
301
301
  requirements: []
302
- rubyforge_project:
303
- rubygems_version: 2.7.7
302
+ rubygems_version: 3.0.8
304
303
  signing_key:
305
304
  specification_version: 4
306
305
  summary: It deals with all sorts of calculations around music theory and allows for