nexus_cli 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/nexus_cli/remote.rb +5 -5
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -38,7 +38,7 @@ module NexusCli
38
38
  end
39
39
  group_id, artifact_id, version, extension = split_artifact
40
40
  begin
41
- fileData = nexus['service/local/artifact/maven/redirect'].get ({params: {r: configuration['repository'], g: group_id, a: artifact_id, v: version, e: extension}})
41
+ fileData = nexus['service/local/artifact/maven/redirect'].get({:params => {:r => configuration['repository'], :g => group_id, :a => artifact_id, :v => version, :e => extension}})
42
42
  rescue RestClient::ResourceNotFound
43
43
  raise ArtifactNotFoundException
44
44
  end
@@ -56,8 +56,8 @@ module NexusCli
56
56
  raise ArtifactMalformedException
57
57
  end
58
58
  group_id, artifact_id, version, extension = split_artifact
59
- nexus['service/local/artifact/maven/content'].post hasPom: false, g: group_id, a: artifact_id, v: version, e: extension, p: extension, r: configuration['repository'],
60
- file: File.new(file) do |response, request, result, &block|
59
+ nexus['service/local/artifact/maven/content'].post({:hasPom => false, :g => group_id, :a => artifact_id, :v => version, :e => extension, :p => extension, :r => configuration['repository'],
60
+ :file => File.new(file)}) do |response, request, result, &block|
61
61
  case response.code
62
62
  when 400
63
63
  raise BadUploadRequestException
@@ -90,7 +90,7 @@ module NexusCli
90
90
  raise ArtifactMalformedException
91
91
  end
92
92
  begin
93
- nexus['service/local/artifact/maven/resolve'].get ({params: {r: configuration['repository'], g: split_artifact[0], a: split_artifact[1], v: split_artifact[2], e: split_artifact[3]}})
93
+ nexus['service/local/artifact/maven/resolve'].get({:params => {:r => configuration['repository'], :g => split_artifact[0], :a => split_artifact[1], :v => split_artifact[2], :e => split_artifact[3]}})
94
94
  rescue RestClient::ResourceNotFound => e
95
95
  raise ArtifactNotFoundException
96
96
  end
@@ -129,4 +129,4 @@ module NexusCli
129
129
  end
130
130
  end
131
131
  end
132
- end
132
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-09 00:00:00.000000000 Z
12
+ date: 2012-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -149,7 +149,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  segments:
151
151
  - 0
152
- hash: 3449401773214889774
152
+ hash: -1507913424416327621
153
153
  required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  none: false
155
155
  requirements:
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  segments:
160
160
  - 0
161
- hash: 3449401773214889774
161
+ hash: -1507913424416327621
162
162
  requirements: []
163
163
  rubyforge_project:
164
164
  rubygems_version: 1.8.21