betty_resource 0.0.18 → 0.0.20

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: e7a28ad79ed833f442eedcb41b68bede12f8b365
4
- data.tar.gz: 89cb683c8402bdc44d2a50fbd955d37c445226c6
3
+ metadata.gz: 34af2db820a4d744349eeab06a7fed5d41d689a9
4
+ data.tar.gz: fb6a01d32b6d0556c8351a3e5aabf7ae03ff187a
5
5
  SHA512:
6
- metadata.gz: 251e1b6346ce84cc84aae6b903fa094018bf3febcb17b8a54250554694a588565f412e00221587caa26312f549b1016bc4a3618d39e2a9290299c569ebdd939c
7
- data.tar.gz: 037db6a9b20ebbd2848938b512aec91b3bd4cf89a305f6627fa02d927b2ea16dd5438997c7beb5e4f7f381567da508fc57e5cab5d0c093d216a25de3f3468f12
6
+ metadata.gz: 70930ec3e4f071bee9288d98194ecb0f6e71e9907fc9a5478dda072ea70c1286f60a0c2a36b7dee465ea41ebc3e7346d616e38dad153af1183ef79cb3cff7137
7
+ data.tar.gz: e360de6175c4136c092e748ee523374ca8eebcddce4337cf17bebd21a88a26f687e811926ba3aa61bbe9a34990e3dffee1919363e0f6e4a277db0f3d02260efd
@@ -3,10 +3,10 @@ module BettyResource
3
3
  include HTTParty
4
4
 
5
5
  base_uri "#{BettyResource.config.host}/api"
6
- format :json
6
+
7
7
  basic_auth BettyResource.config.user, BettyResource.config.password
8
8
  query_string_normalizer proc { |query|
9
- query.to_json
9
+ query.to_query
10
10
  }
11
11
  end
12
12
  end
@@ -112,7 +112,7 @@ module BettyResource
112
112
  private
113
113
 
114
114
  def to_params
115
- { body: { record: attributes_as_json }, headers: { 'Content-Type' => 'application/json' } }
115
+ { body: { record: attributes_as_json } }
116
116
  end
117
117
 
118
118
  # TODO: Test this update
@@ -1,7 +1,7 @@
1
1
  module BettyResource
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- TINY = 18
4
+ TINY = 20
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join('.')
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betty_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chiel Wester
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-04-01 00:00:00.000000000 Z
14
+ date: 2016-01-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: httparty
@@ -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.2.2
156
+ rubygems_version: 2.5.1
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: Map Betty5 application resources to Ruby objects