tijuana_client 0.1.1 → 0.2.0

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: c4201feeeaccf3c8e77f8f449108270ca9f23cc1
4
- data.tar.gz: a64a261f6fff52f7c509b36edb480f2f1fc682f1
3
+ metadata.gz: bc3a5962b83c0b648a6200e10adadc0fa7ca6c4f
4
+ data.tar.gz: d214c2d8cc8757018a9fced9347925ad7038bccc
5
5
  SHA512:
6
- metadata.gz: 7e84deb8ef592f167f209ebdd8f63b8a1e02eb15c058b7203c727f33171b1b1141842ac625561375fe7de637437c58a4b00b5b654fe5922178ac2ca36a70c11e
7
- data.tar.gz: 5463c9a5126985a50781c05dcc1c1bf350872ce349d073b1d010cafbbc5df74f7d6ab63dade5a9fdf13a023623735cbf04b4faeb1839229ef94525a04d6d3cb2
6
+ metadata.gz: f265e78fa91700bb224830182847f78be7eb9eb8bfe9048641bad7cfb10743c9ea9dc63b58d56815ef76434b4c68bac7f529a5d1511202e9a49f8edf1b05b4b4
7
+ data.tar.gz: 463809da9851e9c06acee006f0c155cd684cd0bca4e27e444a47b296f95b924fcc5141e3976356f5f7a17df6349e7375005ce76efc378c8166b0321f8e73f936
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
@@ -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=#{params['data']}"
60
+ return "data=#{URI::encode(params['data'])}"
61
61
  else
62
62
  return params
63
63
  end
data/spec/user_spec.rb CHANGED
@@ -23,7 +23,7 @@ describe TijuanaClient::User do
23
23
 
24
24
  describe 'create' do
25
25
  let(:body) { '' }
26
- let(:request_body) { "data=#{ JSON.generate({ first_name: 'Nathan'})}" }
26
+ let(:request_body) { "data=#{ URI::encode(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=#{ JSON.generate({ first_name: 'Nathan'})}" }
55
+ let(:request_body) { "data=#{ URI::encode(JSON.generate({ first_name: 'Nathan'}))}" }
56
56
  let(:request_path) { '/api/users/' }
57
57
 
58
58
  before(:each) do
@@ -2,14 +2,15 @@
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
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "tijuana_client"
8
- s.version = "0.1.1"
9
+ s.version = "0.2.0"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
12
  s.authors = ["Nathan Woodhull"]
12
- s.date = "2013-07-30"
13
+ s.date = "2014-02-28"
13
14
  s.description = "An API client for the code that runs Getup.org.au"
14
15
  s.email = "nathan@controlshiftlabs.com"
15
16
  s.extra_rdoc_files = [
@@ -38,7 +39,7 @@ Gem::Specification.new do |s|
38
39
  s.homepage = "http://github.com/controlshift/tijuana_client"
39
40
  s.licenses = ["MIT"]
40
41
  s.require_paths = ["lib"]
41
- s.rubygems_version = "2.0.4"
42
+ s.rubygems_version = "2.1.10"
42
43
  s.summary = "API client for Tijuana"
43
44
 
44
45
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tijuana_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Woodhull
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-30 00:00:00.000000000 Z
11
+ date: 2014-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vertebrae
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 2.0.4
156
+ rubygems_version: 2.1.10
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: API client for Tijuana