inbox 0.16.0 → 0.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restful_model_collection.rb +10 -1
- data/lib/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3768cff4f9314c27d94cba1ab7cce94e481c8e2
|
4
|
+
data.tar.gz: b79094f6a174bd27ba868c9c02520e46703a08f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a8631bbd3c531ad0b0a92933de4d7ccd291187ffbe138b0074ce86f2002c02a2d4f7799f17724187984583cdbd284b6edad568d98c3af7695d28e380204944a
|
7
|
+
data.tar.gz: cec71ec9c4861c3b311924c4808b1178f542a7be35f2cdc889de0b219ee0fb35fd05bfddb95e7a9b5d8f90bc82024e1eaaeff278d117a976bd86d3ac82ec0491
|
@@ -44,7 +44,16 @@ module Inbox
|
|
44
44
|
|
45
45
|
def where(filters)
|
46
46
|
collection = self.clone
|
47
|
-
|
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
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
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-
|
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.
|
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
|