env_pull_request 0.3.3 → 1.0.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: 88106089988bc4340bab7ffd7186dd7dc57ee7f1
4
- data.tar.gz: d9514dbdff941cc991a4bfb3fc6788f1340987f5
3
+ metadata.gz: b7c3aef5a380716e58f3a2d4085f77d94a4652b4
4
+ data.tar.gz: c96a1d13e7f307f3f2b705d2ffeefc325f07fbe7
5
5
  SHA512:
6
- metadata.gz: 0df2a6037d20214e683eac3525e489dc9e1a48162633140c896e6213db9060c0e96b9d97d4cbdf6cec21101ca69a81618430e1c2dc715fca9fa0ad8faf806c57
7
- data.tar.gz: d131259be0dd51d6380b908b6741d4b673e11e6a62c33becdd76667d1d0d6a0ab5eb459f8017ade6734e64ff382ec72c370c3a9aba01ba5d4bd2a2c8d04c7d5f
6
+ metadata.gz: d428597a78994912368a45a4faa3d03fb719cab59eb84d71d008a45dc1d574e65e76b2c8807c8469a2da3b65d1f4395148282df992bdca4ab68961444b3993e1
7
+ data.tar.gz: 48b9bcc33f93b94942da1109ea74daae5de78f78183fef63bf0f12958c7a557db06fe4a46f27fb6ce188643703318a0e5f9177acf2673e18617bc93eabac178d
File without changes
data/.gitignore CHANGED
File without changes
File without changes
@@ -5,8 +5,9 @@ language: "ruby"
5
5
  rvm:
6
6
  - "1.9"
7
7
  - "2.0"
8
- - "2.1"
9
- - "2.2"
8
+ - "2.1.10"
9
+ - "2.2.5"
10
+ - "2.3.1"
10
11
  - "ruby-head"
11
12
  matrix:
12
13
  allow_failures:
File without changes
File without changes
data/Gemfile CHANGED
File without changes
File without changes
data/README.md CHANGED
@@ -72,6 +72,11 @@ And more *[details][docs-url]*.
72
72
  * [GitHub pull request builder plugin - Jenkins - Jenkins Wiki](https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin#GitHubpullrequestbuilderplugin-EnvironmentVariables)
73
73
 
74
74
 
75
+ ## Related
76
+
77
+ * [env-branch](https://github.com/packsaddle/ruby-env_branch)
78
+
79
+
75
80
  ## Changelog
76
81
 
77
82
  [changelog.md](./changelog.md).
@@ -106,6 +111,12 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
106
111
  Bug reports and pull requests are welcome on GitHub at https://github.com/packsaddle/ruby-env_pull_request. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
107
112
 
108
113
 
114
+ ## Thanks
115
+
116
+ * [rosylilly](https://github.com/rosylilly)
117
+ * [skorfmann](https://github.com/skorfmann)
118
+
119
+
109
120
  ## License
110
121
 
111
122
  © [sanemat](http://sane.jp)
data/Rakefile CHANGED
@@ -10,8 +10,8 @@ task default: :test
10
10
 
11
11
  require 'yard'
12
12
  require 'yard/rake/yardoc_task'
13
- DOC_FILES = ['lib/**/*.rb']
14
- DOC_OPTIONS = ['--debug', '--verbose']
13
+ DOC_FILES = ['lib/**/*.rb'].freeze
14
+ DOC_OPTIONS = ['--debug', '--verbose'].freeze
15
15
  YARD::Rake::YardocTask.new(:doc) do |t|
16
16
  t.files = DOC_FILES
17
17
  t.options = DOC_OPTIONS if Rake.application.options.trace
@@ -1,3 +1,9 @@
1
+ <a name="1.0.0"></a>
2
+ # [1.0.0](https://github.com/packsaddle/ruby-env_pull_request/compare/v0.3.3...v1.0.0) (2016-04-30)
3
+
4
+ * This library is already stable :)
5
+
6
+
1
7
  <a name="0.3.3"></a>
2
8
  ## [0.3.3](https://github.com/packsaddle/ruby-env_pull_request/compare/v0.3.2...v0.3.3) (2015-09-28)
3
9
 
@@ -0,0 +1,6 @@
1
+ machine:
2
+ ruby:
3
+ version: 2.3.1
4
+ dependencies:
5
+ pre:
6
+ - gem update bundler
@@ -19,13 +19,13 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.files =
21
21
  `git ls-files -z`
22
- .split("\x0")
23
- .reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ .split("\x0")
23
+ .reject { |f| f.match(%r{^(test|spec|features)/}) }
24
24
  spec.bindir = 'exe'
25
25
  spec.executables =
26
26
  spec
27
- .files
28
- .grep(%r{^exe/}) { |f| File.basename(f) }
27
+ .files
28
+ .grep(%r{^exe/}) { |f| File.basename(f) }
29
29
  spec.require_paths = ['lib']
30
30
 
31
31
  spec.add_dependency 'natural_number_string'
File without changes
File without changes
File without changes
File without changes
@@ -27,10 +27,10 @@ module EnvPullRequest
27
27
  #
28
28
  # @yield user defined block
29
29
  # @return [Base] pull request information object
30
- def initialize(&block)
30
+ def initialize
31
31
  @pull_request_id =
32
32
  if block_given?
33
- block.call || fetch_pull_request_id
33
+ yield || fetch_pull_request_id
34
34
  else
35
35
  fetch_pull_request_id
36
36
  end
@@ -46,6 +46,9 @@ module EnvPullRequest
46
46
  #
47
47
  # @see Base#fetch_pull_request_id
48
48
  def restore_env_pull_request
49
+ @original_travis_pull_request ||= nil
50
+ @original_circle_pr_number ||= nil
51
+ @original_ghprb_pull_id ||= nil
49
52
  ENV['TRAVIS_PULL_REQUEST'] = @original_travis_pull_request
50
53
  ENV['CIRCLE_PR_NUMBER'] = @original_circle_pr_number
51
54
  ENV['ghprbPullId'] = @original_ghprb_pull_id
@@ -1,3 +1,3 @@
1
1
  module EnvPullRequest
2
- VERSION = '0.3.3'
2
+ VERSION = '1.0.0'.freeze
3
3
  end
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "devDependencies": {
3
- "conventional-changelog": "0.4.3",
3
+ "conventional-changelog-cli": "^1.1.1",
4
4
  "npm-check-updates": "^2.2.3",
5
5
  "urijs": "^1.16.1"
6
6
  },
7
7
  "scripts": {
8
- "changelog": "conventional-changelog -i changelog.md --overwrite --preset angular --context .conventional-changelog.context.js",
8
+ "changelog": "conventional-changelog -i changelog.md --same-file --preset angular --context .conventional-changelog.context.js",
9
9
  "ncu": "ncu -u"
10
10
  }
11
11
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: env_pull_request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sanemat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-28 00:00:00.000000000 Z
11
+ date: 2016-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: natural_number_string
@@ -86,6 +86,7 @@ files:
86
86
  - bin/console
87
87
  - bin/setup
88
88
  - changelog.md
89
+ - circle.yml
89
90
  - env_pull_request.gemspec
90
91
  - example/Gemfile
91
92
  - example/Gemfile.lock
@@ -116,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
117
  version: '0'
117
118
  requirements: []
118
119
  rubyforge_project:
119
- rubygems_version: 2.4.5
120
+ rubygems_version: 2.5.1
120
121
  signing_key:
121
122
  specification_version: 4
122
123
  summary: Get PULL_REQUEST_ID from environment variables.