ammeter 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Ammeter release history
2
2
 
3
+ ### 0.2.5 / 2012-05-03
4
+
5
+ [full changelog](https://github.com/alexrothenberg/ammeter/compare/v0.2.4...v0.2.5)
6
+
7
+ * Fixed issue #9 with for rails 4
8
+
3
9
  ### 0.2.4 / 2012-04-06
4
10
 
5
11
  [full changelog](https://github.com/alexrothenberg/ammeter/compare/v0.2.3...v0.2.4)
@@ -13,8 +13,7 @@ module Ammeter
13
13
  extend ActiveSupport::Concern
14
14
  include ::RSpec::Rails::RailsExampleGroup
15
15
 
16
- DELEGATED_METHODS = [:capture, :prepare_destination,
17
- :destination_root, :current_path, :generator_class]
16
+ DELEGATED_METHODS = [:capture, :destination_root, :current_path, :generator_class]
18
17
  module ClassMethods
19
18
  mattr_accessor :test_unit_test_case_delegate
20
19
  delegate :default_arguments, :to => :'self.test_unit_test_case_delegate'
@@ -23,6 +22,10 @@ module Ammeter
23
22
  end
24
23
  delegate :destination, :arguments, :to => ::Rails::Generators::TestCase
25
24
 
25
+ def prepare_destination
26
+ self.test_unit_test_case_delegate.send :prepare_destination
27
+ end
28
+
26
29
  def initialize_delegate
27
30
  self.test_unit_test_case_delegate = ::Rails::Generators::TestCase.new 'pending'
28
31
  self.test_unit_test_case_delegate.class.tests(describes)
@@ -50,6 +53,11 @@ module Ammeter
50
53
  DELEGATED_METHODS.each do |method|
51
54
  delegate method, :to => :'self.class'
52
55
  end
56
+
57
+ def prepare_destination
58
+ self.class.send :prepare_destination
59
+ end
60
+
53
61
  ::Rails::Generators::TestCase.destination File.expand_path('ammeter', Dir.tmpdir)
54
62
  initialize_delegate
55
63
 
@@ -1,3 +1,3 @@
1
1
  module Ammeter
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ammeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-06 00:00:00.000000000 Z
12
+ date: 2012-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -269,7 +269,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
269
269
  version: '0'
270
270
  segments:
271
271
  - 0
272
- hash: 1621738140737887747
272
+ hash: 1693166208592429466
273
273
  required_rubygems_version: !ruby/object:Gem::Requirement
274
274
  none: false
275
275
  requirements:
@@ -278,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
278
278
  version: '0'
279
279
  segments:
280
280
  - 0
281
- hash: 1621738140737887747
281
+ hash: 1693166208592429466
282
282
  requirements: []
283
283
  rubyforge_project:
284
284
  rubygems_version: 1.8.21