the-city-admin 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/api/church.rb ADDED
@@ -0,0 +1,18 @@
1
+ module TheCity
2
+
3
+ class Church < ApiObject
4
+
5
+ tc_attr_accessor :id,
6
+ :name
7
+
8
+ # Constructor.
9
+ def initialize
10
+ reader = TheCity::ChurchReader.new
11
+ json_data = reader.load_feed
12
+ initialize_from_json_object(json_data)
13
+ end
14
+
15
+ end
16
+
17
+ end
18
+
@@ -0,0 +1,21 @@
1
+ module TheCity
2
+
3
+ class ChurchReader < ApiReader
4
+
5
+ # Constructor.
6
+ #
7
+ # @param options (optional) Options for including more information.
8
+ # @param [CacheAdapter] cacher (optional) The cacher to be used to cache data.
9
+ def initialize(options = {}, cacher = nil)
10
+ #@class_key = "church"
11
+ @url_data_path = '/churches'
12
+
13
+ # The object to store and load the cache.
14
+ # @cacher = cacher unless cacher.nil?
15
+ end
16
+
17
+ end
18
+
19
+ end
20
+
21
+
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  PROJECT_GEM = 'the-city-admin'
3
- PROJECT_GEM_VERSION = '0.5.1'
3
+ PROJECT_GEM_VERSION = '0.5.2'
4
4
 
5
5
  s.name = PROJECT_GEM
6
6
  s.version = PROJECT_GEM_VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the-city-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-16 00:00:00.000000000 Z
12
+ date: 2013-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -66,6 +66,7 @@ files:
66
66
  - lib/api/barcode.rb
67
67
  - lib/api/checkin.rb
68
68
  - lib/api/checkin_list.rb
69
+ - lib/api/church.rb
69
70
  - lib/api/donation.rb
70
71
  - lib/api/donation_export.rb
71
72
  - lib/api/donation_export_list.rb
@@ -143,6 +144,7 @@ files:
143
144
  - lib/readers/api_reader.rb
144
145
  - lib/readers/checkin_list_reader.rb
145
146
  - lib/readers/checkin_reader.rb
147
+ - lib/readers/church_reader.rb
146
148
  - lib/readers/donation_export_list_reader.rb
147
149
  - lib/readers/donation_export_reader.rb
148
150
  - lib/readers/donation_list_reader.rb
@@ -339,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
341
  version: '0'
340
342
  requirements: []
341
343
  rubyforge_project: Project on www.github.com
342
- rubygems_version: 1.8.24
344
+ rubygems_version: 1.8.25
343
345
  signing_key:
344
346
  specification_version: 3
345
347
  summary: Ruby gem/plugin to interact with The City Admin API (https://api.OnTheCity.org).