uniform_notifier 1.10.0 → 1.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +18 -0
  4. data/Gemfile +3 -1
  5. data/README.md +95 -77
  6. data/Rakefile +13 -11
  7. data/lib/uniform_notifier.rb +38 -6
  8. data/lib/uniform_notifier/airbrake.rb +3 -3
  9. data/lib/uniform_notifier/base.rb +17 -14
  10. data/lib/uniform_notifier/bugsnag.rb +4 -7
  11. data/lib/uniform_notifier/customized_logger.rb +6 -4
  12. data/lib/uniform_notifier/errors.rb +3 -1
  13. data/lib/uniform_notifier/growl.rb +20 -21
  14. data/lib/uniform_notifier/honeybadger.rb +5 -4
  15. data/lib/uniform_notifier/javascript_alert.rb +7 -3
  16. data/lib/uniform_notifier/javascript_console.rb +18 -14
  17. data/lib/uniform_notifier/rails_logger.rb +3 -1
  18. data/lib/uniform_notifier/raise.rb +4 -2
  19. data/lib/uniform_notifier/rollbar.rb +8 -1
  20. data/lib/uniform_notifier/sentry.rb +21 -0
  21. data/lib/uniform_notifier/slack.rb +20 -22
  22. data/lib/uniform_notifier/terminal_notifier.rb +24 -0
  23. data/lib/uniform_notifier/version.rb +3 -1
  24. data/lib/uniform_notifier/xmpp.rb +25 -24
  25. data/spec/spec_helper.rb +8 -6
  26. data/spec/uniform_notifier/airbrake_spec.rb +12 -10
  27. data/spec/uniform_notifier/base_spec.rb +12 -14
  28. data/spec/uniform_notifier/bugsnag_spec.rb +33 -19
  29. data/spec/uniform_notifier/customized_logger_spec.rb +9 -7
  30. data/spec/uniform_notifier/growl_spec.rb +41 -23
  31. data/spec/uniform_notifier/honeybadger_spec.rb +12 -10
  32. data/spec/uniform_notifier/javascript_alert_spec.rb +29 -9
  33. data/spec/uniform_notifier/javascript_console_spec.rb +55 -17
  34. data/spec/uniform_notifier/rails_logger_spec.rb +9 -7
  35. data/spec/uniform_notifier/raise_spec.rb +15 -16
  36. data/spec/uniform_notifier/rollbar_spec.rb +15 -6
  37. data/spec/uniform_notifier/sentry_spec.rb +27 -0
  38. data/spec/uniform_notifier/slack_spec.rb +12 -8
  39. data/spec/uniform_notifier/terminal_notifier_spec.rb +27 -0
  40. data/spec/uniform_notifier/xmpp_spec.rb +21 -15
  41. data/uniform_notifier.gemspec +24 -17
  42. metadata +33 -25
@@ -1,20 +1,22 @@
1
- require "spec_helper"
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
2
4
 
3
5
  class Rails
4
6
  # mock Rails
5
7
  end
6
8
 
7
9
  RSpec.describe UniformNotifier::RailsLogger do
8
- it "should not notify rails logger" do
9
- expect(UniformNotifier::RailsLogger.out_of_channel_notify(:title => "notify rails logger")).to be_nil
10
+ it 'should not notify rails logger' do
11
+ expect(UniformNotifier::RailsLogger.out_of_channel_notify(title: 'notify rails logger')).to be_nil
10
12
  end
11
13
 
12
- it "should notify rails logger" do
13
- logger = double("logger")
14
+ it 'should notify rails logger' do
15
+ logger = double('logger')
14
16
  expect(Rails).to receive(:logger).and_return(logger)
15
- expect(logger).to receive(:warn).with("notify rails logger")
17
+ expect(logger).to receive(:warn).with('notify rails logger')
16
18
 
17
19
  UniformNotifier.rails_logger = true
18
- UniformNotifier::RailsLogger.out_of_channel_notify(:title => "notify rails logger")
20
+ UniformNotifier::RailsLogger.out_of_channel_notify(title: 'notify rails logger')
19
21
  end
20
22
  end
@@ -1,31 +1,30 @@
1
- require "spec_helper"
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
2
4
 
3
5
  RSpec.describe UniformNotifier::Raise do
4
- it "should not notify message" do
5
- expect(UniformNotifier::Raise.out_of_channel_notify(:title => "notification")).to be_nil
6
+ it 'should not notify message' do
7
+ expect(UniformNotifier::Raise.out_of_channel_notify(title: 'notification')).to be_nil
6
8
  end
