wss_agent 0.0.16 → 0.0.17.pre1

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: 4aa441c8a0cc500e8e0ead1f0c09dbc01624581c
4
- data.tar.gz: c2fe89302d7c099c0961ebd36969fe4da4cd8e9a
3
+ metadata.gz: 3e98bc7bc98c8b9ab3ca28bf570be0155fcbea82
4
+ data.tar.gz: 1a28af23a96d0676d5f129c3e0c958d38dc5e678
5
5
  SHA512:
6
- metadata.gz: bf27a14d2bd2c649e3986277fdf9d2310ae82a059c3f931da196cebb9a30852606b8598800c47340ddf26c152f4a58af7e2c6763a2dd3195cbc61ce7561a0d6d
7
- data.tar.gz: 47c3fbe7778fd1335f705a9c490d33610c022ec43d33023ab49192920ad747fa99c5780bfac82232022de554f1ac07624ceb186f809ef64a7d5bcaa193101e8c
6
+ metadata.gz: a802878daaa1e9eee2d152a389d3e2ede1862093f225d071a4cf8b5667cf51f73ed78a6f8a46fb4f34d7e7bc1fc1de6496af7005580f6413088e4161a8fcfb56
7
+ data.tar.gz: 2c2bb0ae6e453ea0e74bfc4be11e27f5178c62918fd7d8893ff7c5940f5200c28bf17e0765629d45263a57fc87efac160cccbfc351c2a0442ead29115b950c20
@@ -10,7 +10,7 @@ module WssAgent
10
10
  # @option options [Boolean] 'all' if true then get all dependencies (include development dependencies)
11
11
  # @option options [String] 'excludes' list gem name which need to exclude from end list
12
12
  def specs(options = {})
13
- list_gems = Bundler.load.specs.to_a
13
+ list_gems = Bundler::Definition.build(Bundler.default_gemfile, Bundler.default_lockfile, false).specs.to_a
14
14
  if options['all']
15
15
  # get all gems
16
16
  list = {}
@@ -1,4 +1,4 @@
1
1
  module WssAgent
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17.pre1"
3
3
  NAME = 'wss_agent'
4
4
  end
@@ -31,7 +31,7 @@ describe WssAgent::CLI, vcr: true do
31
31
  let(:output) { capture(:stdout) { subject.update } }
32
32
  context 'when not found token' do
33
33
  it 'should display error message' do
34
- expect(output).to eq("\e[0;33m\"Can't find Token, please add your Whitesource API token in the wss_agent.yml file\"\e[0m\n")
34
+ expect(output).to eq("\e[1;31m\"Can't find Token, please add your Whitesource API token in the wss_agent.yml file\"\e[0m\n")
35
35
  end
36
36
  end
37
37
  it 'should display results' do
@@ -47,12 +47,6 @@ describe WssAgent::Configure do
47
47
  end
48
48
 
49
49
  describe '.current' do
50
- context 'when locally config is not found' do
51
- it 'should return default config' do
52
- allow(WssAgent::Configure).to receive(:current_path).and_return('miss.yml')
53
- expect(WssAgent::Configure.current).to eq(default_config)
54
- end
55
- end
56
50
  context 'when locally config is found' do
57
51
  before do
58
52
  allow(WssAgent::Configure).to receive(:current_path)
@@ -116,7 +116,7 @@ describe WssAgent::Specifications, vcr: true do
116
116
  allow_any_instance_of(WssAgent::GemSha1).to receive(:sha1).and_return("85b19b68a33f1dc0e147ff08bad66f7cfc52de36")
117
117
 
118
118
  load_specs = double(specs: Bundler::SpecSet.new([Gem::Specification.new('bacon', '1.2.0')]))
119
- allow(Bundler).to receive(:load).and_return(load_specs)
119
+ allow(Bundler::Definition).to receive(:build).and_return(load_specs)
120
120
  expect(WssAgent::Specifications.list).to eq([{"groupId"=>"bacon",
121
121
  "artifactId"=>"bacon-1.2.0.gem",
122
122
  "version"=>"1.2.0",
@@ -130,7 +130,7 @@ describe WssAgent::Specifications, vcr: true do
130
130
  it 'load bundle spec' do
131
131
  specs_double = double
132
132
  expect(specs_double).to receive(:specs).and_return([])
133
- expect(Bundler).to receive(:load).and_return(specs_double)
133
+ expect(Bundler::Definition).to receive(:build).and_return(specs_double)
134
134
  WssAgent::Specifications.specs
135
135
  end
136
136
  end
data/wss_agent.gemspec CHANGED
@@ -30,9 +30,9 @@ Gem::Specification.new do |spec|
30
30
 
31
31
  spec.add_dependency 'thor', '~> 0.19', '>= 0.19.1'
32
32
  spec.add_dependency 'yell', '~> 2.0', '>= 2.0.5'
33
- spec.add_dependency 'excon', '~> 0.42.1'
33
+ spec.add_dependency 'excon', '~> 0.45.1'
34
34
  spec.add_dependency 'faraday', '~> 0.9', '>= 0.9.1'
35
35
  spec.add_dependency 'faraday_middleware', '~> 0.9', '>= 0.9.1'
36
- spec.add_dependency 'awesome_print', '~> 1.6', '>= 1.6.0'
36
+ spec.add_dependency 'awesome_print', '~> 1.6', '>= 1.6.1'
37
37
  spec.add_dependency 'oj', '~> 2.11', '>= 2.11.2'
38
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wss_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Pechnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-03 00:00:00.000000000 Z
11
+ date: 2015-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -198,14 +198,14 @@ dependencies:
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 0.42.1
201
+ version: 0.45.1
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 0.42.1
208
+ version: 0.45.1
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: faraday
211
211
  requirement: !ruby/object:Gem::Requirement
@@ -255,7 +255,7 @@ dependencies:
255
255
  version: '1.6'
256
256
  - - ">="
257
257
  - !ruby/object:Gem::Version
258
- version: 1.6.0
258
+ version: 1.6.1
259
259
  type: :runtime
260
260
  prerelease: false
261
261
  version_requirements: !ruby/object:Gem::Requirement
@@ -265,7 +265,7 @@ dependencies:
265
265
  version: '1.6'
266
266
  - - ">="
267
267
  - !ruby/object:Gem::Version
268
- version: 1.6.0
268
+ version: 1.6.1
269
269
  - !ruby/object:Gem::Dependency
270
270
  name: oj
271
271
  requirement: !ruby/object:Gem::Requirement
@@ -354,9 +354,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
354
354
  version: '0'
355
355
  required_rubygems_version: !ruby/object:Gem::Requirement
356
356
  requirements:
357
- - - ">="
357
+ - - ">"
358
358
  - !ruby/object:Gem::Version
359
- version: '0'
359
+ version: 1.3.1
360
360
  requirements: []
361
361
  rubyforge_project:
362
362
  rubygems_version: 2.4.5