effective_style_guide 1.1.0 → 1.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cee7176157fe6f96185e73a9bf8a100de9af7587
|
4
|
+
data.tar.gz: 050ec66244a1c3d1b78e13c97a1eb03189c19b0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c652b203139a4577d687e8f3657d2addd3e08cb6ce7d03ee530766a1088ff6a4a9f54f5dc8a63854e296fe6fc0b78ae8b623e5b4e82cecf173f4078fd073220
|
7
|
+
data.tar.gz: 8e1a8b4696a898f8eabb7736e9d814f70ca3a89335e77a1411e913b1665cd253457947bab0426a2e69e89e9e11ef0f7fcc1dcf51b206b01481f6fd7c9b56b47c
|
@@ -24,8 +24,14 @@ module Effective
|
|
24
24
|
column :food, :string
|
25
25
|
column :price, :integer
|
26
26
|
column :updated_at, :datetime
|
27
|
+
column :publish_on, :date
|
28
|
+
column :static_text, :string
|
27
29
|
|
28
|
-
validates_presence_of :id, :title, :email, :password, :number, :range, :category, :content, :archived, :drink, :food, :price, :updated_at
|
30
|
+
validates_presence_of :id, :title, :email, :password, :number, :range, :category, :content, :archived, :drink, :food, :price, :updated_at, :publish_on, :static_text
|
31
|
+
|
32
|
+
def static_text
|
33
|
+
'some static text'
|
34
|
+
end
|
29
35
|
|
30
36
|
end
|
31
37
|
end
|
@@ -17,8 +17,11 @@
|
|
17
17
|
|
18
18
|
- if defined?(EffectiveFormInputs)
|
19
19
|
= f.input :updated_at, :as => :effective_date_time_picker, :hint => 'please enter a datetime (this is an effective_date_time_picker field from EffectiveFormInputs)'
|
20
|
+
= f.input :publish_on, :as => :effective_date_picker, :hint => 'please enter a date (this is an effective_date_picker field from EffectiveFormInputs)'
|
21
|
+
= f.input :static_text, :as => :effective_static_control, :hint => 'you cant enter anything here (this is an effective_static_control field from EffectiveFormInputs)'
|
20
22
|
- else
|
21
23
|
= f.input :updated_at, :as => :datetime, :hint => 'please enter a date and time (this is a datetime field)'
|
24
|
+
= f.input :publish_on, :as => :date, :hint => 'please enter a date (this is a date field)'
|
22
25
|
|
23
26
|
- if defined?(EffectiveOrders)
|
24
27
|
= f.input :price, :as => :price, :hint => 'please enter a price (this is a price field from EffectiveOrders)'
|
@@ -48,8 +51,11 @@
|
|
48
51
|
|
49
52
|
- if defined?(EffectiveFormInputs)
|
50
53
|
= f.input :updated_at, :as => :effective_date_time_picker, :hint => 'please enter a datetime (this is an effective_date_time_picker field from EffectiveFormInputs)'
|
54
|
+
= f.input :publish_on, :as => :effective_date_picker, :hint => 'please enter a date (this is an effective_date_picker field from EffectiveFormInputs)'
|
55
|
+
= f.input :static_text, :as => :effective_static_control, :hint => 'you cant enter anything here (this is an effective_static_control field from EffectiveFormInputs)'
|
51
56
|
- else
|
52
57
|
= f.input :updated_at, :as => :datetime, :hint => 'please enter a date and time (this is a datetime field)'
|
58
|
+
= f.input :publish_on, :as => :date, :hint => 'please enter a date (this is a date field)'
|
53
59
|
|
54
60
|
- if defined?(EffectiveOrders)
|
55
61
|
= f.input :price, :as => :price, :hint => 'please enter a price (this is a price field from EffectiveOrders)'
|
@@ -17,8 +17,11 @@
|
|
17
17
|
|
18
18
|
- if defined?(EffectiveFormInputs)
|
19
19
|
= f.input :updated_at, :as => :effective_date_time_picker, :hint => 'please enter a datetime (this is an effective_date_time_picker field from EffectiveFormInputs)'
|
20
|
+
= f.input :publish_on, :as => :effective_date_picker, :hint => 'please enter a date (this is an effective_date_picker field from EffectiveFormInputs)'
|
21
|
+
= f.input :static_text, :as => :effective_static_control, :hint => 'you cant enter anything here (this is an effective_static_control field from EffectiveFormInputs)'
|
20
22
|
- else
|
21
23
|
= f.input :updated_at, :as => :datetime, :hint => 'please enter a date and time (this is a datetime field)'
|
24
|
+
= f.input :publish_on, :as => :date, :hint => 'please enter a date (this is a date field)'
|
22
25
|
|
23
26
|
- if defined?(EffectiveOrders)
|
24
27
|
= f.input :price, :as => :price, :hint => 'please enter a price (this is a price field from EffectiveOrders)'
|
@@ -47,8 +50,11 @@
|
|
47
50
|
|
48
51
|
- if defined?(EffectiveFormInputs)
|
49
52
|
= f.input :updated_at, :as => :effective_date_time_picker, :hint => 'please enter a datetime (this is an effective_date_time_picker field from EffectiveFormInputs)'
|
53
|
+
= f.input :publish_on, :as => :effective_date_picker, :hint => 'please enter a date (this is an effective_date_picker field from EffectiveFormInputs)'
|
54
|
+
= f.input :static_text, :as => :effective_static_control, :hint => 'you cant enter anything here (this is an effective_static_control field from EffectiveFormInputs)'
|
50
55
|
- else
|
51
56
|
= f.input :updated_at, :as => :datetime, :hint => 'please enter a date and time (this is a datetime field)'
|
57
|
+
= f.input :publish_on, :as => :date, :hint => 'please enter a date (this is a date field)'
|
52
58
|
|
53
59
|
- if defined?(EffectiveOrders)
|
54
60
|
= f.input :price, :as => :price, :hint => 'please enter a price (this is a price field from EffectiveOrders)'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_style_guide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|