h2ocube_rails_production 0.1.0 → 0.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: 5e15988786f214dc02ee084e365751ad19566c3a
4
- data.tar.gz: 354872e9536f726d6819ddf8878fc3858177e547
3
+ metadata.gz: 493647e2497284d7b45c85891c251e6a29ce0504
4
+ data.tar.gz: f8551184af64cbe7c9af9b43a338f42361e21596
5
5
  SHA512:
6
- metadata.gz: 91c6785a8b48b6a38c45350d1095c82ab2cd5be6541408f10b7ae4985ec4280ec50077339a0d3dfa0283ac26516bc8531f4b19c6f999f47fb37dc0496fd96004
7
- data.tar.gz: 976285565a8d3d48cb2cd65a305dfb34ec20b6c5297350db05a03e010cd32ab15f8347f9775512c0cfb2e6a969c4cb33360335de605c109cdf2feed6bbca0221
6
+ metadata.gz: fa55800df7d56dcc4bde98c7b7a256e82a554dff8fe65e26d4e3fea117aa305be7e0773a3e2e6b516e2db04afce243c1547dae093af4965318a7a9de7d78acf5
7
+ data.tar.gz: 7880893da695e2b0eb21edc04327ccedc4f8133856759879d89c382659668bc216ecd9d08917442214f0e236b5b3927efa5c7b92dd2df86f1bad29f60143b5a8
data/README.md CHANGED
@@ -24,10 +24,9 @@ see include gems below :p
24
24
 
25
25
  ## Include
26
26
 
27
- * exception_notification http://smartinez87.github.io/exception_notification/
28
- * whenever https://github.com/javan/whenever/
29
- * god http://godrb.com/
30
- * h2ocube_rails_cache https://github.com/h2ocube/h2ocube_rails_cache
27
+ * lograge https://github.com/roidrage/lograge
28
+ * newrelic_rpm https://github.com/newrelic/rpm
29
+ * syslogger https://github.com/crohr/syslogger
31
30
 
32
31
  ## Contributing
33
32
 
@@ -4,21 +4,21 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'h2ocube_rails_production'
7
- spec.version = '0.1.0'
7
+ spec.version = '0.2.0'
8
8
  spec.authors = ['Ben']
9
9
  spec.email = ['ben@zfben.com']
10
- spec.description = %q{Just a collection for production gems}
11
- spec.summary = %q{Just a collection for production gems}
12
- spec.homepage = ''
10
+ spec.description = 'Just a collection for production gems'
11
+ spec.summary = 'Just a collection for production gems'
12
+ spec.homepage = 'https://github.com/h2ocube/h2ocube_rails_production'
13
13
  spec.license = 'MIT'
14
+ spec.required_ruby_version = '~> 2.2'
14
15
 
15
16
  spec.files = `git ls-files`.split($/)
16
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
19
  spec.require_paths = ['lib']
19
20
 
20
- spec.add_dependency 'exception_notification', '~> 4.0'
21
- spec.add_dependency 'whenever'
22
- spec.add_dependency 'god'
23
- spec.add_dependency 'h2ocube_rails_cache'
21
+ spec.add_dependency 'lograge'
22
+ spec.add_dependency 'newrelic_rpm'
23
+ spec.add_dependency 'syslogger'
24
24
  end
@@ -1,11 +1,14 @@
1
- %w(exception_notification h2ocube_rails_cache).each{ |gem| require gem }
2
-
1
+ %w(lograge newrelic_rpm syslogger).each{ |gem| require gem }
3
2
 
4
3
  module H2ocubeRailsProduction
5
- module Rails
6
- class Rails::Engine < ::Rails::Engine
7
- initializer 'h2ocube_rails_production.require_dependency' do |app|
8
-
4
+ class Engine < ::Rails::Engine
5
+ initializer 'h2ocube_rails_production.require_dependency' do |app|
6
+ app.config.log_level = :info
7
+ app.config.logger = Syslogger.new(Rails.env.to_s, Syslog::LOG_PID, Syslog::LOG_LOCAL7)
8
+ app.config.lograge.enabled = true
9
+ app.config.lograge.formatter = Lograge::Formatters::Json.new
10
+ app.config.lograge.custom_options = lambda do |event|
11
+ event.payload[:custom_options] || {}
9
12
  end
10
13
  end
11
14
  end
metadata CHANGED
@@ -1,31 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: h2ocube_rails_production
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-30 00:00:00.000000000 Z
11
+ date: 2015-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: exception_notification
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '4.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '4.0'
27
- - !ruby/object:Gem::Dependency
28
- name: whenever
14
+ name: lograge
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - ">="
@@ -39,7 +25,7 @@ dependencies:
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
- name: god
28
+ name: newrelic_rpm
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - ">="
@@ -53,7 +39,7 @@ dependencies:
53
39
  - !ruby/object:Gem::Version
54
40
  version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
- name: h2ocube_rails_cache
42
+ name: syslogger
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - ">="
@@ -80,7 +66,7 @@ files:
80
66
  - Rakefile
81
67
  - h2ocube_rails_production.gemspec
82
68
  - lib/h2ocube_rails_production.rb
83
- homepage: ''
69
+ homepage: https://github.com/h2ocube/h2ocube_rails_production
84
70
  licenses:
85
71
  - MIT
86
72
  metadata: {}
@@ -90,9 +76,9 @@ require_paths:
90
76
  - lib
91
77
  required_ruby_version: !ruby/object:Gem::Requirement
92
78
  requirements:
93
- - - ">="
79
+ - - "~>"
94
80
  - !ruby/object:Gem::Version
95
- version: '0'
81
+ version: '2.2'
96
82
  required_rubygems_version: !ruby/object:Gem::Requirement
97
83
  requirements:
98
84
  - - ">="
@@ -100,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
86
  version: '0'
101
87
  requirements: []
102
88
  rubyforge_project:
103
- rubygems_version: 2.2.0
89
+ rubygems_version: 2.4.8
104
90
  signing_key:
105
91
  specification_version: 4
106
92
  summary: Just a collection for production gems