macmillan-utils 1.0.19 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.hound.yml +3 -0
- data/.rubocop.yml +3 -0
- data/.travis.yml +9 -10
- data/{LICENSE.txt → LICENSE} +0 -0
- data/README.rdoc +1 -1
- data/lib/macmillan/utils/statsd_decorator.rb +3 -4
- data/spec/spec_helper.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40ff29cc7dd92b10ef2253d24a1d0b91abf6823d
|
4
|
+
data.tar.gz: 41b5bb5800dbc233a558dfaa20023bee081f17fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdfbabcdd43a23e9a090b4a83b3cd30187e5b906014c41fca3b83924f46d06bb0ed6cab6dea4a262490b8f4856952471755fde665c15d335eebacbed7a1b4408
|
7
|
+
data.tar.gz: 5d947208f119bbcf3c3d95a356c4541471f355aab20453c9a3625efce082c1f841fc93a509986f486d865c81bf46a407070931b483fc38703814369b9507d3db
|
data/.hound.yml
CHANGED
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -2,16 +2,15 @@ language: ruby
|
|
2
2
|
cache: bundler
|
3
3
|
rvm:
|
4
4
|
- 1.9.3
|
5
|
-
- 2.0
|
6
|
-
- 2.1
|
7
|
-
- 2.
|
8
|
-
- 2.1.2
|
9
|
-
- 2.1.3
|
10
|
-
- 2.1.4
|
11
|
-
- 2.1.5
|
12
|
-
- 2.2.0
|
13
|
-
- 2.2.1
|
5
|
+
- 2.0
|
6
|
+
- 2.1
|
7
|
+
- 2.2
|
14
8
|
- jruby-19mode
|
15
9
|
- rbx-2
|
16
10
|
env:
|
17
|
-
|
11
|
+
global:
|
12
|
+
- USE_SIMPLECOV=true
|
13
|
+
- CODECLIMATE_REPO_TOKEN=2175628fb41494d45b50b6938600a53c130e1f7ac3b81b072bb71e91073a5e4a
|
14
|
+
addons:
|
15
|
+
code_climate:
|
16
|
+
repo_token: 2175628fb41494d45b50b6938600a53c130e1f7ac3b81b072bb71e91073a5e4a
|
data/{LICENSE.txt → LICENSE}
RENAMED
File without changes
|
data/README.rdoc
CHANGED
@@ -5,6 +5,7 @@ A collection of useful patterns we use in our Ruby applications.
|
|
5
5
|
{<img src="https://travis-ci.org/nature/macmillan-utils.svg?branch=log-formatter" alt="Build Status" />}[https://travis-ci.org/nature/macmillan-utils]
|
6
6
|
{<img src="https://codeclimate.com/github/nature/macmillan-utils.png" alt="CodeClimate Rating" />}[https://codeclimate.com/github/nature/macmillan-utils]
|
7
7
|
{<img src="https://codeclimate.com/github/nature/macmillan-utils/coverage.png" alt="Test Coverage" />}[https://codeclimate.com/github/nature/macmillan-utils]
|
8
|
+
{<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT Licensed" />}[https://github.com/nature/macmillan-utils/blob/master/LICENSE]
|
8
9
|
|
9
10
|
== Installation
|
10
11
|
|
@@ -110,4 +111,3 @@ Add the following to the top of your `env.rb`:
|
|
110
111
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
111
112
|
4. Push to the branch (`git push origin my-new-feature`)
|
112
113
|
5. Create a new Pull Request
|
113
|
-
|
@@ -76,11 +76,10 @@ module Macmillan
|
|
76
76
|
super if send_to_delegatee?
|
77
77
|
end
|
78
78
|
|
79
|
-
def time(stat, sample_rate = 1
|
79
|
+
def time(stat, sample_rate = 1)
|
80
80
|
start = Time.now
|
81
|
-
result =
|
82
|
-
|
83
|
-
timing(stat, duration, sample_rate)
|
81
|
+
result = yield
|
82
|
+
timing(stat, ((Time.now - start) * 1000).round, sample_rate)
|
84
83
|
result
|
85
84
|
end
|
86
85
|
|
data/spec/spec_helper.rb
CHANGED
@@ -5,6 +5,7 @@ Bundler.setup(:default, :test)
|
|
5
5
|
|
6
6
|
require 'macmillan/utils/rspec/rspec_defaults'
|
7
7
|
require 'macmillan/utils/rspec/rack_test_helper'
|
8
|
+
require 'macmillan/utils/test_helpers/codeclimate_helper'
|
8
9
|
require 'macmillan/utils/test_helpers/simplecov_helper'
|
9
10
|
|
10
11
|
require 'pry'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: macmillan-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Macmillan Science and Education (New Publsihing Platforms)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -219,7 +219,7 @@ files:
|
|
219
219
|
- ".rubocop.yml"
|
220
220
|
- ".travis.yml"
|
221
221
|
- Gemfile
|
222
|
-
- LICENSE
|
222
|
+
- LICENSE
|
223
223
|
- README.rdoc
|
224
224
|
- Rakefile
|
225
225
|
- lib/macmillan/utils.rb
|