knapsack_pro 5.4.1 → 5.5.0
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/knapsack_pro/config/ci/app_veyor.rb +4 -0
- data/lib/knapsack_pro/config/ci/cirrus_ci.rb +4 -0
- data/lib/knapsack_pro/config/ci/codefresh.rb +4 -0
- data/lib/knapsack_pro/config/ci/codeship.rb +4 -0
- data/lib/knapsack_pro/config/ci/heroku.rb +4 -0
- data/lib/knapsack_pro/config/ci/semaphore.rb +2 -0
- data/lib/knapsack_pro/config/ci/semaphore2.rb +4 -0
- data/lib/knapsack_pro/config/ci/travis.rb +4 -0
- data/lib/knapsack_pro/version.rb +1 -1
- data/spec/knapsack_pro/config/ci/app_veyor_spec.rb +14 -0
- data/spec/knapsack_pro/config/ci/codefresh_spec.rb +15 -0
- data/spec/knapsack_pro/config/ci/codeship_spec.rb +14 -0
- data/spec/knapsack_pro/config/env_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 792df8662b070a5352ff707690d0ea394a938787a2656856aa5e8a4098954765
|
4
|
+
data.tar.gz: 668a573e3cda8c09b99013d8c2b9ea962e13abc1febc0e88bd8613daf7341bd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bdd45d85651fc9528a45f9f8604accce2abc04788d0c81809617ce30319901020decb75bdb164cccda7e70fcc9de09c5d08fde4693420684100a502dc5d7bd0
|
7
|
+
data.tar.gz: 8c500895bf104fdde5e0817e55a30c2d3d54f3020e19039e291fe6dde836f9ede1e5dc5371c91b1413d23fc2fec998242bae539dbade17c21d08bb05a7d87cb5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 5.5.0
|
4
|
+
|
5
|
+
* Detect user seats for AppVeyor, Codefresh, Codeship
|
6
|
+
|
7
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/pull/221
|
8
|
+
|
9
|
+
https://github.com/KnapsackPro/knapsack_pro-ruby/compare/v5.4.1...v5.5.0
|
10
|
+
|
3
11
|
### 5.4.1
|
4
12
|
|
5
13
|
* Fixes RSpec conflict (see https://github.com/KnapsackPro/knapsack_pro-ruby/issues/217)
|
data/lib/knapsack_pro/version.rb
CHANGED
@@ -70,4 +70,18 @@ describe KnapsackPro::Config::CI::AppVeyor do
|
|
70
70
|
it { should be nil }
|
71
71
|
end
|
72
72
|
end
|
73
|
+
|
74
|
+
describe '#user_seat' do
|
75
|
+
subject { described_class.new.user_seat }
|
76
|
+
|
77
|
+
context 'when the APPVEYOR_REPO_COMMIT_AUTHOR environment variable exists' do
|
78
|
+
let(:env) { { 'APPVEYOR_REPO_COMMIT_AUTHOR' => 'jane_doe' } }
|
79
|
+
|
80
|
+
it { should eql 'jane_doe' }
|
81
|
+
end
|
82
|
+
|
83
|
+
context "when the APPVEYOR_REPO_COMMIT_AUTHOR environment variable doesn't exist" do
|
84
|
+
it { should be nil }
|
85
|
+
end
|
86
|
+
end
|
73
87
|
end
|
@@ -63,4 +63,19 @@ describe KnapsackPro::Config::CI::Codefresh do
|
|
63
63
|
|
64
64
|
it { should be nil }
|
65
65
|
end
|
66
|
+
|
67
|
+
|
68
|
+
describe '#user_seat' do
|
69
|
+
subject { described_class.new.user_seat }
|
70
|
+
|
71
|
+
context 'when the CF_BUILD_INITIATOR environment variable exists' do
|
72
|
+
let(:env) { { 'CF_BUILD_INITIATOR' => 'jane_doe' } }
|
73
|
+
|
74
|
+
it { should eql 'jane_doe' }
|
75
|
+
end
|
76
|
+
|
77
|
+
context "when the CF_BUILD_INITIATOR environment variable doesn't exist" do
|
78
|
+
it { should be nil }
|
79
|
+
end
|
80
|
+
end
|
66
81
|
end
|
@@ -63,4 +63,18 @@ describe KnapsackPro::Config::CI::Codeship do
|
|
63
63
|
|
64
64
|
it { should be nil }
|
65
65
|
end
|
66
|
+
|
67
|
+
describe '#user_seat' do
|
68
|
+
subject { described_class.new.user_seat }
|
69
|
+
|
70
|
+
context 'when the CI_COMMITTER_NAME environment variable exists' do
|
71
|
+
let(:env) { { 'CI_COMMITTER_NAME' => 'jane_doe' } }
|
72
|
+
|
73
|
+
it { should eql 'jane_doe' }
|
74
|
+
end
|
75
|
+
|
76
|
+
context "when the CI_COMMITTER_NAME environment variable doesn't exist" do
|
77
|
+
it { should be nil }
|
78
|
+
end
|
79
|
+
end
|
66
80
|
end
|
@@ -1082,7 +1082,7 @@ describe KnapsackPro::Config::Env do
|
|
1082
1082
|
['Other', { 'CI' => 'true'}],
|
1083
1083
|
[nil, {}],
|
1084
1084
|
].each do |ci, env|
|
1085
|
-
it "detects #{ci}
|
1085
|
+
it "detects #{ci || 'missing CI from env or development'}" do
|
1086
1086
|
stub_const("ENV", env)
|
1087
1087
|
|
1088
1088
|
expect(described_class.ci_provider).to eq(ci)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knapsack_pro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ArturT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|