cpflow 3.0.0 → 3.0.1

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: 1ad89476407f58ede33a74893c0b6c3f12d5484a89c728277cce513070100d5a
4
- data.tar.gz: da2971df0ae3f45d3f3c5e0cde54ac2a95ad68570254f0f26999380a93b5a84f
3
+ metadata.gz: 305f8dddc321aed06da473ca199d7411a40ed8bf3498ba09b4f7d77b1fb2f554
4
+ data.tar.gz: 9656d940052e40e1914a7930606022b5acc75483aa10b1fe144e4ed9a68ac4d9
5
5
  SHA512:
6
- metadata.gz: 88e7fed762aff1c68521fd22e1cddacfee31170fcc1e03acf1731e0e45884c02264882c141bcc5a9d48afd353071ce0b977655553ca06916879b7edcbf1c8ded
7
- data.tar.gz: cd66a49df7bc1f8a797795199c1125045a46bf8e78db58f7d32a899085d6af726833a8611363c87517f9e3a91c271300312ebc7e75b124aa4c573b3779c9eb84
6
+ metadata.gz: 1a51e614265cbbc86f89251ed5a8a8804d9caabe316301c26d0d839c80713b583726fae91f2c24bb1b778caaff23e6156f027a9b051c892816fe788b1ead5e8a
7
+ data.tar.gz: 75a834c607df1cefce11f509059c60ae6db790a2be7a9217cc054401f30b855be0a388e61ecce56413929ea2cd24a0b479ce3e474c964127e134f571cd816690
@@ -16,7 +16,7 @@ jobs:
16
16
  - name: Set up Ruby
17
17
  uses: ruby/setup-ruby@v1
18
18
  with:
19
- ruby-version: "2.7"
19
+ ruby-version: "3.2"
20
20
  bundler-cache: true
21
21
  - name: Install dependencies
22
22
  run: bundle install
@@ -13,7 +13,7 @@ jobs:
13
13
  uses: ./.github/workflows/rspec-shared.yml
14
14
  with:
15
15
  os-version: ubuntu-latest
16
- ruby-version: "2.7"
16
+ ruby-version: "3.2"
17
17
  test-tag: ~slow
18
18
  secrets: inherit
19
19
 
@@ -23,6 +23,6 @@ jobs:
23
23
  if: github.event_name == 'workflow_dispatch'
24
24
  with:
25
25
  os-version: ubuntu-latest
26
- ruby-version: "2.7"
26
+ ruby-version: "3.2"
27
27
  test-tag: slow
28
28
  secrets: inherit
@@ -16,7 +16,7 @@ jobs:
16
16
  - name: Set up Ruby
17
17
  uses: ruby/setup-ruby@v1
18
18
  with:
19
- ruby-version: "2.7"
19
+ ruby-version: "3.2"
20
20
  bundler-cache: true
21
21
  - name: Install dependencies
22
22
  run: bundle install
data/CHANGELOG.md CHANGED
@@ -14,6 +14,13 @@ Changes since the last non-beta release.
14
14
 
15
15
  _Please add entries here for your pull requests that have not yet been released._
16
16
 
17
+
18
+ ## [3.0.0] - 2024-06-20
19
+ First release of `cpflow`.
20
+
21
+ ## [2.2.4] - 2024-06-20
22
+ Deprecate `cpl` CLI. New gem is `cpflow`
23
+
17
24
  ## [2.2.1] - 2024-06-17
18
25
 
19
26
  ### Fixed
@@ -239,7 +246,9 @@ _Please add entries here for your pull requests that have not yet been released.
239
246
 
240
247
  - Initial release
241
248
 
242
- [Unreleased]: https://github.com/shakacode/control-plane-flow/compare/v2.2.1...HEAD
249
+ [Unreleased]: https://github.com/shakacode/control-plane-flow/compare/v3.0.0...HEAD
250
+ [3.0.0]: https://github.com/shakacode/control-plane-flow/compare/v2.2.4...v3.0.0
251
+ [2.2.4]: https://github.com/shakacode/control-plane-flow/compare/v2.2.1...v2.2.4
243
252
  [2.2.1]: https://github.com/shakacode/control-plane-flow/compare/v2.2.0...v2.2.1
244
253
  [2.2.0]: https://github.com/shakacode/control-plane-flow/compare/v2.1.0...v2.2.0
245
254
  [2.1.0]: https://github.com/shakacode/control-plane-flow/compare/v2.0.2...v2.1.0
data/Gemfile CHANGED
@@ -4,4 +4,14 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
+ gem "debug", "~> 1"
8
+ gem "overcommit", "~> 0.60.0"
7
9
  gem "rake", "~> 13.0"
10
+ gem "rspec", "~> 3.12.0"
11
+ gem "rspec-retry", "~> 0.6.2"
12
+ gem "rubocop", "~> 1.64.1"
13
+ gem "rubocop-rake", "~> 0.6.0"
14
+ gem "rubocop-rspec", "~> 3.0.1"
15
+ gem "simplecov", "~> 0.22.0"
16
+ gem "timecop", "~> 0.9.6"
17
+ gem "webmock", "~> 3.18.1"
data/Gemfile.lock CHANGED
@@ -1,8 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cpflow (3.0.0)
5
- debug (~> 1.7.1)
4
+ cpflow (3.0.1)
6
5
  dotenv (~> 2.8.1)
7
6
  jwt (~> 2.8.1)
8
7
  psych (~> 5.1.0)
@@ -11,18 +10,18 @@ PATH
11
10
  GEM
12
11
  remote: https://rubygems.org/
13
12
  specs:
14
- addressable (2.8.6)
15
- public_suffix (>= 2.0.2, < 6.0)
13
+ addressable (2.8.7)
14
+ public_suffix (>= 2.0.2, < 7.0)
16
15
  ast (2.4.2)
17
16
  base64 (0.2.0)
18
- bigdecimal (3.1.7)
17
+ bigdecimal (3.1.8)
19
18
  childprocess (4.1.0)
20
19
  crack (1.0.0)
21
20
  bigdecimal
22
21
  rexml
23
- debug (1.7.2)
24
- irb (>= 1.5.0)
25
- reline (>= 0.3.1)
22
+ debug (1.9.2)
23
+ irb (~> 1.10)
24
+ reline (>= 0.3.8)
26
25
  diff-lcs (1.5.1)
27
26
  docile (1.4.0)
28
27
  dotenv (2.8.1)
@@ -35,26 +34,28 @@ GEM
35
34
  json (2.7.2)
36
35
  jwt (2.8.2)
37
36
  base64
37
+ language_server-protocol (3.17.0.3)
38
38
  overcommit (0.60.0)
39
39
  childprocess (>= 0.6.3, < 5)
40
40
  iniparse (~> 1.4)
41
41
  rexml (~> 3.2)
42
- parallel (1.24.0)
43
- parser (3.3.0.5)
42
+ parallel (1.25.1)
43
+ parser (3.3.3.0)
44
44
  ast (~> 2.4.1)
45
45
  racc
46
46
  psych (5.1.2)
47
47
  stringio
48
- public_suffix (5.0.5)
49
- racc (1.7.3)
48
+ public_suffix (6.0.0)
49
+ racc (1.8.0)
50
50
  rainbow (3.1.1)
51
51
  rake (13.2.1)
52
52
  rdoc (6.7.0)
53
53
  psych (>= 4.0.0)
54
- regexp_parser (2.9.0)
54
+ regexp_parser (2.9.2)
55
55
  reline (0.5.9)
56
56
  io-console (~> 0.5)
57
- rexml (3.2.6)
57
+ rexml (3.3.1)
58
+ strscan
58
59
  rspec (3.12.0)
59
60
  rspec-core (~> 3.12.0)
60
61
  rspec-expectations (~> 3.12.0)
@@ -70,25 +71,23 @@ GEM
70
71
  rspec-retry (0.6.2)
71
72
  rspec-core (> 3.3)
72
73
  rspec-support (3.12.2)
73
- rubocop (1.45.1)
74
+ rubocop (1.64.1)
74
75
  json (~> 2.3)
76
+ language_server-protocol (>= 3.17.0)
75
77
  parallel (~> 1.10)
76
- parser (>= 3.2.0.0)
78
+ parser (>= 3.3.0.2)
77
79
  rainbow (>= 2.2.2, < 4.0)
78
80
  regexp_parser (>= 1.8, < 3.0)
79
81
  rexml (>= 3.2.5, < 4.0)
80
- rubocop-ast (>= 1.24.1, < 2.0)
82
+ rubocop-ast (>= 1.31.1, < 2.0)
81
83
  ruby-progressbar (~> 1.7)
82
84
  unicode-display_width (>= 2.4.0, < 3.0)
83
- rubocop-ast (1.31.2)
84
- parser (>= 3.3.0.4)
85
- rubocop-capybara (2.20.0)
86
- rubocop (~> 1.41)
85
+ rubocop-ast (1.31.3)
86
+ parser (>= 3.3.1.0)
87
87
  rubocop-rake (0.6.0)
88
88
  rubocop (~> 1.0)
89
- rubocop-rspec (2.18.1)
90
- rubocop (~> 1.33)
91
- rubocop-capybara (~> 2.17)
89
+ rubocop-rspec (3.0.1)
90
+ rubocop (~> 1.61)
92
91
  ruby-progressbar (1.13.0)
93
92
  simplecov (0.22.0)
94
93
  docile (~> 1.1)
@@ -97,8 +96,9 @@ GEM
97
96
  simplecov-html (0.12.3)
98
97
  simplecov_json_formatter (0.1.4)
99
98
  stringio (3.1.1)
99
+ strscan (3.1.0)
100
100
  thor (1.2.2)
101
- timecop (0.9.8)
101
+ timecop (0.9.10)
102
102
  unicode-display_width (2.5.0)
103
103
  webmock (3.18.1)
104
104
  addressable (>= 2.8.0)
@@ -111,13 +111,14 @@ PLATFORMS
111
111
 
112
112
  DEPENDENCIES
113
113
  cpflow!
114
+ debug (~> 1)
114
115
  overcommit (~> 0.60.0)
115
116
  rake (~> 13.0)
116
117
  rspec (~> 3.12.0)
117
118
  rspec-retry (~> 0.6.2)
118
- rubocop (~> 1.45.0)
119
+ rubocop (~> 1.64.1)
119
120
  rubocop-rake (~> 0.6.0)
120
- rubocop-rspec (~> 2.18.1)
121
+ rubocop-rspec (~> 3.0.1)
121
122
  simplecov (~> 0.22.0)
122
123
  timecop (~> 0.9.6)
123
124
  webmock (~> 3.18.1)
