material_raingular 0.6.5 → 0.6.6
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f734875fd5a0c95120b65ee5fe901840220d0db
|
|
4
|
+
data.tar.gz: 71cd93c617255ad32a8c75dd74d0e3ec1112ef8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76ba6e88119e3e1dcec19a527bb355de728cdab4da100f721e985b82bc9a59c56fad547b54183fe69473a61edc7c93a03d2b745c0d95e858f5b42467704ca3b3
|
|
7
|
+
data.tar.gz: cac15f39f749eb6e08651157280da98bf823fe6ba8ae594ce31d7f022bb35b589def0f8e031d476e089a6820364d392bbb13b674f8065549b05b7417b49b52ad
|
data/Gemfile.lock
CHANGED
|
@@ -3,15 +3,18 @@ class @AngularScopedModel extends AngularModel
|
|
|
3
3
|
@inject: (args...) ->
|
|
4
4
|
args.push('$scope','$rootScope','$routeParams','$controller')
|
|
5
5
|
@$inject = args
|
|
6
|
-
@extendController:
|
|
7
|
-
@$extendedControllers =
|
|
6
|
+
@extendController: ->
|
|
7
|
+
@$extendedControllers = [].slice.call(arguments,0)
|
|
8
8
|
constructor: (args...) ->
|
|
9
9
|
# Bind injected dependencies on scope ie @$scope
|
|
10
10
|
for key, index in @constructor.$inject || []
|
|
11
11
|
@[key] = args[index]
|
|
12
12
|
# extend controllers
|
|
13
|
-
for
|
|
14
|
-
|
|
13
|
+
for controller in @constructor.$extendedControllers || []
|
|
14
|
+
name = controller.name || controller
|
|
15
|
+
opts = {$scope: @$scope}
|
|
16
|
+
opts[key] = @[val] for key,val of controller.scope || {}
|
|
17
|
+
angular.extend @, @$controller name, opts
|
|
15
18
|
# Bind all functions not begining with _ to scope
|
|
16
19
|
for key, val of @constructor.prototype
|
|
17
20
|
continue if key in ['constructor', 'initialize'] or key[0] is '_'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: material_raingular
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Moody
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-08-
|
|
11
|
+
date: 2017-08-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|