Floppy-amee 2.0.12 → 2.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -79,4 +79,20 @@ The AMEE::Connection object implements an optional cache for GET requests. This
79
79
  currently a versy simple implementation which caches the result of all GET requests
80
80
  until a POST, PUT, or DELETE is executed, at which point the cache is cleared. To
81
81
  enable caching, set the enable_caching parameter of AMEE::Connection.new to true.
82
- Caching is disabled by default.
82
+ Caching is disabled by default.
83
+
84
+ == UPGRADING TO VERSION > 2
85
+
86
+ There are a few changes to the API exposed by this gem for version 2. The main
87
+ ones are:
88
+
89
+ 1) AMEE::Connection#new takes a hash of options instead of an explicit parameter list.
90
+ Whereas before you would have used new(server, username, password, use_json, enable_cache, enable_debug)
91
+ you would now use new(server, username, password, :format => :json, :enable_caching => true, :enable_debug => true)
92
+
93
+ 2) Many get functions take a hash of options instead of explicit date and itemsPerPage parameters.
94
+ get(... , :start_date => {your_date}, :itemsPerPage => 20)
95
+
96
+ 3) total_amount_per_month functions have been replaced with total_amount. There are also
97
+ total_amount_unit and total_amount_per_unit functions which give the units that the total
98
+ amount is in.
@@ -375,7 +375,7 @@ module AMEE
375
375
  history = []
376
376
  num_months.times do
377
377
  date = Date.new(year, month)
378
- data = self.get(connection, path, date, items_per_page)
378
+ data = self.get(connection, path, :start_date => date, :itemsPerPage => items_per_page)
379
379
  # If we get no data items back, there is no data at all before this date, so don't bother fetching it
380
380
  if data.items.empty?
381
381
  (num_months - history.size).times do
data/lib/amee/version.rb CHANGED
@@ -3,7 +3,7 @@ module AMEE
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 2
5
5
  MINOR = 0
6
- TINY = 12
6
+ TINY = 13
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Floppy-amee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.12
4
+ version: 2.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-03 00:00:00 -07:00
12
+ date: 2009-04-15 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency