libgss 0.8.3 → 0.8.4

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: c505709088c670ad66152242ccf741dc6f496920
4
- data.tar.gz: 8e47f642d28bfe7e46e672e73936ddc6cade5435
3
+ metadata.gz: 285cbb5ffec91a5e1b2af1bbd04ff75ce0e1e2f0
4
+ data.tar.gz: a5c7c601dc9912c03aca809c1883979d3ae5c73c
5
5
  SHA512:
6
- metadata.gz: ce9dd3a2c2db9ec6c2393ea04b80ef53adee5e7c62fde75c632ae526a4fac5db56e2b00c3da363d8c9fdd5094cc87523f85f4c80d373a415a61ff9c38a2ad7b1
7
- data.tar.gz: ccf730d15575450a684561800874519047105d11ecd5bc68b4dd03a8e7ce2826e329654665cbc446d35f6c8e985c98fa2d7c23ce84c995513edad1e66fce0b43
6
+ metadata.gz: a52d307846effba78bea970e8967290d8210316c43d4e556e9818b8204bfd1948683e16b7bdff13f3a30b17adea738be009901604e8850e787e3a17d5c7e123a
7
+ data.tar.gz: 14dae11aaf40f74e4e47f7452bf7169a1b825bfaa75393b6d9fe469380b23546d71c76c61bbe37de15f95058fe692fe93cc87d8c61bd4ad50d593717af18361e
@@ -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 == "/api/1.0.0/actions.json"
13
- # server_timeの戻り値を10日先に書き換えている
14
- res.body.gsub!(/\"result\":\s*(\d+)/){ "\"result\":%d" % ($1.to_i + 10 * 24 * 60 * 60) }
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
@@ -1,3 +1,3 @@
1
1
  module Libgss
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  end
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.3
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-01 00:00:00.000000000 Z
11
+ date: 2013-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler