rubypitaya 2.4.4 → 2.6.2

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
  SHA256:
3
- metadata.gz: cb195bab202604c6eccf3bf77c6a61a63accd532c0cb2a5717b65f88d5a2f820
4
- data.tar.gz: 61f32399ad655d8896ce4e88d4143dfe5bcf3b11272fa61729226503bd670881
3
+ metadata.gz: c672f796a231d14e126b7b42d980075f76ebfb7d83852dd96c5688fac04985b8
4
+ data.tar.gz: e2ec6f586610ceb65133db1bcd95af57a564d7383b970d4663bb4e1795e63560
5
5
  SHA512:
6
- metadata.gz: be967053676552234531e322b6bd5e1202e3d2c8425c83f7476bc03371797193f23c644ff8d883eae5c380da208b96003b23d5fdc7bccb4edadd85659917cd3c
7
- data.tar.gz: 308c1ba083efd8c8c576c5f597ccd13cc195cb77960166eeadf3aeff2a3e3ef314b84135483327e4c737a168fe026f0fedd176411b74cb3d9e4c2a2e62b92a36
6
+ metadata.gz: af40b96540235382accc8d85c00058f15f2c2a65106fe02777ffbcca2836f818f010775c31b578ffb51f09714d4626e8317d2c1531da0efa1598233d60bc33ff
7
+ data.tar.gz: 7eaa5717f33fcbe317683d95bca06cede05512974dca832372f0b14124fbef365ba15afc1c34cfaa666ded32b855891850c91fa2c4487c391591c40cadb39aa2
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem 'rubypitaya', '2.4.4'
3
+ gem 'rubypitaya', '2.6.2'
4
4
 
5
5
  group :development do
6
6
  gem 'pry', '0.12.2'
@@ -12,14 +12,14 @@ GEM
12
12
  minitest (~> 5.1)
13
13
  tzinfo (~> 1.1)
14
14
  zeitwerk (~> 2.2)
15
- coderay (1.1.2)
15
+ coderay (1.1.3)
16
16
  concurrent-ruby (1.1.7)
17
- diff-lcs (1.3)
17
+ diff-lcs (1.4.4)
18
18
  etcdv3 (0.10.2)
19
19
  grpc (~> 1.17)
20
20
  eventmachine (1.2.7)
21
- ffi (1.12.2)
22
- google-protobuf (3.13.0)
21
+ ffi (1.13.1)
22
+ google-protobuf (3.14.0)
23
23
  googleapis-common-protos-types (1.0.5)
24
24
  google-protobuf (~> 3.11)
25
25
  grpc (1.32.0)
@@ -33,6 +33,9 @@ GEM
33
33
  method_source (0.9.2)
34
34
  middleware (0.1.0)
35
35
  minitest (5.14.2)
36
+ multi_json (1.15.0)
37
+ mustermann (1.1.1)
38
+ ruby2_keywords (~> 0.0.1)
36
39
  nats (0.11.0)
37
40
  eventmachine (~> 1.2, >= 1.2)
38
41
  pg (0.21.0)
@@ -44,8 +47,11 @@ GEM
44
47
  pry (0.12.2)
45
48
  coderay (~> 1.1.0)
46
49
  method_source (~> 0.9.0)
50
+ rack (2.2.3)
51
+ rack-protection (2.1.0)
52
+ rack
47
53
  rake (10.0.0)
48
- rb-fsevent (0.10.3)
54
+ rb-fsevent (0.10.4)
49
55
  rb-inotify (0.10.1)
50
56
  ffi (~> 1.0)
51
57
  redis (4.1.3)
@@ -62,7 +68,8 @@ GEM
62
68
  diff-lcs (>= 1.2.0, < 2.0)
63
69
  rspec-support (~> 3.8.0)
64
70
  rspec-support (3.8.3)
65
- rubypitaya (2.4.4)
71
+ ruby2_keywords (0.0.2)
72
+ rubypitaya (2.6.2)
66
73
  activerecord (= 6.0.2)
67
74
  etcdv3 (= 0.10.2)
68
75
  eventmachine (= 1.2.7)
@@ -71,11 +78,25 @@ GEM
71
78
  protobuf (= 3.10.0)
72
79
  rake (= 10.0)
73
80
  redis (= 4.1.3)
81
+ sinatra (= 2.1.0)
82
+ sinatra-contrib (= 2.1.0)
83
+ sinatra (2.1.0)
84
+ mustermann (~> 1.0)
85
+ rack (~> 2.2)
86
+ rack-protection (= 2.1.0)
87
+ tilt (~> 2.0)
88
+ sinatra-contrib (2.1.0)
89
+ multi_json
90
+ mustermann (~> 1.0)
91
+ rack-protection (= 2.1.0)
92
+ sinatra (= 2.1.0)
93
+ tilt (~> 2.0)
74
94
  thor (1.0.1)
75
95
  thread_safe (0.3.6)
96
+ tilt (2.0.10)
76
97
  tzinfo (1.2.8)
77
98
  thread_safe (~> 0.1)
78
- zeitwerk (2.4.1)
99
+ zeitwerk (2.4.2)
79
100
 
80
101
  PLATFORMS
81
102
  ruby
@@ -85,7 +106,7 @@ DEPENDENCIES
85
106
  listen (= 3.2.1)
86
107
  pry (= 0.12.2)
87
108
  rspec (= 3.8.0)
88
- rubypitaya (= 2.4.4)
109
+ rubypitaya (= 2.6.2)
89
110
 
90
111
  BUNDLED WITH
91
112
  1.17.2
@@ -16,7 +16,7 @@ test:
16
16
 
17
17
  ## Run ruby irb console
18
18
  console:
19
- @docker-compose run --service-ports --rm rubypitaya bundle exec ruby ./bin/console
19
+ @docker-compose run --service-ports --rm rubypitaya-console bundle exec ruby ./bin/console
20
20
 
21
21
  ## Run bash on container
22
22
  bash:
@@ -19,6 +19,12 @@ class AppInitializer < RubyPitaya::InitializerBase
19
19
  # - methods:
20
20
  # - [](key)
21
21
  # - get config file by config path
22
+ # - setup
23
+ # - class: RubyPitaya::Setup
24
+ # - link: https://gitlab.com/LucianoPC/ruby-pitaya/-/blob/master/lib/rubypitaya/core/setup.rb
25
+ # - methods:
26
+ # - [](key)
27
+ # - get config file by config path
22
28
 
23
29
  def run(initializer_content)
24
30
  bll = initializer_content.bll
@@ -1,9 +1,10 @@
1
1
  class PlayerBLL
2
2
 
3
- def create_new_player(config)
3
+ def create_new_player(setup, config)
4
4
  name = config['initial_player']['name']
5
+ gold = setup['initial_player.wallet.gold']
5
6
 
6
- player = Player.new(name: name, user: User.new)
7
+ player = Player.new(name: name, gold: gold, user: User.new)
7
8
  player.save
8
9
  player
9
10
  end
@@ -12,8 +12,8 @@ class StatusCodes
12
12
  #
13
13
  ## Error codes
14
14
  # RubyPitaya::StatusCodes::CODE_UNKNOWN = 'RP-000'
15
- # RubyPitaya::StatusCodes::CODE_HANDLER_NOT_FOUNDED = 'RP-001'
16
- # RubyPitaya::StatusCodes::CODE_ACTION_NOT_FOUNDED = 'RP-002'
15
+ # RubyPitaya::StatusCodes::CODE_HANDLER_NOT_FOUND = 'RP-001'
16
+ # RubyPitaya::StatusCodes::CODE_ACTION_NOT_FOUND = 'RP-002'
17
17
  # RubyPitaya::StatusCodes::CODE_NOT_AUTHENTICATED = 'RP-003'
18
18
  # RubyPitaya::StatusCodes::CODE_AUTHENTICATION_ERROR = 'RP-004'
19
19
  #
@@ -47,7 +47,7 @@ class PlayerHandler < RubyPitaya::HandlerBase
47
47
  user_id = @params[:userId]
48
48
 
49
49
  player = Player.find_by_user_id(user_id)
50
- player = @bll[:player].create_new_player(@config) if player.nil?
50
+ player = @bll[:player].create_new_player(@setup, @config) if player.nil?
51
51
 
52
52
  @session.uid = player.user_id
53
53
 
@@ -55,14 +55,14 @@ class PlayerHandler < RubyPitaya::HandlerBase
55
55
 
56
56
  unless bind_session_response.dig(:error, :code).nil?
57
57
  return response = {
58
- code: StatusCodes::CODE_AUTHENTICATION_ERROR,
58
+ code: RubyPitaya::StatusCodes::CODE_AUTHENTICATION_ERROR,
59
59
  msg: 'Error to authenticate',
60
60
  }
