sfrest 0.0.22 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sfrest/site.rb +6 -2
- data/lib/sfrest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8eda1cef8c5775db25f6c02ccbe70f29ba7c154b8560741996babcde9bd0794
|
4
|
+
data.tar.gz: 0f327a0f37aa46e0d96b3e7adc658a32120a255983b6cc79f5296d3f16a90cf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a02ce53e8058f604f56c38ece9b8c5f3f1753822f35fe7f140ae2356824c0bf31ff00c77be58158c76ab5d116ac1ceaeff7093e1999837a52aeaf73aa151a07
|
7
|
+
data.tar.gz: 4a72b400e99adcdde48c04dba07da008368f623955c1dd5be2948bab47989d6a570fab2d97f482a804a2ac630e654c9ec17833243dee0d5d6dfb42b3fc7bd3cb
|
data/lib/sfrest/site.rb
CHANGED
@@ -53,15 +53,19 @@ module SFRest
|
|
53
53
|
res['sites'].first['id']
|
54
54
|
end
|
55
55
|
|
56
|
-
# Gets the complete list of
|
56
|
+
# Gets the complete list of sites
|
57
57
|
# Makes multiple requests to the factory to get all the sites on the factory
|
58
|
+
# @param [Boolean] show_incomplete whether to include incomplete sites in
|
59
|
+
# the list. The default differs from UI/SF to maintain backward compatibility.
|
58
60
|
# @return [Hash{'count' => Integer, 'sites' => Hash}]
|
59
|
-
def site_list
|
61
|
+
def site_list(show_incomplete = true)
|
60
62
|
page = 1
|
61
63
|
not_done = true
|
62
64
|
count = 0
|
65
|
+
sites = []
|
63
66
|
while not_done
|
64
67
|
current_path = '/api/v1/sites?page=' << page.to_s
|
68
|
+
current_path <<= '&show_incomplete=true' if show_incomplete
|
65
69
|
res = @conn.get(current_path)
|
66
70
|
if res['sites'] == []
|
67
71
|
not_done = false
|
data/lib/sfrest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sfrest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ACSF Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|