datacatalog 0.4.17 → 0.4.18
Sign up to get free protection for your applications and to get access to all the features.
- data/.bundle/config +2 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +44 -0
- data/Rakefile +13 -10
- data/datacatalog.gemspec +32 -24
- data/lib/base.rb +0 -8
- data/lib/datacatalog.rb +1 -1
- data/spec/setup_api.rb +3 -1
- data/tasks/test_api.rake +1 -1
- metadata +68 -16
data/.bundle/config
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
datacatalog (0.4.18)
|
5
|
+
activesupport (~> 3.0.0)
|
6
|
+
httparty (~> 0.6.1)
|
7
|
+
mash (~> 0.1.1)
|
8
|
+
version_string (~> 0.1.0)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: http://rubygems.org/
|
12
|
+
specs:
|
13
|
+
activesupport (3.0.0)
|
14
|
+
crack (0.1.8)
|
15
|
+
gemcutter (0.6.1)
|
16
|
+
git (1.2.5)
|
17
|
+
httparty (0.6.1)
|
18
|
+
crack (= 0.1.8)
|
19
|
+
jeweler (1.4.0)
|
20
|
+
gemcutter (>= 0.1.0)
|
21
|
+
git (>= 1.2.5)
|
22
|
+
rubyforge (>= 2.0.0)
|
23
|
+
json_pure (1.4.6)
|
24
|
+
mash (0.1.1)
|
25
|
+
rcov (0.9.9)
|
26
|
+
rr (1.0.0)
|
27
|
+
rspec (1.3.0)
|
28
|
+
rubyforge (2.0.4)
|
29
|
+
json_pure (>= 1.1.7)
|
30
|
+
version_string (0.1.0)
|
31
|
+
|
32
|
+
PLATFORMS
|
33
|
+
ruby
|
34
|
+
|
35
|
+
DEPENDENCIES
|
36
|
+
activesupport (~> 3.0.0)
|
37
|
+
datacatalog!
|
38
|
+
httparty (~> 0.6.1)
|
39
|
+
jeweler (~> 1.4.0)
|
40
|
+
mash (~> 0.1.1)
|
41
|
+
rcov (~> 0.9.9)
|
42
|
+
rr (~> 1.0.0)
|
43
|
+
rspec (~> 1.3.0)
|
44
|
+
version_string (~> 0.1.0)
|
data/Rakefile
CHANGED
@@ -1,29 +1,32 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'rake'
|
3
2
|
|
4
3
|
begin
|
5
4
|
require 'jeweler'
|
6
5
|
Jeweler::Tasks.new do |gem|
|
7
6
|
gem.name = "datacatalog"
|
8
|
-
gem.version = '0.4.
|
9
|
-
gem.rubyforge_project = "datacatalog"
|
7
|
+
gem.version = '0.4.18'
|
10
8
|
gem.summary = %Q{Client for the National Data Catalog API}
|
11
9
|
gem.description = %Q{A Ruby client library for the National Data Catalog API}
|
12
10
|
gem.email = "luigi@sunlightfoundation.com"
|
13
11
|
gem.homepage = "http://github.com/sunlightlabs/datacatalog"
|
14
12
|
gem.authors = ["Luigi Montanez", "David James"]
|
15
|
-
|
16
|
-
gem.add_dependency('
|
17
|
-
gem.add_dependency('
|
18
|
-
gem.add_dependency('
|
19
|
-
gem.
|
20
|
-
|
13
|
+
|
14
|
+
gem.add_dependency('activesupport', "~> 3.0.0")
|
15
|
+
gem.add_dependency('httparty', "~> 0.6.1")
|
16
|
+
gem.add_dependency('mash', "~> 0.1.1")
|
17
|
+
gem.add_dependency('version_string', "~> 0.1.0")
|
18
|
+
|
19
|
+
gem.add_development_dependency("jeweler", "~> 1.4.0")
|
20
|
+
gem.add_development_dependency("rcov", "~> 0.9.9")
|
21
|
+
gem.add_development_dependency("rspec", "~> 1.3.0")
|
22
|
+
gem.add_development_dependency("rr", "~> 1.0.0")
|
23
|
+
|
21
24
|
# gem is a Gem::Specification...
|
22
25
|
# see http://www.rubygems.org/read/chapter/20 for additional settings
|
23
26
|
end
|
24
27
|
Jeweler::GemcutterTasks.new
|
25
28
|
rescue LoadError
|
26
|
-
puts "Jeweler
|
29
|
+
puts "Jeweler not found. Install with: gem install jeweler"
|
27
30
|
end
|
28
31
|
|
29
32
|
Dir.glob(File.dirname(__FILE__) + '/tasks/*.rake').each { |f| load f }
|
data/datacatalog.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{datacatalog}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.18"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Luigi Montanez", "David James"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-22}
|
13
13
|
s.description = %q{A Ruby client library for the National Data Catalog API}
|
14
14
|
s.email = %q{luigi@sunlightfoundation.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -17,7 +17,10 @@ Gem::Specification.new do |s|
|
|
17
17
|
"README.md"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
".
|
20
|
+
".bundle/config",
|
21
|
+
".gitignore",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
21
24
|
"LICENSE.md",
|
22
25
|
"README.md",
|
23
26
|
"Rakefile",
|
@@ -71,8 +74,7 @@ Gem::Specification.new do |s|
|
|
71
74
|
s.homepage = %q{http://github.com/sunlightlabs/datacatalog}
|
72
75
|
s.rdoc_options = ["--charset=UTF-8"]
|
73
76
|
s.require_paths = ["lib"]
|
74
|
-
s.
|
75
|
-
s.rubygems_version = %q{1.3.6}
|
77
|
+
s.rubygems_version = %q{1.3.7}
|
76
78
|
s.summary = %q{Client for the National Data Catalog API}
|
77
79
|
s.test_files = [
|
78
80
|
"spec/about_spec.rb",
|
@@ -101,28 +103,34 @@ Gem::Specification.new do |s|
|
|
101
103
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
102
104
|
s.specification_version = 3
|
103
105
|
|
104
|
-
if Gem::Version.new(Gem::
|
105
|
-
s.add_runtime_dependency(%q<activesupport>, ["
|
106
|
-
s.add_runtime_dependency(%q<httparty>, ["
|
107
|
-
s.add_runtime_dependency(%q<mash>, ["
|
108
|
-
s.add_runtime_dependency(%q<version_string>, ["
|
109
|
-
s.add_development_dependency(%q<jeweler>, ["
|
110
|
-
s.add_development_dependency(%q<
|
106
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
107
|
+
s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0"])
|
108
|
+
s.add_runtime_dependency(%q<httparty>, ["~> 0.6.1"])
|
109
|
+
s.add_runtime_dependency(%q<mash>, ["~> 0.1.1"])
|
110
|
+
s.add_runtime_dependency(%q<version_string>, ["~> 0.1.0"])
|
111
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.4.0"])
|
112
|
+
s.add_development_dependency(%q<rcov>, ["~> 0.9.9"])
|
113
|
+
s.add_development_dependency(%q<rspec>, ["~> 1.3.0"])
|
114
|
+
s.add_development_dependency(%q<rr>, ["~> 1.0.0"])
|
111
115
|
else
|
112
|
-
s.add_dependency(%q<activesupport>, ["
|
113
|
-
s.add_dependency(%q<httparty>, ["
|
114
|
-
s.add_dependency(%q<mash>, ["
|
115
|
-
s.add_dependency(%q<version_string>, ["
|
116
|
-
s.add_dependency(%q<jeweler>, ["
|
117
|
-
s.add_dependency(%q<
|
116
|
+
s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
|
117
|
+
s.add_dependency(%q<httparty>, ["~> 0.6.1"])
|
118
|
+
s.add_dependency(%q<mash>, ["~> 0.1.1"])
|
119
|
+
s.add_dependency(%q<version_string>, ["~> 0.1.0"])
|
120
|
+
s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
|
121
|
+
s.add_dependency(%q<rcov>, ["~> 0.9.9"])
|
122
|
+
s.add_dependency(%q<rspec>, ["~> 1.3.0"])
|
123
|
+
s.add_dependency(%q<rr>, ["~> 1.0.0"])
|
118
124
|
end
|
119
125
|
else
|
120
|
-
s.add_dependency(%q<activesupport>, ["
|
121
|
-
s.add_dependency(%q<httparty>, ["
|
122
|
-
s.add_dependency(%q<mash>, ["
|
123
|
-
s.add_dependency(%q<version_string>, ["
|
124
|
-
s.add_dependency(%q<jeweler>, ["
|
125
|
-
s.add_dependency(%q<
|
126
|
+
s.add_dependency(%q<activesupport>, ["~> 3.0.0"])
|
127
|
+
s.add_dependency(%q<httparty>, ["~> 0.6.1"])
|
128
|
+
s.add_dependency(%q<mash>, ["~> 0.1.1"])
|
129
|
+
s.add_dependency(%q<version_string>, ["~> 0.1.0"])
|
130
|
+
s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
|
131
|
+
s.add_dependency(%q<rcov>, ["~> 0.9.9"])
|
132
|
+
s.add_dependency(%q<rspec>, ["~> 1.3.0"])
|
133
|
+
s.add_dependency(%q<rr>, ["~> 1.0.0"])
|
126
134
|
end
|
127
135
|
end
|
128
136
|
|
data/lib/base.rb
CHANGED
@@ -99,14 +99,6 @@ module DataCatalog
|
|
99
99
|
filtered_conditions.join(" and ")
|
100
100
|
end
|
101
101
|
|
102
|
-
def method_missing(method_name, *args)
|
103
|
-
if method_name.to_s.match(/.*_(on|at)\z/)
|
104
|
-
return Time.parse(super)
|
105
|
-
else
|
106
|
-
super
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
102
|
end
|
111
103
|
|
112
104
|
end
|
data/lib/datacatalog.rb
CHANGED
data/spec/setup_api.rb
CHANGED
@@ -2,7 +2,9 @@ require 'yaml'
|
|
2
2
|
require File.dirname(__FILE__) + '/../lib/datacatalog'
|
3
3
|
|
4
4
|
def setup_api
|
5
|
-
|
5
|
+
filename = File.expand_path(File.join(
|
6
|
+
File.dirname(__FILE__), '..', 'sandbox_api.yml'))
|
7
|
+
config = YAML.load_file(filename)
|
6
8
|
DataCatalog.api_key = config['api_key']
|
7
9
|
DataCatalog.base_uri = config['base_uri']
|
8
10
|
end
|
data/tasks/test_api.rake
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datacatalog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 43
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
9
|
+
- 18
|
10
|
+
version: 0.4.18
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Luigi Montanez
|
@@ -15,30 +16,34 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2010-
|
19
|
+
date: 2010-09-22 00:00:00 -04:00
|
19
20
|
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
22
23
|
name: activesupport
|
23
24
|
prerelease: false
|
24
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
25
27
|
requirements:
|
26
|
-
- -
|
28
|
+
- - ~>
|
27
29
|
- !ruby/object:Gem::Version
|
30
|
+
hash: 7
|
28
31
|
segments:
|
29
|
-
- 2
|
30
32
|
- 3
|
31
|
-
-
|
32
|
-
|
33
|
+
- 0
|
34
|
+
- 0
|
35
|
+
version: 3.0.0
|
33
36
|
type: :runtime
|
34
37
|
version_requirements: *id001
|
35
38
|
- !ruby/object:Gem::Dependency
|
36
39
|
name: httparty
|
37
40
|
prerelease: false
|
38
41
|
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
39
43
|
requirements:
|
40
|
-
- -
|
44
|
+
- - ~>
|
41
45
|
- !ruby/object:Gem::Version
|
46
|
+
hash: 5
|
42
47
|
segments:
|
43
48
|
- 0
|
44
49
|
- 6
|
@@ -50,9 +55,11 @@ dependencies:
|
|
50
55
|
name: mash
|
51
56
|
prerelease: false
|
52
57
|
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
53
59
|
requirements:
|
54
|
-
- -
|
60
|
+
- - ~>
|
55
61
|
- !ruby/object:Gem::Version
|
62
|
+
hash: 25
|
56
63
|
segments:
|
57
64
|
- 0
|
58
65
|
- 1
|
@@ -64,9 +71,11 @@ dependencies:
|
|
64
71
|
name: version_string
|
65
72
|
prerelease: false
|
66
73
|
requirement: &id004 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
67
75
|
requirements:
|
68
|
-
- -
|
76
|
+
- - ~>
|
69
77
|
- !ruby/object:Gem::Version
|
78
|
+
hash: 27
|
70
79
|
segments:
|
71
80
|
- 0
|
72
81
|
- 1
|
@@ -78,9 +87,11 @@ dependencies:
|
|
78
87
|
name: jeweler
|
79
88
|
prerelease: false
|
80
89
|
requirement: &id005 !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
81
91
|
requirements:
|
82
|
-
- -
|
92
|
+
- - ~>
|
83
93
|
- !ruby/object:Gem::Version
|
94
|
+
hash: 7
|
84
95
|
segments:
|
85
96
|
- 1
|
86
97
|
- 4
|
@@ -89,19 +100,53 @@ dependencies:
|
|
89
100
|
type: :development
|
90
101
|
version_requirements: *id005
|
91
102
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
103
|
+
name: rcov
|
93
104
|
prerelease: false
|
94
105
|
requirement: &id006 !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
hash: 41
|
111
|
+
segments:
|
112
|
+
- 0
|
113
|
+
- 9
|
114
|
+
- 9
|
115
|
+
version: 0.9.9
|
116
|
+
type: :development
|
117
|
+
version_requirements: *id006
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: rspec
|
120
|
+
prerelease: false
|
121
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
122
|
+
none: false
|
95
123
|
requirements:
|
96
|
-
- -
|
124
|
+
- - ~>
|
97
125
|
- !ruby/object:Gem::Version
|
126
|
+
hash: 27
|
98
127
|
segments:
|
99
128
|
- 1
|
100
129
|
- 3
|
101
130
|
- 0
|
102
131
|
version: 1.3.0
|
103
132
|
type: :development
|
104
|
-
version_requirements: *
|
133
|
+
version_requirements: *id007
|
134
|
+
- !ruby/object:Gem::Dependency
|
135
|
+
name: rr
|
136
|
+
prerelease: false
|
137
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ~>
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
hash: 23
|
143
|
+
segments:
|
144
|
+
- 1
|
145
|
+
- 0
|
146
|
+
- 0
|
147
|
+
version: 1.0.0
|
148
|
+
type: :development
|
149
|
+
version_requirements: *id008
|
105
150
|
description: A Ruby client library for the National Data Catalog API
|
106
151
|
email: luigi@sunlightfoundation.com
|
107
152
|
executables: []
|
@@ -112,7 +157,10 @@ extra_rdoc_files:
|
|
112
157
|
- LICENSE.md
|
113
158
|
- README.md
|
114
159
|
files:
|
160
|
+
- .bundle/config
|
115
161
|
- .gitignore
|
162
|
+
- Gemfile
|
163
|
+
- Gemfile.lock
|
116
164
|
- LICENSE.md
|
117
165
|
- README.md
|
118
166
|
- Rakefile
|
@@ -172,23 +220,27 @@ rdoc_options:
|
|
172
220
|
require_paths:
|
173
221
|
- lib
|
174
222
|
required_ruby_version: !ruby/object:Gem::Requirement
|
223
|
+
none: false
|
175
224
|
requirements:
|
176
225
|
- - ">="
|
177
226
|
- !ruby/object:Gem::Version
|
227
|
+
hash: 3
|
178
228
|
segments:
|
179
229
|
- 0
|
180
230
|
version: "0"
|
181
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
|
+
none: false
|
182
233
|
requirements:
|
183
234
|
- - ">="
|
184
235
|
- !ruby/object:Gem::Version
|
236
|
+
hash: 3
|
185
237
|
segments:
|
186
238
|
- 0
|
187
239
|
version: "0"
|
188
240
|
requirements: []
|
189
241
|
|
190
|
-
rubyforge_project:
|
191
|
-
rubygems_version: 1.3.
|
242
|
+
rubyforge_project:
|
243
|
+
rubygems_version: 1.3.7
|
192
244
|
signing_key:
|
193
245
|
specification_version: 3
|
194
246
|
summary: Client for the National Data Catalog API
|