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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00268cd5e517f8817ee7515c2bd5c1d94df9e242
4
- data.tar.gz: f5252d519821c65a1eea390284b5f092ac7c232d
3
+ metadata.gz: 40ff29cc7dd92b10ef2253d24a1d0b91abf6823d
4
+ data.tar.gz: 41b5bb5800dbc233a558dfaa20023bee081f17fd
5
5
  SHA512:
6
- metadata.gz: cf346d7f3a5035e0f51bdfe2e06f18a2f9fc4b8329c36f3d30609db4ebb3ece48c2247e9977e5b843d49a33560955d104d7d56a60f9c3dc19ad0d950d96367b0
7
- data.tar.gz: 09352c5f41b7ccb073e3f51e6f05e137d296531d78317973550fd39c2b1cfa6cd0516eeba73e2df733acd3dff29d5c77b92881082ecf4dca190866bcfd6b51cb
6
+ metadata.gz: fdfbabcdd43a23e9a090b4a83b3cd30187e5b906014c41fca3b83924f46d06bb0ed6cab6dea4a262490b8f4856952471755fde665c15d335eebacbed7a1b4408
7
+ data.tar.gz: 5d947208f119bbcf3c3d95a356c4541471f355aab20453c9a3625efce082c1f841fc93a509986f486d865c81bf46a407070931b483fc38703814369b9507d3db
data/.hound.yml CHANGED
@@ -34,3 +34,6 @@ Style/CollectionMethods:
34
34
 
35
35
  Style/DotPosition:
36
36
  EnforcedStyle: leading
37
+
38
+ Style/DoubleNegation:
39
+ Enabled: false
data/.rubocop.yml CHANGED
@@ -34,3 +34,6 @@ Style/CollectionMethods:
34
34
 
35
35
  Style/DotPosition:
36
36
  EnforcedStyle: leading
37
+
38
+ Style/DoubleNegation:
39
+ Enabled: false
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.0
6
- - 2.1.0
7
- - 2.1.1
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
- - USE_SIMPLECOV=true CODECLIMATE_REPO_TOKEN=2175628fb41494d45b50b6938600a53c130e1f7ac3b81b072bb71e91073a5e4a
11
+ global:
12
+ - USE_SIMPLECOV=true
13
+ - CODECLIMATE_REPO_TOKEN=2175628fb41494d45b50b6938600a53c130e1f7ac3b81b072bb71e91073a5e4a
14
+ addons:
15
+ code_climate:
16
+ repo_token: 2175628fb41494d45b50b6938600a53c130e1f7ac3b81b072bb71e91073a5e4a
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, &block)
79
+ def time(stat, sample_rate = 1)
80
80
  start = Time.now
81
- result = block.call
82
- duration = ((Time.now - start) * 1000).round
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.19
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-06-15 00:00:00.000000000 Z
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.txt
222
+ - LICENSE
223
223
  - README.rdoc
224
224
  - Rakefile
225
225
  - lib/macmillan/utils.rb