leafly_api_wrapper 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 683238eeb734154d684a95e6273b1e8bd9038f4b
4
- data.tar.gz: 232e6ffdf02f042ea9f06de2e45333a8f9b1a226
3
+ metadata.gz: bd03248c6aa251fa5dde2e9d6dac5ecd51f96eda
4
+ data.tar.gz: bff117754bc4f7ca3820eef117fd258270f497bd
5
5
  SHA512:
6
- metadata.gz: 45c75518efd0d8b6212a747ab4767a8d58f3256d636b8bfac0c6c2fd9538f5f392f24e153f1adf58e2d2f3def4b5561e6feefe87e9b8bbe4d35a8cc0470d5d1c
7
- data.tar.gz: c621b9be171eb8c4eb2db0d5b38859033b595296e7a5ed0393649545025c0b24602c0a3d04354ddb0ad64d70cbd4a6b6fdb004f00a781aadd81d7b510bdd0d4c
6
+ metadata.gz: 2b71f37487c98a30ad03674847e777b416e3099f59a0cb112eb6244a7d4919275f2e04a7228c52be3816e340fc11e6ccfae4d759b46009eba44d28a2f2682104
7
+ data.tar.gz: 0c25af0274e6857853d8d6b8d8302929ceed777633c2d3a0915449d750d61fa867748f9e6803111a55becb022694bc7142e151ce9b2235d4d5ec7097a66bc243
@@ -13,7 +13,6 @@ module LeaflyApiWrapper
13
13
  :facebookUrl, :twitterUrl, :googlePlusUrl,
14
14
  :pinterestUrl, :tumblrUrl, :instagramUrl
15
15
 
16
-
17
16
  def initialize(data)
18
17
  @id = data['id']
19
18
  @slug = data['slug']
@@ -6,7 +6,8 @@ module LeaflyApiWrapper
6
6
  attr_accessor :mapper, :data
7
7
 
8
8
  def initialize(data, feed_type)
9
- @mapper = JSON.parse(File.read("./lib/leafly_api_wrapper/feed_mapper/#{feed_type}_mapper.json"))
9
+ path = File.expand_path("../feed_mapper/#{feed_type}_mapper.json", __FILE__)
10
+ @mapper = JSON.parse(File.read(path))
10
11
  @data = data
11
12
  end
12
13
 
@@ -1,3 +1,3 @@
1
1
  module LeaflyApiWrapper
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leafly_api_wrapper
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
  - Oscar Siniscalchi