errplane 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ spec/app/log
data/Gemfile CHANGED
@@ -1,11 +1,3 @@
1
1
  source :rubygems
2
2
 
3
3
  gemspec
4
-
5
- group :development do
6
- gem "capybara"
7
- gem "combustion"
8
- gem "rspec-rails"
9
- gem "sqlite3"
10
- gem "webmock"
11
- end
data/Rakefile CHANGED
@@ -1 +1,42 @@
1
- require "bundler/gem_tasks"
1
+ # encoding: utf-8
2
+
3
+ require 'bundler'
4
+ Bundler::GemHelper.install_tasks
5
+
6
+ require 'rspec/core'
7
+ require 'rspec/core/rake_task'
8
+
9
+ RSpec::Core::RakeTask.new(:spec) do |spec|
10
+ spec.pattern = FileList['spec/**/*_spec.rb']
11
+ end
12
+
13
+ task :default => "spec:all"
14
+
15
+ namespace :spec do
16
+ %w(rails_3.2 rails_3.1 rails_3.0 rails_2.3 sinatra).each do |gemfile|
17
+ desc "Run Tests against #{gemfile}"
18
+ task gemfile do
19
+ sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
20
+ sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake -t spec"
21
+ end
22
+ end
23
+
24
+ desc "Run Tests against all ORMs"
25
+ task :all do
26
+ %w(rails_3.2 rails_3.1 rails_3.0 rails_2.3 sinatra).each do |gemfile|
27
+ sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
28
+ sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
29
+ end
30
+ end
31
+ end
32
+
33
+ # require 'rdoc/task'
34
+
35
+ # Rake::RDocTask.new do |rdoc|
36
+ # require 'errplane/version'
37
+
38
+ # rdoc.rdoc_dir = 'rdoc'
39
+ # rdoc.title = "Errplane #{Errplane::VERSION}"
40
+ # rdoc.rdoc_files.include('README*')
41
+ # rdoc.rdoc_files.include('lib/**/*.rb')
42
+ # end
@@ -18,6 +18,19 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- # s.add_development_dependency "combustion"
22
- # s.add_runtime_dependency "rest-client"
21
+ s.licenses = ['MIT']
22
+
23
+ s.add_dependency 'activesupport', ['>= 2.3.14']
24
+ s.add_dependency 'actionpack', ['>= 2.3.14']
25
+
26
+ s.add_development_dependency 'bundler', ['>= 1.0.0']
27
+ s.add_development_dependency 'rake', ['>= 0']
28
+ s.add_development_dependency 'sqlite3', ['>= 0']
29
+ s.add_development_dependency 'tzinfo', ['>= 0']
30
+ s.add_development_dependency 'rspec', ['>= 0']
31
+ s.add_development_dependency 'rr', ['>= 0']
32
+ s.add_development_dependency 'capybara', ['>= 1.0']
33
+ s.add_development_dependency 'database_cleaner', ['>= 0']
34
+ s.add_development_dependency 'rdoc', ['>= 0']
35
+ s.add_development_dependency 'webmock', ['>= 0']
23
36
  end
