berkshelf-api-client 2.0.2 → 3.0.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
  SHA1:
3
- metadata.gz: c8992859c8aa1ae4d0d8174264ae072931a94f86
4
- data.tar.gz: 2cfd32279d56f45e3c5972caed3f7ab07656c5f6
3
+ metadata.gz: bb9c9893aad0bb70543e6ba21dc3732f96e309d4
4
+ data.tar.gz: 96d75a8777c7eb87a5d81176b6ed7fce66d3956c
5
5
  SHA512:
6
- metadata.gz: 7421c99b70ac8d98f93939ff018067ddf0fe937f40b6519ac8405d3bc23897d4ef88855a61eff9b85dc2ab9236ee24f8e70d3909b834e8754e07ffd27ce7b88d
7
- data.tar.gz: 835d85c3c2fe4dd9a0288023ef75423db5256fddc498e9841bfe9e8094fc08639c214f7c208b112723e415e275975a34b14b94d89c1e91dcc4aca6ce29dfb4f5
6
+ metadata.gz: 491641676bda8db8174d5d8076ffc22ce082589892d5f9fbd1404d5e3317535423adf1afd4e33787acc944cc79571a70fb80aa066bbc2d141d49688d86fe27c0
7
+ data.tar.gz: f6071fd364d0c83851f847551cdc02d62d73a1eef928e582094020af687933d97cf104e6d843ff81a9fea5f134cbb084b2b3555aeb73a1df899c422a3e3e24ce
data/.travis.yml CHANGED
@@ -1,13 +1,18 @@
1
1
  sudo: false
2
2
  language: ruby
3
- rvm:
4
- - 2.0.0
5
- - 2.1
6
- - 2.2
7
3
  cache: bundler
4
+ dist: precise
5
+ branches:
6
+ only:
7
+ - master
8
8
  addons:
9
9
  apt:
10
10
  packages:
11
11
  - libarchive12
12
12
  - libarchive-dev
13
+ matrix:
14
+ include:
15
+ - rvm: 2.2.5
16
+ - rvm: 2.3.1
17
+ - rvm: ruby-head
13
18
  script: bundle exec rake spec
data/Gemfile CHANGED
@@ -3,8 +3,8 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :guard do
6
- gem 'coolline', '~> 0.4.2'
7
- gem 'guard', '~> 1.8'
6
+ gem 'coolline'
7
+ gem 'guard'
8
8
  gem 'guard-cucumber'
9
9
  gem 'guard-rspec'
10
10
  gem 'guard-spork'
@@ -31,6 +31,6 @@ group :guard do
31
31
  end
32
32
 
33
33
  group :test do
34
- gem "berkshelf-api", "~> 2.1"
35
- gem "reel", "~> 0.6.0"
34
+ gem "berkshelf-api"
35
+ gem "reel"
36
36
  end
@@ -20,21 +20,22 @@ Gem::Specification.new do |spec|
20
20
  spec.summary = spec.description
21
21
  spec.homepage = "http://berkshelf.com"
22
22
  spec.license = "Apache 2.0"
23
- spec.required_ruby_version = ">= 2.0.0"
23
+ spec.required_ruby_version = ">= 2.2"
24
24
 
25
25
  spec.files = `git ls-files`.split($/)
26
26
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
27
27
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.add_dependency "faraday", "~> 0.9.1"
31
- spec.add_dependency "httpclient", "~> 2.7.0"
32
- spec.add_dependency "ridley", "~> 4.5"
30
+ spec.add_dependency "faraday", "~> 0.9"
31
+ spec.add_dependency "httpclient", "~> 2.7"
32
+ spec.add_dependency "ridley", ">= 4.5", "< 6.0"
33
33
 
34
- spec.add_development_dependency "bundler", "~> 1.3"
34
+ spec.add_development_dependency "bundler"
35
35
  spec.add_development_dependency "rake"
