rails-fort 0.1.2 → 0.1.3

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: 9931e59cecb47189e3457c4cfc0619d33e2bdd23
4
- data.tar.gz: 9e4973d3179b7936035f8b918c71281d9db935be
3
+ metadata.gz: 6536ab073d7d01b6fece271062b81039e3f149d9
4
+ data.tar.gz: 989f70205c3fcacaec4b0f865a495c6138b4c2af
5
5
  SHA512:
6
- metadata.gz: 4051176647c611553839d7e827cc926cc3476cdcb6e5fa312d28c2599feef9205c0dc109f10479b5ba8780fc9691212548239ba726ceafcb288a9013c9e8cd93
7
- data.tar.gz: cedd3e67c7f450fd39263ba61ae849236fabb3ce432aadc181b77681e613c7ec61ec889ec1e4f2d9493ca601e5a16c3565f38038fa8dc0239be9d4edf26459fe
6
+ metadata.gz: 12fe037ccf6e322a3761a53a8c30fc4396bb20552eeb2ff704df6d86944dc417e4d537959afe2184f06f0d6d06df8ca436e8d6fa55c368ff10f967103c829d17
7
+ data.tar.gz: c60f938d4b30c70540cbf22b978e3881fe4e4fdb05060361c6ce098eb7098d246813aca0b556918ac4a80d9583c70778407b85a99a62295e9e511203ac69c9b2
data/README.md CHANGED
@@ -29,15 +29,7 @@ and in application.css file
29
29
 
30
30
  ## Usage
31
31
 
32
- Place `<div class="form">` before your form.All `<input>` inside form will be taken in account.
33
-
34
- Example
35
-
36
- <div class="form">
37
- <form method="post">
38
- <input type="text">
39
- </form>
40
- </div>
32
+ rails-fort will automatically detect all `<input>` inside form
41
33
 
42
34
  Certain fields:
43
35
 
@@ -1,6 +1,7 @@
1
1
  //= require rails.fort
2
2
 
3
3
  $(document).ready(function(){
4
+ $("form").wrap( "<div class='form'></div>" );
4
5
  <% path_to_file = "#{Rails.root}/config/fort.yml" %>
5
6
  <% if File.exist?(path_to_file) %>
6
7
  fortconfig = <%= JSON.dump(YAML.load_file(path_to_file)) %>;
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Fort
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-fort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ethiraj