@@ -0,0 +1,6 @@
1
+ source :rubygems
2
+
3
+ gem 'rails', '>= 2.3.14'
4
+ gem 'rspec-rails', '>= 1.3'
5
+
6
+ gemspec :path => '../'
@@ -0,0 +1,148 @@
1
+ PATH
2
+ remote: /Users/todd/Projects/errplane/gem
3
+ specs:
4
+ errplane (0.2.5)
5
+ actionpack (>= 2.3.14)
6
+ activesupport (>= 2.3.14)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionmailer (3.2.3)
12
+ actionpack (= 3.2.3)
13
+ mail (~> 2.4.4)
14
+ actionpack (3.2.3)
15
+ activemodel (= 3.2.3)
16
+ activesupport (= 3.2.3)
17
+ builder (~> 3.0.0)
18
+ erubis (~> 2.7.0)
19
+ journey (~> 1.0.1)
20
+ rack (~> 1.4.0)
21
+ rack-cache (~> 1.2)
22
+ rack-test (~> 0.6.1)
23
+ sprockets (~> 2.1.2)
24
+ activemodel (3.2.3)
25
+ activesupport (= 3.2.3)
26
+ builder (~> 3.0.0)
27
+ activerecord (3.2.3)
28
+ activemodel (= 3.2.3)
29
+ activesupport (= 3.2.3)
30
+ arel (~> 3.0.2)
31
+ tzinfo (~> 0.3.29)
32
+ activeresource (3.2.3)
33
+ activemodel (= 3.2.3)
34
+ activesupport (= 3.2.3)
35
+ activesupport (3.2.3)
36
+ i18n (~> 0.6)
37
+ multi_json (~> 1.0)
38
+ addressable (2.2.8)
39
+ arel (3.0.2)
40
+ builder (3.0.0)
41
+ capybara (1.1.2)
42
+ mime-types (>= 1.16)
43
+ nokogiri (>= 1.3.3)
44
+ rack (>= 1.0.0)
45
+ rack-test (>= 0.5.4)
46
+ selenium-webdriver (~> 2.0)
47
+ xpath (~> 0.1.4)
48
+ childprocess (0.3.2)
49
+ ffi (~> 1.0.6)
50
+ crack (0.3.1)
51
+ database_cleaner (0.8.0)
52
+ diff-lcs (1.1.3)
53
+ erubis (2.7.0)
54
+ ffi (1.0.11)
55
+ hike (1.2.1)
56
+ i18n (0.6.0)
57
+ journey (1.0.4)
58
+ json (1.7.1)
59
+ libwebsocket (0.1.3)
60
+ addressable
61
+ mail (2.4.4)
62
+ i18n (>= 0.4.0)
63
+ mime-types (~> 1.16)
64
+ treetop (~> 1.4.8)
65
+ mime-types (1.18)
66
+ multi_json (1.3.4)
67
+ nokogiri (1.5.2)
68
+ polyglot (0.3.3)
69
+ rack (1.4.1)
70
+ rack-cache (1.2)
71
+ rack (>= 0.4)
72
+ rack-ssl (1.3.2)
73
+ rack
74
+ rack-test (0.6.1)
75
+ rack (>= 1.0)
76
+ rails (3.2.3)
77
+ actionmailer (= 3.2.3)
78
+ actionpack (= 3.2.3)
79
+ activerecord (= 3.2.3)
80
+ activeresource (= 3.2.3)
81
+ activesupport (= 3.2.3)
82
+ bundler (~> 1.0)
83
+ railties (= 3.2.3)
84
+ railties (3.2.3)
85
+ actionpack (= 3.2.3)
86
+ activesupport (= 3.2.3)
87
+ rack-ssl (~> 1.3.2)
88
+ rake (>= 0.8.7)
89
+ rdoc (~> 3.4)
90
+ thor (~> 0.14.6)
91
+ rake (0.9.2.2)
92
+ rdoc (3.12)
93
+ json (~> 1.4)
94
+ rr (1.0.4)
95
+ rspec (2.10.0)
96
+ rspec-core (~> 2.10.0)
97
+ rspec-expectations (~> 2.10.0)
98
+ rspec-mocks (~> 2.10.0)
99
+ rspec-core (2.10.0)
100
+ rspec-expectations (2.10.0)
101
+ diff-lcs (~> 1.1.3)
102
+ rspec-mocks (2.10.1)
103
+ rspec-rails (2.10.1)
104
+ actionpack (>= 3.0)
105
+ activesupport (>= 3.0)
106
+ railties (>= 3.0)
107
+ rspec (~> 2.10.0)
108
+ rubyzip (0.9.8)
109
+ selenium-webdriver (2.21.2)
110
+ childprocess (>= 0.2.5)
111
+ ffi (~> 1.0)
112
+ libwebsocket (~> 0.1.3)
113
+ multi_json (~> 1.0)
114
+ rubyzip
115
+ sprockets (2.1.3)
116
+ hike (~> 1.2)
117
+ rack (~> 1.0)
118
+ tilt (~> 1.1, != 1.3.0)
119
+ sqlite3 (1.3.6)
120
+ thor (0.14.6)
121
+ tilt (1.3.3)
122
+ treetop (1.4.10)
123
+ polyglot
124
+ polyglot (>= 0.3.1)
125
+ tzinfo (0.3.33)
126
+ webmock (1.8.7)
127
+ addressable (>= 2.2.7)
128
+ crack (>= 0.1.7)
129
+ xpath (0.1.4)
130
+ nokogiri (~> 1.3)
131
+
132
+ PLATFORMS
133
+ ruby
134
+
135
+ DEPENDENCIES
136
+ bundler (>= 1.0.0)
137
+ capybara (>= 1.0)
138
+ database_cleaner
139
+ errplane!
140
+ rails (>= 2.3.14)
141
+ rake
142
+ rdoc
143
+ rr
144
+ rspec
145
+ rspec-rails (>= 1.3)
146
+ sqlite3
147
+ tzinfo
148
+ webmock
@@ -0,0 +1,6 @@
1
+ source :rubygems
2
+
3
+ gem 'rails', '>= 3.0.13'
4
+ gem 'rspec-rails', '>= 2.0'
5
+
6
+ gemspec :path => '../'
@@ -0,0 +1,148 @@
1
+ PATH
2
+ remote: /Users/todd/Projects/errplane/gem
3
+ specs:
4
+ errplane (0.2.5)
5
+ actionpack (>= 2.3.14)
6
+ activesupport (>= 2.3.14)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionmailer (3.2.3)
12
+ actionpack (= 3.2.3)
13
+ mail (~> 2.4.4)
14
+ actionpack (3.2.3)
15
+ activemodel (= 3.2.3)
16
+ activesupport (= 3.2.3)
17
+ builder (~> 3.0.0)
18
+ erubis (~> 2.7.0)
19
+ journey (~> 1.0.1)
20
+ rack (~> 1.4.0)
21
+ rack-cache (~> 1.2)
22
+ rack-test (~> 0.6.1)
23
+ sprockets (~> 2.1.2)
24
+ activemodel (3.2.3)
25
+ activesupport (= 3.2.3)
26
+ builder (~> 3.0.0)
27
+ activerecord (3.2.3)
28
+ activemodel (= 3.2.3)
29
+ activesupport (= 3.2.3)
30
+ arel (~> 3.0.2)
31
+ tzinfo (~> 0.3.29)
32
+ activeresource (3.2.3)
33
+ activemodel (= 3.2.3)
34
+ activesupport (= 3.2.3)
35
+ activesupport (3.2.3)
36
+ i18n (~> 0.6)
37
+ multi_json (~> 1.0)
38
+ addressable (2.2.8)
39
+ arel (3.0.2)
40
+ builder (3.0.0)
41
+ capybara (1.1.2)
42
+ mime-types (>= 1.16)
43
+ nokogiri (>= 1.3.3)
44
+ rack (>= 1.0.0)
45
+ rack-test (>= 0.5.4)
46
+ selenium-webdriver (~> 2.0)
47
+ xpath (~> 0.1.4)
48
+ childprocess (0.3.2)
49
+ ffi (~> 1.0.6)
50
+ crack (0.3.1)
51
+ database_cleaner (0.8.0)
52
+ diff-lcs (1.1.3)
53
+ erubis (2.7.0)
54
+ ffi (1.0.11)
55
+ hike (1.2.1)
56
+ i18n (0.6.0)
57
+ journey (1.0.4)
58
+ json (1.7.1)
59
+ libwebsocket (0.1.3)
60
+ addressable
61
+ mail (2.4.4)
62
+ i18n (>= 0.4.0)
63
+ mime-types (~> 1.16)
64
+ treetop (~> 1.4.8)
65
+ mime-types (1.18)
66
+ multi_json (1.3.4)
67
+ nokogiri (1.5.2)
68
+ polyglot (0.3.3)
69
+ rack (1.4.1)
70
+ rack-cache (1.2)
71
+ rack (>= 0.4)
72
+ rack-ssl (1.3.2)
73
+ rack
74
+ rack-test (0.6.1)
75
+ rack (>= 1.0)
76
+ rails (3.2.3)
77
+ actionmailer (= 3.2.3)
78
+ actionpack (= 3.2.3)
79
+ activerecord (= 3.2.3)
80
+ activeresource (= 3.2.3)
81
+ activesupport (= 3.2.3)
82
+ bundler (~> 1.0)
83
+ railties (= 3.2.3)
84
+ railties (3.2.3)
85
+ actionpack (= 3.2.3)
86
+ activesupport (= 3.2.3)
87
+ rack-ssl (~> 1.3.2)
88
+ rake (>= 0.8.7)
89
+ rdoc (~> 3.4)
90
+ thor (~> 0.14.6)
91
+ rake (0.9.2.2)
92
+ rdoc (3.12)
93
+ json (~> 1.4)
94
+ rr (1.0.4)
95
+ rspec (2.10.0)
96
+ rspec-core (~> 2.10.0)
97
+ rspec-expectations (~> 2.10.0)
98
+ rspec-mocks (~> 2.10.0)
99
+ rspec-core (2.10.0)
100
+ rspec-expectations (2.10.0)
101
+ diff-lcs (~> 1.1.3)
102
+ rspec-mocks (2.10.1)
103
+ rspec-rails (2.10.1)
104
+ actionpack (>= 3.0)
105
+ activesupport (>= 3.0)
106
+ railties (>= 3.0)
107
+ rspec (~> 2.10.0)
108
+ rubyzip (0.9.8)
109
+ selenium-webdriver (2.21.2)
110
+ childprocess (>= 0.2.5)
111
+ ffi (~> 1.0)
112
+ libwebsocket (~> 0.1.3)
113
+ multi_json (~> 1.0)
114
+ rubyzip
115
+ sprockets (2.1.3)
116
+ hike (~> 1.2)
117
+ rack (~> 1.0)
118
+ tilt (~> 1.1, != 1.3.0)
119
+ sqlite3 (1.3.6)
120
+ thor (0.14.6)
121
+ tilt (1.3.3)
122
+ treetop (1.4.10)
123
+ polyglot
124
+ polyglot (>= 0.3.1)
125
+ tzinfo (0.3.33)
126
+ webmock (1.8.7)
127
+ addressable (>= 2.2.7)
128
+ crack (>= 0.1.7)
129
+ xpath (0.1.4)
130
+ nokogiri (~> 1.3)
131
+
132
+ PLATFORMS
133
+ ruby
134
+
135
+ DEPENDENCIES
136
+ bundler (>= 1.0.0)
137
+ capybara (>= 1.0)
138
+ database_cleaner
139
+ errplane!
140
+ rails (>= 3.0.13)
141
+ rake
142
+ rdoc
143
+ rr
144
+ rspec
145
+ rspec-rails (>= 2.0)
146
+ sqlite3
147
+ tzinfo
148
+ webmock
@@ -0,0 +1,6 @@
1
+ source :rubygems
2
+
3
+ gem 'rails', '>= 3.1.5'
4
+ gem 'rspec-rails', '>= 2.0'
5
+
6
+ gemspec :path => '../'
@@ -0,0 +1,148 @@
1
+ PATH
2
+ remote: /Users/todd/Projects/errplane/gem
3
+ specs:
4
+ errplane (0.2.5)
5
+ actionpack (>= 2.3.14)
6
+ activesupport (>= 2.3.14)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionmailer (3.2.3)
12
+ actionpack (= 3.2.3)
13
+ mail (~> 2.4.4)
14
+ actionpack (3.2.3)
15
+ activemodel (= 3.2.3)
16
+ activesupport (= 3.2.3)
17
+ builder (~> 3.0.0)
18
+ erubis (~> 2.7.0)
19
+ journey (~> 1.0.1)
20
+ rack (~> 1.4.0)
21
+ rack-cache (~> 1.2)
22
+ rack-test (~> 0.6.1)
23
+ sprockets (~> 2.1.2)
24
+ activemodel (3.2.3)
25
+ activesupport (= 3.2.3)
26
+ builder (~> 3.0.0)
27
+ activerecord (3.2.3)
28
+ activemodel (= 3.2.3)
29
+ activesupport (= 3.2.3)
30
+ arel (~> 3.0.2)
31
+ tzinfo (~> 0.3.29)
32
+ activeresource (3.2.3)
33
+ activemodel (= 3.2.3)
34
+ activesupport (= 3.2.3)
35
+ activesupport (3.2.3)
36
+ i18n (~> 0.6)
37
+ multi_json (~> 1.0)
38
+ addressable (2.2.8)
39
+ arel (3.0.2)
40
+ builder (3.0.0)
41
+ capybara (1.1.2)
42
+ mime-types (>= 1.16)
43
+ nokogiri (>= 1.3.3)
44
+ rack (>= 1.0.0)
45
+ rack-test (>= 0.5.4)
46
+ selenium-webdriver (~> 2.0)
47
+ xpath (~> 0.1.4)
48
+ childprocess (0.3.2)
49
+ ffi (~> 1.0.6)
50
+ crack (0.3.1)
51
+ database_cleaner (0.8.0)
52
+ diff-lcs (1.1.3)
53
+ erubis (2.7.0)
54
+ ffi (1.0.11)
55
+ hike (1.2.1)
56
+ i18n (0.6.0)
57
+ journey (1.0.4)
58
+ json (1.7.1)
59
+ libwebsocket (0.1.3)
60
+ addressable
61
+ mail (2.4.4)
62
+ i18n (>= 0.4.0)
63
+ mime-types (~> 1.16)
64
+ treetop (~> 1.4.8)
65
+ mime-types (1.18)
66
+ multi_json (1.3.4)
67
+ nokogiri (1.5.2)
68
+ polyglot (0.3.3)
69
+ rack (1.4.1)
70
+ rack-cache (1.2)
71
+ rack (>= 0.4)
72
+ rack-ssl (1.3.2)
73
+ rack
74
+ rack-test (0.6.1)
75
+ rack (>= 1.0)
76
+ rails (3.2.3)
77
+ actionmailer (= 3.2.3)
78
+ actionpack (= 3.2.3)
79
+ activerecord (= 3.2.3)
80
+ activeresource (= 3.2.3)
81
+ activesupport (= 3.2.3)
82
+ bundler (~> 1.0)
83
+ railties (= 3.2.3)
84
+ railties (3.2.3)
85
+ actionpack (= 3.2.3)
86
+ activesupport (= 3.2.3)
87
+ rack-ssl (~> 1.3.2)
88
+ rake (>= 0.8.7)
89
+ rdoc (~> 3.4)
90
+ thor (~> 0.14.6)
91
+ rake (0.9.2.2)
92
+ rdoc (3.12)
93
+ json (~> 1.4)
94
+ rr (1.0.4)
95
+ rspec (2.10.0)
96
+ rspec-core (~> 2.10.0)
97
+ rspec-expectations (~> 2.10.0)
98
+ rspec-mocks (~> 2.10.0)
99
+ rspec-core (2.10.0)
100
+ rspec-expectations (2.10.0)
101
+ diff-lcs (~> 1.1.3)
102
+ rspec-mocks (2.10.1)
103
+ rspec-rails (2.10.1)
104
+ actionpack (>= 3.0)
105
+ activesupport (>= 3.0)
106
+ railties (>= 3.0)
107
+ rspec (~> 2.10.0)
108
+ rubyzip (0.9.8)
109
+ selenium-webdriver (2.21.2)
110
+ childprocess (>= 0.2.5)
111
+ ffi (~> 1.0)
112
+ libwebsocket (~> 0.1.3)
113
+ multi_json (~> 1.0)
114
+ rubyzip
115
+ sprockets (2.1.3)
116
+ hike (~> 1.2)
117
+ rack (~> 1.0)
118
+ tilt (~> 1.1, != 1.3.0)
119
+ sqlite3 (1.3.6)
120
+ thor (0.14.6)
121
+ tilt (1.3.3)
122
+ treetop (1.4.10)
123
+ polyglot
124
+ polyglot (>= 0.3.1)
125
+ tzinfo (0.3.33)
126
+ webmock (1.8.7)
127
+ addressable (>= 2.2.7)
128
+ crack (>= 0.1.7)
129
+ xpath (0.1.4)
130
+ nokogiri (~> 1.3)
131
+
132
+ PLATFORMS
133
+ ruby
134
+
135
+ DEPENDENCIES
136
+ bundler (>= 1.0.0)
137
+ capybara (>= 1.0)
138
+ database_cleaner
139
+ errplane!
140
+ rails (>= 3.1.5)
141
+ rake
142
+ rdoc
143
+ rr
144
+ rspec
145
+ rspec-rails (>= 2.0)
146
+ sqlite3
147
+ tzinfo
148
+ webmock
@@ -0,0 +1,7 @@
1
+ source :rubygems
2
+
3
+ gem 'actionpack', '>= 3.2.3'
4
+ gem 'activesupport', '>= 3.2.3'
5
+ gem 'rspec-rails', '>= 2.0'
6
+
7
+ gemspec :path => '../'
@@ -0,0 +1,121 @@
1
+ PATH
2
+ remote: /Users/todd/Projects/errplane/gem
3
+ specs:
4
+ errplane (0.2.5)
5
+ actionpack (>= 2.3.14)
6
+ activesupport (>= 2.3.14)
7
+
8
+ GEM
9
+ remote: http://rubygems.org/
10
+ specs:
11
+ actionpack (3.2.3)
12
+ activemodel (= 3.2.3)
13
+ activesupport (= 3.2.3)
14
+ builder (~> 3.0.0)
15
+ erubis (~> 2.7.0)
16
+ journey (~> 1.0.1)
17
+ rack (~> 1.4.0)
18
+ rack-cache (~> 1.2)
19
+ rack-test (~> 0.6.1)
20
+ sprockets (~> 2.1.2)
21
+ activemodel (3.2.3)
22
+ activesupport (= 3.2.3)
23
+ builder (~> 3.0.0)
24
+ activesupport (3.2.3)
25
+ i18n (~> 0.6)
26
+ multi_json (~> 1.0)
27
+ addressable (2.2.8)
28
+ builder (3.0.0)
29
+ capybara (1.1.2)
30
+ mime-types (>= 1.16)
31
+ nokogiri (>= 1.3.3)
32
+ rack (>= 1.0.0)
33
+ rack-test (>= 0.5.4)
34
+ selenium-webdriver (~> 2.0)
35
+ xpath (~> 0.1.4)
36
+ childprocess (0.3.2)
37
+ ffi (~> 1.0.6)
38
+ crack (0.3.1)
39
+ database_cleaner (0.8.0)
40
+ diff-lcs (1.1.3)
41
+ erubis (2.7.0)
42
+ ffi (1.0.11)
43
+ hike (1.2.1)
44
+ i18n (0.6.0)
45
+ journey (1.0.4)
46
+ json (1.7.1)
47
+ libwebsocket (0.1.3)
48
+ addressable
49
+ mime-types (1.18)
50
+ multi_json (1.3.4)
51
+ nokogiri (1.5.2)
52
+ rack (1.4.1)
53
+ rack-cache (1.2)
54
+ rack (>= 0.4)
55
+ rack-ssl (1.3.2)
56
+ rack
57
+ rack-test (0.6.1)
58
+ rack (>= 1.0)
59
+ railties (3.2.3)
60
+ actionpack (= 3.2.3)
61
+ activesupport (= 3.2.3)
62
+ rack-ssl (~> 1.3.2)
63
+ rake (>= 0.8.7)
64
+ rdoc (~> 3.4)
65
+ thor (~> 0.14.6)
66
+ rake (0.9.2.2)
67
+ rdoc (3.12)
68
+ json (~> 1.4)
69
+ rr (1.0.4)
70
+ rspec (2.10.0)
71
+ rspec-core (~> 2.10.0)
72
+ rspec-expectations (~> 2.10.0)
73
+ rspec-mocks (~> 2.10.0)
74
+ rspec-core (2.10.0)
75
+ rspec-expectations (2.10.0)
76
+ diff-lcs (~> 1.1.3)
77
+ rspec-mocks (2.10.1)
78
+ rspec-rails (2.10.1)
79
+ actionpack (>= 3.0)
80
+ activesupport (>= 3.0)
81
+ railties (>= 3.0)
82
+ rspec (~> 2.10.0)
83
+ rubyzip (0.9.8)
84
+ selenium-webdriver (2.21.2)
85
+ childprocess (>= 0.2.5)
86
+ ffi (~> 1.0)
87
+ libwebsocket (~> 0.1.3)
88
+ multi_json (~> 1.0)
89
+ rubyzip
90
+ sprockets (2.1.3)
91
+ hike (~> 1.2)
92
+ rack (~> 1.0)
93
+ tilt (~> 1.1, != 1.3.0)
94
+ sqlite3 (1.3.6)
95
+ thor (0.14.6)
96
+ tilt (1.3.3)
97
+ tzinfo (0.3.33)
98
+ webmock (1.8.7)
99
+ addressable (>= 2.2.7)
100
+ crack (>= 0.1.7)
101
+ xpath (0.1.4)
102
+ nokogiri (~> 1.3)
103
+
104
+ PLATFORMS
105
+ ruby
106
+
107
+ DEPENDENCIES
108
+ actionpack (>= 3.2.3)
109
+ activesupport (>= 3.2.3)
110
+ bundler (>= 1.0.0)
111
+ capybara (>= 1.0)
112
+ database_cleaner
113
+ errplane!
114
+ rake
115
+ rdoc
116
+ rr
117
+ rspec
118
+ rspec-rails (>= 2.0)
119
+ sqlite3
120
+ tzinfo
121
+ webmock
@@ -2,14 +2,6 @@ require 'net/http'
2
2
  require 'net/https'
