datacatalog 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/datacatalog.gemspec +2 -2
- data/lib/base.rb +2 -0
- data/spec/base_spec.rb +8 -0
- metadata +2 -2
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ begin
|
|
5
5
|
require 'jeweler'
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "datacatalog"
|
8
|
-
gem.version = '0.4.
|
8
|
+
gem.version = '0.4.6'
|
9
9
|
gem.rubyforge_project = "datacatalog"
|
10
10
|
gem.summary = %Q{Client for the National Data Catalog API}
|
11
11
|
gem.description = %Q{A Ruby client library for the National Data Catalog API}
|
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.6"
|
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{2009-12-
|
12
|
+
s.date = %q{2009-12-15}
|
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 = [
|
data/lib/base.rb
CHANGED
data/spec/base_spec.rb
CHANGED
@@ -108,6 +108,10 @@ describe Base do
|
|
108
108
|
end
|
109
109
|
|
110
110
|
describe ".filterize" do
|
111
|
+
it "should work with 1 integer param" do
|
112
|
+
Base.filterize(:count => 7).should == %(count=7)
|
113
|
+
end
|
114
|
+
|
111
115
|
it "should work with 1 string param" do
|
112
116
|
Base.filterize(:name => "John Doe").should == %(name="John Doe")
|
113
117
|
end
|
@@ -123,6 +127,10 @@ describe Base do
|
|
123
127
|
].should include(Base.filterize(:name => "John Doe", :zip => "20036"))
|
124
128
|
end
|
125
129
|
|
130
|
+
it "should work with periods" do
|
131
|
+
Base.filterize('released.year' => 2008).should == %(released.year=2008)
|
132
|
+
end
|
133
|
+
|
126
134
|
it "should pass through strings" do
|
127
135
|
["count > 0", "count >= 1"].each do |s|
|
128
136
|
Base.filterize(s).should == s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datacatalog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luigi Montanez
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-12-
|
13
|
+
date: 2009-12-15 00:00:00 -05:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|