hoptoad_notifier 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -22,6 +22,12 @@ In your config/environment* files, remove all references to ExceptionNotifier
22
22
 
23
23
  Remove the vendor/plugins/exception_notifier directory.
24
24
 
25
+ === Remove hoptoad_notifier plugin
26
+
27
+ Remove the vendor/plugins/hoptoad_notifier directory before installing the gem, or run:
28
+
29
+ script/plugin remove hoptoad_notifier
30
+
25
31
  === Rails 2.x
26
32
 
27
33
  Add the hoptoad_notifier gem to your app. In config/environment.rb:
@@ -33,6 +39,13 @@ Then from your project's RAILS_ROOT, run:
33
39
  rake gems:install
34
40
  script/generate hoptoad --api-key your_key_here
35
41
 
42
+ Once installed, you should vendor the hoptoad_notifier gem.
43
+
44
+ rake gems:unpack GEM=hoptoad_notifier
45
+
46
+ As always, if you choose not to vendor the hoptoad_notifier gem, make sure
47
+ every server you deploy to has the gem installed or your application won't start.
48
+
36
49
  === Rails 1.2.6
37
50
 
38
51
  Install the hoptoad_notifier Gem, and then add something like this at the
data/Rakefile CHANGED
@@ -50,6 +50,13 @@ gemspec = Gem::Specification.new do |s|
50
50
  s.extra_rdoc_files = ["README.rdoc"]
51
51
  s.rdoc_options = ['--line-numbers', "--main", "README.rdoc"]
52
52
 
53
+ s.add_runtime_dependency("activesupport")
54
+ s.add_development_dependency("activerecord")
55
+ s.add_development_dependency("actionpack")
56
+ s.add_development_dependency("jferris-mocha")
57
+ s.add_development_dependency("nokogiri")
58
+ s.add_development_dependency("shoulda")
59
+
53
60
  s.authors = ["thoughtbot, inc"]
54
61
  s.email = %q{support@hoptoadapp.com}
55
62
  s.homepage = "http://www.hoptoadapp.com"
@@ -11,6 +11,10 @@ class HoptoadGenerator < Rails::Generator::Base
11
11
  puts "Must pass --api-key or create config/initializers/hoptoad.rb"
12
12
  exit
13
13
  end
14
+ if plugin_is_present?
15
+ puts "You must first remove the hoptoad_notifier plugin. Please run: script/plugin remove hoptoad_notifier"
16
+ exit
17
+ end
14
18
  record do |m|
15
19
  m.directory 'lib/tasks'
16
20
  m.file 'hoptoad_notifier_tasks.rake', 'lib/tasks/hoptoad_notifier_tasks.rake'
@@ -43,4 +47,8 @@ class HoptoadGenerator < Rails::Generator::Base
43
47
  def capistrano_hook
44
48
  IO.read(source_path('capistrano_hook.rb'))
45
49
  end
50
+
51
+ def plugin_is_present?
52
+ File.exists?('vendor/plugins/hoptoad_notifier')
53
+ end
46
54
  end
@@ -9,7 +9,7 @@ module HoptoadNotifier
9
9
  end
10
10
 
11
11
  HoptoadNotifier.configure(true) do |config|
12
- config.logger = rails_logger
12
+ config.logger = rails_logger if config.respond_to? :logger
13
13
  end
14
14
  end
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module HoptoadNotifier
2
- VERSION = "2.1.2".freeze
2
+ VERSION = "2.1.3".freeze
3
3
  end
data/test/helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'test/unit'
2
2
  require 'rubygems'
3
3
 
4
- gem 'jferris-mocha', '0.9.5.0.1241126838'
4
+ gem 'jferris-mocha', '>= 0.9.5.0.1241126838'
5
5
 
6
6
  require 'shoulda'
7
7
  require 'mocha'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoptoad_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot, inc
@@ -9,10 +9,69 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-21 00:00:00 -05:00
12
+ date: 2010-01-27 00:00:00 -05:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activesupport
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: activerecord
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: actionpack
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: jferris-mocha
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: nokogiri
57
+ type: :development
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ - !ruby/object:Gem::Dependency
66
+ name: shoulda
67
+ type: :development
68
+ version_requirement:
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: "0"
74
+ version:
16
75
  description:
17
76
  email: support@hoptoadapp.com
18
77
  executables: []