nylas 4.2.0 → 4.2.1

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
  SHA1:
3
- metadata.gz: a0309597ec61422795c191d902f0869b199bdc1d
4
- data.tar.gz: 3b0534a7844f8182f4bc3d5597f8e28cfe8e5eb8
3
+ metadata.gz: b4d46688295bf8c7e3c07d743c30b4450823fe0e
4
+ data.tar.gz: 7d3cf939484ace373e1cc4678c9568095d473a04
5
5
  SHA512:
6
- metadata.gz: 5b5186ac266d2986be98076f6dac22e1df8bd305ae0ae0a41f31b56670682d626114b01b4f00c89f77bc3743938b837ad68e429a3bd136b361bc1be7e793d258
7
- data.tar.gz: 114f8ab0eaad1018d267cefe1d7a79fc6f6a37d491aa60c2d108d67307967275afe0ab879ea94cfd7c2fa3765ba7dc1717cddd7748dd8927f70b4e811b39ba4e
6
+ metadata.gz: 928b321e8608c1e682282e889810cddec1061e5dde76851dd149d73cdf42d883e06ac4fae259f277f970c3500d400cbcddaae3e66a9f63b58640208dad533664
7
+ data.tar.gz: 1f6e543316862883b4da9e577d43993f87a7904854b9ea96754f6b78d74f354e39bd452d6634c65845ac53056e28a28cb16c5083972de68e7393c8cd852d4965
@@ -42,6 +42,7 @@ require_relative "nylas/deltas_collection"
42
42
  require_relative "nylas/account"
43
43
  require_relative "nylas/calendar"
44
44
  require_relative "nylas/contact"
45
+ require_relative "nylas/contact_group"
45
46
  require_relative "nylas/current_account"
46
47
  require_relative "nylas/deltas"
47
48
  require_relative "nylas/delta"
@@ -82,4 +83,5 @@ module Nylas
82
83
  Types.registry[:timespan] = Types::ModelType.new(model: Timespan)
83
84
  Types.registry[:web_page] = Types::ModelType.new(model: WebPage)
84
85
  Types.registry[:nylas_date] = NylasDateType.new
86
+ Types.registry[:contact_group] = Types::ModelType.new(model: ContactGroup)
85
87
  end
@@ -29,6 +29,7 @@ module Nylas
29
29
  attribute :notes, :string
30
30
  attribute :web_page, :web_page
31
31
 
32
+ has_n_of_attribute :groups, :contact_group
32
33
  has_n_of_attribute :emails, :email_address
33
34
  has_n_of_attribute :im_addresses, :im_address
34
35
  has_n_of_attribute :physical_addresses, :physical_address
@@ -0,0 +1,12 @@
1
+ module Nylas
2
+ # Structure to represent the Contact Group schema
3
+ # @see https://docs.nylas.com/reference#contactsid
4
+ class ContactGroup
5
+ include Model::Attributable
6
+ attribute :id, :string
7
+ attribute :object, :string
8
+ attribute :account_id, :string
9
+ attribute :name, :string
10
+ attribute :path, :string
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Nylas
2
- VERSION = "4.2.0".freeze
2
+ VERSION = "4.2.1".freeze
3
3
  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.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nylas, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-05 00:00:00.000000000 Z
11
+ date: 2018-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -253,6 +253,7 @@ files:
253
253
  - lib/nylas/collection.rb
254
254
  - lib/nylas/constraints.rb
255
255
  - lib/nylas/contact.rb
256
+ - lib/nylas/contact_group.rb
256
257
  - lib/nylas/current_account.rb
257
258
  - lib/nylas/delta.rb
258
259
  - lib/nylas/deltas.rb
@@ -319,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
320
  version: '0'
320
321
  requirements: []
321
322
  rubyforge_project:
322
- rubygems_version: 2.6.13
323
+ rubygems_version: 2.5.2
323
324
  signing_key:
324
325
  specification_version: 4
325
326
  summary: Gem for interacting with the Nylas API