elemeno 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: ad83aa3e75e469c0e8d27052e844af2cb6899f80
4
- data.tar.gz: 815a4ceae23c5cd4eef15348284bead79768c01d
3
+ metadata.gz: 69814eddaeea0b5bc28cc908148cfa689cdbc9d4
4
+ data.tar.gz: aecc1ef2554305726af2b6168d90f693e3c7b534
5
5
  SHA512:
6
- metadata.gz: f8dbd87725382774760f856ea3151f61605e84979c3754e40866e9768e93f990cfbc2586c3415f621a8cadd36ee0b24dc425ebab55e0fcb5cb146619a706ccc1
7
- data.tar.gz: 67ac205dbd3e66cca509878331a199d98b2067543b35fb100b31f1b61f826922742bbfd22bca03ead2517c60d95240d728d1609911f24464f9e90bbebf172877
6
+ metadata.gz: 8d331b30e2a521614e9ac1caf114d51cf5ab069fde2c7c4c6cf3f0ddac4bafa4c1dc6dfe37d552a1442e80b754b84e1204413722830da7a6a97502a13edb841c
7
+ data.tar.gz: 4e1946ff6d1d3d317f8e4fbf8dd4e9d1db31bd1f064a5900284001e27c14eb337c04872b7cf26932b50c7bcdb11c58711ee1b45b36a2f9c86417e6f64e87d4bb
data/README.md CHANGED
@@ -65,7 +65,7 @@ options = {
65
65
  'size': 20
66
66
  }
67
67
 
68
- collectionItems = elemeno.getCollectionItems('recipes', options);
68
+ collectionItems = elemeno.getCollectionItems('recipes', options)
69
69
  ```
70
70
 
71
71
  ## API Overview
@@ -9,7 +9,10 @@ module Elemeno
9
9
  @@collectionBase = 'collections/'
10
10
 
11
11
  def initialize(api_key)
12
- @conn = Faraday.new :url => 'https://api.elemeno.io/v1/', :headers => {'Authorization' => api_key}
12
+ @conn = Faraday.new(:url => 'https://api.elemeno.io/v1/', :headers => {'Authorization' => api_key}) do |conn|
13
+ conn.use Faraday::Response::RaiseError
14
+ conn.use Faraday::Adapter::NetHttp
15
+ end
13
16
  end
14
17
 
15
18
  private def get(path, query = nil)
@@ -1,3 +1,3 @@
1
1
  module Elemeno
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elemeno
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Erwin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-12-01 00:00:00.000000000 Z
12
+ date: 2016-12-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler