uniform_notifier 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 32594087462271ce56e830a65a5f055e309813ac
4
+ data.tar.gz: c1b075373e494c52a30cb474835aaf1349b63442
5
+ SHA512:
6
+ metadata.gz: dca6046ca44a3b88a4ad1eaf53bdef0098701bf6c45c03dc160c92b088065b057ab947e0122d5f2959e6108a2a6b3657278723deabc6abdb024e0df5381f307a
7
+ data.tar.gz: 4d9ed4d568e9df86739e9a245239bb50caab5ed1ec4ca1a78a907f907b8fe4611a225814ae65e469f049df659fef6700246ca29d5c429441d771259ea81b3ca1
data/README.md CHANGED
@@ -73,7 +73,7 @@ After that, you can enjoy the notifiers, that's cool!
73
73
 
74
74
  # the notify message will be notified to rails logger, customized logger, growl or xmpp.
75
75
  UniformNotifier.active_notifiers.each do |notifier|
76
- notifier.out_of_channel_notify(args.join("\n"))
76
+ notifier.out_of_channel_notify("customize message")
77
77
  end
78
78
 
79
79
  # the notify message will be wrapped by <script type="text/javascript">...</script>,
@@ -81,7 +81,7 @@ After that, you can enjoy the notifiers, that's cool!
81
81
  # for more information, please check https://github.com/flyerhzm/bullet/blob/master/lib/bullet/rack.rb
82
82
  responses = []
83
83
  UniformNotifier.active_notifiers.each do |notifier|
84
- responses << notifier.inline_notify(notify_message)
84
+ responses << notifier.inline_notify("customize message")
85
85
  end
86
86
  javascript_str = responses.join("\n")
87
87
 
@@ -26,11 +26,9 @@ module UniformNotifier
26
26
  return unless growl
27
27
  require 'ruby-growl'
28
28
  @password = growl.instance_of?(Hash) ? growl[:password] : nil
29
- @growl = ::Growl.new('localhost',
30
- 'uniform_notifier',
31
- [ 'uniform_notifier' ],
32
- nil,
33
- @password)
29
+ @growl = ::Growl.new 'localhost', 'uniform_notifier'
30
+ @growl.add_notification 'uniform_notifier'
31
+ @growl.password = @password
34
32
 
35
33
  notify 'Uniform Notifier Growl has been turned on'
36
34
  end
@@ -1,3 +1,3 @@
1
1
  module UniformNotifier
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = "uniform_notifier"
16
16
 
17
- s.add_development_dependency %q<ruby-growl>, ["= 3.0"]
17
+ s.add_development_dependency %q<ruby-growl>, ["= 4.0"]
18
18
  s.add_development_dependency %q<ruby_gntp>, ["= 0.3.4"]
19
19
  s.add_development_dependency %q<xmpp4r>, ["= 0.5"]
20
20
  s.add_development_dependency %q<rspec>, ["> 0"]
metadata CHANGED
@@ -1,36 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uniform_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Richard Huang
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-28 00:00:00.000000000 Z
11
+ date: 2013-03-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ruby-growl
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - '='
20
18
  - !ruby/object:Gem::Version
21
- version: '3.0'
19
+ version: '4.0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - '='
28
25
  - !ruby/object:Gem::Version
29
- version: '3.0'
26
+ version: '4.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: ruby_gntp
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - '='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - '='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: xmpp4r
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - '='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - '='
60
53
  - !ruby/object:Gem::Version
@@ -62,17 +55,15 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>'
59
+ - - '>'
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>'
66
+ - - '>'
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  description: uniform notifier for rails logger, customized logger, javascript alert,
@@ -109,27 +100,26 @@ files:
109
100
  - uniform_notifier.gemspec
110
101
  homepage: http://rubygems.org/gems/uniform_notifier
111
102
  licenses: []
103
+ metadata: {}
112
104
  post_install_message:
113
105
  rdoc_options: []
114
106
  require_paths:
115
107
  - lib
116
108
  required_ruby_version: !ruby/object:Gem::Requirement
117
- none: false
118
109
  requirements:
119
- - - ! '>='
110
+ - - '>='
120
111
  - !ruby/object:Gem::Version
121
112
  version: '0'
122
113
  required_rubygems_version: !ruby/object:Gem::Requirement
123
- none: false
124
114
  requirements:
125
- - - ! '>='
115
+ - - '>='
126
116
  - !ruby/object:Gem::Version
127
117
  version: '0'
128
118
  requirements: []
129
119
  rubyforge_project: uniform_notifier
130
- rubygems_version: 1.8.24
120
+ rubygems_version: 2.0.0
131
121
  signing_key:
132
- specification_version: 3
122
+ specification_version: 4
133
123
  summary: uniform notifier for rails logger, customized logger, javascript alert, javascript
134
124
  console, growl and xmpp
135
125
  test_files:
@@ -141,4 +131,3 @@ test_files:
141
131
  - spec/uniform_notifier/javascript_console_spec.rb
142
132
  - spec/uniform_notifier/rails_logger_spec.rb
143
133
  - spec/uniform_notifier/xmpp_spec.rb
144
- has_rdoc: