getv 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/getv/package.rb +2 -1
- data/lib/getv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7369ef91a1c131d8bfefc1092766605327b09f75a3850ae8b344525d70ae7941
|
4
|
+
data.tar.gz: 9ef77edcfe4b6c897af791ce70aeb880477a2526bdee4ac21b9ee08c3b05520f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8084e7d170ec2cd4545e80f99ec87255af60fe468b9d409ee7af7e2bbc7a4f832b73505b247d889ced894a35b75603d24abcba083ababf6c6cec030fd08074e6
|
7
|
+
data.tar.gz: ef69ca6d1c0a8e5fcba0273a55346d4ed7db0297638c6aab79a42ffb2b39b1e03c21dc08454754bce570204bcb35556413a05ea7bbb813cef44543b4ca3b597b
|
data/lib/getv/package.rb
CHANGED
@@ -13,6 +13,7 @@ module Getv
|
|
13
13
|
end
|
14
14
|
if opts[:type] == 'github_commit'
|
15
15
|
opts = {
|
16
|
+
:branch => 'master',
|
16
17
|
:select_search => '^((\d{8})(\d{6}),(([a-z\d]{7})(.*)))$',
|
17
18
|
:semantic_only => false
|
18
19
|
}.merge(opts)
|
@@ -141,7 +142,7 @@ module Getv
|
|
141
142
|
if method == 'release'
|
142
143
|
return github.releases("#{opts[:owner]}/#{opts[:repo]}").map{|r| r.tag_name}
|
143
144
|
elsif method == 'commit'
|
144
|
-
return github.commits("#{opts[:owner]}/#{opts[:repo]}").map { |c|
|
145
|
+
return github.commits("#{opts[:owner]}/#{opts[:repo]}",opts[:branch]).map { |c|
|
145
146
|
"#{DateTime.parse(c[:commit][:author][:date].to_s).strftime('%Y%m%d%H%M%S')},#{c[:sha]}"
|
146
147
|
}
|
147
148
|
else
|
data/lib/getv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: getv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- harbottle
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|