pghub-issue_title 0.1.0 → 0.2.0

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
  SHA1:
3
- metadata.gz: eb553be0bfeda1f9eebc045e09ce9a9f308cb15d
4
- data.tar.gz: 9d5dce44aa53ecf79813f55f32542f540af8699d
3
+ metadata.gz: d71887fa651fdab730270aec501c026074b6b971
4
+ data.tar.gz: baa567edc7527ed6653f4a8334a4a6bdb293d7e9
5
5
  SHA512:
6
- metadata.gz: 5124505206d1836d396061f79038fe02e5a270151b19766ed94352e7b7f52fe9036ca015c81d60ef3eb0427b18ce28686c9d058d46fa08a36ee76e0857e97326
7
- data.tar.gz: ed2e86a2e3f2fc912a757beda20f68b44c6568e47a7a0e8a9926ab540defd3102caf5f7d586bd3bbaba9a1cfb0fd3fa2d7a0bd7de0e34ac7eec8c99cb53c9a0a
6
+ metadata.gz: e978e8a628fa9e17f31971c376dcccf8e8058ad7cc7f4f29cae4ad98a593fe72370039fafb722a8b26485fda76b196a774d0f55bdb895b4452888220f7218820
7
+ data.tar.gz: be14f49a6b232756cd1e090155819870c812ac49f1c330ddad3f5be30131a45a9f50df7b67ded7246da4168a70a97d7b6422500caf6a6beb0ddc82acc3a933e5
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "pghub/post_title"
4
+ require "pghub/issue_title"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -1,5 +1,5 @@
1
1
  module Pghub
2
2
  module IssueTitle
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -1,3 +1,4 @@
1
+ require 'pghub/base'
1
2
  require 'pghub/issue_title/version'
2
3
 
3
4
  class IssueUrlNotFound < StandardError; end
@@ -6,7 +7,7 @@ module Pghub
6
7
  module IssueTitle
7
8
  class << self
8
9
  def post(issue_path, input)
9
- issue_client = GithubAPI.new(issue_path_from(input))
10
+ issue_client = GithubAPI.new(issue_path_from(input, issue_path))
10
11
  content = issue_client.get_title
11
12
 
12
13
  comment_client = GithubAPI.new(issue_path)
@@ -15,7 +16,7 @@ module Pghub
15
16
 
16
17
  private
17
18
 
18
- def issue_path_from(input)
19
+ def issue_path_from(input, issue_path)
19
20
  reg_organization = %r{#{Pghub.config.github_organization}\/}
20
21
  ref_issue_url = %r{ref https:\/\/github.com\/#{Pghub.config.github_organization}\/.+\/\d+}
21
22
  ref_completion_issue_url = %r{ref #(\d+)}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pghub-issue_title
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ebkn12, akias, Doppon, seteen, mryoshio, sughimura