weichat_rails 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/weichat_rails/version.rb +1 -1
- data/lib/weichat_rails.rb +4 -5
- data/weichat_rails.gemspec +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d83662990f42da7759048baf54b95a07409763fbc4b6557c6d35db956bbd22e9
|
4
|
+
data.tar.gz: 218de24cfb2775865799bbc348c90577d2721bf8124ec23a41ce8dcac9ef8bdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5d6959c8c4e53994d678fb9f70eb6fc13ef8e1ddfbdbcbbc4174d29150a6a23334f9cc2399dfa7daf690551e3bb463386639f537cff8f2a82f5fd58fc89c156
|
7
|
+
data.tar.gz: 70c4d2e1c5bb551f8fbb2b8b20085d5d36ecc8eae03ec094a07728b7231c4c2b166f1b901d17d8696fbc6665ae67334045f98edb7afb3789796cc296aefff844
|
data/lib/weichat_rails.rb
CHANGED
@@ -42,12 +42,11 @@ module WeichatRails
|
|
42
42
|
|
43
43
|
#if use rails with dalli,you can set config.cache = Rails.cache
|
44
44
|
self.config.cache ||= if defined?(::Rails)
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
Rails.cache
|
46
|
+
else
|
47
|
+
Dalli::Client.new('localhost:11211',namespace: config.cache_namespace,conpress: true)
|
48
|
+
end
|
49
49
|
end
|
50
|
-
|
51
50
|
if defined? ActionController::Base
|
52
51
|
class ActionController::Base
|
53
52
|
def self.wechat_responder opts={}
|
data/weichat_rails.gemspec
CHANGED
@@ -27,6 +27,5 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler", '~> 2.2', '>= 2.2.3'
|
29
29
|
spec.add_development_dependency "rake" , '~> 13.0', '>= 13.0.6'
|
30
|
-
#spec.add_development_dependency "rails", "> 3.2"
|
31
30
|
spec.add_development_dependency 'rspec', '~> 3.10', '>= 3.10.0'
|
32
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weichat_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- javy_liu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|