multiple_man 1.1.3 → 1.2.0
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 +4 -4
- data/README.md +5 -2
- data/circle.yml +1 -1
- data/lib/multiple_man/configuration.rb +2 -1
- data/lib/multiple_man/connection.rb +6 -4
- data/lib/multiple_man/version.rb +1 -1
- data/multiple_man.gemspec +0 -3
- data/spec/spec_helper.rb +1 -4
- metadata +2 -45
- data/Guardfile +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceeee8dc76c654ed8daff0e4d6ddcd7cef43e585
|
4
|
+
data.tar.gz: 427cf647712f72870f9ac719e256f745b7cdd42f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d41e89d79310577776ce03c5d0a78b330390825ec44df5f7f33d3944403a46ee3ef479f202709a1322e396d266ada39dd5ff22893e8907e9e9988c453822e9cc
|
7
|
+
data.tar.gz: 18d869319b8565e4a7092d8708757671b849c3b7a234e99a71a5befa6e353037222d1782664d108beaf1c45fbddd05839143a55faca0138ef773480d2ce9e91e
|
data/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# MultipleMan
|
2
2
|
|
3
|
-
[](https://codeclimate.com/github/influitive/multiple_man)
|
4
|
-
|
5
3
|
[](https://circleci.com/gh/influitive/multiple_man)
|
6
4
|
|
7
5
|
MultipleMan synchronizes your ActiveRecord models between Rails
|
@@ -55,6 +53,11 @@ calling MultipleMan.configure like so:
|
|
55
53
|
ErrorLogger.log(exception)
|
56
54
|
end
|
57
55
|
|
56
|
+
# Add opts that go directly to the bunny constructor (Advanced)
|
57
|
+
config.bunny_opts = {
|
58
|
+
tls_ca_certificates: ['/usr/lib/ssl/certs/cacert.pem']
|
59
|
+
}
|
60
|
+
|
58
61
|
# Where you want to log errors to. Should be an instance of Logger
|
59
62
|
# Defaults to the Rails logger (for Rails) or STDOUT otherwise.
|
60
63
|
config.logger = Logger.new(STDOUT)
|
data/circle.yml
CHANGED
@@ -11,7 +11,7 @@ module MultipleMan
|
|
11
11
|
attr_reader :subscriber_registry
|
12
12
|
attr_accessor :topic_name, :app_name, :connection, :enabled, :error_handler,
|
13
13
|
:worker_concurrency, :reraise_errors, :connection_recovery,
|
14
|
-
:queue_name, :prefetch_size
|
14
|
+
:queue_name, :prefetch_size, :bunny_opts
|
15
15
|
|
16
16
|
attr_writer :logger
|
17
17
|
|
@@ -27,6 +27,7 @@ module MultipleMan
|
|
27
27
|
time_between_retries: 0.8,
|
28
28
|
max_retries: 5
|
29
29
|
}
|
30
|
+
self.bunny_opts = {}
|
30
31
|
|
31
32
|
@subscriber_registry = Subscribers::Registry.new
|
32
33
|
end
|
@@ -40,10 +40,12 @@ module MultipleMan
|
|
40
40
|
@connection ||= begin
|
41
41
|
connection = Bunny.new(
|
42
42
|
MultipleMan.configuration.connection,
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
{
|
44
|
+
heartbeat_interval: 5,
|
45
|
+
automatically_recover: true,
|
46
|
+
recover_from_connection_close: true,
|
47
|
+
network_recovery_interval: MultipleMan.configuration.connection_recovery[:time_before_reconnect]
|
48
|
+
}.merge(MultipleMan.configuration.bunny_opts)
|
47
49
|
)
|
48
50
|
MultipleMan.logger.debug "Connecting to #{MultipleMan.configuration.connection}"
|
49
51
|
connection.start
|
data/lib/multiple_man/version.rb
CHANGED
data/multiple_man.gemspec
CHANGED
@@ -26,7 +26,4 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency "pry"
|
27
27
|
spec.add_development_dependency "rake", '~> 10.1.0'
|
28
28
|
spec.add_development_dependency "rspec", '~> 2.14.1'
|
29
|
-
spec.add_development_dependency 'codeclimate-test-reporter'
|
30
|
-
spec.add_development_dependency 'guard'
|
31
|
-
spec.add_development_dependency 'guard-rspec'
|
32
29
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: multiple_man
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Brunner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|
@@ -94,48 +94,6 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 2.14.1
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: codeclimate-test-reporter
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: guard
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: guard-rspec
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
97
|
description: MultipleMan syncs changes to ActiveRecord models via AMQP
|
140
98
|
email:
|
141
99
|
- ryan@influitive.com
|
@@ -147,7 +105,6 @@ files:
|
|
147
105
|
- ".gitignore"
|
148
106
|
- ".rspec"
|
149
107
|
- Gemfile
|
150
|
-
- Guardfile
|
151
108
|
- LICENSE.txt
|
152
109
|
- README.md
|
153
110
|
- Rakefile
|
data/Guardfile
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
# A sample Guardfile
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
3
|
-
|
4
|
-
## Uncomment and set this to only include directories you want to watch
|
5
|
-
# directories %w(app lib config test spec features)
|
6
|
-
|
7
|
-
## Uncomment to clear the screen before every task
|
8
|
-
# clearing :on
|
9
|
-
|
10
|
-
## Guard internally checks for changes in the Guardfile and exits.
|
11
|
-
## If you want Guard to automatically start up again, run guard in a
|
12
|
-
## shell loop, e.g.:
|
13
|
-
##
|
14
|
-
## $ while bundle exec guard; do echo "Restarting Guard..."; done
|
15
|
-
##
|
16
|
-
## Note: if you are using the `directories` clause above and you are not
|
17
|
-
## watching the project directory ('.'), then you will want to move
|
18
|
-
## the Guardfile to a watched dir and symlink it back, e.g.
|
19
|
-
#
|
20
|
-
# $ mkdir config
|
21
|
-
# $ mv Guardfile config/
|
22
|
-
# $ ln -s config/Guardfile .
|
23
|
-
#
|
24
|
-
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
25
|
-
|
26
|
-
# Note: The cmd option is now required due to the increasing number of ways
|
27
|
-
# rspec may be run, below are examples of the most common uses.
|
28
|
-
# * bundler: 'bundle exec rspec'
|
29
|
-
# * bundler binstubs: 'bin/rspec'
|
30
|
-
# * spring: 'bin/rsspec' (This will use spring if running and you have
|
31
|
-
# installed the spring binstubs per the docs)
|
32
|
-
# * zeus: 'zeus rspec' (requires the server to be started separetly)
|
33
|
-
# * 'just' rspec: 'rspec'
|
34
|
-
guard :rspec, cmd: 'bundle exec rspec' do
|
35
|
-
watch(%r{^spec/.+_spec\.rb$})
|
36
|
-
watch(%r{^lib/multiple_man/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
|
37
|
-
watch('spec/spec_helper.rb') { "spec" }
|
38
|
-
end
|