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
dry-rb/dry-view
https://github.com/dry-rb/dry-view/blob/055026fc6f3f2840efd9301705b609ef09709f8d/lib/dry/view/tilt/erbse.rb
lib/dry/view/tilt/erbse.rb
# frozen_string_literal: true require "tilt/template" require "erbse" module Dry class View module Tilt # Tilt template class copied from cells-erb gem class ErbseTemplate < ::Tilt::Template def prepare @template = ::Erbse::Engine.new end def precompiled_template(_...
ruby
MIT
055026fc6f3f2840efd9301705b609ef09709f8d
2026-01-04T17:33:31.103243Z
false
dry-rb/dry-view
https://github.com/dry-rb/dry-view/blob/055026fc6f3f2840efd9301705b609ef09709f8d/lib/dry/view/tilt/erb.rb
lib/dry/view/tilt/erb.rb
# frozen_string_literal: true module Dry class View module Tilt module ERB def self.requirements ["dry/view/tilt/erbse", <<~ERROR] dry-view requires erbse for full compatibility when rendering .erb templates (e.g. implicitly capturing block content when yielding) ...
ruby
MIT
055026fc6f3f2840efd9301705b609ef09709f8d
2026-01-04T17:33:31.103243Z
false
dry-rb/dry-view
https://github.com/dry-rb/dry-view/blob/055026fc6f3f2840efd9301705b609ef09709f8d/lib/dry/view/tilt/haml.rb
lib/dry/view/tilt/haml.rb
# frozen_string_literal: true module Dry class View module Tilt module Haml def self.requirements ["hamlit", <<~ERROR] dry-view requires hamlit (3.0 or greater) for full compatibility when rendering .haml templates (e.g. implicitly capturing block content when yielding) ...
ruby
MIT
055026fc6f3f2840efd9301705b609ef09709f8d
2026-01-04T17:33:31.103243Z
false
xaviershay/kronic
https://github.com/xaviershay/kronic/blob/e0e5eb926729ef75aa7b7df02de68e2fdf11eec2/spec/kronic_spec.rb
spec/kronic_spec.rb
require 'spec_helper' extend XSpec.dsl Time.extend(MethodVisibility) describe Kronic do extend KronicMatchers # A constant set of dates are used for testing, the current system time is # frozen to date(:today) for the duration of each test. def self.date(key) { :today => Date.new(2010, 9, 18...
ruby
MIT
e0e5eb926729ef75aa7b7df02de68e2fdf11eec2
2026-01-04T17:33:33.595189Z
false
xaviershay/kronic
https://github.com/xaviershay/kronic/blob/e0e5eb926729ef75aa7b7df02de68e2fdf11eec2/spec/spec_helper.rb
spec/spec_helper.rb
require 'xspec' require 'timecop' require 'active_support/core_ext/integer/time' require 'active_support/core_ext/time/zones' require 'active_support/core_ext/time/calculations' require 'active_support/core_ext/date/conversions' # For nicer spec fail output $js_loaded = begin require 'v8' true rescue LoadError => ...
ruby
MIT
e0e5eb926729ef75aa7b7df02de68e2fdf11eec2
2026-01-04T17:33:33.595189Z
false
xaviershay/kronic
https://github.com/xaviershay/kronic/blob/e0e5eb926729ef75aa7b7df02de68e2fdf11eec2/lib/kronic.rb
lib/kronic.rb
require 'date' # Main class for library, provides date parsing and formatting methods. class Kronic # Public: Converts a human readable day (today, yesterday) to a Date. # If Time.zone is available and set (added by active_support and rails), # Time.zone.today will be used as a reference point, otherwise Date.to...
ruby
MIT
e0e5eb926729ef75aa7b7df02de68e2fdf11eec2
2026-01-04T17:33:33.595189Z
false
Pixate/RubyMotion-PixateFreestyle
https://github.com/Pixate/RubyMotion-PixateFreestyle/blob/7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6/Examples/HelloWorld/app/pixatefreestyle_code.rb
Examples/HelloWorld/app/pixatefreestyle_code.rb
# This file is automatically generated. Do not edit. def style(str) PixateFreestyle.initializePixateFreestyle PixateFreestyle.styleSheetFromSource(str, withOrigin:0) PixateFreestyle.updateStylesForAllViews end
ruby
Apache-2.0
7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6
2026-01-04T17:33:37.853388Z
false
Pixate/RubyMotion-PixateFreestyle
https://github.com/Pixate/RubyMotion-PixateFreestyle/blob/7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6/Examples/HelloWorld/app/app_delegate.rb
Examples/HelloWorld/app/app_delegate.rb
class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) @window.rootViewController = HelloWorldController.alloc.init @window.rootViewController.wantsFullScreenLayout = true @window.makeKeyAndVisible ...
ruby
Apache-2.0
7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6
2026-01-04T17:33:37.853388Z
false
Pixate/RubyMotion-PixateFreestyle
https://github.com/Pixate/RubyMotion-PixateFreestyle/blob/7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6/Examples/HelloWorld/app/helloworld_controller.rb
Examples/HelloWorld/app/helloworld_controller.rb
class HelloWorldController < UIViewController def viewDidLoad margin = 20 @button = UIButton.buttonWithType(UIButtonTypeCustom) @button.frame = [[margin, 260], [view.frame.size.width - margin * 2, 40]] view.addSubview(@button) view.styleId = "myView" end end
ruby
Apache-2.0
7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6
2026-01-04T17:33:37.853388Z
false
Pixate/RubyMotion-PixateFreestyle
https://github.com/Pixate/RubyMotion-PixateFreestyle/blob/7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6/Examples/HelloWorld/spec/main_spec.rb
Examples/HelloWorld/spec/main_spec.rb
describe "Application 'HelloWorld'" do before do @app = UIApplication.sharedApplication end it "has one window" do @app.windows.size.should == 1 end end
ruby
Apache-2.0
7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6
2026-01-04T17:33:37.853388Z
false
Pixate/RubyMotion-PixateFreestyle
https://github.com/Pixate/RubyMotion-PixateFreestyle/blob/7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6/lib/motion-pixatefreestyle.rb
lib/motion-pixatefreestyle.rb
require "motion/project/pixatefreestyle"
ruby
Apache-2.0
7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6
2026-01-04T17:33:37.853388Z
false
Pixate/RubyMotion-PixateFreestyle
https://github.com/Pixate/RubyMotion-PixateFreestyle/blob/7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6/lib/motion/project/pixatefreestyle.rb
lib/motion/project/pixatefreestyle.rb
unless defined?(Motion::Project::Config) raise "This file must be required within a RubyMotion project Rakefile." end class PixateFreestyleConfig attr_accessor :framework def initialize(config) @config = config end def framework=(path) if @framework != path @config.unvendor_project(@framework...
ruby
Apache-2.0
7cefa59dff1fa795800e6ec7b7a2f4896ebd15d6
2026-01-04T17:33:37.853388Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/performance/speed.rb
performance/speed.rb
require 'bundler' require 'bundler/setup' require 'jsonify' require 'benchmark' class Speed def self.test Benchmark.bm do |b| b.report('Jsonify') do 15_000.times { j = Jsonify::Builder.new j.name "Garrett Bjerkhoel" j.birthday Time.local(1991, 9, 14) j.street...
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/performance/profile.rb
performance/profile.rb
require 'bundler' require 'bundler/setup' require 'jsonify' require 'ruby-prof' result = RubyProf.profile do 1.times do json=Jsonify::Builder.new json.hello 'world' json.compile! end end # Print a flat profile to text printer = RubyProf::FlatPrinter.new(result) printer.print(STDOUT)
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/spec/generate_spec.rb
spec/generate_spec.rb
require 'spec_helper' describe Jsonify::Generate do let(:links) do { :links => [ {:rel => 'foo', :href => 'goo'}, {:rel => 'bar', :href => 'baz'} ] } end it 'should build json' do json = Jsonify::Generate result = json.value links expected = '{"links":[{"rel":...
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/spec/builder_spec.rb
spec/builder_spec.rb
require 'spec_helper' describe Jsonify::Builder do let(:json) { Jsonify::Builder.new } describe 'class methods' do it '#compile should compile' do Jsonify::Builder.compile do |j| j.foo 'bar' end.should == '{"foo":"bar"}' end it '#pretty should be pretty' do pretty_results ...
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/spec/template_spec.rb
spec/template_spec.rb
require 'spec_helper' describe Jsonify::Template do it 'should be associated with .jsonify files' do template = Tilt.new('spec/hello_world.jsonify') template.should be_a_kind_of(Jsonify::Template) end it 'should render the template' do template = Tilt.new('spec/hello_world.jsonify') template.rend...
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/spec/json_value_spec.rb
spec/json_value_spec.rb
require 'spec_helper' describe Jsonify::JsonValue do describe Jsonify::JsonPair do let(:pair) { Jsonify::JsonPair.new('key','value') } it 'should be constructed of a key and value' do pair.key.should == 'key' end it 'should evaluate to key:value' do pair.encode_as_json.should == "\"key\"...
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/spec/jsonify_spec.rb
spec/jsonify_spec.rb
require 'spec_helper' describe Jsonify do it('should be true') {true.should be_true} end
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/spec/spec_helper.rb
spec/spec_helper.rb
require 'json' require 'benchmark' require 'bundler' require 'bundler/setup' require 'jsonify' require 'jsonify/tilt' RSpec.configure do |config| end
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/lib/jsonify.rb
lib/jsonify.rb
require 'multi_json' require 'jsonify/blank_slate' require 'jsonify/version' require 'jsonify/json_value' require 'jsonify/generate' require 'jsonify/builder'
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/lib/jsonify/tilt.rb
lib/jsonify/tilt.rb
require 'tilt' require 'tilt/template' require 'jsonify/template' Tilt.register Jsonify::Template, 'jsonify'
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/lib/jsonify/version.rb
lib/jsonify/version.rb
module Jsonify VERSION = "0.4.1" end
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/lib/jsonify/generate.rb
lib/jsonify/generate.rb
module Jsonify # Provides a set of functions for creating JsonValues from Ruby objects. module Generate class << self # Coerces the given value into a JsonValue (or subclass), String, or Number. # # The coercion rules are based on the type (class) of the value as follows: # - ...
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/lib/jsonify/template.rb
lib/jsonify/template.rb
module Jsonify class Template < Tilt::Template self.default_mime_type = 'application/json' def self.engine_initialized? defined? ::Jsonify end def initialize_engine require_template_library 'jsonify' end def prepare; end def evaluate(scope, locals, &block) return su...
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/lib/jsonify/json_value.rb
lib/jsonify/json_value.rb
class Object def encode_as_json MultiJson.dump self end end module Jsonify class JsonValue attr_accessor :values def initialize(values=nil) @values = values || [] end def encode_as_json wrap values.map {|v| v.encode_as_json}.join(',') end def add(jsonValue) ...
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/lib/jsonify/blank_slate.rb
lib/jsonify/blank_slate.rb
###################################################################### # Jsonify::BlankSlate is based on Jim Weirich's BlankSlate. # # Copyright 2004, 2006 by Jim Weirich (jim@weirichhouse.org). # All rights reserved. # # BlankSlate provides an abstract base class with no predefined # methods (except for <tt>\_\_send__...
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
bsiggelkow/jsonify
https://github.com/bsiggelkow/jsonify/blob/94b1a371cd730470d2829c144957a5206e3fae74/lib/jsonify/builder.rb
lib/jsonify/builder.rb
module Jsonify class Builder < BlankSlate class << self # Compiles the given block into a JSON string without having to instantiate a Builder. # # @option options [boolean] :verify Builder will verify that the compiled JSON string is parseable; this option does incur a performance penalty...
ruby
MIT
94b1a371cd730470d2829c144957a5206e3fae74
2026-01-04T17:33:42.968711Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/samples/sample_kcl.rb
samples/sample_kcl.rb
#! /usr/bin/env ruby # # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 require 'aws/kclrb' require 'base64' require 'date' # @api private # A sample implementation of the {Aws::KCLrb::RecordProcessorBase RecordProcessor}. # # All it does is write the d...
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/samples/sample_kcl_producer.rb
samples/sample_kcl_producer.rb
#! /usr/bin/env ruby # # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 require 'aws-sdk-kinesis' require 'multi_json' require 'optparse' # @api private class SampleProducer def initialize(service, stream_name, sleep_between_puts, shard_count=nil) ...
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/spec/kcl_process_spec.rb
spec/kcl_process_spec.rb
# # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 require 'aws/kclrb/kcl_process' require 'aws/kclrb/record_processor' module Aws::KCLrb # Dummy test class. # The {#process_reocrds} method will retry the checkpointing call # in case of a thrott...
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/spec/checkpointer_spec.rb
spec/checkpointer_spec.rb
# # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 require 'aws/kclrb/io_proxy.rb' require 'aws/kclrb/checkpointer.rb' module Aws::KCLrb describe Checkpointer do describe "#checkpoint" do it "should emit a checkpoint action and consume respo...
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/spec/io_proxy_spec.rb
spec/io_proxy_spec.rb
# # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 require 'aws/kclrb/io_proxy' module Aws::KCLrb describe IOProxy do describe "#read_line" do it "should skip blank lines" do input_string = " \nline1\n\n\n \nline2\n \n" ...
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/spec/spec_helper.rb
spec/spec_helper.rb
# # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 require 'simplecov' # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| config.run_all_when_everything_filtered = true end
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/lib/aws/kclrb.rb
lib/aws/kclrb.rb
# # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 require 'aws/kclrb/record_processor' require 'aws/kclrb/messages' require 'aws/kclrb/kcl_process'
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/lib/aws/kclrb/io_proxy.rb
lib/aws/kclrb/io_proxy.rb
# # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # require 'multi_json' module Aws module KCLrb # @api private # Internal class used by {KCLProcess} and {Checkpointer} to communicate # with the the {https://github.com/awslabs/amazon-kin...
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/lib/aws/kclrb/record_processor.rb
lib/aws/kclrb/record_processor.rb
# # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 module Aws module KCLrb # @abstract # Base class for implementing a record processor. # # A `RecordProcessor` processes a shard in a stream. See {https://github.com/awslabs/amazon-kine...
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/lib/aws/kclrb/messages.rb
lib/aws/kclrb/messages.rb
module Aws module KCLrb module V2 # @abstract # Input object for RecordProcessorBase#init_processor method. class InitializeInput attr_reader :shard_id, :sequence_number def initialize(shard_id, sequence_number) @shard_id = shard_id @sequence_number = sequenc...
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/lib/aws/kclrb/checkpointer.rb
lib/aws/kclrb/checkpointer.rb
# # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 require 'aws/kclrb/io_proxy' module Aws module KCLrb # Error class used for wrapping exception names passed through the # input stream. class CheckpointError < RuntimeError # @!attr...
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
awslabs/amazon-kinesis-client-ruby
https://github.com/awslabs/amazon-kinesis-client-ruby/blob/e3fe8413dea15df28ef8a38923447fb1ae9d77d7/lib/aws/kclrb/kcl_process.rb
lib/aws/kclrb/kcl_process.rb
# # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 require 'aws/kclrb/io_proxy' require 'aws/kclrb/checkpointer' require 'aws/kclrb/messages' require 'aws/kclrb/record_processor' module Aws module KCLrb # Error raised if the {KCLProcess} received ...
ruby
Apache-2.0
e3fe8413dea15df28ef8a38923447fb1ae9d77d7
2026-01-04T17:33:40.139855Z
false
cowbell/active_model-errors_details
https://github.com/cowbell/active_model-errors_details/blob/07e02c475ae5ef679655b70719e2e6ead6f2ba7a/test/minitest_helper.rb
test/minitest_helper.rb
$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__) require "active_model/errors_details" require "minitest/autorun"
ruby
MIT
07e02c475ae5ef679655b70719e2e6ead6f2ba7a
2026-01-04T17:33:34.541617Z
false
cowbell/active_model-errors_details
https://github.com/cowbell/active_model-errors_details/blob/07e02c475ae5ef679655b70719e2e6ead6f2ba7a/test/test_errors_details.rb
test/test_errors_details.rb
require "minitest_helper" # Bug in rails dependencies # https://github.com/rails/rails/pull/18619 require "active_support/core_ext/module/remove_method" require "active_model/naming" class TestErrorsDetails < MiniTest::Test class Person extend ActiveModel::Naming def initialize @errors = ActiveModel::...
ruby
MIT
07e02c475ae5ef679655b70719e2e6ead6f2ba7a
2026-01-04T17:33:34.541617Z
false
cowbell/active_model-errors_details
https://github.com/cowbell/active_model-errors_details/blob/07e02c475ae5ef679655b70719e2e6ead6f2ba7a/test/test_ar_association.rb
test/test_ar_association.rb
require "active_record" require "minitest_helper" ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:") ActiveRecord::Schema.define do create_table :users, force: true do |t| end create_table :comments, force: true do |t| t.integer :user_id t.string :content end end cla...
ruby
MIT
07e02c475ae5ef679655b70719e2e6ead6f2ba7a
2026-01-04T17:33:34.541617Z
false
cowbell/active_model-errors_details
https://github.com/cowbell/active_model-errors_details/blob/07e02c475ae5ef679655b70719e2e6ead6f2ba7a/lib/active_model/errors_details.rb
lib/active_model/errors_details.rb
require "active_model/errors_details/version" require "active_model/errors" begin require "active_support/core_ext/object/deep_dup" rescue LoadError # Rails 3.2 compatibility require "active_support/core_ext/object/duplicable" class Object def deep_dup duplicable? ? dup : self end end class...
ruby
MIT
07e02c475ae5ef679655b70719e2e6ead6f2ba7a
2026-01-04T17:33:34.541617Z
false
cowbell/active_model-errors_details
https://github.com/cowbell/active_model-errors_details/blob/07e02c475ae5ef679655b70719e2e6ead6f2ba7a/lib/active_model/errors_details/version.rb
lib/active_model/errors_details/version.rb
module ActiveModel module ErrorsDetails VERSION = "1.3.1" end end
ruby
MIT
07e02c475ae5ef679655b70719e2e6ead6f2ba7a
2026-01-04T17:33:34.541617Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/jobs/application_job.rb
app/jobs/application_job.rb
class ApplicationJob < ActiveJob::Base end
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/services/game_merge_service.rb
app/services/game_merge_service.rb
# A service for merging two games together. class GameMergeService attr_accessor :game_a attr_accessor :game_b def initialize(game_a, game_b) @game_a = game_a @game_b = game_b end # Merge the two games together. def merge! # Cannot merge a game into itself, return early. return false if @g...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/services/steam_import_service.rb
app/services/steam_import_service.rb
require 'net/http' class SteamImportService attr_reader :user attr_accessor :steam_account def initialize(user:, update_hours: false) @user = user @steam_account = @user.external_account @update_hours = update_hours end class Error < StandardError; end class NoGamesError < Error; end def...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/services/steam_import_logging_service.rb
app/services/steam_import_logging_service.rb
# Service for logging unmatched games from Steam Imports performed by users. # This lets us keep track of the most common missed games we should add to # the database/add Steam IDs to, or what Steam apps should be added to a # blocklist to prevent their addition (DLCs, non-games, test servers, etc.) class SteamImportLo...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/services/encryption_service.rb
app/services/encryption_service.rb
# A service for encrypting/decrypting values. # # Based on this blog post: # https://pawelurbanek.com/rails-secure-encrypt-decrypt class EncryptionService # Only define the fallbacks in development, otherwise leave them unset. FALLBACK_KEY = Rails.env.development? ? 'foo' : nil FALLBACK_SALT = Rails.env.developme...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/helpers/settings_helper.rb
app/helpers/settings_helper.rb
module SettingsHelper # These three helpers are used by devise's account forms. def resource_name :user end def resource @resource || User.new end def devise_mapping @devise_mapping || Devise.mappings[:user] end end
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/helpers/activity_helper.rb
app/helpers/activity_helper.rb
# rubocop:disable Style/StringConcatenation module ActivityHelper def event_text(event) case event.event_category&.to_sym when :add_to_library add_to_library_event_text(event) when :change_completion_status completion_status_event_text(event) when :favorite_game favorite_game_event_t...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/helpers/users_helper.rb
app/helpers/users_helper.rb
module UsersHelper # Checks if the current user is already following the other user. def current_user_following?(user) current_user&.following&.find_by(id: user.id).present? end end
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/helpers/games_helper.rb
app/helpers/games_helper.rb
module GamesHelper # Checks if the user has the given game in their library. # This is probably pretty slow and should be optimized. def game_in_user_library?(game) return current_user&.game_purchases&.find_by(game_id: game.id).present? end def game_in_user_favorites?(game) return current_user&.favor...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/helpers/application_helper.rb
app/helpers/application_helper.rb
module ApplicationHelper def flash_class(level) case level.to_sym when :notice then "is-info" when :success then "is-success" when :error then "is-danger" when :alert then "is-warning" else "not-possible" end end # A helper for displaying user avatars. def user_avatar(user, size:, c...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/genre_policy.rb
app/policies/genre_policy.rb
class GenrePolicy < ApplicationPolicy attr_reader :user attr_reader :genre def initialize(user, genre) @user = user @genre = genre end def index? true end def show? true end def create? user_is_moderator_or_admin? end def update? user_is_moderator_or_admin? end de...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/event_policy.rb
app/policies/event_policy.rb
class EventPolicy < ApplicationPolicy attr_reader :user attr_reader :event def initialize(user, event) @user = user @event = event end def destroy? user && event&.user_id == user&.id end end
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/platform_policy.rb
app/policies/platform_policy.rb
class PlatformPolicy < ApplicationPolicy attr_reader :user attr_reader :platform def initialize(user, platform) @user = user @platform = platform end def index? true end def show? true end def create? user_is_moderator_or_admin? end def update? user_is_moderator_or_adm...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/activity_policy.rb
app/policies/activity_policy.rb
class ActivityPolicy < ApplicationPolicy attr_reader :user attr_reader :event def initialize(user, event) @user = user @event = event end def global? true end def following? !user.nil? end end
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/application_policy.rb
app/policies/application_policy.rb
# Defines defaults for all policies. class ApplicationPolicy class Scope attr_reader :user, :scope def initialize(user, scope) @user = user @scope = scope end def resolve scope.all end end attr_reader :user attr_reader :record def initialize(user, record) @user = ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/nil_class_policy.rb
app/policies/nil_class_policy.rb
class NilClassPolicy < ApplicationPolicy class Scope < ApplicationPolicy::Scope def resolve raise Pundit::NotDefinedError, "Cannot scope NilClass" end end def index? false end def show? false end def create? false end def update? false end def destroy? false ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/series_policy.rb
app/policies/series_policy.rb
class SeriesPolicy < ApplicationPolicy attr_reader :user attr_reader :series def initialize(user, series) @user = user @series = series end def index? true end def show? true end def create? user_is_moderator_or_admin? end def update? user_is_moderator_or_admin? end ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/game_policy.rb
app/policies/game_policy.rb
class GamePolicy < ApplicationPolicy attr_reader :user attr_reader :game def initialize(user, game) @user = user @game = game end def index? true end def show? true end def create? user&.moderator? || user&.admin? end def update? user&.moderator? || user&.admin? end ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/game_purchase_policy.rb
app/policies/game_purchase_policy.rb
class GamePurchasePolicy < ApplicationPolicy attr_reader :user attr_reader :game_purchase def initialize(user, game_purchase) @user = user @game_purchase = game_purchase end def index? authorized = user_profile_is_visible? return false if authorized.nil? return authorized end def s...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/user_policy.rb
app/policies/user_policy.rb
class UserPolicy < ApplicationPolicy attr_reader :current_user, :user def initialize(current_user, user) @current_user = current_user @user = user end def index? true end def show? user_profile_is_visible? end def update? user_is_current_user? end def search? true end ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/store_policy.rb
app/policies/store_policy.rb
class StorePolicy < ApplicationPolicy attr_reader :user attr_reader :store def initialize(user, store) @user = user @store = store end def index? true end def show? true end def create? user_is_moderator_or_admin? end def update? user_is_moderator_or_admin? end de...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/company_policy.rb
app/policies/company_policy.rb
class CompanyPolicy < ApplicationPolicy attr_reader :user attr_reader :company def initialize(user, company) @user = user @company = company end def index? true end def show? true end def create? user_is_moderator_or_admin? end def update? user_is_moderator_or_admin? ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/settings_policy.rb
app/policies/settings_policy.rb
class SettingsPolicy < ApplicationPolicy attr_reader :current_user, :user def initialize(current_user, user) @current_user = current_user @user = user end def profile? user_is_current_user? end def account? user_is_current_user? end def import? user_is_current_user? end def ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/engine_policy.rb
app/policies/engine_policy.rb
class EnginePolicy < ApplicationPolicy attr_reader :user attr_reader :engine def initialize(user, engine) @user = user @engine = engine end def index? true end def show? true end def create? user_is_moderator_or_admin? end def update? user_is_moderator_or_admin? end ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/relationship_policy.rb
app/policies/relationship_policy.rb
class RelationshipPolicy < ApplicationPolicy attr_reader :follower attr_reader :followed def initialize(follower, followed) @follower = follower @followed = followed end def create? follower_is_not_followed? && !follower.nil? && followed.public_account? end def destroy? follower_is_not_...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/admin_policy.rb
app/policies/admin_policy.rb
class AdminPolicy < ApplicationPolicy attr_reader :user attr_reader :nilable def initialize(user, _nilable) @user = user end def dashboard? statistics? end def statistics? user&.admin? end def wikidata_blocklist? user&.admin? end def remove_from_wikidata_blocklist? user&.a...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/admin/unmatched_games_policy.rb
app/policies/admin/unmatched_games_policy.rb
class Admin::UnmatchedGamesPolicy < ApplicationPolicy attr_reader :user attr_reader :nilable def initialize(user, _nilable) @user = user end def index? user&.admin? || false end def destroy? user&.admin? || false end end
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/oauth/application_policy.rb
app/policies/oauth/application_policy.rb
class Oauth::ApplicationPolicy < ApplicationPolicy attr_reader :user attr_reader :application def initialize(user, application) @user = user @application = application end def index? user_is_logged_in end def show? user_owns_application end def new? user_is_logged_in end d...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/policies/oauth/authorization_policy.rb
app/policies/oauth/authorization_policy.rb
class Oauth::AuthorizationPolicy < ApplicationPolicy attr_reader :user attr_reader :application def initialize(user, application) @user = user @application = application end def new? user_is_logged_in end def create? user_is_logged_in end def destroy? user_is_logged_in end ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/video_game_list_schema.rb
app/graphql/video_game_list_schema.rb
class VideoGameListSchema < GraphQL::Schema mutation(Types::MutationType) query(Types::QueryType) # Configure max_depth to prevent crazy queries. # max_complexity is disabled for now to allow the GraphiQL documentation # panel to work. max_depth is set to 13 as that's what's requires for # introspection to...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/delete_event.rb
app/graphql/mutations/delete_event.rb
class Mutations::DeleteEvent < Mutations::BaseMutation description "Delete an event from the Activity Feed. You must be the owner of the event to delete it." argument :event_id, ID, required: true, description: "ID of event to delete, will be a UUID." field :deleted, Boolean, null: false, description: "Whether ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/base_mutation.rb
app/graphql/mutations/base_mutation.rb
class Mutations::BaseMutation < GraphQL::Schema::Mutation # This is used for generating payload types object_class Types::BaseObject # This is used for return fields on the mutation's payload field_class Types::BaseField # The permissions required to perform this mutation. Currently this method # only acce...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/game_purchases/add_game_to_library.rb
app/graphql/mutations/game_purchases/add_game_to_library.rb
class Mutations::GamePurchases::AddGameToLibrary < Mutations::BaseMutation description "Add a game to the current user's library." argument :game_id, ID, required: true, description: "ID of game to add." argument :completion_status, Types::Enums::GamePurchaseCompletionStatusType, required: false, description: "H...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/game_purchases/update_game_in_library.rb
app/graphql/mutations/game_purchases/update_game_in_library.rb
class Mutations::GamePurchases::UpdateGameInLibrary < Mutations::BaseMutation description "Update a game in the current user's library." argument :game_purchase_id, ID, required: true, description: "ID of game purchase to modify." argument :completion_status, Types::Enums::GamePurchaseCompletionStatusType, requi...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/game_purchases/remove_game_from_library.rb
app/graphql/mutations/game_purchases/remove_game_from_library.rb
class Mutations::GamePurchases::RemoveGameFromLibrary < Mutations::BaseMutation description "Remove a game from the current user's library." argument :game_id, ID, required: false, description: "ID of game to remove from user library." argument :game_purchase_id, ID, required: false, description: "ID of game pur...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/genres/create_genre.rb
app/graphql/mutations/genres/create_genre.rb
class Mutations::Genres::CreateGenre < Mutations::BaseMutation description "Create a new game genre. **Only available to moderators and admins using a first-party OAuth Application.**" argument :name, String, required: true, description: 'The name of the genre.' argument :wikidata_id, ID, required: true, descrip...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/genres/update_genre.rb
app/graphql/mutations/genres/update_genre.rb
class Mutations::Genres::UpdateGenre < Mutations::BaseMutation description "Update an existing game genre. **Only available to moderators and admins using a first-party OAuth Application.**" argument :genre_id, ID, required: true, description: 'The ID of the genre record.' argument :name, String, required: false...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/genres/delete_genre.rb
app/graphql/mutations/genres/delete_genre.rb
class Mutations::Genres::DeleteGenre < Mutations::BaseMutation description "Delete a game genre. **Only available to moderators and admins using a first-party OAuth Application.**" argument :genre_id, ID, required: true, description: 'The ID of the genre to delete.' field :deleted, Boolean, null: true, descript...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/admin/remove_from_steam_blocklist.rb
app/graphql/mutations/admin/remove_from_steam_blocklist.rb
class Mutations::Admin::RemoveFromSteamBlocklist < Mutations::BaseMutation description "Remove game from Steam blocklist. **Only available to admins using a first-party OAuth Application.**" argument :steam_blocklist_entry_id, ID, required: true, description: 'The ID of the blocklist entry.' field :deleted, Boo...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/admin/add_to_wikidata_blocklist.rb
app/graphql/mutations/admin/add_to_wikidata_blocklist.rb
class Mutations::Admin::AddToWikidataBlocklist < Mutations::BaseMutation description "Add game to Wikidata blocklist and remove Wikidata ID from any game that current has it. **Only available to admins using a first-party OAuth Application.**" argument :name, String, required: true, description: 'The name of the g...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/admin/remove_from_wikidata_blocklist.rb
app/graphql/mutations/admin/remove_from_wikidata_blocklist.rb
class Mutations::Admin::RemoveFromWikidataBlocklist < Mutations::BaseMutation description "Remove game from Wikidata blocklist. **Only available to admins using a first-party OAuth Application.**" argument :wikidata_blocklist_entry_id, ID, required: true, description: 'The ID of the blocklist entry.' field :del...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/admin/add_to_steam_blocklist.rb
app/graphql/mutations/admin/add_to_steam_blocklist.rb
class Mutations::Admin::AddToSteamBlocklist < Mutations::BaseMutation description "Add game to Steam blocklist and remove the Steam App ID from any existing games that have it. **Only available to admins using a first-party OAuth Application.**" argument :name, String, required: true, description: 'The name of the...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/admin/remove_from_unmatched_games.rb
app/graphql/mutations/admin/remove_from_unmatched_games.rb
class Mutations::Admin::RemoveFromUnmatchedGames < Mutations::BaseMutation description "Remove game from Unmatched Games list. **Only available to admins using a first-party OAuth Application.**" argument :external_service_id, ID, required: true, description: 'The ID of the game on the external service.' argumen...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/admin/merge_games.rb
app/graphql/mutations/admin/merge_games.rb
class Mutations::Admin::MergeGames < Mutations::BaseMutation description "Merge one game into another. Re-associates all favorites and game purchases (if possible). **Only available to admins using a first-party OAuth Application.**" argument :game_to_keep_id, ID, required: true, description: 'The ID of the game t...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/platforms/delete_platform.rb
app/graphql/mutations/platforms/delete_platform.rb
class Mutations::Platforms::DeletePlatform < Mutations::BaseMutation description "Delete a game platform. **Only available to moderators and admins using a first-party OAuth Application.**" argument :platform_id, ID, required: true, description: 'The ID of the platform to delete.' field :deleted, Boolean, null:...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/platforms/create_platform.rb
app/graphql/mutations/platforms/create_platform.rb
class Mutations::Platforms::CreatePlatform < Mutations::BaseMutation description "Create a new game platform. **Only available to moderators and admins using a first-party OAuth Application.**" argument :name, String, required: true, description: 'The name of the platform.' argument :wikidata_id, ID, required: t...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/platforms/update_platform.rb
app/graphql/mutations/platforms/update_platform.rb
class Mutations::Platforms::UpdatePlatform < Mutations::BaseMutation description "Update an existing game platform. **Only available to moderators and admins using a first-party OAuth Application.**" argument :platform_id, ID, required: true, description: 'The ID of the platform record.' argument :name, String, ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/stores/delete_store.rb
app/graphql/mutations/stores/delete_store.rb
class Mutations::Stores::DeleteStore < Mutations::BaseMutation description "Delete a game store. **Only available to moderators and admins using a first-party OAuth Application.**" argument :store_id, ID, required: true, description: 'The ID of the store to delete.' field :deleted, Boolean, null: true, descript...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/stores/update_store.rb
app/graphql/mutations/stores/update_store.rb
class Mutations::Stores::UpdateStore < Mutations::BaseMutation description "Update an existing game store. **Only available to moderators and admins using a first-party OAuth Application.**" argument :store_id, ID, required: true, description: 'The ID of the store record.' argument :name, String, required: false...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/stores/create_store.rb
app/graphql/mutations/stores/create_store.rb
class Mutations::Stores::CreateStore < Mutations::BaseMutation description "Create a new game store. **Only available when using a first-party OAuth Application.**" argument :name, String, required: true, description: 'The name of the store.' field :store, Types::StoreType, null: true, description: "The store t...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/engines/create_engine.rb
app/graphql/mutations/engines/create_engine.rb
class Mutations::Engines::CreateEngine < Mutations::BaseMutation description "Create a new game engine. **Only available to moderators and admins using a first-party OAuth Application.**" argument :name, String, required: true, description: 'The name of the engine.' argument :wikidata_id, ID, required: true, des...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/engines/delete_engine.rb
app/graphql/mutations/engines/delete_engine.rb
class Mutations::Engines::DeleteEngine < Mutations::BaseMutation description "Delete a game engine. **Only available to moderators and admins using a first-party OAuth Application.**" argument :engine_id, ID, required: true, description: 'The ID of the engine to delete.' field :deleted, Boolean, null: true, des...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/engines/update_engine.rb
app/graphql/mutations/engines/update_engine.rb
class Mutations::Engines::UpdateEngine < Mutations::BaseMutation description "Update an existing game engine. **Only available to moderators and admins using a first-party OAuth Application.**" argument :engine_id, ID, required: true, description: 'The ID of the engine record.' argument :name, String, required: ...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/games/unfavorite_game.rb
app/graphql/mutations/games/unfavorite_game.rb
class Mutations::Games::UnfavoriteGame < Mutations::BaseMutation description "Remove a game from the current user's favorites." argument :game_id, ID, required: true, description: "ID of game to unfavorite." field :game, Types::GameType, null: true, description: "The game being unfavorited." def resolve(game...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false
connorshea/vglist
https://github.com/connorshea/vglist/blob/7ff3d360e861a3e224565a7ad941228f5fd462e2/app/graphql/mutations/games/favorite_game.rb
app/graphql/mutations/games/favorite_game.rb
class Mutations::Games::FavoriteGame < Mutations::BaseMutation description "Add a game to the current user's favorites." argument :game_id, ID, required: true, description: "ID of game to favorite." field :game, Types::GameType, null: true, description: "The game that was added to the user's library." def re...
ruby
MIT
7ff3d360e861a3e224565a7ad941228f5fd462e2
2026-01-04T17:32:52.765079Z
false