janio_api 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: f568782501508c7b5b13039c6ce89f5f6ae073ec2d1fe1d6fd66fc0e5b908d4a
4
- data.tar.gz: 9f9ad1f843851690362e287e95a067acd74b3031074a030ece4a57417ec3d1f5
3
+ metadata.gz: 9d175fb1eb0e1a7e19fa09fcda305c1041a5d1872ec8836574907967032aa7b1
4
+ data.tar.gz: 593aaf0c717b6ef19739f4d3309bdd9336d4c5fcb7047d21560e12e09dde5e4a
5
5
  SHA512:
6
- metadata.gz: abcb7552cada0dd924751a5b1b65347bb7ee7b5827a2e801559d730f692b4430b854e51f46686f6b3f3e69f5b745a31cc83dc1422cbd93967f9dd8bd752df8da
7
- data.tar.gz: 94f1a93ee8eb1c060bcb76a63324ef316941705f352633a4b745f048ef62954becd3c5c6c260253a5872fc49d198942f4013e6978865ae9b7c1682eae3037c2f
6
+ metadata.gz: 4523b95ae78228abaf6da00aa50e092846c611a9426cd28868869db75ac73b0fd60dcb1d70df43ab245de4209acd51e95a48db3b27bc41d6746c657a7c5fb045
7
+ data.tar.gz: 3e2b7d937d7887957f06935936729874b7b101cd8a19c1edd88b3d19b965219ddc25c497c7b667b2c70e55908a6ba43eba851eebe461e59ec72420f20b66148f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- janio_api (0.1.1)
4
+ janio_api (0.1.2)
5
5
  activeresource
6
6
 
7
7
  GEM
data/bin/console CHANGED
@@ -5,6 +5,10 @@ require "janio_api"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
8
+ JanioAPI.configure do |config|
9
+ config.api_host = ENV["API_HOST"]
10
+ config.api_token = ENV["API_TOKEN"]
11
+ end
8
12
 
9
13
  # (If you use this, don't forget to add pry to your Gemfile!)
10
14
  require "pry"
@@ -1,4 +1,3 @@
1
- require "fetcher"
2
1
  module JanioAPI
3
2
  class Connection < ActiveResource::Connection
4
3
  def request(method, path, *arguments)
@@ -1,4 +1,6 @@
1
1
  module JanioAPI
2
+ ##
3
+ # See http://apidocs.janio.asia/faq for parameters information
2
4
  class Order < Base
3
5
  self.prefix = "/api/order/orders/"
4
6
  self.element_name = ""
@@ -1,3 +1,3 @@
1
1
  module JanioAPI
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/janio_api.rb CHANGED
@@ -14,4 +14,4 @@ module JanioAPI
14
14
 
15
15
  class Error < StandardError; end
16
16
  # Your code goes here...
17
- end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: janio_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Chong