tijuana_client 0.2.0 → 0.2.1

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: bc3a5962b83c0b648a6200e10adadc0fa7ca6c4f
4
- data.tar.gz: d214c2d8cc8757018a9fced9347925ad7038bccc
3
+ metadata.gz: 13d0097abbdb86d6c257a1fbe08cbed627d9db50
4
+ data.tar.gz: b78b2a64cdccd464830d6f3ec9ed70d3357cd9a1
5
5
  SHA512:
6
- metadata.gz: f265e78fa91700bb224830182847f78be7eb9eb8bfe9048641bad7cfb10743c9ea9dc63b58d56815ef76434b4c68bac7f529a5d1511202e9a49f8edf1b05b4b4
7
- data.tar.gz: 463809da9851e9c06acee006f0c155cd684cd0bca4e27e444a47b296f95b924fcc5141e3976356f5f7a17df6349e7375005ce76efc378c8166b0321f8e73f936
6
+ metadata.gz: 20b76d3ecb99880560ba979d6a391e4982331214fa8f276b10b9dc13c0ab61304cdfd0690139ded24387f050266a2bb89ecc7090a46014f33148d0a1570b0d78
7
+ data.tar.gz: a0b922b65db203e7f49886411dba1cdde897f887ef2c252b13b49479d0b59d2e0ce6573d3a192b77dd2be1a224c193cbfcf8924713b73c6c3e9ba949db430a68
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -57,7 +57,7 @@ module TijuanaClient
57
57
 
58
58
  def extract_data_from_params(params)
59
59
  if params.has_key?('data') && params['data'].present?
60
- return "data=#{URI::encode(params['data'])}"
60
+ return {'data'=> params['data']}
61
61
  else
62
62
  return params
63
63
  end
@@ -23,7 +23,7 @@ describe TijuanaClient::User do
23
23
 
24
24
  describe 'create' do
25
25
  let(:body) { '' }
26
- let(:request_body) { "data=#{ URI::encode(JSON.generate({ first_name: 'Nathan'}))}" }
26
+ let(:request_body){ {'data' => JSON.generate({ first_name: 'Nathan'})} }
27
27
  let(:request_path) { '/api/users/' }
28
28
 
29
29
  before(:each) do
@@ -52,7 +52,7 @@ describe TijuanaClient::User do
52
52
  subject { TijuanaClient.new(host: 'test.com', username: 'username', password: 'password')}
53
53
 
54
54
  let(:body) { "" }
55
- let(:request_body) { "data=#{ URI::encode(JSON.generate({ first_name: 'Nathan'}))}" }
55
+ let(:request_body) { {'data' => JSON.generate({ first_name: 'Nathan'})} }
56
56
  let(:request_path) { '/api/users/' }
57
57
 
58
58
  before(:each) do
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: tijuana_client 0.2.0 ruby lib
5
+ # stub: tijuana_client 0.2.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "tijuana_client"
9
- s.version = "0.2.0"
9
+ s.version = "0.2.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Nathan Woodhull"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tijuana_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Woodhull