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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b2243ffb907e6ebf5a68178636e7fd29b9c0135
4
- data.tar.gz: d177c4be42867e7bcae9af1e2ade9775abda21ef
3
+ metadata.gz: e447a847ed7a4019463fdc11f79a9fb969d71474
4
+ data.tar.gz: c7c0803d5f546f42ca9577d4066971a59be74859
5
5
  SHA512:
6
- metadata.gz: 2ffd7eb0568e088dd9f4ae794dcf36cfd5d46664047bd3f8a101a17b4704f2323c1f4eb759541f8905d8ca417daca3f34ac4befa740a2df08fff72e72fa74345
7
- data.tar.gz: 64684d74676a0f1025767baa445c24e8f2190a8ffdf23161bb32efe130a0b770db055e4548c88dcc4c911e0c9925924754f1a4b566e48aa167c3bf0f0e1d3f57
6
+ metadata.gz: b0a95394102eaf4b13d9311ba19ef5e718715f85f89ee27d7a9d3825ae60ee23654770492f02ff329c49fdb0ffac4e4454190512bd75810da70d2cdf57b076a3
7
+ data.tar.gz: f9fc4a951f19d2c54c3a98e1097a022d1378727640fc157195b448c851a506611495ea45fc072b5279bd9a9c7de44d07c51bf58948a34af6fa8cd03ab553bf2c
@@ -1,3 +1,7 @@
1
+ ## 0.1.2
2
+
3
+ - Improve CSRF token script
4
+
1
5
  ## 0.1.1
2
6
 
3
7
  - Re-release to fix errors in 0.1.0 rubygems version
@@ -1,5 +1,5 @@
1
- if csrfTokenTag = document.querySelector('meta[name=csrf-token]')
2
- @<%= appName %>.config ["$httpProvider", ($httpProvider) ->
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
@@ -1,3 +1,3 @@
1
1
  module Rg
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.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