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 +8 -8
- data/VERSION +1 -1
- data/lib/spark_api/models/fields.rb +4 -0
- data/spec/fixtures/fields/settings.json +21 -0
- data/spec/unit/spark_api/models/fields_spec.rb +20 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjY3YjJkYTUwOWQ4MDczM2ZlZTcwMmRhM2M1ODVlZDE5NTNkZjc5MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGZkZmUyOTVkZGJjOGM0YzQxMWIyZTJiMGYxNzZhMjY1MjdiOTIxZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjFiOTRmNjRlODk3ZWRmYTMzMDcxNGRjY2I4MWVjZWQ0N2UwMmJmMmNlNmZl
|
10
|
+
YmYzZGMwZmEwYjI4YWVjNWFhOWIzMWZiYjcxNDI2MDg4ZTA2MGRiNTZjNGY1
|
11
|
+
ZDI3OTkzNWIxY2FiYzc2ZDZhYTU4ZjIwM2Y1MWI1MTJhMDI5ZTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDYxYWY4NGFlMDc3MzI4YWUyMzY1ZGYyNDIxOWQzODJjMjFkMWJhM2Y0ZGM3
|
14
|
+
MGM0ZDdhMWIzNzkwMjcxZjRhODQ1MmYzYmRmM2QyZWE2N2YxMzk1ODI1YjNh
|
15
|
+
OTEzNzFlMGU2NzFmYzk0ZGU0YjZmYjQzYjg5ZWZmY2VkZmI4MDE=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.16
|
@@ -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.
|
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-
|
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
|