angular_sprinkles 0.2.2 → 0.2.3

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: eed7aee04a4952f676338e250a4cb8f4eca0aac9
4
- data.tar.gz: 46e54cfb72da69292b61b3093addd93d211aa2e0
3
+ metadata.gz: d20530d1c67b025291466bf060b90ec9a4b51326
4
+ data.tar.gz: b5f8b27f72eedb8f9013e7bf39f07ab4607cc0e0
5
5
  SHA512:
6
- metadata.gz: 2af21d9b5c9d740184e23a5a4fa6ded80b234c4f05f643123b8e3044fa142c71f7ad4827fb53b65080c507508ee743bb8dde4e14df264abfa64df780c7709c53
7
- data.tar.gz: 2f57f13b8f6010257dee08f6e67e88c1c1d6f4f02026142a91619123cec86592ffd1cb5d5dd10997d16fd0a03073d5b04a9d4cbeb614a56a3535746d5bd10a98
6
+ metadata.gz: 905b555c3bdb7552b9e39e1a5a215aa3f5c740eee1ad42a503f7b23dfc07113a2f6773f1936c39c255aa82a574831a43bca74ffa826affc5e6ada15488c76b89
7
+ data.tar.gz: 9ab743cc03523aeca09cc09fd2a0aecdca1c71f2a93ae52558ede52c8f20fc841dd9f8fbe93062454cc4731d2f21f4e8a81ed39b146134b74d8695a2a8c08162
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: angular_sprinkles 0.2.2 ruby lib
5
+ # stub: angular_sprinkles 0.2.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "angular_sprinkles"
9
- s.version = "0.2.2"
9
+ s.version = "0.2.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
@@ -9,12 +9,16 @@ module AngularSprinkles
9
9
  @args.tap do |args|
10
10
  # Assume that optional params default to {}
11
11
  # This is a safe assumption for all helpers except check_box
12
- (@method.parameters.count - args.count).times { args.push({}) }
12
+ (non_block_parameter_count - args.count).times { args.push({}) }
13
13
 
14
14
  # The last argument is always the one where ng-model should be appended
15
15
  args.last.reverse_merge!(binding)
16
16
  end
17
17
  end
18
+
19
+ def non_block_parameter_count
20
+ @method.parameters.count { |parameter| parameter.first != :block }
21
+ end
18
22
  end
19
23
  end
20
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: angular_sprinkles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabe Scholz