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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3426595ef6a36b2a799c5a49f6bd2a90d1c4b25
4
- data.tar.gz: b0750dfcdef93410be41cb22d4bd659c17a2d7c8
3
+ metadata.gz: b9633b4d06861dba171722a55d1694f7132ef876
4
+ data.tar.gz: 7593422cea37d67bbb9091dc66190705237cdb8e
5
5
  SHA512:
6
- metadata.gz: a171d80c139cf2aba1cde57b44f09480bf64c2caed28929a083c549f8c91b1d0a850a2de630e480effd424649e49da7e2bb7756f3d822818511af6567bae85d5
7
- data.tar.gz: 4efd8cd755f810cb63c8ec5f9ffa530443e2662f875c31124176c50bf0bace21a4f9679c1667567672ff057af8a667c153d155224a516680ef809adbb9da5d32
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
- puts Vindetta.random
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)
@@ -0,0 +1,15 @@
1
+ module Vindetta
2
+ class Generator
3
+ VINS = [
4
+ "KNAFX4A67E5095888",
5
+ "1FTRX12W18KE97487",
6
+ "2HGFA1F38BH525824",
7
+ "1C4GP64L5YB667678"
8
+ ].freeze
9
+
10
+
11
+ def self.generate(options = {})
12
+ VINS.sample
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module Vindetta
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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
- VINS = [
5
- "KNAFX4A67E5095888",
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.2.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