danmayer-metric_fu 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -103,7 +103,7 @@ module MetricFu
103
103
  @base_directory = ENV['CC_BUILD_ARTIFACTS'] || 'tmp/metric_fu'
104
104
  @scratch_directory = File.join(@base_directory, 'scratch')
105
105
  @output_directory = File.join(@base_directory, 'output')
106
- @data_directory = File.join('tmp/metric_fu', '_data')
106
+ @data_directory = File.join(@base_directory, '_data')
107
107
  @metric_fu_root_directory = File.join(File.dirname(__FILE__),
108
108
  '..', '..')
109
109
  @template_directory = File.join(@metric_fu_root_directory,
@@ -31,7 +31,7 @@ module MetricFu
31
31
 
32
32
  # TODO - we need this method (and hash accessor above) as a temporary hack where we're using Location as a hash key
33
33
  def eql?(other)
34
- [self.file_path.to_s, self.class_name.to_s, self.method_name.to_s] == [other.file_path.to_s, other.class_name.to_s, other.method_name.to_s]
34
+ @hash == other.hash
35
35
  end
36
36
  # END we need these methods as a temporary hack where we're using Location as a hash key
37
37
 
@@ -1,11 +1,12 @@
1
1
  require 'rake'
2
2
  require 'yaml'
3
3
  begin
4
+ require 'active_support'
4
5
  require 'active_support/core_ext/object/to_json'
5
6
  require 'active_support/core_ext/object/blank'
6
7
  require 'active_support/inflector'
7
8
  rescue LoadError
8
- require 'activesupport'
9
+ require 'activesupport' unless defined?(ActiveSupport)
9
10
  end
10
11
 
11
12
  # Load a few things to make our lives easier elsewhere.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danmayer-metric_fu
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 2
10
- version: 2.1.2
9
+ - 3
10
+ version: 2.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Scruggs