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
evilmartians/callback_hell
https://github.com/evilmartians/callback_hell/blob/558adc85e0de09dd7479336c74add51ddeff0c6c/lib/callback_hell/reports/callbacks/line.rb
lib/callback_hell/reports/callbacks/line.rb
# frozen_string_literal: true module CallbackHell module Reports module Callbacks class Line < LineBase private def report_title "Callback Hell callbacks report:" end def format_callback_name(callback) "#{callback.kind}_#{callback.callback_group}" ...
ruby
MIT
558adc85e0de09dd7479336c74add51ddeff0c6c
2026-01-04T17:45:07.140490Z
false
evilmartians/callback_hell
https://github.com/evilmartians/callback_hell/blob/558adc85e0de09dd7479336c74add51ddeff0c6c/lib/callback_hell/reports/callbacks/github.rb
lib/callback_hell/reports/callbacks/github.rb
# frozen_string_literal: true module CallbackHell module Reports module Callbacks class Github < GithubBase private def report_title "Callback Hell callbacks report" end def format_group_name(callback) "#{timing_symbol(callback.kind)}/#{callback.callbac...
ruby
MIT
558adc85e0de09dd7479336c74add51ddeff0c6c
2026-01-04T17:45:07.140490Z
false
evilmartians/callback_hell
https://github.com/evilmartians/callback_hell/blob/558adc85e0de09dd7479336c74add51ddeff0c6c/lib/callback_hell/reports/validations/table.rb
lib/callback_hell/reports/validations/table.rb
# frozen_string_literal: true module CallbackHell module Reports module Validations class Table < TableBase private def report_title "Callback Hell validations report" end def format_group_name(callback) callback.validation_type end end ...
ruby
MIT
558adc85e0de09dd7479336c74add51ddeff0c6c
2026-01-04T17:45:07.140490Z
false
evilmartians/callback_hell
https://github.com/evilmartians/callback_hell/blob/558adc85e0de09dd7479336c74add51ddeff0c6c/lib/callback_hell/reports/validations/line.rb
lib/callback_hell/reports/validations/line.rb
# frozen_string_literal: true module CallbackHell module Reports module Validations class Line < LineBase private def report_title "Callback Hell validations report:" end def format_callback_name(callback) if callback.method_name.is_a?(Symbol) || callba...
ruby
MIT
558adc85e0de09dd7479336c74add51ddeff0c6c
2026-01-04T17:45:07.140490Z
false
evilmartians/callback_hell
https://github.com/evilmartians/callback_hell/blob/558adc85e0de09dd7479336c74add51ddeff0c6c/lib/callback_hell/reports/validations/github.rb
lib/callback_hell/reports/validations/github.rb
# frozen_string_literal: true module CallbackHell module Reports module Validations class Github < GithubBase private def report_title "Callback Hell validations report" end def format_group_name(callback) callback.validation_type end end ...
ruby
MIT
558adc85e0de09dd7479336c74add51ddeff0c6c
2026-01-04T17:45:07.140490Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/ext/qml/extconf.rb
ext/qml/extconf.rb
require 'mkmf' require 'pathname' require '../../lib/qml/platform' # find qmake qmake = with_config('qmake') || find_executable('qmake') debug_enabled = enable_config('debug') clean_enabled = enable_config('clean') qmake_opts = debug_enabled ? 'CONFIG+=debug' : '' # build libqmlbind qmlbind_dir = Pathname.pwd + 'li...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml_spec.rb
spec/qml_spec.rb
require 'spec_helper' describe QML do it 'should have a version number' do expect(QML::VERSION).not_to be_nil end end
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/spec_helper.rb
spec/spec_helper.rb
require 'coveralls' Coveralls.wear! $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'qml' Dir.glob(Pathname(__FILE__) +'../shared/**/*.rb') do |f| require f end QML.init(%w{-platform offscreen})
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/reactive_spec.rb
spec/qml/reactive_spec.rb
require 'spec_helper' describe QML::Reactive do let(:button_class) do Class.new do include QML::Reactive signal :pressed property(:is_pressed) { false } property :id property(:is_id_changed) { false } on :pressed do |pos| self.is_pressed = true end on_chan...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/js_function_spec.rb
spec/qml/js_function_spec.rb
require 'spec_helper' describe QML::JSFunction do let(:function) do QML.engine.evaluate <<-JS (function(a, b) { return a + b; }); JS end let(:constructor) do QML.engine.evaluate <<-JS (function(a, b) { this.value = a + b; }); JS end describe '#call' ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/js_object_spec.rb
spec/qml/js_object_spec.rb
require 'spec_helper' describe QML::JSObject do let(:obj_script) do <<-JS ({one: 1, two: 2}) JS end let(:obj) { QML.engine.evaluate(obj_script) } describe '#[]' do it 'get property' do expect(obj['one']).to eq(1) expect(obj['two']).to eq(2) end end describe '#each' do ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/interface_spec.rb
spec/qml/interface_spec.rb
require 'spec_helper' describe QML::Interface do describe '.notify_error' do let(:error) do begin fail "hoge" rescue => e e end end it 'prints an error to stderr' do expect { QML::Interface.notify_error(error) } .to output(/#{error.message}/).to_stderr ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/qt_spec.rb
spec/qml/qt_spec.rb
require 'spec_helper' describe QML do describe '.qt' do it 'returns the Qt object' do expect(QML.qt.md5('hoge')).to eq('ea703e7aa1efda0064eaa507d9e8ab7e') end end end
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/to_qml_spec.rb
spec/qml/to_qml_spec.rb
require 'spec_helper' describe '#to_qml' do let(:through) { QML.engine.evaluate("(function(x) { return x; })") } primitives = { Fixnum: 10, Float: 1.5, Rational: 5/2r, TrueClass: true, FalseClass: false, String: 'ほげ' } primitives.each do |type, value| describe "#{type}\#to_qml" d...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/signal_connect_spec.rb
spec/qml/signal_connect_spec.rb
require 'spec_helper' describe "QML signal connection" do let(:component) do QML::Component.new(data: <<-QML) import QtQuick 2.0 QtObject { signal someSignal(var arg) } QML end let(:obj) { component.create } it "connects QML signals to ruby proc" do received_arg = nil ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/signal_spec.rb
spec/qml/signal_spec.rb
require 'spec_helper' describe QML::Signal do before do @signal = QML::Signal.new([:foo, :bar]) end describe 'connection' do describe '#connect, #emit' do before do @signal.connect { |foo, bar| @received = [foo, bar] } end it 'connects a block and calls it' do @sign...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/application_spec.rb
spec/qml/application_spec.rb
require 'spec_helper' describe QML::Application do let(:application) { QML.application } describe '#engine' do it 'returns the default engine of the application' do expect(application.engine).to be_a(QML::Engine) end end describe '#load_data' do let(:data) do <<-EOS import QtQu...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/access_spec.rb
spec/qml/access_spec.rb
require 'spec_helper' describe QML::Access do let(:component) { QML::Component.new data: data } let(:root) { component.create } describe '.register_to_qml' do context 'when namespace, version, name are given' do let(:data) do <<-EOS import QtQuick 2.2 import AccessExampl...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/plugin_loader_spec.rb
spec/qml/plugin_loader_spec.rb
require 'spec_helper' describe QML::PluginLoader do let(:loader) { QML::PluginLoader.new path, 'rubyqml-plugin' } describe '#instance' do context 'with signle path' do let(:path) { QML::ROOT_PATH + 'ext/qml/rubyqml-plugin' + QML::PluginLoader.lib_filename('rubyqml-plugin') } let(:loader) { QML::...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/engine_spec.rb
spec/qml/engine_spec.rb
require 'spec_helper' describe QML::Engine do describe '#add_import_path' do context 'with test module' do let(:path) { QML::ROOT_PATH + 'spec/assets' } before do QML.engine.add_import_path(path) end let(:data) do <<-EOS import QtQuick 2.0 import tes...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/component_spec.rb
spec/qml/component_spec.rb
require 'spec_helper' describe QML::Component do describe '#create' do context 'with string' do let(:data) do <<-EOS import QtQuick 2.0 QtObject { property string name: 'foo' } EOS end let(:component) { QML::Component.new(data: data) }...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/js_array_spec.rb
spec/qml/js_array_spec.rb
require 'spec_helper' describe QML::JSArray do let(:array_script) do <<-JS [1, 2, 3] JS end let(:array) { QML.engine.evaluate(array_script) } describe '#each' do it 'enumerates each values' do expect(array.each.to_a).to eq [1,2,3] end end describe '#to_a' do it 'converts ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/data/array_model_spec.rb
spec/qml/data/array_model_spec.rb
require 'spec_helper' describe QML::ArrayModel do class TestArrayModel < QML::ArrayModel def initialize super(:title, :number) end end let(:original_array) do [ {title: 'hoge', number: 12}, {title: 'piyo', number: 34}, {title: 'fuga', number: 1234} ] end let(:additi...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/data/query_model_spec.rb
spec/qml/data/query_model_spec.rb
require 'spec_helper' describe QML::QueryModel do let(:klass) do Class.new(QML::QueryModel) do attr_accessor :data def initialize(count) @data = count.times.map { |i| {title: "title: #{i}", number: i} } super(:title, :number) end def query(offset, count) @data[o...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/qml/data/list_model_spec.rb
spec/qml/data/list_model_spec.rb
require 'spec_helper' describe QML::ListModel do let(:model) { QML::ListModel.allocate } describe '#count' do it 'fails with NotImplementedError by default' do expect { model.count }.to raise_error(NotImplementedError) end end describe '#[]' do it 'fails with NotImplementedError by default'...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/shared/qml/access_example.rb
spec/shared/qml/access_example.rb
class AccessExample include QML::Access property :text signal :some_signal, [:arg] def some_method(a, b) a + b end register_to_qml under: 'AccessExampleNS', version: '1.2', name: 'AccessExample' end module AccessExampleModule VERSION = '0.1.0' class AccessExample include QML::Access reg...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/spec/shared/qml/data/list_model.rb
spec/shared/qml/data/list_model.rb
shared_context 'ListView for model available' do let(:component) do QML::Component.new data: <<-EOS import QtQuick 2.0 ListView { model: ListModel {} delegate: Item { property var itemTitle: title property var itemNumber: number } } EOS end let...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/examples/todo_sequel/todo_sequel.rb
examples/todo_sequel/todo_sequel.rb
$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__) require 'qml' require 'sequel' module Examples module Todo VERSION = '0.1' DB = Sequel.sqlite DB.create_table :todos do primary_key :id String :title String :description Time :due_date end class SequelModel <...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/examples/twitter/twitter.rb
examples/twitter/twitter.rb
$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__) require 'qml' require 'twitter' require 'yaml' module Examples module Twitter VERSION = '0.1' class TweetFetcher def initialize config_data = YAML.load((Pathname(__FILE__) + '../config.yml').read) config_keys = %w{consumer_k...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/examples/todo_array/todo_array.rb
examples/todo_array/todo_array.rb
$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__) require 'qml' require 'pathname' module Examples module Todo VERSION = '0.1' class TodoController include QML::Access register_to_qml property(:title) { '' } property(:description) { '' } property(:due_date) { '' } ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/examples/fizzbuzz/fizzbuzz.rb
examples/fizzbuzz/fizzbuzz.rb
$LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__) require 'qml' require 'pathname' module Examples module FizzBuzz VERSION = '0.1' class FizzBuzz include QML::Access register_to_qml property(:input) { '0' } property(:result) { '' } signal :inputWasFizzBuzz, [] ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml.rb
lib/qml.rb
require 'qml/version' require 'qml/errors' require 'qml/qml' require 'qml/core_ext' require 'qml/plugin_loader' require 'qml/plugins' require 'qml/component' require 'qml/engine' require 'qml/application' require 'qml/signal' require 'qml/reactive' require 'qml/access' require 'qml/qt' require 'qml/root_path' require...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/plugins.rb
lib/qml/plugins.rb
require 'pathname' module QML # @api private module Plugins class << self def rubyqml @plugin ||= QML::PluginLoader.new(ROOT_PATH + "ext/qml/rubyqml-plugin", "rubyqml-plugin").instance end end end end
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/platform.rb
lib/qml/platform.rb
module QML module Platform module_function def windows? !!(/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) end def mac? !!(/darwin/ =~ RUBY_PLATFORM) end end end
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/component.rb
lib/qml/component.rb
require 'qml/engine' module QML # The Component class is used to instantiate objects like Window / ApplicationWindow objects from QML files. # # You usually do not need to use this class because Application#load, #load_path, #load_data do same # for the application top-level objects such as main windows. # @...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/data.rb
lib/qml/data.rb
require 'qml/data/list_model_access' require 'qml/data/list_model' require 'qml/data/array_model' require 'qml/data/query_model'
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/root_path.rb
lib/qml/root_path.rb
module QML ROOT_PATH = Pathname.new(__FILE__) + '../../..' end
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/version.rb
lib/qml/version.rb
module QML VERSION = '1.0.2' end
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/application.rb
lib/qml/application.rb
module QML # {Application} represents a Qt application instance. # It provides the event loop and manages Application-level configurations. # # @see http://qt-project.org/doc/qt-5/qapplication.html QApplication (C++) class Application # @return [Engine] The engine of the application. def engine ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/core_ext.rb
lib/qml/core_ext.rb
require 'qml/core_ext/to_qml'
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/errors.rb
lib/qml/errors.rb
module QML class PluginError < StandardError; end class QMLError < StandardError; end class AccessError < StandardError; end end
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/plugin_loader.rb
lib/qml/plugin_loader.rb
require 'pathname' require 'qml/platform' module QML # {PluginLoader} loads Qt C++ plugins and enables you to use your Qt C++ codes from Ruby easily. # @see http://qt-project.org/doc/qt-5/qpluginloader.html QPluginLoader (C++) class PluginLoader # @overload initialize(path) # @param [String|Pathname] ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/js_array.rb
lib/qml/js_array.rb
module QML class JSArray < JSObject # @return [Array] def to_a each.to_a end end end
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/interface.rb
lib/qml/interface.rb
module QML module Interface def self.call_method(obj, name, args) begin obj.__send__ name, *args rescue => error notify_error(error) nil end end # Called when an Ruby error is occured in executing Qt code. # @param error The error (or the exception) def ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/reactive.rb
lib/qml/reactive.rb
module QML module Reactive # @!parse extend ClassMethods # @api private class PropertyInfo attr_accessor :initializer end # @api private class SignalInfo attr_accessor :params attr_accessor :listeners def initialize @listeners = [] end end def...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/qml.rb
lib/qml/qml.rb
require_relative '../../ext/qml/qml'
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/js_util.rb
lib/qml/js_util.rb
module QML module JSUtil def self.data @data ||= QML.engine.evaluate <<-JS ({ classes: { Date: Date } }) JS end def self.classes data.classes end end end
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/access.rb
lib/qml/access.rb
module QML # {Access} enables classes to be exposed to QML. # module Access # @!parse include Reactive # @!parse extend ClassMethods def set_signal_emitter(emitter) self.class.signals.each do |name| __send__(name).connect do |*args| emitter.emit(name, args) end ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/js_object.rb
lib/qml/js_object.rb
module QML # The JSObject represents JavaScript objects. class JSObject alias_method :each, :each_pair # @return [Array<String>] def keys each.map { |k, v| k } end # @return [Array] def values each.map { |k, v| v } end # @return [Hash] def to_hash {}.tap do ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/proc_access.rb
lib/qml/proc_access.rb
module QML class ProcAccess include Access register_to_qml under: 'RubyQml', version: QML::VERSION def call(args) @proc.call(*args) end # @return [QML::JSFunction] def self.wrap_proc(prc) @bind_call ||= QML.engine.evaluate <<-JS (function (access) { return access.call.bin...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/qt.rb
lib/qml/qt.rb
module QML module_function # @example # def set_app_name # QML.qt.application.name = 'appname' # end # @return [JSObject] QML Qt namespace object # @see http://doc.qt.io/qt-5/qml-qtqml-qt.html def qt @qt ||= begin component = QML::Component.new data: <<-QML import QtQuick 2.0...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/engine.rb
lib/qml/engine.rb
module QML # @!parse class Engine < QtObjectBase; end # {Engine} provides a QML engine. # # @see http://qt-project.org/doc/qt-5/qqmlengine.html QQmlEngine (C++) class Engine # Evaluates an JavaScript expression # @param [String] str The JavaScript string # @param [String] file The file name ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/name_helper.rb
lib/qml/name_helper.rb
module QML module NameHelper module_function def to_underscore(sym) sym.to_s.gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').gsub(/([a-z\d])([A-Z])/,'\1_\2').downcase.to_sym end def to_upper_underscore(sym) to_underscore(sym).upcase end end end
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/signal.rb
lib/qml/signal.rb
module QML class Signal class Connection def initialize(signal, listener) @signal = signal @listener = listener end # Disconnects the connection. def disconnect @signal.disconnect(@listener) end end attr_reader :arity # Initializes the Signal....
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/core_ext/to_qml.rb
lib/qml/core_ext/to_qml.rb
class Numeric def to_qml to_f end end class String def to_qml self end end class Symbol def to_qml to_s end end class TrueClass def to_qml self end end class FalseClass def to_qml self end end class NilClass def to_qml self end end class Array def to_qml QML....
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/data/query_model.rb
lib/qml/data/query_model.rb
module QML # {QueryModel} provides a list model implementation with database backends like ActiveRecord. class QueryModel < ListModel attr_reader :count # @param [Array<Symbol|String>] columns def initialize(*columns) super @count = 0 @caches = [] update end def [](inde...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/data/list_model_access.rb
lib/qml/data/list_model_access.rb
module QML # @api private class ListModelAccess include Access signal :begin_insert, [:first, :last] signal :end_insert signal :begin_move, [:first, :last, :dest] signal :end_move signal :begin_remove, [:first, :last] signal :end_remove signal :update, [:first, :last] signal :be...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/data/array_model.rb
lib/qml/data/array_model.rb
module QML # {ArrayModel} is one of ruby-qml's list models and it stores data in Array simply. class ArrayModel < ListModel # @param [Array<Symbol|String>] columns def initialize(*columns) super @array = [] end # Duplicates the internal array and returns it. # @return [Array] d...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
seanchas116/ruby-qml
https://github.com/seanchas116/ruby-qml/blob/569af4c31460d2946c18346dc94751c77b1d4dfc/lib/qml/data/list_model.rb
lib/qml/data/list_model.rb
module QML # {ListModel} is the base class of list models which provides data to QML list views. # @see http://qt-project.org/doc/qt-5/qabstractitemmodel.html QAbstractItemModel (C++) # @see http://qt-project.org/doc/qt-5/qabstractlistmodel.html QAbstractListModel (C++) class ListModel include Enumerable ...
ruby
MIT
569af4c31460d2946c18346dc94751c77b1d4dfc
2026-01-04T17:45:04.102420Z
false
inkstak/activejob-status
https://github.com/inkstak/activejob-status/blob/e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84/spec/spec_helper.rb
spec/spec_helper.rb
# frozen_string_literal: true require "bundler/setup" Bundler.setup unless RUBY_ENGINE == "truffleruby" require "simplecov" SimpleCov.start end require "active_job" require "activejob-status" require "timecop" Dir.mkdir("tmp") unless Dir.exist?("tmp") ActiveJob::Base.queue_adapter = :test ActiveJob::Base.logge...
ruby
MIT
e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84
2026-01-04T17:45:06.564606Z
false
inkstak/activejob-status
https://github.com/inkstak/activejob-status/blob/e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84/spec/jobs/test_jobs.rb
spec/jobs/test_jobs.rb
# frozen_string_literal: true class BaseJob < ActiveJob::Base include ActiveJob::Status def perform end end class AsyncJob < BaseJob self.queue_adapter = :async def perform(sleep_time = 1) sleep(sleep_time) end end class FailedJob < BaseJob def perform raise "Something went wrong" end end ...
ruby
MIT
e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84
2026-01-04T17:45:06.564606Z
false
inkstak/activejob-status
https://github.com/inkstak/activejob-status/blob/e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84/spec/specs/active_job/status_spec.rb
spec/specs/active_job/status_spec.rb
# frozen_string_literal: true require_relative "../../spec_helper" require_relative "../../jobs/test_jobs" RSpec.describe ActiveJob::Status do # FIXME: weird error on JRUBY, happening randomly, # where keyword arguments are not passed as keyword arguments but with regular # arguments # if RUBY_ENGINE == "jr...
ruby
MIT
e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84
2026-01-04T17:45:06.564606Z
false
inkstak/activejob-status
https://github.com/inkstak/activejob-status/blob/e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84/lib/activejob-status.rb
lib/activejob-status.rb
# frozen_string_literal: true require "active_support/concern" require "active_support/core_ext/hash" require "active_support/core_ext/enumerable" require "active_job" require "activejob-status/storage" require "activejob-status/status" require "activejob-status/progress" require "activejob-status/throttle" module Ac...
ruby
MIT
e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84
2026-01-04T17:45:06.564606Z
false
inkstak/activejob-status
https://github.com/inkstak/activejob-status/blob/e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84/lib/activejob-status/storage.rb
lib/activejob-status/storage.rb
# frozen_string_literal: true module ActiveJob module Status class Storage def initialize(options = {}) options.assert_valid_keys(:expires_in, :throttle_interval) @expires_in = options[:expires_in] @throttle = ActiveJob::Status::Throttle.new(options[:throttle_interval]) end ...
ruby
MIT
e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84
2026-01-04T17:45:06.564606Z
false
inkstak/activejob-status
https://github.com/inkstak/activejob-status/blob/e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84/lib/activejob-status/version.rb
lib/activejob-status/version.rb
# frozen_string_literal: true module ActiveJob module Status VERSION = "1.0.2" end end
ruby
MIT
e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84
2026-01-04T17:45:06.564606Z
false
inkstak/activejob-status
https://github.com/inkstak/activejob-status/blob/e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84/lib/activejob-status/throttle.rb
lib/activejob-status/throttle.rb
# frozen_string_literal: true module ActiveJob module Status class Throttle def initialize(interval) @interval = interval @started_at = Time.current end def wrap(force: false) return yield if force || @interval.nil? || @interval.zero? now = Time.current ...
ruby
MIT
e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84
2026-01-04T17:45:06.564606Z
false
inkstak/activejob-status
https://github.com/inkstak/activejob-status/blob/e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84/lib/activejob-status/status.rb
lib/activejob-status/status.rb
# frozen_string_literal: true module ActiveJob module Status class Status delegate :[], :to_s, :to_json, :inspect, to: :read delegate :queued?, :working?, :completed?, :failed?, to: :status_inquiry def initialize(job, options = {}) options = ActiveJob::Status.options.merge(options) ...
ruby
MIT
e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84
2026-01-04T17:45:06.564606Z
false
inkstak/activejob-status
https://github.com/inkstak/activejob-status/blob/e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84/lib/activejob-status/progress.rb
lib/activejob-status/progress.rb
# frozen_string_literal: true module ActiveJob module Status class Progress attr_reader :job, :total, :progress delegate :[], :to_s, :to_json, :inspect, to: :to_h delegate :status, to: :job, prefix: true def initialize(job) @job = job @total = 100 @progress = 0 ...
ruby
MIT
e0ff3934073a9caa47a5f20261ed3bd5e6a3fc84
2026-01-04T17:45:06.564606Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/spec/grape_rabl_configuration.rb
spec/grape_rabl_configuration.rb
require 'spec_helper' describe 'Grape::Rabl configuration' do context 'configuration' do it 'returns default values' do expect(Grape::Rabl.configuration.cache_template_loading).to eq(false) end it 'should set and reset configuration' do Grape::Rabl.configure do |config| config.cache_...
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/spec/grape_rabl_layout_spec.rb
spec/grape_rabl_layout_spec.rb
require 'spec_helper' describe 'Grape::Rabl layout' do let(:parsed_response) { JSON.parse(last_response.body) } subject do Class.new(Grape::API) end before do subject.format :json subject.formatter :json, Grape::Formatter::Rabl subject.before do env['api.tilt.root'] = "#{File.dirname(__...
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/spec/grape_rabl_partials_spec.rb
spec/grape_rabl_partials_spec.rb
require 'spec_helper' describe 'Grape::Rabl partials' do let(:parsed_response) { JSON.parse(last_response.body) } subject do Class.new(Grape::API) end before do subject.format :json subject.formatter :json, Grape::Formatter::Rabl subject.before { env['api.tilt.root'] = "#{File.dirname(__FILE_...
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/spec/grape_rabl_spec.rb
spec/grape_rabl_spec.rb
require 'spec_helper' describe Grape::Rabl do subject do Class.new(Grape::API) end before do subject.default_format :json subject.formatter :json, Grape::Formatter::Rabl subject.formatter :xml, Grape::Formatter::Rabl subject.helpers MyHelper end def app subject end it 'should w...
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/spec/grape_rabl_formatter_spec.rb
spec/grape_rabl_formatter_spec.rb
require 'spec_helper' describe 'Grape::Rabl formatter' do subject do Class.new(Grape::API) end let(:xml_render) do %(<?xml version="1.0" encoding="UTF-8"?> <hash> <errors type="array"> <error>bad</error> <error>things</error> <error>happened</error> </errors> </hash> ) end def app ...
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/spec/grape_rabl_xml_spec.rb
spec/grape_rabl_xml_spec.rb
require 'spec_helper' describe Grape::Rabl do subject do Class.new(Grape::API) end before do subject.format :xml subject.formatter :xml, Grape::Formatter::Rabl end def app subject end context 'with xml format' do before do subject.before do env['api.tilt.root'] = "#{F...
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/spec/spec_helper.rb
spec/spec_helper.rb
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'bundler' Bundler.setup :default, :test require 'coveralls' Coveralls.wear! require 'active_support/core_ext/hash/conversions' require 'grape/rabl' require 'rspec' require 'rack/test' require 'ostruc...
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/spec/support/my_helper.rb
spec/support/my_helper.rb
module MyHelper def my_helper 'my_helper' end end
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/lib/grape-rabl.rb
lib/grape-rabl.rb
require 'rabl' require 'grape' require 'grape/rabl' require 'grape-rabl/tilt' require 'grape-rabl/version' require 'grape-rabl/formatter' require 'grape-rabl/render' require 'grape-rabl/configuration' module Grape module Rabl class << self def configure yield(configuration) configuration ...
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/lib/grape/rabl.rb
lib/grape/rabl.rb
require 'grape-rabl' module Grape module Formatter module Rabl class << self def call(object, env) Grape::Rabl::Formatter.new(object, env).render end end end end end
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/lib/grape-rabl/tilt.rb
lib/grape-rabl/tilt.rb
require 'tilt' Rabl.register!
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/lib/grape-rabl/version.rb
lib/grape-rabl/version.rb
module Grape module Rabl VERSION = '0.5.0'.freeze end end
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/lib/grape-rabl/render.rb
lib/grape-rabl/render.rb
module Grape module Rabl module Render def render(options = {}) env['api.tilt.rabl'] = options[:rabl] env['api.tilt.rabl_locals'] = options[:locals] end end end end Grape::Endpoint.send(:include, Grape::Rabl::Render)
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/lib/grape-rabl/configuration.rb
lib/grape-rabl/configuration.rb
module Grape module Rabl class Configuration attr_accessor :cache_template_loading def initialize @cache_template_loading = false end end end end
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
ruby-grape/grape-rabl
https://github.com/ruby-grape/grape-rabl/blob/b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd/lib/grape-rabl/formatter.rb
lib/grape-rabl/formatter.rb
require 'json' module Grape module Rabl class Formatter class << self def tilt_cache @tilt_cache ||= ::Tilt::Cache.new end end attr_reader :env, :endpoint, :object def initialize(object, env) @env = env @endpoint = env['api.endpoint'] ...
ruby
MIT
b201ebdb0dc44906e5b42619f060fa3ac4e5bdfd
2026-01-04T17:45:06.741110Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/app/helpers/application_helper.rb
testapp/app/helpers/application_helper.rb
module ApplicationHelper end
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/app/helpers/home_helper.rb
testapp/app/helpers/home_helper.rb
module HomeHelper end
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/app/controllers/home_controller.rb
testapp/app/controllers/home_controller.rb
class HomeController < ApplicationController def index end end
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/app/controllers/application_controller.rb
testapp/app/controllers/application_controller.rb
class ApplicationController < ActionController::Base protect_from_forgery end
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/db/seeds.rb
testapp/db/seeds.rb
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel...
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/test/test_helper.rb
testapp/test/test_helper.rb
ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' class ActiveSupport::TestCase # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order. # # Note: You'll currently still have to declare fixtures explicitly in integrati...
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/test/performance/browsing_test.rb
testapp/test/performance/browsing_test.rb
require 'test_helper' require 'rails/performance_test_help' class BrowsingTest < ActionDispatch::PerformanceTest # Refer to the documentation for all available options # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory] # :output => 'tmp/performance', :formats => [:f...
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/test/unit/helpers/home_helper_test.rb
testapp/test/unit/helpers/home_helper_test.rb
require 'test_helper' class HomeHelperTest < ActionView::TestCase end
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/test/functional/home_controller_test.rb
testapp/test/functional/home_controller_test.rb
require 'test_helper' class HomeControllerTest < ActionController::TestCase test "should get index" do get :index assert_response :success end end
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/config/application.rb
testapp/config/application.rb
require File.expand_path('../boot', __FILE__) require 'rails/all' if defined?(Bundler) # If you precompile assets before deploying to production, use this line Bundler.require(*Rails.groups(:assets => %w(development test))) # If you want your assets lazily compiled in production, use this line # Bundler.requi...
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/config/environment.rb
testapp/config/environment.rb
# Load the rails application require File.expand_path('../application', __FILE__) # Initialize the rails application Testapp::Application.initialize!
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/config/routes.rb
testapp/config/routes.rb
Testapp::Application.routes.draw do root :to => "home#index" get 'partial' => 'home#partial' # The priority is based upon order of creation: # first created -> highest priority. # Sample of regular route: # match 'products/:id' => 'catalog#view' # Keep in mind you can assign values other than :control...
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/config/boot.rb
testapp/config/boot.rb
require 'rubygems' # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/config/initializers/session_store.rb
testapp/config/initializers/session_store.rb
# Be sure to restart your server when you modify this file. Testapp::Application.config.session_store :cookie_store, key: '_testapp_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails g...
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/config/initializers/wrap_parameters.rb
testapp/config/initializers/wrap_parameters.rb
# Be sure to restart your server when you modify this file. # # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do wrap_parameters ...
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/config/initializers/inflections.rb
testapp/config/initializers/inflections.rb
# Be sure to restart your server when you modify this file. # Add new inflection rules using the following format # (all these examples are active by default): # ActiveSupport::Inflector.inflections do |inflect| # inflect.plural /^(ox)$/i, '\1en' # inflect.singular /^(ox)en/i, '\1' # inflect.irregular 'person', ...
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false
joliss/markdown-rails
https://github.com/joliss/markdown-rails/blob/bc43c1c110b66f92481ad3733e0fb6495c846d7b/testapp/config/initializers/backtrace_silencers.rb
testapp/config/initializers/backtrace_silencers.rb
# Be sure to restart your server when you modify this file. # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } # You can also remove all the silencers if you're trying to debug a probl...
ruby
MIT
bc43c1c110b66f92481ad3733e0fb6495c846d7b
2026-01-04T17:45:12.101166Z
false