bootscaf 0.1.5 → 0.1.6

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: b105750b0faef03535b122fdcf67314b105e2ad3
4
- data.tar.gz: afe95fb44e5ca317c2fca7d69e6f3f20dbeabb95
3
+ metadata.gz: 4f6aaf5227c0179c8046bbd36187e7e959c2ff63
4
+ data.tar.gz: 71c17dc5b1386e77fee09a62bf2f0161a43e9c86
5
5
  SHA512:
6
- metadata.gz: 1a4c4fc726278c196d0ccdd291653a48724b01fbf750c5da4d6264821bc995741f28ea843dc4a428a8d8e32244fc40b47fca4f4fa50910021a4d82ac2c77873d
7
- data.tar.gz: c753cc644eea64e1f879771595c482c52815c4296e5db64ca35e2d199ce9890fa38eb7204cae4b2720bec09692b3d567b679e836bf22dd54c12d9f4af1546d79
6
+ metadata.gz: 2a9faf0f2dfe6afdf2633694621962fa0585c6c80ada429d35c216a778853663f1872777c23fa04f6d11fb3d4998c6151a2f799d75399123c568a1d7f843b3ad
7
+ data.tar.gz: ee17c26f4935d4c96ed666aef58905ce09a6e335b6a5e569f155e07e2e2aafbaac6907ed79a9753127bfe5aa96f6818a4b82f1836cac6fe48725bd39366d19e9
data/lib/bootscaf/cli.rb CHANGED
@@ -135,6 +135,8 @@ module Bootscaf
135
135
  print `sed #{inplace_command} -e 's/<div class="field">/<div class="row">/g' app/views/#{modelname}/_form.html.erb`
136
136
  print `sed #{inplace_command} -e 's/<%= f.label :\\(.*\\) %><br>/<div class="form-group<%= f.object.errors[:\\1].empty? ? "" : " has-error has-feedback" %>">\\\n<%= f.label :\\1, { class: "control-label col-sm-2" } %>\\\n<div class="col-sm-10">/g' app/views/#{modelname}/_form.html.erb`
137
137
  print `sed #{inplace_command} -e 's/<%= f.\\(.*\\)_field :\\(.*\\) %>/<%= f.\\1_field :\\2, { class: "form-control" } %>\\\n<\\/div>\\\n<\\/div>/g' app/views/#{modelname}/_form.html.erb`
138
+ print `sed #{inplace_command} -e 's/<%= f.\\(.*\\)_area :\\(.*\\) %>/<%= f.\\1_area :\\2, { class: "form-control" } %>\\\n<\\/div>\\\n<\\/div>/g' app/views/#{modelname}/_form.html.erb`
139
+ print `sed #{inplace_command} -e 's/<%= f.\\(.*\\)_box :\\(.*\\) %>/<%= f.\\1_box :\\2, { class: "form-control" } %>\\\n<\\/div>\\\n<\\/div>/g' app/views/#{modelname}/_form.html.erb`
138
140
  print `sed #{inplace_command} -e 's/<div class="actions">/<div class="actions text-center">/' app/views/#{modelname}/_form.html.erb`
139
141
  print `sed #{inplace_command} -e 's/<%= f.submit %>/<%= f.submit class: "btn btn-success" %>/' app/views/#{modelname}/_form.html.erb`
140
142
  print "\n"
@@ -1,3 +1,3 @@
1
1
  module Bootscaf
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootscaf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-01 00:00:00.000000000 Z
11
+ date: 2015-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor