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
jimeh/redistat
https://github.com/jimeh/redistat/blob/4c6a6732bfb4d48266b54cc5f4e695be5ebc0122/lib/redistat/core_ext/date.rb
lib/redistat/core_ext/date.rb
class Date include Redistat::DateHelper def to_time Time.parse(self.to_s) end end
ruby
MIT
4c6a6732bfb4d48266b54cc5f4e695be5ebc0122
2026-01-04T17:32:22.870886Z
false
jimeh/redistat
https://github.com/jimeh/redistat/blob/4c6a6732bfb4d48266b54cc5f4e695be5ebc0122/lib/redistat/mixins/options.rb
lib/redistat/mixins/options.rb
module Redistat module Options def self.included(base) base.extend(ClassMethods) end module ClassMethods def option_accessor(*opts) opts.each do |option| define_method(option) do |*args| if !args.first.nil? options[option.to_sym] = args.first ...
ruby
MIT
4c6a6732bfb4d48266b54cc5f4e695be5ebc0122
2026-01-04T17:32:22.870886Z
false
jimeh/redistat
https://github.com/jimeh/redistat/blob/4c6a6732bfb4d48266b54cc5f4e695be5ebc0122/lib/redistat/mixins/synchronize.rb
lib/redistat/mixins/synchronize.rb
require 'monitor' module Redistat module Synchronize class << self def included(base) base.send(:include, InstanceMethods) end def monitor @monitor ||= Monitor.new end def thread_safe monitor.synchronize do return @thread_safe unless @thread_safe...
ruby
MIT
4c6a6732bfb4d48266b54cc5f4e695be5ebc0122
2026-01-04T17:32:22.870886Z
false
jimeh/redistat
https://github.com/jimeh/redistat/blob/4c6a6732bfb4d48266b54cc5f4e695be5ebc0122/lib/redistat/mixins/date_helper.rb
lib/redistat/mixins/date_helper.rb
module Redistat module DateHelper def to_redistat(depth = nil) Redistat::Date.new(self, depth) end alias :to_rs :to_redistat end end
ruby
MIT
4c6a6732bfb4d48266b54cc5f4e695be5ebc0122
2026-01-04T17:32:22.870886Z
false
jimeh/redistat
https://github.com/jimeh/redistat/blob/4c6a6732bfb4d48266b54cc5f4e695be5ebc0122/lib/redistat/mixins/database.rb
lib/redistat/mixins/database.rb
module Redistat module Database def self.included(base) base.extend(Database) end def db(ref = nil) ref ||= @options[:connection_ref] if !@options.nil? Redistat.connection(ref) end end end
ruby
MIT
4c6a6732bfb4d48266b54cc5f4e695be5ebc0122
2026-01-04T17:32:22.870886Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/test/test_java_class.rb
test/test_java_class.rb
$:.unshift File.join(File.dirname(__FILE__),'..','lib') require 'test/unit' require 'bitescript' class TestJavaClass < Test::Unit::TestCase ['public', 'protected', 'private', 'default'].each do |visibility| line = __LINE__; eval " def test_constructor_on_#{visibility}_class cls = java.lang.String...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/test/test_signature.rb
test/test_signature.rb
require 'test/unit' require 'bitescript/signature' class TestSignature < Test::Unit::TestCase include Java import java.util.ArrayList import java.lang.String import java.lang.Byte import java.lang.Short import java.lang.Character import java.lang.Boolean import java.lang.Integer import java.lang.Long...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/test/test_builder.rb
test/test_builder.rb
require 'test/unit' require 'bitescript' require 'bitescript/builder' class TestBuilder < Test::Unit::TestCase JLong = java.lang.Long JString = java.lang.String System = java.lang.System JRubyMethod = org.jruby.anno.JRubyMethod def new_class_name "Foo" + (System.nano_time + rand(JLong::MAX_VALUE)).to_...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/test/test_generics.rb
test/test_generics.rb
$:.unshift File.join(File.dirname(__FILE__),'..','lib') require 'test/unit' require 'bitescript' class TestGenerics < Test::Unit::TestCase def test_type_signature sig = BiteScript::GenericTypeBuilder.read('Ljava/util/List<TE;>;') assert sig.generic_class? assert_equal 'Ljava/util/List;', sig.raw_type.de...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/test/test_mirror.rb
test/test_mirror.rb
require 'test/unit' require 'bitescript/mirror' class TestMirror < Test::Unit::TestCase include BiteScript def test_varargs_true_on_varargs_method cmirror = ClassMirror.load 'java.lang.String' mmirror = cmirror.getDeclaredMethods('format').first assert mmirror.varargs? end def test_varargs_false_...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/test/test_bytecode.rb
test/test_bytecode.rb
require 'test/unit' require 'bitescript/bytecode' class TestBytecode < Test::Unit::TestCase include BiteScript::Bytecode include BiteScript::ASM import java.lang.System import java.lang.Integer import java.lang.Void class DummyMethod def initialize @all = [] end def method_missing(s...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
true
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/test/test_bitescript.rb
test/test_bitescript.rb
$:.unshift File.join(File.dirname(__FILE__),'..','lib') require 'test/unit' require 'bitescript' class TestBitescript < Test::Unit::TestCase def test_bytecode_defaults_to_current_version spec_version = ENV_JAVA['java.specification.version'] expected_version = BiteScript.const_get("JAVA#{spec_version.gsub('....
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/examples/simple_loop.rb
examples/simple_loop.rb
# Simple Loop # # Run this file to create a SimpleLoop.class file. # It takes one argument and prints it out in a loop # until you stop the process. # # ruby examples/simple_loop.rb # java SimpleLoop repeatMe # require 'bitescript' include BiteScript fb = FileBuilder.build(__FILE__) do public_class "SimpleLoo...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/examples/mixed_bag.rb
examples/mixed_bag.rb
require 'java' require 'jruby' require 'bitescript' import java.util.ArrayList # Construct a class that uses several JVM opcodes and method types builder = BiteScript::FileBuilder.build("somefile.source") do package "org.awesome", "stuff" do public_class "MyClass", object do public_field "list", ArrayList...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript.rb
lib/bitescript.rb
$: << File.dirname(__FILE__) begin require 'bitescript/asm' require 'bitescript/signature' require 'bitescript/bytecode' require 'bitescript/builder' require 'bitescript/mirror' rescue LoadError require 'bitescript/asm3/asm' require 'bitescript/asm3/signature' require 'bitescript/asm3/bytecode' requir...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript/mirror.rb
lib/bitescript/mirror.rb
require 'jruby' module BiteScript::ASM class EnumValue attr_reader :declaring_type, :name def initialize(declaring_type, name) @declaring_type = declaring_type @name = name end end class AnnotationMirror attr_reader :type, :parent def initialize(type, parent=nil) @type = t...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript/bytecode.rb
lib/bitescript/bytecode.rb
require 'bitescript/asm' require 'bitescript/signature' module BiteScript # Bytecode is a simple adapter around an ASM MethodVisitor that makes it look like # JVM assembly code. Included classes must just provide a method_visitor accessor module Bytecode include Signature include ASM JObject = java....
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript/asm.rb
lib/bitescript/asm.rb
require 'java' module BiteScript module ASM begin # try mangled names for the version included with JRuby <=1.6.0.RC2 java.lang.Class.for_name 'jruby.objectweb.asm.Opcodes' # no error, proceed with mangled name asm_package = Java::jruby.objectweb.asm java_import asm_package.O...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript/signature.rb
lib/bitescript/signature.rb
require 'java' module BiteScript module JavaTypes java_import java.lang.Object java_import java.lang.Byte java_import java.lang.Boolean java_import java.lang.Short java_import java.lang.Character java_import java.lang.Integer java_import java.lang.Long java_import java.lang.Float ...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript/builder.rb
lib/bitescript/builder.rb
require 'bitescript/bytecode' require 'bitescript/signature' require 'fileutils' module BiteScript module Util def type_from_dotted(dotted_name) JavaUtilities.get_proxy_class(dotted_name).java_class end end module QuickTypes def void Java::void end def boolean Java::boolea...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript/asm3/mirror.rb
lib/bitescript/asm3/mirror.rb
require 'jruby' module BiteScript::ASM class EnumValue attr_reader :declaring_type, :name def initialize(declaring_type, name) @declaring_type = declaring_type @name = name end end class AnnotationMirror attr_reader :type, :parent def initialize(type, parent=nil) @type = t...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript/asm3/bytecode.rb
lib/bitescript/asm3/bytecode.rb
require 'bitescript/asm3/asm' require 'bitescript/asm3/signature' module BiteScript # Bytecode is a simple adapter around an ASM MethodVisitor that makes it look like # JVM assembly code. Included classes must just provide a method_visitor accessor module Bytecode include Signature include ASM JObje...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript/asm3/asm.rb
lib/bitescript/asm3/asm.rb
require 'java' module BiteScript module ASM begin # try mangled names for the version included with JRuby <=1.6.0.RC2 java.lang.Class.for_name 'jruby.objectweb.asm.Opcodes' # no error, proceed with mangled name asm_package = Java::jruby.objectweb.asm java_import asm_package.O...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript/asm3/signature.rb
lib/bitescript/asm3/signature.rb
require 'java' module BiteScript module JavaTypes java_import java.lang.Object java_import java.lang.Byte java_import java.lang.Boolean java_import java.lang.Short java_import java.lang.Character java_import java.lang.Integer java_import java.lang.Long java_import java.lang.Float ...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
headius/bitescript
https://github.com/headius/bitescript/blob/d78480c301e8fe5a5a5f9528b3180a2169f9c171/lib/bitescript/asm3/builder.rb
lib/bitescript/asm3/builder.rb
require 'bitescript/asm3/bytecode' require 'bitescript/asm3/signature' require 'fileutils' module BiteScript module Util def type_from_dotted(dotted_name) JavaUtilities.get_proxy_class(dotted_name).java_class end end module QuickTypes def void Java::void end def boolean Ja...
ruby
BSD-3-Clause
d78480c301e8fe5a5a5f9528b3180a2169f9c171
2026-01-04T17:32:28.384821Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/test/helper.rb
test/helper.rb
# frozen_string_literal: true gem 'minitest' require 'minitest/autorun' require 'dropcaster' require_relative 'extensions/windows' module DropcasterTest FIXTURES_DIR = File.join(File.dirname(__FILE__), 'fixtures') FIXTURE_ITUNES_MP3 = File.join(FIXTURES_DIR, 'iTunes.mp3') NUMBER_OF_MP3_FILES = 3 NS_ITUNES = ...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/test/extensions/windows.rb
test/extensions/windows.rb
# frozen_string_literal: true # Returns true if we run on a windows platform # # Sample: # # puts "Windows" if Kernel.is_windows? # # http://snippets.dzone.com/posts/show/2112 # def Kernel.is_windows? _, platform, _ = RUBY_PLATFORM.split('-') platform == 'mingw32' end
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/test/unit/test_app.rb
test/unit/test_app.rb
# frozen_string_literal: true require 'helper' require 'open3' require 'uri' require 'json' require_relative 'test_channel_xml' # # End-to-end test # # Same as TestChannelXML, but with the XML generated by calling the bin script # class TestApp < TestChannelXML include DropcasterTest APP_SCRIPT = 'ruby bin/dropca...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/test/unit/test_channel_locator.rb
test/unit/test_channel_locator.rb
# frozen_string_literal: true require 'helper' require 'tmpdir' require 'pry' class TestChannelLocator < MiniTest::Test include DropcasterTest def setup @temp_dir = Dir.mktmpdir end def teardown FileUtils.remove_entry_secure(@temp_dir) end def test_single_file sources = File.join(@temp_dir,...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/test/unit/test_itunes_item.rb
test/unit/test_itunes_item.rb
# frozen_string_literal: true require 'helper' class TestItunesItem < MiniTest::Test include DropcasterTest def setup @item = Dropcaster::Item.new(FIXTURE_ITUNES_MP3) end def test_basics assert_in_delta(3, @item.duration, 0.05) assert_equal(58119, @item.file_size) assert_equal('77bf84447c0f6...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/test/unit/test_channel_xml.rb
test/unit/test_channel_xml.rb
# frozen_string_literal: true require 'helper' require 'xml/libxml' require 'pry' class TestChannelXML < MiniTest::Test include DropcasterTest def setup @options = YAML.load_file(File.join(FIXTURES_DIR, Dropcaster::CHANNEL_YML)) @channel = channel_node(channel_rss) end # # Returnes the XML node fo...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/test/unit/test_channel.rb
test/unit/test_channel.rb
# frozen_string_literal: true require 'helper' class TestChannel < MiniTest::Test include DropcasterTest def setup @options = YAML.load_file(File.join(FIXTURES_DIR, Dropcaster::CHANNEL_YML)) @channel = Dropcaster::Channel.new(FIXTURES_DIR, @options) end def test_item_count assert_equal(NUMBER_OF...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/lib/dropcaster.rb
lib/dropcaster.rb
# frozen_string_literal: true $LOAD_PATH.unshift File.dirname(__FILE__) require 'yaml' require 'active_support/core_ext/date_time/conversions' require 'active_support/core_ext/object/blank' require 'dropcaster/errors' require 'dropcaster/channel' require 'dropcaster/item' require 'dropcaster/channel_file_locator' re...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/lib/dropcaster/version.rb
lib/dropcaster/version.rb
# frozen_string_literal: true module Dropcaster VERSION = '1.2.0' end
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/lib/dropcaster/channel.rb
lib/dropcaster/channel.rb
# frozen_string_literal: true require 'erb' require 'uri' require 'dropcaster/logging' module Dropcaster # # Represents a podcast feed in the RSS 2.0 format # class Channel include Logging include ERB::Util # for h() in the ERB template STORAGE_UNITS = %w[Byte KB MB GB TB].freeze MAX_KEYWORD_...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/lib/dropcaster/channel_file_locator.rb
lib/dropcaster/channel_file_locator.rb
# frozen_string_literal: true module Dropcaster # # Encapsulates the strategy how to find the channel definition file # class ChannelFileLocator class << self # # Locates the channel definition file based on the <tt>sources</tt> directory. # # * If <tt>sources</tt> is a single file ...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/lib/dropcaster/errors.rb
lib/dropcaster/errors.rb
# frozen_string_literal: true module Dropcaster class ConfigurationError < StandardError def initialize(msg) super(msg) end end class MissingAttributeError < ConfigurationError def initialize(missing_attribute) super("#{missing_attribute} is a mandatory channel attribute, but it is missi...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/lib/dropcaster/item.rb
lib/dropcaster/item.rb
# frozen_string_literal: true require 'pathname' require 'mp3info' require 'digest/sha1' require 'dropcaster/logging' module Dropcaster class Item include Logging attr_reader :file_path, :tag, :tag2, :duration, :file_size, :uuid, :pub_date, :lyrics attr_accessor :image_url, :url, :keywords def ini...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/lib/dropcaster/logging.rb
lib/dropcaster/logging.rb
# frozen_string_literal: true require 'null_logger' module Dropcaster module Logging attr_writer :logger def logger @logger ||= NullLogger.new end end end
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/lib/dropcaster/log_formatter.rb
lib/dropcaster/log_formatter.rb
# frozen_string_literal: true require 'logger' module Dropcaster module Logging attr_writer :logger def logger @logger ||= NullLogger.new end end class LogFormatter < Logger::Formatter def call(severity, time, program_name, message) "#{severity}: #{message}\n" end end end
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
nerab/dropcaster
https://github.com/nerab/dropcaster/blob/5446440fc374379dd6b61f67581bc0afe318b593/lib/dropcaster/contributors.rb
lib/dropcaster/contributors.rb
# frozen_string_literal: true require 'octokit' module Dropcaster class << self def contributors @octokit ||= if ENV.include?('GH_TOKEN') Octokit::Client.new(access_token: ENV['GH_TOKEN']) else Octokit::Client.new end @...
ruby
MIT
5446440fc374379dd6b61f67581bc0afe318b593
2026-01-04T17:32:28.122045Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/bench.rb
bench.rb
#!/usr/bin/env ruby # frozen_string_literal: true require "benchmark/ips" require "class_variants" RubyVM::YJIT.enable button_classes = ClassVariants.build( base: "rounded border-2 focus:ring-blue-500", variants: { size: { sm: "text-xs px-1.5 py-1", base: "text-sm px-2 py-1.5", lg: "text-ba...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/test/hash_test.rb
test/hash_test.rb
require "test_helper" class HashTest < Minitest::Test def setup @cv = ClassVariants.build( base: "text-white py-1 px-3 rounded-full", variants: { color: { primary: "bg-blue-500", secondary: "bg-purple-500", success: "bg-green-500" }, size: { ...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/test/process_classes_with_test.rb
test/process_classes_with_test.rb
require "test_helper" class ProcessClassesWithTest < Minitest::Test def teardown ClassVariants.configuration.instance_variable_set(:@process_classes_with, nil) end def test_without_classes_processor assert_equal "border rounded px-2 py-1 p-5", ClassVariants.build(base: "border rounded px-2 py-1 p-5").re...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/test/test_helper.rb
test/test_helper.rb
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) require "class_variants" require "minitest/autorun"
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/test/helper_test.rb
test/helper_test.rb
require "test_helper" class HelperTest < Minitest::Test class BaseClass end class DemoClass < BaseClass include ClassVariants::Helper class_variants base: "rounded border" end class SubClass < DemoClass class_variants base: "bg-black" end def test_inherited mock = Minitest::Mock.new ...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/test/configuration_test.rb
test/configuration_test.rb
require "test_helper" class ConfigurationTest < Minitest::Test def teardown ClassVariants.configuration.instance_variable_set(:@process_classes_with, nil) end def test_configuration_process_classes_with_default refute ClassVariants.configuration.process_classes_with end def test_configure Class...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/test/block_test.rb
test/block_test.rb
require "test_helper" class BlockTest < Minitest::Test def setup @cv = ClassVariants.build do base "text-white py-1 px-3 rounded-full" variant color: :primary, class: "bg-blue-500" variant color: :secondary, class: "bg-purple-500" variant color: :success, class: "bg-green-500" var...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/test/slot_test.rb
test/slot_test.rb
require "test_helper" class SlotTest < Minitest::Test def setup @cv = ClassVariants.build do base do slot :root, class: "rounded py-3 px-5 mb-4" slot :title, class: "font-bold mb-1" end variant variant: :outlined do slot :root, class: "border" end variant v...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/test/merge_test.rb
test/merge_test.rb
require "test_helper" class MergeTest < Minitest::Test def test_hash_merge cv = ClassVariants.build( base: "rounded", variants: { color: { primary: "bg-blue-500", secondary: "bg-purple-500", success: "bg-green-500" } }, default: { colo...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/lib/class_variants.rb
lib/class_variants.rb
# frozen_string_literal: true require "class_variants/version" require "class_variants/action_view/helpers" require "class_variants/configuration" require "class_variants/instance" require "class_variants/helper" require "class_variants/railtie" if defined?(Rails) module ClassVariants class << self def configur...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/lib/generators/class_variants/install/install_generator.rb
lib/generators/class_variants/install/install_generator.rb
# frozen_string_literal: true module ClassVariants module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("templates", __dir__) def copy_initializer template "class_variants.rb", "config/initializers/class_variants.rb" end end end end
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/lib/class_variants/version.rb
lib/class_variants/version.rb
# frozen_string_literal: true module ClassVariants VERSION = "1.1.0" end
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/lib/class_variants/railtie.rb
lib/class_variants/railtie.rb
# frozen_string_literal: true require "rails/railtie" module ClassVariants class Railtie < ::Rails::Railtie initializer "class_variants.action_view" do ActiveSupport.on_load :action_view do require "class_variants/action_view/helpers" include ClassVariants::ActionView::Helpers end ...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/lib/class_variants/configuration.rb
lib/class_variants/configuration.rb
# frozen_string_literal: true module ClassVariants class Configuration def process_classes_with(&block) if block_given? @process_classes_with = block else @process_classes_with end end end end
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/lib/class_variants/helper.rb
lib/class_variants/helper.rb
# frozen_string_literal: true module ClassVariants module Helper module ClassMethods def class_variants(...) singleton_class.instance_variable_get(:@_class_variants_instance).merge(...) end end def self.included(base) base.extend(ClassMethods) base.singleton_class.instanc...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/lib/class_variants/instance.rb
lib/class_variants/instance.rb
# frozen_string_literal: true module ClassVariants class Instance def initialize(...) @bases = [] @variants = [] @defaults = {} @slots = nil merge(...) end def dup self.class.new.tap do |copy| copy.instance_variable_set(:@bases, @bases.dup) copy.insta...
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
avo-hq/class_variants
https://github.com/avo-hq/class_variants/blob/eaae37d8bcba5e1b074e2e895aa194aee73f6d87/lib/class_variants/action_view/helpers.rb
lib/class_variants/action_view/helpers.rb
# frozen_string_literal: true module ClassVariants module ActionView module Helpers def class_variants(...) ClassVariants::Instance.new(...) end end end end
ruby
MIT
eaae37d8bcba5e1b074e2e895aa194aee73f6d87
2026-01-04T17:32:24.770195Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/fabricio_spec.rb
spec/fabricio_spec.rb
require "spec_helper" describe Fabricio do it "has a version number" do expect(Fabricio::VERSION).not_to be nil end end
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/spec_helper.rb
spec/spec_helper.rb
require 'simplecov' require 'helpers/cli_executor' SimpleCov.start do add_group('Authorization', 'lib/fabricio/authorization') add_group('Client', 'lib/fabricio/client') add_group('Networking', 'lib/fabricio/networking') add_group('Service', 'lib/fabricio/service') add_group('Models', 'lib/fabricio/models') ...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/helpers/cli_executor.rb
spec/helpers/cli_executor.rb
module Helpers class CliExecutor def self.json_capture(stream) begin stream = stream.to_s eval "$#{stream} = StringIO.new" yield result = eval("$#{stream}").string ensure eval("$#{stream} = #{stream.upcase}") end JSON.parse(result) end def s...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/service/build_service_spec.rb
spec/lib/fabricio/service/build_service_spec.rb
require 'rspec' require 'webmock/rspec' require 'fabricio/services/build_service' require 'fabricio/authorization/memory_session_storage' describe 'BuildService' do before(:each) do storage = Fabricio::Authorization::MemorySessionStorage.new session = Fabricio::Authorization::Session.new({ ...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/service/organization_service_spec.rb
spec/lib/fabricio/service/organization_service_spec.rb
require 'rspec' require 'webmock/rspec' require 'fabricio/services/organization_service' require 'fabricio/authorization/memory_session_storage' describe 'OrganizationService' do before(:each) do storage = Fabricio::Authorization::MemorySessionStorage.new session = Fabricio::Authorization::Session.new({ ...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/service/version_service_spec.rb
spec/lib/fabricio/service/version_service_spec.rb
require 'rspec' require 'webmock/rspec' require 'fabricio/services/version_service' require 'fabricio/authorization/memory_session_storage' describe 'VersionService' do before(:each) do storage = Fabricio::Authorization::MemorySessionStorage.new session = Fabricio::Authorization::Session.new({ ...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/service/app_service_spec.rb
spec/lib/fabricio/service/app_service_spec.rb
require 'rspec' require 'webmock/rspec' require 'fabricio/services/app_service' require 'fabricio/networking/network_client' require 'fabricio/authorization/memory_session_storage' require 'fabricio/authorization/memory_param_storage' describe 'AppService' do before(:each) do storage = Fabricio::Authorization::...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/model/abstract_model_spec.rb
spec/lib/fabricio/model/abstract_model_spec.rb
require 'rspec' require 'fabricio/models/abstract_model' require 'fabricio/models/organization' describe 'AbstractModel' do it 'should use json keys as methods' do test_value_1 = '1' test_value_2 = '2' test_json = { 'key1' => test_value_1, 'key2' => test_value_2 } model = Fabric...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/authorization/memory_session_storage_spec.rb
spec/lib/fabricio/authorization/memory_session_storage_spec.rb
require 'rspec' require 'fabricio/authorization/memory_session_storage' describe 'MemorySessionStorage' do before(:each) do @storage = Fabricio::Authorization::MemorySessionStorage.new end it 'should store session' do mockSession = Object.new @storage.store_session(mockSession) result = @stora...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/authorization/file_param_storage_spec.rb
spec/lib/fabricio/authorization/file_param_storage_spec.rb
require 'rspec' require 'fabricio/authorization/file_session_storage' require 'fabricio/authorization/file_param_storage' describe 'FileParamStorage' do let(:path) { '/path/to/params.yml' } let(:yaml) do yaml = <<-YAML organization_id: my_organization app_id: my_app YAML YAML.load(yaml) end ...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/authorization/abstract_session_storage_spec.rb
spec/lib/fabricio/authorization/abstract_session_storage_spec.rb
require 'rspec' require 'fabricio/authorization/abstract_session_storage' require 'fabricio/authorization/session' describe 'Storage' do it 'should throw exception on session obtain event' do storage = Fabricio::Authorization::AbstractSessionStorage.new expect { storage.obtain_session }.to raise_e...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/authorization/authorization_client_spec.rb
spec/lib/fabricio/authorization/authorization_client_spec.rb
require 'rspec' require 'webmock/rspec' require 'fabricio/authorization/authorization_client' require 'fabricio/authorization/session' describe 'Authorization Client' do TEST_STRING = 'string' TEST_TOKEN = 'token' TEST_NETWORK_TOKEN = 'network_token' before(:each) do @client = Fabricio::Authorization::Au...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/networking/organization_request_model_factory_spec.rb
spec/lib/fabricio/networking/organization_request_model_factory_spec.rb
require 'rspec' require 'fabricio/networking/organization_request_model_factory' require 'fabricio/networking/request_model' require 'fabricio/authorization/session' describe 'OrganizationRequestModelFactory' do before(:each) do param_storage = Fabricio::Authorization::MemoryParamStorage.new param_storage.s...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/networking/app_request_model_factory_spec.rb
spec/lib/fabricio/networking/app_request_model_factory_spec.rb
require 'rspec' require 'fabricio/networking/app_request_model_factory' require 'fabricio/networking/request_model' require 'fabricio/authorization/session' require 'fabricio/authorization/memory_param_storage' describe 'AppRequestModelFactory' do before(:each) do param_storage = Fabricio::Authorization::Memory...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/networking/version_request_model_factory_spec.rb
spec/lib/fabricio/networking/version_request_model_factory_spec.rb
require 'rspec' require 'fabricio/networking/version_request_model_factory' require 'fabricio/networking/request_model' require 'fabricio/authorization/session' describe 'VersionRequestModelFactory' do before(:each) do param_storage = Fabricio::Authorization::MemoryParamStorage.new param_storage.store_organ...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/networking/network_client_spec.rb
spec/lib/fabricio/networking/network_client_spec.rb
require 'rspec' require 'webmock/rspec' require 'fabricio/networking/network_client' require 'fabricio/networking/request_model' require 'fabricio/networking/organization_request_model_factory' require 'fabricio/authorization/session' require 'fabricio/authorization/authorization_client' require 'fabricio/authorization...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/networking/build_request_model_factory_spec.rb
spec/lib/fabricio/networking/build_request_model_factory_spec.rb
require 'rspec' require 'fabricio/networking/build_request_model_factory' require 'fabricio/networking/request_model' require 'fabricio/authorization/session' describe 'BuildRequestModelFactory' do before(:each) do param_storage = Fabricio::Authorization::MemoryParamStorage.new param_storage.store_organizat...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/cli/cli_spec.rb
spec/lib/fabricio/cli/cli_spec.rb
require 'rspec' require 'webmock/rspec' require 'fabricio/cli/cli' require 'fabricio/cli/app' require 'fabricio/authorization/file_session_storage' require 'fabricio/authorization/file_param_storage' require 'fabricio/authorization/session' describe 'Cli' do let(:cli) { Fabricio::CLI.new } subject { cli } befo...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/spec/lib/fabricio/client/client_spec.rb
spec/lib/fabricio/client/client_spec.rb
require 'rspec' require 'webmock/rspec' require 'fabricio/client/client' require 'fabricio/authorization/memory_session_storage' require 'fabricio/authorization/memory_param_storage' require 'fabricio/authorization/session' describe 'Client' do before(:each) do @storage = Fabricio::Authorization::MemorySessionS...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio.rb
lib/fabricio.rb
require 'fabricio/version' require 'fabricio/client/client' require 'fabricio/models/credential' require 'fabricio/authorization/file_session_storage' require 'fabricio/authorization/file_param_storage' require 'fabricio/authorization/memory_session_storage' require 'fabricio/authorization/memory_param_storage'
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/version.rb
lib/fabricio/version.rb
module Fabricio VERSION = "1.3.0" end
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/services/app_service.rb
lib/fabricio/services/app_service.rb
require 'fabricio/networking/app_request_model_factory' require 'fabricio/networking/network_client' require 'fabricio/models/app' require 'fabricio/models/point' require 'fabricio/models/issue' require 'fabricio/models/issue_session' require 'fabricio/models/custom_event_type' require 'fabricio/models/custom_event_att...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/services/organization_service.rb
lib/fabricio/services/organization_service.rb
require 'fabricio/networking/organization_request_model_factory' require 'fabricio/networking/network_client' require 'fabricio/models/organization' module Fabricio module Service # Service responsible for fetching different Organization information class OrganizationService # Initializes a new Organi...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/services/version_service.rb
lib/fabricio/services/version_service.rb
require 'fabricio/networking/version_request_model_factory' require 'fabricio/networking/network_client' module Fabricio module Service # Service responsible for fetching different Version information class VersionService # Initializes a new BuildService object. # # @param param_storage [F...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/services/build_service.rb
lib/fabricio/services/build_service.rb
require 'fabricio/networking/build_request_model_factory' require 'fabricio/networking/network_client' require 'fabricio/models/build' module Fabricio module Service # Service responsible for fetching different Build information class BuildService # Initializes a new BuildService object. # ...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/authorization/session.rb
lib/fabricio/authorization/session.rb
module Fabricio module Authorization # This class is a data structure that holds tokens and identifiers necessary for making API requests. class Session attr_reader :access_token, :refresh_token # Initializes a new Session object # # @param attributes [Hash] Hash containing access and...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/authorization/file_param_storage.rb
lib/fabricio/authorization/file_param_storage.rb
require 'fabricio/authorization/abstract_param_storage' require 'fileutils' require 'yaml' # Constants PARAM_FILE_PATH = "#{FABRICIO_DIRECTORY_PATH}/.params" module Fabricio module Authorization # Stores default params as organization, app, etc. class FileParamStorage < AbstractParamStorage def initia...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/authorization/abstract_session_storage.rb
lib/fabricio/authorization/abstract_session_storage.rb
require 'fabricio/authorization/session' module Fabricio module Authorization # A class providing an interface for implementing Fabric session storage. Subclass it to provide your own behaviour (e.g. storing session data in database) class AbstractSessionStorage # Override it with your own behavior of...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/authorization/authorization_client.rb
lib/fabricio/authorization/authorization_client.rb
require 'faraday' require 'json' require 'fabricio/authorization/session' require 'fabricio/services/organization_service' AUTH_API_URL = 'https://fabric.io/oauth/token' ORGANIZATION_API_URL = 'https://fabric.io/api/v2/organizations' module Fabricio module Authorization # A class used for user authorization. ...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/authorization/file_session_storage.rb
lib/fabricio/authorization/file_session_storage.rb
require 'fabricio/authorization/abstract_session_storage' require 'fileutils' require 'yaml' # Constants FABRICIO_DIRECTORY_PATH = "#{Dir.home}/.fabricio" SESSION_FILE_PATH = "#{FABRICIO_DIRECTORY_PATH}/.session" module Fabricio module Authorization # The only one built-in session storage. Stores current sessio...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/authorization/memory_session_storage.rb
lib/fabricio/authorization/memory_session_storage.rb
require 'fabricio/authorization/abstract_session_storage' module Fabricio module Authorization # The only one built-in session storage. Stores current session in memory. class MemorySessionStorage < AbstractSessionStorage # Initializes a new MemorySessionStorage object # # @return [Fabrici...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/authorization/abstract_param_storage.rb
lib/fabricio/authorization/abstract_param_storage.rb
module Fabricio module Authorization # A class providing an interface for implementing Fabric session storage. Subclass it to provide your own behaviour (e.g. storing session data in database) class AbstractParamStorage # Returns all stored variable # # @return [Hash] def obtain raise N...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/authorization/memory_param_storage.rb
lib/fabricio/authorization/memory_param_storage.rb
require 'fabricio/authorization/abstract_param_storage' module Fabricio module Authorization # Stores default params as organization, app, etc. class MemoryParamStorage < AbstractParamStorage # Initializes a new ParamStorage object # # @return [Fabricio::Authorization::ParamStorage] ...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/models/custom_event_attribute_name.rb
lib/fabricio/models/custom_event_attribute_name.rb
require 'fabricio/models/abstract_model' module Fabricio module Model # This model represents a custom event attribute name class CustomEventAttributeName < AbstractModel attr_reader :type, :name # Returns a CustomEventAttributeName model object # # @param attributes [Hash] # @...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/models/custom_event_attribute_value.rb
lib/fabricio/models/custom_event_attribute_value.rb
require 'fabricio/models/abstract_model' module Fabricio module Model # This model represents a custom event attribute value class CustomEventAttributeValue < AbstractModel attr_reader :attribute_value, :count, :percent, :week_ago_delta # Returns a CustomEventAttributeValue mod...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/models/custom_event_type.rb
lib/fabricio/models/custom_event_type.rb
require 'fabricio/models/abstract_model' module Fabricio module Model # This model represents a custom event type class CustomEventType < AbstractModel attr_reader :type, :key, :count # Returns a CustomEventType model object # # @param attributes [Hash] # @return [Fabricio::Mod...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/models/build.rb
lib/fabricio/models/build.rb
require 'fabricio/models/abstract_model' module Fabricio module Model # This model represents an application build class Build < AbstractModel attr_reader :id, :version, :build_number, :release_notes, :distributed_at # Returns a Build model object # # @param attributes [Hash] #...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/models/issue.rb
lib/fabricio/models/issue.rb
require 'fabricio/models/abstract_model' module Fabricio module Model # This model represents an application build class Issue < AbstractModel attr_reader :id, :displayId, :externalId, :title, :subtitle, :createdAt, :type, :state, :occurrenceCount, ...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/models/point.rb
lib/fabricio/models/point.rb
require 'date' module Fabricio module Model # This model represents a data point with two fields - timestamp and value class Point attr_reader :date, :value # Returns a data point with two fields - timestamp and value # # @param attributes [Hash] # @return [Fabricio::Model::Poi...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/models/credential.rb
lib/fabricio/models/credential.rb
module Fabricio module Model # This model represents a credential class Credential attr_reader :email, :password # Returns a Credential model object # # @param email [String] # @param password [String] # @return [Fabricio::Model::Credential] def initialize(email, pas...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/models/app.rb
lib/fabricio/models/app.rb
require 'fabricio/models/abstract_model' module Fabricio module Model # This model represents an application class App < AbstractModel attr_reader :id, :name, :bundle_id, :created_at, :platform, :icon_url # Returns an App model object # # @param attributes [Hash] # @return [Fab...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false
strongself/fabricio
https://github.com/strongself/fabricio/blob/8b06328598e0a8ff5d283feac416727e8a5acb19/lib/fabricio/models/issue_session.rb
lib/fabricio/models/issue_session.rb
require 'fabricio/models/abstract_model' module Fabricio module Model # This model represents an application build class IssueSession < AbstractModel attr_reader :id, :created_at, :next_session_id, :prev_session_id # Returns a Build model object # # @param attribute...
ruby
MIT
8b06328598e0a8ff5d283feac416727e8a5acb19
2026-01-04T17:32:29.574074Z
false