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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d6df1597844084334f7991d65799802672be0e8
4
- data.tar.gz: e7803cbe3239ab5633f2825b5adbd511c16013d5
3
+ metadata.gz: fd3b5ac65dd04c314eccc0cc82e9a4990de53896
4
+ data.tar.gz: 5c04b61e407c71830a627039aa93d2535e735a52
5
5
  SHA512:
6
- metadata.gz: adcd8e0065313f4f56b261245112fd2feb5a7f5fbd206374517f74a32708afda899b6a77bea18883924dda20a051b91412192c487b9ff17d0b072007288daec9
7
- data.tar.gz: b0e7b9d97351739c69f028aa41f9f6094fdaf8b43445c40f7e2602031a371a11018e8bcadfb5891aa982bde837736becf7246c5918bf098b46be95ead81e9603
6
+ metadata.gz: 0115be00aaf164d67b654680e215f1678f247be29685d49732be3d3335cdae73ae75ba3d1c36303cacad1c1ee3980722b043e0f15f469ebda079628ad97ba3cf
7
+ data.tar.gz: 0d8621b7cc5eb1e504814129ff1f3a341a1d5dbd2c56dc507288d93659cc2b36359dc2665dca8a6c57cc89527c64b6785d537659a901130fe4e4d7537f15272f
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.8.7
4
+ - 1.9.3
5
+ - 2.1.0
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)
@@ -1,4 +1,4 @@
1
- require 'json/pure' unless JSON::Ext
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 = JSON.parse(response.data[:body]) }
257
+ prepare_result(response) { |result| result.response = MultiJson.load(response.data[:body]) }
258
258
  end
259
259
 
260
260
  def prepare_result(response)
@@ -1,7 +1,7 @@
1
1
  module Packagecloud
2
2
  MAJOR_VERSION = "0"
3
3
  MINOR_VERSION = "2"
4
- PATCH_VERSION = "22"
4
+ PATCH_VERSION = "23"
5
5
 
6
6
  VERSION = [MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION].join(".")
7
7
  end
@@ -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
 
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'webrick'
2
3
 
3
4
  class PackagecloudServer < WEBrick::HTTPServlet::AbstractServlet
@@ -78,4 +79,4 @@ class PackagecloudServer < WEBrick::HTTPServlet::AbstractServlet
78
79
  route(request, response)
79
80
  end
80
81
 
81
- end
82
+ end
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.22
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-10-23 00:00:00.000000000 Z
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: