rainforest-cli 1.1.1 → 1.1.2
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/.travis.yml +1 -2
- data/CHANGELOG.md +4 -0
- data/lib/rainforest/cli.rb +0 -4
- data/lib/rainforest/cli/git_trigger.rb +1 -1
- data/lib/rainforest/cli/version.rb +1 -1
- data/spec/cli_spec.rb +8 -8
- data/spec/git_trigger_spec.rb +5 -3
- metadata +2 -3
- data/certs/ukd1.pem +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 145d2ab611a9abd9f1ce16389a459d514a84cd74
|
4
|
+
data.tar.gz: a8ac1150a5a839c24a842e8497f6685a2fc7d009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32e07df74e7e7129a1346ad9b121d01c81e4983c42b2803ac4b2851aad225d15c0d0ae336e5cd99bff06ae7b0d204b23a09d23eaf33f1b165dddf63edbca1b8d
|
7
|
+
data.tar.gz: 8832cc387bed3a61cc5af82dd96ce3cf094ecfe7b6e154dd26fd9cb550843c024ae366d4e41d0e74c36822ba7413f9eb2e074a1895906da5891ff856034c0cb8
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Rainforest CLI Changelog
|
2
2
|
|
3
|
+
## 1.1.2 - 15th January 2016
|
4
|
+
- Fixed specs (7c4af508d8cfa95363ee9976f1fa6f01f7c8d27b, @ukd1)
|
5
|
+
- Fixed a bug for users of Pivotal which caused tags to be incorrectly parsed (82966e7e739b590b396266d12d72605d6e19c12b, @chaselee)
|
6
|
+
|
3
7
|
## 1.1.0 - 6th January 2016
|
4
8
|
- Added support for tests stored in plain text format, so you can store them locally
|
5
9
|
|
data/lib/rainforest/cli.rb
CHANGED
@@ -7,7 +7,7 @@ module RainforestCli
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def self.extract_hashtags(commit_message)
|
10
|
-
commit_message.scan(/#([\w_-]+)/).flatten.map {|s| s.gsub('#','') }
|
10
|
+
commit_message.partition('@rainforest').last.scan(/#([\w_-]+)/).flatten.map {|s| s.gsub('#','') }
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.last_commit_message
|
data/spec/cli_spec.rb
CHANGED
@@ -6,7 +6,7 @@ describe RainforestCli do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
describe ".start" do
|
9
|
-
let(:valid_args) { %w(--token foo run --fg all) }
|
9
|
+
let(:valid_args) { %w(run --token foo run --fg all) }
|
10
10
|
let(:ok_progress) do
|
11
11
|
{
|
12
12
|
"state" => "in_progress",
|
@@ -27,7 +27,7 @@ describe RainforestCli do
|
|
27
27
|
|
28
28
|
context "with bad parameters" do
|
29
29
|
context "no token" do
|
30
|
-
let(:params) { %w(--custom-url http://ad-hoc.example.com) }
|
30
|
+
let(:params) { %w(run --custom-url http://ad-hoc.example.com) }
|
31
31
|
it 'errors out' do
|
32
32
|
expect_any_instance_of(Logger).to receive(:fatal).with('You must pass your API token using: --token TOKEN')
|
33
33
|
expect {
|
@@ -40,7 +40,7 @@ describe RainforestCli do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
context "git-trigger" do
|
43
|
-
let(:params) { %w(--token x --git-trigger) }
|
43
|
+
let(:params) { %w(run --token x --git-trigger) }
|
44
44
|
let(:commit_message) { 'a test commit message' }
|
45
45
|
|
46
46
|
def start_with_params(params, expected_exit_code = 2)
|
@@ -56,7 +56,7 @@ describe RainforestCli do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
describe "with tags parameter passed" do
|
59
|
-
let(:params) { %w(--token x --tag x --git-trigger) }
|
59
|
+
let(:params) { %w(run --token x --tag x --git-trigger) }
|
60
60
|
|
61
61
|
it "warns about the parameter being ignored" do
|
62
62
|
expect_any_instance_of(Logger).to receive(:warn).with("Specified tags are ignored when using --git-trigger")
|
@@ -66,7 +66,7 @@ describe RainforestCli do
|
|
66
66
|
end
|
67
67
|
|
68
68
|
describe "without tags parameter passed" do
|
69
|
-
let(:params) { %w(all --token x --git-trigger) }
|
69
|
+
let(:params) { %w(run all --token x --git-trigger) }
|
70
70
|
|
71
71
|
it "warns about the parameter being ignored" do
|
72
72
|
expect_any_instance_of(Logger).to receive(:warn).with("Specified tests are ignored when using --git-trigger")
|
@@ -109,7 +109,7 @@ describe RainforestCli do
|
|
109
109
|
end
|
110
110
|
|
111
111
|
context "with site-id and custom-url" do
|
112
|
-
let(:params) { %w(--token x --site 3 --custom-url http://ad-hoc.example.com) }
|
112
|
+
let(:params) { %w(run --token x --site 3 --custom-url http://ad-hoc.example.com) }
|
113
113
|
it "creates a new environment" do
|
114
114
|
http_client.should_receive(:post).with("/environments",
|
115
115
|
{
|
@@ -145,7 +145,7 @@ describe RainforestCli do
|
|
145
145
|
end
|
146
146
|
|
147
147
|
context "with environment-id" do
|
148
|
-
let(:params) { %w(--token x --environment 123) }
|
148
|
+
let(:params) { %w(run --token x --environment 123) }
|
149
149
|
|
150
150
|
it "starts the run with environment_id" do
|
151
151
|
RainforestCli::Runner.any_instance.stub(get_environment_id: 333)
|
@@ -159,7 +159,7 @@ describe RainforestCli do
|
|
159
159
|
end
|
160
160
|
|
161
161
|
context "with smart_folder_id" do
|
162
|
-
let(:params) { %w(--token x --folder 123) }
|
162
|
+
let(:params) { %w(run --token x --folder 123) }
|
163
163
|
|
164
164
|
it "starts the run with smart folder" do
|
165
165
|
http_client.should_receive(:post).with(
|
data/spec/git_trigger_spec.rb
CHANGED
@@ -33,9 +33,11 @@ describe RainforestCli::GitTrigger do
|
|
33
33
|
describe ".extract_hashtags" do
|
34
34
|
it "returns a list of hashtags" do
|
35
35
|
expect(described_class.extract_hashtags('hello, world')).to eq []
|
36
|
-
expect(described_class.extract_hashtags('#hello, #world')).to eq [
|
37
|
-
expect(described_class.extract_hashtags('#hello
|
38
|
-
expect(described_class.extract_hashtags('#
|
36
|
+
expect(described_class.extract_hashtags('#hello, #world')).to eq []
|
37
|
+
expect(described_class.extract_hashtags('@rainforest #hello, #world')).to eq ['hello', 'world']
|
38
|
+
expect(described_class.extract_hashtags('#notForRainforest @rainforest #hello, #world')).to eq ['hello', 'world']
|
39
|
+
expect(described_class.extract_hashtags('@rainforest #hello,#world')).to eq ['hello', 'world']
|
40
|
+
expect(described_class.extract_hashtags('@rainforest #dashes-work, #underscores_work #007')).to eq ['dashes-work', 'underscores_work', '007']
|
39
41
|
end
|
40
42
|
end
|
41
43
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rainforest-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Mathieu
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-01-
|
12
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -115,7 +115,6 @@ files:
|
|
115
115
|
- README.md
|
116
116
|
- Rakefile
|
117
117
|
- bin/rainforest
|
118
|
-
- certs/ukd1.pem
|
119
118
|
- lib/rainforest/cli.rb
|
120
119
|
- lib/rainforest/cli/csv_importer.rb
|
121
120
|
- lib/rainforest/cli/git_trigger.rb
|
data/certs/ukd1.pem
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
2
|
-
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMR0wGwYDVQQDDBRydXNz
|
3
|
-
ZWxsLmhvd2FyZC5zbWl0aDESMBAGCgmSJomT8ixk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