clio_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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDJlZGE2M2UyOGIyNmJjZGNkMjhjOGZkZWIxYTIxZDgwNDlkN2QxNw==
4
+ NDBlZmYwNzdmM2I4MzQ4NzZlMzZhNjEwYWJiZTg0MzQzZTBkNWYzYQ==
5
5
  data.tar.gz: !binary |-
6
- ZThjOGRhM2RhY2RhZjI4YmFkMmIxOWEzZTg1NWExMDEzOTk5MDAwNg==
6
+ OGE0NTk3ZTJlNTE4YjRkYzIwN2UxZmYyYzU1OTAyMzgwNGI4Y2Q2MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWVhMWM5MGE1MWI0NWUwYjJiMDY3NzAzNTBhODg4MGI0ZDc3NTEzNmU5Njhm
10
- OGEzZTFjMTQ2YTFhNWY0ODQ0YzU0N2QxY2I0Zjk3YmRjYWZjYTMyMjk5NmUw
11
- NWFjNGM0OTc1MGY5NGVmOGFmMDczOTMyYzc3ZWFjYjliNDIxMzU=
9
+ MGI2N2UyM2UxODUxYjcxZTQ3M2ExNzE4YmExMDFhN2ZmOTk3ZTcwY2QxMDRl
10
+ MmRmZDcwMTliMTNjODU5YTdlYzM1MDY2ZjM1NGVhMDg4ZTVmZGIwNWUxNWIw
11
+ ZDU2Yjk3ZTc4NTZmMWEzYzg5YzYwNjM1ZjRhZDkxNGQ3OGRiMWY=
12
12
  data.tar.gz: !binary |-
13
- NDhhN2YzNmQxM2FkMzU2YWUyMzNkYTNmNTQyODE5YWZkYzE4MzhmZTQ5MWNj
14
- NjhiMTNlM2I0N2I5MTQ3NjI1Y2FmNWE3YWU2MTg2MzVjZjAyOWRhOGFhYmQy
15
- N2UzZGY0ZGYwNGU2NWQ0MGRjNmRhNjIxMWI2ZWZjNmYwMDE5NTI=
13
+ NDJmOGMzYmU1Nzc1MjE0YTQwYTU5OGJiMmVkMjAwYjFlYTAyMjhlZWRjNWNj
14
+ MzA5NDg4MmE0ZjQwNzExNDM2Yjg5OTQ2OTA5N2UyZjEwMzMxOTRkMzBkMTY0
15
+ YTg2Mzc3YjMxZTczZjQ1NjFiMDg4Zjk3NGM4ZmQ5ZDMyMDc1NGQ=
data/README.md CHANGED
@@ -32,6 +32,7 @@ Or install it yourself as:
32
32
 
33
33
  You will need to do a few things before you can get started with Clio and the API. For convience, this information is pulled directly from Clio's API documentation at the top.
34
34
 
35
+ Sample application using the library: https://github.com/themis/clio-api-demos
35
36
 
36
37
  ### Create a Clio Account
37
38
 
@@ -65,6 +66,10 @@ client.authorized?
65
66
 
66
67
  At this point the client is ready to use. You will need to save the `access_token` for future use.
67
68
 
69
+ ```
70
+ client.access_token = access_token
71
+ ````
72
+
68
73
  There are many different end points you can now interact with. They all act mostly the same.
69
74
 
70
75
  The end points available are on the ClioClient::Session
@@ -15,7 +15,7 @@ module ClioClient
15
15
 
16
16
  def get(path, params ={}, parse=true)
17
17
  uri = base_uri("#{api_prefix}/#{path}", params)
18
- req = Net::HTTP::Get.new(uri.to_s)
18
+ req = Net::HTTP::Get.new(uri.request_uri)
19
19
  make_api_request(req, uri, parse)
20
20
  end
21
21
 
@@ -56,7 +56,7 @@ module ClioClient
56
56
  def make_request(req, uri, parse = true)
57
57
  req.add_field("Accept", "text/json")
58
58
  n = Net::HTTP.new(uri.host, uri.port)
59
- n.use_ssl = true
59
+ n.use_ssl = uri.scheme == 'https'
60
60
  res = n.start do |http|
61
61
  http.request(req)
62
62
  end
@@ -1,3 +1,3 @@
1
1
  module ClioClient
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clio_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
  - Kyle d'Oliveira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.1.11
233
+ rubygems_version: 2.2.2
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: A simple ruby library to interact with Clio's Api