foundation_rails_helper 3.0.0.beta3 → 3.0.0.rc

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f82cdd3a1e082e60417f16ac49f49bac77b92aa9
4
- data.tar.gz: 12c3e4a9a151295dab07c4d66e6cc7aaf603aa87
3
+ metadata.gz: 4dedb5ed97316f53852cd6534ccbdb70148f7f39
4
+ data.tar.gz: 1590fb55b27e4abc942e2bbceea75a49fca18a68
5
5
  SHA512:
6
- metadata.gz: 10148a13208ea0dfb88669e319e7b0e98c6f53cc013bfc96c152a245d21b69dc9c2853ce55dad19fadf6f00aee3e66ba9273c185f051999097d9379d9b4193dc
7
- data.tar.gz: 6f6ae496a923551dc81d375689f056accc381e59c4990ffefeb664df9e4112fb1965693e65129664b5628ec81a8fd0c7155cd76f4cc879a42b3c09569939adc8
6
+ metadata.gz: ab6975cfdc30ccd1237e5cc699e73253fdd0f542ec2a709302dc25754b80f3f5893f642abc8fe0fdb99d7468c696bde3674946fb598d3d089873780d78f02878
7
+ data.tar.gz: 3784d27ce003e290dc404dde7c7af407794868be5e34fde1d2542bb75c415f85cddaedc7e3612c769e066a6b1f986aa82bcf864c8717dc5de5bffb1820e0f8ca
data/README.md CHANGED
@@ -1,17 +1,29 @@
1
1
  # Foundation Rails Helper [![Build Status](https://secure.travis-ci.org/sgruhier/foundation_rails_helper.png)](http://travis-ci.org/sgruhier/foundation_rails_helper)
2
2
 
3
- Gem for Rails 4.1+ applications that use the excellent Zurb Foundation framework.
3
+ Gem for Rails 4.1+ applications that use the excellent [Zurb Foundation framework](https://github.com/zurb/foundation-rails).
4
4
 
5
- * [Zurb Foundation](https://github.com/zurb/foundation)
6
- * [Zurb Foundation Rails](https://github.com/zurb/foundation-rails)
7
-
8
- So far it includes:
5
+ Includes:
9
6
 
10
7
  * A custom FormBuilder that generates a form using the Foundation framework classes. It replaces the current `form_for`, so there is no need to change your Rails code. Error messages are properly displayed.
11
8
 
12
9
  * A `display_flash_messages` helper method that uses Zurb Foundation Callout UI.
13
10
 
14
- #### Compatibility
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'foundation-rails', '~> 6.0' # required
17
+ gem 'foundation_rails_helper', '>= 3.0.0.rc', '< 4.0'
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ ```bash
23
+ $ bundle
24
+ ```
25
+
26
+ ## Compatibility
15
27
 
16
28
  * Only Rails 4.1/4.2/5, and Foundation 6 are fully supported
17
29
  * Some features may work with Foundation 5 and older, but results may vary, and markup which exists only for those versions will be gradually removed
@@ -57,27 +69,12 @@ A classic devise sign up view will look like this:
57
69
 
58
70
  ![Flash-message](https://cloud.githubusercontent.com/assets/1400414/18522256/3d13c97e-7a64-11e6-9ee2-33adc93cd573.png "Flash-message")
59
71
 
60
- ## Installation
61
-
62
- Add this line to your application's Gemfile:
63
-
64
- ```ruby
65
- gem 'foundation-rails', '~> 6.0' # required
66
- gem 'foundation_rails_helper', '>= 3.0.0.beta3', '< 4.0'
67
- ```
68
-
69
- And then execute:
70
-
71
- ```bash
72
- $ bundle
73
- ```
72
+ ## Usage
74
73
 
75
74
  ### Flash Messages
76
75
 
77
76
  To use the built in flash helper, add `<%= display_flash_messages %>` to your layout file (eg. *app/views/layouts/application.html.erb*).
78
77
 
79
- ## Usage
80
-
81
78
  ### form_for
82
79
 
83
80
  Form_for wraps the standard rails form_for helper.
@@ -111,11 +108,11 @@ generates:
111
108
  <input id="user_name" name="user[name]" type="text">
112
109
  ```
113
110
 
114
- Preventing the generation of labels can be accomplished two ways. To disable on a form element:
111
+ Preventing the generation of labels can be accomplished three ways. To disable on a form element:
115
112
  ```ruby
116
113
  f.text_field :name, label: false
117
114
  ```
118
- For all form elements, add the option: `auto_labels: false` to the form helper.
115
+ For all form elements, add the option: `auto_labels: false` to the form helper. To disable for all forms in you project, use the `auto_labels` config option, see the Configuration section for more information.
119
116
 
120
117
  Change the label text and add a class on the label:
121
118
 
@@ -199,8 +196,6 @@ FoundationRailsHelper.configure do |config|
199
196
  end
200
197
  ```
201
198
 
202
- Currently supported options:
203
-
204
199
  ### Submit Button Class
205
200
  To use a different class for the [submit button](https://github.com/sgruhier/foundation_rails_helper#submit-button) used in `form_for`, add a config named **button_class**:
206
201
  ```ruby
@@ -220,10 +215,17 @@ you can specify a blacklist of keys to ignore with the **ignored_flash_keys** co
220
215
  config.ignored_flash_keys = [:timedout]
221
216
  ```
222
217
 
218
+ ### Auto Labels
219
+ If you prefer to not have the form builder automatically generate labels, set `auto_labels` to false.
220
+ ```ruby
221
+ # Default: true
222
+ config.auto_labels = false
223
+ ```
224
+
223
225
  ## Contributing
224
226
 
225
227
  See the [CONTRIBUTING](CONTRIBUTING.md) file.
226
228
 
227
229
  ## Copyright
228
230
 
229
- Sébastien Gruhier (http://xilinus.com, http://v2.maptimize.com) - MIT LICENSE
231
+ Sébastien Gruhier (http://xilinus.com) - MIT LICENSE
@@ -8,7 +8,7 @@ class Gem::Specification # rubocop:disable ClassAndModuleChildren
8
8
  if ENV['RAILS_VERSION']
9
9
  "~> #{ENV['RAILS_VERSION']}"
10
10
  else
11
- ['~> 5.0', '>= 5.0.0']
11
+ ['~> 4.1', '>= 4.1.0']
12
12
  end
13
13
  end
14
14
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module FoundationRailsHelper
3
- VERSION = '3.0.0.beta3'
3
+ VERSION = '3.0.0.rc'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foundation_rails_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta3
4
+ version: 3.0.0.rc
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Gruhier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-13 00:00:00.000000000 Z
11
+ date: 2017-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -16,80 +16,80 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '4.1'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 5.0.0
22
+ version: 4.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '5.0'
29
+ version: '4.1'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 5.0.0
32
+ version: 4.1.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: actionpack
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '5.0'
39
+ version: '4.1'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 5.0.0
42
+ version: 4.1.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '5.0'
49
+ version: '4.1'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 5.0.0
52
+ version: 4.1.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: activemodel
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '5.0'
59
+ version: '4.1'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 5.0.0
62
+ version: 4.1.0
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '5.0'
69
+ version: '4.1'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 5.0.0
72
+ version: 4.1.0
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: activesupport
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: '5.0'
79
+ version: '4.1'
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 5.0.0
82
+ version: 4.1.0
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '5.0'
89
+ version: '4.1'
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: 5.0.0
92
+ version: 4.1.0
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: tzinfo
95
95
  requirement: !ruby/object:Gem::Requirement