repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/test/commands/devices_command_spec.rb | test/commands/devices_command_spec.rb | require 'helper'
ADB_NO_DEVICES = <<-OUTPUT
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
OUTPUT
ADB_DEVICES = <<-OUTPUT
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
192.168.56.101:5555 ... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/test/commands/command_spec_base.rb | test/commands/command_spec_base.rb | class Command
attr_reader :shell_capture
# capture system calls on all commands
def `(cmd)
capture_shell!(cmd)
end
def system(cmd)
capture_shell!(cmd)
end
private def capture_shell!(cmd)
@shell_capture = cmd
# make sure $? is set
Kernel::system("echo", "\\c")
"mock output"
end
... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/test/commands/command_spec.rb | test/commands/command_spec.rb | require 'helper'
class CommandSpec < CommandSpecBase
class TestCommand < Command
def run
output "this is a test"
end
end
describe "command loading" do
it "loads the EnvCommand when command is '?'" do
command = Command.load(@repl, "?")
command.must_be_instance_of EnvCommand
end... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/test/commands/device_command_spec.rb | test/commands/device_command_spec.rb | require 'helper'
class DeviceCommandSpec < CommandSpecBase
describe "given a valid list of devices" do
before do
@device1 = Device.new("1", "emulator-5554", "Emulator 1")
@device2 = Device.new("2", "emulator-5556", "Emulator 2")
DevicesCommand.any_instance.stubs(:execute).returns([@device1, @d... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/test/commands/list_command_spec.rb | test/commands/list_command_spec.rb | require 'helper'
class ListCommandSpec < CommandSpecBase
describe "listing commands" do
it "prints a list of available commands" do
command = silent ListCommand.new(@repl)
command.execute
command.output_capture.must_match /^!\w+/
end
end
end | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/test/commands/package_command_spec.rb | test/commands/package_command_spec.rb | require 'helper'
class PackageCommandSpec < CommandSpecBase
describe "with valid arguments" do
it "accepts a package with one element" do
command = silent PackageCommand.new(@repl, "myapp")
command.execute
@repl.default_package.must_equal "myapp"
end
it "accepts a package with two ele... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/test/commands/adb_command_spec.rb | test/commands/adb_command_spec.rb | require 'helper'
class AdbCommandSpec < CommandSpecBase
describe "a basic adb command" do
before do
@command = silent AdbCommand.new(@repl, "devices")
@result = @command.execute
end
it "sends the command to adb" do
@command.shell_capture.must_equal "adb devices 2>&1"
end
it ... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant.rb | lib/replicant.rb | require 'active_support/core_ext/object/blank.rb'
require 'active_support/core_ext/string/filters.rb'
require 'active_support/core_ext/object/try.rb'
require 'replicant/version'
require 'replicant/styles'
require 'replicant/process_muncher'
require 'replicant/log_muncher'
require 'replicant/commands'
require 'replican... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/process_muncher.rb | lib/replicant/process_muncher.rb | class ProcessMuncher
def initialize(repl)
@repl = repl
end
def process_table
result = AdbCommand.new(@repl, "shell ps", :silent => true).execute
if result.code > 0
@signal_exit = true
{}
else
processes = result.output
# Parses something like:
# u0_a27 1333 123 ... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/styles.rb | lib/replicant/styles.rb | module Styles
CONSOLE_WIDTH = 70
STYLES = {
# foreground text
:black_fg => 30,
:red_fg => 31,
:green_fg => 32,
:yellow_fg => 33,
:blue_fg => 34,
:magenta_fg => 35,
:cyan_fg => 36,
:white_fg => 37,
# background
:black_bg => 40,
:red_bg => 41,
... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/version.rb | lib/replicant/version.rb | module Replicant
VERSION = "1.0.1"
end
| ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/repl.rb | lib/replicant/repl.rb | require 'find'
require 'rexml/document'
module Replicant
class REPL
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
include Styles
# for auto-complete via rlwrap; should probably go in Rakefile at some point
ADB_COMMANDS = %w(devices connect disconnect p... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands.rb | lib/replicant/commands.rb | require_relative "commands/command"
require_relative "commands/adb_command"
require_relative "commands/clear_command"
require_relative "commands/device_command"
require_relative "commands/devices_command"
require_relative "commands/env_command"
require_relative "commands/list_command"
require_relative "commands/package... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/device.rb | lib/replicant/device.rb | class Device
attr_reader :idx, :id, :name
def initialize(idx, id, name)
@idx = idx
@id = id
@name = name
end
def emulator?
@id.start_with?('emulator-')
end
def physical_device?
!emulator?
end
def short_name
"#{@name[0..4]}[#{@idx}]"
end
def to_s
"#{@id} [#{@name}]"
... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/log_muncher.rb | lib/replicant/log_muncher.rb | class LogMuncher
include Styles
LOGFILE = "/tmp/replicant_device"
TIMESTAMP_PATTERN = /^\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}\.\d{3}/
PROCESS_PATTERN = /(\w){1}\/(.*)\(\s*([0-9]+)\):\s/
attr_accessor :current_pid
def initialize(repl)
@repl = repl
@current_pid = nil
end
# Parses the device logs and... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands/command.rb | lib/replicant/commands/command.rb | require 'stringio'
class Command
include Styles
def self.inherited(subclass)
@@subclasses ||= []
@@subclasses << subclass
end
def self.all
(@@subclasses - [AdbCommand, ListCommand, EnvCommand]).map do |clazz|
clazz.new(nil)
end
end
def self.load(repl, command_line)
if command_... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands/list_command.rb | lib/replicant/commands/list_command.rb | class ListCommand < Command
def valid_args?
args.blank?
end
def description
"print a list of available commands"
end
def run
command_list = Command.all.sort_by {|c| c.name}.map do |command|
padding = 20 - command.name.length
desc = "#{command.name} #{' ' * padding} -- #{command.descr... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands/adb_command.rb | lib/replicant/commands/adb_command.rb | class AdbCommand < Command
class Result
attr_accessor :pid, :code, :output
def to_s
"result: pid=#{pid} code=#{code} output=#{output}"
end
end
def run
Result.new.tap do |result|
cmd = "#{command}"
putsd cmd
if interactive?
system cmd
else
result.o... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands/restart_command.rb | lib/replicant/commands/restart_command.rb | class RestartCommand < Command
def description
"restart ADB"
end
def run
# Faster than kill-server, and also catches ADB instances launched by
# IntelliJ. Moreover, start-server after kill-server sometimes makes the
# server fail to start up unless you sleep for a second or so
`killall adb`
... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands/clear_command.rb | lib/replicant/commands/clear_command.rb | class ClearCommand < Command
def description
"clear application data"
end
# TODO: this is not a very good argument validator
def valid_args?
args.present? || @repl.default_package
end
def usage
"#{name} [com.example.package|<empty>(when default package is set)]"
end
def run
package =... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands/devices_command.rb | lib/replicant/commands/devices_command.rb | class DevicesCommand < Command
def description
"print a list of connected devices"
end
def run
adb = AdbCommand.new(@repl, "devices -l", :silent => true)
device_lines = adb.execute.output.lines.to_a.reject do |line|
line.strip.empty? || line.include?("daemon") || line.include?("List of devices"... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands/package_command.rb | lib/replicant/commands/package_command.rb | class PackageCommand < Command
def description
"set a default package to work with"
end
def usage
"#{name} com.mydomain.mypackage"
end
def valid_args?
args.present? && /^\w+(\.\w+)*$/ =~ args
end
def run
output "Setting default package to #{args.inspect}"
@repl.default_package = ar... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands/reset_command.rb | lib/replicant/commands/reset_command.rb | class ResetCommand < Command
def description
"clear current device and package"
end
def valid_args?
args.blank?
end
def run
@repl.default_device = nil
@repl.default_package = nil
end
end | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands/device_command.rb | lib/replicant/commands/device_command.rb | class DeviceCommand < Command
@@threads = []
def initialize(repl, args = nil, options = {})
super
@process_muncher = ProcessMuncher.new(repl)
@log_muncher = LogMuncher.new(repl)
end
def description
"set a default device to work with"
end
def usage
"#{name} [<index>|<device_id>]"
en... | ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
mttkay/replicant | https://github.com/mttkay/replicant/blob/9ff97d9f6909c2ceee95f30c60c4369c46a18569/lib/replicant/commands/env_command.rb | lib/replicant/commands/env_command.rb | class EnvCommand < Command
def valid_args?
args.blank?
end
def run
env = "Package: #{@repl.default_package || 'Not set'}\n"
env << "Device: "
device = @repl.default_device
env << if device
"#{device.name} (#{device.id})"
else
'Not set'
end
output env
end
end
| ruby | MIT | 9ff97d9f6909c2ceee95f30c60c4369c46a18569 | 2026-01-04T17:52:45.776762Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/db/migrate/0_create_amounts.rb | db/migrate/0_create_amounts.rb | # Copyright 2015-2021, Instacart
class CreateAmounts < ActiveRecord::Migration
def change
create_table :amounts do |t|
t.integer :amountable_id, null: false
t.string :amountable_type, null: false
t.string :name, null: false
t.timestamps
end
add_monetize :amounts, :value
add_... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/spec/spec_helper.rb | spec/spec_helper.rb | # Copyright 2015-2021, Instacart
ENV['RAILS_ENV'] = 'test'
require 'rails'
require 'money-rails'
require 'active_record'
require 'activerecord-import'
require 'amountable'
Dir['./spec/support/**/*.rb'].sort.each { |f| require f }
MoneyRails::Hooks.init
require 'amountable/amount'
require 'database_cleaner'
require 'db... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/spec/support/database.rb | spec/support/database.rb | # Copyright 2015-2021, Instacart
require "activerecord-import/base"
db_name = ENV['DB'] || 'postgresql'
spec_dir = Pathname.new(File.dirname(__FILE__)) / '..'
database_yml = spec_dir.join('internal/config/database.yml')
fail "Please create #{database_yml} first to configure your database. Take a look at: #{database_... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/spec/amountable/amount_spec.rb | spec/amountable/amount_spec.rb | # Copyright 2015-2021, Instacart
require 'spec_helper'
describe Amountable::Amount do
it 'should validate name presence' do
subject.tap do |amount|
expect(amount.valid?).to be false
expect(amount.errors[:name]).not_to be nil
end
end
it 'should validate name uniqueness' do
Amountable::A... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/spec/amountable/nil_amount_spec.rb | spec/amountable/nil_amount_spec.rb | # Copyright 2015-2021, Instacart
require 'spec_helper'
describe Amountable::NilAmount do
it 'should return 0' do
expect(subject.value).to eq(Money.zero)
end
it 'should have nil amountable' do
expect(subject.amountable).to be nil
end
it 'should have operations' do
expect(subject + Amountable::... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/spec/amountable/amountable_spec.rb | spec/amountable/amountable_spec.rb | # Copyright 2015-2021, Instacart
require 'spec_helper'
describe Amountable do
context 'storage == :table' do
it 'should' do
order = Order.new
expect { order.save }.not_to change { Amountable::Amount.count }
%i(sub_total taxes total).each do |name|
expect(order.send(name)).to eq(Money.... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/spec/internal/app/models/subscription.rb | spec/internal/app/models/subscription.rb | # Copyright 2015-2021, Instacart
if jsonb_available?
class Subscription < ActiveRecord::Base
include Amountable
act_as_amountable storage: :jsonb
amount :sub_total, sets: [:total]
amount :taxes, sets: [:total]
end
end | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/spec/internal/app/models/order.rb | spec/internal/app/models/order.rb | # Copyright 2015-2021, Instacart
class Order < ActiveRecord::Base
include Amountable
act_as_amountable
amount :sub_total, sets: [:total]
amount :taxes, sets: [:total]
end
| ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/spec/internal/db/schema.rb | spec/internal/db/schema.rb | # Copyright 2015-2021, Instacart
ActiveRecord::Schema.define do
create_table "amounts", force: :cascade do |t|
t.integer "amountable_id", null: false
t.string "amountable_type", null: false
t.datetime "created_at"
t.string "name", nul... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/lib/amountable.rb | lib/amountable.rb | # Copyright 2015-2021, Instacart
module Amountable
extend ActiveSupport::Autoload
autoload :Operations
autoload :Amount
autoload :VirtualAmount
autoload :NilAmount
autoload :VERSION
autoload :TableMethods
autoload :JsonbMethods
class InvalidAmountName < StandardError; end
class MissingColumn < Sta... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/lib/amountable/version.rb | lib/amountable/version.rb | # Copyright 2015-2021, Instacart
module Amountable
VERSION = '0.6.0'
end
| ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/lib/amountable/jsonb_methods.rb | lib/amountable/jsonb_methods.rb | # Copyright 2015-2021, Instacart
module Amountable
module JsonbMethods
extend ActiveSupport::Autoload
def amounts
@_amounts ||= attribute(amounts_column_name).to_h['amounts'].to_h.map do |name, amount|
Amountable::VirtualAmount.new(name: name, value_cents: amount['cents'], value_currency: amou... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/lib/amountable/operations.rb | lib/amountable/operations.rb | # Copyright 2015-2021, Instacart
module Amountable
module Operations
def +(other_value)
value + other_value.to_money
end
def -(other_value)
value - other_value.to_money
end
def *(multiplier)
value * multiplier
end
def /(divisor)
value / divisor
end
def... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/lib/amountable/table_methods.rb | lib/amountable/table_methods.rb | # Copyright 2015-2021, Instacart
module Amountable
module TableMethods
extend ActiveSupport::Autoload
def set_amount(name, value)
amount = find_amount(name) || amounts.build(name: name)
amount.value = value.to_money
if value.zero?
amounts.delete(amount)
all_amounts.delete(a... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/lib/amountable/virtual_amount.rb | lib/amountable/virtual_amount.rb | # Copyright 2015-2021, Instacart
module Amountable
class VirtualAmount
include ActiveModel::Model
attr_accessor :amountable, :value_cents, :value_currency, :name, :persistable
include Amountable::Operations
validates :name, presence: true
def value
Money.new(value_cents, value_currency)... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/lib/amountable/nil_amount.rb | lib/amountable/nil_amount.rb | # Copyright 2015-2021, Instacart
module Amountable
class NilAmount
include Amountable::Operations
def value; Money.zero; end
def amountable; nil; end
end
end | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
instacart/amountable | https://github.com/instacart/amountable/blob/5e035e0dafb4bfdd0cc13385708bfe37be17d2a1/lib/amountable/amount.rb | lib/amountable/amount.rb | # Copyright 2015-2021, Instacart
module Amountable
class Amount < ActiveRecord::Base
include Amountable::Operations
belongs_to :amountable, polymorphic: true
monetize :value_cents, with_model_currency: :value_currency
validates :name, presence: true
validates :name, uniqueness: {scope: [:amoun... | ruby | ISC | 5e035e0dafb4bfdd0cc13385708bfe37be17d2a1 | 2026-01-04T17:52:50.153955Z | false |
lukeredpath/simpleconfig | https://github.com/lukeredpath/simpleconfig/blob/397963648bc12be92cd887aedd82d3a901a9c7b8/test/simple_config_test.rb | test/simple_config_test.rb | require 'test_helper'
class SimpleConfigConfigTest < Test::Unit::TestCase
def setup
@config = SimpleConfig::Config.new
end
def test_dup_creates_deep_clone
new_config = cascaded_test_config.dup
new_config.configure do
group :test_group do
set :inner_key, 'new_foo'
end
set :... | ruby | MIT | 397963648bc12be92cd887aedd82d3a901a9c7b8 | 2026-01-04T17:52:54.553590Z | false |
lukeredpath/simpleconfig | https://github.com/lukeredpath/simpleconfig/blob/397963648bc12be92cd887aedd82d3a901a9c7b8/test/test_helper.rb | test/test_helper.rb | require 'rubygems'
require 'test/unit'
require 'mocha'
$:.unshift File.expand_path('../../lib', __FILE__)
require 'simple_config'
| ruby | MIT | 397963648bc12be92cd887aedd82d3a901a9c7b8 | 2026-01-04T17:52:54.553590Z | false |
lukeredpath/simpleconfig | https://github.com/lukeredpath/simpleconfig/blob/397963648bc12be92cd887aedd82d3a901a9c7b8/test/yaml_parser_test.rb | test/yaml_parser_test.rb | require 'test_helper'
class YAMLParserTest < Test::Unit::TestCase
include SimpleConfig
def setup
@config = Config.new
end
def test_parsing_of_a_single_variable
parser = YAMLParser.new({'foo' => 'bar'}.to_yaml)
parser.parse_into(@config)
assert_equal 'bar', @config.foo
end
def test... | ruby | MIT | 397963648bc12be92cd887aedd82d3a901a9c7b8 | 2026-01-04T17:52:54.553590Z | false |
lukeredpath/simpleconfig | https://github.com/lukeredpath/simpleconfig/blob/397963648bc12be92cd887aedd82d3a901a9c7b8/test/simple_config_functional_test.rb | test/simple_config_functional_test.rb | require 'test_helper'
require 'fileutils'
class SimpleConfigFunctionalTest < Test::Unit::TestCase
def test_simple_config_with_top_level_settings
config = SimpleConfig.for(:my_test) do
set :var_one, 'foo'
set :var_two, 'bar'
end
assert_equal 'foo', config.var_one
assert_equal 'bar'... | ruby | MIT | 397963648bc12be92cd887aedd82d3a901a9c7b8 | 2026-01-04T17:52:54.553590Z | false |
lukeredpath/simpleconfig | https://github.com/lukeredpath/simpleconfig/blob/397963648bc12be92cd887aedd82d3a901a9c7b8/templates/configuration.rb | templates/configuration.rb | SimpleConfig.for :application do
# Set here your global configuration.
# All settings can be overwritten later per-environment.
load File.join(Rails.root.to_s, "config", "settings", "application.rb"), :if_exists? => true
# Per Environment settings.
# At startup only the file matching current environme... | ruby | MIT | 397963648bc12be92cd887aedd82d3a901a9c7b8 | 2026-01-04T17:52:54.553590Z | false |
lukeredpath/simpleconfig | https://github.com/lukeredpath/simpleconfig/blob/397963648bc12be92cd887aedd82d3a901a9c7b8/lib/simple_config.rb | lib/simple_config.rb | require 'simple_config/version'
require 'simple_config/railtie' if defined?(Rails)
module SimpleConfig
class << self
def for(config_name, &block)
default_manager.for(config_name, &block)
end
def default_manager
@default_manager ||= Manager.new
end
end
class Manager
def initiali... | ruby | MIT | 397963648bc12be92cd887aedd82d3a901a9c7b8 | 2026-01-04T17:52:54.553590Z | false |
lukeredpath/simpleconfig | https://github.com/lukeredpath/simpleconfig/blob/397963648bc12be92cd887aedd82d3a901a9c7b8/lib/simpleconfig.rb | lib/simpleconfig.rb | require 'simple_config' | ruby | MIT | 397963648bc12be92cd887aedd82d3a901a9c7b8 | 2026-01-04T17:52:54.553590Z | false |
lukeredpath/simpleconfig | https://github.com/lukeredpath/simpleconfig/blob/397963648bc12be92cd887aedd82d3a901a9c7b8/lib/simple_config/version.rb | lib/simple_config/version.rb | module SimpleConfig
module Version
MAJOR = 2
MINOR = 0
PATCH = 1
BUILD = nil
STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
end
VERSION = Version::STRING
end
| ruby | MIT | 397963648bc12be92cd887aedd82d3a901a9c7b8 | 2026-01-04T17:52:54.553590Z | false |
lukeredpath/simpleconfig | https://github.com/lukeredpath/simpleconfig/blob/397963648bc12be92cd887aedd82d3a901a9c7b8/lib/simple_config/railtie.rb | lib/simple_config/railtie.rb | require 'simple_config'
require 'rails'
module SimpleConfig
class Railtie < ::Rails::Railtie
rake_tasks do
namespace :simpleconfig do
desc "Initialize SimpleConfig configurations."
task :setup do
abort("Already found config/settings. Have you already run this task?.") if File.exi... | ruby | MIT | 397963648bc12be92cd887aedd82d3a901a9c7b8 | 2026-01-04T17:52:54.553590Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/init.rb | init.rb | Dir[File.join(File.expand_path("../vendor", __FILE__), "*")].each do |vendor|
$:.unshift File.join(vendor, "lib")
end
require "push/heroku/cisaurus/cisaurus"
require "push/heroku/command/push" | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/progress/spec/progress_spec.rb | vendor/progress/spec/progress_spec.rb | require File.dirname(__FILE__) + '/spec_helper.rb'
describe Progress do
let(:count){ 165 }
before :each do
@io = StringIO.new
Progress.instance_variable_set(:@io, @io)
def Progress.time_to_print?; true; end
end
def io_pop
@io.seek(0)
s = @io.read
@io.truncate(0)
@io.seek(0)
s
... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/progress/spec/spec_helper.rb | vendor/progress/spec/spec_helper.rb | $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'rspec'
require 'progress'
| ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/progress/lib/progress.rb | vendor/progress/lib/progress.rb | require 'singleton'
require 'thread'
# ==== Procedural example
# Progress.start('Test', 1000)
# 1000.times do
# Progress.step do
# # do something
# end
# end
# Progress.stop
# ==== Block example
# Progress.start('Test', 1000) do
# 1000.times do
# Progress.step do
# # do someth... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/progress/lib/progress/active_record.rb | vendor/progress/lib/progress/active_record.rb | require 'progress'
if defined?(ActiveRecord::Base)
module ActiveRecord
module BatchesWithProgress
# run `find_each` with progress
def find_each_with_progress(options = {})
Progress.start(name.tableize, count(options)) do
find_each do |model|
Progress.step do
... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/progress/lib/progress/with_progress.rb | vendor/progress/lib/progress/with_progress.rb | require 'progress'
class Progress
class WithProgress
include Enumerable
attr_reader :enumerable, :title
# initialize with object responding to each, title and optional length
# if block is provided, it is passed to each
def initialize(enumerable, title, length = nil, &block)
@enumerable, ... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/progress/lib/progress/enumerable.rb | vendor/progress/lib/progress/enumerable.rb | require 'enumerator'
require 'progress/with_progress'
module Enumerable
# run any Enumerable method with progress
# methods which don't necessarily go through all items (like find, any? or all?) will not show 100%
# ==== Example
# [1, 2, 3].with_progress('Numbers').each do |number|
# # code
# end
... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/progress/lib/progress/integer.rb | vendor/progress/lib/progress/integer.rb | require 'progress'
class Integer
# run `times` with progress
# 100.times_with_progress('Numbers') do |number|
# # code
# end
def times_with_progress(title = nil)
Progress.start(title, self) do
times do |i|
Progress.step do
yield i
end
end
end
end
end
| ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/anvil/lib/anvil.rb | vendor/anvil/lib/anvil.rb | require "anvil/version"
module Anvil
def self.agent
@@agent ||= "anvil-cli/#{Anvil::VERSION}"
end
def self.append_agent(str)
@@agent = self.agent + " " + str
end
def self.headers
@headers ||= {}
end
end
| ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/anvil/lib/anvil/version.rb | vendor/anvil/lib/anvil/version.rb | module Anvil
VERSION = "0.16.0"
end
| ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/anvil/lib/anvil/manifest.rb | vendor/anvil/lib/anvil/manifest.rb | require "anvil/builder"
require "anvil/helpers"
require "net/http"
require "net/https"
require "pathname"
require "rest_client"
require "find"
class Anvil::Manifest
include Anvil::Helpers
PUSH_THREAD_COUNT = 40
attr_reader :cache_url
attr_reader :dir
attr_reader :manifest
def initialize(dir=nil, option... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/anvil/lib/anvil/helpers.rb | vendor/anvil/lib/anvil/helpers.rb | require "anvil"
require "anvil/okjson"
module Anvil::Helpers
def json_encode(obj)
Anvil::OkJson.encode(obj)
end
def json_decode(str)
Anvil::OkJson.decode(str)
end
def anvil_metadata_dir(root)
dir = File.join(root, ".anvil")
FileUtils.mkdir_p(dir)
dir
end
def is_url?(string)
UR... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/anvil/lib/anvil/cli.rb | vendor/anvil/lib/anvil/cli.rb | require "anvil"
require "anvil/builder"
require "anvil/engine"
require "anvil/manifest"
require "anvil/version"
require "progress"
require "thor"
require "uri"
class Anvil::CLI < Thor
map ["-v", "--version"] => :version
desc "build [SOURCE]", "Build an application"
method_option :buildpack, :type => :string, ... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/anvil/lib/anvil/builder.rb | vendor/anvil/lib/anvil/builder.rb | require "anvil"
require "anvil/helpers"
require "net/http"
require "net/https"
require "rest_client"
class Anvil::Builder
include Anvil::Helpers
class BuildError < StandardError; end
attr_reader :source
def initialize(source)
@source = source
end
def build(options={})
uri = URI.parse("#{anvil... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/anvil/lib/anvil/engine.rb | vendor/anvil/lib/anvil/engine.rb | require "anvil"
require "anvil/builder"
require "anvil/helpers"
require "anvil/manifest"
require "anvil/version"
require "progress"
require "thread"
require "uri"
class Anvil::Engine
extend Anvil::Helpers
def self.build(source, options={})
if options[:pipeline]
old_stdout = $stdout.dup
$stdout = ... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/vendor/anvil/lib/anvil/okjson.rb | vendor/anvil/lib/anvil/okjson.rb | # encoding: UTF-8
#
# Copyright 2011, 2012 Keith Rarick
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/lib/push/heroku/command/push.rb | lib/push/heroku/command/push.rb | require "anvil"
require "anvil/engine"
require "cgi"
require "digest/sha2"
require "heroku/command/base"
require "net/https"
require "pathname"
require "progress"
require "tmpdir"
require "uri"
# deploy code
#
class Heroku::Command::Push < Heroku::Command::Base
# push [SOURCE]
#
# deploy code to heroku
#
# ... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
ddollar/heroku-push | https://github.com/ddollar/heroku-push/blob/969cfedfaa28ee3774c4d6ff8528992eae597770/lib/push/heroku/cisaurus/cisaurus.rb | lib/push/heroku/cisaurus/cisaurus.rb | require "json"
class Cisaurus
CISAURUS_CLIENT_VERSION = "0.7-ALPHA"
CISAURUS_HOST = ENV['CISAURUS_HOST'] || "cisaurus.heroku.com"
def initialize(api_key, host = CISAURUS_HOST, api_version = "v1")
protocol = (host.start_with? "localhost") ? "http" : "https"
RestClient.proxy = case protocol
when "h... | ruby | MIT | 969cfedfaa28ee3774c4d6ff8528992eae597770 | 2026-01-04T17:52:56.257680Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/yem__party_influenced_music_ported_to_ace_by_adon237.rb | yem__party_influenced_music_ported_to_ace_by_adon237.rb | #===============================================================================
#
# Yanfly Engine Melody - Party Influenced Music
# Last Date Updated: 2010.06.24
# Level: Normal
# Ported to Ace by Adon237
# No matter how good an RPG's battle music is, players are going to get sick and
# tired of listening to it for t... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Instant_Cast.rb | Instant_Cast.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Instant Cast v1.03
# -- Last Updated: 2012.07.17
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$import... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Move_Restrict_Region.rb | Move_Restrict_Region.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Move Restrict Region v1.03
# -- Last Updated: 2012.01.03
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Class_System.rb | Class_System.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Class System v1.10
# -- Last Updated: 2012.01.29
# -- Level: Normal, Hard
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$i... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | true |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Ace_Status_Menu.rb | Ace_Status_Menu.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Ace Status Menu v1.02
# -- Last Updated: 2011.12.26
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$impo... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | true |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Ace_Message_System.rb | Ace_Message_System.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Ace Message System v1.05
# -- Last Updated: 2012.01.13
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$i... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | true |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Convert_Damage.rb | Convert_Damage.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Convert Damage v1.02
# -- Last Updated: 2012.01.23
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$impor... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Skill_Cost_Manager.rb | Skill_Cost_Manager.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Skill Cost Manager v1.03
# -- Last Updated: 2012.01.23
# -- Level: Normal, Hard, Lunatic
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $i... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | true |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/LSP_Punishment.rb | Battle/LSP_Punishment.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic States Package - Punishment v1.01
# -- Last Updated: 2011.12.15
# -- Level: Lunatic
# -- Requires: YEA - Lunatic States v1.00+
#
#=========================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Lunatic_States.rb | Battle/Lunatic_States.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic States v1.02
# -- Last Updated: 2012.01.30
# -- Level: Lunatic
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$impo... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/LDP_Power.rb | Battle/LDP_Power.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Damage Package - Power v1.00
# -- Last Updated: 2011.12.21
# -- Level: Lunatic
# -- Requires: YEA - Lunatic Damage v1.00+
#
#==============================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Element_Absorb.rb | Battle/Element_Absorb.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Element Absorb v1.01
# -- Last Updated: 2012.01.23
# -- Level: Normal, Hard
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/LOP_Recoil.rb | Battle/LOP_Recoil.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Objects Package - Recoil
# -- Last Updated: 2012.01.14
# -- Level: Lunatic
# -- Requires: YEA - Lunatic Objects v1.02+
#
#==============================================================================
$... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/LOP_Give&Take.rb | Battle/LOP_Give&Take.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Objects Package - Give & Take
# -- Last Updated: 2011.12.27
# -- Level: Lunatic
# -- Requires: YEA - Lunatic Objects v1.02+
#
#============================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Element_Popups.rb | Battle/Element_Popups.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Battle Engine Add-On: Elemental Popups v1.00
# -- Last Updated: 2011.12.26
# -- Level: Normal
# -- Requires: YEA - Ace Battle Engine v1.08+
#
#====================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Enemy_Death_Transform.rb | Battle/Enemy_Death_Transform.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Enemy Death Transform v1.01
# -- Last Updated: 2012.04.10
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/LOP_Destruction.rb | Battle/LOP_Destruction.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Objects Package - Destruction
# -- Last Updated: 2011.12.27
# -- Level: Lunatic
# -- Requires: YEA - Lunatic Objects v1.00+
#
#============================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/LTP_Conditions.rb | Battle/LTP_Conditions.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Targets Package - Conditions v1.00
# -- Last Updated: 2012.01.02
# -- Level: Lunatic
# -- Requires: YEA - Lunatic Targets v1.00+
#
#=======================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Combat_Log_Display.rb | Battle/Combat_Log_Display.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Combat Log Display v1.02
# -- Last Updated: 2012.01.24
# -- Level: Easy
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$imp... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/LTP_Mathematics.rb | Battle/LTP_Mathematics.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Targets Package - Mathematics v1.00
# -- Last Updated: 2012.01.07
# -- Level: Lunatic
# -- Requires: YEA - Lunatic Targets v1.00+
#
#======================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Cast_Animations.rb | Battle/Cast_Animations.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Cast Animations v1.00
# -- Last Updated: 2011.12.18
# -- Level: Easy, Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Death_Common_Event.rb | Battle/Death_Common_Event.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Death Common Events v1.01
# -- Last Updated: 2012.02.03
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Lunatic_Objects.rb | Battle/Lunatic_Objects.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Objects v1.02
# -- Last Updated: 2011.12.27
# -- Level: Lunatic
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$imp... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Lunatic_Parameters.rb | Battle/Lunatic_Parameters.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Parameters v1.01
# -- Last Updated: 2012.01.27
# -- Level: Lunatic
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/LDP_Critical.rb | Battle/LDP_Critical.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Damage Package - Critical v1.01
# -- Last Updated: 2012.02.12
# -- Level: Lunatic
# -- Requires: YEA - Lunatic Damage v1.00+
#
#===========================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/LSP_Protection.rb | Battle/LSP_Protection.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic States Package - Protection v1.00
# -- Last Updated: 2011.12.17
# -- Level: Lunatic
# -- Requires: YEA - Lunatic States v1.00+
#
#=========================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/LDP_Gemini.rb | Battle/LDP_Gemini.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Damage Package - Gemini v1.00
# -- Last Updated: 2011.12.22
# -- Level: Lunatic
# -- Requires: YEA - Lunatic Damage v1.00+
#
#=============================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Command_Autobattle.rb | Battle/Command_Autobattle.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Command Autobattle v1.01
# -- Last Updated: 2011.12.26
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$i... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Extra_Drops.rb | Battle/Extra_Drops.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Extra Drops v1.01
# -- Last Updated: 2011.12.31
# -- Level: Normal
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$imported... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Lunatic_Targets.rb | Battle/Lunatic_Targets.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Lunatic Targets v1.00
# -- Last Updated: 2012.01.02
# -- Level: Lunatic
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.nil?
$imp... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Archeia/YEARepo | https://github.com/Archeia/YEARepo/blob/9549551db08e98cfddc46c1165c2807bc87eabd6/Battle/Enemy_HP_Bars.rb | Battle/Enemy_HP_Bars.rb | #==============================================================================
#
# ▼ Yanfly Engine Ace - Battle Engine Add-On: Enemy HP Bars v1.10
# -- Last Updated: 2012.02.10
# -- Level: Easy, Normal
# -- Requires: YEA - Ace Battle Engine v1.00+.
#
#================================================================... | ruby | MIT | 9549551db08e98cfddc46c1165c2807bc87eabd6 | 2026-01-04T17:52:57.926095Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.