dino-api 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a23b4724eb76d7ce9f7bad22ea0b784d4700ba364cfdd71258c1d86f617cc32
4
- data.tar.gz: 58e3fe6a9e446e16570bb203b65d3ac85ebcab06af0200ce800ea06a803223e8
3
+ metadata.gz: 669f006bf0807a2ad410617756ee901de25502f2b83a7a1b02f8a376d52e1727
4
+ data.tar.gz: '0865dc864cfb6d6a842b0143394dda53f788cd18126b26cf20448678fa4ec805'
5
5
  SHA512:
6
- metadata.gz: a3a6700cb110da49b169a576833b60144cfb303ca8aa5d1ce96c63ebd9a1a6a9f679ef4b667b5a70211fafe4f789e4e2eb23650c560b7dbd4c314c98ce7e6415
7
- data.tar.gz: 5525f87c24711a1e716566b023b2da4f44dd0d59b551e87b341ca47a79f73adb081733429e3d74f9c3e559fab46f71f28a021c8e774ebd04c9a2b243faf8fdce
6
+ metadata.gz: 5d335fb084b30a9e6f7e048b076bff5be96d4608b29c0c82e72043b2cd822ef8d03fbd373c9cf515cc5b5a8ff494f6f846ff6a04ac708d2ee03455bf7980f6d7
7
+ data.tar.gz: ab7634e6a5030bd301278ac7a8b8305d63589e68f0d4d03aef924d22c83881be30effc543af46a67027c934bd00b225b91efe3f874d9cb51de98bd6b626ef496
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dino-api (1.0.0)
4
+ dino-api (1.0.1)
5
5
  hashie (~> 2.1.2)
6
6
  httparty (~> 0.13.0)
7
7
 
data/README.md CHANGED
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'dino'
12
+ gem 'dino-api', '~> 1.0', require: 'dino'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -18,7 +18,7 @@ And then execute:
18
18
 
19
19
  Or install it yourself as:
20
20
 
21
- $ gem install dino
21
+ $ gem install dino-api
22
22
 
23
23
  ## Usage
24
24
 
@@ -6,7 +6,7 @@ module Dino
6
6
  attr_reader :client, :options
7
7
  def initialize(client: Dino::Clients::Cache.new, options: {})
8
8
  @client = client
9
- options = options
9
+ @options = options
10
10
  end
11
11
 
12
12
  def fetch_data(path)
@@ -12,7 +12,7 @@ module Dino
12
12
  end
13
13
 
14
14
  def load
15
- Models::Item.new(fetch_data("news/#{id}")['Item'])
15
+ Models::Item.new(fetch_data(options[:path] || "news/#{id}")['Item'])
16
16
  end
17
17
  end
18
18
  end
@@ -20,7 +20,7 @@ module Dino
20
20
  private
21
21
 
22
22
  def response
23
- @response ||= fetch_data('news')
23
+ @response ||= fetch_data(options[:path] || 'news')
24
24
  end
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Dino
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dino-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuldeep Aggarwal
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-28 00:00:00.000000000 Z
11
+ date: 2019-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty