-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Note that to as part of the auto-correct process Rubocop enabled Ruby's frozen string literals. This means that now to append to a string literal like we do when creating the output message in this plugin we first need to unfreeze it, which can be done by using the unary plus syntax: ```ruby unfrozen_literal = +"abc" ```
- Loading branch information
Showing
12 changed files
with
130 additions
and
117 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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# coding: utf-8 | ||
|
||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'version' | ||
|
@@ -8,15 +10,15 @@ Gem::Specification.new do |spec| | |
spec.version = DangerSwiftlint::VERSION | ||
spec.authors = ['Ash Furrow', 'David Grandinetti', 'Orta Therox', 'Thiago Felix', 'Giovanni Lodi'] | ||
spec.email = ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]'] | ||
spec.description = %q{A Danger plugin for linting Swift with SwiftLint.} | ||
spec.summary = %q{A Danger plugin for linting Swift with SwiftLint.} | ||
spec.description = 'A Danger plugin for linting Swift with SwiftLint.' | ||
spec.summary = 'A Danger plugin for linting Swift with SwiftLint.' | ||
spec.homepage = 'https://github.com/ashfurrow/danger-swiftlint' | ||
spec.license = 'MIT' | ||
|
||
spec.files = `git ls-files`.split($/) | ||
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) | ||
spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) | ||
spec.require_paths = ['lib'] | ||
spec.extensions = %w(ext/swiftlint/Rakefile) | ||
spec.extensions = %w[ext/swiftlint/Rakefile] | ||
spec.executables = ['danger-swiftlint'] | ||
|
||
spec.add_dependency 'danger' | ||
|
@@ -27,19 +29,18 @@ Gem::Specification.new do |spec| | |
spec.add_development_dependency 'bundler', '~> 1.3' | ||
|
||
# Testing support | ||
spec.add_development_dependency "rspec", '~> 3.4' | ||
spec.add_development_dependency 'rspec', '~> 3.4' | ||
|
||
# Makes testing easy via `bundle exec guard` | ||
spec.add_development_dependency "guard", '~> 2.14' | ||
spec.add_development_dependency "guard-rspec", '~> 4.7' | ||
spec.add_development_dependency 'guard', '~> 2.14' | ||
spec.add_development_dependency 'guard-rspec', '~> 4.7' | ||
|
||
# If you want to work on older builds of ruby | ||
spec.add_development_dependency "listen", '3.0.7' | ||
spec.add_development_dependency 'listen', '3.0.7' | ||
|
||
# This gives you the chance to run a REPL inside your test | ||
# via | ||
# binding.pry | ||
# This will stop test execution and let you inspect the results | ||
spec.add_development_dependency "pry" | ||
|
||
spec.add_development_dependency 'pry' | ||
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
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 @@ | ||
# frozen_string_literal: true | ||
|
||
module DangerSwiftlint | ||
VERSION = "0.10.1".freeze | ||
SWIFTLINT_VERSION = "0.20.1".freeze | ||
VERSION = '0.10.0' | ||
SWIFTLINT_VERSION = '0.20.1' | ||
end |
Oops, something went wrong.