angular_rails_csrf 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- metadata.gz: d7d66db0ae4313bd633c3eca8e80a4ca04180930
4
- data.tar.gz: 56a71c51c6d1f9231f7d5e38639e5f278103bd6a
5
- SHA512:
6
- metadata.gz: e4db30cd919b7fe492a363540fa7f40d6f5ac07dfaa17e2ebd9f499651dff5425de3ab2208a8da13941b6a8a7646fe6dcbb83b63aa036ff00968b8b96b19a50a
7
- data.tar.gz: b1cf4a627b2c215d97ca7b8b4fdcc6a09e18b1020d236f0c540bde4d27468894f58cf9ede7addf85985dfd8520ae434c7a8e87f320676236a23c6fe7597afb6e
1
+ ---
2
+ SHA1:
3
+ data.tar.gz: 62475e75b27d64da176d5dcc885d5b64106c2c1f
4
+ metadata.gz: 0c478c34f6855c22677a8fbf6d65806b9f410d7e
5
+ SHA512:
6
+ data.tar.gz: 7bf1f8741a97379e8fb5267e3f729396f345631e304a572146e523189313f0b0df81111f292dc31493ac5d3b74121dea8f2d9f3c799e21e0c25791b5f670cc32
7
+ metadata.gz: 6f0924910ac9a6cd72627fab243ffbb0413531e25ae2a0eb4f57e6c70f936cd5ec05ef0f1a10121a33514345cef2d6eef1def4dc13cb7021843cca1f40e0acf5
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  ## AngularJS-style CSRF Protection for Rails
2
2
 
3
+ [![Build Status](https://travis-ci.org/jsanders/angular_rails_csrf.png)](https://travis-ci.org/jsanders/angular_rails_csrf)
4
+
3
5
  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.
4
6
 
5
7
  This project adds direct support for this scheme to your Rails application without requiring any changes to your AngularJS application. It also doesn't require the use of `csrf_meta_tags` to write a CSRF token into your page markup, so it works for pure JSON API applications.
@@ -3,7 +3,7 @@ module AngularRailsCsrf
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- after_action :set_xsrf_token_cookie
6
+ after_filter :set_xsrf_token_cookie
7
7
  end
8
8
 
9
9
  def set_xsrf_token_cookie
@@ -1,3 +1,3 @@
1
1
  module AngularRailsCsrf
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,97 +1,92 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: angular_rails_csrf
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - James Sanders
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-13 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
11
+
12
+ date: 2014-09-12 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
14
15
  name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: 10.1.0
20
- type: :development
21
16
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirements:
24
19
  - - ~>
25
- - !ruby/object:Gem::Version
20
+ - !ruby/object:Gem::Version
26
21
  version: 10.1.0
27
- - !ruby/object:Gem::Dependency
22
+ type: :development
23
+ version_requirements: *id001
24
+ - !ruby/object:Gem::Dependency
28
25
  name: rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '>='
32
- - !ruby/object:Gem::Version
33
- version: '3'
34
- - - <
35
- - !ruby/object:Gem::Version
36
- version: '5'
37
- type: :runtime
38
26
  prerelease: false
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - '>='
42
- - !ruby/object:Gem::Version
43
- version: '3'
27
+ requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: "3"
44
32
  - - <
45
- - !ruby/object:Gem::Version
46
- version: '5'
33
+ - !ruby/object:Gem::Version
34
+ version: "5"
35
+ type: :runtime
36
+ version_requirements: *id002
47
37
  description: AngularJS style CSRF protection for Rails
48
- email:
38
+ email:
49
39
  - sanderjd@gmail.com
50
40
  executables: []
41
+
51
42
  extensions: []
43
+
52
44
  extra_rdoc_files: []
53
- files:
45
+
46
+ files:
47
+ - MIT-LICENSE
48
+ - README.md
49
+ - Rakefile
50
+ - lib/angular_rails_csrf.rb
54
51
  - lib/angular_rails_csrf/concern.rb
55
52
  - lib/angular_rails_csrf/railtie.rb
56
53
  - lib/angular_rails_csrf/version.rb
57
- - lib/angular_rails_csrf.rb
58
- - MIT-LICENSE
59
- - Rakefile
60
- - README.md
61
54
  - test/angular_rails_csrf_test.rb
62
55
  - test/dummy/app/controllers/application_controller.rb
56
+ - test/dummy/config.ru
63
57
  - test/dummy/config/application.rb
64
58
  - test/dummy/config/boot.rb
65
59
  - test/dummy/config/environment.rb
66
60
  - test/dummy/config/routes.rb
67
- - test/dummy/config.ru
68
61
  - test/dummy/log/test.log
69
62
  - test/test_helper.rb
70
63
  homepage: https://github.com/jsanders/angular_rails_csrf
71
- licenses:
64
+ licenses:
72
65
  - MIT
73
66
  metadata: {}
67
+
74
68
  post_install_message:
75
69
  rdoc_options: []
76
- require_paths:
70
+
71
+ require_paths:
77
72
  - lib
78
- required_ruby_version: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- required_rubygems_version: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - &id003
76
+ - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - *id003
88
82
  requirements: []
83
+
89
84
  rubyforge_project:
90
- rubygems_version: 2.1.10
85
+ rubygems_version: 2.2.1
91
86
  signing_key:
92
87
  specification_version: 4
93
88
  summary: Support for AngularJS $http service style CSRF protection in Rails
94
- test_files:
89
+ test_files:
95
90
  - test/angular_rails_csrf_test.rb
96
91
  - test/dummy/app/controllers/application_controller.rb
97
92
  - test/dummy/config/application.rb