61
61
  end
62
62
 
63
63
  response = {
64
64
  code: StatusCodes::CODE_OK,
65
- player: player.to_hash,
65
+ data: player.to_hash,
66
66
  }
67
67
  end
68
68
 
@@ -73,7 +73,7 @@ class PlayerHandler < RubyPitaya::HandlerBase
73
73
 
74
74
  response = {
75
75
  code: StatusCodes::CODE_OK,
76
- player: player.to_hash,
76
+ data: player.to_hash,
77
77
  }
78
78
  end
79
79
  end
@@ -0,0 +1,27 @@
1
+ require 'rubypitaya/core/http_routes'
2
+
3
+ RubyPitaya::HttpRoutes.class_eval do
4
+
5
+ get '/hello-world/html' do
6
+ content_type 'text/html'
7
+
8
+ @message = "Hello World"
9
+
10
+ erb :hello_world
11
+ end
12
+
13
+ get '/hello-world/json' do
14
+ response = {
15
+ message: 'Hello World!'
16
+ }.to_json
17
+ end
18
+
19
+ private
20
+
21
+ def response_error(message)
22
+ response = {
23
+ code: StatusCodes::CODE_ERROR,
24
+ message: message,
25
+ }.to_json
26
+ end
27
+ end
@@ -0,0 +1 @@
1
+ <h3><%= @message %></h3>
@@ -4,11 +4,12 @@ class Player < ActiveRecord::Base
4
4
 
5
5
  belongs_to :user
6
6
 
7
- validates_presence_of :name, :user
7
+ validates_presence_of :name, :gold, :user
8
8
 
9
9
  def to_hash
10
10
  {
11
11
  name: name,
12
+ gold: gold,
12
13
  userId: user_id,
13
14
  }
14
15
  end
@@ -8,7 +8,7 @@ default: &default
8
8
 
9
9
  development:
10
10
  <<: *default
11
- database: <%= "#{ENV['DATABASE_NAME']}_development" %>
11
+ database: <%= "#{ENV['DATABASE_NAME']}" %>
12
12
 
13
13
  test:
14
14
  <<: *default
@@ -16,7 +16,5 @@ test:
16
16
 
17
17
  production:
18
18
  <<: *default
19
- database: <%= "#{ENV['DATABASE_NAME']}_production" %>
20
- # username: rails_project
21
- # password: <%= ENV['RAILS_PROJECT_DATABASE_PASSWORD'] %>
19
+ database: <%= "#{ENV['DATABASE_NAME']}" %>
22
20
 
@@ -8,6 +8,7 @@ class CreatePlayerMigration < ActiveRecord::Migration[5.1]
8
8
  create_table :players, id: :uuid do |t|
9
9
  t.belongs_to :user, type: :uuid
10
10
  t.string :name, null: false
11
+ t.integer :gold, null: false
11
12
  t.timestamps null: false
12
13
  end
13
14
  end
@@ -43,7 +43,7 @@ services:
43
43
  PITAYA_CLUSTER_SD_ETCD_PREFIX: 'rubypitaya/'
44
44
  SERVER_ROUTES: 'rubypitaya'
45
45
 
46
- rubypitaya:
46
+ rubypitaya: &rubypitaya
47
47
  depends_on:
48
48
  - 'db'
49
49
  - 'nats'
@@ -56,6 +56,8 @@ services:
56
56
  working_dir: '/app/rubypitaya'
57
57
  volumes:
58
58
  - '.:/app/rubypitaya'
59
+ ports:
60
+ - '80:4567'
59
61
  environment:
60
62
  SERVER_NAME: 'rubypitaya'
61
63
  RUBYPITAYA_ENV: 'development'
@@ -70,5 +72,9 @@ services:
70
72
  DATABASE_PASSWORD: 'postgres'
71
73
  DATABASE_NAME: 'ruby_pitaya'
72
74
 
75
+ rubypitaya-console:
76
+ <<: *rubypitaya
77
+ ports: []
78
+
73
79
  volumes:
74
80
  postgres:
@@ -4,11 +4,12 @@ module RubyPitaya
4
4
 
5
5
  class_attribute :non_authenticated_routes, default: []
6
6
 
7
- attr_accessor :bll, :redis, :config, :params, :session, :postman
7
+ attr_accessor :bll, :redis, :setup, :config, :params, :session, :postman
8
8
 
9
9
  def initialize
