helix 0.0.3.2.pre → 0.0.3.3.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/helix/config.rb +2 -2
- data/spec/config_spec.rb +1 -1
- metadata +2 -2
data/lib/helix/config.rb
CHANGED
@@ -131,8 +131,8 @@ module Helix
|
|
131
131
|
def last_page?
|
132
132
|
return false unless @response
|
133
133
|
return false unless @response.headers
|
134
|
-
@response.headers.has_key?(:is_last_page)
|
135
|
-
|
134
|
+
return true unless @response.headers.has_key?(:is_last_page)
|
135
|
+
@response.headers[:is_last_page] == "true"
|
136
136
|
end
|
137
137
|
|
138
138
|
# Fetches the signature for a specific license key.
|
data/spec/config_spec.rb
CHANGED
@@ -428,7 +428,7 @@ describe Helix::Config do
|
|
428
428
|
context "and there is a @response.headers" do
|
429
429
|
context "and @response.headers does NOT have the key :is_last_page" do
|
430
430
|
before(:each) do mock_response.stub(:headers) { {} } end
|
431
|
-
it { should be
|
431
|
+
it { should be true }
|
432
432
|
end
|
433
433
|
context "and @response.headers has the key :is_last_page" do
|
434
434
|
context "and @response.headers[:is_last_page] == 'truthy'" do
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: helix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 8
|
5
|
-
version: 0.0.3.
|
5
|
+
version: 0.0.3.3.pre
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Twistage, Inc
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2013-05-
|
13
|
+
date: 2013-05-16 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|