ammeter 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a15e1595dc23477cee95c4f7e815238c59be77b
4
- data.tar.gz: bd903e9447a95611b53a7d15f29b58c810309ec8
3
+ metadata.gz: 8b09616152a6a841841c86b88596daa437725df9
4
+ data.tar.gz: 7aee1b867d17fa150330198d7f5c8c73c9812237
5
5
  SHA512:
6
- metadata.gz: 8bfb2ce3d1e364af1be88d2d8d63656fac3222ccc81cbb5ec1da0e9485b4da31ccad75b8047f3a439839b9f18285f897365c188ebd5fb4854d8b695b319318c0
7
- data.tar.gz: 69d2fbe00c5ab63057c64a6020108d67d70f2215e61e7b361fc653d0198aeeee900ed81f8f4404faac4599fbbf11af5127ec243d5ef536d7ed9e6b385c1732e1
6
+ metadata.gz: 4f7affdbcb8d11a54dbb7eefd2d8694b4f6a519bc1f42a22bb49d2ea13381360c519dbc576eace67f6a9ec6bafd2704697a146660961199d19a65049b7da610f
7
+ data.tar.gz: 76fbf530694d7c1727f6ea40080799bfd50f8363cd4ddc86d1d1ba8e13490ef3ff93b8672efaeda239005260a5481d0961e7d84b64eb006c4a2234d27a4a3c0e
data/.travis.yml CHANGED
@@ -1,14 +1,15 @@
1
1
  language: ruby
2
+ sudo: false
2
3
 
3
4
  rvm:
4
- - 1.8.7
5
+ - 2.2
5
6
  - 2.1.2
6
7
  - 2.0.0
7
8
  - 1.9.3
9
+ - 1.8.7
8
10
  - ruby-head
9
- - jruby-head
10
- - jruby-19mode
11
- - rbx-19mode
11
+ - jruby-9.0.0.0.pre1
12
+ - jruby-1.7.9-d19
12
13
 
13
14
  env:
14
15
  - RSPEC_VERSION=master
@@ -22,7 +23,8 @@ script: "bundle exec rake ci --trace"
22
23
 
23
24
  matrix:
24
25
  allow_failures:
26
+ - rvm: 2.2
25
27
  - rvm: ruby-head
26
- - rvm: jruby-head
27
- - rvm: jruby-19mode
28
- - rvm: rbx-19mode
28
+ - rvm: jruby-9.0.0.0.pre1
29
+ - rvm: jruby-1.7.9-d19
30
+
data/Gemfile CHANGED
@@ -38,6 +38,8 @@ else
38
38
  raise "rspec version #{rspec_version} is not supported"
39
39
  end
40
40
 
41
+ gem "i18n", '< 0.7.0' if RUBY_VERSION < '1.9.3'
42
+
41
43
  # Specify your gem's dependencies in rspec-rails-generator-specs.gemspec
42
44
  gemspec
43
45
 
data/README.md CHANGED
@@ -21,7 +21,7 @@ require 'spec_helper'
21
21
  # Generators are not automatically loaded by Rails
22
22
  require 'generators/rspec/model/model_generator'
23
23
 
24
- describe Rspec::Generators::ModelGenerator do
24
+ describe Rspec::Generators::ModelGenerator, :type => :generator do
25
25
  # Tell the generator where to put its output (what it thinks of as Rails.root)
26
26
  destination File.expand_path("../../../../../tmp", __FILE__)
27
27
  before do
@@ -61,10 +61,11 @@ describe Rspec::Generators::ModelGenerator do
61
61
  it { is_expected_to contain /describe Posts/ }
62
62
  end
63
63
  describe 'the migration' do
64
- subject { file('db/migrate/create_posts.rb') }
64
+ subject { migration_file('db/migrate/create_posts.rb') }
65
65
 
66
66
  # is_expected_to be_a_migration - verifies the file exists with a migration timestamp as part of the filename
67
- it { is_expected_to be_a_migration }
67
+ it { is_expected_to exist }
68
+ it { is_expected_to contain /create_table/ }
68
69
  end
69
70
  end
70
71
  end
data/Rakefile CHANGED
@@ -48,6 +48,7 @@ namespace :generate do
48
48
  Bundler.clean_system 'bundle install'
49
49
  Bundler.clean_system 'rake db:migrate'
50
50
  Bundler.clean_system 'rails g rspec:install'
51
+ Bundler.clean_system 'spring stop'
51
52
  end
52
53
  end
53
54
 
@@ -1,7 +1,11 @@
1
1
  require 'aruba/cucumber'
2
2
 
3
3
  Before do
4
- @aruba_timeout_seconds = 30
4
+ if RUBY_VERSION == "1.9.3"
5
+ @aruba_timeout_seconds = 60
6
+ else
7
+ @aruba_timeout_seconds = 30
8
+ end
5
9
  end
6
10
 
7
11
  def aruba_path(file_or_dir, source_foldername)
@@ -14,6 +14,7 @@ else
14
14
  gem 'rspec', rspec_version
15
15
  end
16
16
 
17
+ gem "i18n", '< 0.7.0' if RUBY_VERSION < '1.9.3'
17
18
  gem 'ammeter', :path=>'../..'
18
19
  if defined?(Rails) && Rails::VERSION::STRING.to_f < 4
19
20
  # Execjs is causing problems on 1.8.7
data/lib/ammeter/init.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rspec/core'
2
+ require 'rspec/rails'
2
3
  if RSpec::Core::Version::STRING < '3'
3
4
  require 'ammeter/rspec/rspec_2_compatibility' # if rspec2
4
5
  end
@@ -1,7 +1,5 @@
1
1
  require 'rails/generators'
2
2
  require 'active_support/core_ext'
3
- require 'rspec/rails/adapters'
4
- require 'rspec/rails/example/rails_example_group'
5
3
  require 'tmpdir'
6
4
  require 'fileutils'
7
5
 
@@ -65,8 +63,6 @@ module Ammeter
65
63
  ::Rails::Generators::TestCase.destination File.expand_path('ammeter', Dir.tmpdir)
66
64
  initialize_delegate
67
65
 
68
- subject { generator }
69
-
70
66
  before do
71
67
  self.class.initialize_delegate
72
68
  prepare_destination
@@ -86,7 +82,10 @@ module Ammeter
86
82
  migration_file = "#{File.dirname(file_path)}/TIMESTAMP_#{File.basename(file_path)}" if migration_file.nil?
87
83
  migration_file
88
84
  end
85
+ def subject
86
+ generator
87
+ end
89
88
  end
90
89
  end
91
90
  end
92
- end
91
+ end
@@ -1,3 +1,3 @@
1
1
  module Ammeter
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ammeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rothenberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-25 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties