rake-n-bake 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6ff216e7fab259ec79e7ccd090789f4a5f26337d
4
+ data.tar.gz: f26df9d8663f920a778884062d093496b26c6551
5
+ SHA512:
6
+ metadata.gz: 2df06a130628ba279c406ea3e92e9694fca673e1c9fea26f7938e3702f0016bd1db7a482bf50ad64d328f98e643ce597b63e59719ac1b230328c8f8d0209de17
7
+ data.tar.gz: ac4be1fd167deb03e7a9990c132e6f0e98a982131cdb4c6e27ce40b760c219cf31ff3548e59f11c9368366aef4d670f33d0020adb9d1c2185966e3bf5bcdf556
data/.bundle/config ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_BIN: bin
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ /log/*
2
+ *.gem
3
+ *.sw?
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.2
data/.travis.yml ADDED
@@ -0,0 +1,16 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.0
4
+ - 2.0.0
5
+ - 1.9.3
6
+ - ruby-head
7
+ - jruby-1.7.12
8
+ deploy:
9
+ provider: rubygems
10
+ api_key:
11
+ secure: RmGYn4yb1PPjZxdWxgwUWTENnRaqp/PXUMfieJoAE0Dw1JrwkjxI3qhy/I6p36KusLsrFxrh4UdATj78QsWdtZVLJ9tvjONOsrAUjIszBwRmOXDWRkH8eLGCCmIYfYMZaRYvlQhPR2t5CC6BwfHS6W1AU5YtU5SSpk0HT+SRzII=
12
+ gem: rake_rack
13
+ on:
14
+ tags: true
15
+ repo: RichardVickerstaff/rake_rack
16
+ all_branches: true
data/Gemfile ADDED
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'semver2'
7
+ gem 'rake'
8
+ gem 'rspec'
9
+ gem 'bundler-audit'
10
+ gem 'simplecov'
11
+ gem 'timecop'
12
+ gem 'term-ansicolor', '~> 1.3'
13
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rake-n-bake (1.0.0)
5
+ rake (~> 10)
6
+ term-ansicolor (~> 1.3)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ bundler-audit (0.3.1)
12
+ bundler (~> 1.2)
13
+ thor (~> 0.18)
14
+ diff-lcs (1.2.5)
15
+ docile (1.1.5)
16
+ multi_json (1.10.1)
17
+ rake (10.3.2)
18
+ rspec (3.0.0)
19
+ rspec-core (~> 3.0.0)
20
+ rspec-expectations (~> 3.0.0)
21
+ rspec-mocks (~> 3.0.0)
22
+ rspec-core (3.0.3)
23
+ rspec-support (~> 3.0.0)
24
+ rspec-expectations (3.0.3)
25
+ diff-lcs (>= 1.2.0, < 2.0)
26
+ rspec-support (~> 3.0.0)
27
+ rspec-mocks (3.0.3)
28
+ rspec-support (~> 3.0.0)
29
+ rspec-support (3.0.3)
30
+ semver2 (3.4.0)
31
+ simplecov (0.9.0)
32
+ docile (~> 1.1.0)
33
+ multi_json
34
+ simplecov-html (~> 0.8.0)
35
+ simplecov-html (0.8.0)
36
+ term-ansicolor (1.3.0)
37
+ tins (~> 1.0)
38
+ thor (0.19.1)
39
+ timecop (0.7.1)
40
+ tins (1.3.2)
41
+
42
+ PLATFORMS
43
+ ruby
44
+
45
+ DEPENDENCIES
46
+ bundler-audit
47
+ rake
48
+ rake-n-bake!
49
+ rspec
50
+ semver2
51
+ simplecov
52
+ term-ansicolor (~> 1.3)
53
+ timecop
data/README.md ADDED
@@ -0,0 +1,80 @@
1
+ Rake-n-Bake
2
+ ===========
3
+
4
+ Commonly used Rake tasks
5
+ ------------------------
6
+ ...collected together and baked to perfection, ready to serve!
7
+
8
+
9
+ [![Build Status](https://travis-ci.org/RichardVickerstaff/rake-n-bake.svg?branch=master)](https://travis-ci.org/RichardVickerstaff/rake-n-bake)
10
+ [![Gem Version](https://badge.fury.io/rb/rake-n-bake.svg)](http://badge.fury.io/rb/rake-n-bake)
11
+
12
+ Rake-n-Bake is a collection of widely applicable Rake tasks used on many projects.
13
+ They have been extracted into a gem to allow them to easily be reused and maintained.
14
+
15
+ Rake-n-Bake tasks are used on the project itself, so you can always take a peek at our [Rakefile](https://github.com/RichardVickerstaff/rake-n-bake/blob/master/Rakefile) or the [tasks themselves](https://github.com/RichardVickerstaff/rake-n-bake/tree/master/tasks) to work out what is going on
16
+
17
+ Installation
18
+ ------------
19
+ Either:
20
+ 1. Add `gem "rake-n-bake"` to your Gemfile and run bundle install.
21
+ or
22
+ 2. Run `gem install rake-n-bake`
23
+
24
+ Usage
25
+ -----
26
+ 1. Add `require "rake_n_bake"` to your Rakefile
27
+ 2. Call the tasks that you want, just as with your usual Rake tasks (examples below!).
28
+
29
+ Tasks
30
+ -----
31
+ Tasks are namespaced under `:bake` to prevent clashes. For example, the `:ok` task is called by invoking `:bake:ok`
32
+
33
+ ### :bundler_audit
34
+ Check the current Gemfile.lock for gem versions with known security issues, courtesy of [Bundler Audit](https://github.com/rubysec/bundler-audit#readme)
35
+
36
+ ### :check_external_dependencies
37
+ Check that each command in the `@external_dependencies` array is present on the system path (and fails the task if it isn't)
38
+ For example:
39
+ ```ruby
40
+ @external_dependencies = ['ruby', 'postgres', 'foo']
41
+ ```
42
+ You can also use the underlying checker object by creating an instance of `RakeNBake::DependencyChecker` with your array of dependencies and calling `#check` or `#missing` on it.
43
+
44
+ ### :code_quality
45
+ #### :all
46
+ Runs `[:trailing_spaces, :shoulds, :debugger, :pry, :console_log]` tasks. It does not run `:time_check`
47
+ ##### :trailing_spaces
48
+ Check for trailing spaces in `[spec, features, lib, app, factories, db]`.
49
+ ##### :shoulds
50
+ Check for legacy 'it "should blah"' style specs
51
+ ##### :debugger
52
+ Check for debugger statements in `[lib, app, spec, features]`.
53
+ ##### :pry
54
+ Check for binding.pry statements in `[lib, app, spec, features]`.
55
+ ##### :console_log
56
+ Check for console.log statements in `app/assets/javascripys`.
57
+ ##### :time_check
58
+ Check for `Time.now` statements in `[lib, app]` (Time.zone.now is more reliable for servers wanting to use UTC).
59
+ This check is NOT part of :all as `Time.zone.now` is an ActiveSupport method.
60
+
61
+ ### :coverage
62
+ #### :check_specs
63
+ Look at SimpleCov results for spec coverage in `log/coverage/spec` and fail the build if not 100%
64
+ #### :check_cucumber
65
+ Look at SimpleCov results for Cucumber coverage in `log/coverage/features` and fail the build if not 100%
66
+
67
+ ### :ok
68
+ Useful at the end of any Rake tasks which test your application, it prints `***** ALL TESTS PASSED *****`.
69
+
70
+ ### :ok_rainbow
71
+ Run this task last to print a more magical version of `:ok`
72
+
73
+ Contributing
74
+ ------------
75
+ 1. Make a fork
76
+ 2. Make your changes!
77
+ a. Namespace new tasks under `:bake`
78
+ b. Namespace new helpers under `RakeNBake`
79
+ 3. Push your changes to your fork
80
+ 4. Create a Pull Request
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ require 'rake/clean'
2
+ require './lib/rake_n_bake'
3
+
4
+ @external_dependencies = %w[ruby rake]
5
+
6
+ task :default => [
7
+ :clean,
8
+ :"bake:check_external_dependencies",
9
+ :"bake:code_quality:all",
10
+ :"bake:rspec",
11
+ :"bake:coverage:check_specs",
12
+ :"bake:bundler_audit",
13
+ :"bake:ok",
14
+ ]
data/bin/bundle-audit ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'bundle-audit' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('bundler-audit', 'bundle-audit')
data/bin/bundler ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'bundler' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('bundler', 'bundler')
data/bin/cdiff ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'cdiff' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('term-ansicolor', 'cdiff')
data/bin/colortab ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'colortab' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('term-ansicolor', 'colortab')
data/bin/decolor ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'decolor' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('term-ansicolor', 'decolor')
data/bin/htmldiff ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'htmldiff' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('diff-lcs', 'htmldiff')
data/bin/ldiff ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'ldiff' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('diff-lcs', 'ldiff')
data/bin/rake ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rake', 'rake')
data/bin/rspec ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rspec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('rspec-core', 'rspec')
data/bin/semver ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'semver' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('semver2', 'semver')
data/bin/term_display ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'term_display' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('term-ansicolor', 'term_display')
data/bin/term_mandel ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'term_mandel' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('term-ansicolor', 'term_mandel')
data/bin/thor ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'thor' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ require 'pathname'
10
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
+ Pathname.new(__FILE__).realpath)
12
+
13
+ require 'rubygems'
14
+ require 'bundler/setup'
15
+
16
+ load Gem.bin_path('thor', 'thor')
data/history.rdoc ADDED
@@ -0,0 +1,41 @@
1
+ == 1.1.0 (16 October 2014)
2
+
3
+ == 1.0.1 (05 September 2014)
4
+
5
+ == 1.0.0 (05 September 2014)
6
+
7
+ * Remove broken Karma task
8
+
9
+ == 0.2.1 (05 September 2014)
10
+
11
+ * Change the way colours are used on term
12
+ * Add new Rainbow OK task
13
+
14
+ == 0.2.0 (04 September 2014)
15
+
16
+ * Add :check_external_dependencies for checking external dependencies are present
17
+
18
+ == 0.1.2 (20 August 2014)
19
+
20
+ * Suppress grep errors if no folder
21
+
22
+ == 0.1.1 (24 July 2014)
23
+
24
+ == 0.1.0 (18 July 2014)
25
+
26
+ == 0.0.6 (17 July 2014)
27
+
28
+ * Extract version logic into a class
29
+ * Allow all tags to push to RubyGems
30
+
31
+ == 0.0.5 (16 July 2014)
32
+
33
+ * Change version tack so it can update gem version
34
+
35
+ == 0.0.4 (16 July 2014)
36
+
37
+ * Allow Travis to push gem on tag
38
+
39
+ == 0.0.3 (14 July 2014)
40
+
41
+ * Introduce history file