10
10
  @bll = nil
11
11
  @redis = nil
12
+ @setup = nil
12
13
  @config = nil
13
14
  @params = nil
14
15
  @session = nil
@@ -52,18 +52,18 @@ module RubyPitaya
52
52
  @handler_name_map = @handler_name_map.to_h
53
53
  end
54
54
 
55
- def call(handler_name, action_name, session, postman, redis, config, bll,
56
- params)
55
+ def call(handler_name, action_name, session, postman, redis, setup, config,
56
+ bll, params)
57
57
  unless @handler_name_map.include?(handler_name)
58
58
  return {
59
- code: StatusCodes::CODE_HANDLER_NOT_FOUNDED,
59
+ code: StatusCodes::CODE_HANDLER_NOT_FOUND,
60
60
  msg: "Handler #{handler_name} not founded"
61
61
  }
62
62
  end
63
63
 
64
64
  unless @handler_name_map[handler_name].methods.include?(action_name.to_sym)
65
65
  return {
66
- code: StatusCodes::CODE_ACTION_NOT_FOUNDED,
66
+ code: StatusCodes::CODE_ACTION_NOT_FOUND,
67
67
  msg: "Handler #{handler_name} action #{action_name} not founded"
68
68
  }
69
69
  end
@@ -72,6 +72,7 @@ module RubyPitaya
72
72
 
73
73
  handler.bll = bll
74
74
  handler.redis = redis
75
+ handler.setup = setup
75
76
  handler.config = config
76
77
  handler.params = params
77
78
  handler.session = session
@@ -0,0 +1,26 @@
1
+ require 'sinatra/base'
2
+ require 'sinatra/reloader' if ENV['RUBYPITAYA_ENV'] == 'development'
3
+ require 'rubypitaya/core/parameters'
4
+
5
+ module RubyPitaya
6
+
7
+ class HttpRoutes < Sinatra::Base
8
+
9
+ if ENV['RUBYPITAYA_ENV'] == 'development'
10
+ register Sinatra::Reloader
11
+ end
12
+
13
+ before do
14
+ content_type :json
15
+
16
+ @bll = settings.bll
17
+ @setup = settings.setup
18
+ @config = settings.config
19
+
20
+ request_body = request.body.read
21
+ @params.merge!(JSON.parse(request_body)) if !request_body.blank?
22
+
23
+ @params = Parameters.new(@params)
24
+ end
25
+ end
26
+ end
@@ -4,9 +4,10 @@ module RubyPitaya
4
4
 
5
5
  attr_reader :bll, :redis, :config
6
6
 
7
- def initialize(bll, redis, config)
7
+ def initialize(bll, redis, setup, config)
8
8
  @bll = bll
9
9
  @redis = redis
10
+ @setup = setup
10
11
  @config = config
11
12
  end
12
13
  end
@@ -3,6 +3,7 @@ require 'securerandom'
3
3
  require 'active_model'
4
4
 
5
5
  require 'rubypitaya/core/path'
6
+ require 'rubypitaya/core/setup'
6
7
  require 'rubypitaya/core/config'
7
8
  require 'rubypitaya/core/session'
8
9
  require 'rubypitaya/core/postman'
@@ -64,22 +65,39 @@ module RubyPitaya
64
65
  @postman = Postman.new(@nats_connector)
65
66
  @config = Config.new
66
67
  @config.auto_reload if @is_development_environment
68
+ @setup = Setup.new
69
+ @setup.auto_reload if @is_development_environment
67
70
 
68
71
  @bll = InstanceHolder.new
69
72
 
70
73
  @initializer_content = InitializerContent.new(@bll,
71
74
  @redis_connector.redis,
75
+ @setup,
72
76
  @config)
73
77
  @initializer_broadcast = InitializerBroadcast.new
74
78
  @initializer_broadcast.run(@initializer_content)
75
79
 
76
80
  @handler_router = HandlerRouter.new()
77
81
 
82
+ run_http
78
83
  run_server
79
84
  end
80
85
 
81
86
  private
82
87
 
88
+ def run_http
89
+ HttpRoutes.set :bll, @bll
90
+ HttpRoutes.set :setup, @setup
91
+ HttpRoutes.set :config, @config
92
+ HttpRoutes.set :views, [Path::HTTP_VIEWS_PATH] + Path::Plugins::APP_CONFIG_FOLDER_PATHS;
93
+
94
+ Thread.new do
95
+ HttpRoutes.bind = '0.0.0.0'
96
+ HttpRoutes.port = '4567'
97
+ HttpRoutes.run!
98
+ end
99
+ end
100
+
83
101
  def run_server
84
102
  @is_shutting_down = false
85
103
 
@@ -139,7 +157,7 @@ module RubyPitaya
139
157
 
140
158
  response = @handler_router.call(handler_name, action_name, @session,
141
159
  @postman, @redis_connector.redis,
142
- @config, @bll, params)
160
+ @setup, @config, @bll, params)
143
161
 
144
162
  delta_time_seconds = Time.now.to_i - start_time_seconds
145
163
 
@@ -8,10 +8,13 @@ module RubyPitaya
8
8
  APP_FOLDER_PATH = File.join(Dir.pwd, 'app/')
9
9
  HANDLERS_FOLDER_PATH = File.join(Dir.pwd, 'app/handlers/')
10
10
  APP_CONFIG_FOLDER_PATH = File.join(Dir.pwd, 'app/config/')
11
+ APP_SETUP_FOLDER_PATH = File.join(Dir.pwd, 'app/setup/')
11
12
  MIGRATIONS_FOLDER_PATH = File.join(Dir.pwd, 'db/migration/')
12
13
 
13
14
  ROUTES_FILE_PATH = File.join(Dir.pwd, 'config/routes.rb')
14
15
 
16
+ HTTP_VIEWS_PATH = File.join(Dir.pwd, 'app/http/views')
17
+
15
18
  class Core
16
19
  APP_FOLDER_PATH = File.join(__dir__, 'app/')
17
20
  MIGRATIONS_FOLDER_PATH = File.join(__dir__, 'db/migration/')
@@ -21,7 +24,9 @@ module RubyPitaya
21
24
  APP_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/'))
22
25
  HANDLERS_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/handlers'))
23
26
  APP_CONFIG_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/config/'))
27
+ APP_SETUP_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/setup/'))
24
28
  MIGRATIONS_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/db/migration'))
29
+ HTTP_VIEWS_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/http/views'))
25
30
  end
26
31
  end
27
32
  end
