vindetta 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/vindetta +15 -1
- data/lib/vindetta/generator.rb +15 -0
- data/lib/vindetta/version.rb +1 -1
- data/lib/vindetta.rb +3 -9
- data/vindetta.gemspec +2 -0
- metadata +16 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9633b4d06861dba171722a55d1694f7132ef876
|
4
|
+
data.tar.gz: 7593422cea37d67bbb9091dc66190705237cdb8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbb2c0a77800aab56c55af7aa133c0e9d13ad054ff1e4019895ab3600940364161f29268ce0ac1e5f46b2cbf9812771a7e785812265549b2676e9335fddff6b5
|
7
|
+
data.tar.gz: 201d28686e90d464cff0f09abad075d5fc045948ca8d9f41aa4bfc988ee58f3b500ad76a118d850c0489add980fb7a68348fa272362dd809160cb3249adc4c7b
|
data/exe/vindetta
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require "vindetta"
|
4
|
+
require "gli"
|
4
5
|
|
5
|
-
|
6
|
+
include GLI::App
|
7
|
+
|
8
|
+
program_desc 'Utility for generating Vehicle Identification Numbers (VINs)'
|
9
|
+
|
10
|
+
command :generate do |c|
|
11
|
+
c.desc "Generates a random VIN"
|
12
|
+
|
13
|
+
c.action do
|
14
|
+
puts Vindetta::Generator.generate
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
|
19
|
+
exit run(ARGV)
|
data/lib/vindetta/version.rb
CHANGED
data/lib/vindetta.rb
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
require "vindetta/version"
|
2
|
+
require "vindetta/generator"
|
2
3
|
|
3
4
|
module Vindetta
|
4
|
-
|
5
|
-
|
6
|
-
"1FTRX12W18KE97487",
|
7
|
-
"2HGFA1F38BH525824",
|
8
|
-
"1C4GP64L5YB667678"
|
9
|
-
].freeze
|
10
|
-
|
11
|
-
def self.random
|
12
|
-
VINS.sample
|
5
|
+
def self.generate(options = {})
|
6
|
+
Generator.generate(options)
|
13
7
|
end
|
14
8
|
end
|
data/vindetta.gemspec
CHANGED
@@ -21,6 +21,8 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
+
spec.add_dependency "gli", "~> 2.16"
|
25
|
+
|
24
26
|
spec.add_development_dependency "bundler", "~> 1.14"
|
25
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
26
28
|
spec.add_development_dependency "rspec", "~> 3.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vindetta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Decot
|
@@ -10,6 +10,20 @@ bindir: exe
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2017-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: gli
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.16'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.16'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,6 +99,7 @@ files:
|
|
85
99
|
- bin/setup
|
86
100
|
- exe/vindetta
|
87
101
|
- lib/vindetta.rb
|
102
|
+
- lib/vindetta/generator.rb
|
88
103
|
- lib/vindetta/version.rb
|
89
104
|
- vindetta.gemspec
|
90
105
|
homepage: https://github.com/kyledecot/vindetta
|