weak_parameters 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/release.yml +23 -0
- data/.github/workflows/actions.lock +37 -0
- data/.github/workflows/bump-request.yml +26 -0
- data/.github/workflows/ci.yml +26 -0
- data/.github/workflows/release.yml +11 -0
- data/Gemfile +4 -1
- data/README.md +1 -1
- data/lib/weak_parameters/version.rb +1 -1
- data/spec/dummy/config/application.rb +2 -3
- data/spec/dummy/config/environments/development.rb +0 -2
- data/spec/dummy/config/environments/test.rb +1 -5
- data/spec/dummy/config/initializers/inflections.rb +4 -0
- data/spec/requests/api/recipes_spec.rb +1 -1
- data/spec/requests/api/strong_spec.rb +3 -1
- data/spec/requests/recipes_spec.rb +1 -1
- data/spec/requests/strong_spec.rb +3 -1
- data/weak_parameters.gemspec +10 -13
- metadata +15 -157
- data/.travis.yml +0 -5
- data/CHANGELOG.md +0 -110
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 236d3ae3c5c026cfe14619f7bbcbf77cdd60591ba18a2f6abb63efec1e40e896
|
|
4
|
+
data.tar.gz: 5a1a69f983ea99beb8185c4309bf6769fde9539038bc91e6284916c0780c9b2b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7faf8a51dd3e56ade889bd63f17dcbdaf859700dc72201d3362fba45198ba02d2d2bd059e7cb45429d596507d32fc7058e475d715ba7494b0afa8a17bb38391f
|
|
7
|
+
data.tar.gz: 3aeae6ddfd20b0904f27e0039ede4dbbbb8be63c60bacea8384602c17ed2913f397e171f1ef8db756313e210c87b358f546a3c504e184ff94bbc6dde6f296a00
|
data/.github/release.yml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
changelog:
|
|
2
|
+
categories:
|
|
3
|
+
- title: Added
|
|
4
|
+
labels:
|
|
5
|
+
- add
|
|
6
|
+
- title: Changed
|
|
7
|
+
labels:
|
|
8
|
+
- change
|
|
9
|
+
- title: Deprecated
|
|
10
|
+
labels:
|
|
11
|
+
- deprecated
|
|
12
|
+
- title: Fixed
|
|
13
|
+
labels:
|
|
14
|
+
- fix
|
|
15
|
+
- title: Removed
|
|
16
|
+
labels:
|
|
17
|
+
- remove
|
|
18
|
+
- title: Security
|
|
19
|
+
labels:
|
|
20
|
+
- security
|
|
21
|
+
- title: Others
|
|
22
|
+
labels:
|
|
23
|
+
- "*"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# This file is machine-generated by `gh actions-lock`.
|
|
2
|
+
# Do not edit by hand; run `gh actions-lock` to update.
|
|
3
|
+
# Docs: https://gh.io/actions-lockfile
|
|
4
|
+
version: 'v0.0.3'
|
|
5
|
+
workflows:
|
|
6
|
+
'.github/workflows/bump-request.yml':
|
|
7
|
+
- 'actions/checkout@v7.0.1'
|
|
8
|
+
- 'r7kamura/bump-request@v0.7.1'
|
|
9
|
+
- 'ruby/setup-ruby@v1.336.0'
|
|
10
|
+
'.github/workflows/ci.yml':
|
|
11
|
+
- 'actions/checkout@v7.0.1'
|
|
12
|
+
- 'ruby/setup-ruby@v1.336.0'
|
|
13
|
+
'.github/workflows/release.yml': []
|
|
14
|
+
dependencies:
|
|
15
|
+
'actions/checkout@v7.0.1':
|
|
16
|
+
ref: 'v7.0.1'
|
|
17
|
+
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
|
|
18
|
+
owner_id: 44036562
|
|
19
|
+
repo_id: 197814629
|
|
20
|
+
'actions/setup-node@v7.1.0':
|
|
21
|
+
ref: 'v7.1.0'
|
|
22
|
+
commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1'
|
|
23
|
+
owner_id: 44036562
|
|
24
|
+
repo_id: 189476904
|
|
25
|
+
'r7kamura/bump-request@v0.7.1':
|
|
26
|
+
ref: 'v0.7.1'
|
|
27
|
+
commit: 'sha1-b27937188d404bc0c2fd442403e6de1d20f9b349'
|
|
28
|
+
owner_id: 111689
|
|
29
|
+
repo_id: 533135195
|
|
30
|
+
uses:
|
|
31
|
+
- 'actions/checkout@v7.0.1'
|
|
32
|
+
- 'actions/setup-node@v7.1.0'
|
|
33
|
+
'ruby/setup-ruby@v1.336.0':
|
|
34
|
+
ref: 'v1.336.0'
|
|
35
|
+
commit: 'sha1-de492cf36cbab201753d720ce4f4e336cd688c94'
|
|
36
|
+
owner_id: 210414
|
|
37
|
+
repo_id: 231208785
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: bump-request
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version:
|
|
7
|
+
description: Version to change to.
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
run:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v7.0.1
|
|
16
|
+
- name: Set up Ruby
|
|
17
|
+
uses: ruby/setup-ruby@v1.336.0
|
|
18
|
+
with:
|
|
19
|
+
ruby-version: 3.3
|
|
20
|
+
bundler-cache: true
|
|
21
|
+
- uses: r7kamura/bump-request@v0.7.1
|
|
22
|
+
with:
|
|
23
|
+
command: |
|
|
24
|
+
sed -i -r 's/([0-9]+\.[0-9]+\.[0-9]+)/${{ inputs.version }}/' lib/weak_parameters/version.rb
|
|
25
|
+
bundle install
|
|
26
|
+
version: ${{ inputs.version }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
name: Ruby ${{ matrix.ruby }}
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
ruby:
|
|
17
|
+
- '3.3'
|
|
18
|
+
- '3.4'
|
|
19
|
+
- '4.0'
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v7.0.1
|
|
22
|
+
- uses: ruby/setup-ruby@v1.336.0
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
|
25
|
+
bundler-cache: true
|
|
26
|
+
- run: bundle exec rspec
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
require File.expand_path('../boot', __FILE__)
|
|
2
2
|
|
|
3
|
-
require "
|
|
3
|
+
require "active_record/railtie"
|
|
4
|
+
require "action_controller/railtie"
|
|
4
5
|
|
|
5
6
|
if defined?(Bundler)
|
|
6
7
|
Bundler.require(:default, Rails.env)
|
|
@@ -46,8 +47,6 @@ module Dummy
|
|
|
46
47
|
# like if you have constraints or database-specific column types
|
|
47
48
|
# config.active_record.schema_format = :sql
|
|
48
49
|
|
|
49
|
-
# Version of your assets, change this if you want to expire all your assets
|
|
50
|
-
config.assets.version = '1.0'
|
|
51
50
|
end
|
|
52
51
|
end
|
|
53
52
|
|
|
@@ -10,8 +10,6 @@ Dummy::Application.configure do
|
|
|
10
10
|
config.consider_all_requests_local = true
|
|
11
11
|
config.action_controller.perform_caching = false
|
|
12
12
|
|
|
13
|
-
# Don't care if the mailer can't send
|
|
14
|
-
config.action_mailer.raise_delivery_errors = false
|
|
15
13
|
|
|
16
14
|
# Print deprecation notices to the Rails logger
|
|
17
15
|
config.active_support.deprecation = :log
|
|
@@ -8,7 +8,7 @@ Dummy::Application.configure do
|
|
|
8
8
|
config.cache_classes = true
|
|
9
9
|
|
|
10
10
|
# Configure static asset server for tests with Cache-Control for performance
|
|
11
|
-
config.
|
|
11
|
+
config.public_file_server.enabled = true
|
|
12
12
|
|
|
13
13
|
# Show full error reports and disable caching
|
|
14
14
|
config.consider_all_requests_local = true
|
|
@@ -20,10 +20,6 @@ Dummy::Application.configure do
|
|
|
20
20
|
# Disable request forgery protection in test environment
|
|
21
21
|
config.action_controller.allow_forgery_protection = false
|
|
22
22
|
|
|
23
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
|
24
|
-
# The :test delivery method accumulates sent emails in the
|
|
25
|
-
# ActionMailer::Base.deliveries array.
|
|
26
|
-
config.action_mailer.delivery_method = :test
|
|
27
23
|
|
|
28
24
|
# Print deprecation notices to the stderr
|
|
29
25
|
config.active_support.deprecation = :stderr
|
|
@@ -17,6 +17,8 @@ describe "Strong with rails-api", type: :request do
|
|
|
17
17
|
strong_config: { a: 1, b: { c: 2 } },
|
|
18
18
|
tags: [1],
|
|
19
19
|
strong_tags: [1],
|
|
20
|
+
rate: 0.01,
|
|
21
|
+
strong_rate: 0.01,
|
|
20
22
|
date: Date.current.strftime('%Y-%m-%d'),
|
|
21
23
|
strong_date: Date.current.strftime('%Y-%m-%d'),
|
|
22
24
|
time: Time.current.strftime('%Y-%m-%d %H:%M:%S'),
|
|
@@ -74,7 +76,7 @@ describe "Strong with rails-api", type: :request do
|
|
|
74
76
|
expect(controller.permitted_params).to have_key "strong_tags"
|
|
75
77
|
expect(controller.permitted_params).not_to have_key "tags"
|
|
76
78
|
|
|
77
|
-
expect(controller.permitted_params).
|
|
79
|
+
expect(controller.permitted_params).to have_key "strong_rate"
|
|
78
80
|
expect(controller.permitted_params).not_to have_key "rate"
|
|
79
81
|
|
|
80
82
|
expect(controller.permitted_params).to have_key "strong_date"
|
|
@@ -17,6 +17,8 @@ describe "Strong", type: :request do
|
|
|
17
17
|
strong_config: { a: 1, b: { c: 2 } },
|
|
18
18
|
tags: [1],
|
|
19
19
|
strong_tags: [1],
|
|
20
|
+
rate: 0.01,
|
|
21
|
+
strong_rate: 0.01,
|
|
20
22
|
date: Date.current.strftime('%Y-%m-%d'),
|
|
21
23
|
strong_date: Date.current.strftime('%Y-%m-%d'),
|
|
22
24
|
time: Time.current.strftime('%Y-%m-%d %H:%M:%S'),
|
|
@@ -74,7 +76,7 @@ describe "Strong", type: :request do
|
|
|
74
76
|
expect(controller.permitted_params).to have_key "strong_tags"
|
|
75
77
|
expect(controller.permitted_params).not_to have_key "tags"
|
|
76
78
|
|
|
77
|
-
expect(controller.permitted_params).
|
|
79
|
+
expect(controller.permitted_params).to have_key "strong_rate"
|
|
78
80
|
expect(controller.permitted_params).not_to have_key "rate"
|
|
79
81
|
|
|
80
82
|
expect(controller.permitted_params).to have_key "strong_date"
|
data/weak_parameters.gemspec
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
require "weak_parameters/version"
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/weak_parameters/version"
|
|
5
4
|
|
|
6
5
|
Gem::Specification.new do |spec|
|
|
7
6
|
spec.name = "weak_parameters"
|
|
@@ -12,17 +11,15 @@ Gem::Specification.new do |spec|
|
|
|
12
11
|
spec.homepage = "https://github.com/r7kamura/weak_parameters"
|
|
13
12
|
spec.license = "MIT"
|
|
14
13
|
|
|
14
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
15
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
16
|
+
spec.metadata["changelog_uri"] = "#{spec.homepage}/releases"
|
|
17
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
18
|
+
|
|
19
|
+
spec.required_ruby_version = ">= 3.3"
|
|
20
|
+
|
|
15
21
|
spec.files = `git ls-files`.split($/)
|
|
16
|
-
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
17
|
-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
18
22
|
spec.require_paths = ["lib"]
|
|
19
23
|
|
|
20
24
|
spec.add_dependency "rails", ">= 4.0.0"
|
|
21
|
-
spec.add_development_dependency "autodoc"
|
|
22
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
|
23
|
-
spec.add_development_dependency "pry-rails"
|
|
24
|
-
spec.add_development_dependency "rake"
|
|
25
|
-
spec.add_development_dependency "rspec-rails"
|
|
26
|
-
spec.add_development_dependency "sqlite3"
|
|
27
|
-
spec.add_development_dependency "test-unit"
|
|
28
25
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: weak_parameters
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryo Nakamura
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rails
|
|
@@ -24,114 +23,18 @@ dependencies:
|
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: 4.0.0
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: autodoc
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - ">="
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - ">="
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: bundler
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '1.3'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '1.3'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: pry-rails
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - ">="
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - ">="
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rake
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - ">="
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - ">="
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '0'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: rspec-rails
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - ">="
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: '0'
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - ">="
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: '0'
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: sqlite3
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - ">="
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - ">="
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: test-unit
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0'
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ">="
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '0'
|
|
125
|
-
description:
|
|
126
26
|
email:
|
|
127
27
|
- r7kamura@gmail.com
|
|
128
28
|
executables: []
|
|
129
29
|
extensions: []
|
|
130
30
|
extra_rdoc_files: []
|
|
131
31
|
files:
|
|
32
|
+
- ".github/release.yml"
|
|
33
|
+
- ".github/workflows/actions.lock"
|
|
34
|
+
- ".github/workflows/bump-request.yml"
|
|
35
|
+
- ".github/workflows/ci.yml"
|
|
36
|
+
- ".github/workflows/release.yml"
|
|
132
37
|
- ".gitignore"
|
|
133
|
-
- ".travis.yml"
|
|
134
|
-
- CHANGELOG.md
|
|
135
38
|
- Gemfile
|
|
136
39
|
- LICENSE.txt
|
|
137
40
|
- README.md
|
|
@@ -204,8 +107,11 @@ files:
|
|
|
204
107
|
homepage: https://github.com/r7kamura/weak_parameters
|
|
205
108
|
licenses:
|
|
206
109
|
- MIT
|
|
207
|
-
metadata:
|
|
208
|
-
|
|
110
|
+
metadata:
|
|
111
|
+
homepage_uri: https://github.com/r7kamura/weak_parameters
|
|
112
|
+
source_code_uri: https://github.com/r7kamura/weak_parameters
|
|
113
|
+
changelog_uri: https://github.com/r7kamura/weak_parameters/releases
|
|
114
|
+
rubygems_mfa_required: 'true'
|
|
209
115
|
rdoc_options: []
|
|
210
116
|
require_paths:
|
|
211
117
|
- lib
|
|
@@ -213,62 +119,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
213
119
|
requirements:
|
|
214
120
|
- - ">="
|
|
215
121
|
- !ruby/object:Gem::Version
|
|
216
|
-
version: '
|
|
122
|
+
version: '3.3'
|
|
217
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
124
|
requirements:
|
|
219
125
|
- - ">="
|
|
220
126
|
- !ruby/object:Gem::Version
|
|
221
127
|
version: '0'
|
|
222
128
|
requirements: []
|
|
223
|
-
|
|
224
|
-
rubygems_version: 2.6.11
|
|
225
|
-
signing_key:
|
|
129
|
+
rubygems_version: 4.0.20
|
|
226
130
|
specification_version: 4
|
|
227
131
|
summary: Add a validation filter to your controller.
|
|
228
|
-
test_files:
|
|
229
|
-
- spec/dummy/Rakefile
|
|
230
|
-
- spec/dummy/app/assets/javascripts/application.js
|
|
231
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
|
232
|
-
- spec/dummy/app/controllers/api/recipes_controller.rb
|
|
233
|
-
- spec/dummy/app/controllers/api/strongs_controller.rb
|
|
234
|
-
- spec/dummy/app/controllers/api_controller.rb
|
|
235
|
-
- spec/dummy/app/controllers/application_controller.rb
|
|
236
|
-
- spec/dummy/app/controllers/concerns/with_recipe.rb
|
|
237
|
-
- spec/dummy/app/controllers/concerns/with_strong.rb
|
|
238
|
-
- spec/dummy/app/controllers/recipes_controller.rb
|
|
239
|
-
- spec/dummy/app/controllers/strongs_controller.rb
|
|
240
|
-
- spec/dummy/app/helpers/application_helper.rb
|
|
241
|
-
- spec/dummy/app/mailers/.gitkeep
|
|
242
|
-
- spec/dummy/app/models/.gitkeep
|
|
243
|
-
- spec/dummy/app/models/recipe.rb
|
|
244
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
|
245
|
-
- spec/dummy/config.ru
|
|
246
|
-
- spec/dummy/config/application.rb
|
|
247
|
-
- spec/dummy/config/boot.rb
|
|
248
|
-
- spec/dummy/config/database.yml
|
|
249
|
-
- spec/dummy/config/environment.rb
|
|
250
|
-
- spec/dummy/config/environments/development.rb
|
|
251
|
-
- spec/dummy/config/environments/production.rb
|
|
252
|
-
- spec/dummy/config/environments/test.rb
|
|
253
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
254
|
-
- spec/dummy/config/initializers/inflections.rb
|
|
255
|
-
- spec/dummy/config/initializers/mime_types.rb
|
|
256
|
-
- spec/dummy/config/initializers/secret_token.rb
|
|
257
|
-
- spec/dummy/config/initializers/session_store.rb
|
|
258
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
259
|
-
- spec/dummy/config/locales/en.yml
|
|
260
|
-
- spec/dummy/config/routes.rb
|
|
261
|
-
- spec/dummy/db/migrate/20130607060944_create_recipes.rb
|
|
262
|
-
- spec/dummy/db/schema.rb
|
|
263
|
-
- spec/dummy/lib/assets/.gitkeep
|
|
264
|
-
- spec/dummy/log/.gitkeep
|
|
265
|
-
- spec/dummy/public/404.html
|
|
266
|
-
- spec/dummy/public/422.html
|
|
267
|
-
- spec/dummy/public/500.html
|
|
268
|
-
- spec/dummy/public/favicon.ico
|
|
269
|
-
- spec/dummy/script/rails
|
|
270
|
-
- spec/requests/api/recipes_spec.rb
|
|
271
|
-
- spec/requests/api/strong_spec.rb
|
|
272
|
-
- spec/requests/recipes_spec.rb
|
|
273
|
-
- spec/requests/strong_spec.rb
|
|
274
|
-
- spec/spec_helper.rb
|
|
132
|
+
test_files: []
|
data/.travis.yml
DELETED
data/CHANGELOG.md
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
## 0.5.0
|
|
2
|
-
|
|
3
|
-
- Change options name from `:only` to `:format` (Thx @ganmacs)
|
|
4
|
-
|
|
5
|
-
## 0.4.3
|
|
6
|
-
|
|
7
|
-
- Support date and time validator (Thx @shimomuh)
|
|
8
|
-
|
|
9
|
-
## 0.4.2
|
|
10
|
-
|
|
11
|
-
- Fix options on list validator (Thx @laboone)
|
|
12
|
-
|
|
13
|
-
## 0.4.1
|
|
14
|
-
|
|
15
|
-
- Support rails-api
|
|
16
|
-
|
|
17
|
-
## 0.4.0
|
|
18
|
-
|
|
19
|
-
- Support Rails 5
|
|
20
|
-
|
|
21
|
-
## 0.3.0
|
|
22
|
-
|
|
23
|
-
- Remove Rails 3 support
|
|
24
|
-
|
|
25
|
-
## 0.2.3
|
|
26
|
-
|
|
27
|
-
- Change execution context of validator block
|
|
28
|
-
- Fix a development dependencies problem
|
|
29
|
-
|
|
30
|
-
## 0.2.2
|
|
31
|
-
|
|
32
|
-
- Fix nil validation bug on nested parameters (Thx @mzp)
|
|
33
|
-
|
|
34
|
-
## 0.2.1
|
|
35
|
-
|
|
36
|
-
- Fix validtion bug on existence check
|
|
37
|
-
|
|
38
|
-
## 0.2.0
|
|
39
|
-
|
|
40
|
-
- Add strong options on validator DSL (Thx @yoshiori)
|
|
41
|
-
|
|
42
|
-
## 0.1.7
|
|
43
|
-
|
|
44
|
-
- Fix bug on missing `@path` variable (Thx @taka0125)
|
|
45
|
-
|
|
46
|
-
## 0.1.6
|
|
47
|
-
|
|
48
|
-
- Support nested parameters (Thx @mzp)
|
|
49
|
-
|
|
50
|
-
## 0.1.5
|
|
51
|
-
|
|
52
|
-
- Support `file` validator (#6)
|
|
53
|
-
|
|
54
|
-
## 0.1.4
|
|
55
|
-
|
|
56
|
-
- Tiny improvement about Validator#params
|
|
57
|
-
|
|
58
|
-
## 0.1.3
|
|
59
|
-
|
|
60
|
-
- Don't directly touch AC::Base, but do it via AS.on_load
|
|
61
|
-
|
|
62
|
-
## 0.1.2
|
|
63
|
-
|
|
64
|
-
- Add `:handler` option to customize failure behavior
|
|
65
|
-
- Fix bug around `float` validator with block
|
|
66
|
-
|
|
67
|
-
## 0.1.1
|
|
68
|
-
|
|
69
|
-
- Add `any` validator
|
|
70
|
-
|
|
71
|
-
## 0.1.0
|
|
72
|
-
|
|
73
|
-
- Add type checking to `string` validator
|
|
74
|
-
|
|
75
|
-
## 0.0.9
|
|
76
|
-
|
|
77
|
-
- Improve error message
|
|
78
|
-
|
|
79
|
-
## 0.0.8
|
|
80
|
-
|
|
81
|
-
- Add block support to all validators
|
|
82
|
-
- Add `float` validator
|
|
83
|
-
|
|
84
|
-
## 0.0.7
|
|
85
|
-
|
|
86
|
-
- Fix `integer` validator bug
|
|
87
|
-
|
|
88
|
-
## 0.0.6
|
|
89
|
-
|
|
90
|
-
- Change value handling in `:only` & `:except` checking
|
|
91
|
-
|
|
92
|
-
## 0.0.5
|
|
93
|
-
|
|
94
|
-
- Add `:only` & `:except` options
|
|
95
|
-
|
|
96
|
-
## 0.0.4
|
|
97
|
-
|
|
98
|
-
- Fix stored controller name for namespaced controller
|
|
99
|
-
|
|
100
|
-
## 0.0.3
|
|
101
|
-
|
|
102
|
-
- Fix type name bug
|
|
103
|
-
|
|
104
|
-
## 0.0.2
|
|
105
|
-
|
|
106
|
-
- Add `hash` & `boolean` validator
|
|
107
|
-
|
|
108
|
-
## 0.0.1
|
|
109
|
-
|
|
110
|
-
- Release the first version on 2013-06-07
|