formula 1.0.2 → 1.1.0

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: e4485173b54b5bb7154a9afab40f3c7f2d36cce7
4
- data.tar.gz: c673ae500704116c946dc9b6c3b87ede7f6a69d9
3
+ metadata.gz: cc8c88360b13329e1e1377865a501a1f2e55fd1c
4
+ data.tar.gz: dab946b10215edc5203ec395d7df6db28b15639d
5
5
  SHA512:
6
- metadata.gz: 51368351ff6f32a46c7030041a2d56a186cf86d09dce5c5fae270e4975c59a2c9deeadc163ab084378a52eb39e185f37551758ed9a6d3e2e068f81acaa4489ab
7
- data.tar.gz: 0b63575b30ce67a3cd66583fa62ec13eb7ba95f609c5374ba0ab31d262725f8dd17a2e48fefff502d7c2b362e779c97008ac35beeb591ef544280e1df71b69da
6
+ metadata.gz: 2220dd432d38b7a0cdfe837d9644ba691def0e1a42d9a8e56f43f5bfc912ffffe9e723a60bd4b00825c626d8e6b2c2841cc084d84f6157b8f7d775cc317ad221
7
+ data.tar.gz: cc9d8e27e4891b63c87379fac1a675bbc4f3d702513b344686d025d972048cae891939ab381582f6be8ea9562255d22f92d835ca888eb1f749ba1c86c1506a29
@@ -6,9 +6,8 @@ Formula is a Rails form helper that generates awesome markup. The project lets u
6
6
 
7
7
  The gem is tested with:
8
8
 
9
- * Ruby on Rails 4.1.1
10
- * Ruby on Rails 4.0.5
11
- * Ruby 2.1.2
9
+ * Ruby on Rails 4.1.8
10
+ * Ruby 2.1.5
12
11
  * Ruby 2.0.0
13
12
  * Ruby 1.9.3
14
13
  * JRuby
@@ -317,8 +317,10 @@ module Formula
317
317
  # * nil - for unkown columns
318
318
 
319
319
  def type(method)
320
- column = @object.column_for_attribute(method) if @object.respond_to?(:column_for_attribute)
321
- return column.type if column
320
+ if @object.respond_to?(:has_attribute?) && @object.has_attribute?(method)
321
+ column = @object.column_for_attribute(method) if @object.respond_to?(:column_for_attribute)
322
+ return column.type if column
323
+ end
322
324
  end
323
325
 
324
326
 
@@ -1,3 +1,3 @@
1
1
  module Formula
2
- VERSION = "1.0.2"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formula
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Sylvestre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-04 00:00:00.000000000 Z
11
+ date: 2015-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.0.0
27
- - !ruby/object:Gem::Dependency
28
- name: appraisal
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  description: Formula is a Rails form generator that generates simple clean markup.
42
28
  The project aims to let users create semantically beautiful forms without introducing
43
29
  too much syntax. The goal is to make integrating advanced layout systems as simple
@@ -76,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
62
  version: '0'
77
63
  requirements: []
78
64
  rubyforge_project:
79
- rubygems_version: 2.2.2
65
+ rubygems_version: 2.4.5
80
66
  signing_key:
81
67
  specification_version: 4
82
68
  summary: A great way to simplify complex forms