summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-12-01 20:45:56 -0700
committerDan Allen <dan.j.allen@gmail.com>2019-12-01 20:45:56 -0700
commitd8a5e9a46b6d3511a77bdb0a0ca5772722beff49 (patch)
treefaf24206c1cd3e738826c48e391ce383c588d03f
parentf3a10601b217a5aee8a6803f6de97a13baed0b1f (diff)
initial set of changes to fix lint errors
-rw-r--r--Rakefile4
-rw-r--r--lib/asciidoctor/pdf/version.rb9
-rw-r--r--tasks/bundler.rake2
-rw-r--r--tasks/console.rake1
4 files changed, 9 insertions, 7 deletions
diff --git a/Rakefile b/Rakefile
index 6ed045ad..e001a4b9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,3 +1,3 @@
-$default_tasks = []
+$default_tasks = [] # rubocop:disable Style/GlobalVars
Dir.glob('tasks/*.rake').each {|file| load file }
-task default: $default_tasks unless $default_tasks.empty?
+task default: $default_tasks unless $default_tasks.empty? # rubocop:disable Style/GlobalVars
diff --git a/lib/asciidoctor/pdf/version.rb b/lib/asciidoctor/pdf/version.rb
index dafd25d9..61dd1cfb 100644
--- a/lib/asciidoctor/pdf/version.rb
+++ b/lib/asciidoctor/pdf/version.rb
@@ -1,7 +1,8 @@
# frozen_string_literal: true
+
module Asciidoctor
-module PDF
- VERSION = '1.5.0.rc.1.dev'
-end
-Pdf = PDF unless const_defined? :Pdf, false
+ module PDF
+ VERSION = '1.5.0.rc.1.dev'
+ end
+ Pdf = PDF unless const_defined? :Pdf, false
end
diff --git a/tasks/bundler.rake b/tasks/bundler.rake
index ec790cf3..2960920c 100644
--- a/tasks/bundler.rake
+++ b/tasks/bundler.rake
@@ -1,6 +1,6 @@
begin
require 'bundler/gem_tasks'
- $default_tasks << :build
+ $default_tasks << :build # rubocop:disable Style/GlobalVars
rescue LoadError
warn $!.message
end
diff --git a/tasks/console.rake b/tasks/console.rake
index fcd6e3ce..6796137a 100644
--- a/tasks/console.rake
+++ b/tasks/console.rake
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
desc 'Open an irb session preloaded with this library'
task :console do
sh 'bundle console', verbose: false