ammeter 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -7,6 +7,6 @@ vendor
7
7
  Gemfile.lock
8
8
  gemfiles/*.lock
9
9
  .rvmrc
10
- .DS_Store
10
+ **/.DS_Store
11
11
  *~
12
12
  *.swp
data/History.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Ammeter release history
2
2
 
3
+ ### 0.2.8 / 2012-07-06
4
+
5
+ [full changelog](https://github.com/alexrothenberg/ammeter/compare/v0.2.7...v0.2.8)
6
+
7
+ Fixes regression with initialization for gems that create a test Rails.application (problem since 0.2.6)
8
+
3
9
  ### 0.2.7 / 2012-07-05
4
10
 
5
11
  [full changelog](https://github.com/alexrothenberg/ammeter/compare/v0.2.6...v0.2.7)
@@ -1,5 +1,14 @@
1
1
  require 'bundler/setup'
2
2
  require 'rails/all'
3
+
4
+ module MyRailsGem
5
+ module TestApp
6
+ class Application < Rails::Application
7
+ config.root = File.dirname(__FILE__)
8
+ end
9
+ end
10
+ end
11
+
3
12
  require 'ammeter/init'
4
13
 
5
14
  Bundler.require
@@ -1,5 +1,5 @@
1
1
  require 'bundler/setup'
2
- require 'rails'
3
2
  require 'ammeter/init'
3
+ require 'rails'
4
4
 
5
5
  Bundler.require
@@ -1,15 +1,7 @@
1
1
  require 'ammeter/rspec/generator/example.rb'
2
2
  require 'ammeter/rspec/generator/matchers.rb'
3
+ require 'rails'
3
4
 
4
- if Rails.application.nil?
5
- # We are in a gem so create test Rails app
6
- module Ammeter
7
- module TestApp
8
- class Application < Rails::Application
9
- config.root = File.dirname(__FILE__)
10
- end
11
- end
12
- end
5
+ if Rails.respond_to?(:application) && Rails.application.respond_to?(:load_generators)
6
+ Rails.application.load_generators
13
7
  end
14
-
15
- Rails.application.load_generators
@@ -1,3 +1,3 @@
1
1
  module Ammeter
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
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.7
4
+ version: 0.2.8
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-07-05 00:00:00.000000000 Z
12
+ date: 2012-07-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -248,7 +248,6 @@ files:
248
248
  - features/templates/my_railties_gem/my_railties_gem.gemspec
249
249
  - features/templates/my_railties_gem/spec/spec_helper.rb
250
250
  - features/templates/rspec.rake
251
- - lib/.DS_Store
252
251
  - lib/ammeter.rb
253
252
  - lib/ammeter/init.rb
254
253
  - lib/ammeter/railtie.rb
@@ -279,7 +278,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
279
278
  version: '0'
280
279
  segments:
281
280
  - 0
282
- hash: 714039448379092360
281
+ hash: -2565557972017694478
283
282
  required_rubygems_version: !ruby/object:Gem::Requirement
284
283
  none: false
285
284
  requirements:
@@ -288,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
288
287
  version: '0'
289
288
  segments:
290
289
  - 0
291
- hash: 714039448379092360
290
+ hash: -2565557972017694478
292
291
  requirements: []
293
292
  rubyforge_project:
294
293
  rubygems_version: 1.8.24