7
9
 
8
- it "should raise error of the default class" do
10
+ it 'should raise error of the default class' do
9
11
  UniformNotifier.raise = true
10
- expect {
11
- UniformNotifier::Raise.out_of_channel_notify(:title => "notification")
12
- }.to raise_error(UniformNotifier::Exception, "notification")
12
+ expect { UniformNotifier::Raise.out_of_channel_notify(title: 'notification') }.to raise_error(
13
+ UniformNotifier::Exception,
14
+ 'notification'
15
+ )
13
16
  end
14
17
 
15
- it "allows the user to override the default exception class" do
16
- klass = Class.new(Exception)
18
+ it 'allows the user to override the default exception class' do
19
+ klass = Class.new(RuntimeError)
17
20
  UniformNotifier.raise = klass
18
- expect {
19
- UniformNotifier::Raise.out_of_channel_notify(:title => "notification")
20
- }.to raise_error(klass, "notification")
21
+ expect { UniformNotifier::Raise.out_of_channel_notify(title: 'notification') }.to raise_error(klass, 'notification')
21
22
  end
22
23
 
23
- it "can be turned from on to off again" do
24
+ it 'can be turned from on to off again' do
24
25
  UniformNotifier.raise = true
25
26
  UniformNotifier.raise = false
26
27
 
27
- expect {
28
- UniformNotifier::Raise.out_of_channel_notify(:title => "notification")
29
- }.not_to raise_error
28
+ expect { UniformNotifier::Raise.out_of_channel_notify(title: 'notification') }.not_to raise_error
30
29
  end
31
30
  end
@@ -1,18 +1,27 @@
1
- require "spec_helper"
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
2
4
 
3
5
  class Rollbar
4
6
  # mock Rollbar
5
7
  end
6
8
 
7
9
  RSpec.describe UniformNotifier::RollbarNotifier do
8
- it "should not notify rollbar" do
9
- expect(UniformNotifier::RollbarNotifier.out_of_channel_notify(:title => "notify rollbar")).to be_nil
10
+ it 'should not notify rollbar' do
11
+ expect(UniformNotifier::RollbarNotifier.out_of_channel_notify(title: 'notify rollbar')).to be_nil
10
12
  end
11
13
 
12
- it "should notify rollbar" do
13
- expect(Rollbar).to receive(:info).with(UniformNotifier::Exception.new("notify rollbar"))
14
+ it 'should notify rollbar' do
15
+ expect(Rollbar).to receive(:log).with('info', UniformNotifier::Exception.new('notify rollbar'))
14
16
 
15
17
  UniformNotifier.rollbar = true
16
- UniformNotifier::RollbarNotifier.out_of_channel_notify(:title => "notify rollbar")
18
+ UniformNotifier::RollbarNotifier.out_of_channel_notify(title: 'notify rollbar')
19
+ end
20
+
21
+ it 'should notify rollbar' do
22
+ expect(Rollbar).to receive(:log).with('warning', UniformNotifier::Exception.new('notify rollbar'))
23
+
24
+ UniformNotifier.rollbar = { level: 'warning' }
25
+ UniformNotifier::RollbarNotifier.out_of_channel_notify(title: 'notify rollbar')
17
26
  end
18
27
  end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ class Raven
6
+ # mock Sentry
7
+ end
8
+
9
+ RSpec.describe UniformNotifier::SentryNotifier do
10
+ it 'should not notify sentry' do
11
+ expect(UniformNotifier::SentryNotifier.out_of_channel_notify(title: 'notify sentry')).to be_nil
12
+ end
13
+
14
+ it 'should notify sentry' do
15
+ expect(Raven).to receive(:capture_exception).with(UniformNotifier::Exception.new('notify sentry'), {})
16
+
17
+ UniformNotifier.sentry = true
18
+ UniformNotifier::SentryNotifier.out_of_channel_notify(title: 'notify sentry')
19
+ end
20
+
21
+ it 'should notify sentry' do
22
+ expect(Raven).to receive(:capture_exception).with(UniformNotifier::Exception.new('notify sentry'), foo: :bar)
23
+
24
+ UniformNotifier.sentry = { foo: :bar }
25
+ UniformNotifier::SentryNotifier.out_of_channel_notify('notify sentry')
26
+ end
27
+ end
@@ -1,39 +1,43 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  RSpec.describe UniformNotifier::Slack do
4
6
  context 'not enabled' do
5
7
  it 'should not notify slack' do
6
8
  expect_any_instance_of(Slack::Notifier).to_not receive(:ping)
7
- expect(UniformNotifier::Slack.out_of_channel_notify(:title => 'notify slack')).to be_nil
9
+ expect(UniformNotifier::Slack.out_of_channel_notify(title: 'notify slack')).to be_nil
8
10
  end
9
11
  end
10
12
 
11
13
  context 'configuration' do
12
14
  context 'no webhook_url is given' do
13
15
  it 'should raise an error' do
14
- expect{ UniformNotifier.slack = {} }.to raise_error(UniformNotifier::NotificationError)
16
+ expect { UniformNotifier.slack = {} }.to raise_error(UniformNotifier::NotificationError)
15
17
  end
16
18
 
17
19
  it 'should not notify slack' do
18
20
  begin
19
21
  UniformNotifier.slack = {}
20
22
  rescue UniformNotifier::NotificationError
23
+
21
24
  ensure
22
25
  expect_any_instance_of(Slack::Notifier).to_not receive(:ping)
23
- expect(UniformNotifier::Slack.out_of_channel_notify(:title => 'notify slack')).to be_nil
26
+ expect(UniformNotifier::Slack.out_of_channel_notify(title: 'notify slack')).to be_nil
24
27
  end
25
28
  end
26
29
  end
27
30
 
28
31
  it 'should remove invalid options' do
29
32
  expect(Slack::Notifier).to receive(:new).with('http://some.slack.url', {}).and_return(true)
30
- UniformNotifier.slack = { :webhook_url => 'http://some.slack.url', :pizza => 'pepperoni' }
33
+ UniformNotifier.slack = { webhook_url: 'http://some.slack.url', pizza: 'pepperoni' }
31
34
  expect(UniformNotifier::Slack.active?).to eq true
32
35
  end
33
36
 
34
37
  it 'should allow username and channel config options' do
35
- expect(Slack::Notifier).to receive(:new).with('http://some.slack.url', { :username => 'The Dude', :channel => '#carpets' }).and_return(true)
36
- UniformNotifier.slack = { :webhook_url => 'http://some.slack.url', :username => 'The Dude', :channel => '#carpets' }
38
+ expect(Slack::Notifier).to receive(:new).with('http://some.slack.url', username: 'The Dude', channel: '#carpets')
39
+ .and_return(true)
40
+ UniformNotifier.slack = { webhook_url: 'http://some.slack.url', username: 'The Dude', channel: '#carpets' }
37
41
  expect(UniformNotifier::Slack.active?).to eq true
38
42
  end
39
43
  end
@@ -45,9 +49,9 @@ RSpec.describe UniformNotifier::Slack do
45
49
  end
46
50
 
47
51
  it 'should notify slack' do
48
- UniformNotifier.slack = { :webhook_url => 'http://some.slack.url' }
52
+ UniformNotifier.slack = { webhook_url: 'http://some.slack.url' }
49
53
  expect_any_instance_of(Slack::Notifier).to receive(:ping)
50
- expect(UniformNotifier::Slack.out_of_channel_notify(:title => @message)).to eq @message
54
+ expect(UniformNotifier::Slack.out_of_channel_notify(title: @message)).to eq @message
51
55
  end
52
56
  end
53
57
  end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe UniformNotifier::TerminalNotifier do
6
+ it 'should not notify terminal-notifier when disabled' do
7
+ expect(UniformNotifier::TerminalNotifier.out_of_channel_notify(title: 'notify terminal')).to be_nil
8
+ end
9
+
10
+ it "should raise an exception when terminal-notifier gem isn't available" do
11
+ UniformNotifier.terminal_notifier = true
12
+ expect {
13
+ UniformNotifier::TerminalNotifier.out_of_channel_notify(body: 'body', title: 'notify terminal')
14
+ }.to raise_error(UniformNotifier::NotificationError, /terminal-notifier gem/)
15
+ end
16
+
17
+ it 'should notify terminal-notifier when enabled' do
18
+ module TerminalNotifier
19
+ # mock TerminalNotifier
20
+ end
21
+
22
+ expect(TerminalNotifier).to receive(:notify).with('body', title: 'notify terminal')
23
+
24
+ UniformNotifier.terminal_notifier = true
25
+ UniformNotifier::TerminalNotifier.out_of_channel_notify(body: 'body', title: 'notify terminal')
26
+ end
27
+ end
@@ -1,50 +1,56 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  RSpec.describe UniformNotifier::Xmpp do
4
- it "should not notify xmpp" do
5
- expect(UniformNotifier::Xmpp.out_of_channel_notify(:title => "notify xmpp")).to be_nil
6
+ it 'should not notify xmpp' do
7
+ expect(UniformNotifier::Xmpp.out_of_channel_notify(title: 'notify xmpp')).to be_nil
6
8
  end
7
9
 
8
- it "should notify xmpp without online status" do
9
- jid = double("jid")
10
- xmpp = double("xmpp")
10
+ it 'should notify xmpp without online status' do
11
+ jid = double('jid')
12
+ xmpp = double('xmpp')
11
13
  expect(Jabber::JID).to receive(:new).with('from@gmail.com').and_return(jid)
12
14
  expect(Jabber::Client).to receive(:new).with(jid).and_return(xmpp)
13
15
  expect(xmpp).to receive(:connect)
14
16
  expect(xmpp).to receive(:auth).with('123456')
15
17
 
16
- message = double("message")
18
+ message = double('message')
17
19
  expect(Jabber::Message).to receive(:new).with('to@gmail.com', 'notify xmpp').and_return(message)
18
20
  expect(message).to receive(:set_type).with(:normal).and_return(message)
19
21
  expect(message).to receive(:set_subject).with('Uniform Notifier').and_return(message)
20
22
  expect(xmpp).to receive(:send).with(message)
21
23
 
22
- UniformNotifier.xmpp = {:account => 'from@gmail.com', :password => '123456', :receiver => 'to@gmail.com', :show_online_status => false}
23
- UniformNotifier::Xmpp.out_of_channel_notify(:title => 'notify xmpp')
24
+ UniformNotifier.xmpp = {
25
+ account: 'from@gmail.com', password: '123456', receiver: 'to@gmail.com', show_online_status: false
26
+ }
27
+ UniformNotifier::Xmpp.out_of_channel_notify(title: 'notify xmpp')
24
28
  end
25
29
 
26
- it "should notify xmpp with online status" do
27
- jid = double("jid")
28
- xmpp = double("xmpp")
30
+ it 'should notify xmpp with online status' do
31
+ jid = double('jid')
32
+ xmpp = double('xmpp')
29
33
  expect(Jabber::JID).to receive(:new).with('from@gmail.com').and_return(jid)
30
34
  expect(Jabber::Client).to receive(:new).with(jid).and_return(xmpp)
31
35
  expect(xmpp).to receive(:connect)
32
36
  expect(xmpp).to receive(:auth).with('123456')
33
37
 
34
- presence = double("presence")
38
+ presence = double('presence')
35
39
  now = Time.now
36
40
  allow(Time).to receive(:now).and_return(now)
37
41
  expect(Jabber::Presence).to receive(:new).and_return(presence)
38
42
  expect(presence).to receive(:set_status).with("Uniform Notifier started on #{now}").and_return(presence)
39
43
  expect(xmpp).to receive(:send).with(presence)
40
44
 
41
- message = double("message")
45
+ message = double('message')
42
46
  expect(Jabber::Message).to receive(:new).with('to@gmail.com', 'notify xmpp').and_return(message)
43
47
  expect(message).to receive(:set_type).with(:normal).and_return(message)
44
48
  expect(message).to receive(:set_subject).with('Uniform Notifier').and_return(message)
45
49
  expect(xmpp).to receive(:send).with(message)
46
50
 
47
- UniformNotifier.xmpp = {:account => 'from@gmail.com', :password => '123456', :receiver => 'to@gmail.com', :show_online_status => true}
48
- UniformNotifier::Xmpp.out_of_channel_notify(:title => 'notify xmpp')
51
+ UniformNotifier.xmpp = {
52
+ account: 'from@gmail.com', password: '123456', receiver: 'to@gmail.com', show_online_status: true
53
+ }
54
+ UniformNotifier::Xmpp.out_of_channel_notify(title: 'notify xmpp')
49
55
  end
50
56
  end
