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 +4 -4
- data/.travis.yml +9 -7
- data/Gemfile +2 -0
- data/README.md +4 -3
- data/Rakefile +1 -0
- data/features/support/env.rb +5 -1
- data/features/templates/generate_example_app.rb +1 -0
- data/lib/ammeter/init.rb +1 -0
- data/lib/ammeter/rspec/generator/example/generator_example_group.rb +4 -5
- data/lib/ammeter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b09616152a6a841841c86b88596daa437725df9
|
4
|
+
data.tar.gz: 7aee1b867d17fa150330198d7f5c8c73c9812237
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
-
|
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-
|
10
|
-
- jruby-
|
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-
|
27
|
-
- rvm: jruby-
|
28
|
-
|
28
|
+
- rvm: jruby-9.0.0.0.pre1
|
29
|
+
- rvm: jruby-1.7.9-d19
|
30
|
+
|
data/Gemfile
CHANGED
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 {
|
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
|
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
data/features/support/env.rb
CHANGED
data/lib/ammeter/init.rb
CHANGED
@@ -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
|
data/lib/ammeter/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|