spark_api 1.4.4 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmUwNzIwNTgwOWUxN2MzMGZhNmZmNzM1MWQwODJmNTUwOTRlMWIyNw==
4
+ MTEyOThiZGRiYTUwYzRiYTNhOTA1YWUxM2Y3N2RjMDdjZjU2OGUyOA==
5
5
  data.tar.gz: !binary |-
6
- YWQyMWM3Y2Q5ODFlYzIzMTdlZjk1NDQwMDczNmNiMWQ2NTIwZDdlZA==
6
+ NWQ1MTJjYjUyODU0ZjJiNjczNzE5MGQ3YzBmYTMzODBjZTIxODU4MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGI2N2M2YTY2Mzg0MGVmYTlkZGFiOGI4YjVmNDFhYTIxYjYxODA4ZjQ5ZDEz
10
- MTc2Yjk3NWZjNzU1MDVjZTAyYmYyYmViZTE5ODBkN2Y5YjZiOGMwOWJiZTYy
11
- NGMxODEyOTJiN2YyNDRiYTM4MzkyZWZhMWM2MmNkYTQ5MzhmMjc=
9
+ NmI2NmZhMjRhOTI1ZDZhMTc5N2NiMmY2YjE2ZDEyYmNkOGM4MDhhOGE2MmM4
10
+ NWYwZTYyYzA1YjlmOGViYzBkMTM2Mjc2Mzc4OGE4MWI0ZjAyMDdiZmI5MTI5
11
+ ZDkxYjMyZDFjODFhODE1M2RlZjVjZjQzYzlhMjMxYmEyMDhiZmE=
12
12
  data.tar.gz: !binary |-
13
- ZDBjOTcwMWU4MmFiOGRkZmE0YTVjZmYwZTlhMjQ4NmEwMjJiZGQ2ZGFmNDBm
14
- M2ExM2I5MGNkNmRiZjZhN2MzYWIwNTc0MzdlYTY4OWE1ZjdjMTMzNmIzYzgw
15
- YzgxZWRlNTliNDM4NGM0Y2I3NWJmYjQ3YTUxZGZhYWI1NWY4MjQ=
13
+ MDNhYTg3NmVjYjUzNjhmM2VlMzE4YjNiNTQwOGI5NWFiZDAwZWFmN2FiYjE0
14
+ NWM3NDVkZjgyNmZmOTk3NzE3ZmY5NGRmMGQ3ZTlkMWUwMzNlMTc2ZDhiMzhm
15
+ NjE0MDMyZTNiOTUxZDA5MjRlN2JiNDI3MjI3ZDFlMDI5MGE1MmE=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.4
1
+ 1.4.5
@@ -28,7 +28,8 @@ module SparkApi
28
28
 
29
29
  def find(*arguments)
30
30
  if arguments.first == DEFAULT_ID
31
- default
31
+ options = arguments.slice!(1) || {}
32
+ default(options)
32
33
  else
33
34
  original_find(*arguments)
34
35
  end
@@ -43,6 +43,11 @@ describe Defaultable do
43
43
  TestClass.find(TestClass::DEFAULT_ID)
44
44
  end
45
45
 
46
+ it "passes options to 'default'" do
47
+ expect(TestClass).to receive(:default).with(foo: true)
48
+ TestClass.find(TestClass::DEFAULT_ID, foo: true)
49
+ end
50
+
46
51
  it "calls Finders.find when given a normal id" do
47
52
  connection = double
48
53
  expect(connection).to receive(:get).with("/testclass/5", {foo: true}).and_return([{}])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spark_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.4
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Hornseth
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-06-27 00:00:00.000000000 Z
12
+ date: 2016-07-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday