repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
ambethia/LuckyPrincessNitro | lib/game_helpers.rb | <filename>lib/game_helpers.rb
module GameHelpers
def load_asset(filename)
Gdx.files.internal(RELATIVE_ROOT + "assets/#{filename}")
end
def lerp(a, b, m = 0.5)
(a * (1 - m) + b * m)
end
def weighted_average(v, w, n = 40)
((v * (n - 1)) + w) / n;
end
end
|
ambethia/LuckyPrincessNitro | lib/components/ranged_cull_component.rb | class RangedCullComponent < EntitySystem::Component
provides :range
end
|
ambethia/LuckyPrincessNitro | test/test_helper.rb | <filename>test/test_helper.rb<gh_stars>1-10
TEST_DIR = File.dirname(__FILE__)
LIB_DIR = File.join(TEST_DIR, '..', 'lib')
$LOAD_PATH.unshift(TEST_DIR) unless $LOAD_PATH.include?(TEST_DIR)
$LOAD_PATH.unshift(LIB_DIR) unless $LOAD_PATH.include?(LIB_DIR)
require 'test/unit'
|
ambethia/LuckyPrincessNitro | lib/screens/victory_screen.rb | class VictoryScreen < BaseScreen
def setup
@systems = %w[
Input
Victory
]
end
end
|
ambethia/LuckyPrincessNitro | lib/screens/game_over_screen.rb | class GameOverScreen < BaseScreen
def setup
@systems = %w[
Input
GameOver
]
end
end
|
ambethia/LuckyPrincessNitro | lib/systems/victory_system.rb | class VictorySystem < EntitySystem::System
def setup
@image = Texture.new(Gdx.files.internal(RELATIVE_ROOT + "assets/victory.png"))
end
def render(delta)
if $game.screen.is_a? VictoryScreen
$game.screen.batch.draw(@image, 0, 0)
end
end
end
|
ambethia/LuckyPrincessNitro | config/warble.rb | # Disable Rake-environment-task framework detection by uncommenting/setting to false
# Warbler.framework_detection = false
# Warbler web application assembly configuration file
Warbler::Config.new do |config|
config.features = %w(compiled)
config.dirs = %w(bin lib vendor)
config.includes = FileList["assets/*"] -... |
ambethia/LuckyPrincessNitro | lib/systems/animation_system.rb | class AnimationSystem < EntitySystem::System
def update(delta)
@elapsed ||= 0
each(AnimatedComponent) do |entity, component|
render = manager.component(RenderableComponent, entity)
render.image = component.animation.get_key_frame(@elapsed, component.is_looped)
end
@elapsed += delta
end... |
ambethia/LuckyPrincessNitro | lib/components/enemy_component.rb | class EnemyComponent < EntitySystem::Component
provides :type, :data
end
|
ambethia/LuckyPrincessNitro | lib/components/item_component.rb | class ItemComponent < EntitySystem::Component
provides :type
end
|
ambethia/LuckyPrincessNitro | lib/components/collision_component.rb | class CollisionComponent < EntitySystem::Component
provides :owner, :radius
end
|
ambethia/LuckyPrincessNitro | lib/systems/splash_system.rb | class SplashSystem < EntitySystem::System
def setup
@image = Texture.new(Gdx.files.internal(RELATIVE_ROOT + "assets/splash.png"))
end
def render(delta)
# For reason I don't want to figure out, this seems to get called
# still when were transitioning out of the splash screen and we get
# a "Sprit... |
ambethia/LuckyPrincessNitro | lib/components/motion_component.rb | class MotionComponent < EntitySystem::Component
end
|
ambethia/LuckyPrincessNitro | lib/systems/particle_system.rb | class ParticleSystem < EntitySystem::System
def setup
@effects = {}
[:explosion, :bullet_destruct, :shield_damage].each do |type|
@effects[type] = ParticleEffect.new
@effects[type].load_emitters(load_asset("#{type}.particle"))
@effects[type].load_emitter_images($game.screen.atlas)
end
... |
ambethia/LuckyPrincessNitro | lib/components/camera_component.rb | class CameraComponent < EntitySystem::Component
provides :object
end
|
ambethia/LuckyPrincessNitro | lib/components/rotated_component.rb | class RotatedComponent < EntitySystem::Component
provides :mapping, :is_animated
end
|
ambethia/LuckyPrincessNitro | lib/systems/spawn_system.rb | <filename>lib/systems/spawn_system.rb
class SpawnSystem < EntitySystem::System
SPAWN_TIME = 1
MAX_ENEMIES = 5
GEM_AREA = 4096
NUM_GEMS = 12
def update(delta)
@elapsed ||= 0
@elapsed += delta
@active_enemy_count = manager.all(:enemy).size
if @active_enemy_count < MAX_ENEMIES
if @elapse... |
ambethia/LuckyPrincessNitro | lib/screens/game_screen.rb | <gh_stars>1-10
class GameScreen < BaseScreen
def setup
@systems = %w[
Input
Player
Enemy
Camera
Music
RangedCull
Collision
Spawn
Motion
Rotation
Animation
Background
Render
Particle
]
end
def debug_text
player_id = @... |
ambethia/LuckyPrincessNitro | lib/entity_system/manager.rb | <reponame>ambethia/LuckyPrincessNitro
require 'securerandom'
class EntitySystem::Manager
UNTAGGED = ''
attr_reader :factory
def initialize
@entities = []
@factory = EntitySystem::Factory.new(self)
@ids_to_tags = Hash.new
@tags_to_ids = Hash.new
@components = Hash.new
end
def create(tag... |
ambethia/LuckyPrincessNitro | lib/components/renderable_component.rb | class RenderableComponent < EntitySystem::Component
provides :image
end
|
ambethia/LuckyPrincessNitro | lib/systems/render_system.rb | class RenderSystem < EntitySystem::System
def render(delta)
each(RenderableComponent) do |entity, component|
image = component.image
spatial = manager.component(SpatialComponent, entity)
x = spatial.px - image.width/2
y = spatial.py - image.height/2
sprite_batch.draw(image, x, y)
... |
ambethia/LuckyPrincessNitro | lib/factories/enemy_factory.rb | <filename>lib/factories/enemy_factory.rb
class EnemyFactory < EntitySystem::Factory::Base
build :enemy
using :type
def construct
entity = manager.create(:enemy)
camera = manager.component(SpatialComponent, manager.find(:camera))
entry_angle = rand(360)
manager.attach(entity, EnemyComponent.new({
... |
ambethia/LuckyPrincessNitro | lib/lucky_princess_nitro.rb | <filename>lib/lucky_princess_nitro.rb
require 'game_helpers'
require 'entity_system'
%w[screens components factories systems].each do |dir|
Dir[ROOT_DIR + "/lib/#{dir}/*.rb"].each do |file|
require File.basename(file)
end
end
class LuckyPrincessNitro < Game
VIRTUAL_WIDTH = 320
VIRTUAL_HEIGHT = 200
DEFAU... |
ambethia/LuckyPrincessNitro | lib/systems/collision_system.rb | <reponame>ambethia/LuckyPrincessNitro<gh_stars>1-10
class CollisionSystem < EntitySystem::System
ENEMY_RADIUS = 8
PLAYER_RADIUS = 8
def update(delta)
each(CollisionComponent) do |entity, component|
collider_s = manager.component(SpatialComponent, entity)
next unless collider_s # incase the collid... |
ambethia/LuckyPrincessNitro | lib/components/particle_component.rb | class ParticleComponent < EntitySystem::Component
provides :effect, :started, :attach_to
end
|
ambethia/LuckyPrincessNitro | lib/screens/base_screen.rb | class BaseScreen
include Screen
include GameHelpers
attr :atlas, :batch, :sprites, :sounds, :systems, :entity_manager
def initialize
@sprites = {}
@sounds = {}
@systems = []
@is_hidden = true
setup
end
def setup
end
def show
unless @is_setup
@batch = SpriteBatch.new
... |
ambethia/LuckyPrincessNitro | bin/main.rb | ROOT_DIR = File.expand_path('../..', __FILE__)
$: << ROOT_DIR + '/lib'
$: << ROOT_DIR + '/lib/screens'
$: << ROOT_DIR + '/lib/components'
$: << ROOT_DIR + '/lib/factories'
$: << ROOT_DIR + '/lib/systems'
$: << ROOT_DIR + '/vendor'
DEBUG = !$0['<']
RELATIVE_ROOT = DEBUG ? '' : 'lucky_princess_nitro/'
require 'java'
r... |
ambethia/LuckyPrincessNitro | lib/systems/camera_system.rb | <filename>lib/systems/camera_system.rb
class CameraSystem < EntitySystem::System
CAMERA_TRACKING_SPEED = 0.075
def setup
entity = manager.create(:camera)
@spatial = manager.attach(entity, SpatialComponent.new({
px: $game.width / 2, py: $game.height / 2
}))
@camera = manager.attach(entity, Cam... |
ambethia/LuckyPrincessNitro | lib/systems/interface_system.rb | class InterfaceSystem < EntitySystem::System
RADAR_RANGE = 320 # game width
RADAR_SCALE = 0.1 # 10%
def render(delta)
@elapsed ||= 0
case $game.screen
when GameScreen
draw_shields
draw_radar
draw_gems_collected
draw_debug if DEBUG
end
@elapsed += delta
end
def dra... |
ambethia/LuckyPrincessNitro | lib/systems/player_system.rb | <filename>lib/systems/player_system.rb
class PlayerSystem < EntitySystem::System
ROTATION_SPEED = 220
MAX_SPEED = 110
MIN_SPEED = -40
ACCELERATION = 50
DECELERATION = 30
RATE_OF_FIRE = 0.1
BULLET_SPEED = 240
BULLET_RADIUS = 6
def update(delta)
entity = manager.find(:player)
return unless enti... |
ambethia/LuckyPrincessNitro | lib/screens/splash_screen.rb | class SplashScreen < BaseScreen
def setup
@systems = %w[
Input
Splash
]
end
end
|
ambethia/LuckyPrincessNitro | lib/entity_system.rb | <filename>lib/entity_system.rb
module EntitySystem
end
require 'entity_system/manager'
require 'entity_system/component'
require 'entity_system/factory'
require 'entity_system/system'
|
ambethia/LuckyPrincessNitro | lib/systems/ranged_cull_system.rb | <reponame>ambethia/LuckyPrincessNitro<gh_stars>1-10
class RangedCullSystem < EntitySystem::System
def update(delta)
camera = manager.component(CameraComponent, manager.find(:camera)).object
camera_position = camera.position
each(RangedCullComponent) do |entity, component|
spatial = manager.componen... |
ipublic/marketplace | app/models/subscriptions/feature.rb | <gh_stars>0
module Subscriptions
class Feature
include Mongoid::Document
include Mongoid::Timestamps
FEATURES = {
# Level: Routing
aca_shop_market_feature: { key: :aca_shop_market,
title: "ACA SHOP Market",
... |
ipublic/marketplace | app/models/timespans/month_timespan.rb | module Timespans
class MonthTimespan < Timespan
attr_readonly :year, :month, :begin_on, :end_on
field :year, type: Integer
field :month, type: Integer
belongs_to :calendar_year_timespan,
class_name: 'Timespans::CalendarYearTimespan'
validates_presence_of :year
validates :month,
... |
ipublic/marketplace | spec/factories/integrations_get_priority_mail_receipts.rb | FactoryBot.define do
factory :integrations_get_priority_mail_receipt, class: 'Integrations::GetPriorityMailReceipt' do
end
end
|
ipublic/marketplace | app/models/dispatcher/tasks/task.rb | <reponame>ipublic/marketplace
class Dispatcher::Tasks::Task
include Mongoid::Document
end
|
ipublic/marketplace | spec/factories/filter_tokens.rb | FactoryBot.define do
factory :filter_token do
name { "MyString" }
granted { false }
end
end
|
ipublic/marketplace | spec/factories/wages_wage_reports.rb | FactoryBot.define do
factory :wages_wage_report, class: 'Wages::WageReport' do
submission_kind { :original }
filing_method_kind { :upload }
total_wages { 40_125.32 }
excess_wages { 5_125.11 }
taxable_wages { total_wages - excess_wages }
association :wage_entries
associa... |
ipublic/marketplace | spec/factories/notices_ui_delinquency_notices.rb | <filename>spec/factories/notices_ui_delinquency_notices.rb
FactoryBot.define do
factory :notices_ui_delinquency_notice, class: 'Notices::UiDelinquencyNotice' do
end
end
|
ipublic/marketplace | spec/factories/integrations_release_liens.rb | FactoryBot.define do
factory :integrations_release_lien, class: 'Integrations::ReleaseLien' do
end
end
|
ipublic/marketplace | app/models/dispatcher/workers/echo_worker.rb | <filename>app/models/dispatcher/workers/echo_worker.rb
class Dispatcher::Workers::EchoWorker
include Mongoid::Document
end
|
ipublic/marketplace | app/models/dispatcher/workflow.rb | module Dispatcher
class Workflow
include Mongoid::Document
belongs_to :processable, polymorphic: true
# embeds_many
field :tasks, type: Array, default: []
end
end
|
ipublic/marketplace | app/models/wages/tip_wage_entry.rb | module Wages
class TipWageEntry < Wage
field :hours_worked, type: Integer
end
end
|
ipublic/marketplace | spec/controllers/api/v3/echo_controller_spec.rb | <filename>spec/controllers/api/v3/echo_controller_spec.rb
require 'rails_helper'
RSpec.describe Api::V3::EchoController, type: :controller do
end
|
ipublic/marketplace | spec/factories/notices_ui_blocked_claim_eligible_notices.rb | <gh_stars>0
FactoryBot.define do
factory :notices_ui_blocked_claim_eligible_notice, class: 'Notices::UiBlockedClaimEligibleNotice' do
end
end
|
ipublic/marketplace | spec/factories/subscriptions_subscribeds.rb | FactoryBot.define do
factory :subscriptions_subscribed, class: 'Subscriptions::Subscribed' do
end
end
|
ipublic/marketplace | spec/factories/parties_parties.rb | FactoryBot.define do
factory :parties_party, class: 'Parties::Party' do
end
end
|
ipublic/marketplace | app/models/financial_accounts/pfl_financial_account.rb | module FinancialAccounts
class PflFinancialAccount < FinancialAccount
include Mongoid::Document
field :pfl_tax_rate, type: Float, default: 0.0
field :pfl_wage_filing_schedule, type: Symbol
end
end
|
ipublic/marketplace | app/models/quanta/time_period.rb | class Quanta::TimePeriod
include Mongoid::Document
end
|
ipublic/marketplace | app/models/bakery/cupcake_factory.rb | module Bakery
class CupcakeFactory
def self.call(**options)
new(options).cupcake
end
def initialize(**options)
@cupcake = Bakery::Cupcake.new
@cupcake.cc_id = options[:cc_id] if options[:cc_id].present?
bake_cupcake
frost_cupcake
add_sprinkles
self
end
... |
ipublic/marketplace | app/models/dispatcher/routing_slip.rb | module Dispatcher
WORK_ITEM_QUEUE = ""
class RoutingSlip
def initialize(workflow)
workflow.tasks.each { |task| WORK_ITEM_QUEUE.enqueue task }
@completed_tasks = workflow.completed_tasks
end
def is_completed?
next_task.count == 0
end
def is_in_progress?
completed_tasks.... |
ipublic/marketplace | app/models/financial_accounts/contribution_rate.rb | <filename>app/models/financial_accounts/contribution_rate.rb
module FinancialAccounts
class ContributionRate
include Mongoid::Document
field :effective_on, type: Date
field :determined_at, type: Time, default: TimeKeeper.date_of_record
embedded_in :financial_account,
class_name: 'FinancialA... |
ipublic/marketplace | spec/factories/integrations_generate_notices.rb | FactoryBot.define do
factory :integrations_generate_notice, class: 'Integrations::GenerateNotice' do
end
end
|
ipublic/marketplace | app/serializers/sprinkle_serializer.rb | <gh_stars>0
class SprinkleSerializer
include FastJsonapi::ObjectSerializer
attributes :id, :color, :shape
end
|
ipublic/marketplace | spec/factories/financial_accounts_ui_contribution_rates.rb | FactoryBot.define do
factory :financial_accounts_ui_contribution_rate, class: 'FinancialAccounts::UiContributionRate' do
end
end
|
ipublic/marketplace | app/models/determinations/group_ui_liability_determination.rb | <filename>app/models/determinations/group_ui_liability_determination.rb<gh_stars>0
class Determinations::GroupUiLiabilityDetermination
include Mongoid::Document
end
|
ipublic/marketplace | app/models/products/product.rb | <gh_stars>0
class Products::Product
include Mongoid::Document
end
|
ipublic/marketplace | app/models/parties/organization_party.rb | <gh_stars>0
module Parties
class OrganizationParty < Party
# Shared Unemployment Insurance and PFL ID
field :entity_id, type: Integer
# Federal Employer ID Number
field :fein, type: String
# Registered legal name
field :legal_name, type: String
# Doing Business As (alternate name)
... |
ipublic/marketplace | spec/factories/parties_person_names.rb | FactoryBot.define do
factory :parties_person_name, class: 'Parties::PersonName' do
end
end
|
ipublic/marketplace | app/models/address.rb | class Address
include Mongoid::Document
include Mongoid::Timestamps
KINDS = %W(home work mailing)
OFFICE_KINDS = %W(primary mailing branch)
embedded_in :addressable, polymorphic: true
field :kind, type: String
field :address_1, type: String
field :address_2, type: String, default: ""
# The name o... |
ipublic/marketplace | app/models/integrations/redetermine_ui_contribution_rate.rb | class Integrations::RedetermineUiContributionRate
include Mongoid::Document
end
|
ipublic/marketplace | spec/models/parties/party_relationship_kind_spec.rb | <reponame>ipublic/marketplace
require 'rails_helper'
RSpec.describe Parties::PartyRelationshipKind, type: :model, dbclean: :after_each do
it { is_expected.to be_mongoid_document }
it { is_expected.to have_timestamps }
it { is_expected.to have_fields(:key, :title, :description)}
let(:key) { :... |
ipublic/marketplace | spec/models/roles/role_factory_spec.rb | require 'rails_helper'
RSpec.describe Roles::RoleFactory, type: :model, dbclean: :after_each do
let(:hero_party_role_kind_key) { :hero }
let(:evil_ex_party_role_kind_key) { :evil_ex }
let(:current_first_name) { 'Scott' }
let(:current_last_name) { 'Pilgrim' }
let(:scott_pilgrim_party) { Part... |
ipublic/marketplace | spec/models/integrations/assign_ui_case_spec.rb | require 'rails_helper'
RSpec.describe Integrations::AssignUiCase, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end
|
ipublic/marketplace | app/models/subscriptions/tenant.rb | <gh_stars>0
module Subscriptions
class Tenant
include Mongoid::Document
include Mongoid::Timestamps
has_many :subscriptions,
class_name: 'Subscriptions::Subscription'
field :site_key, type: Symbol
field :name, type: String
validates_presence_of :site_key, :name
index({ site_k... |
ipublic/marketplace | spec/factories/currents.rb | FactoryBot.define do
factory :current do
end
end
|
ipublic/marketplace | spec/factories/taxes_taxes.rb | FactoryBot.define do
factory :taxes_tax, class: 'Taxes::Tax' do
end
end
|
ipublic/marketplace | app/models/financial_accounts/ui_financial_account.rb | module FinancialAccounts
class UiFinancialAccount < FinancialAccount
# Account states:
# Current
# Overdue - oustanading balance last day of every month (reimburse, contribute)
# Delinquent - 60 days after delinquency notice, system identifies employers with missing reports, calculates estimated repo... |
ipublic/marketplace | spec/factories/integrations_generate_bills.rb | FactoryBot.define do
factory :integrations_generate_bill, class: 'Integrations::GenerateBill' do
end
end
|
ipublic/marketplace | spec/factories/financial_accounts_ui_financial_accounts.rb | FactoryBot.define do
factory :financial_accounts_ui_financial_account, class: 'FinancialAccounts::UiFinancialAccount' do
end
end
|
ipublic/marketplace | app/models/quanta/sequence.rb | <filename>app/models/quanta/sequence.rb
class Quanta::Sequence
include Mongoid::Document
end
|
ipublic/marketplace | app/models/integrations/assign_ui_case.rb | <gh_stars>0
class Integrations::AssignUiCase
include Mongoid::Document
end
|
ipublic/marketplace | app/models/quanta/duration.rb | <reponame>ipublic/marketplace
module Quanta
class Duration
def initialize(duration)
@duration = duration
end
# Converts an object of this instance into a database friendly value.
def mongoize
@duration.iso8601
end
class << self
# Get the object as it was stored in the databa... |
ipublic/marketplace | spec/factories/financial_accounts_party_ledger_account_balances.rb | FactoryBot.define do
factory :financial_accounts_party_ledger_account_balance, class: 'FinancialAccounts::PartyLedgerAccountBalance' do
end
end
|
ipublic/marketplace | app/models/roles/relationship_role_factory.rb | module Roles
class RelationshipRoleFactory
attr_accessor :party, :related_party, :party_relationship
def self.call(party, party_role_kind_key, party_relationship_kind_key, related_party)
build(party, args).party_role
end
# look up party_role_kind
# look up party_relationship kind
# verify ... |
ipublic/marketplace | spec/factories/financial_accounts_financial_account_factories.rb | FactoryBot.define do
factory :financial_accounts_financial_account_factory, class: 'FinancialAccounts::FinancialAccountFactory' do
end
end
|
ipublic/marketplace | app/models/products/unemployment_insurance.rb | class Products::UnemploymentInsurance
include Mongoid::Document
PAYMENT_TYPES = [:contributory]
WAGE_FILING_SCHEDULES = [:quarterly, :annually]
field :payment_type, type: Symbol
field :wage_filing_schedule, type: Symbol
end
|
ipublic/marketplace | spec/factories/wages_exempt_wage_entries.rb | <gh_stars>0
FactoryBot.define do
factory :wages_exempt_wage_entry, class: 'Wages::ExemptWageEntry' do
end
end
|
ipublic/marketplace | app/models/financial_accounts/ui_contribution_rate.rb | module FinancialAccounts
class UiContributionRate < ContributionRate
include Mongoid::Document
EMPLOYER_TAXABLE_WAGE_MAX = 2_000_000
EMPLOYEE_TAXABLE_WAGE_MAX = 9_000
# RATE_KINDS = [:unempmloyment_insurance, :administrative_fee]
# field :rate_kind, type: Symbol
field :ui_wage_filing_schedule, ... |
ipublic/marketplace | app/models/fees/interest_fee.rb | <gh_stars>0
class Fees::InterestFee
include Mongoid::Document
end
|
ipublic/marketplace | spec/factories/products_individual_health_insurances.rb | FactoryBot.define do
factory :products_individual_health_insurance, class: 'Products::IndividualHealthInsurance' do
end
end
|
ipublic/marketplace | spec/factories/cases_cases.rb | <filename>spec/factories/cases_cases.rb
FactoryBot.define do
factory :cases_case, class: 'Cases::Case' do
end
end
|
ipublic/marketplace | spec/factories/integrations_register_employers.rb | FactoryBot.define do
factory :integrations_register_employer, class: 'Integrations::RegisterEmployer' do
end
end
|
ipublic/marketplace | spec/factories/dispatcher_activities_activities.rb | <reponame>ipublic/marketplace
FactoryBot.define do
factory :dispatcher_activities_activity, class: 'Dispatcher::Activities::Activity' do
end
end
|
ipublic/marketplace | app/models/fees/premium_fee.rb | <reponame>ipublic/marketplace<filename>app/models/fees/premium_fee.rb
class Fees::PremiumFee
include Mongoid::Document
end
|
ipublic/marketplace | app/models/sagas/activities/activity_host.rb | class Sagas::Activities::ActivityHost
def initialize(action, routing_slip)
# send_message = send_message
end
def accept_message?(uri, routing_slip)
# examine uri
end
def process_forward_message(routing_slip)
return if routing_slip.is_completed?
# if current step is successful, proceed. o... |
ipublic/marketplace | spec/factories/parties_party_roles.rb | <gh_stars>0
FactoryBot.define do
factory :parties_party_role, class: 'Parties::PartyRole' do
end
end
|
ipublic/marketplace | spec/factories/fees_unemployment_insurance_taxes.rb | <filename>spec/factories/fees_unemployment_insurance_taxes.rb
FactoryBot.define do
factory :fees_unemployment_insurance_tax, class: 'Fees::UnemploymentInsuranceTax' do
end
end
|
ipublic/marketplace | spec/models/sagas/activities/activity_host_spec.rb | require 'rails_helper'
RSpec.describe Sagas::Activities::ActivityHost, type: :model do
pending "add some examples to (or delete) #{__FILE__}"
end
|
ipublic/marketplace | spec/factories/dispatcher_tasks_notice_tasks.rb | <reponame>ipublic/marketplace<gh_stars>0
FactoryBot.define do
factory :dispatcher_tasks_notice_task, class: 'Dispatcher::Tasks::NoticeTask' do
end
end
|
ipublic/marketplace | spec/factories/determinations_ui_determination_services.rb | <filename>spec/factories/determinations_ui_determination_services.rb
FactoryBot.define do
factory :determinations_ui_determination_service, class: 'Determinations::UiDeterminationService' do
end
end
|
ipublic/marketplace | app/models/timespans/quarter_year_timespan.rb | module Timespans
class QuarterYearTimespan < Timespan
attr_readonly :year, :quarter, :begin_on, :end_on
field :year, type: Integer
field :quarter, type: Integer
belongs_to :calendar_year_timespan,
class_name: 'Timespans::CalendarYearTimespan'
validates_presence_of :year
validates :quar... |
ipublic/marketplace | lib/mongoid_toolkit/model_tree.rb | module MongoidToolkit
class ModelTree
SYSTEM_MODEL_NAMES = ["Mongoid::GridFs::Fs::File", "Mongoid::GridFs::Fs::Chunk", "ActionDispatch::Session::MongoidStore::Session"]
SYSTEM_MODELS = SYSTEM_MODEL_NAMES.reduce([]) { |model_name| mongoid_model_for(model_name) }
PARENT_ASSOCIATIONS = [:embeds_many, :has_... |
ipublic/marketplace | db/seedfiles/party_roles_and_relationships_seed.rb | <reponame>ipublic/marketplace<filename>db/seedfiles/party_roles_and_relationships_seed.rb
puts "*"*80
puts "Populating Roles"
puts "*"*80
## PersonParty Roles ##
Parties::PartyRoleKind.create!(key: :employee, title: 'Employee')
Parties::PartyRoleKind.create!(key: :owner_or_officer, title: 'Owner/Officer')
Parties::Par... |
ipublic/marketplace | spec/factories/integrations_get_backruptcy_notices.rb | <reponame>ipublic/marketplace<gh_stars>0
FactoryBot.define do
factory :integrations_get_backruptcy_notice, class: 'Integrations::GetBackruptcyNotice' do
end
end
|
ipublic/marketplace | spec/factories/integrations_register_tpas.rb | FactoryBot.define do
factory :integrations_register_tpa, class: 'Integrations::RegisterTpa' do
end
end
|
ipublic/marketplace | spec/factories/products_individual_dental_insurances.rb | FactoryBot.define do
factory :products_individual_dental_insurance, class: 'Products::IndividualDentalInsurance' do
end
end
|
ipublic/marketplace | spec/factories/dispatcher_activities_group_renew_activities.rb | <gh_stars>0
FactoryBot.define do
factory :dispatcher_activities_group_renew_activity, class: 'Dispatcher::Activities::GroupRenewActivity' do
end
end
|
ipublic/marketplace | spec/factories/documents.rb | FactoryBot.define do
factory :document do
end
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.