packagecloud-ruby 0.2.22 → 0.2.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/README.md +3 -0
- data/lib/packagecloud/client.rb +2 -2
- data/lib/packagecloud/version.rb +1 -1
- data/packagecloud-ruby.gemspec +1 -0
- data/spec/packagecloud_server.rb +2 -1
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd3b5ac65dd04c314eccc0cc82e9a4990de53896
|
4
|
+
data.tar.gz: 5c04b61e407c71830a627039aa93d2535e735a52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0115be00aaf164d67b654680e215f1678f247be29685d49732be3d3335cdae73ae75ba3d1c36303cacad1c1ee3980722b043e0f15f469ebda079628ad97ba3cf
|
7
|
+
data.tar.gz: 0d8621b7cc5eb1e504814129ff1f3a341a1d5dbd2c56dc507288d93659cc2b36359dc2665dca8a6c57cc89527c64b6785d537659a901130fe4e4d7537f15272f
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
## packagecloud-ruby
|
2
2
|
|
3
|
+
![Build Status](https://travis-ci.org/computology/packagecloud-ruby.svg "Build Status")
|
4
|
+
|
5
|
+
|
3
6
|
Ruby library for communicating with the [packagecloud.io](https://packagecloud.io) API.
|
4
7
|
|
5
8
|
* [Homepage](https://rubygems.org/gems/packagecloud-ruby)
|
data/lib/packagecloud/client.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'multi_json'
|
2
2
|
require 'mime'
|
3
3
|
require 'excon'
|
4
4
|
require 'packagecloud/result'
|
@@ -254,7 +254,7 @@ module Packagecloud
|
|
254
254
|
|
255
255
|
# returns the parsed body of a successful result
|
256
256
|
def parsed_json_result(response)
|
257
|
-
prepare_result(response) { |result| result.response =
|
257
|
+
prepare_result(response) { |result| result.response = MultiJson.load(response.data[:body]) }
|
258
258
|
end
|
259
259
|
|
260
260
|
def prepare_result(response)
|
data/lib/packagecloud/version.rb
CHANGED
data/packagecloud-ruby.gemspec
CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
20
20
|
gem.add_runtime_dependency 'excon', '~> 0.40'
|
21
|
+
gem.add_runtime_dependency 'multi_json', '~> 1.0'
|
21
22
|
gem.add_runtime_dependency 'json_pure', '~> 1'
|
22
23
|
gem.add_runtime_dependency 'mime', '~> 0.4'
|
23
24
|
|
data/spec/packagecloud_server.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packagecloud-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Damato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.40'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: multi_json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: json_pure
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,6 +159,7 @@ files:
|
|
145
159
|
- ".document"
|
146
160
|
- ".gitignore"
|
147
161
|
- ".rspec"
|
162
|
+
- ".travis.yml"
|
148
163
|
- ".yardopts"
|
149
164
|
- Gemfile
|
150
165
|
- LICENSE.txt
|
@@ -199,3 +214,4 @@ test_files:
|
|
199
214
|
- spec/packagecloud_server.rb
|
200
215
|
- spec/packagecloud_spec.rb
|
201
216
|
- spec/spec_helper.rb
|
217
|
+
has_rdoc:
|