git-pr-release 2.1.1 → 2.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: fb2e505f8c5478aa78d16885c34a3a90d5f23ae2955d1438d38063091f810416
4
- data.tar.gz: 541065dedc6efd40d708c325be8e73a0d40b91a1816b3bb468d192383f4a4717
3
+ metadata.gz: b48c8fc61f0a1f281f36cb2a94ae3a59c72a820c7f65944fdd1967c7ea8d75b4
4
+ data.tar.gz: 2ba81d0823e1cb879e163141605d298adca9ee7b925e7c737b1600662d411560
5
5
  SHA512:
6
- metadata.gz: 9b99c927c9bfec3ec71d74f4b4e6e1eaca5b5ccaae2a184c0567f34a3a1859e0464dfa2b77c2995b3dd56239ed4b5647ef0878a9dc9936c8b02dfdffcb161681
7
- data.tar.gz: 73bc08b35bbf9ce89e4270e0b660f6d71b17f65a578f8363d4a6f6741be8505660cee77a9bdba111f79fd15298930000e72aee6e4cd4ef6dfec77496cfcf5ac3
6
+ metadata.gz: 1ed66465c516ca863af0e1f23d3d35071310df0e98f2c82ad8f9af4da4ddf24c959a3bf21f56ef58aaf0f8fc63b76a73e96ec17f14f6f2430cac91b2c4e0ce6a
7
+ data.tar.gz: 5bbb75eb2add20db771af9663b23fcb8afa52171d620088961550ca2f50357f4a08023e2ac726d219ffe7817b658e6672b7efe3e183d7f68ad59acd4d4931d6e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # git-pr-release
2
2
 
3
+ ## v2.1.2 (2022-07-29)
4
+
5
+ [full changelog](https://github.com/x-motemen/git-pr-release/compare/v2.1.1...v2.1.2)
6
+
7
+ * (#87) delegate to `@pr` when `method_missing` in PullRequest (@Songmu)
8
+
3
9
  ## v2.1.1 (2022-03-09)
4
10
 
5
11
  [full changelog](https://github.com/x-motemen/git-pr-release/compare/v2.1.0...v2.1.1)
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "git-pr-release"
7
- spec.version = '2.1.1'
7
+ spec.version = '2.1.2'
8
8
  spec.authors = ["motemen"]
9
9
  spec.email = ["motemen@gmail.com"]
10
10
  spec.summary = 'Creates a release pull request'
@@ -40,6 +40,14 @@ module Git
40
40
  def self.mention_type
41
41
  @mention_type ||= (ENV.fetch('GIT_PR_RELEASE_MENTION') { git_config('mention') } || 'default')
42
42
  end
43
+
44
+ def method_missing(name, *args, &block)
45
+ @pr.public_send name, *args, &block
46
+ end
47
+
48
+ def respond_to_missing?(name, include_private = false)
49
+ @pr.respond_to?(name, include_private)
50
+ end
43
51
  end
44
52
  end
45
53
  end
data/spec/spec_helper.rb CHANGED
@@ -31,6 +31,9 @@ RSpec.configure do |config|
31
31
  config.after do
32
32
  Timecop.return
33
33
  end
34
+
35
+ # Trigger Autoload
36
+ Octokit::Client
34
37
  end
35
38
 
36
39
  Dir[File.expand_path("support/**/*.rb", __dir__)].each {|f| require f }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-pr-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - motemen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-08 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit