action_subscriber 5.2.4 → 5.3.1

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
  SHA256:
3
- metadata.gz: 75412f105d4ea0b12ab1edbd9fa3df950cf3e147e86fa21b242aff564fabc466
4
- data.tar.gz: 5207dc013f9158c653c33e686e0109e4998af3b438c637c2ceecae61d470a6f4
3
+ metadata.gz: e62303b6ad42e3f52114354bf21dbf69803e987200224c2dc19dfa74afc10825
4
+ data.tar.gz: 2379f2baafb8f997d94c0306dc22d7d81c3c10bda6607f9bcf1a7a42e22923a5
5
5
  SHA512:
6
- metadata.gz: abecac37fca82cc001dc8f227591a48ea8018006e69a1be3e15f3f9231f7387294ee7060b933a516c990a171b66550d74276f08e987e813d4bb828583645fa61
7
- data.tar.gz: af0e6d92683738dcc00f52c8edfd78fddd916b05f822eb94708573ab722f6b41bb554ece3fd4bd2a60b2f678183f574a1f3985dc96094c706d5e616534918c8f
6
+ metadata.gz: 48237bba818e42e505b90d5fb8fcb7d287d88824789c3ba0fc6b2e9b3da763c93223a0a3ef90bdbdfb66ae63cb6ad295bdaccf8d452ea72c6c016ac146d81b1d
7
+ data.tar.gz: 076ae5973b5b7f524456df92f655018bc189f663a4f7c9ce8014e784a7669bf538bfdf35807153a2a0680a154e441c8b697e8e7dc491a128e305cb3041b056b5
@@ -0,0 +1,61 @@
1
+ # Inspired by: http://mikebian.co/running-tests-against-multiple-ruby-versions-using-circleci/
2
+
3
+ version: 2.1
4
+
5
+ orbs:
6
+ ruby: circleci/ruby@1.1
7
+
8
+
9
+ # If you want to work on `action_subscriber` you will need to have a rabbitmq instance running locally on port 5672 with a management plugin enabled on port 15672. Usually the easiest way to accomplish this is to use docker and run the command:
10
+
11
+ # ```
12
+
13
+ jobs:
14
+ test:
15
+ parallelism: 1
16
+ parameters:
17
+ ruby-image:
18
+ type: string
19
+ docker:
20
+ - image: << parameters.ruby-image >>
21
+ - image: rabbitmq:3.6.6-management
22
+
23
+ steps:
24
+ - checkout
25
+ - run:
26
+ name: install dockerize
27
+ command: wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && sudo tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz && rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
28
+ environment:
29
+ DOCKERIZE_VERSION: v0.3.0
30
+ # - run:
31
+ # name: Wait for rabbitmq
32
+ # command: dockerize -wait tcp://localhost:5672 -timeout 1m
33
+ - run:
34
+ name: Install bundler
35
+ command: gem install bundler
36
+ - run:
37
+ name: Which bundler?
38
+ command: bundle -v
39
+ - run:
40
+ name: bundle install
41
+ command: bundle install
42
+ - run:
43
+ name: rspec
44
+ command: bundle exec rspec
45
+
46
+ # strangely, there seems to be very little documentation about exactly how martix builds work.
47
+ # By defining a param inside your job definition, Circle CI will automatically spawn a job for
48
+ # unique param value passed via `matrix`. Neat!
49
+ # https://circleci.com/blog/circleci-matrix-jobs/
50
+ workflows:
51
+ build_and_test:
52
+ jobs:
53
+ - test:
54
+ matrix:
55
+ parameters:
56
+ ruby-image:
57
+ - circleci/ruby:2.5
58
+ - circleci/ruby:2.6
59
+ - circleci/ruby:2.7
60
+ - circleci/jruby:9.2
61
+ - circleci/jruby:9.3
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'action_subscriber/version'
4
+ require "action_subscriber/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "action_subscriber"
@@ -18,17 +18,18 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'activesupport', '>= 3.2'
21
+ spec.add_dependency "activesupport", ">= 3.2"
22
22
 
23
- if ENV['PLATFORM'] == "java" || ::RUBY_PLATFORM == 'java'
23
+ if ENV["PLATFORM"] == "java" || ::RUBY_PLATFORM == "java"
24
24
  spec.platform = "java"
25
- spec.add_dependency 'march_hare', '>= 2.7.0'
25
+ spec.add_dependency "march_hare", "~> 4.4"
26
26
  else
27
- spec.add_dependency 'bunny', '>= 1.5.0'
27
+ spec.add_dependency "bunny", ">= 1.5.0"
28
28
  end
29
- spec.add_dependency 'concurrent-ruby'
30
- spec.add_dependency 'middleware'
31
- spec.add_dependency 'thor'
29
+ spec.add_dependency "concurrent-ruby"
30
+ spec.add_dependency "middleware"
31
+ spec.add_dependency "psych", ">= 3.3.2"
32
+ spec.add_dependency "thor"
32
33
 
33
34
  spec.add_development_dependency "active_publisher", "~> 0.1.5"
34
35
  spec.add_development_dependency "activerecord", ">= 3.2"
@@ -69,11 +69,9 @@ module ActionSubscriber
69
69
  absolute_config_path = ::File.expand_path(::File.join("config", "action_subscriber.yml"))
70
70
  if ::File.exists?(absolute_config_path)
71
71
  erb = ::ERB.new(::File.read(absolute_config_path)).result
72
- if defined?(SafeYAML)
73
- yaml_config = ::YAML.load(erb, :safe => true)[env]
74
- else
75
- yaml_config = ::YAML.load(erb)[env]
76
- end
72
+ # Defined in Psych 3.2+ and the new canonical way to load trusted documents:
73
+ # https://github.com/ruby/psych/issues/533#issuecomment-1019363688
74
+ yaml_config = ::YAML.unsafe_load(erb)[env]
77
75
  end
78
76
 
79
77
  ::ActionSubscriber::Configuration::DEFAULTS.each_pair do |key, value|
@@ -1,3 +1,3 @@
1
1
  module ActionSubscriber
2
- VERSION = "5.2.4"
2
+ VERSION = "5.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_subscriber
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.4
4
+ version: 5.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Stien
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2022-01-06 00:00:00.000000000 Z
15
+ date: 2022-05-05 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activesupport
@@ -70,6 +70,20 @@ dependencies:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
+ - !ruby/object:Gem::Dependency
74
+ name: psych
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: 3.3.2
80
+ type: :runtime
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 3.3.2
73
87
  - !ruby/object:Gem::Dependency
74
88
  name: thor
75
89
  requirement: !ruby/object:Gem::Requirement
@@ -209,6 +223,7 @@ executables:
209
223
  extensions: []
210
224
  extra_rdoc_files: []
211
225
  files:
226
+ - ".circleci/config.yml"
212
227
  - ".gitignore"
213
228
  - ".rspec"
214
229
  - ".travis.yml"
@@ -299,7 +314,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
299
314
  - !ruby/object:Gem::Version
300
315
  version: '0'
301
316
  requirements: []
302
- rubygems_version: 3.2.28
317
+ rubygems_version: 3.3.12
303
318
  signing_key:
304
319
  specification_version: 4
305
320
  summary: ActionSubscriber is a DSL that allows a rails app to consume messages from