nylas 0.16.0 → 0.16.1

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
  SHA1:
3
- metadata.gz: c3cac942ceef6b5861af5e0061654bb9add860e8
4
- data.tar.gz: 64a71d0ddadb1bbe1e1e34f5395b68880191641e
3
+ metadata.gz: 999719960074186f77ac3eef0bf60cef352dd7b5
4
+ data.tar.gz: 8f77bcb3c45108e06dae0fd9be0d91c378e5b63b
5
5
  SHA512:
6
- metadata.gz: 25b349a679805acb2f70a4c993078cb8f23a51e72850843287e8dcaa00e3adfa7fe5a85bae6ffb1580ce144e0ae54c2d892af90d233a15d192c1e08390a92e41
7
- data.tar.gz: 6826d6d73284d7e14efdcfa3416243ef393c5e8599578de9fef272e5588d8065bb870d75c84f90e6735680eb1433d35295570f54246dae46cb1a0867dcf4fa00
6
+ metadata.gz: f8d3944cf80027d4bb226e0863651156f665fb9aa18397a3f2d3b83eb88c1efb617b10dd1f41efdba732c39de7696eef38315c7e2346af1ea7d3d7c76519a419
7
+ data.tar.gz: cb8ea4a706dfa3f5920d898b94ee2550ecae7f61dc11b87e184719bc53a01770a1f19a4a8586e883272b873c328ac266554fb439627368e6fbe908953520fcde
@@ -44,7 +44,16 @@ module Inbox
44
44
 
45
45
  def where(filters)
46
46
  collection = self.clone
47
- collection.filters ||= {}
47
+
48
+ # deep copy the object, otherwise filter is shared among all
49
+ # the instances of the collection, which leads to confusing behaviour.
50
+ # - karim
51
+ if collection.filters == nil
52
+ collection.filters = {}
53
+ else
54
+ collection.filters = Marshal.load(Marshal.dump(collection.filters))
55
+ end
56
+
48
57
  collection.filters.merge!(filters)
49
58
  collection
50
59
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Inbox
2
- VERSION = "0.16.0"
2
+ VERSION = "0.16.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nylas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Gotow
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-12 00:00:00.000000000 Z
13
+ date: 2015-06-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -174,8 +174,6 @@ extra_rdoc_files:
174
174
  - LICENSE.txt
175
175
  - README.md
176
176
  files:
177
- - LICENSE.txt
178
- - README.md
179
177
  - lib/account.rb
180
178
  - lib/api_thread.rb
181
179
  - lib/calendar.rb
@@ -194,6 +192,8 @@ files:
194
192
  - lib/tag.rb
195
193
  - lib/time_attr_accessor.rb
196
194
  - lib/version.rb
195
+ - LICENSE.txt
196
+ - README.md
197
197
  homepage: http://github.com/nylas/nylas-ruby
198
198
  licenses:
199
199
  - MIT
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  requirements: []
216
216
  rubyforge_project:
217
- rubygems_version: 2.2.2
217
+ rubygems_version: 2.0.14
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: Gem for interacting with the Nylas API