conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add Thoth -> Thoth importer to make it easier to move data between databases\n"
},
{
"from": "gpt",
"value": "#\n# Thoth -> Thoth importer (for moving content to a different database).\n#\n\nclass ThothImporter < Thoth::Importer\n\n before_import do\n unless uri ... | ruby | chosen |
[
{
"from": "system",
"value": "Rename \"available_adapter\" in Adapter::Random to \"adapter\" for better readability\n"
},
{
"from": "human",
"value": "require_relative 'base'\n\nmodule Unisms::Router\n\tclass Random < Base\n\t\tattr_accessor :available_adapters\n\n\t\tdef initialize(available_ad... | ruby | chosen |
[
{
"from": "system",
"value": "Allow the Gitorious repo resolver to pass no repository\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n#--\n# Copyright (C) 2012 Gitorious AS\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Aff... | ruby | chosen |
[
{
"from": "system",
"value": "Add development dependency for ap\n"
},
{
"from": "human",
"value": "$:.unshift(File.dirname(__FILE__) + '/lib')\nrequire 'mixlib/shellout/version'\n\nGem::Specification.new do |s|\n s.name = 'mixlib-shellout'\n s.version = Mixlib::ShellOut::VERSION\n s.platform ... | ruby | chosen |
[
{
"from": "system",
"value": "Add json dependency to gemspec\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/dxruby/version', __FILE__)\n\nlibdir = File.expand_path('../lib', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'dxruby'\n gem.version = DXRuby::VERSI... | ruby | chosen |
[
{
"from": "system",
"value": "Add simple link controller test\n\nOur controller is mostly being exercised via the feature tests.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe LinksController, type: :controller do\nend\n"
},
{
"from": "gpt",
"value": "req... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for UpdateCourseStats debugging\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'rails_helper'\n\ndescribe UpdateCourseStats do\n let(:course) { create(:course, flags: flags) }\n let(:subject) { described_class.new(course) }\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Rubocop from 0.26.0 -> 0.26.1 for Travis builds\n\nChange-Id: I8342d80e2de8dac5e088259ec6ef8f3a28e8343d\nReviewed-on: http://gerrit.causes.com/42990\nTested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@causes.com>\nReviewed-by: Shane da Silva <67fb7bfe39f841b16a... | ruby | chosen |
[
{
"from": "system",
"value": "Remove deprecation warning for using table_exists?\n"
},
{
"from": "human",
"value": "if ActiveRecord.gem_version >= Gem::Version.new('5.0')\n class CreateUsers < ActiveRecord::Migration[4.2]; end\nelse\n class CreateUsers < ActiveRecord::Migration; end\nend\nCrea... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Perl builder spec, it was mixing up \"install\" and \"script\"\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'travis/build'\n\ndescribe Travis::Build::Job::Test::Perl do\n let(:shell) { stub('shell') }\n let(:config) { Travis::Build::Job::T... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typos in dependency requiring\n"
},
{
"from": "human",
"value": "require_relative 'curriculum_viate/version'\nrequire_relative 'curriculum_viate/builder'\n\nmodule CurriculumVitae\nend\n"
},
{
"from": "gpt",
"value": "require_relative 'curriculum_vit... | ruby | chosen |
[
{
"from": "system",
"value": "Update Fluentd to latest version\n"
},
{
"from": "human",
"value": "name \"fluentd\"\ndefault_version '9fea4bd69420daf86411937addc6000dfcc6043b'\n\ndependency \"ruby\"\n#dependency \"bundler\"\n\nsource :git => 'https://github.com/fluent/fluentd.git'\nrelative_path ... | ruby | chosen |
[
{
"from": "system",
"value": "Set some debugging / optimisation opts in compiler\n"
},
{
"from": "human",
"value": "require 'mkmf'\nrequire 'rbconfig'\nif CONFIG['CC'] == 'gcc'\n CONFIG['CC'] = 'gcc -Wall '\nend\ncreate_makefile 'amatch_ext' \n"
},
{
"from": "gpt",
"value": "require... | ruby | chosen |
[
{
"from": "system",
"value": "Add Player factory for tests\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :hero do\n name 'McCree'\n role 'offense'\n end\n\n factory :map do\n name 'Dorado'\n map_type 'escort'\n end\n\n factory :map_segment do\n map\n n... | ruby | chosen |
[
{
"from": "system",
"value": "Update Sprockets extension to work with Sprockets 2, 3, 4\n\nSprockets 3.x display deprecation warning: You are using the a deprecated processor interface #<Proc:0x007f9002044f90@/.../gems/ruby-2.3.1/gems/js-routes-1.2.7/lib/js_routes/engine.rb:11>.\nPlease update your processo... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for IO.pread if available.\n"
},
{
"from": "human",
"value": "\nmodule MaxMindDB\n class LowMemoryReader\n METADATA_MAX_SIZE = 128 * 1024\n\n def initialize(path)\n @mutex = Mutex.new\n @file = File.open(path, 'rb')\n end\n\n def [... | ruby | chosen |
[
{
"from": "system",
"value": "Update the gemspec to allow for release.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'idtbeyond/version'\n\nGem::Specification.new do |spec|\n spec.... | ruby | chosen |
[
{
"from": "system",
"value": "Remove inaccurate reference to 'folded'\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nrequire 'csv'\n\ninput = CSV.parse($stdin, headers: true).collect { |row|\n [row['Old Url'], (row['New Url'] == \"\" ? nil : row['New Url']), row['Status']]\n}\n\nfold... | ruby | chosen |
[
{
"from": "system",
"value": "Set require.main to the topmost (unidentified) \"module\"."
},
{
"from": "human",
"value": "module Modulr\n class Collector\n attr_reader :modules, :main\n \n def initialize(options = {})\n @root = options[:root]\n @lazy_eval = options[:lazy_eval... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a cucumber step that was only accidentally working\n"
},
{
"from": "human",
"value": "When /^I add an author named \"([^\\\"]*)\"$/ do |name|\n git_pair '--add \"Linus Torvalds\"'\nend\n\nThen /^`git pair` should display \"([^\\\"]*)\" in its author list$/ do |... | ruby | chosen |
[
{
"from": "system",
"value": "Index module in stabdard format. Need to refactor indexing.\n"
},
{
"from": "human",
"value": "\nmodule RestClientPlus\n\nrequire_relative 'array_helper'\nrequire_relative 'requests'\nrequire 'rest_client'\n\nend\n"
},
{
"from": "gpt",
"value": "require_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix license name in gemspec\n\nPreviously, we had the license name set to \"Apache 2.0\", which doesn't\nconform to the entry in the list that `gem` validates against\n(https://spdx.org/licenses/).\n\nThis commit replaces the space with a hyphen so that we match the format\nexp... | ruby | chosen |
[
{
"from": "system",
"value": "Add Presenter.group to expose grouped collections\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Subway\n\n class Presenter\n include AbstractType\n include Concord.new(:data)\n include Adamantium::Flat\n\n def method_missing(method, *ar... | ruby | chosen |
[
{
"from": "system",
"value": "Fix 'Republish all documents with attachments' rake task\n\nWe've had a [report] that a particular publication was showing a\n\"Request an accessible format link\" that doesn't do anything. This\nis evidently a known issue and has been fixed already; what's\nneeded is to republ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor PerformTaskJob for easier instrumentation\n"
},
{
"from": "human",
"value": "class PerformTaskJob < BackgroundJob\n queue_as :deploys\n\n def perform(task)\n @task = task\n unless @task.pending?\n logger.error(\"Task ##{@task.id} already in `#{... | ruby | chosen |
[
{
"from": "system",
"value": "Change from address to service default\n\nHaving the sender as the from address triggers off security scanners within certain networks as the email didn't originate within that network.\n\nUsing the default system email address as the from should fix some deliverability issues.... | ruby | chosen |
[
{
"from": "system",
"value": "Add dtend and description to ical format.\n"
},
{
"from": "human",
"value": "class BillIcalendar\n def initialize(bills, start_date, end_date = Date.today + 1.year)\n @start_date = start_date\n @end_date = end_date\n @bills = bills\n @icalendar = Icalen... | ruby | chosen |
[
{
"from": "system",
"value": "Change RoomCreator service to be more friendly to Room interface\n"
},
{
"from": "human",
"value": "class RoomCreator\n attr_reader :owner, :room_name, :room\n\n def initialize(options)\n options.each do |k, v|\n instance_variable_set \"@#{k}\", v\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Add titles to static pages.\n"
},
{
"from": "human",
"value": "class StaticPagesController < ApplicationController\n\n def display_nav\n @display_nav = false\n end \n\n def about\n end\n\n def privacy_policy\n end\n\n def terms_of_use\n end\nend\n"
},
... | ruby | chosen |
[
{
"from": "system",
"value": "Update gem spec with description."
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'juxtapose/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "human",
"value": "Add another region test with failures.\n"
},
{
"from": "gpt",
"value": "require 'phoney/test_helper'\n\nclass TWRegionTest < MiniTest::Unit::TestCase\n def setup\n PhoneNumber.region = \"tw\"\n end\n \n def test_pattern_with_trunk_prefix_and_country\n asser... | ruby | chosen |
[
{
"from": "system",
"value": ":white_check_mark: Update controller test to use params: when Rails 4+\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass PagesControllerTest < ActionController::TestCase\n include ParamsHelper\n setup do\n WebpackerHelpers.compile_if_missing\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Disable caching for a bit\n"
},
{
"from": "human",
"value": "FarmBot::Application.configure do\n config.force_ssl = true if ENV[\"FORCE_SSL\"]\n config.action_controller.perform_caching = true\n config.action_mailer.default_url_options = { host: ENV.fetch(\"API_H... | ruby | chosen |
[
{
"from": "system",
"value": "Set smtp server to 'theorem.ca'\n"
},
{
"from": "human",
"value": "# Settings specified here will take precedence over those in config/environment.rb\n\n# The production environment is meant for finished, \"live\" apps.\n# Code is not reloaded between requests\nconf... | ruby | chosen |
[
{
"from": "system",
"value": "Add install method as by default 'script' is used which ignores version\n\nhttps://github.com/chef-cookbooks/docker/issues/588\n"
},
{
"from": "human",
"value": "include_recipe 'drone::_gen_docker_certs' if node['drone']['generate_certs']\n\ndocker_service 'default'... | ruby | chosen |
[
{
"from": "system",
"value": "Configure mpac mime type for message pack.\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Add new mime types for use in respond_to blocks:\n# Mime::Type.register \"text/richtext\", :rtf\n# Mime::Type.register_alia... | ruby | chosen |
[
{
"from": "system",
"value": "Fix home recipe: URL and path\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: home\n# Recipe:: default\n#\n# Copyright 2013, YOUR_COMPANY_NAME\n#\n# All rights reserved - Do Not Redistribute\n#\ngit \"/home/mzp/home\" do\n repository \"git@github.com:mzp/ho... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a bug when building channel w/ MutableData\n"
},
{
"from": "human",
"value": "module Pakyow\n module UI\n module ChannelBuilder\n def self.build(scope: nil, mutation: nil, component: nil, qualifiers: [], data: [], qualifications: {})\n channel = ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove spec that only fails on travis\n\nFigure out later how to test that functionality\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Pronto do\n describe '.run' do\n subject { Pronto.run(commit, path_to_repo) }\n\n let(:commit) { '21c... | ruby | chosen |
[
{
"from": "system",
"value": "Add Devise methods to rspec config\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n# This file is copied to spec/ when you run 'rails generate rspec:install'\nENV[\"RAILS_ENV\"] ||= 'test'\nrequire File.expand_path(\"../../config/environment\", __FILE__)... | ruby | chosen |
[
{
"from": "system",
"value": "Delete log dir only if it exists\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"pathname\"\n\nSPEC_ROOT = File.expand_path(__dir__).freeze\nLOG_DIR = Pathname(SPEC_ROOT).join(\"..\").join(\"log\")\n\nrequire_relative \"support/coverage... | ruby | chosen |
[
{
"from": "system",
"value": "Add database cleaner to spec helper\n"
},
{
"from": "human",
"value": "require 'simplecov'\nSimpleCov.start do\n minimum_coverage 80\n add_filter \"/spec/\"\n add_filter \"/config/\"\nend\n\nENV['RAILS_ENV'] ||= 'test'\n\nrequire File.expand_path(\"../test_app/co... | ruby | chosen |
[
{
"from": "system",
"value": "Update .podspec version to 5.0.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n\n spec.name = \"EliteFramework\"\n spec.version = \"4.2.1\"\n spec.summary = \"UI and NS extended, write shortcode do more.\"\n spec.homepage = \"https://github.com/Lif... | ruby | chosen |
[
{
"from": "system",
"value": "Fix unnecessary routing :only option override\n"
},
{
"from": "human",
"value": "require 'action_dispatch/routing/mapper'\n\nclass ActionDispatch::Routing::Mapper\n def caprese_resources(*resources, &block)\n options = resources.extract_options!\n\n options[:... | ruby | chosen |
[
{
"from": "system",
"value": "Make case-insensitive search for text columns only\n"
},
{
"from": "human",
"value": "module HydraAttribute\n module Model\n module Validations\n extend ActiveSupport::Concern\n include ActiveModel::Validations\n\n class UniqueValidator < ActiveMo... | ruby | chosen |
[
{
"from": "system",
"value": "Remove switches destructively. Non-option arguments remain in args.\n"
},
{
"from": "human",
"value": "module Metacrunch\n class Job::Dsl::OptionSupport\n\n def register_options(args, &block)\n registry = OptionProxy.new\n registry.instance_eval(&block... | ruby | chosen |
[
{
"from": "system",
"value": "Bring Yaks::Resource::Link to 100% explicit mutcov\n"
},
{
"from": "human",
"value": "RSpec.describe Yaks::Resource::Link do\n subject(:link) { described_class.new(rel: rel, uri: uri, options: options) }\n\n let(:rel) { :foo_rel }\n let(:uri) { 'http://... | ruby | chosen |
[
{
"from": "human",
"value": "Create spec examples for AeCopySimulate button class\n"
},
{
"from": "gpt",
"value": "describe ApplicationHelper::Button::AeCopySimulate do\n let(:view_context) { setup_view_context_with_sandbox({}) }\n let(:resolve) { {:button_class => button_class} }\n let(:butt... | ruby | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Include t3-chef-vault::default to fix not found errors\n"
},
{
"from": "human",
"value": "#<> LDAP password should be stored in secure.config\n\n# this has to be defined before including the gerrit cookbook\n\nnode.normal['gerrit']['secure_config']['ldap'][... | ruby | chosen |
[
{
"from": "system",
"value": "Tag OAuth2HttpAdapter with valid OAUTH credentials as integration test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe KOSapiClient::OAuth2HttpAdapter, :vcr do\n KOSAPI_ROOT_URL = 'https://kosapi.fit.cvut.cz/api/3/'\n subject(:client) { KOSapi... | ruby | chosen |
[
{
"from": "human",
"value": "Add a spec for QueueingRabbit::Client::Bunny class.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe QueueingRabbit::Client::Bunny do\n let(:connection) { stub(:start => true) }\n\n before do\n QueueingRabbit.stub(:amqp_uri => 'amqp://localhost... | ruby | chosen |
[
{
"from": "system",
"value": "Allow multiple modules in namespace definition.\n"
},
{
"from": "human",
"value": "module Alf\n module Schema\n include Lang::Functional\n\n module ClassMethods\n\n def connect(conn_spec, &bl)\n Connection.connect(conn_spec, self, &bl)\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Correct SHA (+1 squashed commit)\nSquashed commits:\n[0f7e147] Update to 0.10.4\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass PhpVersion < Formula\n homepage 'https://github.com/wilmoore/php-version#simple-php-version-switching'\n url 'https... | ruby | chosen |
[
{
"from": "system",
"value": "Extend BaseHelper to fetch image URLs.\n"
},
{
"from": "human",
"value": "module Spree\n module BaseHelper\n\n def taxons_tree(root_taxon, current_taxon, max_level = 1)\n return '' if max_level < 1 || root_taxon.children.empty?\n content_tag :ul, class... | ruby | chosen |
[
{
"from": "system",
"value": "Add github host for markdown imgs when path given"
},
{
"from": "human",
"value": "renderer = Redcarpet::Render::HTML.new\n\nextensions = {\n fenced_code_blocks: true,\n no_intra_emphasis: true,\n tables: true,\n lax_spacing: true,\n autolink: true\n}\n\n::Mark... | ruby | chosen |
[
{
"from": "system",
"value": "Add yard docs for binary operator emitters\n"
},
{
"from": "human",
"value": "module ToSource\n class Emitter\n class BinaryOperator < self\n\n private\n\n def dispatch\n emit('(')\n emit_left\n space\n emit(self.class::SYMBOL... | ruby | chosen |
[
{
"from": "system",
"value": "Use latest Perpetuity as minimum\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'perpetuity/postgres/version'\n\nGem::Specification.new do |spec|\n spe... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in describe block\n\nThe typo meant that there was no tests nested under the \"#hasing_function\" block. While the program still runs effectively, it does make automated test documentation harder to read.\n"
},
{
"from": "human",
"value": "require_relative ... | ruby | chosen |
[
{
"from": "human",
"value": "Test multiple modifiers on validator\n\nTest that allow_blank works with a custom error message\n"
},
{
"from": "gpt",
"value": "require_relative '../../../lib/validates_subset'\n\nclass TestMultiple\n include ActiveModel::Validations\n\n attr_accessor :foo\n\n va... | ruby | chosen |
[
{
"from": "system",
"value": "Fix manual action entity specs\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe BuildActionEntity do\n let(:build) { create(:ci_build, name: 'test_build') }\n\n let(:entity) do\n described_class.new(build, request: double)\n end\n\n descri... | ruby | chosen |
[
{
"from": "system",
"value": "Add a method to tag and checkout the correct version of the code source\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'bundler/setup'\n\ndef tagGit (settings)\n\n return\n \n tag_name = \"jenkins_\" + settings[:buildNumber]\n create_tag = \"... | ruby | chosen |
[
{
"from": "human",
"value": "Add example file for output methods\n"
},
{
"from": "gpt",
"value": "begin\n require 'tkxxs'\nrescue LoadError\n require( File.dirname( File.dirname(__FILE__)) +'/lib/tkxxs')\nend\ninclude TKXXS\n\nclass MyTinyUI\n\n def initialize( )\n @outW = OutW.new # cre... | ruby | chosen |
[
{
"from": "human",
"value": "Add unless spec to modifiers\n\nMuch like the if spec, adds the unless spec to only validate\n unless a proc is true\n"
},
{
"from": "gpt",
"value": "require_relative '../../../lib/validates_subset'\n\ndescribe 'unless condition' do\n subject { sub = TestIfTrue.new... | ruby | chosen |
[
{
"from": "system",
"value": "Check that creating an event does the right thing with invalid attributes\n\nThis context is justified now that it’s possible for an event to be\ninvalid.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe EventsController do\n describe 'PO... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Either instrument execute or exec_query, not both\"\n\nThis reverts commit 20d07f628171abec143fb8f64bba7142f5a0cf42.\n"
},
{
"from": "human",
"value": "require 'marginalia/railtie'\nrequire 'marginalia/comment'\n\nmodule Marginalia\n mattr_accessor :applic... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for verbose brew outdated output\n\nSplit the tests up into quiet and verbose output with contexts.\n"
},
{
"from": "human",
"value": "describe \"brew outdated\", :integration_test do\n it \"prints outdated Formulae\" do\n setup_test_formula \"testball\... | ruby | chosen |
[
{
"from": "system",
"value": "Tidy up gemspec, add 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 'ember_flash_message_rails/version'\n\nGem::Specification.new do |spec|... | ruby | chosen |
[
{
"from": "system",
"value": "Remove private TagLib classes from Ruby wrapper\n"
},
{
"from": "human",
"value": "require 'taglib_mp4'\n\nmodule TagLib::MP4\n class File\n extend ::TagLib::FileOpenable\n end\n\n class ItemListMap\n alias :clear :_clear\n alias :insert :_insert\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Load extension based on ruby-specific version.\n"
},
{
"from": "human",
"value": "require 'sqlite3/sqlite3_native'\nrequire 'sqlite3/database'\nrequire 'sqlite3/version'\n"
},
{
"from": "gpt",
"value": "# support multiple ruby version (fat binaries under... | ruby | chosen |
[
{
"from": "system",
"value": "Make submodules optional, but loaded if present\n"
},
{
"from": "human",
"value": "require_relative 'core_extend/lib/core_extend'\nrequire_relative 'git/lib/git'\nrequire_relative 'options/lib/options'\nrequire_relative 'rush/lib/rush'\nrequire_relative 'susu/lib/su... | ruby | chosen |
[
{
"from": "system",
"value": "Add pry as a development dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'mediumite/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 2.5.1.0 to 2.5.1.1\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'evt-messaging'\n s.version = '2.5.1.0'\n s.summary = 'Common primitives for platform-specific messaging im... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.29.0.4 to 0.29.0.5\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'evt-messaging'\n s.version = '0.29.0.4'\n s.summary = 'Common primitives for platform-specific messaging... | ruby | chosen |
[
{
"from": "system",
"value": "Add configuration for 'Add Item' dialog.\n"
},
{
"from": "human",
"value": "Islay::Engine.extensions.register do |e|\n e.namespace :islay_blog\n\n e.admin_styles true\n e.admin_scripts false\n\n e.nav_entry('Blog', :blog)\nend\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Sentry noise from spec output\n"
},
{
"from": "human",
"value": "require 'raven'\n\nRaven.configure do |config|\n config.dsn = Figaro.env.sentry_dsn\n config.silence_ready = true\nend"
},
{
"from": "gpt",
"value": "require 'raven'\n\nRaven.confi... | ruby | chosen |
[
{
"from": "human",
"value": "tests: Add ChefSpec for PHP 7.4\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\nrequire 'shared_examples'\n\ndescribe 'yum-remi-chef::remi-php74' do\n default_attributes['yum']['remi-php74']['enabled'] = true\n default_attributes['yum']['remi-php74']['manag... | ruby | chosen |
[
{
"from": "system",
"value": "Include only the bare minimum of helpers into JS template context to avoid intermittent SASS @include issues\n"
},
{
"from": "human",
"value": "# Make helpers (#t in particular) available to javascript templates\n# https://github.com/pitr/angular-rails-templates/iss... | ruby | chosen |
[
{
"from": "human",
"value": "Use real-world encoders for some Japanese charsets\n"
},
{
"from": "gpt",
"value": "module Mail\n class Ruby19\n class ImprovedEncoder < BestEffortCharsetEncoder\n def pick_encoding(charset)\n case charset\n when /\\Aiso-2022-jp\\z/i\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow to pass nil to DateTime field\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule ActiveRecord\n module ConnectionAdapters\n module Clickhouse\n module OID # :nodoc:\n class DateTime < Type::DateTime # :nodoc:\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Apply 1 suggestion(s) to 1 file(s)"
},
{
"from": "human",
"value": "#\n# Copyright 2016 GitLab Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy o... | ruby | chosen |
[
{
"from": "system",
"value": "Fix slash in shortcut path\n"
},
{
"from": "human",
"value": "return if skip_unsupported_platform\n\ninclude_recipe \"dmg\"\n\ndmg_package \"Sublime Text 2\" do\n dmg_name \"sublime_text\"\n source node['sublime_text']['download_url_mac_os_x']\n checksum node['su... | ruby | chosen |
[
{
"from": "system",
"value": "Use actual Ruby version when using ternary for Travis.\n"
},
{
"from": "human",
"value": "$LOAD_PATH << File.dirname(__FILE__) + '/lib'\nrequire 'custom_counter_cache/version'\n\nspec = Gem::Specification.new do |s|\n s.name = 'custom_counter_cache'\n s.version = ... | ruby | chosen |
[
{
"from": "system",
"value": "Test that the MAX() function deals with errors inside arrays.\n"
},
{
"from": "human",
"value": "require_relative '../../spec_helper.rb'\n\ndescribe \"ExcelFunctions: MAX\" do\n \n it \"should return the argument with the greatest value, flattening arrays\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Check to make sure the result was successful\n"
},
{
"from": "human",
"value": "RSpec.describe \"skipping the remaining steps within an organizer\" do\n class SkippingStepsExample\n include Porch::Organizer\n\n def run\n with do |chain|\n chain.ad... | ruby | chosen |
[
{
"from": "human",
"value": "spec: Add spec for offline contents\n\nChange-Id: Ia3ee6e46ea6a80ddf591502e67dc3ec335ebb2a2\nReviewed-on: https://gerrit.instructure.com/69045\nTested-by: Jenkins\nReviewed-by: Michael Hargiss <59e3fde81b8d9a4f5e0cc016a3c2695591912604@instructure.com>\nProduct-Review: Michael Ha... | ruby | chosen |
[
{
"from": "system",
"value": "Define \"highlights\" param only for autocomplete in \"tire_search_results\"\n"
},
{
"from": "human",
"value": "module ElasticMetaSearch\n module ActionMethods\n\n def self.included(base)\n base.send :extend, ClassMethods\n end\n\n module ClassMethods... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure random \"redirect\" items are always valid\n\nWe currently don't validate `redirects` and `routes` in the `redirect`\nschema. This causes some data to be generated that's invalid according\nto the publishing-api. This makes sure that we obey the publishing-api\nvalida... | ruby | chosen |
[
{
"from": "system",
"value": "Adjust deadlock trap to match postgres format.\n"
},
{
"from": "human",
"value": "class ActiveRecord::Base \n\n # Execute SQL manually\n def self.exec_sql(*args)\n conn = ActiveRecord::Base.connection\n sql = ActiveRecord::Base.send(:sanitize_sql_array, arg... | ruby | chosen |
[
{
"from": "system",
"value": "Test with rspec-rails 4 for Rails 6 support\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"alchemy/devise/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specificati... | ruby | chosen |
[
{
"from": "system",
"value": "Add description field to recent articles\n"
},
{
"from": "human",
"value": "class Category < ActiveRecord::Base\n has_many :articles\n\n class << self\n def recent(limit = 5)\n OpenStruct.new(title: 'recently', articles: Article.recent(limit))\n end\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add notify list and get commands.\n"
},
{
"from": "gpt",
"value": "# encoding: utf-8\n\nmodule GithubCLI\n class Commands::Notifications < Command\n\n namespace :notify\n\n option :all, :type => :boolean,\n :desc => \"true to show notifications marke... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for Improve error report format\n"
},
{
"from": "human",
"value": "require \"petitest/texts/base_text\"\n\nmodule Petitest\n module Texts\n class ErrorMessageText < ::Petitest::Texts::BaseText\n # @return [Petitest::TestCase]\n attr_reader :test_ca... | ruby | chosen |
[
{
"from": "system",
"value": "Change to use new api\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule RSpec\n module Benchmark\n module IterationMatcher\n # Implements the `perform_at_least` matcher\n #\n # @api private\n class Matcher\n def initialize... | ruby | chosen |
[
{
"from": "system",
"value": "Remove constant as the value is the default\n"
},
{
"from": "human",
"value": "require 'sparkle_formation'\n\nclass SparkleFormation\n\n # Resources helper\n class Resources\n\n # Azure specific resources collection\n class Azure < Resources\n\n # Chara... | ruby | chosen |
[
{
"from": "system",
"value": "Use `to_s` instead of `basename`\n"
},
{
"from": "human",
"value": "module ZendeskAppsTools\n require 'zendesk_apps_support'\n\n module PackageHelper\n include ZendeskAppsSupport\n\n def app_package\n @app_package ||= Package.new(app_dir.to_s)\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Change to require Ruby > 2.0\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'tty/platform/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Update example use in photo spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ninclude Support::ResourceExamples\n\ndescribe Fulcrum::Photo do\n let(:test_file) { './spec/data/test.jpg' }\n\n include_context 'with client'\n include_context 'with med... | ruby | chosen |
[
{
"from": "system",
"value": "Make test launch CLI executable\n"
},
{
"from": "human",
"value": "require_relative \"../config/environment.rb\"\nrequire_relative \"spec_helper.rb\"\n\n\n\ndescribe 'Running math24' do\n let (:math24) { Math24.new() }\n\n context 'entering commands' do\n descr... | ruby | chosen |
[
{
"from": "system",
"value": "Remove redundant omniauth test flag\n"
},
{
"from": "human",
"value": "OmniAuth.config.test_mode = true\n\nRSpec.configure do |config|\n config.include Devise::Test::ControllerHelpers, type: :controller\n config.include Warden::Test::Helpers\n\n config.before(:su... | ruby | chosen |
[
{
"from": "system",
"value": "Remove references to hide_percent_sign since it is no longer supported\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nclass Survey < ActiveRecord::Base\n percentize :percent_complete_fraction\n percentize :without_percent_sign_fraction, hide_percent_s... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.