reso_transport 1.1.0 → 1.2.0

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: cdda1c428e56e7d1127b78c9864e511f08d64271476055697fe68ce28a54af6b
4
- data.tar.gz: 4820c013564f722031199d7f9bf08849a9c80f7677458c3da1409e47c4e99c73
3
+ metadata.gz: b45ccf4b5c9867e0b0321837c60b9d02132500287e4c7b8da0f4778055f187eb
4
+ data.tar.gz: 6bf1974a3a47e6992436a44189cec2d3b0d09111b5db8b9460962395699fd2d1
5
5
  SHA512:
6
- metadata.gz: 31a05ebb631adb324633729e6ef58e83a90a8b8370f43b80c09e7ac219779eb44c34cf71383233e59eff043ed2966377d86316fd5f0e453165fde263423ebb31
7
- data.tar.gz: b7354686c5083ff8fdfbe07e7387699e86d20d0f8566a869175fb599367bcc2a527ff3bd4693bff3135332151fb694236ef4ff09018f1d56a56ae915a789e4ac
6
+ metadata.gz: 0b370d94911dc23c85ed636fa8ec498755e9f45dc1c9bbf881fad758f1441b68c166ead9e9011a31835437efcf2cb46b97a5b2ecc4ed1c45e4889ebf32b0e5b7
7
+ data.tar.gz: d0a446c18da53056591f581ec613d44727a01269fc8de44001611100c5208457168d89c6a882b4ba7c8aa3b1a8b2e84a77f7bd1e4597b4bc90f4b0fddf3f94e3
@@ -76,6 +76,10 @@ module ResoTransport
76
76
  when "Annotation"
77
77
  if @current_enum_type && @current_member
78
78
  @current_member.annotation = args['String']
79
+ else
80
+ if @current_entity_type || @current_complex_type
81
+ #raise args.inspect
82
+ end
79
83
  end
80
84
  end
81
85
  rescue => e
@@ -58,6 +58,13 @@ module ResoTransport
58
58
  return self
59
59
  end
60
60
 
61
+ def count
62
+ limit(1).include_count
63
+ resp = resource.get(compile_params)
64
+ parsed_body = JSON.parse(resp.body)
65
+ parsed_body.fetch("@odata.count", 0)
66
+ end
67
+
61
68
  def results
62
69
  resp = execute
63
70
 
@@ -1,3 +1,3 @@
1
1
  module ResoTransport
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reso_transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Druse
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-10 00:00:00.000000000 Z
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday