mantle 2.1.2 → 2.2.0

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: 7d86397ffcc6358adf977c532f5ecf04cfa955e8
4
- data.tar.gz: f855be9e276f5aed94381455b1e0e254885378e3
3
+ metadata.gz: cdccc55225f39ead845fc2df598e40f569dee404
4
+ data.tar.gz: b4757cb21b7bf07b2473c42795ff10d990802bb0
5
5
  SHA512:
6
- metadata.gz: 995b3eb4245c20cf0c4cfa0d92e613050e1a63ec005ef92f0a1e2fd5c9ad09117583e09e53ba4b9a4ca3f1e4262d439fe2da2b41605c4e5787536f977f623b5a
7
- data.tar.gz: 30eb6d234f9cfbbdf4f0c449adadb904e2b5d01b8111e19da46df99a76dd494935d068cc41f710370a69fa112806ae514e35b5f50e125fdca7b1b617b67e3cc6
6
+ metadata.gz: 129ba6fad4bbcc3f2012f6eb6536281b3a0052ef5fb959d7f42add356473c14de3a3602f12022dee9871dfd996f5133adfe96da7cad1c9810c1035fd7a49b654
7
+ data.tar.gz: 35975a18ca3c6b767f294217b71c92d6884cc50ab1023ccd0979aa12429c226301cb5e4e3f33d4a723a3fdfa1f52c18846ea676e352529ff9482ae1ca9e08881
@@ -1,3 +1,8 @@
1
+ 2.2.0
2
+ -----------
3
+
4
+ - Catch up queue is cleared every 60 min.
5
+
1
6
  2.1.2
2
7
  -----------
3
8
 
@@ -1,21 +1,62 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mantle (2.1.1)
4
+ mantle (2.1.2)
5
5
  redis
6
6
  sidekiq
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- celluloid (0.16.0)
12
- timers (~> 4.0.0)
11
+ celluloid (0.17.1.2)
12
+ bundler
13
+ celluloid-essentials
14
+ celluloid-extras
15
+ celluloid-fsm
16
+ celluloid-pool
17
+ celluloid-supervision
18
+ dotenv
19
+ nenv
20
+ rspec-logsplit (>= 0.1.2)
21
+ timers (>= 4.1.1)
22
+ celluloid-essentials (0.20.2.1)
23
+ bundler
24
+ dotenv
25
+ nenv
26
+ rspec-logsplit (>= 0.1.2)
27
+ timers (>= 4.1.1)
28
+ celluloid-extras (0.20.1)
29
+ bundler
30
+ dotenv
31
+ nenv
32
+ rspec-logsplit (>= 0.1.2)
33
+ timers (>= 4.1.1)
34
+ celluloid-fsm (0.20.1)
35
+ bundler
36
+ dotenv
37
+ nenv
38
+ rspec-logsplit (>= 0.1.2)
39
+ timers (>= 4.1.1)
40
+ celluloid-pool (0.20.1)
41
+ bundler
42
+ dotenv
43
+ nenv
44
+ rspec-logsplit (>= 0.1.2)
45
+ timers (>= 4.1.1)
46
+ celluloid-supervision (0.20.1.1)
47
+ bundler
48
+ dotenv
49
+ nenv
50
+ rspec-logsplit (>= 0.1.2)
51
+ timers (>= 4.1.1)
13
52
  coderay (1.1.0)
14
53
  connection_pool (2.2.0)
15
54
  diff-lcs (1.2.5)
16
- hitimes (1.2.2)
55
+ dotenv (2.0.2)
56
+ hitimes (1.2.3)
17
57
  json (1.8.3)
18
58
  method_source (0.8.2)
59
+ nenv (0.2.0)
19
60
  pry (0.10.0)
20
61
  coderay (~> 1.1.0)
21
62
  method_source (~> 0.8.1)
@@ -32,18 +73,19 @@ GEM
32
73
  rspec-expectations (3.2.0)
33
74
  diff-lcs (>= 1.2.0, < 2.0)
34
75
  rspec-support (~> 3.2.0)
76
+ rspec-logsplit (0.1.3)
35
77
  rspec-mocks (3.2.0)
36
78
  diff-lcs (>= 1.2.0, < 2.0)
37
79
  rspec-support (~> 3.2.0)
38
80
  rspec-support (3.2.2)
39
- sidekiq (3.4.2)
40
- celluloid (~> 0.16.0)
81
+ sidekiq (3.5.0)
82
+ celluloid (~> 0.17.0)
41
83
  connection_pool (~> 2.2, >= 2.2.0)
42
84
  json (~> 1.0)
43
85
  redis (~> 3.2, >= 3.2.1)
44
86
  redis-namespace (~> 1.5, >= 1.5.2)
45
87
  slop (3.5.0)
46
- timers (4.0.1)
88
+ timers (4.1.1)
47
89
  hitimes
48
90
 
49
91
  PLATFORMS
data/README.md CHANGED
@@ -3,6 +3,9 @@
3
3
  [![Circle CI](https://circleci.com/gh/PipelineDeals/mantle.svg?style=svg)](https://circleci.com/gh/PipelineDeals/mantle)
4
4
  [![Code Climate](https://codeclimate.com/github/PipelineDeals/mantle/badges/gpa.svg)](https://codeclimate.com/github/PipelineDeals/mantle)
5
5
 
6
+ To learn more about Mantle and it's internal, see [this slide
7
+ deck](https://speakerdeck.com/brandonhilkert/a-path-to-services?slide=57).
8
+
6
9
  ## Installation
7
10
 
8
11
  Add this line to your application's Gemfile:
@@ -1,7 +1,7 @@
1
1
  module Mantle
2
2
  class CatchUp
3
3
  KEY = "mantle:catch_up"
4
- HOURS_TO_KEEP = 6
4
+ HOURS_TO_KEEP = 1
5
5
  CLEANUP_EVERY_MINUTES = 5
6
6
 
7
7
  attr_accessor :redis, :message_bus_channels
@@ -1,3 +1,3 @@
1
1
  module Mantle
2
- VERSION = '2.1.2'
2
+ VERSION = '2.2.0'
3
3
  end
@@ -67,9 +67,9 @@ describe Mantle::CatchUp do
67
67
  describe "#clear_expired" do
68
68
  it "clears expired entries from the catch up list" do
69
69
  cu = Mantle::CatchUp.new
70
- cu.add_message("person:update", { id: 1 }, cu.hours_ago_in_seconds(8))
71
- cu.add_message("deal:update", { id: 2 }, cu.hours_ago_in_seconds(7))
72
- cu.add_message("company:update", { id: 3 }, cu.hours_ago_in_seconds(5))
70
+ cu.add_message("person:update", { id: 1 }, cu.hours_ago_in_seconds(2))
71
+ cu.add_message("deal:update", { id: 2 }, cu.hours_ago_in_seconds(1))
72
+ cu.add_message("company:update", { id: 3 }, cu.hours_ago_in_seconds(0.5))
73
73
 
74
74
  cu.clear_expired
75
75
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mantle
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grant Ammons
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-28 00:00:00.000000000 Z
12
+ date: 2015-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis