Floppy-amee 0.4.16 → 0.4.17

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.
@@ -77,9 +77,9 @@ module AMEE
77
77
  raise AMEE::BadData.new("Couldn't load DataCategory from XML data. Check that your URL is correct.")
78
78
  end
79
79
 
80
- def self.get(connection, path)
80
+ def self.get(connection, path, items_per_page = 10)
81
81
  # Load data from path
82
- response = connection.get(path)
82
+ response = connection.get(path, :itemsPerPage => items_per_page)
83
83
  # Parse data from response
84
84
  if response.is_json?
85
85
  cat = Category.from_json(response)
@@ -133,9 +133,9 @@ module AMEE
133
133
  return history.reverse
134
134
  end
135
135
 
136
- def self.get(connection, path, for_date = Date.today)
136
+ def self.get(connection, path, for_date = Date.today, items_per_page = 10)
137
137
  # Load data from path
138
- response = connection.get(path, :profileDate => for_date.strftime("%Y%m"))
138
+ response = connection.get(path, :profileDate => for_date.strftime("%Y%m"), :itemsPerPage => items_per_page)
139
139
  # Parse data from response
140
140
  if response.is_json?
141
141
  cat = Category.from_json(response)
data/lib/amee/version.rb CHANGED
@@ -3,7 +3,7 @@ module AMEE
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 0
5
5
  MINOR = 4
6
- TINY = 16
6
+ TINY = 17
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: 0.4.16
4
+ version: 0.4.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith