rake-n-bake 2.1.4 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9ba0a6035f14072414b3c32ce25b8dd14d81694
4
- data.tar.gz: 4ea5ea6e06b40ef214a80dd366515b47f98fb882
3
+ metadata.gz: 8d70787a2b32c3f11aea85ad9c7ea41894fc8e04
4
+ data.tar.gz: 9917be00d5e6a59abec4eac7645e7ab55562e7a1
5
5
  SHA512:
6
- metadata.gz: e2e35d8b67e1096afc31be62817a0f03c6d516cc0a2e841c937315fc6729b0bf7212bd2472ec1dfb5e10a5965a210e18208f3b659eaba4fb495959ea9e53c206
7
- data.tar.gz: 7f72cc32c00c9993cecc5e719da2512c3fbd4a41fe9a5427a988cf32645288962aa72f61c2718e97e1728aed21a253fd230f1a85b738ff283a00dadae47a0357
6
+ metadata.gz: 4ec74ae16f59729cf6fa502aad67471168212170d2e58b7d0ea972f993f891a1e6eca41cf69cd7898b5cbc76740e4bf4aff8c6fd6c065d8ee8aa64778c5b261b
7
+ data.tar.gz: 938c8d18a10306493fc92fa48ee41e519e3c76cf26f76edc7d6345e11c1a6a9da728f9b2f4a27b4bc1d4f8fbf3d5bd5118ac95acd35747553c92b081f4e9f4f5
@@ -1,3 +1,8 @@
1
+ inherit_mode:
2
+ merge:
3
+ - Exclude
4
+ - Include
5
+
1
6
  AllCops:
2
7
  Include:
3
8
  - '**/Rakefile'
@@ -27,6 +32,9 @@ Layout/AlignHash:
27
32
  Layout/EmptyLinesAroundClassBody:
28
33
  EnforcedStyle: empty_lines
29
34
 
35
+ Layout/EmptyLinesAroundModuleBody:
36
+ EnforcedStyle: empty_lines_except_namespace
37
+
30
38
  Layout/SpaceBeforeBlockBraces:
31
39
  Enabled: false
32
40
 
@@ -64,7 +72,23 @@ Style/PercentLiteralDelimiters:
64
72
  '%W': '[]'
65
73
  '%x': '()'
66
74
 
67
- Style/PredicateName:
75
+ Style/SignalException:
76
+ EnforcedStyle: only_raise
77
+
78
+ Style/TrailingCommaInArrayLiteral:
79
+ EnforcedStyleForMultiline: comma
80
+
81
+ Style/TrailingCommaInHashLiteral:
82
+ EnforcedStyleForMultiline: comma
83
+
84
+ Style/AccessModifierDeclarations:
85
+ EnforcedStyle: inline
86
+
87
+ #############################################
88
+ # Naming
89
+ #
90
+
91
+ Naming/PredicateName:
68
92
  NamePrefixBlacklist:
69
93
  - is_
70
94
  - has_
@@ -73,41 +97,38 @@ Style/PredicateName:
73
97
  - a_
74
98
  - should_
75
99
 
76
- Style/SignalException:
77
- EnforcedStyle: only_raise
78
-
79
- Style/TrailingCommaInLiteral:
80
- EnforcedStyleForMultiline: comma
81
-
82
- Style/VariableNumber:
100
+ Naming/VariableNumber:
83
101
  EnforcedStyle: snake_case
84
102
 
85
- Style/VariableName:
103
+ Naming/VariableName:
86
104
  Enabled: true
87
105
 
88
- Style/FileName:
106
+ Naming/FileName:
89
107
  Exclude:
90
108
  - 'Gemfile'
91
109
  - 'Guardfile'
92
110
 
111
+ Lint/AssignmentInCondition:
112
+ Enabled: true
113
+ AllowSafeAssignment: false
114
+
93
115
  #############################################
94
116
  # Metrics
95
117
  #
96
118
 
97
- Metrics/LineLength:
98
- Exclude:
99
- - 'spec/**/*'
100
- Max: 140
101
- AllowURI: true
102
-
103
119
  Metrics/BlockLength:
104
120
  Exclude:
105
121
  - 'spec/**/*_spec.rb'
106
- - 'spec/**/*_spec.rb'
107
- - 'spec/factories/**/*.rb'
108
122
  - 'spec/spec_helper.rb'
123
+ - 'spec/factories/**/*.rb'
109
124
  - 'spec/support/shared_examples/*.rb'
110
125
 
126
+ Metrics/LineLength:
127
+ Exclude:
128
+ - 'spec/**/*'
129
+ Max: 140
130
+ AllowURI: true
131
+
111
132
  #############################################
112
133
  # Security
113
134
  #
data/.semver CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
- :major: 2
3
- :minor: 1
4
- :patch: 4
2
+ :major: 3
3
+ :minor: 0
4
+ :patch: 0
5
5
  :special: ''
6
6
  :metadata: ''
data/.travis.yml CHANGED
@@ -1,7 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.5
4
+ - 2.4
3
5
  - 2.3
4
- - 2.2
5
6
  - ruby-head
6
7
  matrix:
7
8
  allow_failures:
data/Gemfile CHANGED
@@ -11,7 +11,6 @@ group :development, :test do
11
11
  gem 'fasterer'
12
12
  gem 'guard-bundler'
13
13
  gem 'guard-rspec'
14
- gem 'metric_fu'
15
14
  gem 'rake'
16
15
  gem 'rspec'
17
16
  gem 'rubocop'
data/bin/bundle-audit CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/byebug CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/coderay CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/cucumber CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/htmldiff CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/ldiff CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/pry CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/rake CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/rspec CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/semver CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/term_display CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/term_mandel CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/bin/thor CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
+
3
4
  #
4
5
  # This file was generated by Bundler.
5
6
  #
@@ -11,6 +12,17 @@ require "pathname"
11
12
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
13
  Pathname.new(__FILE__).realpath)
13
14
 
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 150) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
14
26
  require "rubygems"
15
27
  require "bundler/setup"
16
28
 
data/history.rdoc CHANGED
@@ -1,9 +1,21 @@
1
+ == v3.0.0 (12 July 2018)
2
+
3
+ * Remove metric_fu (see RubyCritic instead)
4
+ * Add traceroute task (thanks @jwkratz)
5
+ * Update gems
6
+
1
7
  == v2.1.4 (29 October 2017)
2
8
 
9
+ * Fix issue causing failed coverage checks (thanks @iexus)
10
+
3
11
  == v2.1.3 (11 October 2017)
4
12
 
13
+ * Update rubocop rules
14
+
5
15
  == v2.1.2 (02 October 2017)
6
16
 
17
+ * Remove paging from Brakeman output (can cause CI service to hang)
18
+
7
19
  == v2.1.1 (19 September 2017)
8
20
 
9
21
  * Ensure coverage check compates floats
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RakeNBake
2
- VERSION = '2.1.4'.freeze
2
+ VERSION = '3.0.0'.freeze
3
3
  end
data/rake-n-bake.gemspec CHANGED
@@ -15,6 +15,6 @@ Gem::Specification.new do |spec|
15
15
  spec.files = `git ls-files`.split($/)
16
16
  spec.require_paths = ["lib","tasks"]
17
17
 
18
- spec.add_runtime_dependency "rake", ">= 10"
18
+ spec.add_runtime_dependency "rake", ">= 11"
19
19
  spec.add_runtime_dependency "term-ansicolor", "~> 1.3"
20
20
  end
@@ -3,7 +3,10 @@ if defined? Rails
3
3
  require 'traceroute'
4
4
 
5
5
  namespace :bake do
6
- Rake::Task["traceroute"].invoke
6
+ task :traceroute do
7
+ RakeNBake::Baker.log_step 'Running Traceroute'
8
+ Rake::Task['traceroute'].invoke
9
+ end
7
10
  end
8
11
 
9
12
  rescue LoadError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-n-bake
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Vickerstaff
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-29 00:00:00.000000000 Z
12
+ date: 2018-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '10'
20
+ version: '11'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '10'
27
+ version: '11'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: term-ansicolor
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -97,7 +97,6 @@ files:
97
97
  - tasks/code_quality.rake
98
98
  - tasks/coverage.rake
99
99
  - tasks/fasterer.rake
100
- - tasks/metric_fu.rake
101
100
  - tasks/ok.rake
102
101
  - tasks/rails_best_practices.rake
103
102
  - tasks/rspec.rake
data/tasks/metric_fu.rake DELETED
@@ -1,16 +0,0 @@
1
- begin
2
- require 'metric_fu'
3
-
4
- rescue LoadError
5
-
6
- namespace :metrics do
7
- %w[all cane churn flay flog hotspots only reek roodi saikuro stats].map(&:to_sym).each do |t|
8
- desc 'metric_fu rake tasks are not available (gem not installed)'
9
- task t do
10
- RakeNBake::Baker.log_missing_gem 'metric_fu'
11
- abort
12
- end
13
- end
14
- end
15
-
16
- end