data/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  [![Gem](https://badge.fury.io/rb/cpflow.svg)](https://badge.fury.io/rb/cpflow)
13
13
 
14
14
 
15
- Here's a playbook for migrating from [Heroku Flow](https://www.heroku.com/flow) to [Control Plane](https://shakacode.controlplane.com) with our `cpflow` gem source code.
15
+ Enable the [Heroku Flow](https://www.heroku.com/flow) deployment model with [Control Plane](https://shakacode.controlplane.com) using the `cpflow` gem.
16
16
 
17
17
  ----
18
18
 
data/cpflow.gemspec CHANGED
@@ -15,22 +15,11 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  spec.required_ruby_version = ">= 2.7.0"
17
17
 
18
- spec.add_dependency "debug", "~> 1.7.1"
19
18
  spec.add_dependency "dotenv", "~> 2.8.1"
20
19
  spec.add_dependency "jwt", "~> 2.8.1"
21
20
  spec.add_dependency "psych", "~> 5.1.0"
22
21
  spec.add_dependency "thor", "~> 1.2.1"
23
22
 
24
- spec.add_development_dependency "overcommit", "~> 0.60.0"
25
- spec.add_development_dependency "rspec", "~> 3.12.0"
26
- spec.add_development_dependency "rspec-retry", "~> 0.6.2"
27
- spec.add_development_dependency "rubocop", "~> 1.45.0"
28
- spec.add_development_dependency "rubocop-rake", "~> 0.6.0"
29
- spec.add_development_dependency "rubocop-rspec", "~> 2.18.1"
30
- spec.add_development_dependency "simplecov", "~> 0.22.0"
31
- spec.add_development_dependency "timecop", "~> 0.9.6"
32
- spec.add_development_dependency "webmock", "~> 3.18.1"
33
-
34
23
  spec.files = `git ls-files -z`.split("\x0").reject do |file|
35
24
  file.match(%r{^(coverage|pkg|spec|tmp)/})
36
25
  end
data/lib/command/base.rb CHANGED
@@ -405,7 +405,7 @@ module Command
405
405
  type: :string,
406
406
  required: required,
407
407
  default: VALIDATIONS_WITHOUT_ADDITIONAL_OPTIONS.join(","),
408
- valid_regex: /^(#{ALL_VALIDATIONS.join("|")})(,(#{ALL_VALIDATIONS.join("|")}))*$/
408
+ valid_regex: /^(#{ALL_VALIDATIONS.join('|')})(,(#{ALL_VALIDATIONS.join('|')}))*$/
409
409
  }
410
410
  }
411
411
  end
data/lib/command/info.rb CHANGED
@@ -75,7 +75,7 @@ module Command
75
75
  if config.org
76
76
  result.push(config.org)
77
77
  else
78
- config.apps.each do |_, app_options|
78
+ config.apps.each_value do |app_options|
79
79
  org = app_org(app_options)
80
80
  result.push(org) if org && !result.include?(org)
81
81
  end
@@ -173,7 +173,7 @@ module Command
173
173
  puts "\nThere are no apps starting with some names. If you wish to create any, do so with " \
174
174
  "(replace 'whatever' with whatever suffix you want):"
175
175
 
176
- @missing_apps_starting_with.each do |app, _workloads|
176
+ @missing_apps_starting_with.each_key do |app|
177
177
  puts " - `cpflow setup-app -a #{app}-whatever`"
178
178
  end
179
179
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cpflow
4
- VERSION = "3.0.0"
4
+ VERSION = "3.0.1"
5
5
  MIN_CPLN_VERSION = "2.0.1"
6
6
  end
data/lib/cpflow.rb CHANGED
@@ -64,7 +64,7 @@ module Cpflow
64
64
  check_cpflow_version
65
65
  fix_help_option
66
66
 
67
- super(*args)
67
+ super
68
68
  end
69
69
 
70
70
  def self.check_cpln_version # rubocop:disable Metrics/MethodLength
@@ -127,7 +127,7 @@ module Cpflow
127
127
  def self.is_thor_reserved_word?(word, type) # rubocop:disable Naming/PredicateName
128
128
  return false if word == "run"
129
129
 
130
- super(word, type)
130
+ super
131
131
  end
132
132
 
133
133
  def self.deprecated_commands
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Gordon
@@ -9,22 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-06-21 00:00:00.000000000 Z
12
+ date: 2024-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: debug
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - "~>"
19
- - !ruby/object:Gem::Version
20
- version: 1.7.1
21
- type: :runtime
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "~>"
26
- - !ruby/object:Gem::Version
27
- version: 1.7.1
28
14
  - !ruby/object:Gem::Dependency
29
15
  name: dotenv
30
16
  requirement: !ruby/object:Gem::Requirement
@@ -81,132 +67,6 @@ dependencies:
81
67
  - - "~>"
82
68
  - !ruby/object:Gem::Version
83
69
  version: 1.2.1
84
- - !ruby/object:Gem::Dependency
85
- name: overcommit
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - "~>"
89
- - !ruby/object:Gem::Version
90
- version: 0.60.0
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: 0.60.0
98
- - !ruby/object:Gem::Dependency
99
- name: rspec
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - "~>"
103
- - !ruby/object:Gem::Version
104
- version: 3.12.0
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - "~>"
110
- - !ruby/object:Gem::Version
111
- version: 3.12.0
112
- - !ruby/object:Gem::Dependency
113
- name: rspec-retry
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - "~>"
117
- - !ruby/object:Gem::Version
118
- version: 0.6.2
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - "~>"
124
- - !ruby/object:Gem::Version
125
- version: 0.6.2
126
- - !ruby/object:Gem::Dependency
127
- name: rubocop
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - "~>"
131
- - !ruby/object:Gem::Version
132
- version: 1.45.0
133
- type: :development
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: 1.45.0
140
- - !ruby/object:Gem::Dependency
141
- name: rubocop-rake
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - "~>"
145
- - !ruby/object:Gem::Version
146
- version: 0.6.0
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - "~>"
152
- - !ruby/object:Gem::Version
153
- version: 0.6.0
154
- - !ruby/object:Gem::Dependency
155
- name: rubocop-rspec
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - "~>"
159
- - !ruby/object:Gem::Version
160
- version: 2.18.1
161
- type: :development
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - "~>"
166
- - !ruby/object:Gem::Version
167
- version: 2.18.1
168
- - !ruby/object:Gem::Dependency
169
- name: simplecov
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - "~>"
173
- - !ruby/object:Gem::Version
174
- version: 0.22.0
175
- type: :development
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - "~>"
180
- - !ruby/object:Gem::Version
181
- version: 0.22.0
182
- - !ruby/object:Gem::Dependency
183
- name: timecop
184
- requirement: !ruby/object:Gem::Requirement
185
- requirements:
186
- - - "~>"
187
- - !ruby/object:Gem::Version
188
- version: 0.9.6
189
- type: :development
190
- prerelease: false
191
- version_requirements: !ruby/object:Gem::Requirement
192
- requirements:
193
- - - "~>"
194
- - !ruby/object:Gem::Version
195
- version: 0.9.6
196
- - !ruby/object:Gem::Dependency
197
- name: webmock
198
- requirement: !ruby/object:Gem::Requirement
199
- requirements:
200
- - - "~>"
201
- - !ruby/object:Gem::Version
202
- version: 3.18.1
203
- type: :development
204
- prerelease: false
205
- version_requirements: !ruby/object:Gem::Requirement
206
- requirements:
207
- - - "~>"
208
- - !ruby/object:Gem::Version
209
- version: 3.18.1
210
70
  description: CLI for providing Heroku-like platform-as-a-service on Control Plane
211
71
  email:
212
72
  - justin@shakacode.com