incline 0.3.6 → 0.3.7

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: c22bc5c7a677ebd8b11734e83967760151242c3a
4
- data.tar.gz: dfa99ed217bc6931202db255241e20c0246e0c85
3
+ metadata.gz: 842e7eff9a44004c8cb445ff80b538f2c08726c7
4
+ data.tar.gz: cb560523652fc10d1c0621bca9e8bacc18e0417e
5
5
  SHA512:
6
- metadata.gz: d8452a81918b8646b7a15c56655f2f40462e58821544be1d8a8e5c9a24c8e0e4a3840e4c5c1e53d47d9bb640fbd9bbb2e3c259b55ee2b57579e9cfa515d48819
7
- data.tar.gz: c6bc08bb42fe75c4817c851cdf86f993568cfbba90f0e6ec83c239f5aedfdb8394d6e298bf66c7f12c6ff54d914f0d2b2c03341ca2405d493b55a1c8c09ea915
6
+ metadata.gz: 4f4f49b159ef9ce55da131be8cc0fd7974ff7aa4466a4396ef38a5db82cdb16a3e7cbd9ebcccdfd4e608f553df4aae1c1d567857f92ab5bb73e3eff65d9d2214
7
+ data.tar.gz: 816525fa0e434fcff3d045b3d3ce66c3ae7bb5f5c36b0ba5c9c3446000f0b68895e860da43064eb561eb8c436da3f631490dc65042bc293ddbdcac7740d82bee
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incline (0.3.6)
4
+ incline (0.3.7)
5
5
  ansi (~> 1.5.0)
6
6
  bcrypt
7
7
  bootstrap-sass
@@ -156,8 +156,8 @@ module Incline::Extensions
156
156
 
157
157
  # Extract field attributes.
158
158
  fields = { }
159
- index = 1
160
- methods.each do |(meth,label)|
159
+ methods.each_with_index do |(meth,label), index|
160
+ index += 1
161
161
  fields[meth] = options[:attrib].merge(options.delete(:"field_#{index}") || {})
162
162
  fields[meth][:readonly] = 'readonly' if options[:read_only]
163
163
  fields[meth][:class] ||= options[:class]
@@ -333,7 +333,7 @@ module Incline::Extensions
333
333
  form_group lbl, fld, gopt
334
334
  end
335
335
 
336
-
336
+
337
337
  ##
338
338
  # Creates a form group including a label and a text area.
339
339
  #
@@ -1,3 +1,3 @@
1
1
  module Incline
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-28 00:00:00.000000000 Z
11
+ date: 2018-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails