Skip to content

Commit

Permalink
Updates (#83)
Browse files Browse the repository at this point in the history
* Sanitize sql

* Do not cache in class

* Fix rubocop

* Update dev deps
  • Loading branch information
Exelord committed Sep 1, 2019
1 parent 8a3e528 commit 057ac10
Show file tree
Hide file tree
Showing 14 changed files with 335 additions and 220 deletions.
16 changes: 13 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require: rubocop-rspec

AllCops:
TargetRubyVersion: 2.5
TargetRubyVersion: 2.6
Exclude:
- 'dummy/db/seeds.rb'
- 'dummy/db/migrate/**'
Expand All @@ -21,13 +21,23 @@ Style/StructInheritance:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Rails/HasAndBelongsToMany:
Enabled: false
Style/MixinGrouping:
Exclude:
- 'spec/**/*.rb'
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/**/*.rb'
Gemspec/RequiredRubyVersion:
Enabled: false
RSpec/ContextWording:
Enabled: false
RSpec/NestedGroups:
Enabled: false
RSpec/LetSetup:
Enabled: false
RSpec/NamedSubject:
Enabled: false
RSpec/FilePath:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
22 changes: 11 additions & 11 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

source 'https://rubygems.org'
ruby '2.5.3'
ruby '2.6.3'

# Declare your gem's dependencies in monarchy.gemspec.
# Bundler will treat runtime dependencies like base dependencies, and
Expand All @@ -20,17 +20,17 @@ group :development, :test do
gem 'bundler', '~> 1.17'
gem 'database_cleaner', '1.7.0'
gem 'db-query-matchers', '0.9.0'
gem 'factory_bot_rails', '4.11.1'
gem 'ffaker', '2.10.0'
gem 'pry-rails', '0.3.8'
gem 'rails', '5.2.2'
gem 'factory_bot_rails', '5.0.2'
gem 'ffaker', '2.12.0'
gem 'pry-rails', '0.3.9'
gem 'rails', '6.0.0'
gem 'rake', '~> 12.3.2'
gem 'rspec', '3.8.0'
gem 'rspec-rails', '3.8.1'
gem 'rubocop', '0.61.1'
gem 'rubocop-rspec', '1.30.1'
gem 'shoulda-matchers', '3.1.2'
gem 'sqlite3', '1.3.13'
gem 'rspec-rails', '3.8.2'
gem 'rubocop', '0.74.0'
gem 'rubocop-rspec', '1.35.0'
gem 'shoulda-matchers', '4.1.2'
gem 'sqlite3', '1.4.1'
end

gem 'simplecov', '0.16.1', group: :test
gem 'simplecov', '0.17.0', group: :test
204 changes: 109 additions & 95 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
monarchy (2.6.0)
monarchy (2.6.1)
active_record_union (= 1.3.0)
activerecord (>= 4.2.7.1)
closure_tree (= 7.0.0)
Expand All @@ -11,78 +11,91 @@ PATH
GEM
remote: https://rubygems.org/
specs:
actioncable (5.2.2)
actionpack (= 5.2.2)
actioncable (6.0.0)
actionpack (= 6.0.0)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailer (5.2.2)
actionpack (= 5.2.2)
actionview (= 5.2.2)
activejob (= 5.2.2)
actionmailbox (6.0.0)
actionpack (= 6.0.0)
activejob (= 6.0.0)
activerecord (= 6.0.0)
activestorage (= 6.0.0)
activesupport (= 6.0.0)
mail (>= 2.7.1)
actionmailer (6.0.0)
actionpack (= 6.0.0)
actionview (= 6.0.0)
activejob (= 6.0.0)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.2.2)
actionview (= 5.2.2)
activesupport (= 5.2.2)
actionpack (6.0.0)
actionview (= 6.0.0)
activesupport (= 6.0.0)
rack (~> 2.0)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.2.2)
activesupport (= 5.2.2)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (6.0.0)
actionpack (= 6.0.0)
activerecord (= 6.0.0)
activestorage (= 6.0.0)
activesupport (= 6.0.0)
nokogiri (>= 1.8.5)
actionview (6.0.0)
activesupport (= 6.0.0)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.3)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
active_record_union (1.3.0)
activerecord (>= 4.0)
activejob (5.2.2)
activesupport (= 5.2.2)
activejob (6.0.0)
activesupport (= 6.0.0)
globalid (>= 0.3.6)
activemodel (5.2.2)
activesupport (= 5.2.2)
activerecord (5.2.2)
activemodel (= 5.2.2)
activesupport (= 5.2.2)
arel (>= 9.0)
activestorage (5.2.2)
actionpack (= 5.2.2)
activerecord (= 5.2.2)
activemodel (6.0.0)
activesupport (= 6.0.0)
activerecord (6.0.0)
activemodel (= 6.0.0)
activesupport (= 6.0.0)
activestorage (6.0.0)
actionpack (= 6.0.0)
activejob (= 6.0.0)
activerecord (= 6.0.0)
marcel (~> 0.3.1)
activesupport (5.2.2)
activesupport (6.0.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (9.0.0)
zeitwerk (~> 2.1, >= 2.1.8)
ast (2.4.0)
builder (3.2.3)
closure_tree (7.0.0)
activerecord (>= 4.2.10)
with_advisory_lock (>= 4.0.0)
coderay (1.1.2)
concurrent-ruby (1.1.4)
concurrent-ruby (1.1.5)
configurations (2.2.2)
crass (1.0.4)
database_cleaner (1.7.0)
db-query-matchers (0.9.0)
activesupport (>= 4.0, <= 6.0)
rspec (~> 3.0)
diff-lcs (1.3)
docile (1.3.1)
docile (1.3.2)
erubi (1.8.0)
factory_bot (4.11.1)
activesupport (>= 3.0.0)
factory_bot_rails (4.11.1)
factory_bot (~> 4.11.1)
railties (>= 3.0.0)
ffaker (2.10.0)
globalid (0.4.1)
factory_bot (5.0.2)
activesupport (>= 4.2.0)
i18n (1.2.0)
factory_bot_rails (5.0.2)
factory_bot (~> 5.0.2)
railties (>= 4.2.0)
ffaker (2.12.0)
globalid (0.4.2)
activesupport (>= 4.2.0)
i18n (1.6.0)
concurrent-ruby (~> 1.0)
jaro_winkler (1.5.1)
json (2.1.0)
jaro_winkler (1.5.3)
json (2.2.0)
loofah (2.2.3)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
Expand All @@ -91,86 +104,86 @@ GEM
marcel (0.3.3)
mimemagic (~> 0.3.2)
method_source (0.9.2)
mimemagic (0.3.2)
mini_mime (1.0.1)
mimemagic (0.3.3)
mini_mime (1.0.2)
mini_portile2 (2.4.0)
minitest (5.11.3)
nio4r (2.3.1)
nokogiri (1.9.1)
nio4r (2.5.1)
nokogiri (1.10.4)
mini_portile2 (~> 2.4.0)
parallel (1.12.1)
parser (2.5.3.0)
parallel (1.17.0)
parser (2.6.4.0)
ast (~> 2.4.0)
powerpack (0.1.2)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry-rails (0.3.8)
pry-rails (0.3.9)
pry (>= 0.10.4)
rack (2.0.6)
rack (2.0.7)
rack-test (1.1.0)
rack (>= 1.0, < 3)
rails (5.2.2)
actioncable (= 5.2.2)
actionmailer (= 5.2.2)
actionpack (= 5.2.2)
actionview (= 5.2.2)
activejob (= 5.2.2)
activemodel (= 5.2.2)
activerecord (= 5.2.2)
activestorage (= 5.2.2)
activesupport (= 5.2.2)
rails (6.0.0)
actioncable (= 6.0.0)
actionmailbox (= 6.0.0)
actionmailer (= 6.0.0)
actionpack (= 6.0.0)
actiontext (= 6.0.0)
actionview (= 6.0.0)
activejob (= 6.0.0)
activemodel (= 6.0.0)
activerecord (= 6.0.0)
activestorage (= 6.0.0)
activesupport (= 6.0.0)
bundler (>= 1.3.0)
railties (= 5.2.2)
railties (= 6.0.0)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.4)
rails-html-sanitizer (1.2.0)
loofah (~> 2.2, >= 2.2.2)
railties (5.2.2)
actionpack (= 5.2.2)
activesupport (= 5.2.2)
railties (6.0.0)
actionpack (= 6.0.0)
activesupport (= 6.0.0)
method_source
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
thor (>= 0.20.3, < 2.0)
rainbow (3.0.0)
rake (12.3.2)
rake (12.3.3)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.0)
rspec-core (3.8.2)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.2)
rspec-expectations (3.8.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.0)
rspec-mocks (3.8.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-rails (3.8.1)
rspec-rails (3.8.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
rubocop (0.61.1)
rspec-support (3.8.2)
rubocop (0.74.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
powerpack (~> 0.1)
parser (>= 2.6)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.4.0)
rubocop-rspec (1.30.1)
unicode-display_width (>= 1.4.0, < 1.7)
rubocop-rspec (1.35.0)
rubocop (>= 0.60.0)
ruby-progressbar (1.10.0)
shoulda-matchers (3.1.2)
activesupport (>= 4.0.0)
simplecov (0.16.1)
ruby-progressbar (1.10.1)
shoulda-matchers (4.1.2)
activesupport (>= 4.2.0)
simplecov (0.17.0)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
Expand All @@ -182,18 +195,19 @@ GEM
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
sqlite3 (1.4.1)
thor (0.20.3)
thread_safe (0.3.6)
tqdm (0.3.0)
tzinfo (1.2.5)
thread_safe (~> 0.1)
unicode-display_width (1.4.0)
websocket-driver (0.7.0)
unicode-display_width (1.6.0)
websocket-driver (0.7.1)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.3)
websocket-extensions (0.1.4)
with_advisory_lock (4.0.0)
activerecord (>= 4.2)
zeitwerk (2.1.9)

PLATFORMS
ruby
Expand All @@ -202,22 +216,22 @@ DEPENDENCIES
bundler (~> 1.17)
database_cleaner (= 1.7.0)
db-query-matchers (= 0.9.0)
factory_bot_rails (= 4.11.1)
ffaker (= 2.10.0)
factory_bot_rails (= 5.0.2)
ffaker (= 2.12.0)
monarchy!
pry-rails (= 0.3.8)
rails (= 5.2.2)
pry-rails (= 0.3.9)
rails (= 6.0.0)
rake (~> 12.3.2)
rspec (= 3.8.0)
rspec-rails (= 3.8.1)
rubocop (= 0.61.1)
rubocop-rspec (= 1.30.1)
shoulda-matchers (= 3.1.2)
simplecov (= 0.16.1)
sqlite3 (= 1.3.13)
rspec-rails (= 3.8.2)
rubocop (= 0.74.0)
rubocop-rspec (= 1.35.0)
shoulda-matchers (= 4.1.2)
simplecov (= 0.17.0)
sqlite3 (= 1.4.1)

RUBY VERSION
ruby 2.5.3p105
ruby 2.6.3p62

BUNDLED WITH
1.17.2
1.17.3
Loading

0 comments on commit 057ac10

Please sign in to comment.