spark_api 1.3.25 → 1.3.26

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
- ZTVmZTkxOTdiYjI5YmE1N2UwN2Q5ZjQ3MmMxNDg1OTU2Njk4M2I0MQ==
4
+ ZmZlZWJkMzM5MDNjZjk3OTk1NTMxOGQwNmRiMTgyYjAyMmI5MjkwNg==
5
5
  data.tar.gz: !binary |-
6
- OWIyNTk5YjliMGVjM2RlNjM3M2IzZDAxY2JjYjUxYzRlNTYyYTUzMw==
6
+ NWUzZjlmOGJkOWYwZjgyMWQzODZjNGE5OTgyNzYxNjc5ZTk4MzRkOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjM2OWFhMDdhZDQ0MWQzZGZjYTVkODgyZGIxMmI2NTg1MzRmMWMwNDU4ZTQ3
10
- ZGViMzU3MjhhODQyNWUxYzAwYzY4YzJhZTQzOTNhMzliM2M0OGJlNjQyNjAw
11
- OGQ2YThjMzMxNDUxM2MwNDQxOGRiZWZhNDkyMWJlODg5NmJlMWU=
9
+ MjM3MjdhOGMyZjUzMWE4NjY2MGE1MjBlNWQxYjQxZjM3YWNkYTAzMTlkMjUz
10
+ NjNhYjRkNjAyNzgxMDZkNzM0OWE1Y2MxZGU2NjBhZDk4MWMzOTEwZTFlN2U4
11
+ ZjExNjdlZTBhMDQxNTQ4ZGIxZTA2NWRjNDQxNzIzZjc5MTcyM2U=
12
12
  data.tar.gz: !binary |-
13
- NTk1Y2Y3ZDZiZjg2ODJiZDg2YjBmZTJjMjVhNjI0MjJkNThhMTQ0ZmRmY2Q4
14
- OTg5OWIzMTdkNjZjMmU2MGZjODdmYjVjZDhlZDlmZGQ0YjIwYTFmY2MzM2Mw
15
- NjcyZDUxYjI4M2JkYzk0MzlhMTUxZGJiNWQ0MGFiMThiMjgwOTk=
13
+ OWZkMzAwNmY1ZDQ1MGQ2MWFjZDg0NjU1MDdhNTUxZjE1NmY2NDVhZTE4YWE4
14
+ YThmZjMwYjY2Y2YwMmI2NWY2ODMyOTZmMzI5ZWRmMGU5YTYzODZkMzJkNWQ2
15
+ MWQxZDA4YWU5ZGYzYjdiMzA0ZjVlYjRmMDU0YmIyZDVkMGNhZTU=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.25
1
+ 1.3.26
@@ -28,8 +28,8 @@ module SparkApi
28
28
  true
29
29
  end
30
30
 
31
- def update_attributes(attrs = {})
32
- attrs.each{|k,v| public_send(:"#{k}=", v)}
31
+ def update_attributes(attrs = {}, options = {})
32
+ load(attrs, options)
33
33
  save!
34
34
  end
35
35
 
@@ -74,4 +74,14 @@ describe Concerns::Savable, "Model" do
74
74
  s.should have_been_requested
75
75
  end
76
76
 
77
+ describe "update_attributes" do
78
+ it "loads the attributes" do
79
+ model = MyExampleModel.new
80
+ new_attributes = {Name: "My Name"}
81
+ expect(model).to receive(:load).with(new_attributes, {})
82
+ expect(model).to receive(:save!)
83
+ model.update_attributes(new_attributes)
84
+ end
85
+ end
86
+
77
87
  end
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.3.25
4
+ version: 1.3.26
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: 2015-07-06 00:00:00.000000000 Z
12
+ date: 2015-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday