instrumental 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
data/instrumental.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{instrumental}
8
- s.version = "0.1.7"
8
+ s.version = "0.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Douglas F Shearer"]
12
- s.date = %q{2011-06-10}
12
+ s.date = %q{2011-06-15}
13
13
  s.description = %q{Rails instrumentation and client for imperialapp.com}
14
14
  s.email = %q{support@imperialapp.com}
15
15
  s.extra_rdoc_files = [
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "lib/instrumental/agent.rb",
30
30
  "lib/instrumental/configuration.rb",
31
31
  "lib/instrumental/intervalometer.rb",
32
+ "lib/instrumental/railtie.rb",
32
33
  "lib/tasks/install.rake",
33
34
  "lib/tasks/milestone.rake",
34
35
  "lib/tasks/templates/instrumental.rb.erb",
data/lib/instrumental.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'instrumental/agent'
2
2
  require 'instrumental/configuration'
3
3
  require 'instrumental/intervalometer'
4
+ require 'instrumental/railtie' if defined?(::Rails)
5
+
4
6
 
5
7
  module Instrumental
6
8
 
@@ -0,0 +1,13 @@
1
+ require 'instrumental'
2
+ require 'rails'
3
+
4
+ module Instrumental
5
+ class Railtie < Rails::Railtie
6
+ railtie_name :instrumental
7
+
8
+ rake_tasks do
9
+ load "tasks/install.rake"
10
+ load "tasks/milestone.rake"
11
+ end
12
+ end
13
+ end
@@ -3,10 +3,16 @@ require 'instrumental/configuration'
3
3
 
4
4
  include Instrumental
5
5
 
6
- class Rails;end # Used for testing the logger.
7
-
8
6
  describe Instrumental::Configuration do
9
7
 
8
+ before(:all) do
9
+ @rails_class = class Rails;end # Used for testing the logger.
10
+ end
11
+
12
+ after(:all) do
13
+ @rails_class = nil
14
+ end
15
+
10
16
  before(:each) do
11
17
  @config = Configuration.new
12
18
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instrumental
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Douglas F Shearer
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-10 00:00:00 +01:00
18
+ date: 2011-06-15 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -82,6 +82,7 @@ files:
82
82
  - lib/instrumental/agent.rb
83
83
  - lib/instrumental/configuration.rb
84
84
  - lib/instrumental/intervalometer.rb
85
+ - lib/instrumental/railtie.rb
85
86
  - lib/tasks/install.rake
86
87
  - lib/tasks/milestone.rake
87
88
  - lib/tasks/templates/instrumental.rb.erb