govuk_app_config 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/README.md +21 -0
- data/govuk_app_config.gemspec +1 -1
- data/lib/govuk_app_config/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe09d4cc179e5ecf7fa5021d4aee5bc7cbaa5cf8
|
4
|
+
data.tar.gz: 3e29dfbeef0000fbe866594ff02db98215a2b072
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95a33d56d3646555ba2a74031895d40627e3d623d3ee2fc0777df5e42a8f263240e2de6431f9924e667dfcc63117905efa964a9f40119c49690cfac187585a9d
|
7
|
+
data.tar.gz: e4eac45b282e68398409e9ab3a9f41b512ae65f7dbd53df79cb4835633c12c78bbe3d8f21853e73528b302c344481ddabfe0c85523ca41e81115738e4f419442
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# 1.2.0
|
2
|
+
|
3
|
+
* Upgrade unicorn gem from 5.3.1 to 5.4.0
|
4
|
+
|
1
5
|
# 1.1.0
|
2
6
|
|
3
7
|
- Support statsd methods of decrement, count, timing, set, and batch
|
@@ -14,8 +18,8 @@
|
|
14
18
|
### How to upgrade
|
15
19
|
|
16
20
|
* Remove `gem 'unicorn'` from your Gemfile
|
17
|
-
* Remove `gem 'logstasher'` from your Gemfile
|
18
|
-
* Remove all `config.logstasher.*` configs from `config/production.rb`
|
21
|
+
* Remove `gem 'logstasher'` from your Gemfile (Rails only)
|
22
|
+
* Remove all `config.logstasher.*` configs from `config/production.rb` (Rails only)
|
19
23
|
|
20
24
|
## 0.3.0
|
21
25
|
|
data/README.md
CHANGED
@@ -5,6 +5,7 @@ Adds the basics of a GOV.UK application:
|
|
5
5
|
- Unicorn as a web server
|
6
6
|
- Error reporting with Sentry
|
7
7
|
- Statsd client for reporting stats
|
8
|
+
- Rails logging
|
8
9
|
|
9
10
|
## Installation
|
10
11
|
|
@@ -79,6 +80,26 @@ end
|
|
79
80
|
|
80
81
|
`GovukError.configure` has the same options as the Sentry client, Raven. See [the Raven docs for all configuration options](https://docs.sentry.io/clients/ruby/config).
|
81
82
|
|
83
|
+
## Statsd
|
84
|
+
|
85
|
+
Use `GovukStatsd` to send stats to graphite. It has the same interface as [the Ruby Statsd client](https://github.com/reinh/statsd).
|
86
|
+
|
87
|
+
Examples:
|
88
|
+
|
89
|
+
```ruby
|
90
|
+
GovukStatsd.increment 'garets'
|
91
|
+
GovukStatsd.timing 'glork', 320
|
92
|
+
GovukStatsd.gauge 'bork', 100
|
93
|
+
|
94
|
+
# Use {#time} to time the execution of a block
|
95
|
+
GovukStatsd.time('account.activate') { @account.activate! }
|
96
|
+
```
|
97
|
+
|
98
|
+
## Rails logging
|
99
|
+
|
100
|
+
In Rails applications, the application will be configured to send JSON-formatted
|
101
|
+
logs to `STDOUT` and unstructed logs to `STDERR`.
|
102
|
+
|
82
103
|
## License
|
83
104
|
|
84
105
|
[MIT License](LICENSE.md)
|
data/govuk_app_config.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_dependency "statsd-ruby", "~> 1.4.0"
|
25
25
|
spec.add_dependency "logstasher", "~> 1.2.2"
|
26
26
|
spec.add_dependency "sentry-raven", "~> 2.7.1"
|
27
|
-
spec.add_dependency "unicorn", "~> 5.
|
27
|
+
spec.add_dependency "unicorn", "~> 5.4.0"
|
28
28
|
|
29
29
|
spec.add_development_dependency "bundler", "~> 1.15"
|
30
30
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_app_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: statsd-ruby
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 5.
|
61
|
+
version: 5.4.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 5.
|
68
|
+
version: 5.4.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|