uniform_notifier 1.11.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/Gemfile +3 -1
  4. data/README.md +18 -1
  5. data/Rakefile +13 -11
  6. data/lib/uniform_notifier.rb +8 -7
  7. data/lib/uniform_notifier/airbrake.rb +2 -0
  8. data/lib/uniform_notifier/base.rb +17 -14
  9. data/lib/uniform_notifier/bugsnag.rb +5 -3
  10. data/lib/uniform_notifier/customized_logger.rb +6 -4
  11. data/lib/uniform_notifier/errors.rb +3 -1
  12. data/lib/uniform_notifier/growl.rb +23 -20
  13. data/lib/uniform_notifier/honeybadger.rb +2 -0
  14. data/lib/uniform_notifier/javascript_alert.rb +7 -3
  15. data/lib/uniform_notifier/javascript_console.rb +18 -14
  16. data/lib/uniform_notifier/rails_logger.rb +3 -1
  17. data/lib/uniform_notifier/raise.rb +3 -1
  18. data/lib/uniform_notifier/rollbar.rb +2 -0
  19. data/lib/uniform_notifier/sentry.rb +2 -0
  20. data/lib/uniform_notifier/slack.rb +20 -19
  21. data/lib/uniform_notifier/terminal_notifier.rb +23 -0
  22. data/lib/uniform_notifier/version.rb +3 -1
  23. data/lib/uniform_notifier/xmpp.rb +26 -23
  24. data/spec/spec_helper.rb +8 -6
  25. data/spec/uniform_notifier/airbrake_spec.rb +12 -10
  26. data/spec/uniform_notifier/base_spec.rb +10 -8
  27. data/spec/uniform_notifier/bugsnag_spec.rb +21 -19
  28. data/spec/uniform_notifier/customized_logger_spec.rb +9 -7
  29. data/spec/uniform_notifier/growl_spec.rb +19 -18
  30. data/spec/uniform_notifier/honeybadger_spec.rb +12 -10
  31. data/spec/uniform_notifier/javascript_alert_spec.rb +29 -9
  32. data/spec/uniform_notifier/javascript_console_spec.rb +55 -17
  33. data/spec/uniform_notifier/rails_logger_spec.rb +9 -7
  34. data/spec/uniform_notifier/raise_spec.rb +13 -11
  35. data/spec/uniform_notifier/rollbar_spec.rb +8 -6
  36. data/spec/uniform_notifier/sentry_spec.rb +12 -10
  37. data/spec/uniform_notifier/slack_spec.rb +10 -8
  38. data/spec/uniform_notifier/terminal_notifier_spec.rb +25 -0
  39. data/spec/uniform_notifier/xmpp_spec.rb +17 -15
  40. data/uniform_notifier.gemspec +18 -17
  41. metadata +6 -3
@@ -1,28 +1,29 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "uniform_notifier/version"
1
+ # frozen_string_literal: true
2
+
3
+ $LOAD_PATH.push File.expand_path('../lib', __FILE__)
4
+ require 'uniform_notifier/version'
4
5
 
5
6
  Gem::Specification.new do |s|
6
- s.name = "uniform_notifier"
7
+ s.name = 'uniform_notifier'
7
8
  s.version = UniformNotifier::VERSION
8
9
  s.platform = Gem::Platform::RUBY
9
- s.authors = ["Richard Huang"]
10
- s.email = ["flyerhzm@gmail.com"]
11
- s.homepage = "http://rubygems.org/gems/uniform_notifier"
12
- s.summary = %q{uniform notifier for rails logger, customized logger, javascript alert, javascript console, growl and xmpp}
13
- s.description = %q{uniform notifier for rails logger, customized logger, javascript alert, javascript console, growl and xmpp}
10
+ s.authors = ['Richard Huang']
11
+ s.email = ['flyerhzm@gmail.com']
12
+ s.homepage = 'http://rubygems.org/gems/uniform_notifier'
13
+ s.summary = 'uniform notifier for rails logger, customized logger, javascript alert, javascript console, growl and xmpp'
14
+ s.description = 'uniform notifier for rails logger, customized logger, javascript alert, javascript console, growl and xmpp'
14
15
  s.license = 'MIT'
15
16
 
16
- s.rubyforge_project = "uniform_notifier"
17
+ s.rubyforge_project = 'uniform_notifier'
17
18
 
18
- s.add_development_dependency %q<ruby-growl>, ["= 4.0"]
19
- s.add_development_dependency %q<ruby_gntp>, ["= 0.3.4"]
20
- s.add_development_dependency %q<xmpp4r>, ["= 0.5"]
21
- s.add_development_dependency %q<slack-notifier>, [">= 1.0"]
22
- s.add_development_dependency %q<rspec>, ["> 0"]
19
+ s.add_development_dependency 'ruby-growl', ['= 4.0']
20
+ s.add_development_dependency 'ruby_gntp', ['= 0.3.4']
21
+ s.add_development_dependency 'xmpp4r', ['= 0.5']
22
+ s.add_development_dependency 'slack-notifier', ['>= 1.0']
23
+ s.add_development_dependency 'rspec', ['> 0']
23
24
 
24
25
  s.files = `git ls-files`.split("\n")
25
26
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
26
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
27
- s.require_paths = ["lib"]
27
+ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
28
+ s.require_paths = ['lib']
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uniform_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-13 00:00:00.000000000 Z
11
+ date: 2018-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-growl
@@ -110,6 +110,7 @@ files:
110
110
  - lib/uniform_notifier/rollbar.rb
111
111
  - lib/uniform_notifier/sentry.rb
112
112
  - lib/uniform_notifier/slack.rb
113
+ - lib/uniform_notifier/terminal_notifier.rb
113
114
  - lib/uniform_notifier/version.rb
114
115
  - lib/uniform_notifier/xmpp.rb
115
116
  - spec/spec_helper.rb
@@ -126,6 +127,7 @@ files:
126
127
  - spec/uniform_notifier/rollbar_spec.rb
127
128
  - spec/uniform_notifier/sentry_spec.rb
128
129
  - spec/uniform_notifier/slack_spec.rb
130
+ - spec/uniform_notifier/terminal_notifier_spec.rb
129
131
  - spec/uniform_notifier/xmpp_spec.rb
130
132
  - uniform_notifier.gemspec
131
133
  homepage: http://rubygems.org/gems/uniform_notifier
@@ -148,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
150
  version: '0'
149
151
  requirements: []
150
152
  rubyforge_project: uniform_notifier
151
- rubygems_version: 2.6.13
153
+ rubygems_version: 2.6.14
152
154
  signing_key:
153
155
  specification_version: 4
154
156
  summary: uniform notifier for rails logger, customized logger, javascript alert, javascript
@@ -168,4 +170,5 @@ test_files:
168
170
  - spec/uniform_notifier/rollbar_spec.rb
169
171
  - spec/uniform_notifier/sentry_spec.rb
170
172
  - spec/uniform_notifier/slack_spec.rb
173
+ - spec/uniform_notifier/terminal_notifier_spec.rb
171
174
  - spec/uniform_notifier/xmpp_spec.rb