octadesk_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: 82ced1ad9c7fd8e34a46719e3694bd19be873f311e2577cab08dc108113200d1
4
- data.tar.gz: 1abb0839876c412354de50875d04682c81bb6464b0e3492322f25c7abfb10961
3
+ metadata.gz: ef9b7218a056ee7770b20a9a6701907c7972febccfb1c11850ca02b2e6190932
4
+ data.tar.gz: 867da58f1eefccedcb9e48ebea1146bc79351e6c5b07f96fb127e0f493c2d60d
5
5
  SHA512:
6
- metadata.gz: 25612c6ba9739b4fdb2cf2a861b2cd0068991ff3342fb10b77d917d4eba4ccf8c3a4178aa9efc2abf5cd60c996ddd2dcbc8e9b08a125b3f53bc981326754a3b3
7
- data.tar.gz: ae6ffceed01dae41e5a39ee1da04943299729405c1afa1c963c90d0fa79e8476cebddec616af8b10ea4cf6bdfbbd5d4b4c4162569a8407acbbbbefa2fbaf7c79
6
+ metadata.gz: 46d20a9bedd7e7c7ef82b91b07b842b44ef8be7fca7d777b1e4223f7a8d9bebb41465533a78b1a44965ad3b490960b95e974b54b6ddf75b460957fa9883b7fb3
7
+ data.tar.gz: 056a147b56301321efeeb7d0324e2cd410301887a0fa6780c25251a31fa0a0dd5b8fc002c371b9507ddb15956eb4253e5f7b10613c7df40c97dc5ef700f8a9b0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- octadesk_api (0.1.0)
4
+ octadesk_api (0.1.1)
5
5
  httparty (= 0.15.6)
6
6
 
7
7
  GEM
@@ -4,7 +4,10 @@ require "octadesk_api/client"
4
4
 
5
5
  module OctadeskApi
6
6
  class << self
7
- attr_accessor :access_key
7
+ attr_accessor :access_key, :env
8
+ def production?
9
+ ENV['RAILS_ENV'] == 'production' || self.env == 'production'
10
+ end
8
11
  end
9
12
  class Error < StandardError; end
10
13
  # Your code goes here...
@@ -8,7 +8,7 @@ module OctadeskApi
8
8
  def initialize access_token = nil
9
9
  @access_token = access_token || OctadeskApi.access_key || ENV['OCTADESK_ACCESS_TOKEN']
10
10
  raise OctadeskApi::MissingTokenError unless @access_token
11
- self.class.default_options.merge!(headers: { 'Authorization' => "Bearer #{access_token}", 'Content-Type' => 'application/json' } )
11
+ self.class.default_options.merge!(headers: { 'Authorization' => "Bearer #{access_token}", 'Content-Type' => 'application/json'}, verify: OctadeskApi.production? )
12
12
  end
13
13
 
14
14
  def perform_request(path)
@@ -1,3 +1,3 @@
1
1
  module OctadeskApi
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: octadesk_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
  - Sidnei Pacheco
@@ -90,7 +90,6 @@ files:
90
90
  - lib/octadesk_api/client/person_api.rb
91
91
  - lib/octadesk_api/errors.rb
92
92
  - lib/octadesk_api/version.rb
93
- - octadesk_api-0.1.0.gem
94
93
  - octadesk_api.gemspec
95
94
  homepage: https://github.com/sidneip/octadesk
96
95
  licenses:
Binary file