fiveruns-dash-rails 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -20,7 +20,7 @@ begin
20
20
  s.homepage = "http://github.com/fiveruns/dash-rails"
21
21
  s.description = "Provides an API to send metrics from Rails applications to the FiveRuns Dash service"
22
22
  s.authors = ["FiveRuns Development Team"]
23
- s.files = FileList['README.rdoc', 'Rakefile', 'VERSION.yml', 'init.rb', "{lib,rails,test}/**/*", ]
23
+ s.files = FileList['README.rdoc', 'Rakefile', 'version.yml', 'init.rb', "{lib,rails,test}/**/*", ]
24
24
  s.add_dependency 'fiveruns-dash-ruby', '>= 0.8.1'
25
25
  s.add_dependency 'fiveruns-dash-activerecord', '>= 0.8.1'
26
26
  end
@@ -38,4 +38,4 @@ task :coverage do
38
38
  FileUtils.cp_r 'coverage', ccout
39
39
  end
40
40
  system "open coverage/index.html" if PLATFORM['darwin']
41
- end
41
+ end
@@ -7,8 +7,8 @@ if START_FIVERUNS_DASH_RAILS
7
7
 
8
8
  module Rails
9
9
 
10
- version_file = File.dirname(__FILE__) << "/../../../VERSION.yml"
11
- version = YAML.load(version_file)
10
+ version_file = File.expand_path(File.dirname(__FILE__) << "/../../../version.yml")
11
+ version = YAML.load(File.read(version_file))
12
12
  VERSION = [
13
13
  version[:major],
14
14
  version[:minor],
@@ -4,8 +4,12 @@ Fiveruns::Dash.register_recipe :actionpack, :url => 'http://dash.fiveruns.com' d
4
4
  recipe.counter :requests, 'Requests', :incremented_by => 'ActionController::Base#perform_action'
5
5
 
6
6
  targets = []
7
- targets << 'ActionView::Template#render' if defined?(ActionView::Template)
8
- targets << 'ActionView::PartialTemplate#render' if defined?(ActionView::PartialTemplate)
7
+ if defined?(ActionView::Renderable)
8
+ targets << 'ActionView::Renderable#render'
9
+ else
10
+ targets << 'ActionView::Template#render' if defined?(ActionView::Template)
11
+ targets << 'ActionView::PartialTemplate#render' if defined?(ActionView::PartialTemplate)
12
+ end
9
13
  if !targets.empty?
10
14
  recipe.time :render_time, :method => targets
11
15
  else
@@ -65,9 +65,14 @@ Fiveruns::Dash.register_recipe :rails, :url => 'http://dash.fiveruns.com' do |re
65
65
  ActiveRecord::Base.send(:include, Fiveruns::Dash::Rails::Context::ActiveRecord)
66
66
  end
67
67
  ActionController::Base.send(:include, Fiveruns::Dash::Rails::Context::Action)
68
- ActionView::Template.send(:include, Fiveruns::Dash::Rails::Context::Template) if defined?(ActionView::Template)
69
- ActionView::InlineTemplate.send(:include, Fiveruns::Dash::Rails::Context::Template) if defined?(ActionView::InlineTemplate)
70
- ActionView::PartialTemplate.send(:include, Fiveruns::Dash::Rails::Context::Template) if defined?(ActionView::PartialTemplate)
68
+
69
+ if defined?(ActionView::Renderable)
70
+ ActionView::Renderable.send(:include, Fiveruns::Dash::Rails::Context::Template)
71
+ else
72
+ ActionView::Template.send(:include, Fiveruns::Dash::Rails::Context::Template) if defined?(ActionView::Template)
73
+ ActionView::InlineTemplate.send(:include, Fiveruns::Dash::Rails::Context::Template) if defined?(ActionView::InlineTemplate)
74
+ ActionView::PartialTemplate.send(:include, Fiveruns::Dash::Rails::Context::Template) if defined?(ActionView::PartialTemplate)
75
+ end
71
76
 
72
77
  begin
73
78
  if defined?(Mongrel)
data/version.yml ADDED
@@ -0,0 +1,4 @@
1
+ ---
2
+ :major: 0
3
+ :minor: 8
4
+ :patch: 5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiveruns-dash-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - FiveRuns Development Team
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-04 00:00:00 -08:00
12
+ date: 2009-03-18 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -43,7 +43,7 @@ extra_rdoc_files: []
43
43
  files:
44
44
  - README.rdoc
45
45
  - Rakefile
46
- - VERSION.yml
46
+ - version.yml
47
47
  - init.rb
48
48
  - lib/fiveruns
49
49
  - lib/fiveruns/dash