gitlab_mr_release 0.3.0 → 0.3.1

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
  SHA1:
3
- metadata.gz: 00d31b1babd4f48b1e7b557985dc02f6adbeb563
4
- data.tar.gz: 68d69687663be7d891eb54efd1de5fd9d51afd75
3
+ metadata.gz: f8af77f14d82cbb22929a4c96da8887e59a07eca
4
+ data.tar.gz: 41a2cd7b9bcf208343d35f864e288e50116b76d3
5
5
  SHA512:
6
- metadata.gz: 93af3007cd402a4e12cfba042a791b478cec36b4ab233d0411ca2b8d4592e5db144a3a1d3af0b5fb7257eaf6528aa5b8ad9bc7c76bff1674509bc5347d86f0f5
7
- data.tar.gz: 898863fb4e1f56df0c04de62f1f224d2775d107fa15f22d318747d77501104ce5e7fc5dbd3958c5a34093fc969d0c1b0bd903cc2e9b40b2d7b41cf329aad075e
6
+ metadata.gz: eafa6717d18a75deb34281461dc25dc81068ceeadc835aaa1441f32f9fee85559d23594d83bfd446fd42347ea5a36b2909b4d80fcdf51dae68c8219a37923016
7
+ data.tar.gz: fb6fef5ed4ab15835598e84840477016c230a811acf4c845f405e358bd40dd9a31588fba040640d48096d491f8fd80322d3e653430b836aa07695b4f9180f9be
@@ -3,6 +3,7 @@ rvm:
3
3
  - 2.1
4
4
  - 2.2.5
5
5
  - 2.3.1
6
+ - 2.4.1
6
7
  - ruby-head
7
8
  cache: bundler
8
9
  sudo: false
@@ -12,6 +13,7 @@ before_script:
12
13
  - export CI=true
13
14
  script:
14
15
  - bundle exec rspec
16
+ - bundle exec codeclimate-test-reporter
15
17
  branches:
16
18
  only:
17
19
  - master
@@ -1,5 +1,11 @@
1
1
  ## Unreleased
2
- [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v0.3.0...master)
2
+ [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v0.3.1...master)
3
+
4
+ ## v0.3.1
5
+ [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v0.3.0...v0.3.1)
6
+
7
+ * Fixed. can not call GitLab API using gitlab v4+
8
+ * https://github.com/sue445/gitlab_mr_release/pull/18
3
9
 
4
10
  ## v0.3.0
5
11
  [full changelog](http://github.com/sue445/gitlab_mr_release/compare/v0.2.0...v0.3.0)
@@ -20,15 +20,16 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_dependency "dotenv"
23
- spec.add_dependency "gitlab"
23
+ spec.add_dependency "gitlab", ">= 4.0.0"
24
24
  spec.add_dependency "thor"
25
25
 
26
26
  spec.add_development_dependency "activesupport"
27
27
  spec.add_development_dependency "bundler", "~> 1.10"
28
28
  spec.add_development_dependency "coveralls"
29
- spec.add_development_dependency "codeclimate-test-reporter"
29
+ spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
30
30
  spec.add_development_dependency "pry-byebug"
31
31
  spec.add_development_dependency "rake", "~> 10.0"
32
32
  spec.add_development_dependency "rspec"
33
- spec.add_development_dependency "webmock"
33
+ spec.add_development_dependency "simplecov"
34
+ spec.add_development_dependency "webmock", ">= 3.0.0"
34
35
  end
@@ -14,7 +14,7 @@ module GitlabMrRelease
14
14
  end
15
15
 
16
16
  def web_url
17
- @web_url ||= Gitlab.project(escaped_project_name).web_url
17
+ @web_url ||= Gitlab.project(@project_name).web_url
18
18
  end
19
19
 
20
20
  # find merge requests between from...to
@@ -22,7 +22,7 @@ module GitlabMrRelease
22
22
  # @param to [String]
23
23
  # @return [Array<Integer>] MergeRequest iids
24
24
  def merge_request_iids_between(from, to)
25
- commits = Gitlab.repo_compare(escaped_project_name, from, to).commits
25
+ commits = Gitlab.repo_compare(@project_name, from, to).commits
26
26
  commits.map do |commit|
27
27
  commit["message"] =~ /^Merge branch .*See merge request \!(\d+)$/m
28
28
  $1
@@ -31,7 +31,7 @@ module GitlabMrRelease
31
31
 
32
32
  # find MergeRequest with iid
33
33
  def merge_request(iid)
34
- mr = Gitlab.merge_requests(escaped_project_name, iid: iid).first
34
+ mr = Gitlab.merge_requests(@project_name, iid: iid).first
35
35
  assert_merge_request_iid(mr, iid) if mr
36
36
  mr
37
37
  end
@@ -49,15 +49,11 @@ module GitlabMrRelease
49
49
  description: generate_description(iids, template),
50
50
  labels: labels,
51
51
  }
52
- Gitlab.create_merge_request(escaped_project_name, title, options)
52
+ Gitlab.create_merge_request(@project_name, title, options)
53
53
  end
54
54
 
55
55
  private
56
56
 
57
- def escaped_project_name
58
- CGI.escape(@project_name)
59
- end
60
-
61
57
  def assert_merge_request_iid(mr, iid)
62
58
  # NOTE: MR is found, but server is old GitLab?
63
59
  raise "MergeRequest iid does not match (expected #{iid}, but #{mr.iid})" unless iid == mr.iid
@@ -1,3 +1,3 @@
1
1
  module GitlabMrRelease
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_mr_release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-17 00:00:00.000000000 Z
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: '0'
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: '0'
40
+ version: 4.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: codeclimate-test-reporter
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 1.0.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 1.0.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: pry-byebug
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -151,7 +151,7 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
- name: webmock
154
+ name: simplecov
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - ">="
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: webmock
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: 3.0.0
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 3.0.0
167
181
  description: Release MergeRequest generator for GitLab
168
182
  email:
169
183
  - sue445@sue445.net
@@ -213,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
227
  version: '0'
214
228
  requirements: []
215
229
  rubyforge_project:
216
- rubygems_version: 2.5.1
230
+ rubygems_version: 2.6.11
217
231
  signing_key:
218
232
  specification_version: 4
219
233
  summary: Release MergeRequest generator for GitLab