conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix typo: liked_count -> likes_count\n"
},
{
"from": "human",
"value": "require('paginated_array')\n\nmodule Likable\n extend ActiveSupport::Concern\n def self.included(base)\n attr_accessor :is_liked\n\n likes = \"liked_#{base.table_name}\".to_sym\n base... | ruby | chosen |
[
{
"from": "system",
"value": "Add a comment on the EvaluateRollupConditionsSubprocess class.\n"
},
{
"from": "human",
"value": "require 'scorm2004/sequencing'\nrequire 'forwardable'\n\nmodule Scorm2004\n module Sequencing\n class EvaluateRollupConditionsSubprocess\n extend Forwardable\n... | ruby | chosen |
[
{
"from": "human",
"value": "Fix participation validation to allow nulls in entity_id fields\n"
},
{
"from": "gpt",
"value": "class AllowNullsInParticipationEntityIds < ActiveRecord::Migration\n def self.up\n execute <<-SQL\nCREATE OR REPLACE FUNCTION validate_participation() RETURNS TRIGGER... | ruby | chosen |
[
{
"from": "system",
"value": "Fix feature broken by copy change\n"
},
{
"from": "human",
"value": "Given(/^a draft document with broken links exists$/) do\n @broken_link = 'http://broken-link.com/404'\n @working_link = 'http://example.com/some/page'\n stub_request(:get, @broken_link).to_ret... | ruby | chosen |
[
{
"from": "system",
"value": "Add project metadata to the gemspec\n\nAs per https://guides.rubygems.org/specification-reference/#metadata,\nadd metadata to the gemspec file. This'll allow people to more easily\naccess the source code, raise issues and read the wiki. These\n`bug_tracker_uri`, `wiki_uri`, `do... | ruby | chosen |
[
{
"from": "system",
"value": "Allow GET requests that do not cache."
},
{
"from": "human",
"value": "require 'httpclient'\n\nclass Coinmux::Http\n include Singleton\n\n def get(host, path)\n begin\n with_cache(host, path) do\n response = client.get(\"#{host}#{path}\")\n\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Remove world priorities and news from search\n\nThey won't get added back in due to 2ae3439, but we also need existing\nones to be removed.\n"
},
{
"from": "gpt",
"value": "edition_types_to_remove = [WorldwidePriority]\nif ! Whitehall.world_location_news_feature?\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing safe buffer test. We don't patch CGI.escapeHTML, only ERB:Util.\n"
},
{
"from": "human",
"value": "require 'abstract_unit'\n\nclass SafeBufferTest < ActionView::TestCase\n def setup\n @buffer = ActionView::SafeBuffer.new\n end\n\n test \"Should loo... | ruby | chosen |
[
{
"from": "system",
"value": "Allow visitors to receive action cable broadcasts\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule ApplicationCable\n class Connection < ActionCable::Connection::Base\n identified_by :current_user\n\n def connect\n self.current_... | ruby | chosen |
[
{
"from": "system",
"value": "Allow all core to edit abuse reports - 1"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass AbuseCommentsController < ApplicationController\n before_action :verify_core\n before_action :set_comment, except: [:create]\n before_action :verify_a... | ruby | chosen |
[
{
"from": "system",
"value": "Update user's authorized_keys file to only append if the file exists\n"
},
{
"from": "human",
"value": "user = node[:rolling_restart][:ssh][:user]\ngroup = node[:rolling_restart][:ssh][:group]\npublic_key = node[:rolling_restart][:ssh][:public_key]\n\nhome_dir = \"/... | ruby | chosen |
[
{
"from": "system",
"value": "Add some closing newlines and documentation formatter for RSpec"
},
{
"from": "human",
"value": "gem 'rspec-rails', '>= 2.0.0', :group => :test\ngem 'database_cleaner', :group => :test\n\n@stategies << lambda do\n remove_file \"test/\"\n\n inject_... | ruby | chosen |
[
{
"from": "system",
"value": "Add shader files to resources\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'ResearchKit'\n s.version = '1.0.0'\n s.summary = 'ResearchKit is an open source software framework that makes it easy to create apps for medical re... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor DSL methods using helper method\n"
},
{
"from": "human",
"value": "class Genomer::RulesDSL\n\n def initialize\n @types = Array.new\n end\n\n def scaffold_file(location=nil)\n return @scaffold if location.nil?\n @scaffold = location\n end\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec ~> 2.7 to gemspec development dependencies\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"api_cache\"\n s.version = \"0.2.3\"\n s.plat... | ruby | chosen |
[
{
"from": "system",
"value": "Allow setting the level for the logger"
},
{
"from": "human",
"value": "require \"logger\"\n\nrequire \"structured_logger/version\"\nrequire \"structured_logger/entry\"\nrequire \"structured_logger/json_formatter\"\n\nclass StructuredLogger\n\n def initialize(name,... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task to help debugging HL7 messages\n\nrake pathology:test:import_one\n"
},
{
"from": "gpt",
"value": "require \"benchmark\"\n\nnamespace :pathology do\n namespace :test do\n desc \"In development only, import a test HL7 message. Useful for testing liste... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing license info to gemspec"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"arbre/version\"\n\nGem::Specification.new do |s|\n s.name = \"arbre\"\n s.version = Arbre::VERSION\... | ruby | chosen |
[
{
"from": "system",
"value": "Use <= contraint on railties instead of pessimistic version lock\n\nThis was causing us some issues when attempting to upgrade some gems\nin iris. Using <= over ~> resolves this issue\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib... | ruby | chosen |
[
{
"from": "system",
"value": "Resolve gem build warnings, add a license.\n"
},
{
"from": "human",
"value": "dir = File.dirname(__FILE__)\nrequire File.expand_path(File.join(dir, 'lib', 'logglier', 'version'))\n\nGem::Specification.new do |s|\n s.name = 'logglier'\n s.version ... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake into bundler env\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/redis_cache_mailer_delivery/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Yi Wen\"]\n gem.email = [\"... | ruby | chosen |
[
{
"from": "system",
"value": "Fix secret key call method.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'botr/api/authentication'\n\nclass DummyClient \n\n\tdef secret\n\t\t\"uA96CFtJa138E2T5GhKfngml\"\n\tend\n\nend\n\ndescribe BOTR::Authentication do\n\n\tbefore(:each) do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use RDF::Writable behavior, instead of RDF_Writable include.\n"
},
{
"from": "human",
"value": "require File.join(File.dirname(__FILE__), 'spec_helper')\nrequire 'rdf/spec/writable'\n\ndescribe RDF::Writable do\n before :each do\n # The available reference imple... | ruby | chosen |
[
{
"from": "system",
"value": "Make tooltip for owners show the full name as well if it's available\n"
},
{
"from": "human",
"value": "module OwnersHelper\n def owner_image(owner, size, show_tooltip = true, tooltip_text = nil)\n options = {size: \"#{size}x#{size}\", class: \"\"}\n if owner... | ruby | chosen |
[
{
"from": "system",
"value": "Include number of chosen slots for slack ping\n\nPings slack with the location and number of slots the customer chose.\n"
},
{
"from": "human",
"value": "class SlackPingerJob < ActiveJob::Base\n queue_as :default\n\n def perform(booking_request)\n return unless... | ruby | chosen |
[
{
"from": "system",
"value": "Archive only when path changes owner\n"
},
{
"from": "human",
"value": "class ProcedurePath < ApplicationRecord\n validates :path, format: { with: /\\A[a-z0-9_\\-]{3,50}\\z/ }, presence: true, allow_blank: false, allow_nil: false\n validates :administrateur_id, pr... | ruby | chosen |
[
{
"from": "system",
"value": "Add validate presence to Event model\n"
},
{
"from": "human",
"value": "class Event < ActiveRecord::Base\n has_many :participations, class_name: EventParticipation.name, dependent: :destroy\n has_many :users, through: :participations\nend\n"
},
{
"from": "... | ruby | chosen |
[
{
"from": "system",
"value": "Fix practice import spec now we import more types of practice\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"rails_helper\"\n\nmodule Renalware\n module Feeds\n module Files\n module Practices\n describe ImportJob do\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for common build detailed status helpers\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Gitlab::Ci::Status::Build::Common do\n let(:user) { create(:user) }\n let(:build) { create(:ci_build) }\n let(:project) { build.project }\n\n sub... | ruby | chosen |
[
{
"from": "system",
"value": "Use symbol keys instead of string keys\n"
},
{
"from": "human",
"value": "module Bumper\n class Version\n \n ['major', 'minor', 'revision', 'build'].each do |part|\n define_method part do \n @v[part]\n end\n\n define_method \"bump_#{part... | ruby | chosen |
[
{
"from": "system",
"value": "Fix full username (used to inspect a struct instead)"
},
{
"from": "human",
"value": "require 'capistrano'\nrequire 'cap-git-deploy/version'\n\nrequire 'etc'\n\nmodule Cap\n module Git\n module Deploy\n # utility functions\n\n # The name of the branch ... | ruby | chosen |
[
{
"from": "system",
"value": "Use yield instead of block.call.\n"
},
{
"from": "human",
"value": "module DeploYML\n #\n # Provides common methods used by both {LocalShell} and {RemoteShell}.\n #\n module Shell\n\n def initialize(&block)\n block.call(self) if block\n end\n\n #\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add new packages to the black-list\n"
},
{
"from": "human",
"value": "# A list of packages with errors which we chose to ignore (for now). It\n# contains an exact package name together with a string which should be\n# included in the error message.\n\nBlackList = [\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a bug when running on case-insensitive file systems"
},
{
"from": "human",
"value": "\nrequire 'eventmachine'\nrequire 'rbconfig'\n\nmodule EMDirWatcher\n PLATFORM =\n case Config::CONFIG['target_os']\n when /mswin|mingw/ then 'Windows'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change need_id to content_id in need_page_url\n\nThis is to match changes in Maslow. Using need ids will continue to\nwork, and this isn't required for using content ids, but may be less\nconfusing going forward.\n"
},
{
"from": "human",
"value": "class GdsApi::Masl... | ruby | chosen |
[
{
"from": "system",
"value": "Allow payload to be specified at init time\n"
},
{
"from": "human",
"value": "require 'net/http'\nmodule Juici\n class Callback\n\n attr_reader :url\n attr_accessor :payload\n\n def initialize(url)\n @url = url\n end\n\n def process!\n Net:... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Rails 3.0.x fails to load helpers in Engines (?)\"\n\nThis reverts commit 00c912d12bc49c0e7b3d748854e0bdce94ff3470.\n\nreason: reverting back from app/helpers to ActionView::Base freedom-patch.\nBecause mounted engines on the app doesn't search the main_app's helpers, ... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to scope routes from main app\n"
},
{
"from": "human",
"value": "module Orchid\n module Routing\n module_function\n\n def draw(reserved_names: [])\n # Retrieve list of main app's route names\n drawn_routes = defined?(Rails.application.ro... | ruby | chosen |
[
{
"from": "system",
"value": "Fix subtasks problem in Redmine 0.9.x\n"
},
{
"from": "human",
"value": "require 'redmine_charts/line_data_converter'\nrequire 'redmine_charts/pie_data_converter'\nrequire 'redmine_charts/stack_data_converter'\nrequire 'redmine_charts/utils'\nrequire 'redmine_charts... | ruby | chosen |
[
{
"from": "system",
"value": "Add condition path to use bundle exec as runner command\n"
},
{
"from": "human",
"value": "# Environment variable defaults to RAILS_ENV\nset :environment_variable, \"RAILS_ENV\"\n# Environment defaults to production\nset :environment, \"production\"\n# Path defaults... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce size of the gem by only including the necessary files via gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$LOAD_PATH.push File.expand_path('../lib', __FILE__)\n\nrequire 'pronto/rubocop/version'\n\nGem::Specification.new do |s|\n s.name... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Remove giphy query from end of error strings\"\n\nThis reverts commit 0f3bde20c569e4c7bfd0030b20d875592c817dd0.\n"
},
{
"from": "human",
"value": "module SlackMathbot\n module Commands\n class Calculate < SlackRubyBot::Commands::Base\n operator '='... | ruby | chosen |
[
{
"from": "system",
"value": "Change quotes to prevent symbolizing\n"
},
{
"from": "human",
"value": "container_path = '/var/lib/container/registrator'\n\ntag = node['docker-simple']['registrator']['tag']\nip = node['docker-simple']['registrator']['ip']\ncommand = node['docker-simple']['registra... | ruby | chosen |
[
{
"from": "human",
"value": "Add Meld for OSX v3.16.0 (r1)\n"
},
{
"from": "gpt",
"value": "cask 'meld' do\n version '3.16.0 (r1)'\n sha256 '324e096e0253e8ad4237f64a90cdda200fe427db8cf7ebc78143fc98e2d33ebc'\n\n # github.com/yousseb/meld was verified as official when first introduced to the ca... | ruby | chosen |
[
{
"from": "system",
"value": "Update xACT 2.25 to 2.27"
},
{
"from": "human",
"value": "class Xact < Cask\n url 'http://xact.scottcbrown.org/xACT2.25.zip'\n homepage 'http://xact.scottcbrown.org'\n version '2.25'\n sha256 '16425a50bdf9c8af8b436f88f4918145b553135a93887ae1ccddaad8edc79b51'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Bugfix: Make tests work in unclean directory tree.\n"
},
{
"from": "human",
"value": "# -- encoding: utf-8 --\nrequire 'rim'\nrequire 'test/unit'\n\nclass TestHelperMethods < Test::Unit::TestCase\n\n class ::Rim\n attr_accessor :some_new_attr\n end\n\n def te... | ruby | chosen |
[
{
"from": "system",
"value": "Improve specs for list of available filters\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"rails_helper\"\n\nRSpec.describe TextFilterPlugin::Macro do\n describe \"#self.attributes_parse\" do\n it 'parses lang=\"ruby\" to {\"lang\"... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for parallel group iteration\n\nSpec is shamelessly taken from #1149 by @cwgem. This way it's ensured\nit is run and don't have to wait for a Rubyspec pull request.\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__... | ruby | chosen |
[
{
"from": "system",
"value": "Check production pages are 200 OK"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nrequire 'bundler/setup'\nrequire 'date'\nrequire 'faraday'\n\ndomain = 'https://www.pensionwise.gov.uk'\npages = %w(\n /\n /6-steps-you-need-to-take\n /already-bought-annuit... | ruby | chosen |
[
{
"from": "system",
"value": "Add switch to run integration against live data\n"
},
{
"from": "human",
"value": "require 'yaml'\nrequire 'vcr'\n\nrequire 'helper'\n\nVCR.configure do |c|\n c.hook_into :excon\n c.cassette_library_dir = 'test/vcr_cassettes'\n\n c.before_record do |interaction|\... | ruby | chosen |
[
{
"from": "system",
"value": "Adjust test for changes in curation_concerns\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe Sufia::SingleAdminSetSearchBuilder do\n let(:ability) { instance_double(Ability, admin?: true) }\n let(:context) { double(blacklight_config: Cat... | ruby | chosen |
[
{
"from": "system",
"value": "Remove rails test that's already covered in main suite.\n"
},
{
"from": "human",
"value": "require 'rails/spec_helper'\n\ndescribe \"Mingo.collection\" do\n it \"should return the collection set in the rails app production config file\" do\n c = Mingo.collection... | ruby | chosen |
[
{
"from": "system",
"value": "Use the Sequel prepared statement plugins in the test site\n"
},
{
"from": "human",
"value": "$:.unshift('/data/code/sequel/lib')\nrequire 'sequel'\nSequel.single_threaded = true\nSequelDB = Sequel.sqlite(\"db/#{SE_TEST_FRAMEWORK}.sequel.sqlite3\", :single_threaded=... | ruby | chosen |
[
{
"from": "system",
"value": "Update rom version to rom-4\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'rom/yaml/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Disable Rollbar for dev envs\n"
},
{
"from": "human",
"value": "require 'rollbar/rails'\nRollbar.configure do |config|\n # Without configuration, Rollbar is enabled in all environments.\n # To disable in specific environments, set config.enabled=false.\n\n config... | ruby | chosen |
[
{
"from": "system",
"value": "Create a flag to include fakefs for specs\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\nrequire 'failspell'\n"
},
{
"from": "gpt",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\nrequ... | ruby | chosen |
[
{
"from": "system",
"value": "Enable multiverse because many users will want to install packages from it\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: duckduckhack-vm\n# Recipe:: default\n#\n\ninclude_recipe \"duckduckhack-vm::setpassword\"\n\ncookbook_file \"/etc/motd.tail\" do\n sou... | ruby | chosen |
[
{
"from": "human",
"value": "Fix GSS codes for two councils in Scotland with recent border changes\n"
},
{
"from": "gpt",
"value": "class FixGssCodesForScottishCouncilsInExistingSupportSchemes < Mongoid::Migration\n def self.up\n Edition.skip_callback(:save, :before, :check_for_archived_arte... | ruby | chosen |
[
{
"from": "system",
"value": "Allow Rails 2 in gemspec\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'delocalize'\n s.version = '1.0.0.beta1'\n\n s.authors = ['Clemens Kofler']\n s.summary = %q{Localized date/time and number parsing}\n s.description = %q{Deloca... | ruby | chosen |
[
{
"from": "system",
"value": "Add max ttl option for cloudfront\n"
},
{
"from": "human",
"value": "require_relative '../resource_property'\n\nmodule Convection\n module Model\n class Template\n class ResourceProperty\n # Represents a {http://docs.aws.amazon.com/AWSCloudFormation/... | ruby | chosen |
[
{
"from": "system",
"value": "Support of Mac OS X 10.7"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Watt'\n s.version = '0.1'\n s.authors = { 'Benoit Pereira da Silva' => 'benoit@pereira-da-silva.com' }\n s.homepage = 'https://https://github.com/benoit-... | ruby | chosen |
[
{
"from": "system",
"value": "Make frontend tests happy again by adding email_spec as a dependency\n"
},
{
"from": "human",
"value": "# By placing all of Spree's shared dependencies in this file and then loading\n# it for each component's Gemfile, we can be sure that we're only testing just\n# t... | ruby | chosen |
[
{
"from": "system",
"value": "Add Ruby 2.1.0 requirement to Gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'ducksauce/version'\n\nGem::Specification.new do |gem|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 1.5.2 to ~> 1.6.0\n\nUpdates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.\n- [Release notes](https://github.com/rubocop-hq/rubocop/releases)\n- [Changelog](https://github.com/rubocop-hq/rub... | ruby | chosen |
[
{
"from": "system",
"value": "Remove TODOs so that rake will work correctly"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'editorium/version'\n\nGem::Specification.new do |spec|\n sp... | ruby | chosen |
[
{
"from": "system",
"value": "Use strings as keys in the results hash\n"
},
{
"from": "human",
"value": "\nclass ShellCommand\n\t@@results = []\n\t@@last_result = nil\n\t@@error_proc = nil\n\n\tdef self.last_result\n\t\t@@last_result\n\tend\n\tdef self.error_proc\n\t\t@@error_proc\n\tend\n\tdef ... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude controllers and helpers to be annoted by the annotation gem\n"
},
{
"from": "human",
"value": "# NOTE: only doing this in development as some production environments (Heroku)\n# NOTE: are sensitive to local FS writes, and besides -- it's just not proper\n# N... | ruby | chosen |
[
{
"from": "system",
"value": "Change to support Spree 1.x series\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'spree_s3'\n s.version = '1.0.0'\n s.summary = 'Add s3 support for spree'\n #s... | ruby | chosen |
[
{
"from": "system",
"value": "Remove test files from gem distribution."
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'clash/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Move readonly database load to ramoth\n"
},
{
"from": "human",
"value": "name \"web-db\"\ndescription \"Role applied to all servers needing to find the main database\"\n\ndefault_attributes(\n :web => {\n :database_host => \"katla.bm.openstreetmap.org\",\n :r... | ruby | chosen |
[
{
"from": "system",
"value": "Remove dev dependencies from gemspec\n\nWe use the gemfiles in gemfiles/ for the tests.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/rollbar/version', __FILE__)\n\n\nGem::Specification.new do |gem|\n is_jruby = defi... | ruby | chosen |
[
{
"from": "system",
"value": "Move nokogiri to runtime dependencies\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'skymorph/version'\n\nGem::Specification.new do |spec|\n spec.name... | ruby | chosen |
[
{
"from": "system",
"value": "Add myself to the author list now\n\nThanks for the handoff Seth\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) un... | ruby | chosen |
[
{
"from": "system",
"value": "Add .dev suffix in version number\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nGem::Specification.new do |spec|\n spec.name = \"enumerable-statist... | ruby | chosen |
[
{
"from": "system",
"value": "Make plugin use full path\n"
},
{
"from": "human",
"value": "# Include hook code here\n\nrequire \"lib/emailthing\"\nrequire \"net/http\"\nrequire \"action_mailer\"\n\nclass ActionMailer::Base\n include Emailthing\n @@emailthing_settings = {\n :api_key => nil\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add test case for automate method vmmigratetask_complete.\n\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1284110\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe 'vmmigratetask_complete method' do\n let(:miq_server) { EvmSpecHelper.local_miq_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in gem description\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'griddler/mandrill/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Update the deploy spec which got outta sync.\n"
},
{
"from": "human",
"value": "describe \"Invoking the 'vh' command in a project\" do\n before :each do\n Dir.chdir root('test_env')\n end\n\n describe \"to do a simulated deploy\" do\n before :each do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Mark lhm integration test as pending. We'll be done in another branch\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe PerconaMigrator do\n class Comment < ActiveRecord::Base; end\n\n let(:migration_fixtures) do\n File.expand_path('../fixtur... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to latest version, no_checksum\n"
},
{
"from": "human",
"value": "class DuplicateAnnihilator < Cask\n url 'http://brattoo.com/propaganda/downloadDa.php'\n homepage 'http://brattoo.com/propaganda/'\n version '4.16.0'\n sha1 '80af306c21f1f6c16d08fe6a672af3d... | ruby | chosen |
[
{
"from": "system",
"value": "Update SoundCloud Downloader to 2.6.4\n"
},
{
"from": "human",
"value": "cask :v1 => 'soundcloud-downloader' do\n version '2.6.2'\n sha256 'a68b69c3c1e523a1f93f8f9d774f8fa071e33cd0bbebdaaf7972103a58832005'\n\n url \"http://black-burn.ch/scd/downloads/#{version.de... | ruby | chosen |
[
{
"from": "system",
"value": "Correct vhost to not use leading slash\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n# encoding: utf-8\n\nexamples_dir = File.join(File.dirname(File.expand_path(__FILE__)), \"..\", \"..\")\n__dir = File.join(File.dirname(File.expand_path(__FILE__)),... | ruby | chosen |
[
{
"from": "system",
"value": "Update to history's fork of model_stubbing to make compat with Edge Rails.\n"
},
{
"from": "human",
"value": "# Attempts to work around rails fixture loading\nmodule ModelStubbing\n module Extension\n def self.included(base)\n class << base\n attr_ac... | ruby | chosen |
[
{
"from": "system",
"value": "Make `development' context entry exist in all common application configurations\n"
},
{
"from": "human",
"value": "load_config :common\n\n# Rack middleware\nuse Rack::Head\nuse Rack::StaticDir, 'public'\n\n# Server\nset :server, [:thin, :mongrel, :webrick]\nset :hos... | ruby | chosen |
[
{
"from": "system",
"value": "Replace Cop.all with Cop.registry to follow rubocop refactoring\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule CC\n module Engine\n class SourceFile\n def initialize(config_store:, io:, path:, root:)\n @config_store = conf... | ruby | chosen |
[
{
"from": "system",
"value": "Use $stdout instead of STDOUT\n\nFixes #8\n"
},
{
"from": "human",
"value": "module Cellular\n module Backends\n class Log\n def self.deliver(options = {}, savon_options = {})\n STDOUT.puts options[:message]\n end\n\n def self.receive(data)... | ruby | chosen |
[
{
"from": "system",
"value": "Make the objects respond to_i"
},
{
"from": "human",
"value": "module EmailCenterApi\n class Base\n include HTTParty\n default_timeout 10\n\n def self.get(*args, &block)\n base_uri EmailCenterApi.endpoint\n basic_auth EmailCenterApi.username, Ema... | ruby | chosen |
[
{
"from": "system",
"value": "Use 1.8.7-compatible way of getting the singleton class\n"
},
{
"from": "human",
"value": "require 'ffi-glib/container_class_methods'\n\nmodule GLib\n # Common methods for List and SList.\n module ListMethods\n include Enumerable\n attr_reader :element_type\... | ruby | chosen |
[
{
"from": "system",
"value": "Support equality checks for Kafka::PendingMessage\n"
},
{
"from": "human",
"value": "module Kafka\n class PendingMessage\n attr_reader :value, :key, :topic, :partition, :partition_key, :create_time, :bytesize\n\n def initialize(value, key, topic, partition, p... | ruby | chosen |
[
{
"from": "system",
"value": "Make test pass on non-material-design ui\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\nrequire_relative '../page_root.rb'\n\nclass CatalinkerClient < PageRoot\n def visit\n @browser.goto catalinker_client(:home)\n self\n end\n\n def add(... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake task to import and create alias\n"
},
{
"from": "human",
"value": "require 'elasticsearch/rails/tasks/import'\n\nnamespace :elasticsearch do\n task :drop do\n Rubygem.__elasticsearch__.client.indices.delete index: Rubygem.index_name\n end\n task :crea... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake task for copying thor scripts to host app\n"
},
{
"from": "human",
"value": "# desc \"Explaining what the task does\"\n# task :rglossa do\n# # Task goes here\n# end\n"
},
{
"from": "gpt",
"value": "namespace \"rglossa\" do\n namespace \"insta... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Appscript: Remove the useless message it is now included in the Gemspec.\"\n\nThis reverts commit 5c6b9c92247a02183404c23a5a79da5638fbd518.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nbegin\n require 'appscript'\nrescue LoadError\n # D... | ruby | chosen |
[
{
"from": "system",
"value": "Allow plugins to leave cookbook_path unset\n\nSome plugins (such as the new chef-aws plugin) do not require additional\nconfiguration. Previously, we required such plugins to define empty\nenable and disable recipes. This commit allow such plugins to leave\ncookbook_path unset... | ruby | chosen |
[
{
"from": "human",
"value": "Add formula to build SublerCLI from SVN\n\nSigned-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>\n"
},
{
"from": "gpt",
"value": "require 'formula'\n\nclass Sublercli <Formula\n head 'http://subler.googlecode.com/svn/trunk/'\n homepage... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Wimoweh Beta URL\nMissed a rogue _ before the file extension, not sure why the dev has it there.\n"
},
{
"from": "human",
"value": "class WimowehBeta < Cask\n url 'http://www.serialangels.co.uk/sa-content/uploads/2013/12/Wimoweh.0.66.BETA.zip'\n homepage 'http... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify conditions for superenv activation\n\n`MacOS::Xcode.without_clt? && MacOS.sdk_path.nil?` should never be true.\n\nIn its earliest form, this would raise a bare RuntimeError in an effort\nto have the bug reported. Later, it was changed to silently disable\nsuperenv. But... | ruby | chosen |
[
{
"from": "system",
"value": "Change TreeSampler to be a module\n"
},
{
"from": "human",
"value": "class TestingGround\n class TreeSampler\n RESOLUTION_LENGTH_LOW = 365\n\n def self.sample(networks, resolution = nil, nodes = nil)\n Hash[networks.each_pair.map do |carrier, graph|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Identify to version 545\n"
},
{
"from": "human",
"value": "class Identify < Cask\n url 'https://www.macupdate.com/download/33814/iDentifyLite532.zip'\n homepage 'http://identify2.arrmihardies.com/'\n version '532'\n sha1 'cf1ce8abc5f3c2cc545177d40e0a3615e... | ruby | chosen |
[
{
"from": "system",
"value": "Disable deprecated implicit join references\n"
},
{
"from": "human",
"value": "module TranslationsForAssociations\n # This is to allow us to do eager loading on translations for\n # associated objects (e.g. load all document collection and their orgs\n # includin... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.