auto_release_note 0.1.1 → 0.1.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: 666a074efb83c43d9b021a68026aba78d98d81ba27ab82d81cff03a45ba28930
4
- data.tar.gz: ea70d33b147fad86bd7d5e453950e82b60d6002647ebe73cb7bdae77063eea0d
3
+ metadata.gz: dff1410558b264a33d550e68cfc4e61d5051cdc313f55f126f87c6bf6d092863
4
+ data.tar.gz: cf019570ef626900927694db4490c30f5edb5f6cbc8e7114fd0d9e8014e99dab
5
5
  SHA512:
6
- metadata.gz: 26c181b7e3a66860ba4f5e900c5529f63f27542e20f5dd14ed4aa1d87a6c30565a75cd892928910ab677b3688f2625ad644e2a4fe7123ed22bb2f78950197b9f
7
- data.tar.gz: c83341accaf70bfc347c2bd614569dcc1135c10dd409f71bec650828b9c1c013f06df3136563b5dbf7b990435ddc3a027d48a5c7fdd92fd69af6563e37bfcf53
6
+ metadata.gz: 13628798e2f9b163babea9ea45f728e918cdf23e302668dd59de1b510611dbd475c44d7e05c3cf0097a5ee0e273db3276fe9602086472234ab72370216207051
7
+ data.tar.gz: 131258a8585798e89bd7dc615ad8d3896293b3674ec657c93d227aaabd68bbd61666071856a95c9b59b00d3020b42df43b4e7f2c1896257a0b05277d18742c0c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- auto_release_note (0.1.1)
4
+ auto_release_note (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -12,6 +12,10 @@ module AutoReleaseNote
12
12
  get_issue
13
13
  end
14
14
 
15
+ def repository(username)
16
+ repositories.find {|url| url.include?(username) }
17
+ end
18
+
15
19
  def repositories
16
20
  @git.remotes.map {|remote| remote.url.gsub(/.git$/, '') }
17
21
  end
@@ -1,3 +1,3 @@
1
1
  module AutoReleaseNote
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -6,7 +6,7 @@ module AutoReleaseNote
6
6
  class << self
7
7
  def execute(username:, tag_query: nil)
8
8
  log = AutoReleaseNote::GitLog.new(tag_query: tag_query)
9
- repository = log.repositories.first
9
+ repository = log.repository(username)
10
10
  links = log.logs.map {|l| l[:issue].to_i }.sort.map do |issue|
11
11
  "#{repository}/#{issue}"
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_release_note
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - iaia