staple 0.0.8 → 0.0.9

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: 53d84f76c9b808f1a3adf38fd30568d49564e090
4
- data.tar.gz: a03c5c2f51ac20eba9b4bb47b20bdea71ec4bf16
3
+ metadata.gz: cd373555dbad0608563d850e7f65eb048ae6b8ee
4
+ data.tar.gz: b7e291347abb4f7cdddc4f2048ec30285330faf4
5
5
  SHA512:
6
- metadata.gz: 16d0a4f20ce1064c2a0675f1d1c420549cf079367b6dc47f57a8a6f624b5c5feb1ec9cb12d72507be58e179df2d5b511746ea69be49148c98e023b8d939eaed2
7
- data.tar.gz: c78ab7c952798f55da216da4ad92368224e70f52f9d2e3f87fb15404a503e0c2585173e4987e4e4c490be82098050274e6c5da3faee282460eafa801a960781f
6
+ metadata.gz: 2a4633563c6959c47ab72982acc5c3de07365d7aaae2a6e6d0ef29243722dfff70ece94077e7745992615eed424753d000e7d015955e2028b2df588a822c78ca
7
+ data.tar.gz: d1ea7f92ea69d5a914497892af83ad794e762a038bfddbb45947e38a2e03b7fd38bfddc114569873b7f4a0baf34ab8e5b05aa73b12c45a06c4d41b5169c416d9
@@ -32,7 +32,7 @@ module Staple
32
32
  end
33
33
 
34
34
  def simple_form_template
35
- copy_file "source/simple_form/_form.html.slim", "lib/templates/slim/scaffold/_form.html.slim"
35
+ copy_file "source/simple_form/_form.html.slim", "lib/templates/slim/scaffold/_form.html.slim", :force => true
36
36
  end
37
37
 
38
38
  def custom_scaffold
@@ -1,8 +1,7 @@
1
- = simple_form_for(@<%= singular_table_name %>) do |f|
2
- = f.error_notification
3
- .inputs
4
- <%- attributes.each do |attribute| -%>
5
- = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
6
- <%- end -%>
7
- .actions
1
+ = simple_form_for(@<%= singular_table_name %>, :html => {'data-abide' => ''}) do |f|
2
+ .form-inputs
3
+ <%- attributes.each do |attribute| -%>
4
+ = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>, input_html: { required: ''}, hint: 'Cannot be blank.'
5
+ <%- end -%>
6
+ .form-actions
8
7
  = f.button :submit
data/staple.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "staple"
7
- spec.version = "0.0.8"
7
+ spec.version = "0.0.9"
8
8
  spec.summary = "a high level ui generator (COMING SOON)"
9
9
  spec.description = "Coming Soon. Built on top of foundation."
10
10
  spec.authors = ["Ryan Helsing"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: staple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Helsing