Sha256: ef9573b57ef0134d2c304136edbacfa441dbb60cd130cdd84fedd3338aff2025

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'libgss'
require 'tengine/support/yaml_with_erb'

# see https://github.com/tengine/fontana/pull/3
require 'httpclient'
def request_fixture_load(fixture_name)
  c = HTTPClient.new
  c.post("http://localhost:4000/libgss_test/fixture_loadings/#{fixture_name}.json", "_method" => "put")
end


def new_network(url = "http://localhost:4000", player_id = "1000001")
  config = YAML.load_file(File.expand_path("../../fontana_sample/config/app_garden.yml", __FILE__))
  opts = {
    device_type_cd: 1,
    client_version: "2013073101",
    consumer_secret: config["consumer_secret"],
    player_id: player_id,
    # ssl_disabled: true,
  }
  Libgss::Network.new(url, opts)
end

def new_network_with_options(opts={}, url = "http://localhost:4000", player_id = "1000001")
  config = YAML.load_file(File.expand_path("../../fontana_sample/config/app_garden.yml", __FILE__))
  opts = {
    device_type_cd: 1,
    client_version: "2013073101",
    consumer_secret: config["consumer_secret"],
    player_id: player_id,
    # ssl_disabled: true,
  }.update(opts)
  Libgss::Network.new(url, opts)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
libgss-0.7.5 spec/spec_helper.rb
libgss-0.7.4 spec/spec_helper.rb
libgss-0.7.3 spec/spec_helper.rb