hookercookerman-amee 0.1.1 → 0.1.2

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.
data/README.rdoc CHANGED
@@ -1,48 +1,37 @@
1
- = Amee (Lets Cut Co2) By D50
2
-
3
- = Docs
4
-
5
- These are on the way; this is very early release; However have a look at the cucumber features
6
- you should be able so see that most bases have been covered; Basically the more we use this
7
- the more docs there will be
8
-
9
- = Usage (More to come; If you are lucky and example rails app)
10
-
11
- There is a config where login, cache and logging settings can be applied have a look at the config
12
- model to see how one should use that.
13
-
14
- Create a session ie @session = Amee::Session.create("blar", "blar")
15
- And then use the session to get, put, post and delete on what you required from amee;
16
- there are a set number of operations that are available to you currently but more will
17
- be added
18
-
19
- Some objects say like data_categories can be lazy loaded so you can do method calls like
20
-
21
- data_category = @session.get_data_category("/data/home/appliances")
22
- fridge = data_category.data_categories.first
23
-
24
- if you wanted to know the data_categories for fridge just call data_categories on fridge it
25
- will populated the fridge category automagically;
26
-
27
- Cache - Simple to Start (using Moneta)
28
- Therefore if u wish you can choose your cache store even memcache via leveraging Moneta
29
-
30
- Pagination on data_items
31
-
32
- @data_category = session.get_data_category("/data/whatever_path", :query => {:itemsPerPage => 30, :page => 1})
33
- @data_items = @data_category.paginate_data_items(:per_page => 30,:page => params[:page])
34
-
35
- You know have a pagintated data_items
36
-
37
- = TODOS
38
-
39
- Pagination (should be simple enough just hook into will_paginate collections)
40
- Other stuff when start to use amee api fully
1
+ = Amee
2
+
3
+ * http://wiki.github.com/hookercookerman/amee
4
+
5
+ == DESCRIPTION:
6
+
7
+ Amee is a Ruby wrapper over the Amee Platform[http://www.amee.com]
8
+
9
+ * Idiomatic Ruby
10
+ * Concrete classes and methods modeling Amee data, so it's easy for a Rubyist to understand what's available
11
+ * Cucumber Features and specs
12
+
13
+ == REQUIREMENTS:
14
+
15
+ Montra
16
+ Httparty
17
+ will_paginate (if you want to paginate data_items)
18
+
19
+ == INSTALL:
20
+
21
+ * Non Rails
22
+
23
+ The best way is:
24
+
25
+ gem install hookercookerman-amee
26
+
27
+ Amee can be installed as a Rails plugin by:
28
+
29
+ script/plugin install git@github.com:hookercookerman/amee.git
41
30
 
42
31
  = TICKETS GROUP
43
32
 
44
- https://dynamic50.lighthouseapp.com/projects/29811-amee/overview
33
+ * https://dynamic50.lighthouseapp.com/projects/29811-amee/overview
45
34
 
46
- http://groups.google.com/group/amee-gem
35
+ * http://groups.google.com/group/amee-gem
47
36
 
48
37
 
@@ -23,8 +23,8 @@ module Amee
23
23
  session.api_call(:put, "profile_item", self.full_path,
24
24
  :query => fields.merge({:representation => true})) do |response|
25
25
  populate_from_hash!(response)
26
+ self
26
27
  end
27
- self
28
28
  end
29
29
 
30
30
  def destroy
@@ -50,6 +50,7 @@ module Amee
50
50
  def populate!
51
51
  session.api_call(:get, "profile_item", self.full_path) do |response|
52
52
  populate_from_hash!(response)
53
+ self
53
54
  end
54
55
  @lazy_loaded = true
55
56
  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.1'
36
+ VERSION = '0.1.2'
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Hooker