the-city-admin 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/api/donation_list.rb +1 -0
- data/lib/api/user_list.rb +1 -0
- data/lib/readers/donation_list_reader.rb +1 -1
- data/lib/readers/user_list_reader.rb +1 -1
- data/thecity_admin_api.gemspec +1 -1
- metadata +5 -9
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b07d9c97dbeae2185383929ab9654dbaa962c925
|
4
|
+
data.tar.gz: c2e1cc1fe9d015fa5053f339c469ca82469f328c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f6dd621622e87547bf7ee499dbb8ef3db28a5c36e788f93ef330133a004de4ae032d42accd669c80353ec35a84270cca1607820005270f19aa2b7718a9c29d88
|
7
|
+
data.tar.gz: 3ef5d91289b1df0f597ece6b06678f6b97a9c136b77a2d8343a441fe11dcb0b62d81b39529e16b8c2ec818e2c0060ec545effb1472b0537e30b8539a729c16e7
|
data/lib/api/donation_list.rb
CHANGED
@@ -22,6 +22,7 @@ module TheCity
|
|
22
22
|
def initialize(options = {})
|
23
23
|
@options = options
|
24
24
|
@options[:page] ||= 1
|
25
|
+
@options[:per_page] ||= 200
|
25
26
|
@options[:reader] = TheCity::DonationListReader.new(@options) if @options[:reader].nil?
|
26
27
|
@json_data = @options[:reader].load_feed
|
27
28
|
|
data/lib/api/user_list.rb
CHANGED
@@ -21,6 +21,7 @@ module TheCity
|
|
21
21
|
def initialize(options = {})
|
22
22
|
@options = options.clone
|
23
23
|
@options[:page] ||= 1
|
24
|
+
@options[:per_page] ||= 200
|
24
25
|
@options[:reader] = TheCity::UserListReader.new(@options) if @options[:reader].nil?
|
25
26
|
@json_data = @options[:reader].load_feed
|
26
27
|
|
@@ -19,7 +19,7 @@ module TheCity
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def white_list_options(options)
|
22
|
-
white_list = [:page, :fund_id, :state, :group_id, :user_id, :start_date, :end_date, :paginate, :page, :per_page]
|
22
|
+
white_list = [:page, :per_page, :fund_id, :state, :group_id, :user_id, :start_date, :end_date, :paginate, :page, :per_page]
|
23
23
|
options.clone.delete_if { |key, value| !white_list.include?(key) }
|
24
24
|
end
|
25
25
|
|
@@ -18,7 +18,7 @@ module TheCity
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def white_list_options(options)
|
21
|
-
white_list = [:page, :filter, :include_participation, :include_custom_fields, :include_barcodes, :include_addresses, :include_family]
|
21
|
+
white_list = [:page, :per_page, :filter, :include_participation, :include_custom_fields, :include_barcodes, :include_addresses, :include_family]
|
22
22
|
options.clone.delete_if { |key, value| !white_list.include?(key) }
|
23
23
|
end
|
24
24
|
|
data/thecity_admin_api.gemspec
CHANGED
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the-city-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Wes Hays
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: typhoeus
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -331,27 +328,26 @@ files:
|
|
331
328
|
- thecity_admin_api.gemspec
|
332
329
|
homepage: https://github.com/thecity/thecity-admin-ruby
|
333
330
|
licenses: []
|
331
|
+
metadata: {}
|
334
332
|
post_install_message:
|
335
333
|
rdoc_options: []
|
336
334
|
require_paths:
|
337
335
|
- lib
|
338
336
|
required_ruby_version: !ruby/object:Gem::Requirement
|
339
|
-
none: false
|
340
337
|
requirements:
|
341
338
|
- - ! '>='
|
342
339
|
- !ruby/object:Gem::Version
|
343
340
|
version: '0'
|
344
341
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
345
|
-
none: false
|
346
342
|
requirements:
|
347
343
|
- - ! '>='
|
348
344
|
- !ruby/object:Gem::Version
|
349
345
|
version: '0'
|
350
346
|
requirements: []
|
351
347
|
rubyforge_project: Project on www.github.com
|
352
|
-
rubygems_version:
|
348
|
+
rubygems_version: 2.0.3
|
353
349
|
signing_key:
|
354
|
-
specification_version:
|
350
|
+
specification_version: 4
|
355
351
|
summary: Ruby gem/plugin to interact with The City Admin API (https://api.OnTheCity.org).
|
356
352
|
test_files:
|
357
353
|
- spec/api/address_list_spec.rb
|