embargo 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/embargo.rb +3 -0
  3. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54222070b2811497cacc7a3971671ddea9dd09f5
4
- data.tar.gz: 0ed331cf8426646e967768374b62d50fca5249d9
3
+ metadata.gz: ead02d5dc5e8114dcd296d745cbefd7739d20f45
4
+ data.tar.gz: 8682229ceff571805aaa88ee1643517132233890
5
5
  SHA512:
6
- metadata.gz: 57e93668aa4e2d440d5cccca750d86bf67dc583f8cf90b4baee49af2ac0f3e1972c89ca3d3c6135d638c0a6dc51cf8017d138bd839d8ef6ec146e81d811256cb
7
- data.tar.gz: bea9cf9de0781ea4d3ef88a2b4913830263e6b0e49b0dc3098d31d2219fc399a454e4a70e76c0fe81911673a5a0ab215d28574411ef014fd8b109170f073cf01
6
+ metadata.gz: 6122fbf547ac6b14fedc5612c19410dc61282c350a269a82a216c21e8b1aee14b1a83b77b628fea4b1f8918fd70d08f2ca3aec9f988ad9182d8135811535c18b
7
+ data.tar.gz: 9aa248937dc47e19a4e3381d5460e13a2ba1041b8194e87fc69e159fce72d4a58b2c1408be267b8a939b639941bbfd0ce0a6d1d047be19eb1b7ec017374fe0a2
data/lib/embargo.rb CHANGED
@@ -2,6 +2,7 @@ require 'cuba'
2
2
  require 'cuba/render'
3
3
  require 'tilt/haml'
4
4
  require 'haml'
5
+ require "rack/protection"
5
6
 
6
7
  Cuba.settings[:render] = {
7
8
  template_engine: "haml",
@@ -9,6 +10,8 @@ Cuba.settings[:render] = {
9
10
  }
10
11
 
11
12
  Cuba.plugin(Cuba::Render)
13
+ Cuba.use Rack::Session::Cookie, :secret => "__a_very_long_string__"
14
+ Cuba.use Rack::Protection
12
15
 
13
16
  class Embargo
14
17
  def self.application
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embargo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Fleming
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-12-20 00:00:00.000000000 Z
13
+ date: 2014-12-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cuba
@@ -96,6 +96,20 @@ dependencies:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
98
  version: 0.1.0
99
+ - !ruby/object:Gem::Dependency
100
+ name: rack-protection
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - '='
104
+ - !ruby/object:Gem::Version
105
+ version: 1.5.3
106
+ type: :runtime
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - '='
111
+ - !ruby/object:Gem::Version
112
+ version: 1.5.3
99
113
  - !ruby/object:Gem::Dependency
100
114
  name: unicorn
101
115
  requirement: !ruby/object:Gem::Requirement