docker-swarm 0.5.1 → 0.5.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: 105ef84c13fc75bc0d3b41a9da37f7d5ac5f5698690695ef926fbe664ec28f69
4
- data.tar.gz: 6df837db29f9073f5e2de7fe8d5b995c49980fb61117bcf8b21530d53be59ebc
3
+ metadata.gz: 563629df7e2265dea2e8b6743d8811e684ac7ceaafb174c1946380ddccc48f4c
4
+ data.tar.gz: 7600cec6cb458c4ce1d80471db893bf51d18220ad863f43ace64e57d4a51e3dc
5
5
  SHA512:
6
- metadata.gz: e95adaafd40842adc5da3615752e311448b2220f6d1a39aa919e10ba90ee8f984adb6cdbb4acb54f2af96a7e4effbcb42ba32009f9b3ed3e1a0f2fd3145c6bf1
7
- data.tar.gz: 0e05ecde75047867f481cfc0bb878f5d93c5fe97704f2d59e33d955287bdaed6acd5c1e1b877d9926256a7804679492e834d9e8e5831b19641dcfb514d3d930e
6
+ metadata.gz: 96368b74aa6c89662b0f6a383d88aeac1e33f75750f444b5733bf3d10a548e79fd70f1540a8ae221a8372a97dadbc89c72ec026d1d32a9b2328fa1c9e0193902
7
+ data.tar.gz: cdaae6e0385d994d730b76e584ced0e149fbe011ee011c2cd6aad87f908e999346ef215d1920112beaed475c349a68a4a403ec4abf0960bc0424aa1f4c5e235a
@@ -6,19 +6,19 @@ module DockerSwarm
6
6
  extend ActiveSupport::Concern
7
7
 
8
8
  def inspect
9
- inspection = if respond_to?(:ID) && ID.present?
10
- "ID: #{ID}"
9
+ inspection = if respond_to?(:ID) && send(:ID).present?
10
+ "ID: #{send(:ID)}"
11
11
  else
12
12
  "not persisted"
13
13
  end
14
14
 
15
15
  # Intentar añadir el nombre si existe
16
- name_attr = attributes["Name"] || (respond_to?(:Name) ? Name : nil)
16
+ name_attr = attributes["Name"] || (respond_to?(:Name) ? send(:Name) : nil)
17
17
  inspection += ", Name: #{name_attr}" if name_attr.present?
18
18
 
19
19
  # Intentar añadir la imagen para servicios/contenedores
20
- spec = attributes["Spec"] || (respond_to?(:Spec) ? Spec : nil)
21
- image = spec&.dig("TaskTemplate", "ContainerSpec", "Image") || attributes["Image"] || (respond_to?(:Image) ? Image : nil)
20
+ spec = attributes["Spec"] || (respond_to?(:Spec) ? send(:Spec) : nil)
21
+ image = spec&.dig("TaskTemplate", "ContainerSpec", "Image") || attributes["Image"] || (respond_to?(:Image) ? send(:Image) : nil)
22
22
  inspection += ", Image: #{image}" if image.present?
23
23
 
24
24
  "#<#{self.class.name} #{inspection}>"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DockerSwarm
4
- VERSION = "0.5.1"
4
+ VERSION = "0.5.2"
5
5
  end
data/skill/SKILL.md CHANGED
@@ -6,7 +6,7 @@ Skill de conocimiento completo sobre DockerSwarm. Consultame para cualquier preg
6
6
 
7
7
  **Base** — Clase ORM base que hereda de ActiveModel::Model. Provee accessors dinámicos PascalCase, `find`, `all`, `where`, `reload`, `payload_for_docker`. Todos los modelos heredan de ella.
8
8
 
9
- **Concern** — Mixin ActiveSupport::Concern que agrega comportamiento CRUD a un modelo: Creatable (POST), Updatable (POST con Version.Index), Deletable (DELETE), Loggable (logs streaming), Inspectable (#inspect legible).
9
+ **Concern** — Mixin ActiveSupport::Concern que agrega comportamiento CRUD a un modelo: Creatable (POST), Updatable (POST con Version.Index), Deletable (DELETE), Loggable (logs streaming), Inspectable (#inspect legible). **Nota:** Los atributos dinámicos en Inspectable deben invocarse con `send(:ID)` para evitar `NameError` por interpretación como constante.
10
10
 
11
11
  **Middleware** — Capa Excon que procesa request/response: RequestEncoder (serialización body), ResponseJSONParser (parsing + indifferent access), ErrorHandler (status HTTP → excepción).
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-swarm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-04-06 00:00:00.000000000 Z
11
+ date: 2026-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport