rainforest-cli 1.2.1 → 1.2.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
  SHA1:
3
- metadata.gz: 04fa2b25294be20d03d2c6f41b74d19d806b0fe5
4
- data.tar.gz: 5fe743cb8e0fae9c345c191d1e01f73705e3c24a
3
+ metadata.gz: 92aa2786f98a5e439e178408b1521a27b9f788e5
4
+ data.tar.gz: 4fb8adeafb3467880fe9e3be7adcd74a23abd28e
5
5
  SHA512:
6
- metadata.gz: 3bc25ec6f023a5d1078538d7368552a970a0079652bb04bfd20c9f5e9237b2d707a3ae88eb51ed82df87ed3188b8d921464adb0dcaf6a23f663b510156a75d2d
7
- data.tar.gz: 510f8eff35dddb1f889e3afa2db044fc393db312d89bcbf22ea1db330bf1a03286fb9bdc3c8baf2280aba0bb7d4d4a9f4a44d6a99161ce92aae91161887045ae
6
+ metadata.gz: 6564dc0380b6daaed3b00248d2a02c2cd4e8fc1c272fe68dc55925e7918919c490ff5c939d42534bebf1dbd0c21e593d540f7e61cbfcebc4e733c2989700cc20
7
+ data.tar.gz: ddd1a2abeba97ec6f4ef67c4e35f6cf274ab79af279b58da0fe683a07b6cc1e545c7d4c8c59f996f294201f6b34b506719b8065d75193d59ecf1e8446fa93589
data/.gitignore CHANGED
@@ -16,7 +16,6 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  tags
19
- .byebug_history
20
19
 
21
20
  *.csv
22
21
  spec/rainforest
data/.travis.yml CHANGED
@@ -4,5 +4,9 @@ rvm:
4
4
  - 2.2.3
5
5
  - 2.1.8
6
6
  - 2.0.0
7
+ - 1.9.3
8
+
9
+ before_install:
10
+ - gem update bundler
7
11
 
8
12
  script: bundle exec rspec spec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Rainforest CLI Changelog
2
2
 
3
+ # 1.2.2 - 21st March 2016
4
+ - Add support for Ruby 1.9.3 for easier usage on CircleCI. (16d74306a160c0fca8d34bc32493119051179c90, @epaulet)
5
+
3
6
  ## 1.2.1 - 18th March 2016
4
7
  - Fixed a bug where uploading was stuck in an infinite loop if an embedded id did not exist (7b02b2f66dbd47098a7c1d5f79bc60a0cbe8984f, @epaulet)
5
8
  - Fixed a bug that occurred when specifying a nested test folder without creating parent folders first (6c1b0e02c858f9d9c264e771f964b3e1a4ea8c7e, @epaulet)
data/Gemfile CHANGED
@@ -10,5 +10,4 @@ gem 'circlemator', require: false
10
10
  group :test do
11
11
  gem 'rspec', '~> 3.4.0'
12
12
  gem 'rspec-its', '~> 1.2.0'
13
- gem 'byebug'
14
13
  end
@@ -33,8 +33,8 @@ module RainforestCli
33
33
  JSON.parse(response.body)
34
34
  end
35
35
 
36
- def get(url, body = {}, retries_on_failures: false)
37
- wrap_exceptions(retries_on_failures) do
36
+ def get(url, body = {}, options = {})
37
+ wrap_exceptions(options[:retries_on_failures]) do
38
38
  response = HTTParty.get make_url(url), {
39
39
  body: body,
40
40
  headers: headers,
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module RainforestCli
3
- VERSION = '1.2.1'
3
+ VERSION = '1.2.2'
4
4
  end
@@ -13,7 +13,7 @@ describe RainforestCli::HttpClient do
13
13
  context 'retries_on_failures omitted' do
14
14
  it 'raises the error on the first exception' do
15
15
  expect(HTTParty).to receive(:get).once
16
- expect { subject.get(url, {}, retries_on_failures: false) }.to raise_error(Http::Exceptions::HttpException)
16
+ expect { subject.get(url) }.to raise_error(Http::Exceptions::HttpException)
17
17
  end
18
18
  end
19
19
 
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  require 'rspec/its'
3
- require 'byebug'
4
3
  require 'rainforest/cli'
5
4
 
6
5
  RainforestCli.logger = Logger.new(StringIO.new)
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.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-18 00:00:00.000000000 Z
12
+ date: 2016-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty