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 +4 -4
- data/README.md +13 -4
- data/lib/roo_on_rails/default.env +1 -1
- data/lib/roo_on_rails/railtie.rb +7 -1
- data/lib/roo_on_rails/version.rb +1 -1
- data/roo_on_rails.gemspec +1 -1
- 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: 213753be11bedb855c752ec49f3ad7eba9b65aaa
|
4
|
+
data.tar.gz: a6b32aa80c06c64a9ba661933043391d8d407c67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 359431c5ef3b923886cb8a4f8042d017b8dc650b760da97a7fae2c269cbbcb6c6e1cc74857c8fbd3a504024ab54c19aae584631381e5b00e99be3b60590ac2ef
|
7
|
+
data.tar.gz: d9bd7a03a37b17e29c469ef89ef7ccbdf2ecfa46f8cf87dcd2361db45cb066c45a18188866811b661835459bdb552e6e3c9e63079ab36c285f32edfe6ace5378
|
data/README.md
CHANGED
@@ -1,21 +1,30 @@
|
|
1
|
-
|
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
|
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
|
|
data/lib/roo_on_rails/railtie.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/roo_on_rails/version.rb
CHANGED
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.
|
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-
|
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
|
- - ">="
|