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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e73f943ba9b8d1fb28f504c382273789e979bc5668f2c6e0df27cc597efe50bf
4
- data.tar.gz: 6e63e920a28f1b0d606a25ff011b873ffa145c21a2fd5a143a76ef5ad7b7ba1a
3
+ metadata.gz: b8eda1cef8c5775db25f6c02ccbe70f29ba7c154b8560741996babcde9bd0794
4
+ data.tar.gz: 0f327a0f37aa46e0d96b3e7adc658a32120a255983b6cc79f5296d3f16a90cf7
5
5
  SHA512:
6
- metadata.gz: d70abcb602f762b44906d90eaef11b9a538e9d783ff9bc6ed8264900be6839a130653aa71876011be86d0cb8c76345e7de39cc8d6a209ac4d9096ad9469ee1e2
7
- data.tar.gz: fe46c03ba7f8856d22edb5f1a8cecb04476b67233e8195752085d5ad919cfb11d5fbc0dac4b9b8df152e9627f4f1f062f7edb457f1de3d695cc2a5f6e061f682
6
+ metadata.gz: 2a02ce53e8058f604f56c38ece9b8c5f3f1753822f35fe7f140ae2356824c0bf31ff00c77be58158c76ab5d116ac1ceaeff7093e1999837a52aeaf73aa151a07
7
+ data.tar.gz: 4a72b400e99adcdde48c04dba07da008368f623955c1dd5be2948bab47989d6a570fab2d97f482a804a2ac630e654c9ec17833243dee0d5d6dfb42b3fc7bd3cb
@@ -53,15 +53,19 @@ module SFRest
53
53
  res['sites'].first['id']
54
54
  end
55
55
 
56
- # Gets the complete list of users
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
@@ -1,4 +1,4 @@
1
1
  module SFRest
2
2
  # Just tracks the version of sfrest.
3
- VERSION = '0.0.22'.freeze
3
+ VERSION = '0.0.23'.freeze
4
4
  end
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.22
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-10-15 00:00:00.000000000 Z
11
+ date: 2018-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon