plos 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/plos/client.rb CHANGED
@@ -12,7 +12,7 @@ module PLOS
12
12
  end
13
13
 
14
14
  def all(start=0, rows=50)
15
- search("*:*", rows, start)
15
+ search("*:*", start, rows)
16
16
  end
17
17
 
18
18
  def search(query, start=0, rows=50)
data/lib/plos/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plos
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/spec/plos_spec.rb CHANGED
@@ -11,7 +11,7 @@ describe PLOS do
11
11
 
12
12
  it "should call the correct search url when rows and start are specified" do
13
13
  RestClient.should_receive(:post).with("http://api.plos.org/search", {:api_key=>"API_KEY", :q=>"xenograft", :rows=>100, :start=>200}).and_return("")
14
- client.search("xenograft", 100, 200)
14
+ client.search("xenograft", 200, 100)
15
15
  end
16
16
 
17
17
  it "should call the correct search url when finding all" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  segments:
124
124
  - 0
125
- hash: -2910391070543665259
125
+ hash: -4503252399675787429
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  segments:
133
133
  - 0
134
- hash: -2910391070543665259
134
+ hash: -4503252399675787429
135
135
  requirements: []
136
136
  rubyforge_project:
137
137
  rubygems_version: 1.8.24