36
- spec.add_development_dependency "fuubar", "~> 1.1"
37
- spec.add_development_dependency "rspec", "~> 2.13"
38
- spec.add_development_dependency "spork", "~> 0.9"
39
- spec.add_development_dependency "yard", "~> 0.8"
36
+ spec.add_development_dependency "fuubar"
37
+ spec.add_development_dependency "rspec"
38
+ spec.add_development_dependency "rspec-its"
39
+ spec.add_development_dependency "spork"
40
+ spec.add_development_dependency "yard"
40
41
  end
@@ -21,7 +21,7 @@ module Berkshelf::APIClient
21
21
  end
22
22
  end
23
23
  rescue Ridley::Errors::HTTPNotFound
24
- raise ServiceNotFound, "service not found at: #{url}"
24
+ raise ServiceNotFound, "service not found at: #{@url}"
25
25
  end
26
26
  end
27
27
  end
@@ -1,5 +1,5 @@
1
1
  module Berkshelf
2
2
  module APIClient
3
- VERSION = "2.0.2"
3
+ VERSION = "3.0.0"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
- require 'rubygems'
2
1
  require 'bundler'
3
2
  require 'rspec'
3
+ require 'rspec/its'
4
4
  require 'spork'
5
5
  require 'berkshelf/api/rspec'
6
6
 
@@ -15,7 +15,6 @@ Spork.prefork do
15
15
  end
16
16
 
17
17
  config.mock_with :rspec
18
- config.treat_symbols_as_metadata_keys_with_true_values = true
19
18
  config.filter_run focus: true
20
19
  config.run_all_when_everything_filtered = true
21
20
 
@@ -21,7 +21,7 @@ describe Berkshelf::APIClient::Connection do
21
21
  end
22
22
 
23
23
  it "contains a item for each dependency" do
24
- expect(subject).to have(3).items
24
+ expect(subject.size).to eq(3)
25
25
  expect(subject[0].name).to eql("ruby")
26
26
  expect(subject[0].version).to eql("1.2.3")
27
27
  expect(subject[1].name).to eql("ruby")
@@ -56,7 +56,7 @@ describe Berkshelf::APIClient::Connection do
56
56
 
57
57
  context "when the connection to the service fails" do
58
58
  before do
59
- instance.should_receive(:get).and_raise(Faraday::Error::ConnectionFailed.new(StandardError))
59
+ expect(instance).to receive(:get).and_raise(Faraday::Error::ConnectionFailed.new(StandardError))
60
60
  end
61
61
 
62
62
  it "raises a Berkshelf::APIClient::ServiceUnavaiable" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: berkshelf-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-03-08 00:00:00.000000000 Z
13
+ date: 2016-08-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday
@@ -18,56 +18,62 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: 0.9.1
21
+ version: '0.9'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: 0.9.1
28
+ version: '0.9'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: httpclient
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 2.7.0
35
+ version: '2.7'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 2.7.0
42
+ version: '2.7'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: ridley
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '4.5'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '6.0'
50
53
  type: :runtime
51
54
  prerelease: false
52
55
  version_requirements: !ruby/object:Gem::Requirement
53
56
  requirements:
54
- - - "~>"
57
+ - - ">="
55
58
  - !ruby/object:Gem::Version
56
59
  version: '4.5'
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '6.0'
57
63
  - !ruby/object:Gem::Dependency
58
64
  name: bundler
59
65
  requirement: !ruby/object:Gem::Requirement
60
66
  requirements:
61
- - - "~>"
67
+ - - ">="
62
68
  - !ruby/object:Gem::Version
63
- version: '1.3'
69
+ version: '0'
64
70
  type: :development
65
71
  prerelease: false
66
72
  version_requirements: !ruby/object:Gem::Requirement
67
73
  requirements:
68
- - - "~>"
74
+ - - ">="
69
75
  - !ruby/object:Gem::Version
70
- version: '1.3'
76
+ version: '0'
71
77
  - !ruby/object:Gem::Dependency
