judge-simple_form 0.4.0 → 1.0.0

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: fe91ed5cedd668b8af7f67d959667de4f74b6acd
4
- data.tar.gz: 05ea5ea478532775ea7496e363fcd86bd9de3f8d
3
+ metadata.gz: 713e9652134bb04bfa6f075d51e115d3821bf4ee
4
+ data.tar.gz: 32c3f603b41d3b9d2578c45a3efd8a10b33e3c6b
5
5
  SHA512:
6
- metadata.gz: 6950934a9a69cea2504562eacf66ad80eaad931e06413122693be1b96eb34ac5fea2fe973622b22bb890d2c1c820c03c3ee9583ddbe46e01469a2631bd8cc94e
7
- data.tar.gz: d401811399d62dc5a1c835bb2b78199e0ad087c967b133e6492497a581e0ef84531b4d57ff92b702da55befb14382eee04486f971dd3b5d036959e80972b7cab
6
+ metadata.gz: d868b1f3e51b267d4e6d934853057202c9c171215ec279e084df009a0988e7a4fd6cc512229174ad5d5bef197c4200e35e42c1e70640b66bfd7b4324af20e2e8
7
+ data.tar.gz: d4a802b3fc50a85cfb710ca796c21543cd3658857792da12bf5a57498a77ee9ac7e229b1229e7b9e29908f8b7f5dfd8366eda86181dc7d2a5fba2655c5011497
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  [![Build status](https://secure.travis-ci.org/joecorcoran/judge-simple_form.png?branch=master)](http://travis-ci.org/joecorcoran/judge-simple_form)
4
4
 
5
- This is an adapter gem which allows you to use [Judge][judge] from within your [SimpleForm](http://github.com/plataformatec/simple_form) forms.
5
+ This is an adapter gem which allows you to use [Judge][judge] from within your [Simple Form](http://github.com/plataformatec/simple_form) forms.
6
+
7
+ The current version supports Simple Form >= 3. For Simple Form 2 support use `'judge-simple_form', ~> '0.4'`.
6
8
 
7
9
  ## Usage
8
10
 
@@ -12,7 +14,7 @@ Do this in your Gemfile:
12
14
  gem 'judge-simple_form'
13
15
  ```
14
16
 
15
- Remember to setup Judge in your SimpleForm initializer:
17
+ Remember to setup Judge in your SimpleForm initializer. Put `b.use :judge` above `b.use :input` or `b.use :input_label`:
16
18
 
17
19
  ```ruby
18
20
  config.wrappers do |b|
@@ -6,7 +6,7 @@ module SimpleForm
6
6
  module Judge
7
7
  include ::Judge::Html
8
8
 
9
- def judge
9
+ def judge(wrapper_options)
10
10
  if has_judge?
11
11
  input_html_options.deep_merge!(attrs_for(object, attribute_name))
12
12
  end
@@ -1,5 +1,5 @@
1
1
  module Judge
2
2
  module SimpleForm
3
- VERSION = "0.4.0"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,113 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judge-simple_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Corcoran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-07 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: judge
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: simple_form
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.13'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.13'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: nokogiri
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.6'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.6'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: appraisal
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.5'
103
+ version: 2.0.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.5'
110
+ version: 2.0.0
111
111
  description: Easily add Judge client side validation to your SimpleForm forms.
112
112
  email: joe@tribesports.com
113
113
  executables: []
@@ -127,17 +127,17 @@ require_paths:
127
127
  - lib
128
128
  required_ruby_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - '>='
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - '>='
135
+ - - ">="
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
- rubygems_version: 2.2.0
140
+ rubygems_version: 2.4.3
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: SimpleForm adapter for Judge