This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rom' | |
gem 'rom-http' | |
end | |
require 'rom' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rom', github: 'rom-rb/rom' do | |
gem 'rom-repository' | |
end | |
gem 'rom-sql', github: 'rom-rb/rom-sql' | |
gem 'sqlite3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
require 'json' | |
require 'uri' | |
require 'net/http' | |
gemfile(true) do | |
gem 'inflecto' | |
gem 'rom', github: 'rom-rb/rom' | |
gem 'rom-support', github: 'rom-rb/rom-support' | |
gem 'rom-http', github: 'rom-rb/rom-http' |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Player: Blue (Linux Unix 4.4.0.42 Mono 4.6.1 (Stable 4.6.1.5/ef43c15 Wed Oct 12 09:10:37 UTC 2016) CLR 4.0.30319.42000) | |
Game ID: 0a05e2cd-8206-4e48-a61a-713710fa0f7c (Mod: Red Alert at Version release-20161015) | |
Sync for net frame 8511 ------------- | |
SharedRandom: 1791148093 (#805374) | |
Synced Traits: | |
1 player Neutral PlayerResources (39000) | |
Cash: 39000 | |
Resources: 0 | |
ResourceCapacity: 0 | |
1 player Neutral FrozenActorLayer (64041) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'uri' | |
require 'net/http' | |
gemfile(true) do | |
gem 'anima' | |
gem 'rom' | |
gem 'rom-http' | |
gem 'rom-repository' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rom', github: 'rom-rb/rom' | |
gem 'rom-sql', github: 'rom-rb/rom-sql' | |
gem 'rom-repository', github: 'rom-rb/rom-repository' | |
gem 'sqlite3' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'dry-validation' | |
User = Struct.new(:name, :email) | |
class UserRepository | |
USERS = [] | |
def create(attributes) | |
USERS << User.new(*attributes.values_at(:name, :email)) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rom', github: 'rom-rb/rom' | |
gem 'rom-sql', github: 'rom-rb/rom-sql' | |
gem 'rom-repository', github: 'rom-rb/rom-repository' | |
gem 'sqlite3' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile(true) do | |
source 'https://rubygems.org' | |
gem 'rom', github: 'rom-rb/rom' | |
gem 'rom-sql', github: 'rom-rb/rom-sql' | |
gem 'rom-repository', github: 'rom-rb/rom-repository' | |
gem 'sqlite3' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'dry-types' | |
class Carrier | |
attr_reader :name | |
def initialize(attributes) | |
@name = attributes.fetch(:name) | |
end | |
end |
NewerOlder