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: 8e5b503dd2ed090f4e55888e0ff5f2d7cfa8379b042a7ad0a93f83753e49e05f
4
- data.tar.gz: 9a3c275c8fcb7496c0558f836f4b59762dabdee0c563e03821af18f0f110be79
3
+ metadata.gz: f9d8da8079907773b8e06aa718f9ea03f5e04abf2cad17e0c3481fa63c9a983d
4
+ data.tar.gz: 26fd885c40272d4fe5eba5bbd165a861deb2433cce413bc74d9803d51a341aef
5
5
  SHA512:
6
- metadata.gz: 20c4e9147ffc279dc29f0037846e18cfab6604caa5d1792f6fe450247ad31335c5d528b7b7e000014b82e7870116089407756faa352ee0ecd0e1473660cd1166
7
- data.tar.gz: 4000c73ce5970b91fc125f24fe3f83abec6b4ddf0cfc18569b0ace547cc849fe9bdf56d3efb33dc1e3f235cf70ef2c5666f012d56ab922aa26a8fd839f608e06
6
+ metadata.gz: 42e35c530c6c7514b8bbb5dfa4891a4883acd05c667f7a08c19df44dd7013fea73c553975a2c78ab10c2ac76fa5a3959e706ab44dca58993c228238f2fa16977
7
+ data.tar.gz: 9908a1e55020de6eb1c310a84c4ec5473a28d5fde7085b925d92cc2be8d6546d2df0216688d068560ae6f2d995b6680c866a7be76997e75413366d793a945d45
data/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Capistrano::Redmine::Deployment - CHANGELOG
2
2
 
3
+ ## [1.2.2] - 2026-07-11
4
+ * **[fix]** fetch deployments from the deployments index endpoint
5
+
3
6
  ## [1.2.1] - 2026-07-11
4
7
  **[add]** `redmine:verify` task to validate deployment config using `deploy.rb` settings
5
8
 
@@ -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 = deploy_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 configured
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+
@@ -11,7 +11,7 @@ module Capistrano
11
11
  module VERSION
12
12
  MAJOR = 1
13
13
  MINOR = 2
14
- TINY = 1
14
+ TINY = 2
15
15
  PRE = nil
16
16
 
17
17
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-redmine-deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Gonsior