actionpack-per_form_csrf_tokens 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +13 -19
- data/lib/actionpack/per_form_csrf_tokens/version.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b69ca6520d615f243c904b378501b16025bf7a38
|
4
|
+
data.tar.gz: 3101896cbafe4b532162e6fbb62ed37b017625c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32237c7c30ca7554b618358f14932fdd6be34e4b20ca116e0ddff65e482092dc17a2a9cd308d62ab667d97960935dc8858bad693646bcf220dbeab2d8863f5f0
|
7
|
+
data.tar.gz: b88ba8c4116e7979d9125480fc1de9880de3503a57c6194e9dcb73b67e8da66105e2bc371d10942753a46d1fbfd7dff7108b28186dc08df894945ef0bbe34a95
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## [0.2.0](https://github.com/yasaichi/actionpack-per_form_csrf_tokens/releases/tag/v0.2.0) (September 9, 2021)
|
4
|
+
|
5
|
+
### Breaking changes
|
6
|
+
|
7
|
+
- Supports only Rails 4.2.x for now
|
8
|
+
|
3
9
|
## [0.1.0](https://github.com/yasaichi/actionpack-per_form_csrf_tokens/releases/tag/v0.1.0) (September 8, 2021)
|
4
10
|
|
5
11
|
- The initial release
|
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# actionpack-per_form_csrf_tokens
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/actionpack-per_form_csrf_tokens.svg)](http://badge.fury.io/rb/actionpack-per_form_csrf_tokens)
|
4
|
+
[![Test](https://github.com/yasaichi/actionpack-per_form_csrf_tokens/actions/workflows/test.yml/badge.svg)](https://github.com/yasaichi/actionpack-per_form_csrf_tokens/actions/workflows/test.yml)
|
4
5
|
|
5
|
-
|
6
|
+
`actionpack-per_form_csrf_tokens` is a backport of per-form CSRF tokens (introduced in Rails 5) into Rails 4.2.
|
7
|
+
Note that this gem only adds some patches into `ActionController::Base` to "accept" new-format tokens, because it's aimed for enabling Rails 4.2 apps to exchange them with Rails 5.x or higher ones.
|
6
8
|
|
7
9
|
## Installation
|
8
10
|
|
@@ -16,28 +18,20 @@ And then execute:
|
|
16
18
|
|
17
19
|
$ bundle
|
18
20
|
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install actionpack-per_form_csrf_tokens
|
22
|
-
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
23
|
+
You don't need anything other than install.
|
32
24
|
|
33
25
|
## Contributing
|
34
26
|
|
35
|
-
|
27
|
+
You should follow the steps below.
|
28
|
+
|
29
|
+
1. [Fork the repository](https://help.github.com/articles/fork-a-repo/)
|
30
|
+
2. Create a feature branch: `git checkout -b add-new-feature`
|
31
|
+
3. Commit your changes: `git commit -am 'Add new feature'`
|
32
|
+
4. Push the branch: `git push origin add-new-feature`
|
33
|
+
5. [Send us a pull request](https://help.github.com/articles/about-pull-requests/)
|
36
34
|
|
37
35
|
## License
|
38
36
|
|
39
37
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
-
|
41
|
-
## Code of Conduct
|
42
|
-
|
43
|
-
Everyone interacting in the ActionPack::PerFormCsrfTokens project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/actionpack-per_form_csrf_tokens/blob/master/CODE_OF_CONDUCT.md).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack-per_form_csrf_tokens
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuichi Goto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -16,30 +16,30 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 4.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 4.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: railties
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sqlite3
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - "<"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.4.0
|
83
|
-
description: Backport of per-form CSRF tokens into Rails 4
|
83
|
+
description: Backport of per-form CSRF tokens into Rails 4.2
|
84
84
|
email:
|
85
85
|
- yasaichi@users.noreply.github.com
|
86
86
|
executables: []
|