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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9df93ffa722415bb043482dba77b19857d451eab5fffb02bd932d1bfd879ba94
4
- data.tar.gz: c46cb7df95c3f650b5fb51f000b06c737a11ed9855d001ecdbd0b58659e4abe3
3
+ metadata.gz: 7369ef91a1c131d8bfefc1092766605327b09f75a3850ae8b344525d70ae7941
4
+ data.tar.gz: 9ef77edcfe4b6c897af791ce70aeb880477a2526bdee4ac21b9ee08c3b05520f
5
5
  SHA512:
6
- metadata.gz: 9c367895cb0b222da896d0a73defbcba5cd3aeb3a27be19260d6f16ef848a75858d07ffc331ac8233ad8b7bd87a2e51f6fab9a92575ff84075b3ff36d822fe92
7
- data.tar.gz: ce6a117fa358863a15695120f9975b802125cde13bf8439dac6de2a06531c22f0f4afb259ac7366d54b6ef7a7c20be46b5cc4cada2b8a1061569afaa8a0d8796
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
@@ -1,3 +1,3 @@
1
1
  module Getv
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-15 00:00:00.000000000 Z
11
+ date: 2022-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri