viki_utils 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
data/Gemfile.lock ADDED
@@ -0,0 +1,30 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ viki_utils (0.0.7)
5
+ addressable (>= 2.3)
6
+ oj (~> 2.0.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.3.2)
12
+ diff-lcs (1.1.3)
13
+ oj (2.0.3)
14
+ rspec (2.12.0)
15
+ rspec-core (~> 2.12.0)
16
+ rspec-expectations (~> 2.12.0)
17
+ rspec-mocks (~> 2.12.0)
18
+ rspec-core (2.12.2)
19
+ rspec-expectations (2.12.1)
20
+ diff-lcs (~> 1.1.3)
21
+ rspec-mocks (2.12.2)
22
+ timecop (0.5.9.1)
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ rspec (>= 2.12.0)
29
+ timecop (>= 0.5.9)
30
+ viki_utils!
@@ -34,7 +34,7 @@ module Viki
34
34
 
35
35
  def dump(body)
36
36
  serializable = body.reject { |k, v| is_file? v }
37
- response = Oj.dump(serializable)
37
+ response = Oj.dump(serializable, mode: :compat)
38
38
 
39
39
  files = body.select { |k, v| is_file? v }.values
40
40
  files.each do |f|
@@ -1,3 +1,3 @@
1
1
  module VikiUtils
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -33,7 +33,7 @@ describe Viki::UriSigner do
33
33
  OpenSSL::HMAC.should_receive(:hexdigest).with(
34
34
  Viki::UriSigner::DIGEST,
35
35
  secret,
36
- "/endpoint?t=#{time.to_i.to_s}#{Oj.dump(body)}"
36
+ "/endpoint?t=#{time.to_i.to_s}#{Oj.dump(body, mode: :compat)}"
37
37
  ).and_return "signature"
38
38
 
39
39
  Viki::UriSigner.new(secret).sign_request(uri, body).to_s.should include("sig=signature")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viki_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-07 00:00:00.000000000 Z
13
+ date: 2013-04-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -87,6 +87,7 @@ files:
87
87
  - .rspec
88
88
  - .rvmrc
89
89
  - Gemfile
90
+ - Gemfile.lock
90
91
  - README.md
91
92
  - Rakefile
92
93
  - lib/viki/uri_signer.rb
@@ -114,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
115
  version: '0'
115
116
  requirements: []
116
117
  rubyforge_project:
117
- rubygems_version: 1.8.25
118
+ rubygems_version: 1.8.24
118
119
  signing_key:
119
120
  specification_version: 3
120
121
  summary: Sharing Viki's utils