conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Package version is increased from 0.5.0.0 to 0.5.1.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'raygun_client'\n s.version = '0.5.0.0'\n s.summary = 'Client for the Raygun API using the Obsidian HTTP cl... | ruby | chosen |
[
{
"from": "system",
"value": "Allow Regex usage of by_event_name method from NotificationHandler\n"
},
{
"from": "human",
"value": "class Rails::WebProfiler::NotificationHandler\n def call(*args)\n event = ActiveSupport::Notifications::Event.new(*args)\n\n events = ::Rack::WebProfiler.dat... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.1.0 to 0.1.2.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'schema'\n s.summary = \"Primitives for schema and structure\"\n s.version = '0.1.1.0'\n s.description = '... | ruby | chosen |
[
{
"from": "system",
"value": "Use File to grab yml redis file\n\nIn Rails 4.0.0.rc1 and ruby 2.0.0-p0, the Rails.root doesn't extend\nthe path correctly via \"Rails.root.join\". This patch uses ruby's\nFile.join to join the dirs together into a correct, full path.\n"
},
{
"from": "human",
"value... | ruby | chosen |
[
{
"from": "system",
"value": "Tweak exception message for RuboCop server\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n#\n# This code is based on https://github.com/fohte/rubocop-daemon.\n#\n# Copyright (c) 2018 Hayato Kawai\n#\n# The MIT License (MIT)\n#\n# https://github.... | ruby | chosen |
[
{
"from": "system",
"value": "Update the gemspec, noting support for JSON.\n"
},
{
"from": "human",
"value": "$: << File.expand_path(\"../lib\", __FILE__)\nrequire \"representative/version\"\n\nGem::Specification.new do |gem|\n\n gem.name = \"representative\"\n gem.summary = \"Builds XML repre... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Require for Coverall Gem\n"
},
{
"from": "human",
"value": "require 'coverall'\nCoveralls.wear!\n\n# Configure Rails Environment\nENV[\"RAILS_ENV\"] = \"test\"\n\nrequire File.expand_path(\"../dummy/config/environment.rb\", __FILE__)\nrequire \"rspec/rails\"\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Change the name active_model to activemodel\n"
},
{
"from": "human",
"value": "begin\n gem 'minitest'\nrescue LoadError\nend\n\nrequire 'active_model'\nrequire 'format_validator'\nrequire 'minitest/autorun'\n"
},
{
"from": "gpt",
"value": "begin\n gem ... | ruby | chosen |
[
{
"from": "system",
"value": "Set RACK_ENV in spec helper\n\nSo the tests use the right DB\n"
},
{
"from": "human",
"value": "require 'metrics-api'\nrequire 'data_kitten'\nrequire 'rack/test'\nrequire 'webmock/rspec'\nrequire 'database_cleaner'\nDatabaseCleaner.strategy = :truncation\n\nclass Te... | ruby | chosen |
[
{
"from": "system",
"value": "Transform search result into array of hashes\n"
},
{
"from": "human",
"value": "require \"faraday\"\nrequire \"json\"\n\nmodule Searchupc\n class Client\n API_BASE = \"http://www.searchupc.com\"\n\n def initialize(api_token)\n @api_token = api_token\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix type of `:id` in LineItem\n"
},
{
"from": "human",
"value": "require 'taxjar/base'\n\nmodule Taxjar\n class LineItem < Taxjar::Base\n extend ModelAttribute\n \n attribute :id, :integer\n attribute :quantity, :integer\n a... | ruby | chosen |
[
{
"from": "system",
"value": "Load a version of Rack denoted by RACK_VERSION\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'rack'\n\n$LOAD_PATH.unshift APP_ROOT\n\n$app = eval \"Rack::Builder.new { #{File.read APP_ROOT + '/config.ru'} }\""
},
{
"from": "gpt",
"value"... | ruby | chosen |
[
{
"from": "system",
"value": "Update gc_ruboconfig requirement from ~> 2.23.0 to ~> 2.24.0\n\nUpdates the requirements on [gc_ruboconfig](https://github.com/gocardless/ruboconfig) to permit the latest version.\n- [Release notes](https://github.com/gocardless/ruboconfig/releases)\n- [Changelog](https://githu... | ruby | chosen |
[
{
"from": "system",
"value": "Use let() instead of direct initialization\n\nlet() is lazy-evaluated. Therefore, initializes the object only when it\nis used. That makes the tests run faster.\n"
},
{
"from": "human",
"value": "require 'rspec'\nrequire 'cell.rb'\n\ndescribe 'Cell' do\n\n describ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix migration `20120411123334` on rollback\n\nThe migration was not reversible, so `change` was replaced by `up`.\n\nHaving a `down` method does not make much sense, as changing back the field\nlength to 40 characters does not bring any particular benefit.\n"
},
{
"from... | ruby | chosen |
[
{
"from": "system",
"value": "Update the ministerial ordering without involving the Publishing API\n\nOr any of the other hooks on the model. This data currently only\naffects Whitehall and pages rendered by Whitehall Frontend, so we\ndon't need to involve the Publishing API.\n\nCurrently, it can take ~40 s... | ruby | chosen |
[
{
"from": "system",
"value": "Handle nils in effort times row serializer\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Api\n module V1\n class EffortTimesRowSerializer < ::Api::V1::BaseSerializer\n set_type :effort_times_rows\n\n attributes *EffortTimes... | ruby | chosen |
[
{
"from": "system",
"value": "Update Version for Release 1.0.0"
},
{
"from": "human",
"value": "require 'redmine'\n\nRedmine::Plugin.register :approval_plugin do\n name 'Approval Plugin'\n author 'Alexander Lipinski'\n description 'This plugin adds an approval function for SVN revisions'\n v... | ruby | chosen |
[
{
"from": "system",
"value": "Install rails_xss if Rails.version is 2.3.5.\n"
},
{
"from": "human",
"value": "namespace :typus do\n\n desc 'Install acts_as_list, acts_as_tree and paperclip.'\n task :misc do\n plugins = [ 'git://github.com/thoughtbot/paperclip.git', \n 'git://... | ruby | chosen |
[
{
"from": "system",
"value": "Add \"Seth Wright\" to spec.authors\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'authlete/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Improve test coverage for Ranges\n"
},
{
"from": "human",
"value": "require \"test_helper\"\n\ndescribe Copyrighter::Helpers do\n it \"should return the current year by default\" do\n assert_equal Time.now.year.to_s, Class.new.extend(Copyrighter::Helpers).copyri... | ruby | chosen |
[
{
"from": "system",
"value": "Use full path to create symlink\n"
},
{
"from": "human",
"value": "node[:deploy].each do |application, deploy|\n script \"symlink_storage\" do\n interpreter \"bash\"\n user \"root\"\n cwd \"#{deploy[:deploy_to]}\"\n code <<-EOH\n mv current/storage/*... | ruby | chosen |
[
{
"from": "system",
"value": "Remove RUBY_VERSION check for ruby 1.8\n\nCurrently we do not support ruby 1.8 and do not\nrun tests against ruby 1.8.\nSo we do not need to check RUBY_VERSION for ruby 1.8.\n"
},
{
"from": "human",
"value": "# Ubuntu does not accept arguments to ruby when called us... | ruby | chosen |
[
{
"from": "system",
"value": "Update Robomongo to stable 0.8.4"
},
{
"from": "human",
"value": "class Robomongo < Cask\n url 'http://robomongo.org/files/mac/Robomongo-0.8.4-RC2-x86_64.dmg'\n homepage 'http://robomongo.org'\n version '0.8.4-RC2'\n sha1 '2e619ae87950e063568017f8c6e458c57fa31be... | ruby | chosen |
[
{
"from": "system",
"value": "Allow puppet-lint 2.0 as a dependency and bump check version\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = 'puppet-lint-no_erb_template-check'\n spec.version = '0.1.0'\n spec.homepage = 'https://github.com/deanwil... | ruby | chosen |
[
{
"from": "system",
"value": "Fix: Handle error without content type\n"
},
{
"from": "human",
"value": "module BaseCRM\n module Middlewares\n class RaiseError < Faraday::Response::Middleware\n\n def on_complete(env)\n status = env[:status]\n return if (200...300).member?(s... | ruby | chosen |
[
{
"from": "human",
"value": "Check mass assign with without_protection => true\n"
},
{
"from": "gpt",
"value": "require 'checks/base_check'\n\n#Check for bypassing mass assignment protection\n#with without_protection => true\n#\n#Only for Rails 3.1\nclass CheckWithoutProtection < BaseCheck\n Ch... | ruby | chosen |
[
{
"from": "human",
"value": "Include a test suite for the Votes Controller.\n\n100% test coverage; all tests passing.\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe VotesController do\n before(:each) do\n @user = FactoryGirl.create(:user)\n @request_obj = FactoryGirl.... | ruby | chosen |
[
{
"from": "human",
"value": "Move migration from transit to core\n"
},
{
"from": "gpt",
"value": "class MoveScheduledDispositionFieldToYear < ActiveRecord::Migration\n def change\n # Drop the scheduled_dispositon_date field and replace with scheduled_disposition_year\n # Assets Table\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove warning about shadowing outer local variable\n"
},
{
"from": "human",
"value": "require 'active_support/core_ext/hash/keys'\n\nclass Hash\n\n # Camelize all keys of the hash\n #\n # @return [Hash] The hash with camelized keys\n def camelize_keys!\n dee... | ruby | chosen |
[
{
"from": "system",
"value": "Tweak RVM ubuntu package dependencies.\n"
},
{
"from": "human",
"value": "module Capstrap\n module Apt\n\n APT_RVM_PKGS = %w{sed grep tar gzip bzip2 bash curl git-core}\n \n APT_MRI_AND_REE_PKGS = %w{build-essential bison openssl libreadline5 \n libre... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Singleton, change Encode into module\n"
},
{
"from": "human",
"value": "require 'ffi'\nrequire 'singleton'\n\nmodule GoZXingQRCode\n class Encoder\n include Singleton\n extend FFI::Library\n if RUBY_PLATFORM =~ /linux/\n ffi_lib File.expand_pat... | ruby | chosen |
[
{
"from": "system",
"value": "Replace manual requests with Octokit API in commit job.\n"
},
{
"from": "human",
"value": "require 'net/http'\nrequire 'json'\nrequire 'octokit'\n\nprojects = settings.projects || []\n\nSCHEDULER.every '1h' do\n client = Octokit::Client.new(:access_token => setti... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the problem that fail the test of Samples sometimes\n"
},
{
"from": "human",
"value": "require 'ffaker'\n\nrequire 'comable/core'\n\nrequire 'comable/sample/engine'\nrequire 'comable/sample/address'\nrequire 'comable/sample/name'\nrequire 'comable/sample/phone_n... | ruby | chosen |
[
{
"from": "system",
"value": "Check method definitions for Tasteometer\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe LastFM::Tasteometer do\n it \"should define unrestricted methods\" do\n LastFM::Tasteometer.unrestricted_methods.should == [:compare]\n end\nend\n"
... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for Messages, covers TweetMessage case\n"
},
{
"from": "gpt",
"value": "require 'campfire_export'\nrequire 'campfire_export/timezone'\n\nrequire 'nokogiri'\n\nmodule CampfireExport \n describe Message do\n include TimeZone\n \n before :each do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Raise NotImplementedError for thread handle proxies\n"
},
{
"from": "human",
"value": "module DCell\n # Proxy object for actors that live on remote nodes\n class ActorProxy < Celluloid::ActorProxy; end\n\n class ThreadHandleProxy\n def kill\n raise \"Cann... | ruby | chosen |
[
{
"from": "human",
"value": "Add podspec file, release 1.0.2\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n s.name = \"HMEmoticon\"\n s.version = \"1.0.2\"\n s.summary = \"仿新浪微博表情键盘\"\n s.homepage = \"https://github.com/itheima-developer/HMEmoticon\"\n s.licen... | ruby | chosen |
[
{
"from": "human",
"value": "Add Playlist Assist.app version 1.2.1\n\nPlaylist Assist is a floating window to which tracks from iTunes can be dragged and then sorted, arranged, auditioned, edited, exported as text, and saved back to iTunes as a new playlist.\n"
},
{
"from": "gpt",
"value": "cask... | ruby | chosen |
[
{
"from": "system",
"value": "Add POST /organizations/ORG/users/NAME to add user direct\n"
},
{
"from": "human",
"value": "require 'json'\nrequire 'chef_zero/rest_base'\n\nmodule ChefZero\n module Endpoints\n # /organizations/ORG/users/NAME\n class OrganizationUserEndpoint < RestBase\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task to create mappings from HostPaths\n"
},
{
"from": "gpt",
"value": "require 'transition/import/create_mappings_from_host_paths'\n\nnamespace :import do\n desc 'Create mappings from HostPaths for a site'\n task :create_mappings_from_host_paths, [:site_a... | ruby | chosen |
[
{
"from": "system",
"value": "Set dependency on RubyParser 2.3.1\n\nbecause the next RubyParser release is going to break a LOT of stuff.\n"
},
{
"from": "human",
"value": "require './lib/brakeman/version'\n\nGem::Specification.new do |s|\n s.name = %q{brakeman}\n s.version = Brakeman::Version... | ruby | chosen |
[
{
"from": "system",
"value": "Create handler lookups on the fly\n"
},
{
"from": "human",
"value": "module Bluecap\n module Server\n\n # Returns a Hash of handlers, creating a new empty hash if none have\n # previously been set.\n def self.handlers\n @handlers ||= Hash.new\n end... | ruby | chosen |
[
{
"from": "human",
"value": "Add a complete example of a python application.\n\nSee https://github.com/coderanger/djangocon2011 for more.\n"
},
{
"from": "gpt",
"value": "application \"packaginator\" do\n path \"/srv/packaginator\"\n owner \"nobody\"\n group \"nogroup\"\n repository \"https:... | ruby | chosen |
[
{
"from": "system",
"value": "Change class_inheritable_accessor to class_attribute in Delayed::Plugin"
},
{
"from": "human",
"value": "module Delayed\n class Plugin\n class_inheritable_accessor :callback_block\n\n def self.callbacks(&block)\n self.callback_block = block\n end\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix LangException not ignoring the special i18n.plural.rule key\n"
},
{
"from": "human",
"value": "require 'i18n'\n\nmodule TWG\n class LangException < I18n::ExceptionHandler\n def call(exception, locale, key, options)\n if exception.is_a?(I18n::MissingTran... | ruby | chosen |
[
{
"from": "system",
"value": "Use the new DM.append_extensions hook\n"
},
{
"from": "human",
"value": "require \"rubygems\"\nrequire \"pathname\"\n\ngem \"dm-core\", \">=0.10.0\"\nrequire \"dm-core\"\n\n\nmodule DataMapper\n module Is\n module Polymorphic\n \n def is_polymorphic(na... | ruby | chosen |
[
{
"from": "system",
"value": "Divide data into each language .json\n"
},
{
"from": "human",
"value": "module JekyllPagesApi\n class Page\n def date\n (self.page.data['date'] if self.page.respond_to?(:data)) || \"\"\n end\n\n def lang\n (self.page.data['lang'] if self.page.res... | ruby | chosen |
[
{
"from": "human",
"value": "Convert code to proper namespacing\n"
},
{
"from": "gpt",
"value": "require 'rr'\nrequire 'bacon'\n\nmodule Bacon\n module Rr\n VERSION = '0.1.0'\n\n RR.trim_backtrace = true\n\n def self.included(mod)\n mod.send :include, RR::Adapters::RRMethods\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Test structured list with single key\n"
},
{
"from": "human",
"value": "require 'helper'\nrequire 'peddler/structured_list'\n\nclass PeddlerStructuredListTest < MiniTest::Test\n def setup\n @list = Peddler::StructuredList.new('OrderStatus', 'Status')\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use dash in campaign page slug and redirect\n"
},
{
"from": "human",
"value": "Frontend::Application.routes.draw do\n match \"/homepage\" => redirect(\"/\")\n match \"/search\" => \"search#index\", as: :search\n match \"/browse\" => \"browse#index\", to: \"browse... | ruby | chosen |
[
{
"from": "system",
"value": "Remove test code from contacts controller\n"
},
{
"from": "human",
"value": "# Provide API for retrieving Contacts data\nclass ContactsController < ApplicationController\n before_action :init\n\n def init\n @contacts_service = ContactsService.new\n time = Ti... | ruby | chosen |
[
{
"from": "system",
"value": "Adjust index action to return json directly from db\n"
},
{
"from": "human",
"value": "class ContentsController < ApplicationController\n # GET /contents\n # GET /contents.json\n def index\n @contents = Content.all\n\n render json: @contents\n end\nend\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix of bug in SessionsController where user was always remembered.\n"
},
{
"from": "human",
"value": "class SessionsController < ApplicationController\n def new\n end\n\n def create\n user = User.find_by(email: params[:session][:email].downcase)\n if user &... | ruby | chosen |
[
{
"from": "system",
"value": "Allow to use ID of any type, not only integer\n\nType coercion already works fine if the id is an integer, string, or uuid"
},
{
"from": "human",
"value": "class SortableController < ApplicationController\n\n VERIFIER = Rails.application.message_verifier(:rails_sor... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Filter editions by id param\"\n\nThis reverts commit d42dade99e64b4780b21df48a7075d3ea2c343f8.\n"
},
{
"from": "human",
"value": "module V1\n class TalksController < ApplicationController\n\n def index\n edition = if params.has_key?(:id)\n E... | ruby | chosen |
[
{
"from": "human",
"value": "Add class to represent data from ruby-sun-times gem.\n"
},
{
"from": "gpt",
"value": "require 'sun_times'\nrequire_relative 'my_data'\n\nclass SunTimesData < MyData\n def calculate\n @times = []\n\n (Date.new(year, 1, 1)..Date.new(year, 12, 31)).each do |date|... | ruby | chosen |
[
{
"from": "system",
"value": "Fix to load the minitest-power_assert at 2.0 or higher\n"
},
{
"from": "human",
"value": "$: << File.expand_path(File.join(File.dirname(__FILE__),'..','lib'))\nrequire 'rack/test'\nrequire 'minitest/autorun'\nrequire 'minitest/pride'\nrequire 'minitest/spec'\nrequir... | ruby | chosen |
[
{
"from": "system",
"value": "Disable offense on the appropriate line only !22296\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass ApplicationsFinder\n attr_reader :params\n\n def initialize(params = {})\n @params = params\n end\n\n # rubocop: disable CodeReuse/Ac... | ruby | chosen |
[
{
"from": "system",
"value": "Update test program. All modules and classes now built by GirFFI::Builder.\nRejoice!"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib')\nrequire 'girffi'\nrequire 'girffi/builder'\n\n#\n# Test program using GirFFI builder, p... | ruby | chosen |
[
{
"from": "system",
"value": "Update front-end tests to support new connect page\n"
},
{
"from": "human",
"value": "require File.join(File.expand_path(File.dirname(__FILE__)), '../spec_helper.rb')\n\n#describe 'home page', :type => :request do\ndescribe 'dashboard' do\n it 'allows people to swi... | ruby | chosen |
[
{
"from": "system",
"value": "Send a representation of all errors when schema validation fails\n\nInstead of just the top level error.\n"
},
{
"from": "human",
"value": "require 'json-schema'\n\nclass SchemaValidator\n def initialize(payload, type:, schema_name: nil, schema: nil)\n @payload ... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to transferred repo\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'sinatra/canvas_auth/version'\n\nGem::Specification.new do |spec|\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix update password on students' end\n"
},
{
"from": "human",
"value": "class ProfileController < ApplicationController\n def action_allowed?\n current_user\n end\n\n def edit\n @user = session[:user]\n @assignment_questionnaire = AssignmentQuestionnaire... | ruby | chosen |
[
{
"from": "system",
"value": "Add authenticate user to reviews controller\n"
},
{
"from": "human",
"value": "class ReviewsController < ApplicationController\n\n def new\n session[:return_to] ||= request.referer\n @user = User.find(params[:user_id])\n @review = Review.new\n end\n\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Fix typo in environment variables\"\n\nThis reverts commit d2b4733a9a27b15ed84d7ffc4fa7c3c9f47b8926.\n"
},
{
"from": "human",
"value": "require 'faraday'\nrequire 'json'\n\nclass SessionController < ApplicationController\n def callback\n if Rails.env ==... | ruby | chosen |
[
{
"from": "system",
"value": "Use require instead of autoload\n"
},
{
"from": "human",
"value": "module Rgot\n autoload :VERSION, 'rgot/version'\n autoload :Common, 'rgot/common'\n autoload :M, 'rgot/m'\n autoload :T, 'rgot/t'\n autoload :B, 'rgot/b'\n\n class OptionError < StandardError\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add private call to Map\n"
},
{
"from": "human",
"value": "module Poke\n # Map reads an ASCII file and coverts it to an object that can be read and\n # manipulated by other program objects.\n class Map\n\n # Params required at initialization.\n PARAMS_REQUI... | ruby | chosen |
[
{
"from": "system",
"value": "Allow robots.txt for multiple environments\n"
},
{
"from": "human",
"value": "module Robotron\n class << self\n def call(env)\n body = if Rails.env.production?\n File.read(Rails.root.join('config', 'robots.txt'))\n else\n default_body\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use `InstanceMethods` module for instance methods.\n"
},
{
"from": "human",
"value": "module Seteable\n def self.included(base)\n base.extend(ClassMethods)\n end\n\n def self.deepclone(hash)\n default_proc, hash.default_proc = hash.default_proc, nil\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Set Sequel to log to standard error\n"
},
{
"from": "human",
"value": "require 'logger'\nrequire 'sequel'\n\nDB = Sequel.connect(\n adapter: 'sqlite',\n database: File.expand_path('../../../thyme.db', __FILE__)\n)\n\nDB.loggers << Logger.new($stdout) if ENV['THYME... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bindir & executables; we won’t have any\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'cronitor/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce number of works to wait for oobgc\n\n--HG--\nbranch : 3.2.1-release\n"
},
{
"from": "human",
"value": "# This file is used by Rack-based servers to start the application.\nif defined? Unicorn\n use Raindrops::Middleware\n require 'unicorn/oob_gc'\n GC.disa... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Updated for forked pod spec\"\n\nThis reverts commit e31997af91d1cc891fbebb16de1b209c0ede6b4a.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'XLPagerTabStrip'\n s.version = '2.0.0-zorts'\n s.license = 'MIT'\n s.summary = 'Pag... | ruby | chosen |
[
{
"from": "system",
"value": "Add cleanup for storing files integration test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Storing Files', type: :feature do\n it 'uploads the file to the configured bucket' do\n uploader = Class.new(CarrierWave::Uploader::Base) do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the expected headers from request stubbing\n\nThere was an issue where the headers that were expected in order for the\nrequests to be stubbed were invalid. I've decided to remove the instead\nof putting the right headers, since we don't totally care about what\nheaders ... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for search with WebMock\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe \"SyoboiCalendar::Client\" do\n before do\n user = \"testuserforruby\"\n pass = user\n @client = SyoboiCalendar::Client.new(:user => user, :pass => pass... | ruby | chosen |
[
{
"from": "system",
"value": "Add thread safe way of removing multiple handlers\nat the end of an arbitrary handler fn.\n\n* To remove the current handler return :remove_handler\n* To remove an arbitrary handler return [:remove_handlers,\n [handle, key]*]"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Use require_relative to invoke test helper\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass DeployTest < Minitest::Test\n TAG='3.14.15'\n\n def test_that_it_has_a_version_number\n refute_nil ::Deploy::VERSION\n end\n\n def test_that_it_requir... | ruby | chosen |
[
{
"from": "system",
"value": "Use Ruby 2.2.0 in production\n"
},
{
"from": "human",
"value": "# This config is valid only for Capistrano 3.2.1.\nlock '3.2.1'\n\nset :application, 'Handy'\nset :deploy_to, '/u/apps/handy'\nset :keep_releases, 5\n\n# Git\nset :scm, :git\nset :repo_url, 'git@github.... | ruby | chosen |
[
{
"from": "system",
"value": "Add explicit minitest to gemspec dev dependencies\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"metrics/rails/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specif... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec to development 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 'hash_redactor/version'\n\nGem::Specification.new do |spec|\n spec... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests regimen calendar rendering\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe FarmEventSerializer do\n it 'renders a calendar based on a regimen' do\n device = FactoryGirl.create(:device)\n sequence = FactoryGirl.create(:sequence, d... | ruby | chosen |
[
{
"from": "system",
"value": "Fix pass options to provider in example\n"
},
{
"from": "human",
"value": "require 'pp'\nrequire 'sinatra'\nrequire 'omniauth'\nrequire 'omniauth-vkontakte'\n\nconfigure { set :server, :puma }\n\nSCOPE = 'friends,audio'\n\nuse Rack::Session::Cookie\n\nuse OmniAuth::... | ruby | chosen |
[
{
"from": "system",
"value": "Remove parameters from jk.conf file in mod::jk spec test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'apache::mod::jk', :type => :class do\n it_behaves_like 'a mod class, without including apache'\n\n context \"with only required facts and... | ruby | chosen |
[
{
"from": "system",
"value": "Update node spec test to check for version 4"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Node.js base' do\n include_context 'base'\n\n before(:all) do\n image_name = \"#{Constants::IMAGE_PREFIX}node:base\"\n set :os, family: Constants... | ruby | chosen |
[
{
"from": "system",
"value": "Test that the ruby version string is also present in ruby vendor strings\n\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"Boot Strap Config\" do\n it \"matches the default ruby version\" do\n require 'toml-rb'\n config = TomlRB.load_fi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing 'w' in \"%w[...]\"\n"
},
{
"from": "human",
"value": "require File.expand_path('../../lib/tinytable', __FILE__)\n\nclass TinyTable\n class TextFormatter ; end\nend\n\ndescribe TinyTable do\n subject { TinyTable.new }\n let(:row) { %[Liverpool Merseysi... | ruby | chosen |
[
{
"from": "system",
"value": "Remove TODO: placeholders from .gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'note_frequencies/version'\n\nGem::Specification.new do |spec|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add sleep 0.5 to make sure messages are published\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe \"Sender-selected distribution\" do\n let(:connection) do\n c = Bunny.new(:user => \"bunny_gem\", :password => \"bunny_password\", :vhost => ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary loading of Rails env\n"
},
{
"from": "human",
"value": "ENV['RAILS_ENV'] = 'test'\nENV['RAILS_ROOT'] ||= File.dirname(__FILE__) + '/../../../..'\n\nrequire 'test/unit'\nrequire File.expand_path(File.join(ENV['RAILS_ROOT'], 'config/environment.rb')... | ruby | chosen |
[
{
"from": "system",
"value": "Remove ActiveSupport test order deprecation warning\n"
},
{
"from": "human",
"value": "ENV[\"RAILS_ENV\"] = \"test\"\nDEVISE_ORM = (ENV[\"DEVISE_ORM\"] || :active_record).to_sym\n\n$:.unshift File.dirname(__FILE__)\nputs \"\\n==> Devise.orm = #{DEVISE_ORM.inspect}\"... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up test helper script\n"
},
{
"from": "human",
"value": "ENV['RAILS_ENV'] ||= 'test'\nrequire File.expand_path('../../config/environment', __FILE__)\nrequire 'rails/test_help'\n\nclass ActiveSupport::TestCase\n # Setup all fixtures in test/fixtures/*.yml for ... | ruby | chosen |
[
{
"from": "system",
"value": "Return an empty string if product's content is nil\n"
},
{
"from": "human",
"value": "require 'redcarpet'\n\nmodule Spree\n module Retail\n class RedcarpetHTMLRenderer\n def initialize(options: {}, extensions: {})\n @options = options\n @exten... | ruby | chosen |
[
{
"from": "system",
"value": "Add both flags, make test data readable\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/spec_helper')\n\nMULTIUSER_CONFIG = { accounts: {\n :rich0H =>\n { oauth_token: \"I'mtotallyatokenbrah\",\n oaut... | ruby | chosen |
[
{
"from": "human",
"value": "Add feature spec for question show\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe 'question show page' do \n\tit 'shows the individual question' do \n\t\tvisit '/questions/1'\n\t\texpect(page).to have_content(\"Tags\")\n\tend \nend "
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Change to only test pty on non windows systems\n"
},
{
"from": "human",
"value": "RSpec.describe TTY::Command, ':pty' do\n it \"executes command in pseudo terminal mode as global option\" do\n color_cli = tmp_path('color')\n output = StringIO.new\n cmd = T... | ruby | chosen |
[
{
"from": "system",
"value": "Correct the name of the test which was no longer true\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::Test::Perl::Co... | ruby | chosen |
[
{
"from": "system",
"value": "Add 0.5 weight to VoteConnection\n"
},
{
"from": "human",
"value": "class VoteConnection < ActiveRecord::Base\n WEIGHTS = [0, 1, 2, 4]\n\n belongs_to :vote\n belongs_to :topic\n\n attr_accessible :vote, :vote_id, :topic, :matches, :comment, :weight, :description... | ruby | chosen |
[
{
"from": "system",
"value": "Use ArgumentError vs. RuntimeError, which is more precise."
},
{
"from": "human",
"value": "require 'abstract_controller/collector'\nrequire 'active_support/core_ext/hash/reverse_merge'\nrequire 'active_support/core_ext/array/extract_options'\n\nmodule ActionMailer ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.