caddy 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +3 -1
- data/caddy.gemspec +6 -2
- data/lib/caddy/cache.rb +2 -5
- data/lib/caddy/version.rb +1 -1
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2fc400493e3343191071a5abdc08a9278fabe46
|
4
|
+
data.tar.gz: c0c50fc578f8a03360b397619bea6aa7dde2564c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 510efa365584ce389f98b7e25ba3e52268306aa14f732c1608f8a268bbac9d85f255e2158c90edb91375e51745d202ac24602c66a6c9ca33cf69f5b8dd30de88
|
7
|
+
data.tar.gz: afda6c4403d165d1e3264e456d77d7cb78b978d1a06559bc21ce2a4291656f86f05f0274f6401ba7ed9c93617e8acc09deae492bc77e6b6c6465e4e4276315e3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Caddy [![Build Status](https://travis-ci.org/nickelser/caddy.svg?branch=master)](https://travis-ci.org/nickelser/caddy) [![Code Climate](https://codeclimate.com/github/nickelser/caddy/badges/gpa.svg)](https://codeclimate.com/github/nickelser/caddy) [![Test Coverage](https://codeclimate.com/github/nickelser/caddy/badges/coverage.svg)](https://codeclimate.com/github/nickelser/caddy) [![Gem Version](https://badge.fury.io/rb/caddy.svg)](http://badge.fury.io/rb/caddy)
|
2
2
|
|
3
|
-
Caddy is an asynchronously updated store that is updated on an interval to store objects that you can access quickly during requests.
|
3
|
+
Caddy is an asynchronously updated store that is updated on an interval to store objects that you can access quickly during requests.
|
4
|
+
|
5
|
+
Caddy is great for storing information like feature flags -- accessed extremely frequently during many requests, updated relatively rarely and usually safe to be stale by some small duration.
|
4
6
|
|
5
7
|
It's powered by [concurrent-ruby](https://github.com/ruby-concurrency/concurrent-ruby), a battle-tested and comprehensive thread-based (& thread-safe) concurrency library.
|
6
8
|
|
data/caddy.gemspec
CHANGED
@@ -8,8 +8,12 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.version = Caddy::VERSION
|
9
9
|
s.authors = ["Nick Elser"]
|
10
10
|
s.email = ["nick.elser@gmail.com"]
|
11
|
-
s.description = %q(Caddy gives you a auto-updating global cache to speed up requests.)
|
12
11
|
s.summary = %q(Caddy gives you a auto-updating global cache to speed up requests.)
|
12
|
+
s.description = <<-EOF
|
13
|
+
Caddy is an asynchronously updated store that is updated on an interval to store objects that you can access quickly during requests.
|
14
|
+
|
15
|
+
Caddy is great for storing information like feature flags -- accessed extremely frequently during many requests, updated relatively rarely and usually safe to be stale by some small duration.
|
16
|
+
EOF
|
13
17
|
s.homepage = "http://github.com/nickelser/caddy"
|
14
18
|
s.licenses = ["MIT"]
|
15
19
|
|
@@ -20,7 +24,7 @@ Gem::Specification.new do |s|
|
|
20
24
|
|
21
25
|
s.required_ruby_version = "~> 2.0"
|
22
26
|
|
23
|
-
s.add_dependency "concurrent-ruby"
|
27
|
+
s.add_dependency "concurrent-ruby", "~> 1.0"
|
24
28
|
|
25
29
|
s.add_development_dependency "rake", "~> 10.5"
|
26
30
|
s.add_development_dependency "minitest", "~> 5.0"
|
data/lib/caddy/cache.rb
CHANGED
@@ -42,11 +42,8 @@ module Caddy
|
|
42
42
|
execution_interval: interval,
|
43
43
|
timeout_interval: timeout_interval
|
44
44
|
) do
|
45
|
-
|
46
|
-
|
47
|
-
rescue
|
48
|
-
raise
|
49
|
-
end
|
45
|
+
@cache = refresher.call.freeze
|
46
|
+
nil # no need to save the value internally to TimerTask
|
50
47
|
end
|
51
48
|
|
52
49
|
@task.add_observer(Caddy::TaskObserver.new(error_handler, @key))
|
data/lib/caddy/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Elser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,7 +66,10 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.4.7
|
69
|
-
description:
|
69
|
+
description: |2
|
70
|
+
Caddy is an asynchronously updated store that is updated on an interval to store objects that you can access quickly during requests.
|
71
|
+
|
72
|
+
Caddy is great for storing information like feature flags -- accessed extremely frequently during many requests, updated relatively rarely and usually safe to be stale by some small duration.
|
70
73
|
email:
|
71
74
|
- nick.elser@gmail.com
|
72
75
|
executables: []
|