rg 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/generators/rg/templates/app/csrf_token.coffee.erb +2 -2
- data/lib/rg/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e447a847ed7a4019463fdc11f79a9fb969d71474
|
4
|
+
data.tar.gz: c7c0803d5f546f42ca9577d4066971a59be74859
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0a95394102eaf4b13d9311ba19ef5e718715f85f89ee27d7a9d3825ae60ee23654770492f02ff329c49fdb0ffac4e4454190512bd75810da70d2cdf57b076a3
|
7
|
+
data.tar.gz: f9fc4a951f19d2c54c3a98e1097a022d1378727640fc157195b448c851a506611495ea45fc072b5279bd9a9c7de44d07c51bf58948a34af6fa8cd03ab553bf2c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
@<%= appName %>.config ["$httpProvider", ($httpProvider) ->
|
2
|
+
if csrfTokenTag = document.querySelector('meta[name=csrf-token]')
|
3
3
|
angular.forEach ['post', 'put', 'patch', 'delete'], (verb)->
|
4
4
|
$httpProvider.defaults.headers[verb] ||= {}
|
5
5
|
$httpProvider.defaults.headers[verb]['X-CSRF-Token'] = csrfTokenTag.content
|
data/lib/rg/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- .gitignore
|
106
106
|
- CHANGELOG.md
|
107
107
|
- pkg/rg-0.1.0.gem
|
108
|
+
- pkg/rg-0.1.1.gem
|
108
109
|
- Gemfile.lock
|
109
110
|
- Gemfile
|
110
111
|
- lib/rg/version.rb
|