kounta_rest 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -74,7 +74,7 @@ module Kounta
74
74
  end
75
75
 
76
76
  def ignored_properties(array=[])
77
- array + [:created_at, :updated_at, :id, :company_id, :site_id]
77
+ array + [:created_at, :updated_at, :id, :company_id]
78
78
  end
79
79
 
80
80
  private
@@ -1,5 +1,6 @@
1
1
  require 'oauth2'
2
2
  require 'yell'
3
+ require 'oj'
3
4
 
4
5
  module Kounta
5
6
  module REST
@@ -26,7 +27,7 @@ module Kounta
26
27
 
27
28
  def perform(url_hash, request_method, options={})
28
29
  begin
29
- log("#{request_method}: #{Kounta::SITE_URI}#{path_from_hash(url_hash)}.#{FORMAT.to_s} (#{Oj.dump(options[:body])})")
30
+ log("#{request_method}: #{Kounta::SITE_URI}#{path_from_hash(url_hash)}.#{FORMAT.to_s} (#{Oj.dump(options[:body], mode: :compat)})")
30
31
  response = @conn.request(request_method, "#{path_from_hash(url_hash)}.#{FORMAT.to_s}", options.merge(REQUEST_HEADERS))
31
32
  rescue OAuth2::Error => ex
32
33
  if ex.message.include? 'The access token provided has expired'
@@ -1,3 +1,3 @@
1
1
  module Kounta
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kounta_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: