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 +4 -4
- data/README.rdoc +2 -3
- data/lib/formula.rb +4 -2
- data/lib/formula/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc8c88360b13329e1e1377865a501a1f2e55fd1c
|
4
|
+
data.tar.gz: dab946b10215edc5203ec395d7df6db28b15639d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2220dd432d38b7a0cdfe837d9644ba691def0e1a42d9a8e56f43f5bfc912ffffe9e723a60bd4b00825c626d8e6b2c2841cc084d84f6157b8f7d775cc317ad221
|
7
|
+
data.tar.gz: cc9d8e27e4891b63c87379fac1a675bbc4f3d702513b344686d025d972048cae891939ab381582f6be8ea9562255d22f92d835ca888eb1f749ba1c86c1506a29
|
data/README.rdoc
CHANGED
data/lib/formula.rb
CHANGED
@@ -317,8 +317,10 @@ module Formula
|
|
317
317
|
# * nil - for unkown columns
|
318
318
|
|
319
319
|
def type(method)
|
320
|
-
|
321
|
-
|
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
|
|
data/lib/formula/version.rb
CHANGED
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
|
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:
|
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.
|
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
|