rake_rack 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 780cb07503e5ad1cd4f423fcd1fd3886202f51c0
4
- data.tar.gz: 8dd341e4a786dda152bd723d77f0ea89b9908eef
3
+ metadata.gz: 09ded151aec45fa3d6eca1511d9e949b600d4879
4
+ data.tar.gz: b186a7ce26b72d0d9e15485686631722f9f57d01
5
5
  SHA512:
6
- metadata.gz: e4032d4f0851e30c42de13eb3a096e2edc37db8370c9f4ee3fbfb553dad87ca794f78fd470c8ea6b0e4f5638bd583839cc8364592e4b635d635fe6b303bd77b5
7
- data.tar.gz: 3e5574e3aed38972d1921fc55418151510dc13a7059dd4fe47ca7fda8041877a6812dd742de6dba708a596b79700978f590f61c5181a5276decf3c91f8517ea4
6
+ metadata.gz: 627e0cef320cef926cfe5de463f5d507f3dcf73513625bd5281d30cc9f4d2507beb1b293b256a1e66baca8064a8fb98dacfa1c9afb1f61e5969ce3f8e4cdf620
7
+ data.tar.gz: 6fb0bbb5f743a35c4a7e5dbb1ff6b83a9c76990a82cea68146b0f6d5b9e5eda92c6fce08ff70491dab81ee271d404df16201b632db5b9b686c775eeba768f562
data/.travis.yml CHANGED
@@ -3,7 +3,6 @@ rvm:
3
3
  - 2.1.0
4
4
  - 2.0.0
5
5
  - 1.9.3
6
- - rbx-2
7
6
  - ruby-head
8
7
  - jruby-head
9
8
  deploy:
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
@@ -1,3 +1,5 @@
1
+ == 0.1.1 (24 July 2014)
2
+
1
3
  == 0.1.0 (18 July 2014)
2
4
 
3
5
  == 0.0.6 (17 July 2014)
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.0'
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
- before do
11
- allow(File).to receive(:read).and_return 'history'
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
- it 'returns the current history file' do
15
- expect(described_class.current_history('./path')).to eq 'history'
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.0
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-18 00:00:00.000000000 Z
11
+ date: 2014-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake