qiniu-kit 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzJlYmRkYzQxYzExZjc0YjgzOTdhOGRjMWMyNWRhMmE1ZGJmM2JiZQ==
4
+ YzFjM2I0MDU0MzA2ZjJmZjAwMmY0MTg5ZjY1ZTMzZTQxZWM1ZDY1ZQ==
5
5
  data.tar.gz: !binary |-
6
- OWRmMzJmYzdmYWU1ZGY5MTNkNWZmMzRjMWExNDJmNWRkNDE5MGYxZg==
6
+ ZGQwMjYyZmM4OTkyMjkxMzc2ZWE0NzJkZjkyOGI4NGVhODIyYzZhOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDk0NzI2MGViZTRiYTBlY2YwMmE1OGU4ZDdmN2Y4MDI2OTgxMDQxNWNjYjll
10
- ODA0MTVkMTQxNjliOWI0OGZjYjA5YTU2MzYyYzNlOTdhMzg5MTQwMzM0NDIy
11
- NjI2NmE2NzNlMmVmMDFiOTBiZGYwNGVmNTFmOTY3MDhjMzZlZTk=
9
+ MDRkYzMyMjBjOGI4MTQ4YThhYWQ0MjY1ODgxMGViNjY5MjFhYmVlMzk0MzU5
10
+ NTYyYzYxNmRhYTY3MWI1ZTA3Mzc3ZjU5OWRjZjZlODdhMDYyMGYxNTY1YjI5
11
+ MGEzMzA3MTNhYTliMGViYmRmOWM1OGUyZTk5YzQ4YTFmZjRjNzM=
12
12
  data.tar.gz: !binary |-
13
- OTZiOGZhM2RhNWRjOTk5MjQ0ZTA5ZmE4YmJmMjgzODEzNDlkYjAyNDdkMGU5
14
- ZGFkMTIyMjcwYmE0NjZkYzkwMzI5M2E4MDk5OTEzZTc5NjZlOThiZTcxNzkw
15
- OTc3ODhkODg0N2UxNTc3Y2EyZDIzODY5ZDQ3ODIzM2M0MzYwN2I=
13
+ N2RjNTQ3YTkyY2Y5MGRjNDFlODE4MmQ0NmYxZmZhZmMyZTlmYWEzYmM1ZjM4
14
+ MDkxZWU5YmM1ZDg2YWEyNWIxMzA1ODY1ZmEzMjZmZTg3MzFhZDQ2YjllMDRi
15
+ MjVjNzBlODkwZTA3M2U4MmQzMTQ2ZjkyZGU0ZDlmYTZjMTgwNjI=
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Dependency Status](https://gemnasium.com/why404/qiniu-kit.png)](https://gemnasium.com/why404/qiniu-kit)
5
5
  [![Coverage Status](https://coveralls.io/repos/why404/qiniu-kit/badge.png)](https://coveralls.io/r/why404/qiniu-kit)
6
6
  [![Code Climate](https://codeclimate.com/github/why404/qiniu-kit.png)](https://codeclimate.com/github/why404/qiniu-kit)
7
- [![Gem Version](https://fury-badge.herokuapp.com/rb/qiniu-kit.png)](http://badge.fury.io/rb/qiniu-kit)
7
+ [![Gem Version](https://badge.fury.io/rb/qiniu-kit.png)](http://badge.fury.io/rb/qiniu-kit)
8
8
 
9
9
  A collection of helpful methods for debugging Qiniu Cloud Storage API.
10
10
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Qiniu
4
4
  module Kit
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
data/lib/qiniu/kit.rb CHANGED
@@ -25,7 +25,7 @@ module Qiniu
25
25
  def decode_json(*args)
26
26
  MultiJson.load(*args)
27
27
  rescue MultiJson::LoadError
28
- raise Qiniu::JSONDecodeError.new("Invalid segment encoding")
28
+ raise Qiniu::Errors::JSONDecodeError.new("Invalid segment encoding")
29
29
  end
30
30
 
31
31
  def encode_json(*args)
data/spec/spec_helper.rb CHANGED
@@ -11,5 +11,7 @@ RSpec.configure do |config|
11
11
  end
12
12
  end
13
13
 
14
- require 'coveralls'
15
- Coveralls.wear!
14
+ if RUBY_VERSION >= "1.9"
15
+ require 'coveralls'
16
+ Coveralls.wear!
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiniu-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - why404