3
3
  require 'rubygems'
4
4
 
5
- begin
6
- require 'active_support'
7
- require 'active_support/core_ext'
8
- rescue LoadError
9
- require 'activesupport'
10
- require 'activesupport/core_ext'
11
- end
12
-
13
5
  require "errplane/version"
14
6
  require "errplane/black_box"
15
7
  require "errplane/configuration"
@@ -1,3 +1,3 @@
1
1
  module Errplane
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
@@ -1,5 +1,4 @@
1
1
  require 'rails/generators'
2
- require 'active_support'
3
2
 
4
3
  class ErrplaneGenerator < Rails::Generators::Base
5
4
  desc "Description:\n This creates a Rails initializer for Errplane."
@@ -0,0 +1,29 @@
1
+ require 'action_controller/railtie'
2
+
3
+ app = Class.new(Rails::Application)
4
+ app.config.secret_token = '1234567890abcdef1234567890abcdef'
5
+ app.config.session_store :cookie_store, :key => '_myapp_session'
6
+ app.config.active_support.deprecation = :log
7
+ app.config.root = File.dirname(__FILE__)
8
+ Rails.backtrace_cleaner.remove_silencers!
9
+ app.initialize!
10
+
11
+ app.routes.draw do
12
+ resources :widgets
13
+ end
14
+
15
+ Errplane.configure do |config|
16
+ config.api_key = "f123-e456-d789c012"
17
+ config.application_id = "b12r8c72"
18
+ config.logger = Logger.new(STDOUT)
19
+ config.debug = true
20
+ config.ignored_environments = []
21
+ end
22
+
23
+ class ApplicationController < ActionController::Base; end
24
+ class WidgetsController < ApplicationController
25
+ def index; render :nothing => true; end
26
+ def new; return 1/0; end
27
+ end
28
+
29
+ Object.const_set(:ApplicationHelper, Module.new)
@@ -9,18 +9,15 @@ feature "exception handling" do
9
9
 
10
10
  describe "in an action that raises an exception" do
11
11
  scenario "should make an HTTP call to the API" do
12
- stub_request(:post, "#{Errplane.configuration.api_host}/exceptions").to_return(status: 200)
13
-
14
- lambda { visit new_widget_path }.should raise_error
15
-
12
+ stub_request(:post, "#{Errplane.configuration.api_host}/api/v1/applications/#{Errplane.configuration.application_id}/exceptions/test?api_key=f123-e456-d789c012").to_return(status: 200)
13
+ visit new_widget_path
16
14
  assert_requested :post, "#{Errplane.configuration.api_host}/api/v1/applications/#{Errplane.configuration.application_id}/exceptions/test?api_key=f123-e456-d789c012"
17
15
  end
18
16
  end
19
17
 
20
18
  describe "in an action that does not raise an exception" do
21
19
  scenario "should not make an HTTP call to the API" do
22
- lambda { visit widgets_path }.should_not raise_error
23
-
20
+ visit widgets_path
24
21
  assert_not_requested :post, "#{Errplane.configuration.api_host}/api/v1/applications/#{Errplane.configuration.application_id}/exceptions/test?api_key=f123-e456-d789c012"
25
22
  end
26
23
  end
@@ -1,20 +1,37 @@
1
- require 'rubygems'
2
- require 'bundler'
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ ENV["RAILS_ENV"] ||= "test"
3
4
 