@@ -1,28 +1,35 @@
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', __dir__)
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.required_ruby_version = '>= 2.3'
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 'rspec', ['> 0']
20
+ s.add_development_dependency 'ruby-growl', ['= 4.0']
21
+ s.add_development_dependency 'ruby_gntp', ['= 0.3.4']
22
+ s.add_development_dependency 'slack-notifier', ['>= 1.0']
23
+ s.add_development_dependency 'xmpp4r', ['= 0.5']
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']
29
+
30
+ if s.respond_to?(:metadata)
31
+ s.metadata['changelog_uri'] = 'https://github.com/flyerhzm/uniform_notifier/blob/master/CHANGELOG.md'
32
+ s.metadata['source_code_uri'] = 'https://github.com/flyerhzm/uniform_notifier'
33
+ s.metadata['bug_tracker_uri'] = 'https://github.com/flyerhzm/uniform_notifier/issues'
34
+ end
28
35
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uniform_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-06 00:00:00.000000000 Z
11
+ date: 2021-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: ruby-growl
14
+ name: rspec
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - ">"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - ">"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.0'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: ruby_gntp
28
+ name: ruby-growl
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.4
33
+ version: '4.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.4
40
+ version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: xmpp4r
42
+ name: ruby_gntp
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: '0.5'
47
+ version: 0.3.4
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: '0.5'
54
+ version: 0.3.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: slack-notifier
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -67,19 +67,19 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rspec
70
+ name: xmpp4r
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">"
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '0.5'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">"
80
+ - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: '0.5'
83
83
  description: uniform notifier for rails logger, customized logger, javascript alert,
84
84
  javascript console, growl and xmpp
85
85
  email:
@@ -108,7 +108,9 @@ files:
108
108
  - lib/uniform_notifier/rails_logger.rb
109
109
  - lib/uniform_notifier/raise.rb
110
110
  - lib/uniform_notifier/rollbar.rb
111
+ - lib/uniform_notifier/sentry.rb
111
112
  - lib/uniform_notifier/slack.rb
113
+ - lib/uniform_notifier/terminal_notifier.rb
112
114
  - lib/uniform_notifier/version.rb
113
115
  - lib/uniform_notifier/xmpp.rb
114
116
  - spec/spec_helper.rb
@@ -123,14 +125,19 @@ files:
123
125
  - spec/uniform_notifier/rails_logger_spec.rb
124
126
  - spec/uniform_notifier/raise_spec.rb
125
127
  - spec/uniform_notifier/rollbar_spec.rb
128
+ - spec/uniform_notifier/sentry_spec.rb
126
129
  - spec/uniform_notifier/slack_spec.rb
130
+ - spec/uniform_notifier/terminal_notifier_spec.rb
127
131
  - spec/uniform_notifier/xmpp_spec.rb
128
132
  - uniform_notifier.gemspec
129
133
  homepage: http://rubygems.org/gems/uniform_notifier
130
134
  licenses:
131
135
  - MIT
132
- metadata: {}
133
- post_install_message:
136
+ metadata:
137
+ changelog_uri: https://github.com/flyerhzm/uniform_notifier/blob/master/CHANGELOG.md
138
+ source_code_uri: https://github.com/flyerhzm/uniform_notifier
139
+ bug_tracker_uri: https://github.com/flyerhzm/uniform_notifier/issues
140
+ post_install_message:
134
141
  rdoc_options: []
135
142
  require_paths:
136
143
  - lib
@@ -138,16 +145,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
145
  requirements:
139
146
  - - ">="
140
147
  - !ruby/object:Gem::Version
141
- version: '0'
148
+ version: '2.3'
142
149
  required_rubygems_version: !ruby/object:Gem::Requirement
143
150
  requirements:
144
151
  - - ">="
145
152
  - !ruby/object:Gem::Version
146
153
  version: '0'
147
154
  requirements: []
148
- rubyforge_project: uniform_notifier
149
- rubygems_version: 2.5.1
150
- signing_key:
155
+ rubygems_version: 3.1.4
156
+ signing_key:
151
157
  specification_version: 4
152
158
  summary: uniform notifier for rails logger, customized logger, javascript alert, javascript
153
159
  console, growl and xmpp
@@ -164,5 +170,7 @@ test_files:
164
170
  - spec/uniform_notifier/rails_logger_spec.rb
165
171
  - spec/uniform_notifier/raise_spec.rb
166
172
  - spec/uniform_notifier/rollbar_spec.rb
173
+ - spec/uniform_notifier/sentry_spec.rb
167
174
  - spec/uniform_notifier/slack_spec.rb
175
+ - spec/uniform_notifier/terminal_notifier_spec.rb
168
176
  - spec/uniform_notifier/xmpp_spec.rb