format_restricter_rails 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +3 -0
- data/.github/workflows/check_pull_request.yml +54 -0
- data/.rubocop.yml +3 -3
- data/CHANGELOG.md +43 -26
- data/Gemfile +13 -4
- data/LICENSE.md +6 -6
- data/README.md +16 -14
- data/Rakefile +3 -2
- data/bin/rails +4 -4
- data/bin/start_rspec +22 -6
- data/format_restricter_rails.gemspec +4 -9
- data/lib/format_restricter_rails/version.rb +1 -1
- data/lib/format_restricter_rails.rb +2 -2
- metadata +9 -79
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ca7a5e7621022398ed3af0f98bb6375174575f0b888dc3e75ddd0118dc1eb08
|
4
|
+
data.tar.gz: dac6c986e76898705343be2f1cdf9e7a49aaf227a768bba4e7a990c4df8c93bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cba1e18bd0e076c41ac097492ce25984d928d5de01f0acb9a793e6b153cb90249cca623e0dae0f039186ac5b29a608e1389749d3c221c2269b47888ea460e802
|
7
|
+
data.tar.gz: 129c753977245c149537b3df2b9e0b01bf557da22efecbfc3f9476d8dabb7c41b94f9a3f9cca1b6efc656fcf4a9240405b2309debf0e4b2df56383d787dd06ed
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# This workflow will download prebuilt Ruby versions, install dependencies and run checks against Pull Requests.
|
2
|
+
|
3
|
+
name: Check Pull Request
|
4
|
+
on:
|
5
|
+
pull_request:
|
6
|
+
branches: [ master ]
|
7
|
+
env:
|
8
|
+
# The pull request can have less than, or equal to, this number of rubocop issues and pass.
|
9
|
+
RUBOCOP_ISSUE_THRESHOLD: 5
|
10
|
+
jobs:
|
11
|
+
rspec:
|
12
|
+
name: Run RSpec
|
13
|
+
runs-on: ubuntu-latest
|
14
|
+
strategy:
|
15
|
+
matrix:
|
16
|
+
ruby-version: ['3.1', '3.2', '3.3']
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v2
|
19
|
+
- name: Set up Ruby
|
20
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
21
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
22
|
+
uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby-version }}
|
25
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
26
|
+
- name: Execute rspec command
|
27
|
+
run: bin/start_rspec
|
28
|
+
rubocop:
|
29
|
+
name: Run Rubocop
|
30
|
+
runs-on: ubuntu-latest
|
31
|
+
strategy:
|
32
|
+
matrix:
|
33
|
+
ruby-version: ['3.1']
|
34
|
+
steps:
|
35
|
+
- uses: actions/checkout@v2
|
36
|
+
- name: Set up Ruby
|
37
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
38
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
39
|
+
uses: ruby/setup-ruby@v1
|
40
|
+
with:
|
41
|
+
ruby-version: ${{ matrix.ruby-version }}
|
42
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
43
|
+
- name: Execute rubo command
|
44
|
+
run: bundle exec rubo
|
45
|
+
- name: Evaluate rubo threshold
|
46
|
+
run: |
|
47
|
+
count=$(cat rubocop/total-violations-count.txt)
|
48
|
+
if [[ "$count" -gt $RUBOCOP_ISSUE_THRESHOLD ]]; then
|
49
|
+
echo "Failure: Found $count RuboCop issue(s). It must have $RUBOCOP_ISSUE_THRESHOLD or less. \
|
50
|
+
Run 'rubo' and resolve the issues listed in rubocop/style-issues.html"
|
51
|
+
exit 1
|
52
|
+
else
|
53
|
+
echo "Success: Found $count RuboCop issue(s), which is less than the limit of $RUBOCOP_ISSUE_THRESHOLD"
|
54
|
+
fi
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# DO NOT MODIFY THIS FILE unless you want to deviate from the rubocop_plus ruleset.
|
2
2
|
|
3
|
-
# This file defines the settings used by rubocop when it runs.
|
3
|
+
# This file defines the settings used by rubocop when it runs. You would normally add your customizations directly to this
|
4
4
|
# file, but this file has been pre configured to read settings out of the rubocop_plus gem instead.
|
5
5
|
|
6
6
|
# Tell rubocop to load its settings from the rubocop_plus gem.
|
@@ -10,5 +10,5 @@ inherit_gem:
|
|
10
10
|
Rails:
|
11
11
|
Enabled: true
|
12
12
|
|
13
|
-
# Place custom settings below this comment.
|
14
|
-
# do not attempt to merge these settings with their defaults.
|
13
|
+
# Place custom settings below this comment. All customizations will OVERRIDE rubocop_plus rules. rubocop_plus & rubocop
|
14
|
+
# do not attempt to merge these settings with their defaults. Long term changes should be ported to the rubocop_plus gem.
|
data/CHANGELOG.md
CHANGED
@@ -1,26 +1,43 @@
|
|
1
|
-
# CHANGELOG
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
1.
|
6
|
-
|
7
|
-
1.
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
1.
|
12
|
-
1.
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
1. Add
|
17
|
-
1.
|
18
|
-
1.
|
19
|
-
|
20
|
-
## 1.0
|
21
|
-
|
22
|
-
1.
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
1.
|
1
|
+
# CHANGELOG
|
2
|
+
|
3
|
+
Issues are tracked at https://github.com/roberts1000/format_restricter_rails/issues. Issues marked as **(Internal)** only affect development.
|
4
|
+
|
5
|
+
## 1.4.0 (Jun 03, 2024)
|
6
|
+
|
7
|
+
1. [#30](../../issues/30): Add links to issues in the `CHANGELOG.md`. **(Internal)**
|
8
|
+
1. [#32](../../issues/32): Update development gems. **(Internal)**
|
9
|
+
1. [#36](../../issues/36): Fix RuboCop issues. **(Internal)**
|
10
|
+
1. [#38](../../issues/38): Use `puma` `~> 5.4'`. **(Internal)**
|
11
|
+
1. [#47](../../issues/47): Add GitHub action workflow to check Pull Requests. **(Internal)**
|
12
|
+
1. [#50](../../issues/50): Set `required_ruby_version` to `>= 3.1.0`.
|
13
|
+
1. [#54](../../issues/54): Make Rails 6.1 the min supported version.
|
14
|
+
1. [#59](../../issues/59): Use `rspec_starter` `~> 2.0`. **(Internal)**
|
15
|
+
1. [#65](../../issues/65): Add Ruby 3.1 support.
|
16
|
+
1. [#68](../../issues/68): Add Ruby 3.2 support.
|
17
|
+
1. [#70](../../issues/70): Add Ruby 3.3 support.
|
18
|
+
1. [#74](../../issues/74): Add pull request template. **(Internal)**
|
19
|
+
|
20
|
+
## 1.3.0 (Feb 18, 2018)
|
21
|
+
|
22
|
+
1. [#20](../../issues/20): Use the rspec_starter gem for running rspec.
|
23
|
+
1. [#22](../../issues/22): Execute `head :not_acceptable` when an unsupported format is requested.
|
24
|
+
1. [#24](../../issues/24): Handle requests that don't specify a format.
|
25
|
+
|
26
|
+
## 1.2.0 (Jan 18, 2018)
|
27
|
+
|
28
|
+
1. [#14](../../issues/14): Use `to_prepare` to simplify the implementation.
|
29
|
+
1. [#16](../../issues/16): Add `rubocop_plus` and cleanup code. **(Internal)**
|
30
|
+
|
31
|
+
## 1.1.0 (Jan 08, 2018)
|
32
|
+
|
33
|
+
1. [#4](../../issues/4): Add automated tests. **(Internal)**
|
34
|
+
1. [#8](../../issues/8): Configure travis CI to use cached versions of gems. **(Internal)**
|
35
|
+
1. [#11](../../issues/11): Correct rubocop issues. **(Internal)**
|
36
|
+
|
37
|
+
## 1.0.1 (May 11, 2016)
|
38
|
+
|
39
|
+
1. [#1](../../issues/1): Fix formats not being blocked when when `only:` or `except:` are not specified.
|
40
|
+
|
41
|
+
## 1.0.0 (May 11, 2016)
|
42
|
+
|
43
|
+
1. Initial Release
|
data/Gemfile
CHANGED
@@ -4,12 +4,21 @@ source 'https://rubygems.org'
|
|
4
4
|
gemspec
|
5
5
|
|
6
6
|
group :development do
|
7
|
-
gem 'rspec_starter', "~>
|
8
|
-
gem 'rubocop_plus', "~>
|
7
|
+
gem 'rspec_starter', "~> 2.0", require: false
|
8
|
+
gem 'rubocop_plus', "~> 2.0", require: false
|
9
9
|
end
|
10
10
|
|
11
11
|
group :development, :test do
|
12
12
|
gem 'bootsnap', require: false
|
13
|
-
gem '
|
14
|
-
gem
|
13
|
+
gem 'bundler', '~> 2.0'
|
14
|
+
gem 'pry', '~> 0.14.2'
|
15
|
+
gem 'puma', '~> 6.4.1'
|
16
|
+
gem 'rake', '~> 13.0'
|
17
|
+
gem 'sass-rails', '~> 5.0'
|
18
|
+
gem "sqlite3", '~> 1.7.0'
|
19
|
+
end
|
20
|
+
|
21
|
+
group :test do
|
22
|
+
gem 'rspec-rails', '~> 6.1.0'
|
23
|
+
gem 'rails', '~> 6.1.0'
|
15
24
|
end
|
data/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
MIT License
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) 2021 roberts1000
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
9
|
copies of the Software, and to permit persons to whom the Software is
|
10
10
|
furnished to do so, subject to the following conditions:
|
11
11
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
14
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,22 +1,29 @@
|
|
1
1
|
# format_restricter_rails
|
2
2
|
|
3
|
-
|
3
|
+
`format_restricter_rails` provides a simple way to block Ruby on Rails controller actions from processing unsupported formats. If you've seen the following type of errors on your production site, `format_restricter_rails` can help:
|
4
4
|
|
5
|
-
|
5
|
+
```ruby
|
6
6
|
ActionView::MissingTemplate (Missing template tasks/index, application/index with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}
|
7
|
-
|
7
|
+
```
|
8
8
|
|
9
|
-
Why
|
9
|
+
Why do these errors occur? If it's not a bug in the app code, it's usually because a person, or a bot, is sending requests to your app in a format you didn't anticipate.
|
10
10
|
|
11
|
-
When this happens, you
|
11
|
+
When this happens, you could start defining `respond_to` calls in your actions to handle the new formats. Once you realize that's going to explode your code base, you might try to call `respond_to :html`, at the top of your controller class, in hopes that it will help. Sadly, it won't. That's where format_restricter_rails comes in. It provides a single controller class method called `restrict_formats_to` that does exactly what you want. When unallowed formats are requested, the controller halts execution and returns **HTTP Error 406 Not acceptable**.
|
12
12
|
|
13
13
|
## Versioning Scheme
|
14
14
|
|
15
|
-
|
15
|
+
Releases are versioned using [SemVer 2.0.0](https://semver.org/spec/v2.0.0.html) with the following caveats:
|
16
|
+
|
17
|
+
1. Support for a Ruby version, that reaches EOL, is removed in a major or minor release.
|
18
|
+
1. Support for a Ruby on Rails version, that reaches EOL, is removed in a major or minor release.
|
16
19
|
|
17
|
-
## Supported
|
20
|
+
## Supported Ruby Versions
|
18
21
|
|
19
|
-
|
22
|
+
Ruby 3.1+
|
23
|
+
|
24
|
+
## Supported Ruby on Rails Versions
|
25
|
+
|
26
|
+
Rails 6.1+
|
20
27
|
|
21
28
|
## Installation
|
22
29
|
|
@@ -85,9 +92,4 @@ end
|
|
85
92
|
|
86
93
|
## Contributing
|
87
94
|
|
88
|
-
Bug reports and pull requests are welcome on
|
89
|
-
|
90
|
-
## License
|
91
|
-
|
92
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
93
|
-
|
95
|
+
Bug reports and pull requests are welcome on the format_restricter_rails [issues](https://github.com/roberts1000/format_restricter_rails/issues) page.
|
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ rescue LoadError
|
|
4
4
|
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
5
|
end
|
6
6
|
|
7
|
-
APP_RAKEFILE = File.expand_path("
|
7
|
+
APP_RAKEFILE = File.expand_path("spec/dummy/Rakefile", __dir__)
|
8
8
|
load 'rails/tasks/engine.rake'
|
9
9
|
load 'rails/tasks/statistics.rake'
|
10
10
|
Bundler::GemHelper.install_tasks
|
@@ -15,7 +15,8 @@ RSpec::Core::RakeTask.new(:spec)
|
|
15
15
|
|
16
16
|
task default: :spec
|
17
17
|
|
18
|
-
|
18
|
+
desc "Start a console with pry."
|
19
|
+
task console: :environment do
|
19
20
|
exec "pry -r format_restricter_rails -I ./lib"
|
20
21
|
# exec "irb -r format_restricter_rails -I ./lib"
|
21
22
|
end
|
data/bin/rails
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
# This command will automatically be run when you run "rails" with Rails gems
|
3
3
|
# installed from the root of your application.
|
4
4
|
|
5
|
-
ENGINE_ROOT = File.expand_path('
|
6
|
-
ENGINE_PATH = File.expand_path('
|
7
|
-
APP_PATH = File.expand_path('
|
5
|
+
ENGINE_ROOT = File.expand_path('..', __dir__)
|
6
|
+
ENGINE_PATH = File.expand_path('../lib/format_restricter_rails/engine', __dir__)
|
7
|
+
APP_PATH = File.expand_path('../spec/dummy/config/application', __dir__)
|
8
8
|
|
9
9
|
# Set up gems listed in the Gemfile.
|
10
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
|
11
11
|
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
12
12
|
|
13
13
|
require 'rails/all'
|
data/bin/start_rspec
CHANGED
@@ -12,11 +12,27 @@ require "bundler/setup"
|
|
12
12
|
require "rspec_starter"
|
13
13
|
|
14
14
|
# The path to the application's root folder.
|
15
|
-
APP_ROOT = Pathname.new File.expand_path('
|
15
|
+
APP_ROOT = Pathname.new File.expand_path('..', __dir__)
|
16
16
|
|
17
|
-
#
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
# Create a custom task. For more information about custom tasks, see
|
18
|
+
# https://github.com/roberts1000/rspec_starter. Once defined, add
|
19
|
+
# 'task :my_custom_task' to the start block to execute.
|
20
|
+
#
|
21
|
+
# class MyCustomTask < RspecStarterTask
|
22
|
+
# # Specify a message to show users when the task executes.
|
23
|
+
# def starting_message
|
24
|
+
# "Executing My Custom Task"
|
25
|
+
# end
|
26
|
+
#
|
27
|
+
# # Execute task code.
|
28
|
+
# def execute
|
29
|
+
# end
|
30
|
+
# end
|
31
|
+
|
32
|
+
# Tasks are run from the top down.
|
33
|
+
RspecStarter.start do
|
34
|
+
task :verify_display_server
|
35
|
+
task :remove_tmp_folder, remove_dummy_tmp: true
|
36
|
+
task :rebuild_rails_app_database
|
37
|
+
task :start_rspec
|
22
38
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
lib = File.expand_path('
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
require 'format_restricter_rails/version'
|
4
4
|
|
@@ -10,19 +10,14 @@ Gem::Specification.new do |spec|
|
|
10
10
|
|
11
11
|
spec.summary = "A Rails Engine that prevents Rails controllers from processing undesired formats."
|
12
12
|
spec.description = "A Rails Engine that restricts the formats that your Rails controller actions are allowed to process."
|
13
|
-
spec.homepage = "https://github.com/
|
13
|
+
spec.homepage = "https://github.com/roberts1000/format_restricter_rails"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
17
|
spec.bindir = "exe"
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
|
+
spec.required_ruby_version = '>= 3.1.0'
|
20
21
|
|
21
|
-
spec.
|
22
|
-
spec.add_development_dependency "pry", "~> 0.11.3"
|
23
|
-
spec.add_development_dependency "rake", "~> 12.0"
|
24
|
-
spec.add_development_dependency "rspec-rails", "~> 3.7.2"
|
25
|
-
spec.add_development_dependency "sass-rails", "~> 5.0"
|
26
|
-
|
27
|
-
spec.add_dependency "rails", ">= 4"
|
22
|
+
spec.add_dependency "rails", ">= 6.1"
|
28
23
|
end
|
@@ -7,9 +7,9 @@ require "format_restricter_rails/railtie"
|
|
7
7
|
# Setup pry for development when running "rake console". Guard against load
|
8
8
|
# errors in production (since pry is only loaded as a DEVELOPMENT dependency
|
9
9
|
# in the .gemspec)
|
10
|
-
# rubocop:disable Lint/
|
10
|
+
# rubocop:disable Lint/SuppressedException
|
11
11
|
begin
|
12
12
|
require "pry"
|
13
13
|
rescue LoadError
|
14
14
|
end
|
15
|
-
# rubocop:enable Lint/
|
15
|
+
# rubocop:enable Lint/SuppressedException
|
metadata
CHANGED
@@ -1,99 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: format_restricter_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- roberts1000
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.16'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.16'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: pry
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.11.3
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.11.3
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '12.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '12.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec-rails
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 3.7.2
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 3.7.2
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: sass-rails
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '5.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '5.0'
|
83
13
|
- !ruby/object:Gem::Dependency
|
84
14
|
name: rails
|
85
15
|
requirement: !ruby/object:Gem::Requirement
|
86
16
|
requirements:
|
87
17
|
- - ">="
|
88
18
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
19
|
+
version: '6.1'
|
90
20
|
type: :runtime
|
91
21
|
prerelease: false
|
92
22
|
version_requirements: !ruby/object:Gem::Requirement
|
93
23
|
requirements:
|
94
24
|
- - ">="
|
95
25
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
26
|
+
version: '6.1'
|
97
27
|
description: A Rails Engine that restricts the formats that your Rails controller
|
98
28
|
actions are allowed to process.
|
99
29
|
email:
|
@@ -102,10 +32,11 @@ executables: []
|
|
102
32
|
extensions: []
|
103
33
|
extra_rdoc_files: []
|
104
34
|
files:
|
35
|
+
- ".github/pull_request_template.md"
|
36
|
+
- ".github/workflows/check_pull_request.yml"
|
105
37
|
- ".gitignore"
|
106
38
|
- ".rspec"
|
107
39
|
- ".rubocop.yml"
|
108
|
-
- ".travis.yml"
|
109
40
|
- CHANGELOG.md
|
110
41
|
- Gemfile
|
111
42
|
- LICENSE.md
|
@@ -122,7 +53,7 @@ files:
|
|
122
53
|
- lib/format_restricter_rails/includes.rb
|
123
54
|
- lib/format_restricter_rails/railtie.rb
|
124
55
|
- lib/format_restricter_rails/version.rb
|
125
|
-
homepage: https://github.com/
|
56
|
+
homepage: https://github.com/roberts1000/format_restricter_rails
|
126
57
|
licenses:
|
127
58
|
- MIT
|
128
59
|
metadata: {}
|
@@ -134,15 +65,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
65
|
requirements:
|
135
66
|
- - ">="
|
136
67
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
68
|
+
version: 3.1.0
|
138
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
70
|
requirements:
|
140
71
|
- - ">="
|
141
72
|
- !ruby/object:Gem::Version
|
142
73
|
version: '0'
|
143
74
|
requirements: []
|
144
|
-
|
145
|
-
rubygems_version: 2.7.3
|
75
|
+
rubygems_version: 3.5.11
|
146
76
|
signing_key:
|
147
77
|
specification_version: 4
|
148
78
|
summary: A Rails Engine that prevents Rails controllers from processing undesired
|