Methods
- E
- N
- O
- R
- W
Constants
HEADER | = | 'measurement,created_at,app,rails,ruby,platform' |
Class Public methods
Instance Public methods
# File activesupport/lib/active_support/testing/performance.rb, line 200 def environment unless defined? @env app = "#{$1}.#{$2}" if File.directory?('.git') && %xgit branch -v` =~ %r^\* (\S+)\s+(\S+)/ rails = Rails::VERSION::STRING if File.directory?('vendor/rails/.git') Dir.chdir('vendor/rails') do rails += ".#{$1}.#{$2}" if %xgit branch -v` =~ %r^\* (\S+)\s+(\S+)/ end end ruby = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby' ruby += "-#{RUBY_VERSION}.#{RUBY_PATCHLEVEL}" @env = [app, rails, ruby, RUBY_PLATFORM] * ',' end @env end
Instance Protected methods