asari 0.11.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/lib/asari/collection.rb +5 -1
- data/lib/asari/version.rb +1 -1
- data/spec/collection_spec.rb +5 -1
- metadata +12 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4dba92aa2cd1a63670a551f536f331652ac1c9e3
|
4
|
+
data.tar.gz: 37fa06359fbb36a896c91bda3e85e7e2f0ecc841
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9db0ed3d5d1936e3d880cb6c1a5eedcd10aa3bf6acac0c4dc6d6a746d7c3e1661aa5a93b4c2ce2158e102eff65eca50a7b8e6e6fff38fbe85b92b7a64f01be88
|
7
|
+
data.tar.gz: 8d4832d487772c3f8c465558ffc7389279ca783f7b7be810c6b4db406822c75dc9313c4342e78e70749e3ed781e7b76fac919c3b9f212c0f1e8870754e9a26e6
|
data/.travis.yml
CHANGED
data/lib/asari/collection.rb
CHANGED
@@ -73,8 +73,12 @@ class Asari
|
|
73
73
|
::Asari::Collection
|
74
74
|
end
|
75
75
|
|
76
|
+
def respond_to?(method, include_all = false)
|
77
|
+
@data.respond_to?(method, false)
|
78
|
+
end
|
79
|
+
|
76
80
|
def method_missing(method, *args, &block)
|
77
|
-
@data.
|
81
|
+
@data.public_send(method, *args, &block)
|
78
82
|
end
|
79
83
|
end
|
80
84
|
end
|
data/lib/asari/version.rb
CHANGED
data/spec/collection_spec.rb
CHANGED
@@ -2,7 +2,7 @@ require_relative '../spec_helper'
|
|
2
2
|
|
3
3
|
describe Asari do
|
4
4
|
describe Asari::Collection do
|
5
|
-
before :each do
|
5
|
+
before :each do
|
6
6
|
response = OpenStruct.new(:parsed_response => { "hits" => { "found" => 10, "start" => 0, "hit" => ["1","2"]}})
|
7
7
|
@collection = Asari::Collection.new(response, 2)
|
8
8
|
end
|
@@ -26,5 +26,9 @@ describe Asari do
|
|
26
26
|
it "calculates the offset correctly" do
|
27
27
|
expect(@collection.offset).to eq(0)
|
28
28
|
end
|
29
|
+
|
30
|
+
it "gracefully handles Marshaling" do
|
31
|
+
expect { Marshal.dump @collection }.not_to raise_error
|
32
|
+
end
|
29
33
|
end
|
30
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asari
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tommy Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -113,8 +113,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
115
|
rubyforge_project: asari
|
116
|
-
rubygems_version: 2.
|
116
|
+
rubygems_version: 2.4.8
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Asari is a Ruby interface for AWS CloudSearch.
|
120
|
-
test_files:
|
120
|
+
test_files:
|
121
|
+
- spec/active_record_spec.rb
|
122
|
+
- spec/asari_spec.rb
|
123
|
+
- spec/collection_spec.rb
|
124
|
+
- spec/conditionals_spec.rb
|
125
|
+
- spec/documents_spec.rb
|
126
|
+
- spec/geography_spec.rb
|
127
|
+
- spec/search_spec.rb
|
128
|
+
has_rdoc:
|