pinkman 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/pinkman_base/object.coffee.erb +3 -2
- data/lib/pinkman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6aa8b4899545b9b5316b066ff707731348e1afebc1c4f806a5bf81d17260d675
|
4
|
+
data.tar.gz: b469cb1c5872acda2b38925e97b98da806d7acf1fa5bc3713e65724e9c1ab166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98075c0520ec27d181d79377ae07a1b9012763e1d2da66a6dd6959418662826c848f240d8f7fd399b5779f1846825562d8d41cf934da2f363817e57dabe90d35
|
7
|
+
data.tar.gz: 2f5b700c2ea2d167c156ae560f717c2dae7e47f45f0c39b1f5a0ca5d043393f4da24a2225e1ffb458fe86b22f2e51c979453d482ae703e2eead864bdc8e6191d
|
@@ -45,12 +45,13 @@ class window.PinkmanObject extends window.PinkmanCommon
|
|
45
45
|
|
46
46
|
# Desc: returns a javascript object version of this
|
47
47
|
# Usage: a.attributes() #-> {key: value, key: value, ...}
|
48
|
-
attributes: ->
|
48
|
+
attributes: (initialObj)->
|
49
49
|
a = new Object
|
50
50
|
for k,v of this
|
51
51
|
if PinkmanObject.privateAttributes.indexOf(k) == -1 and typeof v != 'function'
|
52
52
|
if (v? and typeof v == 'object' and v.isPink)
|
53
|
-
|
53
|
+
# initial obj with unless condition stops circular reference
|
54
|
+
a[k] = v.attributes(this) unless (initialObj? and initialObj.pinkey == v.pinkey)
|
54
55
|
else
|
55
56
|
a[k] = v
|
56
57
|
return a
|
data/lib/pinkman/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pinkman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Agilso Oliveira
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|