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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1e3c1bffb70830bff88b66b19c010257a290fdc
4
- data.tar.gz: ae0c241995faae8a23e348cdaa3d35ba1f06ccaa
3
+ metadata.gz: fe09d4cc179e5ecf7fa5021d4aee5bc7cbaa5cf8
4
+ data.tar.gz: 3e29dfbeef0000fbe866594ff02db98215a2b072
5
5
  SHA512:
6
- metadata.gz: 634c5340c1bce0d4ec4f46ca50d7a5e2383a66703c3b7c64815df27046b133acd8a6b312b8e7b585c399330ce9f542a36cc7e94298500b44bd2a8f474f506663
7
- data.tar.gz: a6bb41c05195f6e0cf1584fb95baeaa66fbe9e5e518d3c69be5383f433a72f9a60bcb5a5f700e9b1f8b1442292424d09a3b3eb9e5d6ffe6089e06dac606ed6f0
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)
@@ -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.3.1"
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"
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
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.1.0
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: 2017-12-05 00:00:00.000000000 Z
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.3.1
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.3.1
68
+ version: 5.4.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement