gitlab_awesome_release 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 +4 -4
- data/.gitlab-ci.yml +2 -30
- data/CHANGELOG.md +12 -1
- data/gitlab_awesome_release.gemspec +1 -1
- data/lib/gitlab_awesome_release/project.rb +5 -9
- data/lib/gitlab_awesome_release/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 814f4bfd082e2e584f22aaec1ce94c2c74a7ed1a
|
4
|
+
data.tar.gz: 014de5f3e5802946ee6664ae3949850609f99ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29956f86993eb20147b11e0eb5b90ba5cced46fd6a9c9604ca7d6876371f209692442881196ca168e67865a6004f278d429781221487e622868ab9aaf2e044fd
|
7
|
+
data.tar.gz: 695570a8bb6a9847a9464e1aecf8e8ed7773615f6ebddaf62b095174ac532234755d35814b7307c3f0776ae4d25d88dfb4a624eed2c591b2b9a5aedb6d64bd13
|
data/.gitlab-ci.yml
CHANGED
@@ -27,15 +27,6 @@ ruby2.1:rspec:
|
|
27
27
|
script:
|
28
28
|
- ./gitlab-ci/rspec.sh
|
29
29
|
|
30
|
-
ruby2.1:rubocop:
|
31
|
-
<<: *job_definition
|
32
|
-
image: drecom/centos-ruby:2.1.10
|
33
|
-
|
34
|
-
script:
|
35
|
-
- ./gitlab-ci/rubocop.sh
|
36
|
-
|
37
|
-
allow_failure: true
|
38
|
-
|
39
30
|
ruby2.2:rspec:
|
40
31
|
<<: *job_definition
|
41
32
|
image: drecom/centos-ruby:2.2.6
|
@@ -43,16 +34,6 @@ ruby2.2:rspec:
|
|
43
34
|
script:
|
44
35
|
- ./gitlab-ci/rspec.sh
|
45
36
|
|
46
|
-
ruby2.2:rubocop:
|
47
|
-
<<: *job_definition
|
48
|
-
|
49
|
-
image: drecom/centos-ruby:2.2.6
|
50
|
-
|
51
|
-
script:
|
52
|
-
- ./gitlab-ci/rubocop.sh
|
53
|
-
|
54
|
-
allow_failure: true
|
55
|
-
|
56
37
|
ruby2.3:rspec:
|
57
38
|
<<: *job_definition
|
58
39
|
image: drecom/centos-ruby:2.3.3
|
@@ -60,15 +41,6 @@ ruby2.3:rspec:
|
|
60
41
|
script:
|
61
42
|
- ./gitlab-ci/rspec.sh
|
62
43
|
|
63
|
-
ruby2.3:rubocop:
|
64
|
-
<<: *job_definition
|
65
|
-
image: drecom/centos-ruby:2.3.3
|
66
|
-
|
67
|
-
script:
|
68
|
-
- ./gitlab-ci/rubocop.sh
|
69
|
-
|
70
|
-
allow_failure: true
|
71
|
-
|
72
44
|
ruby2.4:rspec:
|
73
45
|
<<: *job_definition
|
74
46
|
image: drecom/centos-ruby:2.4.0
|
@@ -76,9 +48,9 @@ ruby2.4:rspec:
|
|
76
48
|
script:
|
77
49
|
- ./gitlab-ci/rspec.sh
|
78
50
|
|
79
|
-
|
51
|
+
rubocop:
|
80
52
|
<<: *job_definition
|
81
|
-
image: drecom/centos-ruby
|
53
|
+
image: drecom/centos-ruby
|
82
54
|
|
83
55
|
script:
|
84
56
|
- ./gitlab-ci/rubocop.sh
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,18 @@
|
|
1
1
|
## Unreleased
|
2
|
-
[full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v0.1.
|
2
|
+
[full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v0.1.1...HEAD)
|
3
3
|
|
4
4
|
|
5
|
+
## v0.1.1
|
6
|
+
[full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v0.1.0...v0.1.1)
|
7
|
+
|
8
|
+
* Use ci cache [!19](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/19) *@sue445*
|
9
|
+
* Tweak gitlab-ci [!20](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/20) *@sue445*
|
10
|
+
* Add rubocop [!21](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/21) *@sue445*
|
11
|
+
* Use ruby 2.3.1 [!22](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/22) *@sue445*
|
12
|
+
* CI against ruby 2.1, 2.2, 2.3 and 2.4 [!23](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/23) *@sue445*
|
13
|
+
* Remove activesupport from dependency :put_litter_in_its_place: [!24](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/24) *@sue445*
|
14
|
+
* update onkcop [!25](https://gitlab.com/sue445/gitlab_awesome_release/merge_requests/25) *@sue445*
|
15
|
+
|
5
16
|
## v0.1.0
|
6
17
|
[full changelog](https://gitlab.com/sue445/gitlab_awesome_release/compare/v0.1.0.beta8...v0.1.0)
|
7
18
|
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.required_ruby_version = ">= 2.1.0"
|
23
23
|
|
24
24
|
spec.add_dependency "dotenv"
|
25
|
-
spec.add_dependency "gitlab"
|
25
|
+
spec.add_dependency "gitlab", ">= 4.0.0"
|
26
26
|
spec.add_dependency "thor"
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler", "~> 1.10"
|
@@ -22,7 +22,7 @@ module GitlabAwesomeRelease
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def web_url
|
25
|
-
@web_url ||= Gitlab.project(
|
25
|
+
@web_url ||= Gitlab.project(@project_name).web_url
|
26
26
|
end
|
27
27
|
|
28
28
|
# all tag names order by author date
|
@@ -33,7 +33,7 @@ module GitlabAwesomeRelease
|
|
33
33
|
@logger.info "fetch git tags"
|
34
34
|
repo_tags =
|
35
35
|
with_paging do |params|
|
36
|
-
Gitlab.repo_tags(
|
36
|
+
Gitlab.repo_tags(@project_name, params)
|
37
37
|
end
|
38
38
|
@all_tag_names = repo_tags.sort_by { |tag| tag.commit.authored_date }.map(&:name)
|
39
39
|
end
|
@@ -96,7 +96,7 @@ module GitlabAwesomeRelease
|
|
96
96
|
# @param to [String]
|
97
97
|
# @return [Array<Integer>] MergeRequest iids
|
98
98
|
def merge_request_iids_between(from, to)
|
99
|
-
commits = Gitlab.repo_compare(
|
99
|
+
commits = Gitlab.repo_compare(@project_name, from, to).commits
|
100
100
|
|
101
101
|
merge_request_iids =
|
102
102
|
commits.map do |commit|
|
@@ -119,7 +119,7 @@ module GitlabAwesomeRelease
|
|
119
119
|
|
120
120
|
# find MergeRequest with iid
|
121
121
|
def merge_request(iid)
|
122
|
-
mr = Gitlab.merge_requests(
|
122
|
+
mr = Gitlab.merge_requests(@project_name, iid: iid).first
|
123
123
|
assert_merge_request_iid(mr, iid) if mr
|
124
124
|
mr
|
125
125
|
end
|
@@ -128,16 +128,12 @@ module GitlabAwesomeRelease
|
|
128
128
|
labels = mr.labels
|
129
129
|
labels << label
|
130
130
|
|
131
|
-
Gitlab.update_merge_request(
|
131
|
+
Gitlab.update_merge_request(@project_name, mr.id, labels: labels.uniq.join(","))
|
132
132
|
@logger.info "Add [#{label}] to !#{mr.iid} #{mr.title}"
|
133
133
|
end
|
134
134
|
|
135
135
|
private
|
136
136
|
|
137
|
-
def escaped_project_name
|
138
|
-
CGI.escape(@project_name)
|
139
|
-
end
|
140
|
-
|
141
137
|
# @yield [params] paging block
|
142
138
|
# @yieldparam params [Hash] paging params for GitLab API (page: current page, per_page)
|
143
139
|
# @yieldreturn response in all pages
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab_awesome_release
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 4.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 4.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|