should_clean 0.0.1 → 0.0.2
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.
- data/README.md +12 -10
- data/lib/should_clean/version.rb +1 -1
- data/should_clean.gemspec +2 -2
- metadata +52 -42
data/README.md
CHANGED
@@ -1,24 +1,26 @@
|
|
1
1
|
# ShouldClean
|
2
2
|
|
3
|
-
|
3
|
+
Clean "should" from test libraries. Example:
|
4
4
|
|
5
|
-
|
5
|
+
it "should do something"
|
6
6
|
|
7
|
-
|
7
|
+
is replaced with:
|
8
8
|
|
9
|
-
|
9
|
+
it "does something"
|
10
10
|
|
11
|
-
|
11
|
+
## Installation
|
12
12
|
|
13
|
-
|
13
|
+
gem install should_clean
|
14
14
|
|
15
|
-
|
15
|
+
## Usage
|
16
16
|
|
17
|
-
|
17
|
+
Search and replace in a directory:
|
18
18
|
|
19
|
-
|
19
|
+
should_clean -d DIRECTORY
|
20
|
+
|
21
|
+
Run in simulator mode (it just prints the changes to the screen)
|
20
22
|
|
21
|
-
|
23
|
+
should_clean -d DIRECTORY -s
|
22
24
|
|
23
25
|
## Contributing
|
24
26
|
|
data/lib/should_clean/version.rb
CHANGED
data/should_clean.gemspec
CHANGED
@@ -4,8 +4,8 @@ require File.expand_path('../lib/should_clean/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Sachin Ranchod", "Dalibor Nasevic"]
|
6
6
|
gem.email = ["sachin.ranchod@gmail.com", "dalibor.nasevic@gmail.com"]
|
7
|
-
gem.description = %q{
|
8
|
-
gem.summary = %q{It changes "it should do" to "it does"}
|
7
|
+
gem.description = %q{Utility to remove unneeded shoulds from your RSpec test descriptions - 'it "should do something"' becomes 'it "does something"'}
|
8
|
+
gem.summary = %q{It changes "it should do" to "it does" in your RSpec files}
|
9
9
|
gem.homepage = ""
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
metadata
CHANGED
@@ -1,42 +1,46 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: should_clean
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Sachin Ranchod
|
9
13
|
- Dalibor Nasevic
|
10
14
|
autorequire:
|
11
15
|
bindir: bin
|
12
16
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
17
|
+
|
18
|
+
date: 2012-09-06 00:00:00 +02:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
16
22
|
name: rspec
|
17
|
-
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
|
-
requirements:
|
20
|
-
- - ! '>='
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '0'
|
23
|
-
type: :development
|
24
23
|
prerelease: false
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
type: :development
|
32
|
+
version_requirements: *id001
|
33
|
+
description: Utility to remove unneeded shoulds from your RSpec test descriptions - 'it "should do something"' becomes 'it "does something"'
|
34
|
+
email:
|
33
35
|
- sachin.ranchod@gmail.com
|
34
36
|
- dalibor.nasevic@gmail.com
|
35
|
-
executables:
|
37
|
+
executables:
|
36
38
|
- should_clean
|
37
39
|
extensions: []
|
40
|
+
|
38
41
|
extra_rdoc_files: []
|
39
|
-
|
42
|
+
|
43
|
+
files:
|
40
44
|
- .gitignore
|
41
45
|
- .rspec
|
42
46
|
- Gemfile
|
@@ -68,31 +72,37 @@ files:
|
|
68
72
|
- spec/should_clean/simulator_spec.rb
|
69
73
|
- spec/should_clean_spec.rb
|
70
74
|
- spec/spec_helper.rb
|
71
|
-
|
75
|
+
has_rdoc: true
|
76
|
+
homepage: ""
|
72
77
|
licenses: []
|
78
|
+
|
73
79
|
post_install_message:
|
74
80
|
rdoc_options: []
|
75
|
-
|
81
|
+
|
82
|
+
require_paths:
|
76
83
|
- lib
|
77
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
91
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
segments:
|
96
|
+
- 0
|
97
|
+
version: "0"
|
89
98
|
requirements: []
|
99
|
+
|
90
100
|
rubyforge_project:
|
91
|
-
rubygems_version: 1.
|
101
|
+
rubygems_version: 1.3.6
|
92
102
|
signing_key:
|
93
103
|
specification_version: 3
|
94
|
-
summary: It changes "it should do" to "it does"
|
95
|
-
test_files:
|
104
|
+
summary: It changes "it should do" to "it does" in your RSpec files
|
105
|
+
test_files:
|
96
106
|
- spec/fixtures/broken_spec.txt
|
97
107
|
- spec/fixtures/example_correct_spec.txt
|
98
108
|
- spec/fixtures/example_spec.txt
|