influxdb-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +15 -0
  2. data/Gemfile +3 -0
  3. data/Gemfile.lock +95 -0
  4. data/README.md +3 -0
  5. data/Rakefile +34 -0
  6. data/config.ru +7 -0
  7. data/gemfiles/Gemfile.rails-3.0.x +8 -0
  8. data/gemfiles/Gemfile.rails-3.0.x.lock +94 -0
  9. data/gemfiles/Gemfile.rails-3.1.x +8 -0
  10. data/gemfiles/Gemfile.rails-3.1.x.lock +121 -0
  11. data/gemfiles/Gemfile.rails-3.2.x +8 -0
  12. data/gemfiles/Gemfile.rails-3.2.x.lock +104 -0
  13. data/gemfiles/Gemfile.rails-4.0.x +8 -0
  14. data/gemfiles/Gemfile.rails-4.0.x.lock +109 -0
  15. data/generators/influxdb/influxdb_generator.rb +48 -0
  16. data/generators/influxdb/templates/initializer.rb +5 -0
  17. data/influxdb-rails.gemspec +33 -0
  18. data/lib/influxdb-rails.rb +82 -0
  19. data/lib/influxdb/rails/air_traffic_controller.rb +39 -0
  20. data/lib/influxdb/rails/backtrace.rb +44 -0
  21. data/lib/influxdb/rails/configuration.rb +117 -0
  22. data/lib/influxdb/rails/exception_presenter.rb +90 -0
  23. data/lib/influxdb/rails/instrumentation.rb +27 -0
  24. data/lib/influxdb/rails/logger.rb +13 -0
  25. data/lib/influxdb/rails/middleware/hijack_render_exception.rb +21 -0
  26. data/lib/influxdb/rails/middleware/hijack_rescue_action_everywhere.rb +32 -0
  27. data/lib/influxdb/rails/rack.rb +28 -0
  28. data/lib/influxdb/rails/rails.rb +39 -0
  29. data/lib/influxdb/rails/railtie.rb +67 -0
  30. data/lib/influxdb/rails/version.rb +5 -0
  31. data/lib/rails/generators/influxdb/influxdb_generator.rb +52 -0
  32. data/lib/rails/generators/influxdb/templates/initializer.rb +4 -0
  33. data/spec/controllers/widgets_controller_spec.rb +15 -0
  34. data/spec/integration/exceptions_spec.rb +37 -0
  35. data/spec/integration/integration_helper.rb +1 -0
  36. data/spec/spec_helper.rb +29 -0
  37. data/spec/suite.sh +42 -0
  38. data/spec/support/rails3/app.rb +24 -0
  39. data/spec/support/rails3/log/test.log +1120 -0
  40. data/spec/support/rails4/app.rb +27 -0
  41. data/spec/unit/backtrace_spec.rb +88 -0
  42. data/spec/unit/configuration_spec.rb +29 -0
  43. data/spec/unit/exception_presenter_spec.rb +69 -0
  44. data/spec/unit/influxdb_rails_spec.rb +67 -0
  45. metadata +226 -0
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZGMzMTQ3OGMxMjY0YTg1ZjI0ZjBiZDIyYTVhMjY0ZjU0Y2Y0OTdhNg==
5
+ data.tar.gz: !binary |-
6
+ MTZmZjMzN2Y2MTA1MGZlYmFiZjAwMTE0NDI2YzJjMmUwNTFkMDg2ZA==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MDQ5MzUwZDI4OGFkMTczZmIzNDk0YjY3NTQ2OTg0ZTIwMDc3MWMzMDczMmI4
10
+ Y2EzYzMwYjJhMGY4ODBhOGQ3ZGZlMzI2ZmYxYzcwMjFjZDMwY2QzYWNkNGI0
11
+ YWJlMWE5Y2Y4NzcyZjZlYjQzMzQyNmRiNGE3ZmEzYTEwMGU4MTA=
12
+ data.tar.gz: !binary |-
13
+ MmE0Yjk3NTg3YzdhZDIyNjY5ZDU3ZWYwY2JmYjI4MWYyYTllYWE0MWE0NjE5
14
+ MGRkZTQyOWU0OWM2MmNjODBhODY0ZTlhMjZlMDEzMzU3NTgyNjM0YTVlYWNm
15
+ MWJmM2ZhYmYwYzE4MjJlYWIwZWZhYWQ2NzM1NmM4MjdiMDljMGU=
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,95 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ influxdb-rails (1.0.0)
5
+ influxdb
6
+ railties
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionpack (3.2.16)
12
+ activemodel (= 3.2.16)
13
+ activesupport (= 3.2.16)
14
+ builder (~> 3.0.0)
15
+ erubis (~> 2.7.0)
16
+ journey (~> 1.0.4)
17
+ rack (~> 1.4.5)
18
+ rack-cache (~> 1.2)
19
+ rack-test (~> 0.6.1)
20
+ sprockets (~> 2.2.1)
21
+ activemodel (3.2.16)
22
+ activesupport (= 3.2.16)
23
+ builder (~> 3.0.0)
24
+ activesupport (3.2.16)
25
+ i18n (~> 0.6, >= 0.6.4)
26
+ multi_json (~> 1.0)
27
+ atomic (1.1.14)
28
+ builder (3.0.4)
29
+ diff-lcs (1.2.5)
30
+ erubis (2.7.0)
31
+ fakeweb (1.3.0)
32
+ hike (1.2.3)
33
+ i18n (0.6.9)
34
+ influxdb (0.0.15)
35
+ json
36
+ journey (1.0.4)
37
+ json (1.8.1)
38
+ multi_json (1.8.4)
39
+ rack (1.4.5)
40
+ rack-cache (1.2)
41
+ rack (>= 0.4)
42
+ rack-ssl (1.3.3)
43
+ rack
44
+ rack-test (0.6.2)
45
+ rack (>= 1.0)
46
+ railties (3.2.16)
47
+ actionpack (= 3.2.16)
48
+ activesupport (= 3.2.16)
49
+ rack-ssl (~> 1.3.2)
50
+ rake (>= 0.8.7)
51
+ rdoc (~> 3.4)
52
+ thor (>= 0.14.6, < 2.0)
53
+ rake (10.1.1)
54
+ rdoc (3.12.2)
55
+ json (~> 1.4)
56
+ rspec (2.14.1)
57
+ rspec-core (~> 2.14.0)
58
+ rspec-expectations (~> 2.14.0)
59
+ rspec-mocks (~> 2.14.0)
60
+ rspec-core (2.14.7)
61
+ rspec-expectations (2.14.5)
62
+ diff-lcs (>= 1.1.3, < 2.0)
63
+ rspec-mocks (2.14.5)
64
+ rspec-rails (2.14.1)
65
+ actionpack (>= 3.0)
66
+ activemodel (>= 3.0)
67
+ activesupport (>= 3.0)
68
+ railties (>= 3.0)
69
+ rspec-core (~> 2.14.0)
70
+ rspec-expectations (~> 2.14.0)
71
+ rspec-mocks (~> 2.14.0)
72
+ sprockets (2.2.2)
73
+ hike (~> 1.2)
74
+ multi_json (~> 1.0)
75
+ rack (~> 1.0)
76
+ tilt (~> 1.1, != 1.3.0)
77
+ thor (0.18.1)
78
+ thread_safe (0.1.3)
79
+ atomic
80
+ tilt (1.4.1)
81
+ tzinfo (1.1.0)
82
+ thread_safe (~> 0.1)
83
+
84
+ PLATFORMS
85
+ ruby
86
+
87
+ DEPENDENCIES
88
+ bundler (>= 1.0.0)
89
+ fakeweb
90
+ influxdb-rails!
91
+ rake
92
+ rdoc
93
+ rspec
94
+ rspec-rails
95
+ tzinfo
data/README.md ADDED
@@ -0,0 +1,3 @@
1
+ InfluxDB for Ruby on Rails
2
+ ========
3
+ [![Build Status](https://secure.travis-ci.org/influxdb/influxdb-ruby.png)](http://travis-ci.org/influxdb/influxdb-ruby)
data/Rakefile ADDED
@@ -0,0 +1,34 @@
1
+ # encoding: utf-8
2
+
3
+ if ENV["BUNDLE_GEMFILE"] == File.expand_path("Gemfile")
4
+ ENV["BUNDLE_GEMFILE"] = "gemfiles/Gemfile.rails-3.2.x"
5
+ end
6
+
7
+ require 'bundler'
8
+ Bundler::GemHelper.install_tasks
9
+
10
+ begin
11
+ targeted_files = ARGV.drop(1)
12
+ file_pattern = targeted_files.empty? ? 'spec/**/*_spec.rb' : targeted_files
13
+
14
+ require 'rspec/core'
15
+ require 'rspec/core/rake_task'
16
+
17
+ RSpec::Core::RakeTask.new(:spec) do |t|
18
+ t.pattern = FileList[file_pattern]
19
+ end
20
+
21
+ RSpec.configure do |config|
22
+ config.color_enabled = true
23
+ config.formatter = :documentation
24
+ end
25
+ rescue LoadError
26
+ require 'spec/rake/spectask'
27
+
28
+ puts file_pattern
29
+
30
+ Spec::Rake::SpecTask.new(:spec) do |t|
31
+ t.pattern = FileList[file_pattern]
32
+ t.spec_opts += ["--color"]
33
+ end
34
+ end
data/config.ru ADDED
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+
4
+ Bundler.require :default, :development
5
+
6
+ Combustion.initialize!
7
+ run Combustion::Application
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "railties", "~> 3.0.15"
4
+ gem 'actionpack', '~> 3.0.15'
5
+ gem 'activesupport', '~> 3.0.15'
6
+ gem 'rspec-rails', '>= 2.0'
7
+
8
+ gemspec :path => '../'
@@ -0,0 +1,94 @@
1
+ PATH
2
+ remote: /Users/todd/Projects/errplane/errplane-ruby
3
+ specs:
4
+ errplane (1.0.12)
5
+ json
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ abstract (1.0.0)
11
+ actionpack (3.0.16)
12
+ activemodel (= 3.0.16)
13
+ activesupport (= 3.0.16)
14
+ builder (~> 2.1.2)
15
+ erubis (~> 2.6.6)
16
+ i18n (~> 0.5.0)
17
+ rack (~> 1.2.5)
18
+ rack-mount (~> 0.6.14)
19
+ rack-test (~> 0.5.7)
20
+ tzinfo (~> 0.3.23)
21
+ activemodel (3.0.16)
22
+ activesupport (= 3.0.16)
23
+ builder (~> 2.1.2)
24
+ i18n (~> 0.5.0)
25
+ activesupport (3.0.16)
26
+ builder (2.1.2)
27
+ diff-lcs (1.1.3)
28
+ erubis (2.6.6)
29
+ abstract (>= 1.0.0)
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)
37
+ i18n (0.5.0)
38
+ json (1.7.4)
39
+ listen (0.4.7)
40
+ rb-fchange (~> 0.0.5)
41
+ rb-fsevent (~> 0.9.1)
42
+ rb-inotify (~> 0.8.8)
43
+ rack (1.2.5)
44
+ rack-mount (0.6.14)
45
+ rack (>= 1.0.0)
46
+ rack-test (0.5.7)
47
+ rack (>= 1.0)
48
+ railties (3.0.16)
49
+ actionpack (= 3.0.16)
50
+ activesupport (= 3.0.16)
51
+ rake (>= 0.8.7)
52
+ rdoc (~> 3.4)
53
+ thor (~> 0.14.4)
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)
60
+ rdoc (3.12)
61
+ json (~> 1.4)
62
+ rspec (2.11.0)
63
+ rspec-core (~> 2.11.0)
64
+ rspec-expectations (~> 2.11.0)
65
+ rspec-mocks (~> 2.11.0)
66
+ rspec-core (2.11.1)
67
+ rspec-expectations (2.11.2)
68
+ diff-lcs (~> 1.1.3)
69
+ rspec-mocks (2.11.1)
70
+ rspec-rails (2.11.0)
71
+ actionpack (>= 3.0)
72
+ activesupport (>= 3.0)
73
+ railties (>= 3.0)
74
+ rspec (~> 2.11.0)
75
+ thor (0.14.6)
76
+ tzinfo (0.3.33)
77
+
78
+ PLATFORMS
79
+ ruby
80
+
81
+ DEPENDENCIES
82
+ actionpack (~> 3.0.15)
83
+ activesupport (~> 3.0.15)
84
+ bundler (>= 1.0.0)
85
+ errplane!
86
+ fakeweb
87
+ guard
88
+ guard-rspec
89
+ railties (~> 3.0.15)
90
+ rake
91
+ rdoc
92
+ rspec
93
+ rspec-rails (>= 2.0)
94
+ tzinfo
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "railties", "~> 3.1.5"
4
+ gem 'actionpack', '~> 3.1.5'
5
+ gem 'activesupport', '~> 3.1.5'
6
+ gem 'rspec-rails', '>= 2.0'
7
+
8
+ gemspec :path => '../'
@@ -0,0 +1,121 @@
1
+ PATH
2
+ remote: /Users/todd/Projects/errplane/errplane-ruby
3
+ specs:
4
+ errplane (1.0.12)
5
+ json
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionpack (3.1.12)
11
+ activemodel (= 3.1.12)
12
+ activesupport (= 3.1.12)
13
+ builder (~> 3.0.0)
14
+ erubis (~> 2.7.0)
15
+ i18n (~> 0.6)
16
+ rack (~> 1.3.6)
17
+ rack-cache (~> 1.2)
18
+ rack-mount (~> 0.8.2)
19
+ rack-test (~> 0.6.1)
20
+ sprockets (~> 2.0.4)
21
+ activemodel (3.1.12)
22
+ activesupport (= 3.1.12)
23
+ builder (~> 3.0.0)
24
+ i18n (~> 0.6)
25
+ activesupport (3.1.12)
26
+ multi_json (~> 1.0)
27
+ builder (3.0.4)
28
+ coderay (1.0.9)
29
+ diff-lcs (1.2.4)
30
+ erubis (2.7.0)
31
+ fakeweb (1.3.0)
32
+ ffi (1.9.0)
33
+ formatador (0.2.4)
34
+ guard (1.8.1)
35
+ formatador (>= 0.2.4)
36
+ listen (>= 1.0.0)
37
+ lumberjack (>= 1.0.2)
38
+ pry (>= 0.9.10)
39
+ thor (>= 0.14.6)
40
+ guard-rspec (3.0.2)
41
+ guard (>= 1.8)
42
+ rspec (~> 2.13)
43
+ hike (1.2.3)
44
+ i18n (0.6.4)
45
+ json (1.8.0)
46
+ listen (1.2.2)
47
+ rb-fsevent (>= 0.9.3)
48
+ rb-inotify (>= 0.9)
49
+ rb-kqueue (>= 0.2)
50
+ lumberjack (1.0.4)
51
+ method_source (0.8.1)
52
+ multi_json (1.7.7)
53
+ pry (0.9.12.2)
54
+ coderay (~> 1.0.5)
55
+ method_source (~> 0.8)
56
+ slop (~> 3.4)
57
+ rack (1.3.10)
58
+ rack-cache (1.2)
59
+ rack (>= 0.4)
60
+ rack-mount (0.8.3)
61
+ rack (>= 1.0.0)
62
+ rack-ssl (1.3.3)
63
+ rack
64
+ rack-test (0.6.2)
65
+ rack (>= 1.0)
66
+ railties (3.1.12)
67
+ actionpack (= 3.1.12)
68
+ activesupport (= 3.1.12)
69
+ rack-ssl (~> 1.3.2)
70
+ rake (>= 0.8.7)
71
+ rdoc (~> 3.4)
72
+ thor (~> 0.14.6)
73
+ rake (10.1.0)
74
+ rb-fsevent (0.9.3)
75
+ rb-inotify (0.9.0)
76
+ ffi (>= 0.5.0)
77
+ rb-kqueue (0.2.0)
78
+ ffi (>= 0.5.0)
79
+ rdoc (3.12.2)
80
+ json (~> 1.4)
81
+ rspec (2.14.0)
82
+ rspec-core (~> 2.14.0)
83
+ rspec-expectations (~> 2.14.0)
84
+ rspec-mocks (~> 2.14.0)
85
+ rspec-core (2.14.2)
86
+ rspec-expectations (2.14.0)
87
+ diff-lcs (>= 1.1.3, < 2.0)
88
+ rspec-mocks (2.14.1)
89
+ rspec-rails (2.14.0)
90
+ actionpack (>= 3.0)
91
+ activesupport (>= 3.0)
92
+ railties (>= 3.0)
93
+ rspec-core (~> 2.14.0)
94
+ rspec-expectations (~> 2.14.0)
95
+ rspec-mocks (~> 2.14.0)
96
+ slop (3.4.5)
97
+ sprockets (2.0.4)
98
+ hike (~> 1.2)
99
+ rack (~> 1.0)
100
+ tilt (~> 1.1, != 1.3.0)
101
+ thor (0.14.6)
102
+ tilt (1.4.1)
103
+ tzinfo (1.0.1)
104
+
105
+ PLATFORMS
106
+ ruby
107
+
108
+ DEPENDENCIES
109
+ actionpack (~> 3.1.5)
110
+ activesupport (~> 3.1.5)
111
+ bundler (>= 1.0.0)
112
+ errplane!
113
+ fakeweb
114
+ guard
115
+ guard-rspec
116
+ railties (~> 3.1.5)
117
+ rake
118
+ rdoc
119
+ rspec
120
+ rspec-rails (>= 2.0)
121
+ tzinfo
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "railties", "~> 3.2.3"
4
+ gem 'actionpack', '~> 3.2.3'
5
+ gem 'activesupport', '~> 3.2.3'
6
+ gem 'rspec-rails', '>= 2.0'
7
+
8
+ gemspec :path => '../'
@@ -0,0 +1,104 @@
1
+ PATH
2
+ remote: /Users/todd/Projects/errplane/errplane-ruby
3
+ specs:
4
+ errplane (1.0.12)
5
+ json
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionpack (3.2.7)
11
+ activemodel (= 3.2.7)
12
+ activesupport (= 3.2.7)
13
+ builder (~> 3.0.0)
14
+ erubis (~> 2.7.0)
15
+ journey (~> 1.0.4)
16
+ rack (~> 1.4.0)
17
+ rack-cache (~> 1.2)
18
+ rack-test (~> 0.6.1)
19
+ sprockets (~> 2.1.3)
20
+ activemodel (3.2.7)
21
+ activesupport (= 3.2.7)
22
+ builder (~> 3.0.0)
23
+ activesupport (3.2.7)
24
+ i18n (~> 0.6)
25
+ multi_json (~> 1.0)
26
+ builder (3.0.0)
27
+ diff-lcs (1.1.3)
28
+ erubis (2.7.0)
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)
36
+ hike (1.2.1)
37
+ i18n (0.6.0)
38
+ journey (1.0.4)
39
+ json (1.7.4)
40
+ listen (0.4.7)
41
+ rb-fchange (~> 0.0.5)
42
+ rb-fsevent (~> 0.9.1)
43
+ rb-inotify (~> 0.8.8)
44
+ multi_json (1.3.6)
45
+ rack (1.4.1)
46
+ rack-cache (1.2)
47
+ rack (>= 0.4)
48
+ rack-ssl (1.3.2)
49
+ rack
50
+ rack-test (0.6.1)
51
+ rack (>= 1.0)
52
+ railties (3.2.7)
53
+ actionpack (= 3.2.7)
54
+ activesupport (= 3.2.7)
55
+ rack-ssl (~> 1.3.2)
56
+ rake (>= 0.8.7)
57
+ rdoc (~> 3.4)
58
+ thor (>= 0.14.6, < 2.0)
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)
65
+ rdoc (3.12)
66
+ json (~> 1.4)
67
+ rspec (2.11.0)
68
+ rspec-core (~> 2.11.0)
69
+ rspec-expectations (~> 2.11.0)
70
+ rspec-mocks (~> 2.11.0)
71
+ rspec-core (2.11.1)
72
+ rspec-expectations (2.11.2)
73
+ diff-lcs (~> 1.1.3)
74
+ rspec-mocks (2.11.1)
75
+ rspec-rails (2.11.0)
76
+ actionpack (>= 3.0)
77
+ activesupport (>= 3.0)
78
+ railties (>= 3.0)
79
+ rspec (~> 2.11.0)
80
+ sprockets (2.1.3)
81
+ hike (~> 1.2)
82
+ rack (~> 1.0)
83
+ tilt (~> 1.1, != 1.3.0)
84
+ thor (0.15.4)
85
+ tilt (1.3.3)
86
+ tzinfo (0.3.33)
87
+
88
+ PLATFORMS
89
+ ruby
90
+
91
+ DEPENDENCIES
92
+ actionpack (~> 3.2.3)
93
+ activesupport (~> 3.2.3)
94
+ bundler (>= 1.0.0)
95
+ errplane!
96
+ fakeweb
97
+ guard
98
+ guard-rspec
99
+ railties (~> 3.2.3)
100
+ rake
101
+ rdoc
102
+ rspec
103
+ rspec-rails (>= 2.0)
104
+ tzinfo