easy_rspec 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +14 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +53 -0
- data/LICENSE.txt +21 -0
- data/README.md +76 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/easy_rspec.gemspec +45 -0
- data/lib/easy_rspec.rb +11 -0
- data/lib/easy_rspec/commandline_listener.rb +5 -0
- data/lib/easy_rspec/file_contents.rb +42 -0
- data/lib/easy_rspec/file_path_finder.rb +64 -0
- data/lib/easy_rspec/original_file.rb +23 -0
- data/lib/easy_rspec/rspec_file.rb +21 -0
- data/lib/easy_rspec/rspec_file_builder.rb +57 -0
- data/lib/easy_rspec/version.rb +3 -0
- metadata +164 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: '08d727b9720fc991592860598576221093c87245'
|
4
|
+
data.tar.gz: ce17347bd3f9aed71d9ae92064ad64e04a37251d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c2ecaa25a837ddcb5fccea6cd5fb965558e40b20786d5af7f529f9df83b57476688ba5279576f7020c01f558259f93d79762af9c434bc8d6d3b3dc82c164a973
|
7
|
+
data.tar.gz: 7e377718aee55b5f5f35a7cc07a5c2d00a6010754e44816d743b50b55bfefe4bbac51970dea29093be891a3bd8bb83b69074f3ade1777f363f42b8f059e74c44
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
before_install: gem install bundler -v 1.17.3
|
2
|
+
language: ruby
|
3
|
+
rvm:
|
4
|
+
- 2.3.7
|
5
|
+
cache: bundler
|
6
|
+
before_script:
|
7
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
8
|
+
- chmod +x ./cc-test-reporter
|
9
|
+
- ./cc-test-reporter before-build
|
10
|
+
script:
|
11
|
+
- bundle exec rspec
|
12
|
+
after_script:
|
13
|
+
- ./cc-test-reporter after-build --debug --exit-code $TRAVIS_TEST_RESULT
|
14
|
+
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
easy_rspec (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
coderay (1.1.2)
|
10
|
+
diff-lcs (1.3)
|
11
|
+
docile (1.3.1)
|
12
|
+
fakefs (0.20.0)
|
13
|
+
json (2.2.0)
|
14
|
+
method_source (0.9.2)
|
15
|
+
pry (0.12.2)
|
16
|
+
coderay (~> 1.1.0)
|
17
|
+
method_source (~> 0.9.0)
|
18
|
+
rake (10.5.0)
|
19
|
+
rb-readline (0.5.5)
|
20
|
+
rspec (3.8.0)
|
21
|
+
rspec-core (~> 3.8.0)
|
22
|
+
rspec-expectations (~> 3.8.0)
|
23
|
+
rspec-mocks (~> 3.8.0)
|
24
|
+
rspec-core (3.8.0)
|
25
|
+
rspec-support (~> 3.8.0)
|
26
|
+
rspec-expectations (3.8.2)
|
27
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
28
|
+
rspec-support (~> 3.8.0)
|
29
|
+
rspec-mocks (3.8.0)
|
30
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
+
rspec-support (~> 3.8.0)
|
32
|
+
rspec-support (3.8.0)
|
33
|
+
simplecov (0.16.1)
|
34
|
+
docile (~> 1.1)
|
35
|
+
json (>= 1.8, < 3)
|
36
|
+
simplecov-html (~> 0.10.0)
|
37
|
+
simplecov-html (0.10.2)
|
38
|
+
|
39
|
+
PLATFORMS
|
40
|
+
ruby
|
41
|
+
|
42
|
+
DEPENDENCIES
|
43
|
+
bundler (~> 1.17)
|
44
|
+
easy_rspec!
|
45
|
+
fakefs
|
46
|
+
pry
|
47
|
+
rake (~> 10.0)
|
48
|
+
rb-readline
|
49
|
+
rspec (~> 3.0)
|
50
|
+
simplecov
|
51
|
+
|
52
|
+
BUNDLED WITH
|
53
|
+
1.17.3
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Jason Mattingly
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
# EasyRspec
|
2
|
+
[](https://codeclimate.com/github/jasonmattingly/easy_rspec/maintainability)
|
3
|
+
[](https://codeclimate.com/github/jasonmattingly/easy_rspec/test_coverage)
|
4
|
+
[](https://travis-ci.org/jasonmattingly/easy_rspec)
|
5
|
+
|
6
|
+
EasyRspec allows you to build an RSpec test file from scratch with a single command. The RSpec test file will be generated with:
|
7
|
+
1. A file path mirroring the path of the file being tested.
|
8
|
+
|
9
|
+
**Original file path:** `app/models/users/customer.rb`
|
10
|
+
|
11
|
+
**Generated test file path:** `spec/models/users/customer_spec.rb`
|
12
|
+
2. Correct headers describing the class being tested
|
13
|
+
|
14
|
+
**Original file header:** `class Customer < ApplicationRecord`
|
15
|
+
|
16
|
+
**Generated test file header:** `describe Customer do`
|
17
|
+
3. Describe blocks for instance and class methods found in the original file
|
18
|
+
|
19
|
+
**Original file:**
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
class Customer < ApplicationRecord
|
23
|
+
def name
|
24
|
+
if first_name && last_name
|
25
|
+
"#{first_name} #{last_name}"
|
26
|
+
else
|
27
|
+
"Lu Peachem"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.always_right?
|
32
|
+
false
|
33
|
+
end
|
34
|
+
end
|
35
|
+
```
|
36
|
+
**Generated test file:**
|
37
|
+
```ruby
|
38
|
+
describe Customer do
|
39
|
+
describe '#name' do
|
40
|
+
context '' do
|
41
|
+
it '' do
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe '.always_right?' do
|
47
|
+
context '' do
|
48
|
+
it '' do
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
```
|
54
|
+
## Install
|
55
|
+
```ruby
|
56
|
+
gem install easy_rspec
|
57
|
+
```
|
58
|
+
Or add to your Gemfile:
|
59
|
+
```ruby
|
60
|
+
gem 'easy_rspec'
|
61
|
+
```
|
62
|
+
## Usage
|
63
|
+
Simply type `easy_rspec ClassName` into the console, where `ClassName` is the name of the class you'd like to create an RSpec test file for. If, for instance, the name of the class you'd like to create a test file for is `Customer`, you would type
|
64
|
+
```
|
65
|
+
easy_rspec Customer
|
66
|
+
```
|
67
|
+
and then press enter.
|
68
|
+
|
69
|
+
If a test file already exists at the expected RSpec file path, you will receive an error message and no file will be created nor will the pre-existing file be changed.
|
70
|
+
|
71
|
+
EasyRspec only generates tests for files that are located in your `app/` directory. If there are multiple files in your `app/` directory that match the class you requested, you will be asked to specify which file you were intending to create a test file for:
|
72
|
+
```
|
73
|
+
Which number represents your file path?
|
74
|
+
0. app/models/users/customer.rb
|
75
|
+
1. app/models/customer.rb
|
76
|
+
```
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "easy_rspec"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
require "pry"
|
11
|
+
Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/easy_rspec.gemspec
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "easy_rspec/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "easy_rspec"
|
8
|
+
spec.version = EasyRspec::VERSION
|
9
|
+
spec.authors = ["Jason Mattingly"]
|
10
|
+
spec.email = ["jason.mattingly@hotmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Create customized RSpec templates with a single command}
|
13
|
+
spec.description = %q{Create customized RSpec templates with a single command}
|
14
|
+
spec.homepage = "https://github.com/jasonmattingly/easy_rspec"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
21
|
+
|
22
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
23
|
+
spec.metadata["source_code_uri"] = "https://github.com/jasonmattingly/easy_rspec"
|
24
|
+
else
|
25
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
26
|
+
"public gem pushes."
|
27
|
+
end
|
28
|
+
|
29
|
+
# Specify which files should be added to the gem when it is released.
|
30
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
31
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
32
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
33
|
+
end
|
34
|
+
spec.bindir = "exe"
|
35
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
|
+
spec.require_paths = ["lib"]
|
37
|
+
|
38
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
39
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
40
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
41
|
+
spec.add_development_dependency "pry"
|
42
|
+
spec.add_development_dependency "rb-readline"
|
43
|
+
spec.add_development_dependency "fakefs"
|
44
|
+
spec.add_development_dependency "simplecov"
|
45
|
+
end
|
data/lib/easy_rspec.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require "easy_rspec/version"
|
2
|
+
require 'pry'
|
3
|
+
module EasyRspec
|
4
|
+
class Error < StandardError; end
|
5
|
+
require 'easy_rspec/original_file.rb'
|
6
|
+
require 'easy_rspec/rspec_file.rb'
|
7
|
+
require 'easy_rspec/rspec_file_builder.rb'
|
8
|
+
require 'easy_rspec/file_path_finder.rb'
|
9
|
+
require 'easy_rspec/file_contents.rb'
|
10
|
+
require 'easy_rspec/commandline_listener.rb'
|
11
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module EasyRspec
|
2
|
+
class FileContents
|
3
|
+
|
4
|
+
attr_accessor :instance_methods, :class_methods
|
5
|
+
|
6
|
+
def initialize(file_path)
|
7
|
+
self.instance_methods = []
|
8
|
+
self.class_methods = []
|
9
|
+
find_contents(file_path)
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def find_contents(file_path)
|
15
|
+
File.foreach(file_path) do |line|
|
16
|
+
if line_contains_class_method?(line)
|
17
|
+
class_methods << class_method_name(line)
|
18
|
+
end
|
19
|
+
if line_contains_instance_method?(line)
|
20
|
+
instance_methods << instance_method_name(line)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def line_contains_class_method?(line)
|
26
|
+
line.include?('def self.')
|
27
|
+
end
|
28
|
+
|
29
|
+
def class_method_name(line)
|
30
|
+
line.gsub('def self.','').gsub('\n', '').strip
|
31
|
+
end
|
32
|
+
|
33
|
+
def line_contains_instance_method?(line)
|
34
|
+
!line_contains_class_method?(line) && line.include?('def ')
|
35
|
+
end
|
36
|
+
|
37
|
+
def instance_method_name(line)
|
38
|
+
line.gsub('def ','').gsub('\n', '').strip
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'find'
|
2
|
+
module EasyRspec
|
3
|
+
class FilePathFinder
|
4
|
+
|
5
|
+
def initialize(klass_name)
|
6
|
+
@klass_name = klass_name
|
7
|
+
end
|
8
|
+
|
9
|
+
def file_path
|
10
|
+
file_path = if matching_file_paths.one?
|
11
|
+
matching_file_paths.first
|
12
|
+
elsif matching_file_paths.size > 1
|
13
|
+
user_selected_file
|
14
|
+
else
|
15
|
+
nil
|
16
|
+
end
|
17
|
+
raise "File path not found" unless file_path
|
18
|
+
file_path
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def user_selected_file
|
24
|
+
max_index = matching_file_paths.size - 1
|
25
|
+
index = user_selected_index
|
26
|
+
if index && index <= max_index
|
27
|
+
matching_file_paths[index]
|
28
|
+
else
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
def user_selected_index
|
34
|
+
puts "\nWhich number represents your file path?\n\n"
|
35
|
+
matching_file_paths.each_with_index do |file_path, index|
|
36
|
+
puts "#{index}. #{file_path}"
|
37
|
+
end
|
38
|
+
puts "\n"
|
39
|
+
user_provided_index = STDIN.gets.gsub(/[^\d]/, '')
|
40
|
+
user_provided_index ? user_provided_index.to_i : nil
|
41
|
+
end
|
42
|
+
|
43
|
+
def file_name
|
44
|
+
"#{file_name_components.join('/')}.rb"
|
45
|
+
end
|
46
|
+
|
47
|
+
def file_name_components
|
48
|
+
klass_name_components.map{ |component| component.gsub(/(.)([A-Z])/,'\1_\2').downcase }
|
49
|
+
end
|
50
|
+
|
51
|
+
def klass_name_components
|
52
|
+
@klass_name.to_s.split('::')
|
53
|
+
end
|
54
|
+
|
55
|
+
def matching_file_paths
|
56
|
+
@matching_file_paths ||= app_file_paths.select{ |file_path| file_path.include? "/#{file_name}" }
|
57
|
+
end
|
58
|
+
|
59
|
+
def app_file_paths
|
60
|
+
Find.find('app/').select { |file| File.extname(file) == '.rb' }
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module EasyRspec
|
2
|
+
class OriginalFile
|
3
|
+
|
4
|
+
attr_reader :klass_name
|
5
|
+
|
6
|
+
def initialize(klass_name)
|
7
|
+
@klass_name = Object.const_get(klass_name.to_s)
|
8
|
+
end
|
9
|
+
|
10
|
+
def path
|
11
|
+
@path ||= FilePathFinder.new(@klass_name).file_path
|
12
|
+
end
|
13
|
+
|
14
|
+
def directory
|
15
|
+
@directory ||= path.split(name).first
|
16
|
+
end
|
17
|
+
|
18
|
+
def name
|
19
|
+
@name ||= path.split('/').last
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module EasyRspec
|
2
|
+
class RspecFile
|
3
|
+
|
4
|
+
def initialize(original_file)
|
5
|
+
@original_file = original_file
|
6
|
+
end
|
7
|
+
|
8
|
+
def path
|
9
|
+
"#{directory}#{name}"
|
10
|
+
end
|
11
|
+
|
12
|
+
def directory
|
13
|
+
@original_file.directory.sub('app/', 'spec/')
|
14
|
+
end
|
15
|
+
|
16
|
+
def name
|
17
|
+
@original_file.name.sub('.rb', '_spec.rb')
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
module EasyRspec
|
3
|
+
class RspecFileBuilder
|
4
|
+
|
5
|
+
def initialize(klass_name)
|
6
|
+
@klass_name = klass_name
|
7
|
+
end
|
8
|
+
|
9
|
+
def build
|
10
|
+
raise "RSpec file already exists at #{rspec_file.path}" if File.file?(rspec_file.path)
|
11
|
+
|
12
|
+
FileUtils.mkdir_p rspec_file.directory
|
13
|
+
File.new(rspec_file.path, 'w')
|
14
|
+
|
15
|
+
File.open(rspec_file.path, "w+") do |f|
|
16
|
+
f.write("describe #{original_file.klass_name} do")
|
17
|
+
|
18
|
+
file_contents.instance_methods.each do |instance_method|
|
19
|
+
write_method_spec(f, "##{instance_method}")
|
20
|
+
end
|
21
|
+
|
22
|
+
file_contents.class_methods.each do |class_method|
|
23
|
+
write_method_spec(f, ".#{class_method}")
|
24
|
+
end
|
25
|
+
|
26
|
+
f.write("\n\nend\n")
|
27
|
+
end
|
28
|
+
|
29
|
+
"RSpec file created successfully at #{rspec_file.path}"
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def original_file
|
35
|
+
@original_file ||= OriginalFile.new(@klass_name)
|
36
|
+
end
|
37
|
+
|
38
|
+
def rspec_file
|
39
|
+
@rspec_file ||= RspecFile.new(original_file)
|
40
|
+
end
|
41
|
+
|
42
|
+
def file_contents
|
43
|
+
@file_contents ||= FileContents.new(original_file.path)
|
44
|
+
end
|
45
|
+
|
46
|
+
def write_method_spec(file, descriptor)
|
47
|
+
file.write("\n")
|
48
|
+
file.write("\n describe '#{descriptor}' do")
|
49
|
+
file.write("\n context '' do")
|
50
|
+
file.write("\n it '' do")
|
51
|
+
file.write("\n end")
|
52
|
+
file.write("\n end")
|
53
|
+
file.write("\n end")
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
57
|
+
end
|
metadata
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: easy_rspec
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jason Mattingly
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-04-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.17'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.17'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rb-readline
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: fakefs
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Create customized RSpec templates with a single command
|
112
|
+
email:
|
113
|
+
- jason.mattingly@hotmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".travis.yml"
|
121
|
+
- Gemfile
|
122
|
+
- Gemfile.lock
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- bin/console
|
127
|
+
- bin/setup
|
128
|
+
- easy_rspec.gemspec
|
129
|
+
- lib/easy_rspec.rb
|
130
|
+
- lib/easy_rspec/commandline_listener.rb
|
131
|
+
- lib/easy_rspec/file_contents.rb
|
132
|
+
- lib/easy_rspec/file_path_finder.rb
|
133
|
+
- lib/easy_rspec/original_file.rb
|
134
|
+
- lib/easy_rspec/rspec_file.rb
|
135
|
+
- lib/easy_rspec/rspec_file_builder.rb
|
136
|
+
- lib/easy_rspec/version.rb
|
137
|
+
homepage: https://github.com/jasonmattingly/easy_rspec
|
138
|
+
licenses:
|
139
|
+
- MIT
|
140
|
+
metadata:
|
141
|
+
allowed_push_host: https://rubygems.org/
|
142
|
+
homepage_uri: https://github.com/jasonmattingly/easy_rspec
|
143
|
+
source_code_uri: https://github.com/jasonmattingly/easy_rspec
|
144
|
+
post_install_message:
|
145
|
+
rdoc_options: []
|
146
|
+
require_paths:
|
147
|
+
- lib
|
148
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
requirements: []
|
159
|
+
rubyforge_project:
|
160
|
+
rubygems_version: 2.6.14
|
161
|
+
signing_key:
|
162
|
+
specification_version: 4
|
163
|
+
summary: Create customized RSpec templates with a single command
|
164
|
+
test_files: []
|