vindetta 0.12.0 → 0.13.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: 045ea11f936070763a5697375633ef5728d463c6
4
- data.tar.gz: 18378b1d362e4b06879dea15b944cd3a421de99a
3
+ metadata.gz: e436b14b329f2f276f570349deb2eb13b28a42f7
4
+ data.tar.gz: 78a169fc3f51e2240654f56b5edf4f7f7cd6e1fe
5
5
  SHA512:
6
- metadata.gz: 2a029ba9d2dbacb6d90fa98ebd5d390e09753c7172ef96c3a80f66d98794af683ce1b0792b0e87a88ccea34ba5969d58cc25090174cc02ef7e2064e9962d505e
7
- data.tar.gz: 4441fb64d3779acb4915067110a7f45ccb155949ce6550b8ada4ec5b9a0fbea46b4212205130186627216d6717094dffb6b17c066c607a539b6223ef01605935
6
+ metadata.gz: 023d2a6b56f7466c13e2fd18c2b32dfac8bba7ee8a3cdcd4937a44d704016e432122531f1c44b7a0c7967c77ddaea89d69987408842a444ab69acbaf50c480e2
7
+ data.tar.gz: b28c08d5716b7ca65d2be997593569925695ba7130bb721b50532db27f3ec0471235136441802eb13c9774116995dad3cbb0fe3a25630dfe73f6c96944ce5a4e
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ .DS_Store
1
2
  /.bundle/
2
3
  /.yardoc
3
4
  /Gemfile.lock
data/Guardfile CHANGED
@@ -1,70 +1,12 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- ## Uncomment and set this to only include directories you want to watch
5
- # directories %w(app lib config test spec features) \
6
- # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
-
8
- ## Note: if you are using the `directories` clause above and you are not
9
- ## watching the project directory ('.'), then you will want to move
10
- ## the Guardfile to a watched dir and symlink it back, e.g.
11
- #
12
- # $ mkdir config
13
- # $ mv Guardfile config/
14
- # $ ln -s config/Guardfile .
15
- #
16
- # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
-
18
- # Note: The cmd option is now required due to the increasing number of ways
19
- # rspec may be run, below are examples of the most common uses.
20
- # * bundler: 'bundle exec rspec'
21
- # * bundler binstubs: 'bin/rspec'
22
- # * spring: 'bin/rspec' (This will use spring if running and you have
23
- # installed the spring binstubs per the docs)
24
- # * zeus: 'zeus rspec' (requires the server to be started separately)
25
- # * 'just' rspec: 'rspec'
26
-
27
1
  guard :rspec, cmd: "bundle exec rspec" do
28
2
  require "guard/rspec/dsl"
29
- dsl = Guard::RSpec::Dsl.new(self)
30
-
31
- # Feel free to open issues for suggestions and improvements
32
3
 
33
- # RSpec files
4
+ dsl = Guard::RSpec::Dsl.new(self)
34
5
  rspec = dsl.rspec
6
+
35
7
  watch(rspec.spec_helper) { rspec.spec_dir }
36
8
  watch(rspec.spec_support) { rspec.spec_dir }
37
9
  watch(rspec.spec_files)
38
10
 
39
- # Ruby files
40
- ruby = dsl.ruby
41
- dsl.watch_spec_files_for(ruby.lib_files)
42
-
43
- # Rails files
44
- rails = dsl.rails(view_extensions: %w[erb haml slim])
45
- dsl.watch_spec_files_for(rails.app_files)
46
- dsl.watch_spec_files_for(rails.views)
47
-
48
- watch(rails.controllers) do |m|
49
- [
50
- rspec.spec.call("routing/#{m[1]}_routing"),
51
- rspec.spec.call("controllers/#{m[1]}_controller"),
52
- rspec.spec.call("acceptance/#{m[1]}")
53
- ]
54
- end
55
-
56
- # Rails config changes
57
- watch(rails.spec_helper) { rspec.spec_dir }
58
- watch(rails.routes) { "#{rspec.spec_dir}/routing" }
59
- watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
60
-
61
- # Capybara features specs
62
- watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
63
- watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
64
-
65
- # Turnip features and steps
66
- watch(%r{^spec/acceptance/(.+)\.feature$})
67
- watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
68
- Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
69
- end
11
+ dsl.watch_spec_files_for(dsl.ruby.lib_files)
70
12
  end
data/lib/vindetta/cli.rb CHANGED
@@ -29,9 +29,10 @@ module Vindetta
29
29
  c.action do |_global, _options, _args|
30
30
  vin = _args.first
31
31
 
32
- exit_now!("vin is required") if vin.nil?
33
-
34
- puts Vindetta::Decoder.decode_vin(vin).to_json
32
+ puts "got here"
33
+ # exit_now!("vin is required") if vin.nil?
34
+ #
35
+ # puts Vindetta::Decoder.decode_vin(vin).to_json
35
36
  end
36
37
  end
37
38
 
@@ -2,7 +2,7 @@ require "net/http"
2
2
 
3
3
  module Vindetta
4
4
  class Generator
5
- def self.generate
5
+ def self.generate(options = {})
6
6
  Net::HTTP.get("randomvin.com", "/getvin.php")
7
7
  end
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module Vindetta
2
- VERSION = "0.12.0".freeze
2
+ VERSION = "0.13.0".freeze
3
3
  end
data/vindetta.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency "activesupport", "~> 5.1"
27
27
  spec.add_dependency "gli", "~> 2.16"
28
28
  spec.add_dependency "i18n", "~> 0.8.6"
29
- spec.add_dependency "httparty"
29
+ spec.add_dependency "httparty", "~> 0.15.6"
30
30
 
31
31
  spec.add_development_dependency "bundler", "~> 1.14"
32
32
  spec.add_development_dependency "factory_girl", "~> 4.8.0"
@@ -36,5 +36,5 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency "rspec", "~> 3.0"
37
37
  spec.add_development_dependency "rubocop", "~> 0.49"
38
38
  spec.add_development_dependency "webmock", "~> 3.0.1"
39
- spec.add_development_dependency "vcr"
39
+ spec.add_development_dependency "vcr", "~> 3.0.3"
40
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vindetta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Decot
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-10 00:00:00.000000000 Z
11
+ date: 2017-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: httparty
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 0.15.6
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 0.15.6
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -196,16 +196,16 @@ dependencies:
196
196
  name: vcr
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ">="
199
+ - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: '0'
201
+ version: 3.0.3
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ">="
206
+ - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: '0'
208
+ version: 3.0.3
209
209
  description: Ruby gem for generating VINs
210
210
  email:
211
211
  - kyle@joinroot.com