spark_api 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  Spark API
2
2
  =====================
3
- [![Build Status](https://secure.travis-ci.org/sparkapi/spark_api.png)](http://travis-ci.org/sparkapi/spark_api) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/sparkapi/spark_api)
3
+ [![Build Status](https://travis-ci.org/sparkapi/spark_api.png?branch=master)](http://travis-ci.org/sparkapi/spark_api) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/sparkapi/spark_api)
4
4
 
5
5
  A Ruby wrapper for the Spark REST API. Loosely based on ActiveResource to provide models to interact with remote services.
6
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0
1
+ 1.3.1
@@ -41,7 +41,7 @@ describe MyExampleModel, "Example model" do
41
41
 
42
42
  it "should parse and return the correct path for resource with a parent" do
43
43
  @model = MyExampleModel.new
44
- @model.parent = Contact.new(Id: "20101230223226074201000000")
44
+ @model.parent = Contact.new({ :Id => "20101230223226074201000000" })
45
45
  @model.path.should eq("/contacts/20101230223226074201000000/test/example")
46
46
  end
47
47
 
@@ -23,9 +23,9 @@ describe Portal do
23
23
  it "should create a portal for the current user" do
24
24
  stub_api_post("/portal", "portal/new.json", "portal/post.json")
25
25
  portal = Portal.new({
26
- :DisplayName => "GreatPortal",
27
- :Enabled => true,
28
- :RequiredFields => [ "Address", "Phone" ]
26
+ "DisplayName" => "GreatPortal",
27
+ "Enabled" => true,
28
+ "RequiredFields" => [ "Address", "Phone" ]
29
29
  })
30
30
  portal.save
31
31
  end
@@ -13,10 +13,10 @@ describe VowAccount do
13
13
  on_post_it "should create a consumer account" do
14
14
  s = stub_api_post("/contacts/20090928182824338901000000/portal", "contacts/vow_accounts/new.json", "contacts/vow_accounts/post.json")
15
15
  vow = VowAccount.new({
16
- :LoginName => "Johnny Everyman",
17
- :Password => "MyPassw0rd",
18
- :Settings => {:Enabled => "true"},
19
- :Locale => {:Language => "en"}
16
+ "LoginName" => "Johnny Everyman",
17
+ "Password" => "MyPassw0rd",
18
+ "Settings" => {"Enabled" => "true"},
19
+ "Locale" => {"Language" => "en"}
20
20
  })
21
21
  vow.parent = Contact.new(:Id => "20090928182824338901000000")
22
22
  vow.save
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spark_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 0
10
- version: 1.3.0
9
+ - 1
10
+ version: 1.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brandon Hornseth
@@ -152,12 +152,12 @@ dependencies:
152
152
  requirements:
153
153
  - - ~>
154
154
  - !ruby/object:Gem::Version
155
- hash: 35
155
+ hash: 63
156
156
  segments:
157
157
  - 2
158
- - 11
158
+ - 12
159
159
  - 0
160
- version: 2.11.0
160
+ version: 2.12.0
161
161
  name: rspec
162
162
  version_requirements: *id008
163
163
  - !ruby/object:Gem::Dependency