angular_csrf 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/version.rb +1 -1
- data/spec/rails_app/Gemfile +1 -1
- data/spec/rails_app/Gemfile.lock +66 -63
- data/spec/rails_app/log/test.log +60 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 812998b9472c5ffcae418409f202da4aefb7848d
|
4
|
+
data.tar.gz: c9153f71109ad441bb51bc32147b6fc46df39da2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 940c8c5740f71a6750af0d28d0f89a7cd59d0f961a319988fddedf8501f9a16783a47e07360857708ee2777cce13baf41c152ceff7435e14853908b04768d9ee
|
7
|
+
data.tar.gz: e0e3b3d637da38ae317e234a997ec882a50587ccc371713d7712f05b2134c4bfbbd88ae22b0b12a6e1ce561454c20c3db7951d32f6439b8e5f1297c8cf4b9237
|
data/README.md
CHANGED
@@ -3,10 +3,10 @@ angular_csrf
|
|
3
3
|
|
4
4
|
Extends Rails CSRF protection to play nicely with AngularJS.
|
5
5
|
|
6
|
-
[![Build Status](https://travis-ci.org/
|
7
|
-
[![security](https://hakiri.io/github/
|
8
|
-
[![Code Climate](https://codeclimate.com/github/
|
9
|
-
[![Dependency Status](https://gemnasium.com/
|
6
|
+
[![Build Status](https://travis-ci.org/nakhli/angular_csrf.svg)](https://travis-ci.org/nakhli/angular_csrf)
|
7
|
+
[![security](https://hakiri.io/github/nakhli/angular_csrf/master.svg)](https://hakiri.io/github/nakhli/angular_csrf/master)
|
8
|
+
[![Code Climate](https://codeclimate.com/github/nakhli/angular_csrf/badges/gpa.svg)](https://codeclimate.com/github/nakhli/angular_csrf)
|
9
|
+
[![Dependency Status](https://gemnasium.com/nakhli/angular_csrf.svg)](https://gemnasium.com/nakhli/angular_csrf)
|
10
10
|
[![Gem Version](https://badge.fury.io/rb/angular_csrf.svg)](http://badge.fury.io/rb/angular_csrf)
|
11
11
|
|
12
12
|
Once installed, angular_csrf **just works**: No need to change or configure neither the AngularJS javascript code
|
@@ -55,4 +55,4 @@ to perform these tasks.
|
|
55
55
|
|
56
56
|
Licensed under the [MIT License](http://opensource.org/licenses/MIT).
|
57
57
|
|
58
|
-
Copyright
|
58
|
+
Copyright Chaker Nakhli.
|
data/lib/version.rb
CHANGED
data/spec/rails_app/Gemfile
CHANGED
data/spec/rails_app/Gemfile.lock
CHANGED
@@ -1,105 +1,105 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../../
|
3
3
|
specs:
|
4
|
-
angular_csrf (0.1.
|
4
|
+
angular_csrf (0.1.6)
|
5
5
|
rails (>= 3.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionmailer (4.2.
|
11
|
-
actionpack (= 4.2.
|
12
|
-
actionview (= 4.2.
|
13
|
-
activejob (= 4.2.
|
10
|
+
actionmailer (4.2.7)
|
11
|
+
actionpack (= 4.2.7)
|
12
|
+
actionview (= 4.2.7)
|
13
|
+
activejob (= 4.2.7)
|
14
14
|
mail (~> 2.5, >= 2.5.4)
|
15
15
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
-
actionpack (4.2.
|
17
|
-
actionview (= 4.2.
|
18
|
-
activesupport (= 4.2.
|
19
|
-
rack (~> 1.6
|
16
|
+
actionpack (4.2.7)
|
17
|
+
actionview (= 4.2.7)
|
18
|
+
activesupport (= 4.2.7)
|
19
|
+
rack (~> 1.6)
|
20
20
|
rack-test (~> 0.6.2)
|
21
21
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
23
|
-
actionview (4.2.
|
24
|
-
activesupport (= 4.2.
|
22
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
23
|
+
actionview (4.2.7)
|
24
|
+
activesupport (= 4.2.7)
|
25
25
|
builder (~> 3.1)
|
26
26
|
erubis (~> 2.7.0)
|
27
27
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
28
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
29
|
-
activejob (4.2.
|
30
|
-
activesupport (= 4.2.
|
28
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
29
|
+
activejob (4.2.7)
|
30
|
+
activesupport (= 4.2.7)
|
31
31
|
globalid (>= 0.3.0)
|
32
|
-
activemodel (4.2.
|
33
|
-
activesupport (= 4.2.
|
32
|
+
activemodel (4.2.7)
|
33
|
+
activesupport (= 4.2.7)
|
34
34
|
builder (~> 3.1)
|
35
|
-
activerecord (4.2.
|
36
|
-
activemodel (= 4.2.
|
37
|
-
activesupport (= 4.2.
|
35
|
+
activerecord (4.2.7)
|
36
|
+
activemodel (= 4.2.7)
|
37
|
+
activesupport (= 4.2.7)
|
38
38
|
arel (~> 6.0)
|
39
|
-
activesupport (4.2.
|
39
|
+
activesupport (4.2.7)
|
40
40
|
i18n (~> 0.7)
|
41
41
|
json (~> 1.7, >= 1.7.7)
|
42
42
|
minitest (~> 5.1)
|
43
43
|
thread_safe (~> 0.3, >= 0.3.4)
|
44
44
|
tzinfo (~> 1.1)
|
45
|
-
arel (6.0.
|
45
|
+
arel (6.0.3)
|
46
46
|
builder (3.2.2)
|
47
|
+
concurrent-ruby (1.0.2)
|
47
48
|
erubis (2.7.0)
|
48
|
-
globalid (0.3.
|
49
|
+
globalid (0.3.7)
|
49
50
|
activesupport (>= 4.1.0)
|
50
|
-
hike (1.2.3)
|
51
51
|
i18n (0.7.0)
|
52
|
-
json (1.8.
|
53
|
-
loofah (2.0.
|
52
|
+
json (1.8.3)
|
53
|
+
loofah (2.0.3)
|
54
54
|
nokogiri (>= 1.5.9)
|
55
|
-
mail (2.6.
|
56
|
-
mime-types (>= 1.16, <
|
57
|
-
mime-types (
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
55
|
+
mail (2.6.4)
|
56
|
+
mime-types (>= 1.16, < 4)
|
57
|
+
mime-types (3.1)
|
58
|
+
mime-types-data (~> 3.2015)
|
59
|
+
mime-types-data (3.2016.0521)
|
60
|
+
mini_portile2 (2.1.0)
|
61
|
+
minitest (5.9.0)
|
62
|
+
nokogiri (1.6.8)
|
63
|
+
mini_portile2 (~> 2.1.0)
|
64
|
+
pkg-config (~> 1.1.7)
|
65
|
+
pkg-config (1.1.7)
|
66
|
+
rack (1.6.4)
|
67
|
+
rack-test (0.6.3)
|
65
68
|
rack (>= 1.0)
|
66
|
-
rails (4.2.
|
67
|
-
actionmailer (= 4.2.
|
68
|
-
actionpack (= 4.2.
|
69
|
-
actionview (= 4.2.
|
70
|
-
activejob (= 4.2.
|
71
|
-
activemodel (= 4.2.
|
72
|
-
activerecord (= 4.2.
|
73
|
-
activesupport (= 4.2.
|
69
|
+
rails (4.2.7)
|
70
|
+
actionmailer (= 4.2.7)
|
71
|
+
actionpack (= 4.2.7)
|
72
|
+
actionview (= 4.2.7)
|
73
|
+
activejob (= 4.2.7)
|
74
|
+
activemodel (= 4.2.7)
|
75
|
+
activerecord (= 4.2.7)
|
76
|
+
activesupport (= 4.2.7)
|
74
77
|
bundler (>= 1.3.0, < 2.0)
|
75
|
-
railties (= 4.2.
|
78
|
+
railties (= 4.2.7)
|
76
79
|
sprockets-rails
|
77
80
|
rails-deprecated_sanitizer (1.0.3)
|
78
81
|
activesupport (>= 4.2.0.alpha)
|
79
|
-
rails-dom-testing (1.0.
|
82
|
+
rails-dom-testing (1.0.7)
|
80
83
|
activesupport (>= 4.2.0.beta, < 5.0)
|
81
84
|
nokogiri (~> 1.6.0)
|
82
85
|
rails-deprecated_sanitizer (>= 1.0.1)
|
83
|
-
rails-html-sanitizer (1.0.
|
86
|
+
rails-html-sanitizer (1.0.3)
|
84
87
|
loofah (~> 2.0)
|
85
|
-
railties (4.2.
|
86
|
-
actionpack (= 4.2.
|
87
|
-
activesupport (= 4.2.
|
88
|
+
railties (4.2.7)
|
89
|
+
actionpack (= 4.2.7)
|
90
|
+
activesupport (= 4.2.7)
|
88
91
|
rake (>= 0.8.7)
|
89
92
|
thor (>= 0.18.1, < 2.0)
|
90
|
-
rake (
|
91
|
-
sprockets (
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
activesupport (>= 3.0)
|
99
|
-
sprockets (>= 2.8, < 4.0)
|
93
|
+
rake (11.2.2)
|
94
|
+
sprockets (3.7.0)
|
95
|
+
concurrent-ruby (~> 1.0)
|
96
|
+
rack (> 1, < 3)
|
97
|
+
sprockets-rails (3.2.0)
|
98
|
+
actionpack (>= 4.0)
|
99
|
+
activesupport (>= 4.0)
|
100
|
+
sprockets (>= 3.0.0)
|
100
101
|
thor (0.19.1)
|
101
|
-
thread_safe (0.3.
|
102
|
-
tilt (1.4.1)
|
102
|
+
thread_safe (0.3.5)
|
103
103
|
tzinfo (1.2.2)
|
104
104
|
thread_safe (~> 0.1)
|
105
105
|
|
@@ -108,4 +108,7 @@ PLATFORMS
|
|
108
108
|
|
109
109
|
DEPENDENCIES
|
110
110
|
angular_csrf!
|
111
|
-
rails (= 4.2.
|
111
|
+
rails (= 4.2.7)
|
112
|
+
|
113
|
+
BUNDLED WITH
|
114
|
+
1.13.1
|
data/spec/rails_app/log/test.log
CHANGED
@@ -2920,3 +2920,63 @@ Completed 422 Unprocessable Entity in 0ms
|
|
2920
2920
|
Started POST "/" for 127.0.0.1 at 2015-07-08 14:21:14 +0200
|
2921
2921
|
Processing by GuineaPigController#create as HTML
|
2922
2922
|
Completed 201 Created in 0ms
|
2923
|
+
Started GET "/" for 127.0.0.1 at 2016-09-18 21:08:49 +0200
|
2924
|
+
Processing by GuineaPigController#index as HTML
|
2925
|
+
Completed 200 OK in 15ms
|
2926
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:08:49 +0200
|
2927
|
+
Processing by GuineaPigController#create as HTML
|
2928
|
+
Can't verify CSRF token authenticity
|
2929
|
+
Completed 422 Unprocessable Entity in 0ms
|
2930
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:08:49 +0200
|
2931
|
+
Processing by GuineaPigController#create as HTML
|
2932
|
+
Completed 201 Created in 0ms
|
2933
|
+
Started GET "/" for 127.0.0.1 at 2016-09-18 21:08:49 +0200
|
2934
|
+
Processing by GuineaPigController#index as HTML
|
2935
|
+
Completed 200 OK in 0ms
|
2936
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:08:49 +0200
|
2937
|
+
Processing by GuineaPigController#create as HTML
|
2938
|
+
Can't verify CSRF token authenticity
|
2939
|
+
Completed 422 Unprocessable Entity in 0ms
|
2940
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:08:49 +0200
|
2941
|
+
Processing by GuineaPigController#create as HTML
|
2942
|
+
Completed 201 Created in 0ms
|
2943
|
+
Started GET "/" for 127.0.0.1 at 2016-09-18 21:36:13 +0200
|
2944
|
+
Processing by GuineaPigController#index as HTML
|
2945
|
+
Completed 200 OK in 7ms
|
2946
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:36:13 +0200
|
2947
|
+
Processing by GuineaPigController#create as HTML
|
2948
|
+
Can't verify CSRF token authenticity
|
2949
|
+
Completed 422 Unprocessable Entity in 0ms
|
2950
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:36:13 +0200
|
2951
|
+
Processing by GuineaPigController#create as HTML
|
2952
|
+
Completed 201 Created in 0ms
|
2953
|
+
Started GET "/" for 127.0.0.1 at 2016-09-18 21:36:13 +0200
|
2954
|
+
Processing by GuineaPigController#index as HTML
|
2955
|
+
Completed 200 OK in 0ms
|
2956
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:36:13 +0200
|
2957
|
+
Processing by GuineaPigController#create as HTML
|
2958
|
+
Can't verify CSRF token authenticity
|
2959
|
+
Completed 422 Unprocessable Entity in 0ms
|
2960
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:36:13 +0200
|
2961
|
+
Processing by GuineaPigController#create as HTML
|
2962
|
+
Completed 201 Created in 0ms
|
2963
|
+
Started GET "/" for 127.0.0.1 at 2016-09-18 21:42:29 +0200
|
2964
|
+
Processing by GuineaPigController#index as HTML
|
2965
|
+
Completed 200 OK in 7ms
|
2966
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:42:29 +0200
|
2967
|
+
Processing by GuineaPigController#create as HTML
|
2968
|
+
Can't verify CSRF token authenticity.
|
2969
|
+
Completed 422 Unprocessable Entity in 0ms
|
2970
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:42:29 +0200
|
2971
|
+
Processing by GuineaPigController#create as HTML
|
2972
|
+
Completed 201 Created in 0ms
|
2973
|
+
Started GET "/" for 127.0.0.1 at 2016-09-18 21:42:29 +0200
|
2974
|
+
Processing by GuineaPigController#index as HTML
|
2975
|
+
Completed 200 OK in 0ms
|
2976
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:42:29 +0200
|
2977
|
+
Processing by GuineaPigController#create as HTML
|
2978
|
+
Can't verify CSRF token authenticity.
|
2979
|
+
Completed 422 Unprocessable Entity in 0ms
|
2980
|
+
Started POST "/" for 127.0.0.1 at 2016-09-18 21:42:29 +0200
|
2981
|
+
Processing by GuineaPigController#create as HTML
|
2982
|
+
Completed 201 Created in 0ms
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: angular_csrf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chaker Nakhli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '3.1'
|
55
55
|
description: Extends Rails CSRF protection to play nicely with AngularJS.
|
56
56
|
email:
|
57
|
-
- chaker.nakhli@
|
57
|
+
- chaker.nakhli@gmail.com
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
@@ -107,7 +107,7 @@ files:
|
|
107
107
|
- spec/rails_app/public/robots.txt
|
108
108
|
- spec/rails_helper.rb
|
109
109
|
- spec/spec_helper.rb
|
110
|
-
homepage: https://github.com/
|
110
|
+
homepage: https://github.com/nakhli/angular_csrf
|
111
111
|
licenses:
|
112
112
|
- MIT
|
113
113
|
metadata: {}
|
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
requirements: []
|
130
130
|
rubyforge_project:
|
131
|
-
rubygems_version: 2.
|
131
|
+
rubygems_version: 2.4.8
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Extends Rails CSRF protection to play nicely with AngularJS
|