Skip to content

Commit 55703f6

Browse files
committed
Cleanup gemspec formatting
Remove the TODO comment and complete the cleanup tasks that were left unfinished in the gemspec.
1 parent 0ce772e commit 55703f6

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Metrics/BlockLength:
2121
Exclude:
2222
- 'lib/**/*'
2323
- 'spec/**/*'
24+
- 'sorcery.gemspec'
2425
Layout/LineLength:
2526
Exclude:
2627
- 'lib/**/*'

sorcery.gemspec

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ lib = File.expand_path('lib', __dir__)
22
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
33
require 'sorcery/version'
44

5-
# rubocop:disable Metrics/BlockLength
65
Gem::Specification.new do |s|
76
s.name = 'sorcery'
87
s.version = Sorcery::VERSION
@@ -17,17 +16,15 @@ Gem::Specification.new do |s|
1716
1817
]
1918

20-
# TODO: Cleanup formatting.
21-
# rubocop:disable Layout/LineLength
22-
s.description = 'Provides common authentication needs such as signing in/out, activating by email and resetting password.'
19+
s.description = 'Provides common authentication needs such as signing in/out, ' \
20+
'activating by email and resetting password.'
2321
s.summary = 'Magical authentication for Rails applications'
2422
s.homepage = 'https://github.com/Sorcery/sorcery'
25-
s.metadata = {"bug_tracker_uri" => "https://github.com/Sorcery/sorcery/issues", "changelog_uri" => "https://github.com/Sorcery/sorcery/blob/master/CHANGELOG.md"}
26-
s.post_install_message = "As of version 1.0 oauth/oauth2 won't be automatically bundled so you may need to add those dependencies to your Gemfile.\n"
23+
s.metadata = { 'bug_tracker_uri' => 'https://github.com/Sorcery/sorcery/issues', 'changelog_uri' => 'https://github.com/Sorcery/sorcery/blob/master/CHANGELOG.md' }
24+
s.post_install_message = "As of version 1.0 oauth/oauth2 won't be automatically bundled " \
25+
"so you may need to add those dependencies to your Gemfile.\n"
2726
s.post_install_message += 'You may need oauth2 if you use external providers such as any of these: https://github.com/Sorcery/sorcery/tree/master/lib/sorcery/providers'
28-
# rubocop:enable Layout/LineLength
29-
30-
s.files = Dir['lib/**/*'] + ['README.md', 'LICENSE.md', 'CHANGELOG.md']
27+
s.files = Dir['lib/**/*'] + ['README.md', 'LICENSE.md', 'CHANGELOG.md']
3128
s.require_paths = ['lib']
3229

3330
s.licenses = ['MIT']
@@ -46,4 +43,3 @@ Gem::Specification.new do |s|
4643
s.add_development_dependency 'webmock', '~> 3.3.0'
4744
s.add_development_dependency 'yard', '~> 0.9.0', '>= 0.9.12'
4845
end
49-
# rubocop:enable Metrics/BlockLength

0 commit comments

Comments
 (0)