asari 0.11.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f674450079a0b564ad5b1623ecd78b81d8bbfbf8
4
- data.tar.gz: 42ff0091617dd6975c82c7ef2f4328d2fa9bba74
3
+ metadata.gz: 4dba92aa2cd1a63670a551f536f331652ac1c9e3
4
+ data.tar.gz: 37fa06359fbb36a896c91bda3e85e7e2f0ecc841
5
5
  SHA512:
6
- metadata.gz: a8d64c17e02e70be0d07559be80c98e0f03ad09a1869b0240516ed3e69d27aa5822586df36f45035e0a9aed26c2698ac6fb8c6ea63cdce2ba1633054e3594e70
7
- data.tar.gz: f6187beea7a8de32c173d4f873248a01435b860d611c910f90a69c77d48ee7e4216372165e8d684fce4415f6fd7ca76fcb80dd80fed67d7a42c376191d873fd6
6
+ metadata.gz: 9db0ed3d5d1936e3d880cb6c1a5eedcd10aa3bf6acac0c4dc6d6a746d7c3e1661aa5a93b4c2ce2158e102eff65eca50a7b8e6e6fff38fbe85b92b7a64f01be88
7
+ data.tar.gz: 8d4832d487772c3f8c465558ffc7389279ca783f7b7be810c6b4db406822c75dc9313c4342e78e70749e3ed781e7b76fac919c3b9f212c0f1e8870754e9a26e6
@@ -5,5 +5,7 @@ rvm:
5
5
  - jruby-head
6
6
  - 2.0.0
7
7
  - 2.1.2
8
+ - 2.3.5
9
+ - 2.4.2
8
10
  - ruby-head
9
11
 
@@ -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.send(method, *args, &block)
81
+ @data.public_send(method, *args, &block)
78
82
  end
79
83
  end
80
84
  end
@@ -1,3 +1,3 @@
1
1
  class Asari
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.1"
3
3
  end
@@ -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.11.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: 2015-06-10 00:00:00.000000000 Z
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.2.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: