-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
132 additions
and
110 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require: | ||
- rubocop-powerhome | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.6 | ||
|
||
Style/OpenStructUse: | ||
Enabled: false |
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,6 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
source "https://rubygems.org" | ||
|
||
# Specify your gem's dependencies in ostruct-sanitizer.gemspec | ||
gemspec | ||
|
||
gem "bundler", "~> 2.4.7" | ||
gem "byebug" | ||
gem "rake", "~> 10.0" | ||
gem "rspec", "~> 3.0" | ||
gem "rubocop-powerhome", "0.5.0" |
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,11 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require "bundler/gem_tasks" | ||
|
||
require 'rspec/core/rake_task' | ||
require "rspec/core/rake_task" | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
||
require 'rubocop/rake_task' | ||
require "rubocop/rake_task" | ||
RuboCop::RakeTask.new(:rubocop) | ||
|
||
task default: %i[rubocop 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
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
|
||
module OStruct | ||
module Sanitizer | ||
VERSION = '0.7.0' | ||
VERSION = "0.7.0" | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,27 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('lib', __dir__) | ||
lib = File.expand_path("lib", __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'ostruct/sanitizer/version' | ||
require "ostruct/sanitizer/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'ostruct-sanitizer' | ||
spec.name = "ostruct-sanitizer" | ||
spec.version = OStruct::Sanitizer::VERSION | ||
spec.authors = ['Diego Borges'] | ||
spec.email = ['[email protected]'] | ||
spec.authors = ["Diego Borges"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = 'Provides Rails-like sanitization rules for OpenStruct fields.' | ||
spec.description = 'Provides Rails-like sanitization rules for OpenStruct fields.' | ||
spec.homepage = 'https://github.com/powerhome/ostruct-sanitizer' | ||
spec.license = 'MIT' | ||
spec.summary = "Provides Rails-like sanitization rules for OpenStruct fields." | ||
spec.description = "Provides Rails-like sanitization rules for OpenStruct fields." | ||
spec.homepage = "https://github.com/powerhome/ostruct-sanitizer" | ||
spec.license = "MIT" | ||
|
||
spec.files = `git ls-files -z`.split("\x0").reject do |f| | ||
f.match(%r{^(test|spec|features)/}) | ||
end | ||
spec.bindir = 'exe' | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ['lib'] | ||
spec.require_paths = ["lib"] | ||
|
||
spec.required_ruby_version = '>= 2.6' | ||
|
||
spec.add_development_dependency 'bundler', '~> 2.4.7' | ||
spec.add_development_dependency 'byebug' | ||
spec.add_development_dependency 'rake', '~> 10.0' | ||
spec.add_development_dependency 'rspec', '~> 3.0' | ||
spec.add_development_dependency 'rubocop-powerhome', '0.5.0' | ||
spec.required_ruby_version = ">= 2.6" | ||
spec.metadata["rubygems_mfa_required"] = "true" | ||
end |
Oops, something went wrong.