rake_rack 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/README.md +21 -0
- data/history.rdoc +2 -0
- data/lib/version.rb +5 -0
- data/rake_rack.gemspec +1 -1
- data/spec/version_spec.rb +19 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09ded151aec45fa3d6eca1511d9e949b600d4879
|
4
|
+
data.tar.gz: b186a7ce26b72d0d9e15485686631722f9f57d01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 627e0cef320cef926cfe5de463f5d507f3dcf73513625bd5281d30cc9f4d2507beb1b293b256a1e66baca8064a8fb98dacfa1c9afb1f61e5969ce3f8e4cdf620
|
7
|
+
data.tar.gz: 6fb0bbb5f743a35c4a7e5dbb1ff6b83a9c76990a82cea68146b0f6d5b9e5eda92c6fce08ff70491dab81ee271d404df16201b632db5b9b686c775eeba768f562
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -19,6 +19,27 @@ You can then call them like you would any other rake task.
|
|
19
19
|
|
20
20
|
All tasks are namespaced with `:rake_rack` to prevent clashing with other tasks
|
21
21
|
|
22
|
+
### :code_quality
|
23
|
+
#### :all
|
24
|
+
Runs `[:trailing_spaces, :shoulds, :debugger, :pry, :console_log]` tasks. It does not run `:time_check`
|
25
|
+
##### :trailing_spaces
|
26
|
+
Check for trailing spaces in `[spec, features, lib, app, factories, db]`.
|
27
|
+
##### :shoulds
|
28
|
+
Check for legacy 'it "should blah"' style specs
|
29
|
+
##### :debugger
|
30
|
+
Check for debugger statements in `[lib, app, spec, features]`.
|
31
|
+
##### :pry
|
32
|
+
Check for binding.pry statements in `[lib, app, spec, features]`.
|
33
|
+
##### :console_log
|
34
|
+
Check for console.log statements in `app/assets/javascripys`.
|
35
|
+
|
36
|
+
### :coverage
|
37
|
+
#### :check_specs
|
38
|
+
Look at SimpleCov results for spec coverage in `log/coverage/spec` and fail the build if not 100%
|
39
|
+
#### :check_cucumber
|
40
|
+
Look at SimpleCov results for Cucumber coverage in `log/coverage/features` and fail the build if not 100%
|
41
|
+
|
42
|
+
|
22
43
|
ToDo
|
23
44
|
----
|
24
45
|
1. Add a list of all the rake tasks to the Readme
|
data/history.rdoc
CHANGED
data/lib/version.rb
CHANGED
@@ -2,6 +2,11 @@ class RakeRack
|
|
2
2
|
class Version
|
3
3
|
HISTORY_FILE = "history.rdoc"
|
4
4
|
def self.current_history history_file
|
5
|
+
unless File.exists? history_file
|
6
|
+
File.open history_file, "w" do |f|
|
7
|
+
f.puts "== 0.0.0 (#{Time.now.strftime "%d %B %Y"})"
|
8
|
+
end
|
9
|
+
end
|
5
10
|
File.read history_file
|
6
11
|
end
|
7
12
|
|
data/rake_rack.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "rake_rack"
|
7
|
-
spec.version = '0.1.
|
7
|
+
spec.version = '0.1.1'
|
8
8
|
spec.authors = ["Richard Vickerstaff"]
|
9
9
|
spec.email = ["m3akq@btinternet.com"]
|
10
10
|
spec.description = "A set of rake tasks I commonly use - Formerly known as pool_net"
|
data/spec/version_spec.rb
CHANGED
@@ -7,12 +7,27 @@ describe RakeRack::Version do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
describe '.current_history' do
|
10
|
-
|
11
|
-
|
10
|
+
let(:tmp_file) { Tempfile.new(['history','.rdoc']) }
|
11
|
+
|
12
|
+
context 'when there is a history file' do
|
13
|
+
before do
|
14
|
+
allow(File).to receive(:read).and_return 'history'
|
15
|
+
allow(File).to receive(:exists?).and_return true
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'returns the current history file' do
|
19
|
+
expect(described_class.current_history(tmp_file.path)).to eq 'history'
|
20
|
+
end
|
12
21
|
end
|
13
22
|
|
14
|
-
|
15
|
-
|
23
|
+
context 'when there is no history file' do
|
24
|
+
before do
|
25
|
+
allow(File).to receive(:exists?).and_return false
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'creates a history file at version 0.0.0' do
|
29
|
+
expect(described_class.current_history(tmp_file.path)).to match(/\= 0.0.0 /)
|
30
|
+
end
|
16
31
|
end
|
17
32
|
end
|
18
33
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Vickerstaff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|