immunio 1.0.22 → 1.1.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
  SHA1:
3
- metadata.gz: 5dd373f29d340641801017f1a196715854a6468f
4
- data.tar.gz: 2de3aa70ccdafcd66b9ea033acc7435558099d0e
3
+ metadata.gz: c4a20073cf6c0c115c95a2afc1e6a8881ed83d8b
4
+ data.tar.gz: 903ba865e4b4cdfd39df4efe4425250d6bcb2234
5
5
  SHA512:
6
- metadata.gz: a82c3d9390e98de817cd372c2b141d375c630bba443a8966619229e1ada1856dc9d18938100e89dd61a286f0e6ea5c7158c393e5a4907b361ae4cdb8e1169ec0
7
- data.tar.gz: 586de295f66cb96b02d521bf3ef09baf5f307303acedfafb91c527fea48725bfef1382eaa73035d3fabd874e83997c6db9539487da4cce1a0af21ae33bf317fc
6
+ metadata.gz: e6d484d4001d19d66df60d17cf67003d92e812423274f4c995723bd8a82e8be0c1e9d7dcec22ad3e335bcd809a03d35e4f25395f8d255c2266d64a4fb5a5e102
7
+ data.tar.gz: eb0808e3109763538ebe88867117e377779dbb019a87747306ffa0db2f89d71fb0f063eb434b11470611217c077e56587f430ee3a1b25837916fa02f1647b2ce
data/LICENSE CHANGED
@@ -238,6 +238,29 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
238
238
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
239
239
  THE SOFTWARE.
240
240
 
241
+ This product includes content covered by the following license:
242
+ The MIT License (MIT)
243
+
244
+ Copyright (c) 2015 simbiose
245
+
246
+ Permission is hereby granted, free of charge, to any person obtaining a copy
247
+ of this software and associated documentation files (the "Software"), to deal
248
+ in the Software without restriction, including without limitation the rights
249
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
250
+ copies of the Software, and to permit persons to whom the Software is
251
+ furnished to do so, subject to the following conditions:
252
+
253
+ The above copyright notice and this permission notice shall be included in all
254
+ copies or substantial portions of the Software.
255
+
256
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
257
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
258
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
259
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
260
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
261
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
262
+ SOFTWARE.
263
+
241
264
 
242
265
  All other components of this product are
243
266
  Copyright (c) 2015 Immunio, Inc. All rights reserved.
@@ -82,9 +82,8 @@ module Immunio
82
82
  info = {}
83
83
 
84
84
  info[:user_id] = record.id.to_s if record.respond_to?(:id)
85
- info[:email] = record.email.to_s if record.respond_to?(:email)
86
85
 
87
- attribute = [:username, :login, :name].detect { |attr| record.respond_to?(attr) }
86
+ attribute = [:username, :login, :email, :name].detect { |attr| record.respond_to?(attr) }
88
87
  info[:username] = record.send(attribute).to_s if attribute
89
88
 
90
89
  info
@@ -217,7 +217,7 @@ module Immunio
217
217
  })
218
218
 
219
219
  # We use the return value from the hook handler if present.
220
- rendered = result.fetch("rendered") { rendered.dup }
220
+ rendered = result["rendered"] || rendered.dup
221
221
 
222
222
  remove_var_markers! rendered
223
223
 
@@ -1,5 +1,5 @@
1
1
  module Immunio
2
2
  AGENT_TYPE = "agent-ruby"
3
- VERSION = "1.0.22"
3
+ VERSION = "1.1.0"
4
4
  VM_VERSION = "2.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immunio
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.22
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Immunio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-05 00:00:00.000000000 Z
11
+ date: 2016-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails