capistrano-redmine-deployment 1.2.1 → 1.2.2
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f9d8da8079907773b8e06aa718f9ea03f5e04abf2cad17e0c3481fa63c9a983d
|
|
4
|
+
data.tar.gz: 26fd885c40272d4fe5eba5bbd165a861deb2433cce413bc74d9803d51a341aef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42e35c530c6c7514b8bbb5dfa4891a4883acd05c667f7a08c19df44dd7013fea73c553975a2c78ab10c2ac76fa5a3959e706ab44dca58993c228238f2fa16977
|
|
7
|
+
data.tar.gz: 9908a1e55020de6eb1c310a84c4ec5473a28d5fde7085b925d92cc2be8d6546d2df0216688d068560ae6f2d995b6680c866a7be76997e75413366d793a945d45
|
data/docs/CHANGELOG.md
CHANGED
|
@@ -167,7 +167,7 @@ module Capistrano
|
|
|
167
167
|
# @return [Hash, String] the parsed JSON response, or the raw body when
|
|
168
168
|
# it is not valid JSON.
|
|
169
169
|
def fetch_deployments
|
|
170
|
-
uri =
|
|
170
|
+
uri = deployments_uri
|
|
171
171
|
# only a single entry is needed to verify access
|
|
172
172
|
uri.query = 'limit=1'
|
|
173
173
|
|
|
@@ -197,12 +197,18 @@ module Capistrano
|
|
|
197
197
|
end
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
# @return [URI::Generic] the deploy endpoint URI for the
|
|
201
|
-
# host / project / repository.
|
|
200
|
+
# @return [URI::Generic] the deploy (POST) endpoint URI for the
|
|
201
|
+
# configured host / project / repository.
|
|
202
202
|
def deploy_uri
|
|
203
203
|
URI("#{config.host}/projects/#{config.project}/deploy/#{config.repository}.json")
|
|
204
204
|
end
|
|
205
205
|
|
|
206
|
+
# @return [URI::Generic] the deployments index (GET) endpoint URI for
|
|
207
|
+
# the configured host / project.
|
|
208
|
+
def deployments_uri
|
|
209
|
+
URI("#{config.host}/projects/#{config.project}/deployments.json")
|
|
210
|
+
end
|
|
211
|
+
|
|
206
212
|
# Performs an HTTP request, applying SSL and host-verification settings.
|
|
207
213
|
#
|
|
208
214
|
# SSL is enabled when the URI scheme is +https+. A configured +ca_file+
|