vv 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f3bcbbe7ea69583dce95c3b9d9a702fda226a2bb9e63f524c0a76cc18b69142
4
- data.tar.gz: 36b73375b12feb1240c7361309ad1b346e0893291c1d068eafd2f2eca20d8aac
3
+ metadata.gz: aafa1b0844a59d8158b402e9e7e51c325dae6082d79bc508949b33aeb7987b0f
4
+ data.tar.gz: 35f64d79aab93c8b38943fbe758968e3b4e4e9e8c8b05ed59b162bf11417ecb1
5
5
  SHA512:
6
- metadata.gz: '09b06bd73467b0f00bf81fc89ac494b153db055042ddbad586dc332b1ca460cb217728860a311ffb09b7f8ebd464dc1eb7d8153a3ce51d4a6b140cf84ecb9641'
7
- data.tar.gz: d8401e963170293b4a591f49ef040350d3a6fdb557102b741717bd89ebbd40deb3f7984e5f71a0281cbe6344b6a904c96833a328ff60e59981342c6b811c3d43
6
+ metadata.gz: cf4313d3280e92c44c191670fb17433ef984e73cc15f857c62af00cc3acda49a033310897fa96f484528de043dac1661b4da1d585287331996cf07eb3f5f2f86
7
+ data.tar.gz: f2beba8849297663d145f907affda65f8823f4b8389284d205af6288468d26ac9b76df0b6dc8fe7ccbdaf9c941bf2c87cf1993b7795b7814e48137dc5ae0b42a
@@ -6,8 +6,8 @@ module VV
6
6
 
7
7
  module Automate
8
8
 
9
- def version path:
10
- args = ARGV.to_a
9
+ def version path:, argv:
10
+ args = argv.to_a
11
11
  lines = File.read(path).split("\n")
12
12
 
13
13
  raise "Unknown number of arguments" if args.size > 1
@@ -37,6 +37,10 @@ module VV
37
37
  elsif command == "reset"
38
38
  system("git checkout -- #{path}")
39
39
  exit
40
+ elsif command == "commit"
41
+ message = "Bump version to #{version}"
42
+ system("git commit -S --only #{path} -m \"#{message}\"")
43
+ exit
40
44
  elsif %w[ help --help h -h ].include? command
41
45
  puts
42
46
  puts "Available commands are:"
data/lib/vv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VV
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Aysan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-24 00:00:00.000000000 Z
11
+ date: 2019-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake