libgss 0.8.1 → 0.8.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8069a9f71bc78010caa4d4670c9ce38b4b33032
4
- data.tar.gz: 2be8025d2349b2f20dee5d8d31b17ff83af700bf
3
+ metadata.gz: 82555ace2305603163a4444d5be9bdd36c538d62
4
+ data.tar.gz: 0e6d24fbc385b0a1fb411728babfd1474ae03300
5
5
  SHA512:
6
- metadata.gz: e7e9bbfd44029bfc36c8a0a5c50573aad1789578f31e861a9a5eed8c8c43124ed5957729b3fd094d6833f545ac64eaaf67edde335b9b28dd2457475a652eef66
7
- data.tar.gz: 6493c0728133a50ea7cffcb50b9a13675085192ec1fa0f866bdd802bef723f4e3bbdf34a6959fc062a6e1e9811471f4936f8b76b4e79709c34efc688f5ff0c7a
6
+ metadata.gz: 12aef0dfd8c4a0033bc874ac8d2d46dcdba94dcacaa8799f0b4a4e3bb8754fda50043c39a10f04bff003dcaa9991b72e228e7feb10c0b55bb0111cfcf480288d
7
+ data.tar.gz: e82fb888326e7463b2fdc17384847afd0ae89d5996cfa98d761b33db3c589bf32510143855bc8580fe760a2b1df07f59bfb0e3d752e9d4feb35f20a42162334e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- libgss (0.8.0)
4
+ libgss (0.8.2)
5
5
  httpclient
6
6
  json
7
7
  oauth
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- coding: utf-8 -*-
3
+ require 'webrick'
4
+ require 'webrick/httpproxy'
5
+ require 'uri'
6
+
7
+ handler = Proc.new do |req, res|
8
+ puts "=" * 100
9
+ puts req.request_uri.to_s
10
+ puts req.path
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) }
15
+ end
16
+ puts "-" * 100
17
+ end
18
+
19
+ s = WEBrick::HTTPProxyServer.new(
20
+ :Port => 5000,
21
+ :Logger => WEBrick::Log::new($stdout, WEBrick::Log::DEBUG),
22
+ :ProxyVia => false,
23
+ :ProxyContentHandler => handler
24
+ )
25
+
26
+ Signal.trap('INT'){ s.shutdown }
27
+ s.start
@@ -1,3 +1,3 @@
1
1
  module Libgss
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
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.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - akima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-27 00:00:00.000000000 Z
11
+ date: 2013-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -168,6 +168,7 @@ description: network library for Groovenauts GSS
168
168
  email:
169
169
  - t-akima@groovenauts.jp
170
170
  executables:
171
+ - cheat_response_proxy
171
172
  - gss-server-time
172
173
  extensions: []
173
174
  extra_rdoc_files: []
@@ -182,6 +183,7 @@ files:
182
183
  - README.md
183
184
  - README_ja.md
184
185
  - Rakefile
186
+ - bin/cheat_response_proxy
185
187
  - bin/gss-server-time
186
188
  - lib/libgss.rb
187
189
  - lib/libgss/action.rb