the-city-admin 0.6.9 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODNjOGY3NTE2OWFmZGY5NDE3NTk3NzQwODFlYTRlMzBmNjM0OTA2MQ==
4
+ ZjY3NmM0N2EwZmJjNTI2NTU3NGU1MGE2YTFmMGUzMWViMDFjYTg3YQ==
5
5
  data.tar.gz: !binary |-
6
- MjNkZWQxYzYyOTM0ODRkNDdhNjE2ZGE1ZWQ4YjFmNzgxYWQwM2MyMQ==
6
+ NzFiYzM4ZmY0ZWU5MmUxMjRmN2NhNzljZWU3N2RmYTgzYmU0NDc3Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmEzYzBlNDIzNDg4Nzg2ZTkzY2M2ZDM2Njk5ZjNkMzExMDA1NDc1YWZmNzlk
10
- MzVlYWM5MjY3MmI0YTZiZjk1MjRhZGYwYjlkOGQwMGU4MWNlZTA2Y2Y0MDNi
11
- OGZiZTM0MTA3OTFhYjcxY2I0M2Y2YjkxOTc1YmU1ZjQ1YmQ0NDI=
9
+ ZjllMGMzYzYzNTI1NWRjNDA1YWZmM2ZhZTc2ZDM0ZWU2M2IwNjc0ZmJiYWNi
10
+ MjRjMDJjNmFiY2IxN2I1YTI1Y2U5ZWUzNzkyNGVkY2Q4NzdhNzViYjYyMDE1
11
+ MTMxNmQzM2MwNmFiZjdkZWI0NzJmNDAxMGUyMzhkMTAyZmM5Yzc=
12
12
  data.tar.gz: !binary |-
13
- MzdkYWUwZGM2NWEyYTVjYjlmMDhlZGY5MmVmMGIwYjFlOGEyYjAwNTM3Mzcy
14
- ODI4MDdiYTlhZWU5ZWViN2IzNWNlOTFlODYyYjliYjE4NWYzZjNhZmM5NmVh
15
- NTE2ZWZhMmE2YmM5NjhlY2EyNzA2MzY3MWRkMGMzMWQ0ZjM0ZTc=
13
+ ZjZjMGM2ZDJiNzY4OWQyNzFjODJhN2U0ZWE0ODk2OTFjNTM5ZjI3NGYxNjZl
14
+ NDBlMmNiMzc3ZDQ4OWZkZTQ3NmY1OGM0N2E5Y2YyNGMwNzQ5NzlmNjFjNDQ4
15
+ MjFjNjcwOTVlZmVmYTdlMDkzNWI5Nzc3ZDQ3OWRlZTc5OWFjZTI=
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'typhoeus', '0.5.1'
3
+ gem 'typhoeus', '0.6.6'
4
4
  gem 'json'
5
5
 
6
6
  group :development, :test do
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (4.0.0)
4
+ activesupport (4.0.1)
5
5
  i18n (~> 0.6, >= 0.6.4)
6
6
  minitest (~> 4.2)
7
7
  multi_json (~> 1.3)
@@ -15,13 +15,13 @@ GEM
15
15
  debugger-ruby_core_source (~> 1.2.3)
16
16
  debugger-linecache (1.2.0)
17
17
  debugger-ruby_core_source (1.2.3)
18
- diff-lcs (1.2.4)
19
- ethon (0.5.3)
20
- ffi (~> 1.0.11)
18
+ diff-lcs (1.2.5)
19
+ ethon (0.6.1)
20
+ ffi (>= 1.3.0)
21
21
  mime-types (~> 1.18)
22
- factory_girl (4.2.0)
22
+ factory_girl (4.3.0)
23
23
  activesupport (>= 3.0.0)
24
- ffi (1.0.11)
24
+ ffi (1.9.3)
25
25
  i18n (0.6.5)
26
26
  json (1.8.1)
27
27
  mime-types (1.25)
@@ -32,13 +32,13 @@ GEM
32
32
  rspec-expectations (~> 2.14.0)
33
33
  rspec-mocks (~> 2.14.0)
34
34
  rspec-core (2.14.7)
35
- rspec-expectations (2.14.3)
35
+ rspec-expectations (2.14.4)
36
36
  diff-lcs (>= 1.1.3, < 2.0)
37
37
  rspec-mocks (2.14.4)
38
38
  thread_safe (0.1.3)
39
39
  atomic
40
- typhoeus (0.5.1)
41
- ethon (= 0.5.3)
40
+ typhoeus (0.6.6)
41
+ ethon (~> 0.6.1)
42
42
  tzinfo (0.3.38)
43
43
 
44
44
  PLATFORMS
@@ -49,4 +49,4 @@ DEPENDENCIES
49
49
  factory_girl
50
50
  json
51
51
  rspec
52
- typhoeus (= 0.5.1)
52
+ typhoeus (= 0.6.6)
data/examples/funds.rb ADDED
@@ -0,0 +1,29 @@
1
+ # *******************************************
2
+ # This is a demo file to show usage.
3
+ #
4
+ # @package TheCity::Admin
5
+ # @authors Robbie Lieb <robbie@onthecity.org>, Wes Hays <wes@onthecity.org>
6
+ # *******************************************
7
+
8
+ require 'ruby-debug'
9
+ require File.dirname(__FILE__) + '/../lib/the_city_admin.rb'
10
+
11
+ require File.dirname(__FILE__) + '/city_keys.rb'
12
+ include CityKeys
13
+
14
+ TheCity::AdminApi.connect(KEY, TOKEN)
15
+
16
+ fund_options = {:include_inactive => 'true', :show_give_online_only => 'false'}
17
+ page = 1
18
+
19
+ fund_list = TheCity::FundList.new({:page => page}.merge(fund_options))
20
+ fund_list.each do |item|
21
+ puts "FundList: #{item.inspect}"
22
+ end
23
+
24
+
25
+ puts "------------------------------------"
26
+
27
+ puts "####################################"
28
+
29
+
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  PROJECT_GEM = 'the-city-admin'
3
- PROJECT_GEM_VERSION = '0.6.9'
3
+ PROJECT_GEM_VERSION = '0.7.0'
4
4
 
5
5
  s.name = PROJECT_GEM
6
6
  s.version = PROJECT_GEM_VERSION
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.summary = 'Ruby gem/plugin to interact with The City Admin API (https://api.OnTheCity.org).'
16
16
  s.description = 'Ruby gem/plugin to interact with The City Admin API (https://api.OnTheCity.org). Checkout the project on github for more detail.'
17
17
 
18
- s.add_dependency('typhoeus', '0.5.1')
18
+ s.add_dependency('typhoeus', '0.6.6')
19
19
 
20
20
 
21
21
  s.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the-city-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wes Hays
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-31 00:00:00.000000000 Z
11
+ date: 2013-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.1
19
+ version: 0.6.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.5.1
26
+ version: 0.6.6
27
27
  description: Ruby gem/plugin to interact with The City Admin API (https://api.OnTheCity.org).
28
28
  Checkout the project on github for more detail.
29
29
  email: wes@onthecity.org
@@ -49,6 +49,7 @@ files:
49
49
  - examples/donation_export.rb
50
50
  - examples/donations.rb
51
51
  - examples/familes.rb
52
+ - examples/funds.rb
52
53
  - examples/groups.rb
53
54
  - examples/measurements.rb
54
55
  - examples/metrics.rb