4
- Bundler.require :default, :development
5
+ begin
6
+ require 'rails'
7
+ rescue LoadError
8
+ end
9
+
10
+ require 'bundler/setup'
11
+ Bundler.require
5
12
 
6
- require 'capybara/rspec'
13
+ require 'database_cleaner'
7
14
  require 'webmock/rspec'
8
15
 
9
- Combustion.initialize!
16
+ # Simulate a gem providing a subclass of ActiveRecord::Base before the Railtie is loaded.
17
+ # require 'fake_gem' if defined? ActiveRecord
10
18
 
11
- require 'rspec/rails'
12
- require 'capybara/rails'
19
+ if defined? Rails
20
+ require 'app/rails'
13
21
 
14
- RSpec.configure do |config|
15
- config.use_transactional_fixtures = true
22
+ require 'rspec/rails'
16
23
  end
24
+ if defined? Sinatra
25
+ require 'spec_helper_for_sinatra'
26
+ end
27
+
28
+ # Requires supporting files with custom matchers and macros, etc,
29
+ # in ./support/ and its subdirectories.
30
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
17
31
 
18
- class Combustion::Application < Rails::Application
19
- config.action_dispatch.show_exceptions = false
32
+ RSpec.configure do |config|
33
+ config.color_enabled = true
34
+ config.tty = true
35
+ config.formatter = :documentation
36
+ config.mock_with :rr
20
37
  end
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.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,200 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-10 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2012-07-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activesupport
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 2.3.14
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 2.3.14
30
+ - !ruby/object:Gem::Dependency
31
+ name: actionpack
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 2.3.14
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 2.3.14
46
+ - !ruby/object:Gem::Dependency
47
+ name: bundler
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: 1.0.0
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: sqlite3
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: tzinfo
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rspec
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: rr
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: capybara
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '1.0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '1.0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: database_cleaner
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: rdoc
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: webmock
192
+ requirement: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
14
206
  description: This gem provides exception reporting with Errplane for Rails 3.x applications.
