rails-fort 0.1.0 → 0.1.1

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: c7bccfd456c3f03cacc0c022db41f7f3f1909dea
4
- data.tar.gz: 7e55e0521c8eb4d765b20f0c9fb88d611054ca50
3
+ metadata.gz: 75b670e0f2ea2eb7ca440e1d8308645e35cf1245
4
+ data.tar.gz: 03af799d169ba985513f7f79845314c34743a2a3
5
5
  SHA512:
6
- metadata.gz: 2c46f00b185b4229f4208dfa2094799880a66de196cce07ee3453b5e74ab868c028e7d74600966d1f4515b3757e0619ad50d0875093a8452a07d909c57cb1a67
7
- data.tar.gz: 3e8fcd1feaa0dd913dc1bb57936084d07e22ad12208443808f9de184c9328f453b10842ab1445b321372f666d4f704da0feab0c2904fee427955c497671f2561
6
+ metadata.gz: 884a4b97caff5a7c9e25df6ab94599c6965e5722ccf44e2a0ef31b65a644f198961375e2dc9729dc8ef582c393c91227b7681572e88af945fe6eaa174aec9ccd
7
+ data.tar.gz: 7ca30f6fb29c1644d9bf8b754ba233ab3c35049a19927f9f29ec378b8819a5aa547ec9d1fe3bee90c0b391ba0292db5342ef66ee93f89395be4f5355619df3da
data/README.md CHANGED
@@ -29,17 +29,13 @@ and in application.css file
29
29
 
30
30
  ## Usage
31
31
 
32
- <div class="form">
33
- <form method="post">
34
- <input type="text">
35
- </form>
36
- </div>
32
+ rails-fort will automatically detect all `<input>` inside form
37
33
 
38
34
  Certain fields:
39
35
 
40
36
  If you want to exclude certain fields add a class named 'ignore' to the field. rails-fort will not detect the field after you do so.
41
37
 
42
- Example
38
+ Example
43
39
 
44
40
  <input type="text" class='ignore'>
45
41
 
@@ -89,6 +85,10 @@ effects can be added by changing type and value fields in fort.yml
89
85
 
90
86
  Bug reports and pull requests are welcome on GitHub at https://github.com/ethirajsrinivasan/rails-fort. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
91
87
 
88
+ ##Thanks
89
+
90
+ Thanks to [Idris Khenchil](https://github.com/idriskhenchil/Fort.js) for writing an awesome fort plugin.
91
+
92
92
 
93
93
  ## License
94
94
 
@@ -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.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-fort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ethiraj
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-14 00:00:00.000000000 Z
11
+ date: 2015-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler