thor-validations 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 +4 -4
- data/README.md +16 -0
- data/lib/thor/validations/version.rb +1 -1
- data/lib/thor/validations.rb +1 -1
- metadata +21 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eae092c469f57792f1642a6de64a942ef804814026272b4bc35807b2f1fb9f81
|
4
|
+
data.tar.gz: 373f4cf73a635aa4e2ef8d8a36ce9b60ddbc117a9a9a92a14a5a1dc2284e4e89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db039661956fa0589b3450515a1fe50b965aad079f5ae704015281c26b3f629295bbfd8caa30038af1da5edd32cd6fe838a5b81fadb67e92402b350503eb4b9f
|
7
|
+
data.tar.gz: 2eb8ea29b7b45a0e012aeb7411f0dbd66b16aaa8e369f04cfa671cb725c3e0b5955dcfd44359d9d637236a8ce038ffe91aedc2a58df5114fca5b121f189b4219
|
data/README.md
CHANGED
@@ -18,6 +18,8 @@ Thanks to https://github.com/kddnewton/thor-hollaback for the original idea.
|
|
18
18
|
## Usage
|
19
19
|
|
20
20
|
```ruby
|
21
|
+
require 'thor/validations'
|
22
|
+
|
21
23
|
class MyCommand < Thor
|
22
24
|
include Thor::Validations
|
23
25
|
|
@@ -45,3 +47,17 @@ class MyCommand < Thor
|
|
45
47
|
|
46
48
|
end
|
47
49
|
```
|
50
|
+
|
51
|
+
## Contributing
|
52
|
+
|
53
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/benoittgt/thor-validations.
|
54
|
+
|
55
|
+
## Test
|
56
|
+
|
57
|
+
```bash
|
58
|
+
ruby -Ilib:test test/**/*_test.rb
|
59
|
+
```
|
60
|
+
|
61
|
+
## License
|
62
|
+
|
63
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/thor/validations.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thor-validations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoit Tigeot
|
@@ -30,6 +30,26 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.3.1
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: minitest
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '5.24'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 5.24.1
|
43
|
+
type: :development
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '5.24'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 5.24.1
|
33
53
|
description: A simple gem that adds a validate_before method to Thor, allowing pre-command
|
34
54
|
validations
|
35
55
|
email:
|