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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/octadesk_api.rb +4 -1
- data/lib/octadesk_api/client.rb +1 -1
- data/lib/octadesk_api/version.rb +1 -1
- metadata +1 -2
- data/octadesk_api-0.1.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef9b7218a056ee7770b20a9a6701907c7972febccfb1c11850ca02b2e6190932
|
4
|
+
data.tar.gz: 867da58f1eefccedcb9e48ebea1146bc79351e6c5b07f96fb127e0f493c2d60d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46d20a9bedd7e7c7ef82b91b07b842b44ef8be7fca7d777b1e4223f7a8d9bebb41465533a78b1a44965ad3b490960b95e974b54b6ddf75b460957fa9883b7fb3
|
7
|
+
data.tar.gz: 056a147b56301321efeeb7d0324e2cd410301887a0fa6780c25251a31fa0a0dd5b8fc002c371b9507ddb15956eb4253e5f7b10613c7df40c97dc5ef700f8a9b0
|
data/Gemfile.lock
CHANGED
data/lib/octadesk_api.rb
CHANGED
@@ -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...
|
data/lib/octadesk_api/client.rb
CHANGED
@@ -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)
|
data/lib/octadesk_api/version.rb
CHANGED
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.
|
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:
|
data/octadesk_api-0.1.0.gem
DELETED
Binary file
|