cqs 0.1.0 → 0.2.1

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: 25ead5f863f480be7c4142451b814639bdc679bb4b12d0403299405d61d43117
4
- data.tar.gz: e523eaf75e002bf13514258722a6d9b69929792edb5cfd06bb170c1875a46f2c
3
+ metadata.gz: 1b5557be64ddca321d81796a4f00f56c8d847d2b5c06be364512d20a2ef18de4
4
+ data.tar.gz: 0763745d8724c54a5b7c4cd3457b3f50762daa600b1b0bf8583898d9d5fd9660
5
5
  SHA512:
6
- metadata.gz: 6eb876b0f9a852087a7f02aef4d4cacff33fb42b2c28844c48dbbb6fffc2f3ba9636c27564fb94857db295438aec5e6fb91bb7640f3209aaddc4e1f2f63ba79c
7
- data.tar.gz: 85ce856f0e5ccd0bf8c62398b30070e08ec97f9f33dcbd30945b0e260f9b32345530fd59aead7b4d6a6afc8c2299f2b40c0a491dbe4d007b3c5728ef888d3578
6
+ metadata.gz: f1b815d30f2eea1ce796837e04c66c0e5afc038b70e5cc03e88e92322f9c40072b5e3d202fbdb838aadc8b14445dd2045e4ac1eabe67e8204257a0a87bf1e2bc
7
+ data.tar.gz: e5e2925d6d281fa22840172d8c7ba86666900e6aaee0c3b5163e22dc87e6011717bb50bb7a7026ed5a0e1cb45ad81806add233352695a170ec398a4ef42e93c1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2024-12-22
4
+
5
+ - Changes gem description
6
+
3
7
  ## [0.1.0] - 2024-11-29
4
8
 
5
9
  - Initial release
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # CQS - Command Query Separation for Ruby (and Rails)
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/cqs.svg)](https://badge.fury.io/rb/cqs)
4
+
3
5
  ⚠️ This gem (and readme) are still **Work In Progress** ⚠️
4
6
 
5
7
  Unlike [CQRS](https://martinfowler.com/bliki/CQRS.html), this gem tries to give a framework that allows to separate _Commands_ from _Queries_ in your [Ruby](https://www.ruby-lang.org) programs.
@@ -138,7 +140,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
138
140
 
139
141
  ## Contributing
140
142
 
141
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cqs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/cqs/blob/main/CODE_OF_CONDUCT.md).
143
+ Bug reports and pull requests are welcome on GitHub at https://github.com/OurWeeSaas/cqs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/OurWeeSaas/cqs?tab=coc-ov-file).
142
144
 
143
145
  ## License
144
146
 
@@ -146,4 +148,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
146
148
 
147
149
  ## Code of Conduct
148
150
 
149
- Everyone interacting in the CQS project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/cqs/blob/main/CODE_OF_CONDUCT.md).
151
+ Everyone interacting in the CQS project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/OurWeeSaas/cqs?tab=coc-ov-file).
data/lib/cqs/command.rb CHANGED
@@ -14,6 +14,10 @@ module Command
14
14
  new(subject).execute
15
15
  end
16
16
  end
17
+
18
+ def execute
19
+ new(nil).execute
20
+ end
17
21
  end
18
22
 
19
23
  def execute
data/lib/cqs/query.rb CHANGED
@@ -14,6 +14,10 @@ module Query
14
14
  new(subject).answer
15
15
  end
16
16
  end
17
+
18
+ def answer
19
+ new(nil).answer
20
+ end
17
21
  end
18
22
 
19
23
  def answer
data/lib/cqs/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cqs
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cqs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrique Comba Riepenhausen
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2024-12-22 00:00:00.000000000 Z
10
+ date: 2025-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: railties
@@ -85,5 +85,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements: []
86
86
  rubygems_version: 3.6.0
87
87
  specification_version: 4
88
- summary: Command Query Segregation simplified for ruby (and rails)
88
+ summary: Command Query Separation simplified for ruby (and rails)
89
89
  test_files: []