spark_api 1.4.15 → 1.4.16

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
- YjZlZjMzZmMxM2VhODU0OTVlMGIyZDhhZGQ2ZWE5ZDUzNGU4MDJhMA==
4
+ ZjY3YjJkYTUwOWQ4MDczM2ZlZTcwMmRhM2M1ODVlZDE5NTNkZjc5MA==
5
5
  data.tar.gz: !binary |-
6
- N2Y2MGMzODc0YTI5NTJlODE5ZTUwMjc0MzA1NmZhZTE3ZTRmZGMzYw==
6
+ OGZkZmUyOTVkZGJjOGM0YzQxMWIyZTJiMGYxNzZhMjY1MjdiOTIxZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDczNmFhZjM3ODIxZmI4Yzc0ZGEyZDczMTdmMmMyZTljNzYwNmJlYWIyNDhh
10
- YTVlNzk4ZGYxNzNkMDRlYzI3OGMwY2ZhZDg3ODE2ZTBjNTY0NmExYjA0YjVj
11
- MTJiNTZjNDg2NjhmMDM0MzE0ZjQ3ZDY5MGE1Y2U5Yjc2YWI0Zjc=
9
+ NjFiOTRmNjRlODk3ZWRmYTMzMDcxNGRjY2I4MWVjZWQ0N2UwMmJmMmNlNmZl
10
+ YmYzZGMwZmEwYjI4YWVjNWFhOWIzMWZiYjcxNDI2MDg4ZTA2MGRiNTZjNGY1
11
+ ZDI3OTkzNWIxY2FiYzc2ZDZhYTU4ZjIwM2Y1MWI1MTJhMDI5ZTE=
12
12
  data.tar.gz: !binary |-
13
- NzEwMzM3YTIwODY1YjQ1MGZjY2Y1OTYyZmQ2MWNkOTI4Njg1MDk4YWI2NDQz
14
- YjVjNmUzNjVlNTg1Y2M1MDZkMDk0YTRmNWY3MmU5ZjAwZGM3NDc5MDZjODlj
15
- ZjNiNDUxN2ViYTYwNTA2NjhmZDI3ZjAwODFkMzBmODZkZGQ4OGY=
13
+ MDYxYWY4NGFlMDc3MzI4YWUyMzY1ZGYyNDIxOWQzODJjMjFkMWJhM2Y0ZGM3
14
+ MGM0ZDdhMWIzNzkwMjcxZjRhODQ1MmYzYmRmM2QyZWE2N2YxMzk1ODI1YjNh
15
+ OTEzNzFlMGU2NzFmYzk0ZGU0YjZmYjQzYjg5ZWZmY2VkZmI4MDE=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.15
1
+ 1.4.16
@@ -7,6 +7,10 @@ module SparkApi
7
7
  connection.get("#{self.path}/order#{"/"+property_type unless property_type.nil?}", arguments)
8
8
  end
9
9
 
10
+ def self.settings
11
+ connection.get("#{self.path}/order/settings")
12
+ end
13
+
10
14
  end
11
15
  end
12
16
  end
@@ -0,0 +1,21 @@
1
+ {
2
+ "D": {
3
+ "Success": true,
4
+ "Results": [
5
+ {
6
+ "ShowingInstructions": [
7
+ {
8
+ "Domain": "StandardFields",
9
+ "Field": "ListOfficePhone",
10
+ "GroupField": null
11
+ },
12
+ {
13
+ "Domain": "CustomFields",
14
+ "Field": "Vacant",
15
+ "GroupField": "Property Access"
16
+ }
17
+ ]
18
+ }
19
+ ]
20
+ }
21
+ }
@@ -52,5 +52,25 @@ describe Fields do
52
52
  end
53
53
  end
54
54
 
55
+ context "/fields/order/settings", :support do
56
+ on_get_it "returns the field order settings" do
57
+ Fields.should respond_to(:settings)
58
+
59
+ # stub request
60
+ stub_api_get('/fields/order/settings','fields/settings.json')
61
+
62
+ # request
63
+ settings = subject.class.settings
64
+
65
+ # a standard array of results
66
+ settings.should be_an(Array)
67
+ settings.length.should eq(1)
68
+
69
+ # make sure ShowingInstructions is present
70
+ settings.first.should have_key("ShowingInstructions")
71
+ settings.first["ShowingInstructions"].should be_an(Array)
72
+ end
73
+ end
74
+
55
75
 
56
76
  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.4.15
4
+ version: 1.4.16
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: 2017-07-10 00:00:00.000000000 Z
12
+ date: 2017-11-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -411,6 +411,7 @@ files:
411
411
  - spec/fixtures/errors/failure_with_msg.json
412
412
  - spec/fixtures/fields/order.json
413
413
  - spec/fixtures/fields/order_a.json
414
+ - spec/fixtures/fields/settings.json
414
415
  - spec/fixtures/finders.json
415
416
  - spec/fixtures/generic_delete.json
416
417
  - spec/fixtures/generic_failure.json
@@ -604,6 +605,7 @@ test_files:
604
605
  - spec/fixtures/oauth2/access_with_refresh.json
605
606
  - spec/fixtures/oauth2/error.json
606
607
  - spec/fixtures/oauth2/password_body.json
608
+ - spec/fixtures/fields/settings.json
607
609
  - spec/fixtures/fields/order_a.json
608
610
  - spec/fixtures/fields/order.json
609
611
  - spec/fixtures/success.json