15
207
  email:
16
208
  - todd@errplane.com
@@ -25,6 +217,14 @@ files:
25
217
  - Rakefile
26
218
  - config.ru
27
219
  - errplane.gemspec
220
+ - gemfiles/rails_2.3.gemfile
221
+ - gemfiles/rails_2.3.gemfile.lock
222
+ - gemfiles/rails_3.0.gemfile
223
+ - gemfiles/rails_3.0.gemfile.lock
224
+ - gemfiles/rails_3.1.gemfile
225
+ - gemfiles/rails_3.1.gemfile.lock
226
+ - gemfiles/rails_3.2.gemfile
227
+ - gemfiles/rails_3.2.gemfile.lock
28
228
  - lib/errplane.rb
29
229
  - lib/errplane/black_box.rb
30
230
  - lib/errplane/capistrano.rb
@@ -46,6 +246,7 @@ files:
46
246
  - lib/errplane/version.rb
47
247
  - lib/rails/generators/errplane/errplane_generator.rb
48
248
  - lib/rails/generators/errplane/templates/initializer.rb
249
+ - spec/app/rails.rb
49
250
  - spec/controllers/widgets_controller_spec.rb
50
251
  - spec/integration/exceptions_spec.rb
51
252
  - spec/integration/integration_helper.rb
@@ -62,7 +263,8 @@ files:
62
263
  - spec/unit/black_box_spec.rb
63
264
  - spec/unit/errplane_spec.rb
64
265
  homepage: http://errplane.com
65
- licenses: []
266
+ licenses:
267
+ - MIT
66
268
  post_install_message:
67
269
  rdoc_options: []
68
270
  require_paths:
@@ -86,6 +288,7 @@ signing_key:
86
288
  specification_version: 3
87
289
  summary: Rails exception reporting for Errplane.
88
290
  test_files:
291
+ - spec/app/rails.rb
89
292
  - spec/controllers/widgets_controller_spec.rb
90
293
  - spec/integration/exceptions_spec.rb
91
294
  - spec/integration/integration_helper.rb