Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
chore: cosmetic changes
  • Loading branch information
kfpo committed Oct 3, 2018
1 parent e1c1489 commit 001b369
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
8 changes: 5 additions & 3 deletions Rakefile
@@ -1,6 +1,8 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task :default => :spec
task default: :spec
1 change: 1 addition & 0 deletions bin/console
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/setup'
require 'fakerbot'
Expand Down
2 changes: 1 addition & 1 deletion bin/fakerbot
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

lib_path = File.expand_path('../lib', __dir__)
$:.unshift(lib_path) if !$:.include?(lib_path)
$LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)
require 'fakerbot'

Signal.trap('INT') do
Expand Down
2 changes: 2 additions & 0 deletions lib/fakerbot.rb
@@ -1 +1,3 @@
# frozen_string_literal: true

require_relative 'fakerbot/cli'
4 changes: 2 additions & 2 deletions lib/fakerbot/renderer.rb
Expand Up @@ -68,7 +68,7 @@ def verbose?

def verbose_output(method, const, arr)
fake, message = faker_method(method, const)
arr << crayon.dim.white("=> #{fake.to_s}") << crayon.dim.magenta.bold("#{message}")
arr << crayon.dim.white("=> #{fake}") << crayon.dim.magenta.bold(message.to_s)
end

def faker_method(method, const)
Expand All @@ -78,7 +78,7 @@ def faker_method(method, const)
end

def ensure_method_is_supported(method, const)
const.respond_to?(:"_deprecated_#{method.to_s}") ? ' ( WILL BE DEPRECATED )' : ''
const.respond_to?(:"_deprecated_#{method}") ? ' ( WILL BE DEPRECATED )' : ''
end
end
end
4 changes: 3 additions & 1 deletion lib/fakerbot/version.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module FakerBot
VERSION = '0.4.1'.freeze
VERSION = '0.4.1'
end
2 changes: 1 addition & 1 deletion spec/integration/list_spec.rb
Expand Up @@ -14,7 +14,7 @@
-v, [--verbose], [--no-verbose] # Include sample Faker output
List all Faker constants
OUT
OUT

expect(output).to match(expected_output)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/integration/search_spec.rb
Expand Up @@ -14,7 +14,7 @@
-v, [--verbose], [--no-verbose] # Include sample Faker output
Search Faker method(s)
OUT
OUT
expect(output).to match(expected_output)
end

Expand Down

0 comments on commit 001b369

Please sign in to comment.