onotole 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/README.md +1 -0
- data/lib/onotole/default_scripts.rb +15 -0
- data/lib/onotole/generators/app_generator.rb +1 -0
- data/lib/onotole/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75e4770808eaa85e6158c8f35bc3130a1b3b2211
|
4
|
+
data.tar.gz: 58adb22a4013faa297562ad19ca9bcba3476f2fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5a8b5efa58a0e73e345a9be2033a835312a8d1286a93b78a1855df39295807de3b3f63f2e417dc8c349a47f4d5345055a1382c690265142a64457671af9ef44
|
7
|
+
data.tar.gz: 6637dd95b9dcbd16abc0ec87cbc116e5907b4c0b310ee3b767bacc886a442025bf7bfc5784898fad802b36826939508312d3df34b7ba06581127240f5d30078d
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.1
|
data/README.md
CHANGED
@@ -213,5 +213,20 @@ end
|
|
213
213
|
copy_file 'seeds.rb', 'db/seeds.rb'
|
214
214
|
mkdir_and_touch 'db/seeds'
|
215
215
|
end
|
216
|
+
|
217
|
+
def add_custom_formbuilder
|
218
|
+
config = <<-DATA
|
219
|
+
|
220
|
+
config.after_initialize do
|
221
|
+
ActionView::Base.default_form_builder = FormBuilderExtension
|
222
|
+
end
|
223
|
+
|
224
|
+
DATA
|
225
|
+
inject_into_class 'config/application.rb', 'Application', config
|
226
|
+
File.open('app/helpers/form_builder_extension.rb', 'w') do |f|
|
227
|
+
f.write 'class FormBuilderExtension < ActionView::Helpers::FormBuilder'
|
228
|
+
f.write "\nend"
|
229
|
+
end
|
230
|
+
end
|
216
231
|
end
|
217
232
|
end
|
data/lib/onotole/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onotole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kvokka
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-05-
|
12
|
+
date: 2016-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -196,7 +196,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
196
196
|
requirements:
|
197
197
|
- - ">="
|
198
198
|
- !ruby/object:Gem::Version
|
199
|
-
version: 2.3.
|
199
|
+
version: 2.3.1
|
200
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
201
|
requirements:
|
202
202
|
- - ">="
|