nylas 4.3.1 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1e945b844e954e39741b61d93783e5ed42803c3f6880cab4b497f68632aac43
4
- data.tar.gz: 5e933fe3f10e94576c224a1afba2ae2e17949c6f1039f73b981bfcba523a2dcd
3
+ metadata.gz: 409a66c7c0f6450844eb2f3710d805b646f7f0993de0e4f78bd8506db667584e
4
+ data.tar.gz: 37a1f95b1e9b5f6cb3de6e2df02a4c0c970c18e0b2c9456fc49329a8814a4a7f
5
5
  SHA512:
6
- metadata.gz: 4659f0f22c32eb962094312ecdea1e0d142f58966aecf44f2014464a7868f43e3cc43ce485249730db749e4bea86bd7fdf5081d7f5007de0fa10fc9f6d8c4d20
7
- data.tar.gz: f0186a146957f40d1a72607c14a60a23a91def1fc0df5a643933e21c5fc2fb31c430ba5bbcd6d4669a164ce758973d5b9f52f12b0564964d961db135aa3feeef
6
+ metadata.gz: 4bea6e6a62207fd428947b24ee0fb6a84ca86b7c29a56dd9a98223bbcd78534307875ee129b115719f888007027db9b270e59edf8f6a2ba2c09018fb084b7ba9
7
+ data.tar.gz: ff7615d467aac326883ca08b7de8eaf3b794905162bb53a5f7c664bf40813b68c7781505237b404f4fc81220abc2962bebc59d4d2326dbc244f622719f685a87
@@ -99,6 +99,14 @@ module Nylas
99
99
  response.code == 200 && response.empty?
100
100
  end
101
101
 
102
+ # Returns list of IP addresses
103
+ # @return [Hash]
104
+ # hash has keys of :updated_at (unix timestamp) and :ip_addresses (array of strings)
105
+ def ip_addresses
106
+ path = "/a/#{app_id}/ip_addresses"
107
+ client.as(client.app_secret).get(path: path)
108
+ end
109
+
102
110
  # @param message [Hash, String, #send!]
103
111
  # @return [Message] The resulting message
104
112
  def send!(message)
@@ -13,7 +13,6 @@ module Nylas
13
13
  attribute :object, :string
14
14
  attribute :account_id, :string
15
15
  attribute :calendar_id, :string
16
- attribute :ical_uid, :string
17
16
  attribute :master_event_id, :string
18
17
  attribute :message_id, :string
19
18
 
@@ -77,7 +77,7 @@ module Nylas
77
77
  end
78
78
 
79
79
  # @return [String] JSON String of the model.
80
- def to_json
80
+ def to_json(_opts = {})
81
81
  JSON.dump(to_h)
82
82
  end
83
83
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nylas
4
- VERSION = "4.3.1"
4
+ VERSION = "4.4.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nylas
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nylas, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-07 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -326,15 +326,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
326
326
  requirements:
327
327
  - - ">="
328
328
  - !ruby/object:Gem::Version
329
- version: '2.4'
329
+ version: '2.3'
330
330
  required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  requirements:
332
332
  - - ">="
333
333
  - !ruby/object:Gem::Version
334
334
  version: '0'
335
335
  requirements: []
336
- rubyforge_project:
337
- rubygems_version: 2.7.6.2
336
+ rubygems_version: 3.0.3
338
337
  signing_key:
339
338
  specification_version: 4
340
339
  summary: Gem for interacting with the Nylas API