rucaptcha 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/rucaptcha/cache.rb +5 -0
- data/lib/rucaptcha/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d255d1329b24eba6802a3c8910de24332a5d7b2
|
4
|
+
data.tar.gz: d9a223d05c6e3140a354cfbcfd5542c41473fad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c90241fe30d1831a9178b97cabcae23c70f0fb7ca6fa9412c6fb8c7579aa19b9a420b8105ef9ac7a59d666e019102e6dc728d97c36f0adb84287ff256a38601
|
7
|
+
data.tar.gz: 61c2542190df11158f57ef9cb5166f4cf37c125f51dea042caf281df8d225102a6136bac1ca9613135492265a24e4e0f0a14bcedc2597dc462373a8373026c93
|
data/CHANGELOG.md
CHANGED
data/lib/rucaptcha/cache.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
1
3
|
module RuCaptcha
|
2
4
|
# File Cache
|
3
5
|
module Cache
|
@@ -31,6 +33,9 @@ module RuCaptcha
|
|
31
33
|
return @cache if defined?(@cache)
|
32
34
|
|
33
35
|
cache_path = Rails.root.join('tmp', 'cache', 'rucaptcha')
|
36
|
+
if !File.exists? cache_path
|
37
|
+
FileUtils.mkdir_p(cache_path)
|
38
|
+
end
|
34
39
|
@cache = ActiveSupport::Cache::FileStore.new(cache_path)
|
35
40
|
@cache.clear
|
36
41
|
@cache
|
data/lib/rucaptcha/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rucaptcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: posix-spawn
|