angular_rails_csrf 7.0.1 → 7.0.2
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +1 -5
- data/lib/angular_rails_csrf/railtie.rb +0 -11
- data/lib/angular_rails_csrf/version.rb +1 -1
- data/lib/angular_rails_csrf.rb +1 -4
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b95a1805f70aa59f51398e31bc1fb65fad1c8a60291442a0b94a8573ebb2eaf0
|
|
4
|
+
data.tar.gz: 29b4dd1b60f5ae0ede924169d786fa9e9eb2dfc14b750c3c56a42837f88a0492
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e3cb2f32d02c664e5a4a5f94529944fb3cda0504964b5b83ce3781698d754b5420fb537f2a68cc1b43003fd3d50541296160c317ffae05f2e8861fb2d723c6f0
|
|
7
|
+
data.tar.gz: 5c07d1e18cc33dab0819003596635887c52bc3df47cb601abf27983ab44feff5a459a7b49ddd50f9d84a1c9a88dcd6769b7b9c9818efc9130b9a7f5c8a890c99
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
**
|
|
7
|
+
**This gem is in passive maintenance mode:**
|
|
8
8
|
|
|
9
9
|
James and then me (@bodrovis) have been supporting this gem since 2013. It has been downloaded more than 10 million times and we're glad you guys found it useful. However, after discussing privately we've decided to put angular_rails_csrf under passive maintenance starting from June 2025.
|
|
10
10
|
|
|
@@ -14,10 +14,6 @@ In modern frontend–backend architectures (e.g., Angular, React, Vue + Rails AP
|
|
|
14
14
|
- Serve frontend via Rails
|
|
15
15
|
- Expect `XSRF-TOKEN` / `X-XSRF-TOKEN` pattern
|
|
16
16
|
|
|
17
|
-
If you're actively using this gem and want to see it maintained or enhanced, please [open an issue](https://github.com/bodrovis/angular_rails_csrf/issues) describing your use case.
|
|
18
|
-
|
|
19
|
-
Otherwise, this project may be archived in late 2025 or 2026. Thank you!
|
|
20
|
-
|
|
21
17
|
---
|
|
22
18
|
|
|
23
19
|
The AngularJS [ng.$http](http://docs.angularjs.org/api/ng.$http) service has built-in CSRF protection. By default, it looks for a cookie named `XSRF-TOKEN` and, if found, writes its value into an `X-XSRF-TOKEN` header, which the server compares with the CSRF token saved in the user's session.
|
|
@@ -9,16 +9,5 @@ module AngularRailsCsrf
|
|
|
9
9
|
include AngularRailsCsrf::Concern
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
|
-
|
|
13
|
-
initializer 'angular-rails-csrf.deprecation_notice' do |_app|
|
|
14
|
-
unless Rails.env.test? || ENV['ANGULAR_RAILS_CSRF_SILENCE']
|
|
15
|
-
AngularRailsCsrf.deprecator.warn(
|
|
16
|
-
'[angular_rails_csrf] This gem is under passive maintenance and may be sunset in the future. ' \
|
|
17
|
-
'Open an issue if you rely on it and want it to live on: ' \
|
|
18
|
-
'https://github.com/bodrovis/angular_rails_csrf/issues. ' \
|
|
19
|
-
'Set ANGULAR_RAILS_CSRF_SILENCE to silence this warning.'
|
|
20
|
-
)
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
12
|
end
|
|
24
13
|
end
|
data/lib/angular_rails_csrf.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: angular_rails_csrf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.0.
|
|
4
|
+
version: 7.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Sanders
|
|
@@ -51,7 +51,6 @@ licenses:
|
|
|
51
51
|
- MIT
|
|
52
52
|
metadata:
|
|
53
53
|
rubygems_mfa_required: 'true'
|
|
54
|
-
deprecation_warning: Passive maintenance; may be sunset in 2025-2026. See README.
|
|
55
54
|
rdoc_options: []
|
|
56
55
|
require_paths:
|
|
57
56
|
- lib
|
|
@@ -66,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
66
65
|
- !ruby/object:Gem::Version
|
|
67
66
|
version: '0'
|
|
68
67
|
requirements: []
|
|
69
|
-
rubygems_version: 3.
|
|
68
|
+
rubygems_version: 3.7.2
|
|
70
69
|
specification_version: 4
|
|
71
70
|
summary: Support for AngularJS $http service style CSRF protection in Rails
|
|
72
71
|
test_files: []
|