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
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/download_endpoint.rb
lib/shrine/plugins/download_endpoint.rb
# frozen_string_literal: true require 'openssl' require 'base64' class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/download_endpoint module DownloadEndpoint def self.load_dependencies(uploader, **) uploader.plugin :rack_response uploader.plug...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/processing.rb
lib/shrine/plugins/processing.rb
# frozen_string_literal: true Shrine.deprecation("The processing plugin is deprecated and will be removed in Shrine 4. If you were using it with versions plugin, use the new derivatives plugin instead.") class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/processing ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/pretty_location.rb
lib/shrine/plugins/pretty_location.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/pretty_location module PrettyLocation def self.configure(uploader, **opts) uploader.opts[:pretty_location] ||= { identifier: :id } uploader.opts[:pretty_location]....
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/included.rb
lib/shrine/plugins/included.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/included module Included def self.configure(uploader, &block) uploader.opts[:included] ||= {} uploader.opts[:included][:block] = block end module Atta...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/default_storage.rb
lib/shrine/plugins/default_storage.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/default_storage module DefaultStorage def self.configure(uploader, **opts) uploader.opts[:default_storage] ||= {} uploader.opts[:default_storage].merge!(opts) ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/activerecord.rb
lib/shrine/plugins/activerecord.rb
# frozen_string_literal: true require "active_record" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/activerecord module Activerecord def self.load_dependencies(uploader, **) uploader.plugin :model uploader.plugin :_persistence, plugin: se...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/cached_attachment_data.rb
lib/shrine/plugins/cached_attachment_data.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/cached_attachment_data module CachedAttachmentData module AttachmentMethods def define_model_methods(name) super if defined?(super) define_method :"ca...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/upload_options.rb
lib/shrine/plugins/upload_options.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/upload_options module UploadOptions def self.configure(uploader, **opts) uploader.opts[:upload_options] ||= {} uploader.opts[:upload_options].merge!(opts) en...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/multi_cache.rb
lib/shrine/plugins/multi_cache.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/multi_cache module MultiCache def self.configure(uploader, **opts) uploader.opts[:multi_cache] ||= {} uploader.opts[:multi_cache].merge!(opts) end mod...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/upload_endpoint.rb
lib/shrine/plugins/upload_endpoint.rb
# frozen_string_literal: true require "rack" require "json" require "digest" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/upload_endpoint module UploadEndpoint def self.load_dependencies(uploader, **) uploader.plugin :rack_file end ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/remote_url.rb
lib/shrine/plugins/remote_url.rb
# frozen_string_literal: true require "down" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/remote_url module RemoteUrl class DownloadError < Error; end LOG_SUBSCRIBER = -> (event) do Shrine.logger.info "Remote URL (#{event.duration}ms) – #...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/delete_raw.rb
lib/shrine/plugins/delete_raw.rb
# frozen_string_literal: true Shrine.deprecation("The delete_raw plugin is deprecated and will be removed in Shrine 4. If you were using it with versions plugin, use the new derivatives plugin instead.") class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/delete_raw ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/mirroring.rb
lib/shrine/plugins/mirroring.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/mirroring module Mirroring def self.configure(uploader, **opts) uploader.opts[:mirroring] ||= { upload: true, delete: true } uploader.opts[:mirroring].merge!(opts)...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/sequel.rb
lib/shrine/plugins/sequel.rb
# frozen_string_literal: true require "sequel" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/sequel module Sequel def self.load_dependencies(uploader, **) uploader.plugin :model uploader.plugin :_persistence, plugin: self end ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/tempfile.rb
lib/shrine/plugins/tempfile.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/tempfile module Tempfile module ClassMethods def with_file(io) if io.is_a?(UploadedFile) && io.opened? # open a new file descriptor for thread safety...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/validation_helpers.rb
lib/shrine/plugins/validation_helpers.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/validation_helpers module ValidationHelpers DEFAULT_MESSAGES = { max_size: -> (max) { "size must not be greater than #{PRETTY_FILESIZE.call(max)}" }, m...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/derivation_endpoint.rb
lib/shrine/plugins/derivation_endpoint.rb
# frozen_string_literal: true require "rack" require "content_disposition" require "openssl" require "tempfile" require "pathname" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/derivation_endpoint module DerivationEndpoint LOG_SUBSCRIBER = -> (event) do...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/backgrounding.rb
lib/shrine/plugins/backgrounding.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/backgrounding module Backgrounding def self.configure(uploader) uploader.opts[:backgrounding] ||= {} end module AttacherClassMethods # Registers a glo...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/entity.rb
lib/shrine/plugins/entity.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/entity module Entity def self.load_dependencies(uploader, **) uploader.plugin :column end module AttachmentMethods # Defines instance methods on initi...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/_persistence.rb
lib/shrine/plugins/_persistence.rb
# frozen_string_literal: true class Shrine module Plugins # Helper plugin that defines persistence methods on the attacher according # to convention. # # plugin :_persistence, plugin: MyPlugin module Persistence def self.load_dependencies(uploader, *) uploader.plugin :atomic_hel...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/url_options.rb
lib/shrine/plugins/url_options.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/url_options module UrlOptions def self.configure(uploader, **opts) uploader.opts[:url_options] ||= {} uploader.opts[:url_options].merge!(opts) end mod...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/default_url.rb
lib/shrine/plugins/default_url.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/default_url module DefaultUrl def self.configure(uploader, **opts) uploader.opts[:default_url] ||= {} uploader.opts[:default_url].merge!(opts) end mod...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/recache.rb
lib/shrine/plugins/recache.rb
# frozen_string_literal: true Shrine.deprecation("The recache plugin is deprecated and will be removed in Shrine 4. If you were using it with versions plugin, use the new derivatives plugin instead.") class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/recache modul...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/form_assign.rb
lib/shrine/plugins/form_assign.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/form_assign module FormAssign def self.load_dependencies(uploader) uploader.plugin :entity end def self.configure(uploader, **opts) uploader.opts[:for...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/infer_extension.rb
lib/shrine/plugins/infer_extension.rb
# frozen_string_literal: true require "pathname" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/infer_extension module InferExtension LOG_SUBSCRIBER = -> (event) do Shrine.logger.info "Extension (#{event.duration}ms) – #{{ mime_type: eve...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/dynamic_storage.rb
lib/shrine/plugins/dynamic_storage.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/dynamic_storage module DynamicStorage def self.configure(uploader) uploader.opts[:dynamic_storage] ||= { resolvers: {} } end module ClassMethods def s...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/store_dimensions.rb
lib/shrine/plugins/store_dimensions.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/store_dimensions module StoreDimensions LOG_SUBSCRIBER = -> (event) do Shrine.logger.info "Image Dimensions (#{event.duration}ms) – #{{ io: event[:io].clas...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/atomic_helpers.rb
lib/shrine/plugins/atomic_helpers.rb
# frozen_string_literal: true class Shrine class AttachmentChanged < Error end module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/atomic_helpers class AtomicHelpers module AttacherClassMethods # Retrieves the attacher from the given entity/model and verifies t...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/restore_cached_data.rb
lib/shrine/plugins/restore_cached_data.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/restore_cached_data module RestoreCachedData def self.load_dependencies(uploader) uploader.plugin :refresh_metadata end module AttacherMethods private...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/remove_attachment.rb
lib/shrine/plugins/remove_attachment.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/remove_attachment module RemoveAttachment module AttachmentMethods def define_model_methods(name) super if defined?(super) define_method :"remove_#{na...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/rack_response.rb
lib/shrine/plugins/rack_response.rb
# frozen_string_literal: true require "rack" require "content_disposition" require "digest" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/rack_response module RackResponse module FileMethods # Returns a Rack response triple for the uploaded file....
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/rack_file.rb
lib/shrine/plugins/rack_file.rb
# frozen_string_literal: true require "forwardable" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/rack_file module RackFile module ClassMethods # Accepts a Rack uploaded file hash and wraps it in an IO object. def rack_file(hash) ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/presign_endpoint.rb
lib/shrine/plugins/presign_endpoint.rb
# frozen_string_literal: true require "rack" require "json" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/presign_endpoint module PresignEndpoint def self.configure(uploader, **opts) uploader.opts[:presign_endpoint] ||= {} uploader.opts[...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/signature.rb
lib/shrine/plugins/signature.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/signature module Signature LOG_SUBSCRIBER = -> (event) do Shrine.logger.info "Signature (#{event.duration}ms) – #{{ io: event[:io].class, algori...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/module_include.rb
lib/shrine/plugins/module_include.rb
# frozen_string_literal: true Shrine.deprecation("The module_include plugin is deprecated and will be removed in Shrine 4. Override core classes directly instead.") class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/module_include module ModuleInclude module ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/metadata_attributes.rb
lib/shrine/plugins/metadata_attributes.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/metadata_attributes module MetadataAttributes def self.load_dependencies(uploader, *) uploader.plugin :entity end def self.configure(uploader, **opts) ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/_urlsafe_serialization.rb
lib/shrine/plugins/_urlsafe_serialization.rb
# frozen_string_literal: true require "base64" require "json" class Shrine module Plugins # This is an internal plugin used by download_endpoint and # derivation_endpoint plugins. module UrlsafeSerialization module ClassMethods def urlsafe_serialize(hash) urlsafe_serializer.encod...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/remove_invalid.rb
lib/shrine/plugins/remove_invalid.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/remove_invalid module RemoveInvalid def self.load_dependencies(uploader) uploader.plugin :validation end module AttacherMethods def validate(*) ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/determine_mime_type.rb
lib/shrine/plugins/determine_mime_type.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/determine_mime_type module DetermineMimeType LOG_SUBSCRIBER = -> (event) do Shrine.logger.info "MIME Type (#{event.duration}ms) – #{{ io: event[:io].class,...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/refresh_metadata.rb
lib/shrine/plugins/refresh_metadata.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/refresh_metadata module RefreshMetadata module AttacherMethods def refresh_metadata!(**) file!.refresh_metadata!(**context, **) set(file) # trigger mod...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/keep_files.rb
lib/shrine/plugins/keep_files.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/keep_files module KeepFiles module AttacherMethods def destroy? false end end end register_plugin(:keep_files, KeepFiles) end end
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/validation.rb
lib/shrine/plugins/validation.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/validation module Validation module AttacherClassMethods # Block that is executed in context of Shrine::Attacher during # validation. Example: # # ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/data_uri.rb
lib/shrine/plugins/data_uri.rb
# frozen_string_literal: true require "base64" require "strscan" require "cgi" require "stringio" require "forwardable" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/data_uri module DataUri class ParseError < Error; end DATA_REGEXP = /dat...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/versions.rb
lib/shrine/plugins/versions.rb
# frozen_string_literal: true Shrine.deprecation("The versions plugin is deprecated and will be removed in Shrine 4. Use the new derivatives plugin instead.") class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/versions module Versions def self.load_dependenci...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/instrumentation.rb
lib/shrine/plugins/instrumentation.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/instrumentation module Instrumentation EVENTS = %i[upload download open exists delete metadata].freeze # We use a proc in order to be able identify listeners. LOG_SUB...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/model.rb
lib/shrine/plugins/model.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/model module Model def self.load_dependencies(uploader, **) uploader.plugin :entity end def self.configure(uploader, **opts) uploader.opts[:model] ||=...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/column.rb
lib/shrine/plugins/column.rb
# frozen_string_literal: true require "json" class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/column module Column def self.configure(uploader, **opts) uploader.opts[:column] ||= { serializer: JsonSerializer } uploader.opts[:column].merge!(o...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/add_metadata.rb
lib/shrine/plugins/add_metadata.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/add_metadata module AddMetadata def self.configure(uploader) uploader.opts[:add_metadata] ||= { definitions: [] } end module ClassMethods def add_meta...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/lib/shrine/plugins/type_predicates.rb
lib/shrine/plugins/type_predicates.rb
# frozen_string_literal: true class Shrine module Plugins # Documentation can be found on https://shrinerb.com/docs/plugins/type_predicates module TypePredicates def self.configure(uploader, methods: [], **opts) uploader.opts[:type_predicates] ||= { mime: :mini_mime } uploader.opts[:typ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/app.rb
demo/app.rb
require "roda" require "./routes/albums" require "./routes/direct_upload" require "./uploaders/image_uploader" class ShrineDemo < Roda plugin :public plugin :assets, css: "app.css", js: "app.js" plugin :run_handler use Rack::Session::Cookie, secret: "secret" plugin :route_csrf, check_header: true route ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/jobs/attachment/promote_job.rb
demo/jobs/attachment/promote_job.rb
require "sucker_punch" module Attachment class PromoteJob include SuckerPunch::Job def perform(attacher_class, record_class, record_id, name, file_data) attacher_class = Object.const_get(attacher_class) record = Object.const_get(record_class).with_pk!(record_id) attacher = attache...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/jobs/attachment/destroy_job.rb
demo/jobs/attachment/destroy_job.rb
require "sucker_punch" module Attachment class DestroyJob include SuckerPunch::Job def perform(attacher_class, data) attacher_class = Object.const_get(attacher_class) attacher = attacher_class.from_data(data) attacher.destroy end end end
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/uploaders/image_uploader.rb
demo/uploaders/image_uploader.rb
# This is a subclass of Shrine base that will be further configured for it's requirements. # This will be included in the model to manage the file. require "./config/shrine" require "./lib/generate_thumbnail" class ImageUploader < Shrine ALLOWED_TYPES = %w[image/jpeg image/png image/webp] MAX_SIZE = 10*102...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/db/migrations/002_create_photos.rb
demo/db/migrations/002_create_photos.rb
Sequel.migration do change do create_table(:photos) do primary_key :id foreign_key :album_id, :albums String :title String :image_data # Shrine will store the file info here for the photo's image end end end
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/db/migrations/001_create_albums.rb
demo/db/migrations/001_create_albums.rb
Sequel.migration do change do create_table(:albums) do primary_key :id String :name String :cover_photo_data # Shrine will store the file info here for the album's cover_photo end end end
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/test/test_helper.rb
demo/test/test_helper.rb
require "bundler/setup" ENV["MT_NO_EXPECTATIONS"] = "1" # disable Minitest's expectations monkey-patches require "minitest/autorun" require "minitest/pride" require "capybara" require "capybara/dsl" require "capybara/minitest" require "capybara/cuprite" require "./app" require "sucker_punch/testing/inline" Capybar...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/test/acceptance_test.rb
demo/test/acceptance_test.rb
require "test_helper" describe "Album form" do it "handles album cover photo upload" do visit "/" click_on "New Album" fill_in "Name", with: "My Album" find(".uppy-FileInput-input").set(fixture("image.jpg")) assert_no_selector "#album-cover-photo-upload-result[value=\"\"]" uploaded_file_data ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/routes/albums.rb
demo/routes/albums.rb
require "./routes/base" require "./models/album" require "./models/photo" module Routes class Albums < Base route do |r| # '/albums' r.is do # GET '/albums' r.get do albums = Album.all view("albums/index", locals: { albums: albums }) end # POST '/a...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/routes/base.rb
demo/routes/base.rb
require "roda" # Base Roda route configuration module Routes class Base < Roda plugin :environments plugin :render plugin :forme_route_csrf plugin :partials plugin :assets, css: "app.css", js: "app.js" use Rack::MethodOverride plugin :all_verbs plugin :indifferent_params plugin...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/routes/direct_upload.rb
demo/routes/direct_upload.rb
require "./routes/base" require "./config/shrine" module Routes class DirectUpload < Base if production? route do |r| # Only '/s3/params' r.is "s3/params" do # GET /s3/params r.run Shrine.presign_endpoint(:cache) end end else # In development and ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/models/photo.rb
demo/models/photo.rb
require "./config/sequel" require "./uploaders/image_uploader" class Photo < Sequel::Model include ImageUploader::Attachment(:image) # ImageUploader will attach and manage `image` end
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/models/album.rb
demo/models/album.rb
require "./config/sequel" require "./uploaders/image_uploader" class Album < Sequel::Model one_to_many :photos nested_attributes :photos, destroy: true add_association_dependencies photos: :destroy include ImageUploader::Attachment(:cover_photo) # ImageUploader will attach and manage `cover_photo` def val...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/lib/generate_thumbnail.rb
demo/lib/generate_thumbnail.rb
require "image_processing/mini_magick" class GenerateThumbnail def self.call(file, width, height) magick = ImageProcessing::MiniMagick.source(file) magick.resize_to_limit!(width, height) end end
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/config/sequel.rb
demo/config/sequel.rb
require "sequel" DB = Sequel.sqlite("database.sqlite3") Sequel::Model.plugin :nested_attributes Sequel::Model.plugin :association_dependencies Sequel::Model.plugin :validation_helpers Sequel::Model.plugin :forme
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/config/credentials.rb
demo/config/credentials.rb
require "dotenv" Dotenv.load!
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
shrinerb/shrine
https://github.com/shrinerb/shrine/blob/2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6/demo/config/shrine.rb
demo/config/shrine.rb
# This is a general base configuration for Shrine in the app. # It's typically placed in a `config` and/or `initializers` folder. require "./config/credentials" require "shrine" require "dry-monitor" # needed by `backgrounding` plugin require "./jobs/attachment/promote_job" require "./jobs/attachment/destroy_job" # ...
ruby
MIT
2f922c6cb1f04aa343b2dc3e26f88f3a6fbac1d6
2026-01-04T15:51:11.791098Z
false
igrigorik/gharchive.org
https://github.com/igrigorik/gharchive.org/blob/f1f4200e4a14da266081697adda7f1119cc54c03/bigquery/transformer.rb
bigquery/transformer.rb
require 'digest' require 'time' require 'yajl' # # Courtesy of @arfon # - https://github.com/arfon/gh_archive_parser # class EventParseError < StandardError; end class EventTransform attr_accessor :actor, :created_at, :raw_event, :id, :org, :other, :payload, :is_public, :repo, :type def initialize(event_json) ...
ruby
MIT
f1f4200e4a14da266081697adda7f1119cc54c03
2026-01-04T15:52:09.489388Z
false
igrigorik/gharchive.org
https://github.com/igrigorik/gharchive.org/blob/f1f4200e4a14da266081697adda7f1119cc54c03/bigquery/upload.rb
bigquery/upload.rb
require 'optparse' require 'time' require 'zlib' require 'yajl' require_relative 'transformer' ARGV << '--help' if ARGV.empty? options = {schema: 'schema.js', compress: true} OptionParser.new do |opts| opts.banner = "Usage: upload.rb [options]" opts.on("-i", "--input FILE", "input filename") do |v| options[...
ruby
MIT
f1f4200e4a14da266081697adda7f1119cc54c03
2026-01-04T15:52:09.489388Z
false
igrigorik/gharchive.org
https://github.com/igrigorik/gharchive.org/blob/f1f4200e4a14da266081697adda7f1119cc54c03/crawler/crawler.rb
crawler/crawler.rb
require 'log4r' require 'yajl' require 'digest' require 'em-http' require 'em-stathat' require_relative 'obfuscate.rb' include EM ## ## Setup ## PAGE_LIMIT = 500 StatHat.config do |c| c.ukey = ENV['STATHATKEY'] c.email = 'ilya@igvita.com' end @log = Log4r::Logger.new('github') @log.add(Log4r::StdoutOutputter...
ruby
MIT
f1f4200e4a14da266081697adda7f1119cc54c03
2026-01-04T15:52:09.489388Z
false
igrigorik/gharchive.org
https://github.com/igrigorik/gharchive.org/blob/f1f4200e4a14da266081697adda7f1119cc54c03/crawler/obfuscate.rb
crawler/obfuscate.rb
module Obfuscate def self.email ( h ) if h.is_a? Hash if h['email'] && !h['email'].empty? email = h.delete('email') name, host = email.split("@") h['email'] = [Digest::SHA1.hexdigest(name), host].compact.join("@") end h.eac...
ruby
MIT
f1f4200e4a14da266081697adda7f1119cc54c03
2026-01-04T15:52:09.489388Z
false
igrigorik/gharchive.org
https://github.com/igrigorik/gharchive.org/blob/f1f4200e4a14da266081697adda7f1119cc54c03/crawler/obfuscate_test.rb
crawler/obfuscate_test.rb
require "test/unit" require_relative "obfuscate.rb" class ObfuscateEmail < Test::Unit::TestCase def test_empty_object input = {} got = Obfuscate.email(input) assert_equal input, got, "expect no change" end def test_email_obfuscation_for_simple_object input = { ...
ruby
MIT
f1f4200e4a14da266081697adda7f1119cc54c03
2026-01-04T15:52:09.489388Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/.github/check_license_headers.rb
.github/check_license_headers.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/spec/instrumentation_spec.rb
elasticsearch-rails/spec/instrumentation_spec.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/spec/lograge_spec.rb
elasticsearch-rails/spec/lograge_spec.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/spec/spec_helper.rb
elasticsearch-rails/spec/spec_helper.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/spec/instrumentation/log_subscriber_spec.rb
elasticsearch-rails/spec/instrumentation/log_subscriber_spec.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/seeds.rb
elasticsearch-rails/lib/rails/templates/seeds.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/searchable.dsl.rb
elasticsearch-rails/lib/rails/templates/searchable.dsl.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/05-settings-files.rb
elasticsearch-rails/lib/rails/templates/05-settings-files.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/04-dsl.rb
elasticsearch-rails/lib/rails/templates/04-dsl.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/searchable.rb
elasticsearch-rails/lib/rails/templates/searchable.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/search_controller_test.dsl.rb
elasticsearch-rails/lib/rails/templates/search_controller_test.dsl.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/search_controller_test.rb
elasticsearch-rails/lib/rails/templates/search_controller_test.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/indexer.rb
elasticsearch-rails/lib/rails/templates/indexer.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/01-basic.rb
elasticsearch-rails/lib/rails/templates/01-basic.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/02-pretty.rb
elasticsearch-rails/lib/rails/templates/02-pretty.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/rails/templates/03-expert.rb
elasticsearch-rails/lib/rails/templates/03-expert.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/elasticsearch/rails.rb
elasticsearch-rails/lib/elasticsearch/rails.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/elasticsearch/rails/version.rb
elasticsearch-rails/lib/elasticsearch/rails/version.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/elasticsearch/rails/lograge.rb
elasticsearch-rails/lib/elasticsearch/rails/lograge.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/elasticsearch/rails/instrumentation.rb
elasticsearch-rails/lib/elasticsearch/rails/instrumentation.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/elasticsearch/rails/tasks/import.rb
elasticsearch-rails/lib/elasticsearch/rails/tasks/import.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/elasticsearch/rails/instrumentation/publishers.rb
elasticsearch-rails/lib/elasticsearch/rails/instrumentation/publishers.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/elasticsearch/rails/instrumentation/log_subscriber.rb
elasticsearch-rails/lib/elasticsearch/rails/instrumentation/log_subscriber.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/elasticsearch/rails/instrumentation/controller_runtime.rb
elasticsearch-rails/lib/elasticsearch/rails/instrumentation/controller_runtime.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-rails/lib/elasticsearch/rails/instrumentation/railtie.rb
elasticsearch-rails/lib/elasticsearch/rails/instrumentation/railtie.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-model/spec/spec_helper.rb
elasticsearch-model/spec/spec_helper.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-model/spec/support/app.rb
elasticsearch-model/spec/support/app.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-model/spec/support/app/answer.rb
elasticsearch-model/spec/support/app/answer.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false
elastic/elasticsearch-rails
https://github.com/elastic/elasticsearch-rails/blob/41f4291407f4cd1b9f2c2b574e05853920086955/elasticsearch-model/spec/support/app/import_article.rb
elasticsearch-model/spec/support/app/import_article.rb
# Licensed to Elasticsearch B.V. under one or more contributor # license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this f...
ruby
Apache-2.0
41f4291407f4cd1b9f2c2b574e05853920086955
2026-01-04T15:51:43.511750Z
false