Package not found. Please check the package name and try again.

hookercookerman-amee 0.1.0 → 0.1.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.
@@ -48,6 +48,7 @@ module Amee
48
48
  def populate!
49
49
  session.api_call(:get, "data.category", self.full_path) do |response|
50
50
  populate_from_hash!(response)
51
+ self
51
52
  end
52
53
  @lazy_loaded = true
53
54
  end
@@ -16,6 +16,7 @@ module Amee
16
16
  def populate!
17
17
  session.api_call(:get, "data.item", self.full_path) do |response|
18
18
  populate_from_hash!(response)
19
+ self
19
20
  end
20
21
  @lazy_loaded = true
21
22
  end
data/lib/amee/parser.rb CHANGED
@@ -94,6 +94,7 @@ module Amee
94
94
  class GetProfile < Parser
95
95
  def self.process(data)
96
96
  categories = {"profile_categories" => data["children"].delete("dataCategories")}
97
+ categories["profile_categories"].each{|profile_category| profile_category.merge!({"profile" => data["profile"]})}
97
98
  data["profile"].merge(categories).
98
99
  merge({"resource_path" => data["path"]})
99
100
  end
@@ -17,6 +17,7 @@ module Amee
17
17
  def populate!
18
18
  session.api_call(:get, "profile.category", self.full_path) do |response|
19
19
  populate_from_hash!(response)
20
+ self
20
21
  end
21
22
  @lazy_loaded = true
22
23
  end
data/lib/amee.rb CHANGED
@@ -33,5 +33,5 @@ require "amee/profile_api/profile_category"
33
33
  require "amee/profile_api/profile"
34
34
 
35
35
  module Amee
36
- VERSION = '0.1.0'
36
+ VERSION = '0.1.1'
37
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hookercookerman-amee
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
  - Richard Hooker