material_raingular 0.6.2 → 0.6.2.1

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: 048dd75a86b0e3786218da9a1206216838e8b692
4
- data.tar.gz: 4efe491a8fdeee8c09c1d6bbd4e8ed7ad8f0d9df
3
+ metadata.gz: 889fab0c92838abcd869a949649a771af13e9bb5
4
+ data.tar.gz: 408989ca364ae245ac37a829447a50ab3c1bffa2
5
5
  SHA512:
6
- metadata.gz: 6a5a3a333fc5f092cb7d518acb617513216d141b906d95c32eab2ce17bba6d549cee69cbc745c164358d2e1fbb5ba433f2ad494f1e1fdd44f7082f4d479940ff
7
- data.tar.gz: 5fed44633b7fa405ee270e96b98ee3cb93a29da6073c57ed7ab4e842e7d6d352b80b7c503f5f579a0b361e2b6a8d345aca66ae95b27c83c811cce1ab192dccdf
6
+ metadata.gz: c502a515ff539af340f3ee36f9231844d404ad24eb752dd6218bc27daff91fba3b12bfd476fc23583d4b345d554492db636c08f1e2bb76001c52e30d1f53eeb9
7
+ data.tar.gz: 3ab49b16a5d1274bbd310b6d7f7c74afa300a7c6d69b98726c43a6cc59508caaa54f4d3203354d11ac660d9b41767c89aedd5cb91f71fe8b0eb0bf160fbafd06
@@ -1,14 +1,17 @@
1
1
  # //= require ./angular_model
2
2
  class @AngularScopedModel extends AngularModel
3
3
  @inject: (args...) ->
4
- args.push('$scope','$rootScope','$routeParams')
4
+ args.push('$scope','$rootScope','$routeParams','$controller')
5
5
  @$inject = args
6
-
6
+ @extendController: (args...) ->
7
+ @$extendedControllers = args
7
8
  constructor: (args...) ->
8
9
  # Bind injected dependencies on scope ie @$scope
9
10
  for key, index in @constructor.$inject || []
10
11
  @[key] = args[index]
11
-
12
+ # extend controllers
13
+ for name in @constructor.$extendedControllers || []
14
+ angular.extend @, @$controller name, {$scope: @$scope}
12
15
  # Bind all functions not begining with _ to scope
13
16
  for key, val of @constructor.prototype
14
17
  continue if key in ['constructor', 'initialize'] or key[0] is '_'
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.2.1"
3
3
  end
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.2
4
+ version: 0.6.2.1
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-05-23 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.4.3
188
+ rubygems_version: 2.6.11
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Angular v1.4 for rails. Angular Material v0.9.8.