Skip to content

Instantly share code, notes, and snippets.

View AMHOL's full-sized avatar

Andy Holland AMHOL

  • Manchester, UK
  • 00:33 (UTC)
View GitHub Profile
require 'bundler/inline'
gemfile(true) do
source 'https://rubygems.org'
gem 'rom'
gem 'rom-http'
end
require 'rom'
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'
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.
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)
require 'json'
require 'uri'
require 'net/http'
gemfile(true) do
gem 'anima'
gem 'rom'
gem 'rom-http'
gem 'rom-repository'
end
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
require 'dry-validation'
User = Struct.new(:name, :email)
class UserRepository
USERS = []
def create(attributes)
USERS << User.new(*attributes.values_at(:name, :email))
end
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
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
require 'dry-types'
class Carrier
attr_reader :name
def initialize(attributes)
@name = attributes.fetch(:name)
end
end