loquor 1.8.0 → 1.9.0

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: 2235b851b596e4ab7c4c0647d0794dfb5a03ef83
4
- data.tar.gz: b535cfaa4426ec6472657772f158a4b93fba0de1
3
+ metadata.gz: b14ec844bf79eac498b70b9739422cdd7cbd0ed7
4
+ data.tar.gz: f290db8cbc26f200838a8601d6c482cfbbcc67cc
5
5
  SHA512:
6
- metadata.gz: a467f81421afdd64570918f3e6cdbd56a43abef9fe3304499b7bff96104279191347f9c123835d6f7e53a6fc2bf240658a9dab2263f929140c626f4be76509db
7
- data.tar.gz: 5caac15616d535425ca1cee9930109612c15c361ee1f3dec8af1c29aa513411f0720644820aca38fda2468f313da104edeedd899ce963ce7ef13c93db206fde8
6
+ metadata.gz: e7debfdd1ed58223f03019643d9e04f6bb4c0ee0e1a94dbc13dbe36a85d930b9a44b6ec1b6115a1a250318d80a08606e7940cfc66046147a7f2e96d9d567f705
7
+ data.tar.gz: 5a40d2a8daa698f2bcee5e411e33dd1034fc4af6d255cfba760104092e28d28bfd311b51c59d51d475dcaa309ae8c1dc59d4c05a9facb4cf61a61a9c71697e48
@@ -1,3 +1,6 @@
1
+ # 1.9.0 / 2014-03-31
2
+ * [FEATURE] Don't call back to SPI for find unless there is an id
3
+
1
4
  # 1.8.0 / 2014-03-31
2
5
  * [FEATURE] Allow empty hash values in index criteria
3
6
 
@@ -7,6 +7,7 @@ module Loquor
7
7
  end
8
8
 
9
9
  def execute
10
+ return nil unless @id
10
11
  begin
11
12
  get_data
12
13
  rescue RestClient::ResourceNotFound
@@ -1,3 +1,3 @@
1
1
  module Loquor
2
- VERSION = "1.8.0"
2
+ VERSION = "1.9.0"
3
3
  end
@@ -12,6 +12,12 @@ module Loquor
12
12
  self.cache = true
13
13
  end
14
14
 
15
+ def test_request_should_not_send_for_nil_id
16
+ show = ApiCall::Show.new(NormalResource, nil)
17
+ Loquor.expects(:get).never
18
+ show.execute
19
+ end
20
+
15
21
  def test_request_correct_path
16
22
  show = ApiCall::Show.new(NormalResource, 42)
17
23
  Loquor.expects(:get).with('/normal/42', {cache: nil}).returns({}.to_json)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loquor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-31 00:00:00.000000000 Z
11
+ date: 2014-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: filum