forked from thoughtbot/appraisal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the code style across the project (thoughtbot#242)
Eventually, we'll move to standard, but this is a nice improvement which makes working with Appraisal much more pleasant. This commit does the following: * use double quotes everywhere * use the new Ruby 1.9 hash syntax * use uppercase heredoc delimiters * add parentheses to nested method call * add missing frozen string literal comment * %w-literals should be delimited by [ and ] * space inside } is missing * fix indentation * avoid comma after the last parameter of a method call * remove unnecessary disabling of Layout/LineLength * remove unnecessary spacing * use hash literal {} instead of Hash.new * place the . on the next line, together with the method name * use 2 spaces for indentation in a heredoc by using <<~ instead of <<- * make sure that the block will be associated with the PARTS.map method call * use class << self instead of def self. to define class methods * add missing space
- Loading branch information
1 parent
92e5e98
commit a075b0a
Showing
48 changed files
with
575 additions
and
516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
require 'bundler/setup' | ||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
# frozen_string_literal: true | ||
|
||
require "bundler/setup" | ||
require "bundler/gem_tasks" | ||
require "rspec/core/rake_task" | ||
|
||
RSpec::Core::RakeTask.new do |t| | ||
t.pattern = 'spec/**/*_spec.rb' | ||
t.pattern = "spec/**/*_spec.rb" | ||
t.ruby_opts = %w[-w] | ||
t.verbose = false | ||
end | ||
|
||
desc 'Default: run the rspec examples' | ||
task :default => [:spec] | ||
desc "Default: run the rspec examples" | ||
task default: [:spec] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,24 +3,24 @@ | |
require_relative "lib/appraisal/version" | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'appraisal' | ||
s.name = "appraisal" | ||
s.version = Appraisal::VERSION.dup | ||
s.platform = Gem::Platform::RUBY | ||
s.authors = ['Joe Ferris', 'Prem Sichanugrist'] | ||
s.email = ['[email protected]', '[email protected]'] | ||
s.homepage = 'http://github.com/thoughtbot/appraisal' | ||
s.summary = 'Find out what your Ruby gems are worth' | ||
s.authors = ["Joe Ferris", "Prem Sichanugrist"] | ||
s.email = ["[email protected]", "[email protected]"] | ||
s.homepage = "http://github.com/thoughtbot/appraisal" | ||
s.summary = "Find out what your Ruby gems are worth" | ||
s.description = 'Appraisal integrates with bundler and rake to test your library against different versions of dependencies in repeatable scenarios called "appraisals."' | ||
s.license = 'MIT' | ||
s.license = "MIT" | ||
|
||
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
s.executables = `git ls-files -- exe/*`.split("\n").map{ |f| File.basename(f) } | ||
s.bindir = 'exe' | ||
s.executables = `git ls-files -- exe/*`.split("\n").map { |f| File.basename(f) } | ||
s.bindir = "exe" | ||
|
||
s.required_ruby_version = ">= 2.3.0" | ||
|
||
s.add_dependency('rake') | ||
s.add_dependency('bundler') | ||
s.add_dependency('thor', '>= 0.14.0') | ||
s.add_dependency("rake") | ||
s.add_dependency("bundler") | ||
s.add_dependency("thor", ">= 0.14.0") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
require 'appraisal/version' | ||
require 'appraisal/task' | ||
# frozen_string_literal: true | ||
|
||
require "appraisal/version" | ||
require "appraisal/task" | ||
|
||
Appraisal::Task.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.