teleporter 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/generators/initial/rspec.rb +38 -0
- data/lib/generators/initial/start.rb +1 -1
- data/lib/generators/initial/templates/{rspec_base → rspec}/configs/capybara.rb +0 -0
- data/lib/generators/initial/templates/{rspec_base → rspec}/configs/database_cleaner.rb +0 -0
- data/lib/generators/initial/templates/{rspec_base → rspec}/configs/devise.rb +0 -0
- data/lib/generators/initial/templates/{rspec_base → rspec}/configs/factory_girl.rb +0 -0
- data/lib/generators/initial/templates/{rspec_base → rspec}/configs/vcr.rb +0 -0
- data/lib/generators/initial/templates/{rspec_base → rspec}/shared_examples/sample_shared.rb +0 -0
- data/lib/teleporter/version.rb +1 -1
- data/lib/teleporter.rb +1 -1
- metadata +9 -9
- data/lib/generators/initial/rspec_base.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd07d0dc65596255a67602dec85beae283d40a6b
|
4
|
+
data.tar.gz: 09252d3f9c1c5334bdd43a75cd7064b6f570451f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a97d5e38ea7f2670c5f8269fd36519de43d628874f552ce8b03c657eca0108f2cad7bcc398463a778950aef1a04f8ec4be0720fcd30736b88979a3ac2aabd1d9
|
7
|
+
data.tar.gz: 7f8117344b14fc5b98dede256d01641b7b66dd2405bd1c56e60b6e35c49e0602c42aac4f184f059d6cf29363b16f5df28c27041f7bb5d80a131102f61ffaf794
|
data/README.md
CHANGED
@@ -0,0 +1,38 @@
|
|
1
|
+
module Initial
|
2
|
+
class RspecGenerator < Rails::Generators::Base
|
3
|
+
source_root File.expand_path("../templates", __FILE__)
|
4
|
+
|
5
|
+
def add
|
6
|
+
gem_group :development, :test do
|
7
|
+
gem "rspec-rails"
|
8
|
+
end
|
9
|
+
|
10
|
+
gem_group :test do
|
11
|
+
gem 'factory_girl_rails'
|
12
|
+
gem 'capybara'
|
13
|
+
gem 'database_cleaner'
|
14
|
+
gem 'shoulda-matchers'
|
15
|
+
gem 'poltergeist'
|
16
|
+
gem 'phantomjs', require: 'phantomjs/poltergeist'
|
17
|
+
gem 'vcr'
|
18
|
+
gem 'webmock'
|
19
|
+
end
|
20
|
+
|
21
|
+
run "bundle install"
|
22
|
+
|
23
|
+
generate 'rspec:install'
|
24
|
+
|
25
|
+
template 'rspec/configs/capybara.rb', 'spec/support/configs/capybara.rb'
|
26
|
+
template 'rspec/configs/database_cleaner.rb', 'spec/support/configs/database_cleaner.rb'
|
27
|
+
template 'rspec/configs/factory_girl.rb', 'spec/support/configs/factory_girl.rb'
|
28
|
+
template 'rspec/configs/devise.rb', 'spec/support/configs/devise.rb'
|
29
|
+
template 'rspec/configs/vcr.rb', 'spec/support/configs/vcr.rb'
|
30
|
+
|
31
|
+
template 'rspec/shared_examples/sample_shared.rb', 'spec/support/shared_examples/sample_shared.rb'
|
32
|
+
|
33
|
+
run 'bundle exec spring binstub rspec'
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/teleporter/version.rb
CHANGED
data/lib/teleporter.rb
CHANGED
@@ -5,7 +5,7 @@ require "teleporter/version"
|
|
5
5
|
|
6
6
|
require "generators/initial/start"
|
7
7
|
require "generators/initial/gemfile"
|
8
|
-
require "generators/initial/
|
8
|
+
require "generators/initial/rspec"
|
9
9
|
require "generators/initial/welcome"
|
10
10
|
require "generators/initial/capistrano"
|
11
11
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teleporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ponomarev Nikolay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -68,7 +68,7 @@ files:
|
|
68
68
|
- lib/generators/admin/start.rb
|
69
69
|
- lib/generators/initial/capistrano.rb
|
70
70
|
- lib/generators/initial/gemfile.rb
|
71
|
-
- lib/generators/initial/
|
71
|
+
- lib/generators/initial/rspec.rb
|
72
72
|
- lib/generators/initial/start.rb
|
73
73
|
- lib/generators/initial/templates/capistrano/deploy/deploy.rb
|
74
74
|
- lib/generators/initial/templates/capistrano/deploy/production.rb
|
@@ -90,12 +90,12 @@ files:
|
|
90
90
|
- lib/generators/initial/templates/capistrano/tasks/compile_assets_locally.rake
|
91
91
|
- lib/generators/initial/templates/capistrano/tasks/logs.rake
|
92
92
|
- lib/generators/initial/templates/capistrano/tasks/setup_config.rake
|
93
|
-
- lib/generators/initial/templates/
|
94
|
-
- lib/generators/initial/templates/
|
95
|
-
- lib/generators/initial/templates/
|
96
|
-
- lib/generators/initial/templates/
|
97
|
-
- lib/generators/initial/templates/
|
98
|
-
- lib/generators/initial/templates/
|
93
|
+
- lib/generators/initial/templates/rspec/configs/capybara.rb
|
94
|
+
- lib/generators/initial/templates/rspec/configs/database_cleaner.rb
|
95
|
+
- lib/generators/initial/templates/rspec/configs/devise.rb
|
96
|
+
- lib/generators/initial/templates/rspec/configs/factory_girl.rb
|
97
|
+
- lib/generators/initial/templates/rspec/configs/vcr.rb
|
98
|
+
- lib/generators/initial/templates/rspec/shared_examples/sample_shared.rb
|
99
99
|
- lib/generators/initial/templates/welcome/index.haml
|
100
100
|
- lib/generators/initial/templates/welcome/welcome_controller.rb
|
101
101
|
- lib/generators/initial/welcome.rb
|
@@ -1,38 +0,0 @@
|
|
1
|
-
module Initial
|
2
|
-
class RspecBaseGenerator < Rails::Generators::Base
|
3
|
-
source_root File.expand_path("../templates", __FILE__)
|
4
|
-
|
5
|
-
def add
|
6
|
-
gem_group :development, :test do
|
7
|
-
gem "rspec-rails"
|
8
|
-
end
|
9
|
-
|
10
|
-
gem_group :test do
|
11
|
-
gem 'factory_girl_rails'
|
12
|
-
gem 'capybara'
|
13
|
-
gem 'database_cleaner'
|
14
|
-
gem 'shoulda-matchers'
|
15
|
-
gem 'poltergeist'
|
16
|
-
gem 'phantomjs', require: 'phantomjs/poltergeist'
|
17
|
-
gem 'vcr'
|
18
|
-
gem 'webmock'
|
19
|
-
end
|
20
|
-
|
21
|
-
run "bundle install"
|
22
|
-
|
23
|
-
generate 'rspec:install'
|
24
|
-
|
25
|
-
template 'rspec_base/configs/capybara.rb', 'spec/support/configs/capybara.rb'
|
26
|
-
template 'rspec_base/configs/database_cleaner.rb', 'spec/support/configs/database_cleaner.rb'
|
27
|
-
template 'rspec_base/configs/factory_girl.rb', 'spec/support/configs/factory_girl.rb'
|
28
|
-
template 'rspec_base/configs/devise.rb', 'spec/support/configs/devise.rb'
|
29
|
-
template 'rspec_base/configs/vcr.rb', 'spec/support/configs/vcr.rb'
|
30
|
-
|
31
|
-
template 'rspec_base/shared_examples/sample_shared.rb', 'spec/support/shared_examples/sample_shared.rb'
|
32
|
-
|
33
|
-
run 'bundle exec spring binstub rspec'
|
34
|
-
|
35
|
-
end
|
36
|
-
|
37
|
-
end
|
38
|
-
end
|