libgss 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/cheat_response_proxy +5 -3
- data/lib/libgss/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: 285cbb5ffec91a5e1b2af1bbd04ff75ce0e1e2f0
|
|
4
|
+
data.tar.gz: a5c7c601dc9912c03aca809c1883979d3ae5c73c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a52d307846effba78bea970e8967290d8210316c43d4e556e9818b8204bfd1948683e16b7bdff13f3a30b17adea738be009901604e8850e787e3a17d5c7e123a
|
|
7
|
+
data.tar.gz: 14dae11aaf40f74e4e47f7452bf7169a1b825bfaa75393b6d9fe469380b23546d71c76c61bbe37de15f95058fe692fe93cc87d8c61bd4ad50d593717af18361e
|
data/bin/cheat_response_proxy
CHANGED
|
@@ -9,9 +9,11 @@ handler = Proc.new do |req, res|
|
|
|
9
9
|
puts req.request_uri.to_s
|
|
10
10
|
puts req.path
|
|
11
11
|
puts res.body.to_s
|
|
12
|
-
if req.path
|
|
13
|
-
# server_timeの戻り値を10
|
|
14
|
-
|
|
12
|
+
if req.path =~ %r{/api/\d+.\d+.\d+/actions.json}
|
|
13
|
+
# server_timeの戻り値を10日先に書き換えています
|
|
14
|
+
body = res.body
|
|
15
|
+
body.gsub!(/\\\"result\\\":\s*(\d+)/){ "\\\"result\\\":%d" % ($1.to_i + 10 * 24 * 60 * 60) }
|
|
16
|
+
body.gsub!(/\"result\":\s*(\d+)/){ "\"result\":%d" % ($1.to_i + 10 * 24 * 60 * 60) }
|
|
15
17
|
end
|
|
16
18
|
puts "-" * 100
|
|
17
19
|
end
|
data/lib/libgss/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libgss
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- akima
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-10-
|
|
11
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|