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 +4 -4
- data/.conventional-changelog.context.js +0 -0
- data/.gitignore +0 -0
- data/.rubocop.yml +0 -0
- data/.travis.yml +3 -2
- data/CODE_OF_CONDUCT.md +0 -0
- data/CONTRIBUTING.md +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +11 -0
- data/Rakefile +2 -2
- data/changelog.md +6 -0
- data/circle.yml +6 -0
- data/env_pull_request.gemspec +4 -4
- data/example/Gemfile +0 -0
- data/example/Gemfile.lock +0 -0
- data/example/example.rb +0 -0
- data/lib/env_pull_request.rb +0 -0
- data/lib/env_pull_request/base.rb +2 -2
- data/lib/env_pull_request/test_helper.rb +3 -0
- data/lib/env_pull_request/version.rb +1 -1
- data/package.json +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7c3aef5a380716e58f3a2d4085f77d94a4652b4
|
|
4
|
+
data.tar.gz: c96a1d13e7f307f3f2b705d2ffeefc325f07fbe7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d428597a78994912368a45a4faa3d03fb719cab59eb84d71d008a45dc1d574e65e76b2c8807c8469a2da3b65d1f4395148282df992bdca4ab68961444b3993e1
|
|
7
|
+
data.tar.gz: 48b9bcc33f93b94942da1109ea74daae5de78f78183fef63bf0f12958c7a557db06fe4a46f27fb6ce188643703318a0e5f9177acf2673e18617bc93eabac178d
|
|
File without changes
|
data/.gitignore
CHANGED
|
File without changes
|
data/.rubocop.yml
CHANGED
|
File without changes
|
data/.travis.yml
CHANGED
data/CODE_OF_CONDUCT.md
CHANGED
|
File without changes
|
data/CONTRIBUTING.md
CHANGED
|
File without changes
|
data/Gemfile
CHANGED
|
File without changes
|
data/LICENSE.txt
CHANGED
|
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
|
data/changelog.md
CHANGED
|
@@ -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
|
|
data/circle.yml
ADDED
data/env_pull_request.gemspec
CHANGED
|
@@ -19,13 +19,13 @@ Gem::Specification.new do |spec|
|
|
|
19
19
|
|
|
20
20
|
spec.files =
|
|
21
21
|
`git ls-files -z`
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
28
|
-
|
|
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'
|
data/example/Gemfile
CHANGED
|
File without changes
|
data/example/Gemfile.lock
CHANGED
|
File without changes
|
data/example/example.rb
CHANGED
|
File without changes
|
data/lib/env_pull_request.rb
CHANGED
|
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
|
|
30
|
+
def initialize
|
|
31
31
|
@pull_request_id =
|
|
32
32
|
if block_given?
|
|
33
|
-
|
|
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
|
data/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"devDependencies": {
|
|
3
|
-
"conventional-changelog": "
|
|
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 --
|
|
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.
|
|
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:
|
|
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.
|
|
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.
|