formtastic_tristate_radio 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +10 -0
- data/lib/formtastic_tristate_radio/version.rb +1 -1
- metadata +11 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86bedb2f66a40f6a3ed5279b74fe1ecdc3ad78cf0c288183580986c162ace2ec
|
4
|
+
data.tar.gz: 7616b0e734f3760402146faabc3826b65e19662b18656aa21b182302d8268cdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f43eb8544a29be624ac73048e86e4369653e4311347a5f07b49cfbe1cc70c6adf66827e5f9cf2a6530ff84a0e1fc6b2d5154f9d08a11849b07e4781fa28ad2ef
|
7
|
+
data.tar.gz: 6e60adba7f1d57f623f60a7cd4a448e5c443f0eb27721da49fc1767c509d16e19842a8b220ec301dfdbb188a051e2d1c1e4d8420efbbcf810f65a4dd07229704
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Formtastic tri-state radio
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/formtastic_tristate_radio.svg)](https://badge.fury.io/rb/formtastic_tristate_radio)
|
4
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/c2508d7f23238fb2b87f/maintainability)](https://codeclimate.com/github/sergeypedan/formtastic-tristate-radio/maintainability)
|
5
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/c2508d7f23238fb2b87f/test_coverage)](https://codeclimate.com/github/sergeypedan/formtastic-tristate-radio/test_coverage)
|
4
6
|
|
5
7
|
## What is “tri-state”?
|
6
8
|
|
@@ -95,6 +97,11 @@ Notice that the key ActiveAdmin uses is “unset”, not “null”.
|
|
95
97
|
Nothing is configurable yet. I think of making configurable which values are regognized as `nil`.
|
96
98
|
|
97
99
|
|
100
|
+
## Documentation
|
101
|
+
|
102
|
+
Low-level methods are properly documented in RubyDoc [here](https://www.rubydoc.info/gems/formtastic_tristate_radio/).
|
103
|
+
|
104
|
+
|
98
105
|
## Dependencies
|
99
106
|
|
100
107
|
Now the gem depends on [Formtastic](https://github.com/formtastic/formtastic) (naturally) and Rails. Frankly I am not sure whether I will have time to make it work with other frameworks.
|
@@ -173,7 +180,10 @@ ActiveModel::Type::Boolean.new.cast(:nil) #=> nil
|
|
173
180
|
|
174
181
|
- [ ] Load translations from gem
|
175
182
|
- [ ] Add translations into most popular languages
|
183
|
+
- [ ] Make the gem configurable
|
184
|
+
- [ ] Pull the key used for “unset” choice value into configuration
|
176
185
|
- [ ] Rgister `:tristate_radio` for Boolean columns with `null`
|
186
|
+
- [ ] Decouple `ActiveModel::Type::Boolean` thing from Formtastic things, maybe into a separate gem
|
177
187
|
- [ ] Decouple from Rails
|
178
188
|
|
179
189
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formtastic_tristate_radio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Pedan
|
@@ -50,62 +50,26 @@ dependencies:
|
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '7'
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: coveralls
|
55
|
-
requirement: !ruby/object:Gem::Requirement
|
56
|
-
requirements:
|
57
|
-
- - "~>"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '0.2'
|
60
|
-
type: :development
|
61
|
-
prerelease: false
|
62
|
-
version_requirements: !ruby/object:Gem::Requirement
|
63
|
-
requirements:
|
64
|
-
- - "~>"
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: '0.2'
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
name: pry
|
69
|
-
requirement: !ruby/object:Gem::Requirement
|
70
|
-
requirements:
|
71
|
-
- - "~>"
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: '0.14'
|
74
|
-
type: :development
|
75
|
-
prerelease: false
|
76
|
-
version_requirements: !ruby/object:Gem::Requirement
|
77
|
-
requirements:
|
78
|
-
- - "~>"
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: '0.14'
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: rake
|
83
|
-
requirement: !ruby/object:Gem::Requirement
|
84
|
-
requirements:
|
85
|
-
- - "~>"
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: '13'
|
88
|
-
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
requirements:
|
92
|
-
- - "~>"
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: '13'
|
95
53
|
- !ruby/object:Gem::Dependency
|
96
54
|
name: yard
|
97
55
|
requirement: !ruby/object:Gem::Requirement
|
98
56
|
requirements:
|
99
|
-
- - "
|
57
|
+
- - ">="
|
100
58
|
- !ruby/object:Gem::Version
|
101
59
|
version: '0.9'
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '1'
|
102
63
|
type: :development
|
103
64
|
prerelease: false
|
104
65
|
version_requirements: !ruby/object:Gem::Requirement
|
105
66
|
requirements:
|
106
|
-
- - "
|
67
|
+
- - ">="
|
107
68
|
- !ruby/object:Gem::Version
|
108
69
|
version: '0.9'
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '1'
|
109
73
|
description: 'Have 3-state radiobuttons instead of a 2-state checkbox for your Boolean
|
110
74
|
columns which can store NULL. Does not change controls, you need to turn it on via
|
111
75
|
`as: :tristate_radio` option.'
|
@@ -136,8 +100,8 @@ homepage: https://github.com/sergeypedan/formtastic-tristate-radio
|
|
136
100
|
licenses:
|
137
101
|
- MIT
|
138
102
|
metadata:
|
139
|
-
changelog_uri: https://github.com/sergeypedan/formtastic-tristate-radio/blob/master/
|
140
|
-
documentation_uri: https://www.rubydoc.info/gems/
|
103
|
+
changelog_uri: https://github.com/sergeypedan/formtastic-tristate-radio/blob/master/CHANGELOG.md
|
104
|
+
documentation_uri: https://www.rubydoc.info/gems/formtastic_tristate_radio
|
141
105
|
homepage_uri: https://github.com/sergeypedan/formtastic-tristate-radio
|
142
106
|
source_code_uri: https://github.com/sergeypedan/formtastic-tristate-radio
|
143
107
|
post_install_message:
|