retrospec-plugingen 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/lib/retrospec/plugins/v1/plugin/plugin_gen.rb +2 -2
- data/lib/retrospec/plugins/v1/plugin/templates/module_files/{README.md → README.md.retrospec.erb} +0 -0
- data/lib/retrospec/plugins/v1/plugin/templates/module_files/{Rakefile → Rakefile.retrospec.erb} +0 -0
- data/lib/retrospec/plugins/v1/plugin/templates/module_files/lib/retrospec/plugins/v1/plugin/{spec_object.rb.erb → spec_object.rb.retrospec.erb} +0 -0
- data/lib/retrospec/plugins/v1/plugin/templates/module_files/spec/{spec_helper.rb → spec_helper.rb.retrospec.erb} +0 -0
- data/lib/retrospec/plugins/v1/plugin/templates/module_files/spec/{plugin_spec.rb.erb → unit/plugin_spec.rb.retrospec.erb} +0 -0
- data/lib/retrospec/plugins/v1/plugin/templates/{plugin-name.rb.erb → plugin-name.rb.retrospec.erb} +4 -3
- data/lib/retrospec/plugins/v1/plugin/templates/{retrospec-main-plugin-file.rb.erb → retrospec-main-plugin-file.rb.retrospec.erb} +0 -0
- data/retrospec-plugingen.gemspec +12 -12
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a34a844acae924220ed1d90abb3f30cabc16c70
|
4
|
+
data.tar.gz: d76a5211682359461f87936840688c800064edd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40e3dd7d590071c610c0f921bf54cad8aba14f1f441e80a77094067445539c46a60020bdf4abf1b2aeb2ab3bdf727d8b485c15f5faf3c0989d184e24b51e19a8
|
7
|
+
data.tar.gz: 5a4c4c4620c3ebf0854ad16be4580a2ef6417c06bcb94c6ba572e86fbd648ce4a709dfdbc211b19b308d4aada46d4818632b9cb10c66b08568efc6d7a691444c
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -54,7 +54,7 @@ GEM
|
|
54
54
|
rake (10.4.2)
|
55
55
|
rdoc (3.12.2)
|
56
56
|
json (~> 1.4)
|
57
|
-
retrospec (0.
|
57
|
+
retrospec (0.3.1)
|
58
58
|
trollop
|
59
59
|
rspec (3.3.0)
|
60
60
|
rspec-core (~> 3.3.0)
|
@@ -87,6 +87,6 @@ DEPENDENCIES
|
|
87
87
|
jeweler (~> 2.0.1)
|
88
88
|
pry
|
89
89
|
rdoc (~> 3.12)
|
90
|
-
retrospec (~> 0.
|
90
|
+
retrospec (~> 0.3)
|
91
91
|
rspec (~> 3.2)
|
92
92
|
simplecov
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -35,13 +35,13 @@ module Retrospec
|
|
35
35
|
|
36
36
|
def create_main_file
|
37
37
|
file_path = File.join(module_path, 'lib', "retrospec-#{external_plugin_name}.rb" )
|
38
|
-
template = File.join(template_dir, 'retrospec-main-plugin-file.rb.erb' )
|
38
|
+
template = File.join(template_dir, 'retrospec-main-plugin-file.rb.retrospec.erb' )
|
39
39
|
safe_create_template_file(file_path, template, context)
|
40
40
|
end
|
41
41
|
|
42
42
|
def create_plugin_file
|
43
43
|
file_path = File.join(module_path, 'lib', 'retrospec', 'plugins', 'v1', 'plugin', "#{external_plugin_name}.rb" )
|
44
|
-
template = File.join(template_dir, 'plugin-name.rb.erb' )
|
44
|
+
template = File.join(template_dir, 'plugin-name.rb.retrospec.erb' )
|
45
45
|
safe_create_template_file(file_path, template, context)
|
46
46
|
end
|
47
47
|
|
data/lib/retrospec/plugins/v1/plugin/templates/module_files/{README.md → README.md.retrospec.erb}
RENAMED
File without changes
|
data/lib/retrospec/plugins/v1/plugin/templates/module_files/{Rakefile → Rakefile.retrospec.erb}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/retrospec/plugins/v1/plugin/templates/{plugin-name.rb.erb → plugin-name.rb.retrospec.erb}
RENAMED
@@ -31,16 +31,17 @@ module Retrospec
|
|
31
31
|
# this is the main entry point that retrospec will use to make magic happen
|
32
32
|
# this is called after everything has been initialized
|
33
33
|
def run
|
34
|
-
# the safe_create_module_files will render every file
|
35
|
-
# folder in your gem and copy them to the destination.
|
34
|
+
# the safe_create_module_files will render every file that ends with .retrospec.erb
|
35
|
+
# under the templates/module_files folder in your gem and copy them to the destination.
|
36
36
|
safe_create_module_files(template_dir, module_path, context)
|
37
37
|
# Should you need to change the file name of the copied file you will have to move
|
38
38
|
# the file outside of the module_files directory and
|
39
|
-
# render
|
39
|
+
# render it using: safe_create_template_file(file_path, template, context)
|
40
40
|
end
|
41
41
|
|
42
42
|
# the template directory located inside the your retrospec plugin gem
|
43
43
|
# you should not have to modify this unless you move the templates directory
|
44
|
+
# if this directory does not exist please create a directory templates/module_files
|
44
45
|
def template_dir
|
45
46
|
@template_dir ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
|
46
47
|
end
|
File without changes
|
data/retrospec-plugingen.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "retrospec-plugingen"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Corey Osman"]
|
12
|
-
s.date = "2015-09-
|
12
|
+
s.date = "2015-09-28"
|
13
13
|
s.description = ""
|
14
14
|
s.email = "corey@logicminds.biz"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -32,13 +32,13 @@ Gem::Specification.new do |s|
|
|
32
32
|
"lib/retrospec/plugins/v1/plugin/templates/module_files/.rspec",
|
33
33
|
"lib/retrospec/plugins/v1/plugin/templates/module_files/Gemfile",
|
34
34
|
"lib/retrospec/plugins/v1/plugin/templates/module_files/LICENSE.txt",
|
35
|
-
"lib/retrospec/plugins/v1/plugin/templates/module_files/README.md",
|
36
|
-
"lib/retrospec/plugins/v1/plugin/templates/module_files/Rakefile",
|
37
|
-
"lib/retrospec/plugins/v1/plugin/templates/module_files/lib/retrospec/plugins/v1/plugin/spec_object.rb.erb",
|
38
|
-
"lib/retrospec/plugins/v1/plugin/templates/module_files/spec/
|
39
|
-
"lib/retrospec/plugins/v1/plugin/templates/module_files/spec/
|
40
|
-
"lib/retrospec/plugins/v1/plugin/templates/plugin-name.rb.erb",
|
41
|
-
"lib/retrospec/plugins/v1/plugin/templates/retrospec-main-plugin-file.rb.erb",
|
35
|
+
"lib/retrospec/plugins/v1/plugin/templates/module_files/README.md.retrospec.erb",
|
36
|
+
"lib/retrospec/plugins/v1/plugin/templates/module_files/Rakefile.retrospec.erb",
|
37
|
+
"lib/retrospec/plugins/v1/plugin/templates/module_files/lib/retrospec/plugins/v1/plugin/spec_object.rb.retrospec.erb",
|
38
|
+
"lib/retrospec/plugins/v1/plugin/templates/module_files/spec/spec_helper.rb.retrospec.erb",
|
39
|
+
"lib/retrospec/plugins/v1/plugin/templates/module_files/spec/unit/plugin_spec.rb.retrospec.erb",
|
40
|
+
"lib/retrospec/plugins/v1/plugin/templates/plugin-name.rb.retrospec.erb",
|
41
|
+
"lib/retrospec/plugins/v1/plugin/templates/retrospec-main-plugin-file.rb.retrospec.erb",
|
42
42
|
"retrospec-plugingen.gemspec",
|
43
43
|
"spec/plugin_gen_spec.rb",
|
44
44
|
"spec/retrospec-plugin_spec.rb",
|
@@ -55,7 +55,7 @@ Gem::Specification.new do |s|
|
|
55
55
|
|
56
56
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
57
57
|
s.add_runtime_dependency(%q<facets>, [">= 0"])
|
58
|
-
s.add_runtime_dependency(%q<retrospec>, ["~> 0.
|
58
|
+
s.add_runtime_dependency(%q<retrospec>, ["~> 0.3"])
|
59
59
|
s.add_development_dependency(%q<rspec>, ["~> 3.2"])
|
60
60
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
61
61
|
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
@@ -64,7 +64,7 @@ Gem::Specification.new do |s|
|
|
64
64
|
s.add_development_dependency(%q<pry>, [">= 0"])
|
65
65
|
else
|
66
66
|
s.add_dependency(%q<facets>, [">= 0"])
|
67
|
-
s.add_dependency(%q<retrospec>, ["~> 0.
|
67
|
+
s.add_dependency(%q<retrospec>, ["~> 0.3"])
|
68
68
|
s.add_dependency(%q<rspec>, ["~> 3.2"])
|
69
69
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
70
70
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
@@ -74,7 +74,7 @@ Gem::Specification.new do |s|
|
|
74
74
|
end
|
75
75
|
else
|
76
76
|
s.add_dependency(%q<facets>, [">= 0"])
|
77
|
-
s.add_dependency(%q<retrospec>, ["~> 0.
|
77
|
+
s.add_dependency(%q<retrospec>, ["~> 0.3"])
|
78
78
|
s.add_dependency(%q<rspec>, ["~> 3.2"])
|
79
79
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
80
80
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: retrospec-plugingen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: facets
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.3'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
40
|
+
version: '0.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,13 +145,13 @@ files:
|
|
145
145
|
- lib/retrospec/plugins/v1/plugin/templates/module_files/.rspec
|
146
146
|
- lib/retrospec/plugins/v1/plugin/templates/module_files/Gemfile
|
147
147
|
- lib/retrospec/plugins/v1/plugin/templates/module_files/LICENSE.txt
|
148
|
-
- lib/retrospec/plugins/v1/plugin/templates/module_files/README.md
|
149
|
-
- lib/retrospec/plugins/v1/plugin/templates/module_files/Rakefile
|
150
|
-
- lib/retrospec/plugins/v1/plugin/templates/module_files/lib/retrospec/plugins/v1/plugin/spec_object.rb.erb
|
151
|
-
- lib/retrospec/plugins/v1/plugin/templates/module_files/spec/
|
152
|
-
- lib/retrospec/plugins/v1/plugin/templates/module_files/spec/
|
153
|
-
- lib/retrospec/plugins/v1/plugin/templates/plugin-name.rb.erb
|
154
|
-
- lib/retrospec/plugins/v1/plugin/templates/retrospec-main-plugin-file.rb.erb
|
148
|
+
- lib/retrospec/plugins/v1/plugin/templates/module_files/README.md.retrospec.erb
|
149
|
+
- lib/retrospec/plugins/v1/plugin/templates/module_files/Rakefile.retrospec.erb
|
150
|
+
- lib/retrospec/plugins/v1/plugin/templates/module_files/lib/retrospec/plugins/v1/plugin/spec_object.rb.retrospec.erb
|
151
|
+
- lib/retrospec/plugins/v1/plugin/templates/module_files/spec/spec_helper.rb.retrospec.erb
|
152
|
+
- lib/retrospec/plugins/v1/plugin/templates/module_files/spec/unit/plugin_spec.rb.retrospec.erb
|
153
|
+
- lib/retrospec/plugins/v1/plugin/templates/plugin-name.rb.retrospec.erb
|
154
|
+
- lib/retrospec/plugins/v1/plugin/templates/retrospec-main-plugin-file.rb.retrospec.erb
|
155
155
|
- retrospec-plugingen.gemspec
|
156
156
|
- spec/plugin_gen_spec.rb
|
157
157
|
- spec/retrospec-plugin_spec.rb
|