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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 726ad396a3d2d992dd37ee322ee9624c2245a33f
4
- data.tar.gz: ddcffb0566969992ab238a32eb6cd571d641b46f
3
+ metadata.gz: 6d255d1329b24eba6802a3c8910de24332a5d7b2
4
+ data.tar.gz: d9a223d05c6e3140a354cfbcfd5542c41473fad9
5
5
  SHA512:
6
- metadata.gz: 87dddae022cb9c3794abe475554315ae29c6f100539fc9964a023acfdbd7b601c620482f186cd484ee7cd397f2af57dd5f18b564ab54faf162b210683c3166f7
7
- data.tar.gz: 2ee2e5fd0acac9b5e3d546eb6f9e16ac76dad9fac6a3cd2560b2ec51a1ef594b88c13483efbc45c7c02ee6587cd3a6d3a59046931a707bc3aef88bdbd0f404a6
6
+ metadata.gz: 4c90241fe30d1831a9178b97cabcae23c70f0fb7ca6fa9412c6fb8c7579aa19b9a420b8105ef9ac7a59d666e019102e6dc728d97c36f0adb84287ff256a38601
7
+ data.tar.gz: 61c2542190df11158f57ef9cb5166f4cf37c125f51dea042caf281df8d225102a6136bac1ca9613135492265a24e4e0f0a14bcedc2597dc462373a8373026c93
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.2.1
2
+ -----
3
+
4
+ - Fix issue when cache dir not exist.
5
+
1
6
  0.2.0
2
7
  -----
3
8
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RuCaptcha
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
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.0
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-10-30 00:00:00.000000000 Z
11
+ date: 2015-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn