Skip to content

Commit

Permalink
Merge pull request #8 from ryosk7/0-1-1
Browse files Browse the repository at this point in the history
feat: Update version to 0.1.1 🎉
  • Loading branch information
ryosk7 authored Oct 23, 2023
2 parents 34c2883 + d47f303 commit 67a4c2b
Show file tree
Hide file tree
Showing 33 changed files with 583 additions and 73 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run the default task
run: bundle exec rake
- name: Run rspec
run: bundle exec rspec
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@

# rspec failure tracking
.rspec_status
/spec/rails_app/log
11 changes: 10 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
inherit_from: .rubocop_todo.yml

inherit_gem:
rubocop-discourse: default.yml

AllCops:
TargetRubyVersion: 2.6
TargetRubyVersion: 3.2
NewCops: disable
Exclude:
- lib/generators/snapcher/templates/install.rb
- sample-app/bin/bundle

Style/StringLiterals:
Enabled: true
Expand Down
78 changes: 78 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 999999`
# on 2023-10-23 18:48:06 UTC using RuboCop version 1.57.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
Discourse/NoChdir:
Exclude:
- 'spec/**/*'
- 'plugins/*/spec/**/*'
- 'snapcher.gemspec'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleAlignWith, Severity.
# SupportedStylesAlignWith: keyword, variable, start_of_line
Layout/EndAlignment:
Exclude:
- 'lib/snapcher/junker.rb'

# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Width, AllowedPatterns.
Layout/IndentationWidth:
Exclude:
- 'lib/snapcher/junker.rb'

# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Layout/MultilineMethodCallIndentation:
Exclude:
- 'sample-app/config/environments/production.rb'

# Offense count: 34
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
Exclude:
- 'lib/generators/snapcher/install/install_generator.rb'
- 'sample-app/Gemfile'
- 'sample-app/Rakefile'
- 'sample-app/app/controllers/application_controller.rb'
- 'sample-app/app/helpers/application_helper.rb'
- 'sample-app/app/jobs/application_job.rb'
- 'sample-app/app/models/application_record.rb'
- 'sample-app/app/models/user.rb'
- 'sample-app/bin/rails'
- 'sample-app/bin/rake'
- 'sample-app/bin/setup'
- 'sample-app/config.ru'
- 'sample-app/config/application.rb'
- 'sample-app/config/boot.rb'
- 'sample-app/config/environment.rb'
- 'sample-app/config/environments/development.rb'
- 'sample-app/config/environments/production.rb'
- 'sample-app/config/environments/test.rb'
- 'sample-app/config/initializers/assets.rb'
- 'sample-app/config/initializers/content_security_policy.rb'
- 'sample-app/config/initializers/filter_parameter_logging.rb'
- 'sample-app/config/initializers/inflections.rb'
- 'sample-app/config/initializers/permissions_policy.rb'
- 'sample-app/config/puma.rb'
- 'sample-app/config/routes.rb'
- 'sample-app/db/migrate/20231019150803_create_users.rb'
- 'sample-app/db/schema.rb'
- 'sample-app/db/seeds.rb'
- 'spec/rails_app/config/application.rb'
- 'spec/rails_app/config/environment.rb'
- 'spec/rails_app/config/environments/test.rb'
- 'spec/rails_app/config/routes.rb'
- 'spec/support/active_record/models.rb'
- 'spec/support/active_record/schema.rb'
10 changes: 7 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
source "https://rubygems.org"

# Specify your gem's dependencies in snapcher.gemspec
gemspec
gemspec name: "snapcher"

gem "debug", ">= 1.8.0"
gem "rails", ">= 7.0.0", "< 7.1"
gem "railties", require: false
gem "rake", "~> 13.0"

gem "rspec", "~> 3.0"

gem "rspec-rails", "~> 6.0.0"
gem "rubocop-discourse", "~> 3.4.0"
gem "rubocop", "~> 1.21"
gem "sqlite3", ">= 1.4"
188 changes: 187 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,172 @@
PATH
remote: .
specs:
snapcher (0.1.0)
snapcher (0.1.1)

GEM
remote: https://rubygems.org/
specs:
actioncable (7.0.8)
actionpack (= 7.0.8)
activesupport (= 7.0.8)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
actionmailbox (7.0.8)
actionpack (= 7.0.8)
activejob (= 7.0.8)
activerecord (= 7.0.8)
activestorage (= 7.0.8)
activesupport (= 7.0.8)
mail (>= 2.7.1)
net-imap
net-pop
net-smtp
actionmailer (7.0.8)
actionpack (= 7.0.8)
actionview (= 7.0.8)
activejob (= 7.0.8)
activesupport (= 7.0.8)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.0)
actionpack (7.0.8)
actionview (= 7.0.8)
activesupport (= 7.0.8)
rack (~> 2.0, >= 2.2.4)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.2.0)
actiontext (7.0.8)
actionpack (= 7.0.8)
activerecord (= 7.0.8)
activestorage (= 7.0.8)
activesupport (= 7.0.8)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.0.8)
activesupport (= 7.0.8)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activejob (7.0.8)
activesupport (= 7.0.8)
globalid (>= 0.3.6)
activemodel (7.0.8)
activesupport (= 7.0.8)
activerecord (7.0.8)
activemodel (= 7.0.8)
activesupport (= 7.0.8)
activestorage (7.0.8)
actionpack (= 7.0.8)
activejob (= 7.0.8)
activerecord (= 7.0.8)
activesupport (= 7.0.8)
marcel (~> 1.0)
mini_mime (>= 1.1.0)
activesupport (7.0.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
appraisal (2.5.0)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
base64 (0.1.1)
builder (3.2.4)
concurrent-ruby (1.2.2)
crass (1.0.6)
date (3.3.3)
debug (1.8.0)
irb (>= 1.5.0)
reline (>= 0.3.1)
diff-lcs (1.5.0)
erubi (1.12.0)
globalid (1.2.1)
activesupport (>= 6.1)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
io-console (0.6.0)
irb (1.8.3)
rdoc
reline (>= 0.3.8)
json (2.6.3)
language_server-protocol (3.17.0.3)
loofah (2.21.4)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
mini_mime (>= 0.1.1)
net-imap
net-pop
net-smtp
marcel (1.0.2)
method_source (1.0.0)
mini_mime (1.1.5)
minitest (5.20.0)
net-imap (0.4.1)
date
net-protocol
net-pop (0.1.2)
net-protocol
net-protocol (0.2.1)
timeout
net-smtp (0.4.0)
net-protocol
nio4r (2.5.9)
nokogiri (1.15.4-arm64-darwin)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-linux)
racc (~> 1.4)
parallel (1.23.0)
parser (3.2.2.4)
ast (~> 2.4.1)
racc
psych (5.1.1.1)
stringio
racc (1.7.1)
rack (2.2.8)
rack-test (2.1.0)
rack (>= 1.3)
rails (7.0.8)
actioncable (= 7.0.8)
actionmailbox (= 7.0.8)
actionmailer (= 7.0.8)
actionpack (= 7.0.8)
actiontext (= 7.0.8)
actionview (= 7.0.8)
activejob (= 7.0.8)
activemodel (= 7.0.8)
activerecord (= 7.0.8)
activestorage (= 7.0.8)
activesupport (= 7.0.8)
bundler (>= 1.15.0)
railties (= 7.0.8)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.0.8)
actionpack (= 7.0.8)
activesupport (= 7.0.8)
method_source
rake (>= 12.2)
thor (~> 1.0)
zeitwerk (~> 2.5)
rainbow (3.1.1)
rake (13.0.6)
rdoc (6.5.0)
psych (>= 4.0.0)
regexp_parser (2.8.2)
reline (0.3.9)
io-console (~> 0.5)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
Expand All @@ -32,6 +180,14 @@ GEM
rspec-mocks (3.12.6)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-rails (6.0.3)
actionpack (>= 6.1)
activesupport (>= 6.1)
railties (>= 6.1)
rspec-core (~> 3.12)
rspec-expectations (~> 3.12)
rspec-mocks (~> 3.12)
rspec-support (~> 3.12)
rspec-support (3.12.1)
rubocop (1.57.1)
base64 (~> 0.1.1)
Expand All @@ -47,17 +203,47 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.19.0)
rubocop (~> 1.41)
rubocop-discourse (3.4.0)
rubocop (>= 1.1.0)
rubocop-rspec (>= 2.0.0)
rubocop-factory_bot (2.24.0)
rubocop (~> 1.33)
rubocop-rspec (2.24.1)
rubocop (~> 1.33)
rubocop-capybara (~> 2.17)
rubocop-factory_bot (~> 2.22)
ruby-progressbar (1.13.0)
sqlite3 (1.6.7-arm64-darwin)
sqlite3 (1.6.7-x86_64-linux)
stringio (3.0.8)
thor (1.3.0)
timeout (0.4.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unicode-display_width (2.5.0)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
zeitwerk (2.6.12)

PLATFORMS
arm64-darwin-22
x86_64-linux

DEPENDENCIES
appraisal
debug (>= 1.8.0)
rails (>= 7.0.0, < 7.1)
railties
rake (~> 13.0)
rspec (~> 3.0)
rspec-rails (~> 6.0.0)
rubocop (~> 1.21)
rubocop-discourse (~> 3.4.0)
snapcher!
sqlite3 (>= 1.4)

BUNDLED WITH
2.4.10
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# frozen_string_literal: true

require "bundler/gem_helper"
require "bundler/gem_tasks"
require "rspec/core/rake_task"

Bundler::GemHelper.install_tasks(name: "snapcher")

RSpec::Core::RakeTask.new(:spec)

require "rubocop/rake_task"
Expand Down
Loading

0 comments on commit 67a4c2b

Please sign in to comment.