pinkman 1.4.2 → 1.4.3
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 +4 -4
- data/app/assets/javascripts/pinkman_base/collection.coffee +12 -0
- data/lib/pinkman/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 291782b4b04a02a359d5cecaccf2c67b3c4d2c3f2b269e6bb607d949e6ecd180
|
|
4
|
+
data.tar.gz: 58a64ecaf2dab1df27e8d1d3d07563efcec47cd7e318fc38b2b9c52302cdecc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 609f4254349dbcc6b21a164d7cfd4c998d92daa64df054ea20318f977feaa759bb0a128627c1f2eb6070a7dea2d4eb837e5d6a368ec43135185e2e416203a3ee
|
|
7
|
+
data.tar.gz: 3715ca1976c898dc5bd8151dc954ab9bb453ff99e224fd7b158ebdbad99ebda66238a3251b8f58145a29ec9e5af88192be2c953e1067b669fbb2878cfa6bd3c6
|
|
@@ -94,6 +94,18 @@ class window.PinkmanCollection extends window.PinkmanCommon
|
|
|
94
94
|
transformation(o)
|
|
95
95
|
callback(this) if (i == @count()) and typeof callback == 'function'
|
|
96
96
|
return this
|
|
97
|
+
|
|
98
|
+
# rails/ruby equivalent: map
|
|
99
|
+
# Desc: receive a function and apply it to all members and returns an array of values
|
|
100
|
+
map: (transformation='',callback) ->
|
|
101
|
+
array = []
|
|
102
|
+
if transformation? and typeof transformation=='function'
|
|
103
|
+
i = 0
|
|
104
|
+
for o in @collection
|
|
105
|
+
i = i+1
|
|
106
|
+
array.push(transformation(o))
|
|
107
|
+
callback(array) if (i == @count()) and typeof callback == 'function'
|
|
108
|
+
return array
|
|
97
109
|
|
|
98
110
|
# rails/ruby equivalent: where/select
|
|
99
111
|
# Desc: returns a new collection of all members that satisfies a criteria (criteria(obj) returns true)
|
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.4.
|
|
4
|
+
version: 1.4.3
|
|
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-10-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -322,7 +322,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
322
322
|
- !ruby/object:Gem::Version
|
|
323
323
|
version: '0'
|
|
324
324
|
requirements: []
|
|
325
|
-
rubygems_version: 3.0.
|
|
325
|
+
rubygems_version: 3.0.6
|
|
326
326
|
signing_key:
|
|
327
327
|
specification_version: 4
|
|
328
328
|
summary: Small Rails-js framework.
|