72
78
  name: rake
73
79
  requirement: !ruby/object:Gem::Requirement
@@ -86,58 +92,72 @@ dependencies:
86
92
  name: fuubar
87
93
  requirement: !ruby/object:Gem::Requirement
88
94
  requirements:
89
- - - "~>"
95
+ - - ">="
90
96
  - !ruby/object:Gem::Version
91
- version: '1.1'
97
+ version: '0'
92
98
  type: :development
93
99
  prerelease: false
94
100
  version_requirements: !ruby/object:Gem::Requirement
95
101
  requirements:
96
- - - "~>"
102
+ - - ">="
97
103
  - !ruby/object:Gem::Version
98
- version: '1.1'
104
+ version: '0'
99
105
  - !ruby/object:Gem::Dependency
100
106
  name: rspec
101
107
  requirement: !ruby/object:Gem::Requirement
102
108
  requirements:
103
- - - "~>"
109
+ - - ">="
104
110
  - !ruby/object:Gem::Version
105
- version: '2.13'
111
+ version: '0'
106
112
  type: :development
107
113
  prerelease: false
108
114
  version_requirements: !ruby/object:Gem::Requirement
109
115
  requirements:
110
- - - "~>"
116
+ - - ">="
111
117
  - !ruby/object:Gem::Version
112
- version: '2.13'
118
+ version: '0'
119
+ - !ruby/object:Gem::Dependency
120
+ name: rspec-its
121
+ requirement: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ type: :development
127
+ prerelease: false
128
+ version_requirements: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
113
133
  - !ruby/object:Gem::Dependency
114
134
  name: spork
115
135
  requirement: !ruby/object:Gem::Requirement
116
136
  requirements:
117
- - - "~>"
137
+ - - ">="
118
138
  - !ruby/object:Gem::Version
119
- version: '0.9'
139
+ version: '0'
120
140
  type: :development
121
141
  prerelease: false
122
142
  version_requirements: !ruby/object:Gem::Requirement
123
143
  requirements:
124
- - - "~>"
144
+ - - ">="
125
145
  - !ruby/object:Gem::Version
126
- version: '0.9'
146
+ version: '0'
127
147
  - !ruby/object:Gem::Dependency
128
148
  name: yard
129
149
  requirement: !ruby/object:Gem::Requirement
130
150
  requirements:
131
- - - "~>"
151
+ - - ">="
132
152
  - !ruby/object:Gem::Version
133
- version: '0.8'
153
+ version: '0'
134
154
  type: :development
135
155
  prerelease: false
136
156
  version_requirements: !ruby/object:Gem::Requirement
137
157
  requirements:
138
- - - "~>"
158
+ - - ">="
139
159
  - !ruby/object:Gem::Version
140
- version: '0.8'
160
+ version: '0'
141
161
  description: API Client for communicating with a Berkshelf API server
142
162
  email:
143
163
  - jamie@vialstudios.com
@@ -178,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
198
  requirements:
179
199
  - - ">="
180
200
  - !ruby/object:Gem::Version
181
- version: 2.0.0
201
+ version: '2.2'
182
202
  required_rubygems_version: !ruby/object:Gem::Requirement
183
203
  requirements:
184
204
  - - ">="
@@ -186,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
206
  version: '0'
187
207
  requirements: []
188
208
  rubyforge_project:
189
- rubygems_version: 2.4.5.1
209
+ rubygems_version: 2.4.8
190
210
  signing_key:
191
211
  specification_version: 4
192
212
  summary: API Client for communicating with a Berkshelf API server
@@ -195,4 +215,3 @@ test_files:
195
215
  - spec/unit/berkshelf/api_client/connection_spec.rb
196
216
  - spec/unit/berkshelf/api_client/remote_cookbook_spec.rb
197
217
  - spec/unit/berkshelf/api_client_spec.rb
198
- has_rdoc: