allegro_api_client 0.0.4 → 0.0.5

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: 1349c57a3383110ca70aef4fd493572959b63c3f
4
- data.tar.gz: 7270a32663152a223310a1fed85c087bb5256e45
3
+ metadata.gz: 4926547de23ab26e3a42a58bdacaed704718baa1
4
+ data.tar.gz: 7740a621237e4b821c13a8cecd074bf3cbc6e6ff
5
5
  SHA512:
6
- metadata.gz: 65e502c1abe96656e30265671283503031bf985b9f48ef77196b25b673f5d5fdce47eede42f18bd0ffc953653dba8e6997a99d4e3a2d63df01be9bcb7c02820f
7
- data.tar.gz: 458f95d6ecc915d5a0ebc67f25538969627ffff9925dee2fad172ebe8d3cc3818f11254a9e721ad4686ba5b86dc63b97f545fcdf7f12723d6d7e0ed8fbdfd75c
6
+ metadata.gz: 82dcffcde98bf91e04411ad08702283b36c736ae5d748e1cf48955656e3616a107f72f51f578333da25108c26d78383cc6be2183660722d72ef20bad35a63078
7
+ data.tar.gz: 51e8daa2a0b45c6122fc16ea34ee499e406e07dae3250f3e9ad4984d33a216d993b3fc1264c80003e1ed74283c42f9c327516d980d7870dd8cc8c27a7f2f014c
data/apiclient.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "allegro_api_client"
7
- spec.version = '0.0.4'
7
+ spec.version = '0.0.5'
8
8
  spec.authors = ["@ruby_gem"]
9
9
  spec.email = ["developers@allegro.net"]
10
10
  spec.summary = %q{httpparty wrapper}
@@ -17,6 +17,11 @@ class APIClient
17
17
  :basic_auth =>@auth, :body => body.to_json, headers:{ 'Content-Type' => 'application/json' }).body
18
18
  end
19
19
 
20
+ def post(path:path, body:body)
21
+ @http_client.post("#{@base_uri}#{encoded path}",
22
+ :basic_auth =>@auth, :body => body.to_json, headers:{ 'Content-Type' => 'application/json' }).body
23
+ end
24
+
20
25
  def encoded path
21
26
  path.gsub ' ', '%20'
22
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allegro_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - "@ruby_gem"
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler