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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff22a39235a36fde79684aadb15fa502d5148c53b720c88997995af023293940
4
- data.tar.gz: e9303579d55681beee89b7ff52a64b134c09dc8fa0db1543a15008785db28d85
3
+ metadata.gz: eae092c469f57792f1642a6de64a942ef804814026272b4bc35807b2f1fb9f81
4
+ data.tar.gz: 373f4cf73a635aa4e2ef8d8a36ce9b60ddbc117a9a9a92a14a5a1dc2284e4e89
5
5
  SHA512:
6
- metadata.gz: 0b74b03bf1ff3a208db87645811d808937f2d2045d7de52965143de16616e291d28bad8d0bf647a10ffc692dbae8ce166884e04319ccba14d5e849d48c50023c
7
- data.tar.gz: bbdaf8f4564ba02ad3da82c837512356bb8fe463983b41b42378c6c877d53f133f9be3b500be2628f0cd990ea0731ff660007df1ad6ca2f29906968ca3f6cf96
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).
@@ -2,6 +2,6 @@
2
2
 
3
3
  class Thor
4
4
  module Validations
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'thor'
4
- require_relative 'validations/version
4
+ require_relative 'validations/version'
5
5
 
6
6
  class Thor
7
7
  module Validations
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.0
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: