roo_on_rails 1.0.1 → 1.0.2

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: 4c837ee61c7cde8d2d1b696a182785e4ba0dd5de
4
- data.tar.gz: a9b680379a1cd4485d152547e9ab356b8994c7f4
3
+ metadata.gz: 213753be11bedb855c752ec49f3ad7eba9b65aaa
4
+ data.tar.gz: a6b32aa80c06c64a9ba661933043391d8d407c67
5
5
  SHA512:
6
- metadata.gz: 3ee590ce675d07d7c1ca1ef7a45d7f018ef77ffe2c830b8a51b5b2bf7e80a50da8f6adcf4a9d07962ceb178de96d57380a6083194eb4a3bc446770915003cd83
7
- data.tar.gz: 271bda0c79bf1e0060f02b6bb0ec6e00f716eaf5cd0cdd51e978e385a96af591192ca10c288fa540025de41f01385404524abe8938275839c6fc59d07ef806a9
6
+ metadata.gz: 359431c5ef3b923886cb8a4f8042d017b8dc650b760da97a7fae2c269cbbcb6c6e1cc74857c8fbd3a504024ab54c19aae584631381e5b00e99be3b60590ac2ef
7
+ data.tar.gz: d9bd7a03a37b17e29c469ef89ef7ccbdf2ecfa46f8cf87dcd2361db45cb066c45a18188866811b661835459bdb552e6e3c9e63079ab36c285f32edfe6ace5378
data/README.md CHANGED
@@ -1,21 +1,30 @@
1
- # `roo_on_rails` [![Build
2
- Status](https://travis-ci.org/deliveroo/roo_on_rails.svg?branch=master)](https://travis-ci.org/deliveroo/roo_on_rails)[![Code
3
- Climate](https://codeclimate.com/repos/58809e664ab8420081007382/badges/3489b7689ab2e0cf5d61/gpa.svg)](https://codeclimate.com/repos/58809e664ab8420081007382/feed)
1
+ ## `roo_on_rails` [![Gem Version](https://badge.fury.io/rb/roo_on_rails.svg)](https://badge.fury.io/rb/roo_on_rails) [![Build Status](https://travis-ci.org/deliveroo/roo_on_rails.svg?branch=master)](https://travis-ci.org/deliveroo/roo_on_rails) [![Code Climate](https://codeclimate.com/repos/58809e664ab8420081007382/badges/3489b7689ab2e0cf5d61/gpa.svg)](https://codeclimate.com/repos/58809e664ab8420081007382/feed)
4
2
 
5
3
  A gem that makes following our [guidelines](http://deliveroo.engineering/guidelines/services/) easy.
6
4
 
7
5
  ## Installation
8
6
 
9
- Add this line to your Rails application's Gemfile:
7
+ Add this line at the top of your Rails application's Gemfile:
10
8
 
11
9
  ```ruby
12
10
  gem 'roo_on_rails'
13
11
  ```
14
12
 
13
+ Remove the following gems from your Gemfile, as they're provided and configured
14
+ by `roo_on_rails`:
15
+
16
+ - `dotenv`
17
+ - `newrelic_rpm`
18
+
19
+ Remove the following configuration files:
20
+
21
+ - `newrelic.yml` or `config/newrelic.yml`
22
+
15
23
  And then execute:
16
24
 
17
25
  $ bundle
18
26
 
27
+ Then re-run your test suite to make sure everything is shipshape.
19
28
 
20
29
  ## Features
21
30
 
@@ -6,4 +6,4 @@ NEW_RELIC_CAPTURE_PARAMS=true
6
6
  NEW_RELIC_TRANSACTION_TRACER_RECORD_SQL=obfuscated
7
7
  NEW_RELIC_TRANSACTION_TRACER_RECORD_REDIS_ARGUMENTS=true
8
8
  NEW_RELIC_DEVELOPER_MODE=false
9
-
9
+ NEW_RELIC_LICENSE_KEY=override-me
@@ -16,7 +16,13 @@ module RooOnRails
16
16
  initializer 'roo_on_rails.new_relic' do
17
17
  $stderr.puts 'initializer roo_on_rails.new_relic'
18
18
 
19
- unless ENV['NEW_RELIC_LICENSE_KEY']
19
+ license_key = ENV['NEW_RELIC_LICENSE_KEY']
20
+
21
+ if %w[ test development ].exclude?(Rails.env.to_s) and license_key == 'override-me'
22
+ abort 'Aborting: NEW_RELIC_LICENSE_KEY must be set in production environments'
23
+ end
24
+
25
+ if license_key.nil?
20
26
  abort 'Aborting: NEW_RELIC_LICENSE_KEY is required'
21
27
  end
22
28
 
@@ -1,3 +1,3 @@
1
1
  module RooOnRails
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
data/roo_on_rails.gemspec CHANGED
@@ -29,5 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency "rake", "~> 10.0"
30
30
  spec.add_development_dependency "rspec", "~> 3.0"
31
31
  spec.add_development_dependency 'thor', '~> 0.19'
32
- spec.add_development_dependency 'byebug'
32
+ spec.add_development_dependency 'pry-byebug'
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roo_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Letessier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-20 00:00:00.000000000 Z
11
+ date: 2017-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv-rails
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.19'
111
111
  - !ruby/object:Gem::Dependency
112
- name: byebug
112
+ name: pry-byebug
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="