cyclone_lariat 1.0.0.rc1 → 1.0.0.rc2

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
  SHA1:
3
- metadata.gz: 31cc88737fffda51fb2ba2f1ef8ea792adcd3d7d
4
- data.tar.gz: 520aef70c935d03db0f7624a253f62ac6dddeaa7
3
+ metadata.gz: 57a9765a6c8e7239c17807d05e70399fccb2268d
4
+ data.tar.gz: e54780308582d37055e6d2444972e775f2ad9927
5
5
  SHA512:
6
- metadata.gz: 062f76a7ef10d61bd94e624e4db72619ace3bf3d7ee05ab0ec7b32ecbca8895afda9dc060390aa0c157e1ae843a6e6bce99e815a965c6fde3e49655e9ceb3709
7
- data.tar.gz: 91adda66efabdd82c60e2e1fb2f1a602a4b3c6f26300c5d3c82ac923466024fee705d5012d5c9cecae671081af0c91cbda52291ef3e896f4d182914f3f125ec1
6
+ metadata.gz: d54bdf09e3414a6d2c477a2bd465750e705ad961d6882d015452b48fef11b09fc24770b938a390a3dc7a91de3e0059a8908728eb22114c7bd330f1556fa7d187
7
+ data.tar.gz: 5bfe88a0227b3bd8016b6a9c46eb007def598f3da4ce872e12f72385de735fd5019c6b0f96fb3d3d0c6e117ea373a1216b74d2f48fbe78bdadcde2480405d954
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [1.0.0.rc2]
8
+ Changed
9
+ - README.md file
10
+ Added
11
+ - require version file, fixed `bundle exec cyclone_lariat -v`
12
+
7
13
  ## [0.4.0]
8
14
  Changed
9
15
  - rename `topic` to `queue` for SQS operations, in fact it changed only in methods `publish_event`, `publish_command`
@@ -19,7 +25,7 @@ Added
19
25
  Added
20
26
  - Added aws_client_od options
21
27
  Changed:
22
- - Renamed all AWS options with prefix _aws
28
+ - Renamed all AWS options with prefix _aws
23
29
 
24
30
  ## [0.3.9] - 2022-10-05 Depricated
25
31
  Added
data/README.md CHANGED
@@ -24,7 +24,7 @@ This gem work in few scenarios:
24
24
  And run in console:
25
25
  ```bash
26
26
  $ bundle install
27
- $ cyclone_lariat install
27
+ $ bundle exec cyclone_lariat install
28
28
  ```
29
29
  </details>
30
30
  <details>
@@ -40,7 +40,7 @@ This gem work in few scenarios:
40
40
  And run in console:
41
41
  ```bash
42
42
  $ bundle install
43
- $ cyclone_lariat install --adapter=active_record
43
+ $ bundle exec cyclone_lariat install --adapter=active_record
44
44
  ```
45
45
  </details>
46
46
 
@@ -344,7 +344,7 @@ class Publisher < CycloneLariat::Publisher
344
344
  def delete_user(mail)
345
345
  sns.publish command('delete_user', data: { mail: mail }), fifo: false
346
346
  end
347
-
347
+
348
348
  def welcome_message(mail, text)
349
349
  sqs.publish command('welcome', data: {mail: mail, txt: text}), fifo: false
350
350
  end
@@ -408,13 +408,13 @@ CycloneLariat::Clients::Sns.new.publish_command(
408
408
  class Publisher < CycloneLariat::Publisher
409
409
  def register_user(first:, last:, mail:)
410
410
  sns.publish command(
411
- 'register_user',
412
- data: {
413
- mail: mail,
411
+ 'register_user',
412
+ data: {
413
+ mail: mail,
414
414
  name: {
415
- first: first,
415
+ first: first,
416
416
  last: last
417
- }
417
+ }
418
418
  }
419
419
  ), fifo: false
420
420
  end
@@ -482,16 +482,16 @@ end
482
482
  Will publish message on queue: `custom_topic_name`
483
483
 
484
484
 
485
- ### FIFO and no FIFO
485
+ ### FIFO and no FIFO
486
486
  The main idea you can read on [AWS Docs](https://aws.amazon.com/blogs/aws/introducing-amazon-sns-fifo-first-in-first-out-pub-sub-messaging/).
487
487
 
488
488
  FIFO message should consist two fields:
489
- - `group_id` - In each topic, the FIFO sequence is defined only within one group.
489
+ - `group_id` - In each topic, the FIFO sequence is defined only within one group.
490
490
  [AWS Docs](https://docs.aws.amazon.com/sns/latest/dg/fifo-message-grouping.html)
491
- - `deduplication_id` - Within the same group, a unique identifier must be defined for each message.
491
+ - `deduplication_id` - Within the same group, a unique identifier must be defined for each message.
492
492
  [AWS Docs](https://docs.aws.amazon.com/sns/latest/dg/fifo-message-dedup.html)
493
-
494
- The unique identifier can definitely be the entire message. In this case, you
493
+
494
+ The unique identifier can definitely be the entire message. In this case, you
495
495
  do not need to pass the deduplication_id parameter. But you must create a queue
496
496
  with the `content_based_deduplication` parameter in migration.
497
497
 
@@ -516,7 +516,7 @@ class Publisher < CycloneLariat::Publisher
516
516
  uuid: uuid,
517
517
  mail: mail
518
518
  },
519
- },
519
+ },
520
520
  deduplication_id: mail,
521
521
  group_id: uuid),
522
522
  fifo: true
@@ -541,7 +541,7 @@ With **cyclone_lariat** you can use migrations that can create, delete, and subs
541
541
  Before using this function, you must complete the **cyclone_lariat** [configuration](#Configuration).
542
542
 
543
543
  ```bash
544
- $ cyclone_lariat generate migration user_created
544
+ $ bundle exec cyclone_lariat generate migration user_created
545
545
  ```
546
546
 
547
547
  This command should create a migration file, let's edit it.
@@ -561,7 +561,7 @@ class UserCreatedQueue < CycloneLariat::Migration
561
561
  end
562
562
  end
563
563
  ```
564
- The `content_based_dedupplication` parameter can only be specified for FIFO resources. When true, the whole message is
564
+ The `content_based_dedupplication` parameter can only be specified for FIFO resources. When true, the whole message is
565
565
  used as the unique message identifier instead of the `deduplication_id` key.
566
566
 
567
567
  To apply migration use:
@@ -720,8 +720,8 @@ We recommend locate migration on:
720
720
  ## Console tasks
721
721
 
722
722
  ```bash
723
- $ cyclone_lariat install - install cyclone_lariat
724
- $ cyclone_lariat generate migration - generate new migration
723
+ $ bundle exec cyclone_lariat install - install cyclone_lariat
724
+ $ bundle exec cyclone_lariat generate migration - generate new migration
725
725
 
726
726
  $ rake cyclone_lariat:list:queues # List all queues
727
727
  $ rake cyclone_lariat:list:subscriptions # List all subscriptions
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CycloneLariat
4
- VERSION = '1.0.0.rc1'
4
+ VERSION = '1.0.0.rc2'
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'cyclone_lariat/version'
3
4
  require 'cyclone_lariat/core'
4
5
  require 'cyclone_lariat/middleware'
5
6
  require 'cyclone_lariat/migration'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyclone_lariat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kudrin