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 |
|---|---|---|---|---|---|---|---|---|
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/result_flag_test.rb | test/models/result_flag_test.rb | require "test_helper"
require "byebug"
class ResultFlagTest < ActiveSupport::TestCase
# Association Tests
should belong_to(:flag)
should belong_to(:result)
# Load Fixture
fixture_result_flag = ResultFlag.first
# Instance Method Tests
test "should execute set_workflow" do
fixture_result_flag.set_wor... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/events_test.rb | test/models/events_test.rb | require "test_helper"
require "byebug"
class EventTest < ActiveSupport::TestCase
# Validations Tests
should validate_presence_of(:action)
# Association Tests
should belong_to(:user)
should belong_to(:eventable)
should have_many(:event_changes)
# Attribute Tests
should allow_value("foo").for(:field)
... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/summary_test.rb | test/models/summary_test.rb | require "test_helper"
class SummaryTest < ActiveSupport::TestCase
# Association Tests
should belong_to(:summarizable)
end
| ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/system_metadata_test.rb | test/models/system_metadata_test.rb | require "test_helper"
require "byebug"
class SystemMetadataTest < ActiveSupport::TestCase
# Validations Tests
should validate_presence_of(:key)
should validate_uniqueness_of(:key)
should validate_presence_of(:metadata).with_message("bad json")
# Association Tests
#set_fixture_class system_metadata: Syste... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/subscriber_test.rb | test/models/subscriber_test.rb | require "test_helper"
require "byebug"
class SubscriberTest < ActiveSupport::TestCase
# Association Tests
should belong_to(:subscribable)
should belong_to(:user)
# # Validations Tests
should validate_uniqueness_of(:user_id).scoped_to([:subscribable_id, :subscribable_type, :email])
# Load Fixture
fixtur... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/user_saved_filter_test.rb | test/models/user_saved_filter_test.rb | require "test_helper"
require "byebug"
class UserSavedFilterTest < ActiveSupport::TestCase
# Association Tests
should belong_to(:user)
should belong_to(:saved_filter)
end
| ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/result_attachment_test.rb | test/models/result_attachment_test.rb | require "test_helper"
class ResultAttachmentTest < ActiveSupport::TestCase
# Association Tests
should belong_to(:result)
# Load Fixtured Result Attachment
fixture_attachment = ResultAttachment.first
# Paperclip Tests
should have_attached_file(:attachment)
should validate_attachment_content_type(:attach... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/status_test.rb | test/models/status_test.rb | require "test_helper"
require "byebug"
class StatusTest < ActiveSupport::TestCase
# Association Tests
should have_many(:results)
# Load Fixture
fixture_status = Status.first
# Instance Method Tests
test "should set_defaults on new status" do
status = Status.new
status.set_defaults
assert_equa... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/task_test.rb | test/models/task_test.rb | require "test_helper"
require "byebug"
class TaskTest < ActiveSupport::TestCase
# Validations Tests
should validate_presence_of(:name)
should validate_uniqueness_of(:name)
should validate_presence_of(:group)
# Association Tests
should have_many(:taggings).dependent(:delete_all)
should have_many(:tags).... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/comments_test.rb | test/models/comments_test.rb | require "test_helper"
require "byebug"
class CommentTest < ActiveSupport::TestCase
# Validations Tests
should validate_presence_of(:body)
should validate_presence_of(:user)
# Association Tests
should belong_to(:commentable)
should belong_to(:user)
# Class Method Tests
test "execute comment build_from... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/test/models/tagging_test.rb | test/models/tagging_test.rb | require "test_helper"
require "byebug"
class TaggingTest < ActiveSupport::TestCase
# Association Tests
should belong_to(:tag)
should belong_to(:taggable)
should validate_uniqueness_of(:tag_id).scoped_to([:taggable_id, :taggable_type])
end
| ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks.rb | lib/scumblr_tasks.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/helpers/vulnerability_helpers.rb | lib/helpers/vulnerability_helpers.rb | def escape_markdown_characters(text)
["\\","#"].each do |char|
text = text.gsub(char,"\\"+char)
end
return text
end
class Vulnerability
attr_accessor :id, :name, :external_link,
:external_id, :type, :source, :severity,
:identified, :status, :attack_vectors,
:url, :confidence_level, :source_cod... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/helpers/repo_download_helper.rb | lib/helpers/repo_download_helper.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/helpers/thread_tracker.rb | lib/helpers/thread_tracker.rb | class ThreadTracker
attr_accessor :current_thread
# this expects the two required parameters from above
def initialize()
end
def create_tracking_thread(calling_task)
Thread.current[:current_task] = calling_task.try(:id).to_s
end
end
| ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/async_sidekiq.rb | lib/scumblr_tasks/async_sidekiq.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/base.rb | lib/scumblr_tasks/base.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/async.rb | lib/scumblr_tasks/async.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/generic_tasks/sketchy.rb | lib/scumblr_tasks/generic_tasks/sketchy.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/security/curl_analyzer.rb | lib/scumblr_tasks/security/curl_analyzer.rb | # Copyright 2014 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/security/python_analyzer.rb | lib/scumblr_tasks/security/python_analyzer.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/security/rails_analyzer.rb | lib/scumblr_tasks/security/rails_analyzer.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/security/github_event_analyzer.rb | lib/scumblr_tasks/security/github_event_analyzer.rb | # Copyright 2014 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/security/opengrok_analyzer.rb | lib/scumblr_tasks/security/opengrok_analyzer.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/security/github_analyzer.rb | lib/scumblr_tasks/security/github_analyzer.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/maintenance_tasks/vulnerability_cleaner.rb | lib/scumblr_tasks/maintenance_tasks/vulnerability_cleaner.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/maintenance_tasks/move_vulnerability_task.rb | lib/scumblr_tasks/maintenance_tasks/move_vulnerability_task.rb | # Copyright 2014 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/maintenance_tasks/event_cleaner.rb | lib/scumblr_tasks/maintenance_tasks/event_cleaner.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/maintenance_tasks/result_maintenance.rb | lib/scumblr_tasks/maintenance_tasks/result_maintenance.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/sync_tasks/route53_sync.rb | lib/scumblr_tasks/sync_tasks/route53_sync.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/scumblr_tasks/sync_tasks/github_sync.rb | lib/scumblr_tasks/sync_tasks/github_sync.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/workflowable/actions/status_change_notification.rb | lib/workflowable/actions/status_change_notification.rb | class Workflowable::Actions::StatusChangeNotifcationAction < Workflowable::Actions::Action
include ERB::Util
include Rails.application.routes.url_helpers
NAME="Status Change Notification Action"
def run
#@options = Hash.new{ |h,k| h[k] = Hash.new(&h.default_proc) }
recipients = (@object.result.subsc... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/workflowable/actions/notification_action.rb | lib/workflowable/actions/notification_action.rb | class Workflowable::Actions::NotificationAction < Workflowable::Actions::Action
include ERB::Util
NAME="Notification Action"
OPTIONS = {
:recipients => {
:required=>true,
:type=>:text,
:description=>"The recipients of the message"
},
:subject => {
:required=>true,
:type... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/workflowable/actions/comment_action.rb | lib/workflowable/actions/comment_action.rb | class Workflowable::Actions::CommentAction < Workflowable::Actions::Action
include ERB::Util
NAME="Comment Action"
OPTIONS = {
:message => {
:required=>true,
:type=>:text,
:description=>"The contents of the message"
}
}
def run
comment = ::Comment.build_from( @object.result, @... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/provider.rb | lib/search_providers/provider.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/facebook.rb | lib/search_providers/facebook.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/appstore.rb | lib/search_providers/appstore.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/reddit.rb | lib/search_providers/reddit.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/ct.rb | lib/search_providers/ct.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/mac_appstore.rb | lib/search_providers/mac_appstore.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/twitter.rb | lib/search_providers/twitter.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/github.rb | lib/search_providers/github.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/google.rb | lib/search_providers/google.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/play.rb | lib/search_providers/play.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/rss.rb | lib/search_providers/rss.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/you_tube.rb | lib/search_providers/you_tube.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/twitter_user.rb | lib/search_providers/twitter_user.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/lib/search_providers/ebay.rb | lib/search_providers/ebay.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/application.rb | config/application.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/environment.rb | config/environment.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/routes.rb | config/routes.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/boot.rb | config/boot.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/paperclip.rb | config/initializers/paperclip.rb | Paperclip::UriAdapter.register | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/reload.rb | config/initializers/reload.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/mtlsalbe_strategy.rb | config/initializers/mtlsalbe_strategy.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/sidekiq.rb | config/initializers/sidekiq.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/cookie_serializer.rb | config/initializers/cookie_serializer.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/session_store.rb | config/initializers/session_store.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/paperclip_media_type_spoofing.rb | config/initializers/paperclip_media_type_spoofing.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/devise.rb | config/initializers/devise.rb | # Use this hook to configure devise mailer, warden hooks and so forth.
# Many of these configuration options can be set straight in your model.
Devise.setup do |config|
#allows devise to use mutual TLS for auth
config.warden do |manager|
manager.strategies.add(:mtlsable, Devise::Strategies::MTLSable)
manage... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/date_formats.rb | config/initializers/date_formats.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/wrap_parameters.rb | config/initializers/wrap_parameters.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/aws.rb | config/initializers/aws.rb | Aws::VERSION = Gem.loaded_specs["aws-sdk"].version
| ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/inflections.rb | config/initializers/inflections.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/simple_form.rb | config/initializers/simple_form.rb | # Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
# Wrappers are used by the form builder to generate a
# complete input. You can remove any component from the
# wrapper, change the order or even add your own to the
# stack. The options given below are used to... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/tasks.rb | config/initializers/tasks.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/ransack.rb | config/initializers/ransack.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/dump_fixtures.rb | config/initializers/dump_fixtures.rb | class ActiveRecord::Base
def dump_fixture
fixture_file = "#{Rails.root}/test/fixtures/#{self.class.table_name}.yml"
File.open(fixture_file, "a+") do |f|
f.puts({ "#{self.class.table_name.singularize}_#{id}" => attributes }.
to_yaml.sub!(/---\s?/, "\n"))
end
end
end
| ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/backtrace_silencers.rb | config/initializers/backtrace_silencers.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/mime_types.rb | config/initializers/mime_types.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/initializers/secret_token.rb | config/initializers/secret_token.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/environments/test.rb | config/environments/test.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/environments/development.rb | config/environments/development.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/environments/staging.rb | config/environments/staging.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
Netflix-Skunkworks/Scumblr | https://github.com/Netflix-Skunkworks/Scumblr/blob/66ed69a91c65527010f970a746a87557bf9b0856/config/environments/production.rb | config/environments/production.rb | # Copyright 2016 Netflix, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ruby | Apache-2.0 | 66ed69a91c65527010f970a746a87557bf9b0856 | 2026-01-04T15:53:47.123643Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/cmd/brew-cu.rb | cmd/brew-cu.rb | #!/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -W0 -EUTF-8:UTF-8
# frozen_string_literal: true
#:
#:`USAGE` brew cu [command=run] [CASK] [options]
#:
#: `cu` [`options`]
#: Upgrade every outdated app installed by `brew cask`.
#:
#: `cu` CASK [`options`]
#: Upgrade a specific app. Y... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu.rb | lib/bcu.rb | # frozen_string_literal: true
$LOAD_PATH.unshift("#{HOMEBREW_REPOSITORY}/Library/Homebrew/cask/lib")
require "bcu/options"
require "bcu/command/all"
# Causing following issue:
# Error: No such file or directory @ rb_sysopen
# - /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.0/data/unico... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/options.rb | lib/bcu/options.rb | # frozen_string_literal: true
require "optparse"
module Bcu
class << self
include Utils::Output::Mixin
attr_accessor :options
end
def self.parse!(args)
options_struct = Struct.new(:all, :force, :casks, :cleanup, :force_yes, :no_brew_update, :quiet, :verbose,
:install... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/command/command.rb | lib/bcu/command/command.rb | # frozen_string_literal: true
module Bcu
class Command
class CommandNotImplementedError < NoMethodError
end
def process(_args, _options)
raise Command::CommandNotImplementedError, "#{self.class.name} needs to implement 'process' method!"
end
end
end
| ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/command/livecheck.rb | lib/bcu/command/livecheck.rb | # frozen_string_literal: true
require "bcu/module/pin"
module Bcu
class Livecheck < Command
def process(_args, options)
return run_process(options) if $stdout.tty?
redirect_stdout($stderr) do
run_process(options)
end
end
def run_process(options)
installed = Cask.install... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/command/pin_list.rb | lib/bcu/command/pin_list.rb | # frozen_string_literal: true
require "bcu/module/pin"
module Bcu
module Pin
class List < Command
def process(_args, _options)
list_pinned
end
private
def list_pinned
casks = []
Pin.pinned.each do |cask_name|
add_cask cask_name, casks
end
... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/command/pin_export.rb | lib/bcu/command/pin_export.rb | # frozen_string_literal: true
require "bcu/module/pin"
module Bcu
module Pin
class Export < Command
def process(_, options)
file_name = options.backup_filename
File.open(file_name, "w+") do |file|
Pin.pinned.each do |cask_name|
file.puts cask_name
end
... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/command/upgrade.rb | lib/bcu/command/upgrade.rb | # frozen_string_literal: true
require "bcu/module/pin"
module Bcu
class Upgrade < Command
include Utils::Output::Mixin
def process(_args, options)
return run_process(options) if $stdout.tty?
redirect_stdout($stderr) do
run_process(options)
end
end
def run_process(options... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/command/pin_add.rb | lib/bcu/command/pin_add.rb | # frozen_string_literal: true
require "bcu/module/pin"
module Bcu
module Pin
class Add < Command
def process(args, options)
pin = args[1]
# TODO: If we used deprecated --pin option, the value is not any more in the args
pin = options.pin if pin.nil?
add_pin pin
end
... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/command/pin_remove.rb | lib/bcu/command/pin_remove.rb | # frozen_string_literal: true
require "bcu/module/pin"
module Bcu
module Pin
class Remove < Command
def process(args, options)
pin = args[1]
# TODO: If we used deprecated --pin option, the value is not any more in the args
pin = options.unpin if pin.nil?
remove_pin_instanc... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/command/pin_load.rb | lib/bcu/command/pin_load.rb | # frozen_string_literal: true
require "bcu/module/pin"
module Bcu
module Pin
class Load < Command
def process(_, options)
file_name = options.backup_filename
File.open(file_name, "r") do |source_file|
File.open PINS_FILE, "w+" do |file|
source_file.each_line do |cask|... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/command/all.rb | lib/bcu/command/all.rb | # frozen_string_literal: true
require "#{File.dirname(__FILE__)}/command"
require "#{File.dirname(__FILE__)}/livecheck"
require "#{File.dirname(__FILE__)}/pin_add"
require "#{File.dirname(__FILE__)}/pin_export"
require "#{File.dirname(__FILE__)}/pin_list"
require "#{File.dirname(__FILE__)}/pin_load"
require "#{File.di... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/bcu/module/pin.rb | lib/bcu/module/pin.rb | # frozen_string_literal: true
module Bcu
module Pin
PINS_FILE = File.expand_path("#{File.dirname(__FILE__)}/../../../pinned").freeze
module_function
def pinned
@pinned ||= begin
# noinspection RubyArgCount
FileUtils.touch PINS_FILE
pinned = Set[]
File.open(PINS_FI... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/extend/version.rb | lib/extend/version.rb | # frozen_string_literal: true
module Cask
class DSL
class Version
def before_hyphen
version { split("-", 2).first }
end
def after_hyphen
version { split("-", 2).second }
end
def before_separators
version { before_hyphen.csv[0] }
end
end
end
end
| ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/extend/cask.rb | lib/extend/cask.rb | # frozen_string_literal: true
require "livecheck/livecheck"
# For backward-compatibility
# See https://github.com/buo/homebrew-cask-upgrade/issues/97
CASKROOM = (Cask.methods.include?(:caskroom) ? Cask.caskroom : Cask::Caskroom.path).freeze
module Cask
# @param [String] token
# @return [DSL::Version] currently i... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
buo/homebrew-cask-upgrade | https://github.com/buo/homebrew-cask-upgrade/blob/88cffcd2809cecf30da523d7771bd5e54c40129c/lib/extend/formatter.rb | lib/extend/formatter.rb | # frozen_string_literal: false
module Formatter
module_function
class TableColumn
attr_accessor :align, :color, :value, :width
def initialize(args)
@align = args[:align].nil? ? "left" : args[:align]
@color = args[:color].nil? ? "default" : args[:color]
@value = args[:value].nil? ? "" : ... | ruby | MIT | 88cffcd2809cecf30da523d7771bd5e54c40129c | 2026-01-04T15:53:50.351739Z | false |
pdfkit/pdfkit | https://github.com/pdfkit/pdfkit/blob/762b366e9420f8d2b9fc50a372b51094a0247dd4/spec/middleware_spec.rb | spec/middleware_spec.rb | # frozen_string_literal: true
require 'spec_helper'
def app; Rack::Lint.new(@app); end
def mock_app(options = {}, conditions = {}, custom_headers = {})
main_app = lambda { |env|
@env = env
full_headers = headers.merge custom_headers
[200, full_headers, @body || ['Hello world!']]
}
builder = Rack::... | ruby | MIT | 762b366e9420f8d2b9fc50a372b51094a0247dd4 | 2026-01-04T15:52:08.889104Z | false |
pdfkit/pdfkit | https://github.com/pdfkit/pdfkit/blob/762b366e9420f8d2b9fc50a372b51094a0247dd4/spec/source_spec.rb | spec/source_spec.rb | # frozen_string_literal: true
require 'spec_helper'
describe PDFKit::Source do
describe "#url?" do
it "returns true if passed a url like string" do
source = PDFKit::Source.new('http://google.com')
expect(source).to be_url
end
it "returns false if passed a file" do
source = PDFKit::Sou... | ruby | MIT | 762b366e9420f8d2b9fc50a372b51094a0247dd4 | 2026-01-04T15:52:08.889104Z | false |
pdfkit/pdfkit | https://github.com/pdfkit/pdfkit/blob/762b366e9420f8d2b9fc50a372b51094a0247dd4/spec/configuration_spec.rb | spec/configuration_spec.rb | # frozen_string_literal: true
require 'spec_helper'
describe PDFKit::Configuration do
subject { PDFKit::Configuration.new }
describe "#wkhtmltopdf" do
context "when explicitly configured" do
it "uses configured value and don't detect" do
expect(subject).not_to receive(:default_wkhtmltopdf)
... | ruby | MIT | 762b366e9420f8d2b9fc50a372b51094a0247dd4 | 2026-01-04T15:52:08.889104Z | false |
pdfkit/pdfkit | https://github.com/pdfkit/pdfkit/blob/762b366e9420f8d2b9fc50a372b51094a0247dd4/spec/html_preprocessor_spec.rb | spec/html_preprocessor_spec.rb | # frozen_string_literal: true
require 'spec_helper'
describe PDFKit::HTMLPreprocessor do
describe "#process" do
let(:preprocessor) { PDFKit::HTMLPreprocessor }
let(:root_url) { 'http://example.com/' } # This mirrors Middleware#root_url's response
let(:protocol) { 'http' }
it "correctly parses host... | ruby | MIT | 762b366e9420f8d2b9fc50a372b51094a0247dd4 | 2026-01-04T15:52:08.889104Z | false |
pdfkit/pdfkit | https://github.com/pdfkit/pdfkit/blob/762b366e9420f8d2b9fc50a372b51094a0247dd4/spec/pdfkit_spec.rb | spec/pdfkit_spec.rb | #encoding: UTF-8
# frozen_string_literal: true
require 'spec_helper'
describe PDFKit do
describe "initialization" do
# Source
it "accepts HTML as the source" do
pdfkit = PDFKit.new('<h1>Oh Hai</h1>')
expect(pdfkit.source).to be_html
expect(pdfkit.source.to_s).to eq('<h1>Oh Hai</h1>')
e... | ruby | MIT | 762b366e9420f8d2b9fc50a372b51094a0247dd4 | 2026-01-04T15:52:08.889104Z | false |
pdfkit/pdfkit | https://github.com/pdfkit/pdfkit/blob/762b366e9420f8d2b9fc50a372b51094a0247dd4/spec/os_spec.rb | spec/os_spec.rb | #encoding: UTF-8
# frozen_string_literal: true
require 'spec_helper'
require 'rbconfig'
describe 'OS' do
subject { PDFKit::OS }
describe 'host_is_windows?' do
it 'is callable' do
expect(subject).to respond_to(:host_is_windows?)
end
def test_is_windows(bool, host_os)
allow(RbConfig::CONFI... | ruby | MIT | 762b366e9420f8d2b9fc50a372b51094a0247dd4 | 2026-01-04T15:52:08.889104Z | false |
pdfkit/pdfkit | https://github.com/pdfkit/pdfkit/blob/762b366e9420f8d2b9fc50a372b51094a0247dd4/spec/spec_helper.rb | spec/spec_helper.rb | # frozen_string_literal: true
SPEC_ROOT = File.dirname(__FILE__)
$LOAD_PATH.unshift(SPEC_ROOT)
$LOAD_PATH.unshift(File.join(SPEC_ROOT, '..', 'lib'))
require 'simplecov'
SimpleCov.start do
add_filter 'spec/'
end
Warning[:deprecated] = true if defined?(Warning.[]=)
require 'pdfkit'
require 'rspec'
require 'mocha'
re... | ruby | MIT | 762b366e9420f8d2b9fc50a372b51094a0247dd4 | 2026-01-04T15:52:08.889104Z | false |
pdfkit/pdfkit | https://github.com/pdfkit/pdfkit/blob/762b366e9420f8d2b9fc50a372b51094a0247dd4/lib/pdfkit.rb | lib/pdfkit.rb | # frozen_string_literal: true
require 'pdfkit/source'
require 'pdfkit/pdfkit'
require 'pdfkit/middleware'
require 'pdfkit/html_preprocessor'
require 'pdfkit/os'
require 'pdfkit/configuration'
require 'pdfkit/wkhtmltopdf'
require 'pdfkit/version'
| ruby | MIT | 762b366e9420f8d2b9fc50a372b51094a0247dd4 | 2026-01-04T15:52:08.889104Z | false |
pdfkit/pdfkit | https://github.com/pdfkit/pdfkit/blob/762b366e9420f8d2b9fc50a372b51094a0247dd4/lib/pdfkit/source.rb | lib/pdfkit/source.rb | # frozen_string_literal: true
require 'tempfile'
require 'uri'
class PDFKit
class Source
SOURCE_FROM_STDIN = '-'
def initialize(url_file_or_html)
@source = url_file_or_html
# @source is assumed to be modifiable, so make sure it is.
@source = @source.dup if @source.is_a?(String) && @source... | ruby | MIT | 762b366e9420f8d2b9fc50a372b51094a0247dd4 | 2026-01-04T15:52:08.889104Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.