rgovdata 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/.document +5 -0
  2. data/.rvmrc +2 -0
  3. data/CHANGELOG +7 -0
  4. data/Gemfile +18 -0
  5. data/Gemfile.lock +48 -0
  6. data/LICENSE +20 -0
  7. data/README.rdoc +114 -0
  8. data/Rakefile +61 -0
  9. data/bin/rgd +12 -0
  10. data/examples/all_quakes.rb +8 -0
  11. data/examples/arbitrary_data.rb +26 -0
  12. data/examples/catalog_traversal.rb +34 -0
  13. data/examples/earthquakes.rb +5 -0
  14. data/lib/rgovdata.rb +4 -0
  15. data/lib/rgovdata/catalog.rb +4 -0
  16. data/lib/rgovdata/catalog/catalog.rb +79 -0
  17. data/lib/rgovdata/catalog/dn.rb +63 -0
  18. data/lib/rgovdata/catalog/registry_strategy/internal_registry.rb +12 -0
  19. data/lib/rgovdata/catalog/registry_strategy/registry_strategy.rb +26 -0
  20. data/lib/rgovdata/config.rb +5 -0
  21. data/lib/rgovdata/config/common_config.rb +13 -0
  22. data/lib/rgovdata/config/config.rb +133 -0
  23. data/lib/rgovdata/data/config_template.yml +19 -0
  24. data/lib/rgovdata/data/sg/registry.yml +147 -0
  25. data/lib/rgovdata/data/template.rb +27 -0
  26. data/lib/rgovdata/data/us/registry.yml +12 -0
  27. data/lib/rgovdata/service.rb +10 -0
  28. data/lib/rgovdata/service/csv_service.rb +3 -0
  29. data/lib/rgovdata/service/dataset/csv_dataset.rb +43 -0
  30. data/lib/rgovdata/service/dataset/dataset.rb +91 -0
  31. data/lib/rgovdata/service/dataset/file_dataset.rb +46 -0
  32. data/lib/rgovdata/service/dataset/odata_dataset.rb +31 -0
  33. data/lib/rgovdata/service/file_service.rb +10 -0
  34. data/lib/rgovdata/service/listing.rb +47 -0
  35. data/lib/rgovdata/service/odata_service.rb +50 -0
  36. data/lib/rgovdata/service/service.rb +93 -0
  37. data/lib/rgovdata/shell/shell.rb +157 -0
  38. data/lib/rgovdata/version.rb +9 -0
  39. data/rgovdata.gemspec +128 -0
  40. data/spec/fixtures/sample.csv +821 -0
  41. data/spec/integration/service/sg/nlb_spec.rb +57 -0
  42. data/spec/integration/service/sg/places_spec.rb +73 -0
  43. data/spec/integration/service/us/eqs7day-M1_spec.rb +57 -0
  44. data/spec/spec_helper.rb +25 -0
  45. data/spec/support/config_examples.rb +8 -0
  46. data/spec/support/mocks.rb +22 -0
  47. data/spec/support/utility.rb +18 -0
  48. data/spec/unit/catalog/base_spec.rb +93 -0
  49. data/spec/unit/catalog/registry_strategy_spec.rb +28 -0
  50. data/spec/unit/config/config_spec.rb +130 -0
  51. data/spec/unit/data/template_spec.rb +32 -0
  52. data/spec/unit/service/dataset/csv_dataset_spec.rb +42 -0
  53. data/spec/unit/service/dataset/dataset_spec.rb +37 -0
  54. data/spec/unit/service/dataset/file_dataset_spec.rb +40 -0
  55. data/spec/unit/service/dataset/odata_dataset_spec.rb +36 -0
  56. data/spec/unit/service/file_service_spec.rb +25 -0
  57. data/spec/unit/service/listing_spec.rb +100 -0
  58. data/spec/unit/service/odata_service_spec.rb +42 -0
  59. data/spec/unit/service/service_spec.rb +82 -0
  60. data/spec/unit/shell/shell_spec.rb +10 -0
  61. metadata +228 -0
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+ require 'getoptions'
3
+
4
+ describe RGovData::Shell do
5
+ context "class" do
6
+ subject { RGovData::Shell }
7
+ it { should respond_to(:usage) }
8
+ end
9
+
10
+ end
metadata ADDED
@@ -0,0 +1,228 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rgovdata
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Paul Gallagher
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-11-05 00:00:00 +08:00
14
+ default_executable: rgd
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: activesupport
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 3.0.3
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: i18n
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 0.5.0
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: ruby_odata
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 0.0.10
46
+ type: :runtime
47
+ prerelease: false
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: getoptions
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: "0.3"
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: bundler
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: 1.0.0
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
72
+ name: jeweler
73
+ requirement: &id006 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ~>
77
+ - !ruby/object:Gem::Version
78
+ version: 1.6.4
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: *id006
82
+ - !ruby/object:Gem::Dependency
83
+ name: rcov
84
+ requirement: &id007 !ruby/object:Gem::Requirement
85
+ none: false
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: "0"
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: *id007
93
+ - !ruby/object:Gem::Dependency
94
+ name: rdoc
95
+ requirement: &id008 !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ~>
99
+ - !ruby/object:Gem::Version
100
+ version: "3.11"
101
+ type: :development
102
+ prerelease: false
103
+ version_requirements: *id008
104
+ - !ruby/object:Gem::Dependency
105
+ name: rake
106
+ requirement: &id009 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ~>
110
+ - !ruby/object:Gem::Version
111
+ version: 0.9.2.2
112
+ type: :development
113
+ prerelease: false
114
+ version_requirements: *id009
115
+ - !ruby/object:Gem::Dependency
116
+ name: rspec
117
+ requirement: &id010 !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - ~>
121
+ - !ruby/object:Gem::Version
122
+ version: 2.7.0
123
+ type: :development
124
+ prerelease: false
125
+ version_requirements: *id010
126
+ description: Consuming government-published data in a ruby or rails application shouldn't require a PhD
127
+ email: gallagher.paul@gmail.com
128
+ executables:
129
+ - rgd
130
+ extensions: []
131
+
132
+ extra_rdoc_files:
133
+ - LICENSE
134
+ - README.rdoc
135
+ files:
136
+ - .document
137
+ - .rvmrc
138
+ - CHANGELOG
139
+ - Gemfile
140
+ - Gemfile.lock
141
+ - LICENSE
142
+ - README.rdoc
143
+ - Rakefile
144
+ - bin/rgd
145
+ - examples/all_quakes.rb
146
+ - examples/arbitrary_data.rb
147
+ - examples/catalog_traversal.rb
148
+ - examples/earthquakes.rb
149
+ - lib/rgovdata.rb
150
+ - lib/rgovdata/catalog.rb
151
+ - lib/rgovdata/catalog/catalog.rb
152
+ - lib/rgovdata/catalog/dn.rb
153
+ - lib/rgovdata/catalog/registry_strategy/internal_registry.rb
154
+ - lib/rgovdata/catalog/registry_strategy/registry_strategy.rb
155
+ - lib/rgovdata/config.rb
156
+ - lib/rgovdata/config/common_config.rb
157
+ - lib/rgovdata/config/config.rb
158
+ - lib/rgovdata/data/config_template.yml
159
+ - lib/rgovdata/data/sg/registry.yml
160
+ - lib/rgovdata/data/template.rb
161
+ - lib/rgovdata/data/us/registry.yml
162
+ - lib/rgovdata/service.rb
163
+ - lib/rgovdata/service/csv_service.rb
164
+ - lib/rgovdata/service/dataset/csv_dataset.rb
165
+ - lib/rgovdata/service/dataset/dataset.rb
166
+ - lib/rgovdata/service/dataset/file_dataset.rb
167
+ - lib/rgovdata/service/dataset/odata_dataset.rb
168
+ - lib/rgovdata/service/file_service.rb
169
+ - lib/rgovdata/service/listing.rb
170
+ - lib/rgovdata/service/odata_service.rb
171
+ - lib/rgovdata/service/service.rb
172
+ - lib/rgovdata/shell/shell.rb
173
+ - lib/rgovdata/version.rb
174
+ - rgovdata.gemspec
175
+ - spec/fixtures/sample.csv
176
+ - spec/integration/service/sg/nlb_spec.rb
177
+ - spec/integration/service/sg/places_spec.rb
178
+ - spec/integration/service/us/eqs7day-M1_spec.rb
179
+ - spec/spec_helper.rb
180
+ - spec/support/config_examples.rb
181
+ - spec/support/mocks.rb
182
+ - spec/support/utility.rb
183
+ - spec/unit/catalog/base_spec.rb
184
+ - spec/unit/catalog/registry_strategy_spec.rb
185
+ - spec/unit/config/config_spec.rb
186
+ - spec/unit/data/template_spec.rb
187
+ - spec/unit/service/dataset/csv_dataset_spec.rb
188
+ - spec/unit/service/dataset/dataset_spec.rb
189
+ - spec/unit/service/dataset/file_dataset_spec.rb
190
+ - spec/unit/service/dataset/odata_dataset_spec.rb
191
+ - spec/unit/service/file_service_spec.rb
192
+ - spec/unit/service/listing_spec.rb
193
+ - spec/unit/service/odata_service_spec.rb
194
+ - spec/unit/service/service_spec.rb
195
+ - spec/unit/shell/shell_spec.rb
196
+ has_rdoc: true
197
+ homepage: http://github.com/tardate/rgovdata
198
+ licenses:
199
+ - MIT
200
+ post_install_message:
201
+ rdoc_options: []
202
+
203
+ require_paths:
204
+ - lib
205
+ required_ruby_version: !ruby/object:Gem::Requirement
206
+ none: false
207
+ requirements:
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ hash: 2996118274348433463
211
+ segments:
212
+ - 0
213
+ version: "0"
214
+ required_rubygems_version: !ruby/object:Gem::Requirement
215
+ none: false
216
+ requirements:
217
+ - - ">="
218
+ - !ruby/object:Gem::Version
219
+ version: "0"
220
+ requirements: []
221
+
222
+ rubyforge_project:
223
+ rubygems_version: 1.5.2
224
+ signing_key:
225
+ specification_version: 3
226
+ summary: Really simple access to government data for ruby
227
+ test_files: []
228
+