errplane 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -4,3 +4,4 @@
4
4
  Gemfile.lock
5
5
  pkg/*
6
6
  spec/app/log
7
+ spec/rails2/log
data/Rakefile CHANGED
@@ -22,7 +22,6 @@ begin
22
22
  config.color_enabled = true
23
23
  config.tty = true
24
24
  config.formatter = :documentation
25
- config.mock_with :rr
26
25
  end
27
26
  rescue LoadError
28
27
  require 'spec/rake/spectask'
data/errplane.gemspec CHANGED
@@ -20,17 +20,16 @@ Gem::Specification.new do |s|
20
20
 
21
21
  s.licenses = ['MIT']
22
22
 
23
- s.add_dependency 'activesupport', ['>= 2.3.14']
24
- s.add_dependency 'actionpack', ['>= 2.3.14']
25
- s.add_dependency 'json', ['>= 0']
23
+ s.add_runtime_dependency 'json'
26
24
 
25
+ s.add_development_dependency 'activesupport', ['>= 2.3.14']
26
+ s.add_development_dependency 'actionpack', ['>= 2.3.14']
27
27
  s.add_development_dependency 'bundler', ['>= 1.0.0']
28
28
  s.add_development_dependency 'fakeweb', ['>= 0']
29
- s.add_development_dependency 'tzinfo', ['>= 0']
29
+ s.add_development_dependency 'guard', ['>= 0']
30
+ s.add_development_dependency 'guard-rspec', ['>= 0']
30
31
  s.add_development_dependency 'rake', ['>= 0']
31
32
  s.add_development_dependency 'rdoc', ['>= 0']
32
- s.add_development_dependency 'rr', ['>= 0']
33
33
  s.add_development_dependency 'rspec', ['>= 0']
34
- s.add_development_dependency 'ruby-fsevent', ['>= 0']
35
- s.add_development_dependency 'watchr', ['>= 0']
34
+ s.add_development_dependency 'tzinfo', ['>= 0']
36
35
  end
@@ -2,8 +2,6 @@ PATH
2
2
  remote: /Users/todd/Projects/errplane/gem
3
3
  specs:
4
4
  errplane (0.4.2)
5
- actionpack (>= 2.3.14)
6
- activesupport (>= 2.3.14)
7
5
  json
8
6
 
9
7
  GEM
@@ -20,9 +18,19 @@ GEM
20
18
  activesupport (= 2.3.14)
21
19
  activesupport (2.3.14)
22
20
  fakeweb (1.3.0)
21
+ ffi (1.1.4)
22
+ guard (1.3.0)
23
+ listen (>= 0.4.2)
24
+ thor (>= 0.14.6)
25
+ guard-rspec (1.2.1)
26
+ guard (>= 1.1)
23
27
  hoe (3.0.6)
24
28
  rake (~> 0.8)
25
29
  json (1.7.3)
30
+ listen (0.4.7)
31
+ rb-fchange (~> 0.0.5)
32
+ rb-fsevent (~> 0.9.1)
33
+ rb-inotify (~> 0.8.8)
26
34
  rack (1.1.3)
27
35
  rails (2.3.14)
28
36
  actionmailer (= 2.3.14)
@@ -32,33 +40,37 @@ GEM
32
40
  activesupport (= 2.3.14)
33
41
  rake (>= 0.8.3)
34
42
  rake (0.9.2.2)
43
+ rb-fchange (0.0.5)
44
+ ffi
45
+ rb-fsevent (0.9.1)
46
+ rb-inotify (0.8.8)
47
+ ffi (>= 0.5.0)
35
48
  rdoc (3.12)
36
49
  json (~> 1.4)
37
- rr (1.0.4)
38
50
  rspec (1.3.2)
39
51
  rspec-rails (1.3.4)
40
52
  rack (>= 1.0.0)
41
53
  rspec (~> 1.3.1)
42
- ruby-fsevent (0.2.1)
43
54
  test-unit (1.2.3)
44
55
  hoe (>= 1.5.1)
56
+ thor (0.15.4)
45
57
  tzinfo (0.3.33)
46
- watchr (0.7)
47
58
 
48
59
  PLATFORMS
49
60
  ruby
50
61
 
51
62
  DEPENDENCIES
63
+ actionpack (>= 2.3.14)
64
+ activesupport (>= 2.3.14)
52
65
  bundler (>= 1.0.0)
53
66
  errplane!
54
67
  fakeweb
68
+ guard
69
+ guard-rspec
55
70
  rails (~> 2.3.14)
56
71
  rake
57
72
  rdoc
58
- rr
59
73
  rspec (~> 1.3)
60
74
  rspec-rails (~> 1.3)
61
- ruby-fsevent
62
75
  test-unit (= 1.2.3)
63
76
  tzinfo
64
- watchr
@@ -2,8 +2,6 @@ PATH
2
2
  remote: /Users/todd/Projects/errplane/gem
3
3
  specs:
4
4
  errplane (0.4.2)
5
- actionpack (>= 2.3.14)
6
- activesupport (>= 2.3.14)
7
5
  json
8
6
 
9
7
  GEM
@@ -30,8 +28,18 @@ GEM
30
28
  erubis (2.6.6)
31
29
  abstract (>= 1.0.0)
32
30
  fakeweb (1.3.0)
31
+ ffi (1.1.4)
32
+ guard (1.3.0)
33
+ listen (>= 0.4.2)
34
+ thor (>= 0.14.6)
35
+ guard-rspec (1.2.1)
36
+ guard (>= 1.1)
33
37
  i18n (0.5.0)
34
38
  json (1.7.3)
39
+ listen (0.4.7)
40
+ rb-fchange (~> 0.0.5)
41
+ rb-fsevent (~> 0.9.1)
42
+ rb-inotify (~> 0.8.8)
35
43
  rack (1.2.5)
36
44
  rack-mount (0.6.14)
37
45
  rack (>= 1.0.0)
@@ -44,9 +52,13 @@ GEM
44
52
  rdoc (~> 3.4)
45
53
  thor (~> 0.14.4)
46
54
  rake (0.9.2.2)
55
+ rb-fchange (0.0.5)
56
+ ffi
57
+ rb-fsevent (0.9.1)
58
+ rb-inotify (0.8.8)
59
+ ffi (>= 0.5.0)
47
60
  rdoc (3.12)
48
61
  json (~> 1.4)
49
- rr (1.0.4)
50
62
  rspec (2.11.0)
51
63
  rspec-core (~> 2.11.0)
52
64
  rspec-expectations (~> 2.11.0)
@@ -60,10 +72,8 @@ GEM
60
72
  activesupport (>= 3.0)
61
73
  railties (>= 3.0)
62
74
  rspec (~> 2.11.0)
63
- ruby-fsevent (0.2.1)
64
75
  thor (0.14.6)
65
76
  tzinfo (0.3.33)
66
- watchr (0.7)
67
77
 
68
78
  PLATFORMS
69
79
  ruby
@@ -74,11 +84,10 @@ DEPENDENCIES
74
84
  bundler (>= 1.0.0)
75
85
  errplane!
76
86
  fakeweb
87
+ guard
88
+ guard-rspec
77
89
  rake
78
90
  rdoc
79
- rr
80
91
  rspec
81
92
  rspec-rails (>= 2.0)
82
- ruby-fsevent
83
93
  tzinfo
84
- watchr
@@ -2,8 +2,6 @@ PATH
2
2
  remote: /Users/todd/Projects/errplane/gem
3
3
  specs:
4
4
  errplane (0.4.2)
5
- actionpack (>= 2.3.14)
6
- activesupport (>= 2.3.14)
7
5
  json
8
6
 
9
7
  GEM
@@ -30,9 +28,19 @@ GEM
30
28
  diff-lcs (1.1.3)
31
29
  erubis (2.7.0)
32
30
  fakeweb (1.3.0)
31
+ ffi (1.1.4)
32
+ guard (1.3.0)
33
+ listen (>= 0.4.2)
34
+ thor (>= 0.14.6)
35
+ guard-rspec (1.2.1)
36
+ guard (>= 1.1)
33
37
  hike (1.2.1)
34
38
  i18n (0.6.0)
35
39
  json (1.7.3)
40
+ listen (0.4.7)
41
+ rb-fchange (~> 0.0.5)
42
+ rb-fsevent (~> 0.9.1)
43
+ rb-inotify (~> 0.8.8)
36
44
  multi_json (1.2.0)
37
45
  rack (1.3.6)
38
46
  rack-cache (1.2)
@@ -51,9 +59,13 @@ GEM
51
59
  rdoc (~> 3.4)
52
60
  thor (~> 0.14.6)
53
61
  rake (0.9.2.2)
62
+ rb-fchange (0.0.5)
63
+ ffi
64
+ rb-fsevent (0.9.1)
65
+ rb-inotify (0.8.8)
66
+ ffi (>= 0.5.0)
54
67
  rdoc (3.12)
55
68
  json (~> 1.4)
56
- rr (1.0.4)
57
69
  rspec (2.11.0)
58
70
  rspec-core (~> 2.11.0)
59
71
  rspec-expectations (~> 2.11.0)
@@ -67,7 +79,6 @@ GEM
67
79
  activesupport (>= 3.0)
68
80
  railties (>= 3.0)
69
81
  rspec (~> 2.11.0)
70
- ruby-fsevent (0.2.1)
71
82
  sprockets (2.0.4)
72
83
  hike (~> 1.2)
73
84
  rack (~> 1.0)
@@ -75,7 +86,6 @@ GEM
75
86
  thor (0.14.6)
76
87
  tilt (1.3.3)
77
88
  tzinfo (0.3.33)
78
- watchr (0.7)
79
89
 
80
90
  PLATFORMS
81
91
  ruby
@@ -86,11 +96,10 @@ DEPENDENCIES
86
96
  bundler (>= 1.0.0)
87
97
  errplane!
88
98
  fakeweb
99
+ guard
100
+ guard-rspec
89
101
  rake
90
102
  rdoc
91
- rr
92
103
  rspec
93
104
  rspec-rails (>= 2.0)
94
- ruby-fsevent
95
105
  tzinfo
96
- watchr
@@ -2,8 +2,6 @@ PATH
2
2
  remote: /Users/todd/Projects/errplane/gem
3
3
  specs:
4
4
  errplane (0.4.2)
5
- actionpack (>= 2.3.14)
6
- activesupport (>= 2.3.14)
7
5
  json
8
6
 
9
7
  GEM
@@ -29,10 +27,20 @@ GEM
29
27
  diff-lcs (1.1.3)
30
28
  erubis (2.7.0)
31
29
  fakeweb (1.3.0)
30
+ ffi (1.1.4)
31
+ guard (1.3.0)
32
+ listen (>= 0.4.2)
33
+ thor (>= 0.14.6)
34
+ guard-rspec (1.2.1)
35
+ guard (>= 1.1)
32
36
  hike (1.2.1)
33
37
  i18n (0.6.0)
34
38
  journey (1.0.4)
35
39
  json (1.7.3)
40
+ listen (0.4.7)
41
+ rb-fchange (~> 0.0.5)
42
+ rb-fsevent (~> 0.9.1)
43
+ rb-inotify (~> 0.8.8)
36
44
  multi_json (1.3.6)
37
45
  rack (1.4.1)
38
46
  rack-cache (1.2)
@@ -49,9 +57,13 @@ GEM
49
57
  rdoc (~> 3.4)
50
58
  thor (>= 0.14.6, < 2.0)
51
59
  rake (0.9.2.2)
60
+ rb-fchange (0.0.5)
61
+ ffi
62
+ rb-fsevent (0.9.1)
63
+ rb-inotify (0.8.8)
64
+ ffi (>= 0.5.0)
52
65
  rdoc (3.12)
53
66
  json (~> 1.4)
54
- rr (1.0.4)
55
67
  rspec (2.11.0)
56
68
  rspec-core (~> 2.11.0)
57
69
  rspec-expectations (~> 2.11.0)
@@ -65,7 +77,6 @@ GEM
65
77
  activesupport (>= 3.0)
66
78
  railties (>= 3.0)
67
79
  rspec (~> 2.11.0)
68
- ruby-fsevent (0.2.1)
69
80
  sprockets (2.1.3)
70
81
  hike (~> 1.2)
71
82
  rack (~> 1.0)
@@ -73,7 +84,6 @@ GEM
73
84
  thor (0.15.4)
74
85
  tilt (1.3.3)
75
86
  tzinfo (0.3.33)
76
- watchr (0.7)
77
87
 
78
88
  PLATFORMS
79
89
  ruby
@@ -84,11 +94,10 @@ DEPENDENCIES
84
94
  bundler (>= 1.0.0)
85
95
  errplane!
86
96
  fakeweb
97
+ guard
98
+ guard-rspec
87
99
  rake
88
100
  rdoc
89
- rr
90
101
  rspec
91
102
  rspec-rails (>= 2.0)
92
- ruby-fsevent
93
103
  tzinfo
94
- watchr
@@ -0,0 +1,24 @@
1
+ class ErrplaneGenerator < Rails::Generator::Base
2
+ def add_options!(option)
3
+ option.on("-k", "--api-key=API_KEY", String, "API key for your Errplane organization") {|v| options[:api_key] = v}
4
+ option.on("-a", "--application-id=APP_ID", String, "Your Errplane application id (optional)") {|v| options[:application_id] = v}
5
+ end
6
+
7
+ def manifest
8
+ if options[:api_key].blank?
9
+ puts "You must provide an API key using -k or --api-key."
10
+ exit
11
+ end
12
+ record do |m|
13
+ m.template "initializer.rb", "config/initializers/errplane.rb",
14
+ :assigns => {
15
+ :application_id => options[:application_id] || secure_random.hex(4),
16
+ :api_key => options[:api_key]
17
+ }
18
+ end
19
+ end
20
+
21
+ def secure_random
22
+ defined?(SecureRandom) ? SecureRandom : ActiveSupport::SecureRandom
23
+ end
24
+ end
@@ -0,0 +1,6 @@
1
+ require "errplane"
2
+
3
+ Errplane.configure do |config|
4
+ config.api_key = "<%= api_key %>"
5
+ config.application_id = "<%= application_id %>"
6
+ end
data/lib/errplane.rb CHANGED
@@ -95,5 +95,3 @@ module Errplane
95
95
  end
96
96
  end
97
97
  end
98
-
99
- require "errplane/rails" if defined?(Rails) && !defined?(Rails::Railtie)
@@ -1,3 +1,3 @@
1
1
  module Errplane
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
data/rails/init.rb ADDED
@@ -0,0 +1 @@
1
+ require "errplane/rails"
data/spec/spec_helper.rb CHANGED
@@ -42,7 +42,5 @@ if defined? Sinatra
42
42
  require 'spec_helper_for_sinatra'
43
43
  end
44
44
 
45
- # Requires supporting files with custom matchers and macros, etc,
46
- # in ./support/ and its subdirectories.
47
45
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
48
46
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errplane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,16 +9,16 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-03 00:00:00.000000000 Z
12
+ date: 2012-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: activesupport
15
+ name: json
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.3.14
21
+ version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,16 +26,16 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 2.3.14
29
+ version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
- name: actionpack
31
+ name: activesupport
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
37
  version: 2.3.14
38
- type: :runtime
38
+ type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
@@ -44,21 +44,21 @@ dependencies:
44
44
  - !ruby/object:Gem::Version
45
45
  version: 2.3.14
46
46
  - !ruby/object:Gem::Dependency
47
- name: json
47
+ name: actionpack
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
51
  - - ! '>='
52
52
  - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :runtime
53
+ version: 2.3.14
54
+ type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 2.3.14
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: bundler
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -92,7 +92,7 @@ dependencies:
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  - !ruby/object:Gem::Dependency
95
- name: tzinfo
95
+ name: guard
96
96
  requirement: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
@@ -108,7 +108,7 @@ dependencies:
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  - !ruby/object:Gem::Dependency
111
- name: rake
111
+ name: guard-rspec
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -124,7 +124,7 @@ dependencies:
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
- name: rdoc
127
+ name: rake
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
@@ -140,7 +140,7 @@ dependencies:
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  - !ruby/object:Gem::Dependency
143
- name: rr
143
+ name: rdoc
144
144
  requirement: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
@@ -172,23 +172,7 @@ dependencies:
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  - !ruby/object:Gem::Dependency
175
- name: ruby-fsevent
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ! '>='
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
- type: :development
183
- prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ! '>='
188
- - !ruby/object:Gem::Version
189
- version: '0'
190
- - !ruby/object:Gem::Dependency
191
- name: watchr
175
+ name: tzinfo
192
176
  requirement: !ruby/object:Gem::Requirement
193
177
  none: false
194
178
  requirements:
@@ -226,6 +210,8 @@ files:
226
210
  - gemfiles/Gemfile.rails-3.1.x.lock
227
211
  - gemfiles/Gemfile.rails-3.2.x
228
212
  - gemfiles/Gemfile.rails-3.2.x.lock
213
+ - generators/errplane/errplane_generator.rb
214
+ - generators/errplane/templates/initializer.rb
229
215
  - lib/errplane.rb
230
216
  - lib/errplane/backtrace.rb
231
217
  - lib/errplane/black_box.rb
@@ -245,6 +231,7 @@ files:
245
231
  - lib/errplane/version.rb
246
232
  - lib/rails/generators/errplane/errplane_generator.rb
247
233
  - lib/rails/generators/errplane/templates/initializer.rb
234
+ - rails/init.rb
248
235
  - spec/app/rails2.rb
249
236
  - spec/app/rails3.rb
250
237
  - spec/controllers/widgets_controller_spec.rb
@@ -272,10 +259,6 @@ files:
272
259
  - spec/rails2/config/locales/en.yml
273
260
  - spec/rails2/config/routes.rb
274
261
  - spec/rails2/lib/tasks/rspec.rake
275
- - spec/rails2/log/development.log
276
- - spec/rails2/log/production.log
277
- - spec/rails2/log/server.log
278
- - spec/rails2/log/test.log
279
262
  - spec/rails2/public/404.html
280
263
  - spec/rails2/public/422.html
281
264
  - spec/rails2/public/500.html
@@ -308,7 +291,6 @@ files:
308
291
  - spec/unit/black_box_spec.rb
309
292
  - spec/unit/configuration_spec.rb
310
293
  - spec/unit/errplane_spec.rb
311
- - specs.watchr
312
294
  homepage: http://errplane.com
313
295
  licenses:
314
296
  - MIT
@@ -362,10 +344,6 @@ test_files:
362
344
  - spec/rails2/config/locales/en.yml
363
345
  - spec/rails2/config/routes.rb
364
346
  - spec/rails2/lib/tasks/rspec.rake
365
- - spec/rails2/log/development.log
366
- - spec/rails2/log/production.log
367
- - spec/rails2/log/server.log
368
- - spec/rails2/log/test.log
369
347
  - spec/rails2/public/404.html
370
348
  - spec/rails2/public/422.html
371
349
  - spec/rails2/public/500.html