@@ -0,0 +1,96 @@
1
+ module RubyPitaya
2
+
3
+ class Setup
4
+
5
+ def initialize()
6
+ @config = {}
7
+ configs_folder_paths = Path::Plugins::APP_SETUP_FOLDER_PATHS + [Path::APP_SETUP_FOLDER_PATH]
8
+
9
+ configs_folder_paths.each do |configs_folder_path|
10
+ path_to_all_files = File.join(configs_folder_path, '**/*.yml')
11
+ config_files = Dir.glob(path_to_all_files)
12
+
13
+ config_files.each do |config_file|
14
+ load_config_file(configs_folder_path, config_file)
15
+ end
16
+ end
17
+ end
18
+
19
+ def [](key)
20
+ result = get_config_from_env_var(key)
21
+ return result unless result.nil?
22
+
23
+ split_key = key.split('.')
24
+ @config.dig(*split_key)
25
+ end
26
+
27
+ def get_config_from_env_var(key)
28
+ env_key = key.gsub('.', '_').upcase
29
+ ENV.fetch(env_key) { nil }
30
+ end
31
+
32
+ def auto_reload
33
+ require 'listen'
34
+
35
+ configs_folder_path = Path::APP_CONFIG_FOLDER_PATH
36
+
37
+ config_files_listener = Listen.to(configs_folder_path,
38
+ only: /\.yml$/,
39
+ force_polling: true,
40
+ latency: 0.25,
41
+ wait_for_delay: 0.1) do |modified, added, removed|
42
+ import_added_files(configs_folder_path, added)
43
+ reload_modified_files(configs_folder_path, modified)
44
+ end
45
+
46
+ config_files_listener.start
47
+ end
48
+
49
+ private
50
+
51
+ def load_config_file(configs_folder_path, file_path)
52
+ config_text = File.open(file_path, &:read)
53
+ config_hash = YAML.load(ERB.new(config_text).result)
54
+
55
+ path_array = file_path.sub(/^#{configs_folder_path}/, '')[0..-5]
56
+ .split('/')
57
+
58
+ set_config_value(path_array, config_hash)
59
+
60
+ rescue Exception => error
61
+ puts "ERROR: #{error}"
62
+ puts error.backtrace
63
+ end
64
+
65
+ def import_added_files(configs_folder_path, files_path)
66
+ files_path.each do |path|
67
+ load_config_file(configs_folder_path, path)
68
+
69
+ puts "ADDED config: #{path}"
70
+ end
71
+ end
72
+
73
+ def reload_modified_files(configs_folder_path, files_path)
74
+ files_path.each do |path|
75
+ load_config_file(configs_folder_path, path)
76
+
77
+ puts "MODIFIED @config: #{path}"
78
+ end
79
+ end
80
+
81
+ def set_config_value(keys, value)
82
+ config = @config
83
+
84
+ keys.each_with_index do |key, index|
85
+ is_last_index = index == keys.size - 1
86
+
87
+ if is_last_index
88
+ config[key] = value
89
+ else
90
+ config[key] = {} unless config.key?(key)
91
+ config = config[key]
92
+ end
93
+ end
94
+ end
95
+ end
96
+ end
@@ -6,8 +6,8 @@ module RubyPitaya
6
6
 
7
7
  # Error codes
8
8
  CODE_UNKNOWN = 'RP-000'
9
- CODE_HANDLER_NOT_FOUNDED = 'RP-001'
10
- CODE_ACTION_NOT_FOUNDED = 'RP-002'
9
+ CODE_HANDLER_NOT_FOUND = 'RP-001'
10
+ CODE_ACTION_NOT_FOUND = 'RP-002'
11
11
  CODE_NOT_AUTHENTICATED = 'RP-003'
12
12
  CODE_AUTHENTICATION_ERROR = 'RP-004'
13
13
 
@@ -1,3 +1,3 @@
1
1
  module RubyPitaya
2
- VERSION = '2.4.4'
2
+ VERSION = '2.6.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubypitaya
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luciano Prestes Cavalcanti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-25 00:00:00.000000000 Z
11
+ date: 2020-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.10.2
83
+ - !ruby/object:Gem::Dependency
84
+ name: sinatra
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '='
88
+ - !ruby/object:Gem::Version
89
+ version: 2.1.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '='
95
+ - !ruby/object:Gem::Version
96
+ version: 2.1.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: sinatra-contrib
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '='
102
+ - !ruby/object:Gem::Version
103
+ version: 2.1.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '='
109
+ - !ruby/object:Gem::Version
110
+ version: 2.1.0
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: protobuf
85
113
  requirement: !ruby/object:Gem::Requirement
@@ -199,8 +227,11 @@ files:
199
227
  - "./lib/rubypitaya/app-template/app/constants/status_codes.rb"
200
228
  - "./lib/rubypitaya/app-template/app/handlers/hello_world_handler.rb"
201
229
  - "./lib/rubypitaya/app-template/app/handlers/player_handler.rb"
230
+ - "./lib/rubypitaya/app-template/app/http/hello_world_http.rb"
231
+ - "./lib/rubypitaya/app-template/app/http/views/hello_world.erb"
202
232
  - "./lib/rubypitaya/app-template/app/models/player.rb"
203
233
  - "./lib/rubypitaya/app-template/app/models/user.rb"
234
+ - "./lib/rubypitaya/app-template/app/setup/initial_player.yml"
204
235
  - "./lib/rubypitaya/app-template/bin/console"
205
236
  - "./lib/rubypitaya/app-template/config/database.yml"
206
237
  - "./lib/rubypitaya/app-template/config/routes.rb"
@@ -234,6 +265,7 @@ files:
234
265
  - "./lib/rubypitaya/core/etcd_connector.rb"
235
266
  - "./lib/rubypitaya/core/handler_base.rb"
236
267
  - "./lib/rubypitaya/core/handler_router.rb"
268
+ - "./lib/rubypitaya/core/http_routes.rb"
237
269
  - "./lib/rubypitaya/core/initializer_base.rb"
238
270
  - "./lib/rubypitaya/core/initializer_broadcast.rb"
239
271
  - "./lib/rubypitaya/core/initializer_content.rb"
@@ -246,6 +278,7 @@ files:
246
278
  - "./lib/rubypitaya/core/redis_connector.rb"
247
279
  - "./lib/rubypitaya/core/routes_base.rb"
248
280
  - "./lib/rubypitaya/core/session.rb"
281
+ - "./lib/rubypitaya/core/setup.rb"
249
282
  - "./lib/rubypitaya/core/status_codes.rb"
250
283
  - "./lib/rubypitaya/version.rb"
251
284
  - bin/rubypitaya