morse_spec_helpers 0.0.5 → 0.0.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 992ad78c7642c73e5b174d3cfa7439ff90f2524b
|
4
|
+
data.tar.gz: 97d9430d47fcbab8bf0715cd703e384e9cab358e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 255cb99b8f80df741550d2697b11e35b009647caada2205795030cfeef24995528fcb66767761480c4ff859b9118907cacbd262a92077bbf97f5b3e747664d13
|
7
|
+
data.tar.gz: d9e940ecce1c977456a262aaecdff8a67f7a61650444af7f04151f3831c74fc88dc23e2ad63878d8180b19af7b059ff8dd2fb8340ca133f17e575f26af77962c
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class MorseSpecHelpersGenerator < Rails::Generators::Base
|
2
|
+
source_root(File.expand_path(File.dirname(__FILE__)))
|
3
|
+
def setup_support
|
4
|
+
support_dir="#{Rails.root}/spec/support"
|
5
|
+
image_dir="#{support_dir}/spec/support/images"
|
6
|
+
Dir.mkdir(support_dir) unless Dir.exist?(support_dir)
|
7
|
+
Dir.mkdir(image_dir) unless Dir.exist?(image_dir)
|
8
|
+
copy_file '../support/project_helpers.rb'."#{support_dir}/project/helpers.rb"
|
9
|
+
copy_file '../support/images/placeholder.png'."#{image_dir}/placeholder.png"
|
10
|
+
end
|
11
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class
|
1
|
+
class MorseSpecHelpersGenerator < Rails::Generators::Base
|
2
2
|
source_root(File.expand_path(File.dirname(__FILE__)))
|
3
|
-
def
|
3
|
+
def setup_support
|
4
4
|
support_dir="#{Rails.root}/spec/support"
|
5
5
|
image_dir="#{support_dir}/spec/support/images"
|
6
6
|
Dir.mkdir(support_dir) unless Dir.exist?(support_dir)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: morse_spec_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terry S
|
@@ -50,6 +50,7 @@ files:
|
|
50
50
|
- LICENSE.txt
|
51
51
|
- README.md
|
52
52
|
- Rakefile
|
53
|
+
- lib/generators/morse_spec_helpers_generator.rb
|
53
54
|
- lib/generators/support_generator.rb
|
54
55
|
- lib/morse_spec_helpers.rb
|
55
56
|
- lib/morse_spec_helpers/version.rb
|