dependabot-core 0.86.19 → 0.86.20

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: 6e7da9e8f60558ab04eb91b6165116d63d09ea25a728266b37a55bb76bd18f8e
4
- data.tar.gz: 6d190e57fe9bafeda84f348050b2b8419fa1e97954ca502706ff19c927d06c5d
3
+ metadata.gz: 016bb8198276c8f6e2c38add7d6354b0ad56bcf9d19ec6831176a85bbc5c860c
4
+ data.tar.gz: bfae98443d8067bc797446b47a668e03b51632893111aaa21b56ff8eb67d28e9
5
5
  SHA512:
6
- metadata.gz: 9315e59ad69ba147d6dc343c652dd54b21ccd00347b3aa385c38b9d36eeddf717a3faf800ee7a0a8ff8b4fe3176d070cc364dd1c298277e2bfcca0bcef039ed9
7
- data.tar.gz: 2ccee77f7135e92436ce684607c5474acd742a43f255812c46683d12b72546b527a658d2365854225f277ebfc8dcb0405c1c547c0ad5e065e8d00f8fe5fb539e
6
+ metadata.gz: b9b75b2e238e76122e00262df80d3b9132dc39a612592970fd7ded948cdb81c5819c25d94cda0a44993e2dc5a70c1e02e8cbc6fad86a9574dce82c4f9bbdfc04
7
+ data.tar.gz: 173359802fa99c744b9730ca68c3dcaaa45aa8b180dfc8a6fae0aa831a2a170a859f622628480ebcc43b5c5c90b57875c3f0f8a0b6da47bf347c829b68f42175
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.86.20, 31 December 2018
2
+
3
+ - Update GitLab submodules
4
+
1
5
  ## v0.86.19, 31 December 2018
2
6
 
3
7
  - Patch Rubygems requirement equality
@@ -82,8 +82,10 @@ module Dependabot
82
82
  end
83
83
 
84
84
  def create_commit
85
- # TODO: Handle submodule updates on GitLab
86
- # (see https://gitlab.com/gitlab-org/gitlab-ce/issues/41213)
85
+ if files.count == 1 && files.first.type == "submodule"
86
+ return create_submodule_update_commit
87
+ end
88
+
87
89
  actions = files.map do |file|
88
90
  {
89
91
  action: "update",
@@ -100,6 +102,18 @@ module Dependabot
100
102
  )
101
103
  end
102
104
 
105
+ def create_submodule_update_commit
106
+ file = files.first
107
+
108
+ gitlab_client_for_source.edit_submodule(
109
+ source.repo,
110
+ file.path.gsub(%r{^/}, ""),
111
+ branch: branch_name,
112
+ commit_sha: file.content,
113
+ commit_message: commit_message
114
+ )
115
+ end
116
+
103
117
  def create_merge_request
104
118
  gitlab_client_for_source.create_merge_request(
105
119
  source.repo,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dependabot
4
- VERSION = "0.86.19"
4
+ VERSION = "0.86.20"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.86.19
4
+ version: 0.86.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '4.1'
81
+ version: '4.8'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '4.1'
88
+ version: '4.8'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: gpgme
91
91
  requirement: !ruby/object:Gem::Requirement