-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move dev dependencies to Gemfile and fix versions (#15)
* Move dev dependencies to Gemfile and fix versions * Fix lint issue
- Loading branch information
1 parent
43dc98d
commit 900aa0d
Showing
9 changed files
with
76 additions
and
132 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 |
---|---|---|
|
@@ -17,3 +17,4 @@ node_modules/ | |
package.json | ||
spec/tmp/ | ||
yarn.lock | ||
bun.lockb |
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,100 +1,34 @@ | ||
AllCops: | ||
TargetRubyVersion: 2.5 | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
inherit_mode: | ||
merge: | ||
- Exclude | ||
|
||
Layout/SpaceBeforeFirstArg: | ||
Exclude: | ||
|
||
Layout/SpaceAroundMethodCallOperator: | ||
Enabled: true | ||
|
||
Lint/AmbiguousBlockAssociation: | ||
Exclude: | ||
- spec/**/* | ||
require: | ||
- rubocop-rspec | ||
- rubocop-rake | ||
|
||
Lint/RaiseException: | ||
Enabled: true | ||
|
||
Lint/StructNewOverride: | ||
Enabled: true | ||
|
||
Metrics/AbcSize: | ||
# The ABC size is a calculated magnitude, so this number can be an Integer or | ||
# a Float. | ||
Max: 15 | ||
AllCops: | ||
NewCops: enable | ||
TargetRubyVersion: 2.7 | ||
|
||
Metrics/BlockLength: | ||
CountComments: false | ||
Max: 25 | ||
Naming/FileName: | ||
Exclude: | ||
- '*.gemspec' | ||
- config/**/* | ||
- spec/**/* | ||
ExcludedMethods: | ||
- class_methods | ||
|
||
Metrics/BlockNesting: | ||
Max: 4 | ||
|
||
Metrics/ClassLength: | ||
CountComments: false | ||
Max: 200 | ||
|
||
# Avoid complex methods. | ||
Metrics/CyclomaticComplexity: | ||
Max: 7 | ||
- 'lib/htmx-rails.rb' | ||
|
||
Metrics/MethodLength: | ||
CountComments: false | ||
Max: 24 | ||
|
||
Metrics/ModuleLength: | ||
CountComments: false | ||
Max: 200 | ||
|
||
Layout/LineLength: | ||
Max: 100 | ||
# To make it possible to copy or click on URIs in the code, we allow lines | ||
# containing a URI to be longer than Max. | ||
AllowURI: true | ||
URISchemes: | ||
- http | ||
- https | ||
|
||
Metrics/ParameterLists: | ||
Max: 5 | ||
CountKeywordArgs: true | ||
|
||
Metrics/PerceivedComplexity: | ||
Max: 12 | ||
|
||
Style/ExponentialNotation: | ||
Enabled: true | ||
Gemspec/RequireMFA: | ||
Enabled: false | ||
|
||
Style/FrozenStringLiteralComment: | ||
Enabled: true | ||
RSpec/BeforeAfterAll: | ||
Enabled: false | ||
|
||
Style/ModuleFunction: | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/RescueModifier: | ||
Exclude: | ||
- spec/**/* | ||
RSpec/FilePath: | ||
Enabled: false | ||
|
||
Naming/PredicateName: | ||
RSpec/SpecFilePathFormat: | ||
Enabled: false | ||
|
||
Naming/FileName: | ||
RSpec/AnyInstance: | ||
Exclude: | ||
- lib/htmx-rails.rb | ||
|
||
Style/HashEachMethods: | ||
Enabled: true | ||
|
||
Style/HashTransformKeys: | ||
Enabled: true | ||
|
||
Style/HashTransformValues: | ||
Enabled: true | ||
- 'spec/lib/generators/install_generator_spec.rb' |
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,16 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in htmx-rails.gemspec | ||
gemspec | ||
|
||
gem 'generator_spec', '~> 0.9.4' | ||
gem 'psych', '>= 5.1.1.1' # pinned due to https://github.com/ruby/psych/issues/655 | ||
gem 'rake', '~> 13.1' | ||
gem 'reek', '~> 6.1' | ||
gem 'rspec', '~> 3.12' | ||
gem 'rubocop', '~> 1.57' | ||
gem 'rubocop-rake', '~> 0.6' | ||
gem 'rubocop-rspec', '~> 2.25' | ||
gem 'simplecov', '~> 0.17.1' |
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,5 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/setup' | ||
require 'htmx/rails' | ||
|
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,31 +3,25 @@ | |
require_relative 'lib/htmx/rails/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'htmx-rails' | ||
spec.version = Htmx::Rails::VERSION | ||
spec.authors = ['Julian Pasquale'] | ||
spec.email = ['[email protected]'] | ||
spec.summary = 'Ruby gem for use HTMX in Rails applications' | ||
spec.description = 'Ruby gem for use HTMX in Rails applications' | ||
spec.homepage = 'https://github.com/rootstrap/htmx-rails' | ||
spec.license = 'MIT' | ||
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0') | ||
spec.name = 'htmx-rails' | ||
spec.version = Htmx::Rails::VERSION | ||
spec.authors = ['Julian Pasquale'] | ||
spec.email = ['[email protected]'] | ||
spec.summary = 'Ruby gem for use HTMX in Rails applications' | ||
spec.description = 'Ruby gem for use HTMX in Rails applications' | ||
spec.homepage = 'https://github.com/rootstrap/htmx-rails' | ||
spec.license = 'MIT' | ||
|
||
spec.metadata["homepage_uri"] = spec.homepage | ||
spec.metadata["source_code_uri"] = 'https://github.com/rootstrap/htmx-rails' | ||
spec.metadata["changelog_uri"] = 'https://github.com/rootstrap/htmx-rails' | ||
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0') | ||
|
||
spec.files = Dir['LICENSE.txt', 'README.md', 'lib/**/*'] | ||
spec.bindir = 'exe' | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.metadata['homepage_uri'] = spec.homepage | ||
spec.metadata['source_code_uri'] = 'https://github.com/rootstrap/htmx-rails' | ||
spec.metadata['changelog_uri'] = 'https://github.com/rootstrap/htmx-rails' | ||
|
||
spec.files = Dir['LICENSE.txt', 'README.md', 'lib/**/*'] | ||
spec.bindir = 'exe' | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ['lib'] | ||
|
||
# Development dependencies. | ||
spec.add_development_dependency 'generator_spec' | ||
spec.add_development_dependency 'psych', '>= 5.1.1.1' # pinned due to https://github.com/ruby/psych/issues/655 | ||
spec.add_development_dependency 'rake' | ||
spec.add_development_dependency 'reek' | ||
spec.add_development_dependency 'rspec' | ||
spec.add_development_dependency 'rubocop' | ||
spec.add_development_dependency 'simplecov', '~> 0.17.1' | ||
spec.add_dependency 'rails', '>= 5.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
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