angular_sprinkles 0.2.2 → 0.2.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/VERSION +1 -1
- data/angular_sprinkles.gemspec +2 -2
- data/lib/angular_sprinkles/form_binder/default.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d20530d1c67b025291466bf060b90ec9a4b51326
|
4
|
+
data.tar.gz: b5f8b27f72eedb8f9013e7bf39f07ab4607cc0e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 905b555c3bdb7552b9e39e1a5a215aa3f5c740eee1ad42a503f7b23dfc07113a2f6773f1936c39c255aa82a574831a43bca74ffa826affc5e6ada15488c76b89
|
7
|
+
data.tar.gz: 9ab743cc03523aeca09cc09fd2a0aecdca1c71f2a93ae52558ede52c8f20fc841dd9f8fbe93062454cc4731d2f21f4e8a81ed39b146134b74d8695a2a8c08162
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/angular_sprinkles.gemspec
CHANGED
@@ -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.
|
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.
|
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
|
-
(
|
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
|