mutagen 0.0.1
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 +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/bin/mutagen +5 -0
- data/lib/mutagen.rb +5 -0
- data/lib/mutagen/constants.rb +5 -0
- data/lib/mutagen/spec_block.rb +17 -0
- data/lib/mutagen/spec_file.rb +9 -0
- data/lib/mutagen/version.rb +3 -0
- data/mutagen.gemspec +23 -0
- data/spec/fixtures/bang_block.rb +5 -0
- data/spec/fixtures/class_block.rb +5 -0
- data/spec/fixtures/instance_block.rb +5 -0
- data/spec/fixtures/plain_block.rb +5 -0
- data/spec/fixtures/predicate_block.rb +5 -0
- data/spec/fixtures/writer_block.rb +5 -0
- data/spec/spec_block_spec.rb +91 -0
- data/spec/spec_file_spec.rb +0 -0
- metadata +102 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 05df0fe0deb76256c1f6b6c9c6f97c5e47a1b152
|
4
|
+
data.tar.gz: 35f6a6e78af6274cb9183d4c8900130ad1b260e9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 462fb16f2068cab8a49b067fe71249f4192abfcf3ef313ad765eaf9381be201b4d52995341b422df9e12afb8e2056baff1a932e8d38b541e18566e2f5d1a129e
|
7
|
+
data.tar.gz: c3e74040a7fcc11a9ace6001ec366ca60d6e416691a6eba9644fce2a9984ffcb6870f927c766880766d4930e7748f9d46b0e5efa819c59972004fb9908d799ca
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Robert Fletcher
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Mutagen
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'mutagen'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install mutagen
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/mutagen
ADDED
data/lib/mutagen.rb
ADDED
data/mutagen.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'mutagen/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "mutagen"
|
8
|
+
spec.version = Mutagen::VERSION
|
9
|
+
spec.authors = ["Robert Fletcher"]
|
10
|
+
spec.email = ["lobatifricha@gmail.com"]
|
11
|
+
spec.description = %q{utilities for mutation testing}
|
12
|
+
spec.summary = %q{see description}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
require_relative '../lib/mutagen'
|
2
|
+
|
3
|
+
describe SpecBlock do
|
4
|
+
|
5
|
+
let(:file_types) { Mutagen::METHOD_TYPES.map { |mt| "#{mt}_block" } }
|
6
|
+
file_types.each do |file_type|
|
7
|
+
file_path = File.expand_path("fixtures/#{file_type}.rb", __FILE__)
|
8
|
+
let(file_type) { File.read(file_path) }
|
9
|
+
end
|
10
|
+
|
11
|
+
let(:spec_block) { SpecBlock.new }
|
12
|
+
|
13
|
+
describe '#title' do
|
14
|
+
context 'given a bang block' do
|
15
|
+
it 'returns a bang title' do
|
16
|
+
spec_block.text = bang_block
|
17
|
+
expect(spec_block.title).to eq '#my_method!'
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
context 'given a class block' do
|
22
|
+
it 'returns a class title' do
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
context 'given an instance block' do
|
27
|
+
it 'returns an instance title' do
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
context 'given a plain block' do
|
32
|
+
it 'returns a plain title' do
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
context 'given a predicate block' do
|
37
|
+
it 'returns a predicate title' do
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
context 'given a writer block' do
|
42
|
+
it 'returns a writer title' do
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe '#body' do
|
48
|
+
it 'returns the body of the block' do
|
49
|
+
file_types.each do |file_type|
|
50
|
+
spec_block.text = send(file_type)
|
51
|
+
expect(spec_block.body).to eq " it 'does something' do\n" <<
|
52
|
+
" expect('blah').to be_true\n" <<
|
53
|
+
" end\n"
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe '#filename' do
|
59
|
+
context 'given a bang block' do
|
60
|
+
it 'returns a bang filename' do
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
context 'given a class block' do
|
65
|
+
it 'returns a class filename' do
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
context 'given an instance block' do
|
70
|
+
it 'returns an instance filename' do
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
context 'given a plain block' do
|
75
|
+
it 'returns a plain filename' do
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
context 'given a predicate block' do
|
80
|
+
it 'returns a predicate filename' do
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
context 'given a writer block' do
|
85
|
+
it 'returns a writer filename' do
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mutagen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Robert Fletcher
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-02-03 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.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: utilities for mutation testing
|
42
|
+
email:
|
43
|
+
- lobatifricha@gmail.com
|
44
|
+
executables:
|
45
|
+
- mutagen
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- .gitignore
|
50
|
+
- Gemfile
|
51
|
+
- LICENSE.txt
|
52
|
+
- README.md
|
53
|
+
- Rakefile
|
54
|
+
- bin/mutagen
|
55
|
+
- lib/mutagen.rb
|
56
|
+
- lib/mutagen/constants.rb
|
57
|
+
- lib/mutagen/spec_block.rb
|
58
|
+
- lib/mutagen/spec_file.rb
|
59
|
+
- lib/mutagen/version.rb
|
60
|
+
- mutagen.gemspec
|
61
|
+
- spec/fixtures/bang_block.rb
|
62
|
+
- spec/fixtures/class_block.rb
|
63
|
+
- spec/fixtures/instance_block.rb
|
64
|
+
- spec/fixtures/plain_block.rb
|
65
|
+
- spec/fixtures/predicate_block.rb
|
66
|
+
- spec/fixtures/writer_block.rb
|
67
|
+
- spec/spec_block_spec.rb
|
68
|
+
- spec/spec_file_spec.rb
|
69
|
+
homepage: ''
|
70
|
+
licenses:
|
71
|
+
- MIT
|
72
|
+
metadata: {}
|
73
|
+
post_install_message:
|
74
|
+
rdoc_options: []
|
75
|
+
require_paths:
|
76
|
+
- lib
|
77
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
requirements: []
|
88
|
+
rubyforge_project:
|
89
|
+
rubygems_version: 2.1.11
|
90
|
+
signing_key:
|
91
|
+
specification_version: 4
|
92
|
+
summary: see description
|
93
|
+
test_files:
|
94
|
+
- spec/fixtures/bang_block.rb
|
95
|
+
- spec/fixtures/class_block.rb
|
96
|
+
- spec/fixtures/instance_block.rb
|
97
|
+
- spec/fixtures/plain_block.rb
|
98
|
+
- spec/fixtures/predicate_block.rb
|
99
|
+
- spec/fixtures/writer_block.rb
|
100
|
+
- spec/spec_block_spec.rb
|
101
|
+
- spec/spec_file_spec.rb
|
102
|
+
has_rdoc:
|