conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Make phone number a string instead of an integer\n"
},
{
"from": "human",
"value": "class CreateFeedbackInputs < ActiveRecord::Migration\n def change\n create_table :feedback_inputs do |t|\n t.integer :question_id\n t.integer :subject_id\n t.integ... | ruby | chosen |
[
{
"from": "system",
"value": "Use method chaining instead of orig_ prefix.\n"
},
{
"from": "human",
"value": "# - removes commit=Search from query url\nmodule ActionView\n module Helpers\n module TagHelper\n # submit_tag \"Search\" generates a submit tag that adds \"commit=Search\" to t... | ruby | chosen |
[
{
"from": "system",
"value": "Switch from :as => :intenral to :without_protection => true in user registrations spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Spree::UserRegistrationsController do\n context '#create' do\n it 'should fire exactly one spree.user.sign... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec version, Rack 1.5.0\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"rack\"\n s.version = \"1.5.0.beta.2\"\n s.platform = Gem::Platform::RUBY\n s.summary = \"a modular Ruby webserver i... | ruby | chosen |
[
{
"from": "system",
"value": "Use key? instead of has_key?\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\n#* mysh/internal/action_pool.rb -- A managed hash of mysh actions.\nmodule Mysh\n\n #* A managed hash of mysh actions.\n class ActionPool\n\n #The name of this action pool.\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure attributes are accessible\n"
},
{
"from": "human",
"value": "module Relateable\n class ModelRelation < ActiveRecord::Base\n \n belongs_to :model, :polymorphic => true\n \n after_create :create_inverse_relationship, :unless => :skip_inverse\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Move readonly load to katla\"\n\nThis reverts commit 1cc1f584920f848f06bf23f91467818a17c305a7.\n"
},
{
"from": "human",
"value": "name \"web\"\ndescription \"Role applied to all web/api servers\"\n\ndefault_attributes(\n :accounts => {\n :users => {\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix default background color in Placeholder being ugly black\n\n"
},
{
"from": "human",
"value": "module Faker\n class Placeholdit < Base\n class << self\n SUPPORTED_FORMATS = %w(png jpg gif jpeg)\n\n def image(size = '300x300', format = 'png', backgro... | ruby | chosen |
[
{
"from": "system",
"value": "Check for valid arguments in Downloader.initialize\n"
},
{
"from": "human",
"value": "require 'net/http'\n\n# initialize with url\n# return path to downloaded file on local file system\n\nmodule TraitDB\n class Downloader\n def initialize(source_address=nil,dest... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure postgres is running when doing the db migration\n"
},
{
"from": "human",
"value": "define_upgrade do\n\n if Partybus.config.bootstrap_server\n\n must_be_data_master\n\n # run 2.4.0 migrations to update db - includes adding org association/user table... | ruby | chosen |
[
{
"from": "system",
"value": "Remove git_path initializer from factory\n"
},
{
"from": "human",
"value": "# Read about factories at https://github.com/thoughtbot/factory_girl\n\nFactoryGirl.define do\n factory :broggle, class: Broggle::Broggle do\n git_path 'spec/dummy-git'\n end\n\n facto... | ruby | chosen |
[
{
"from": "system",
"value": "Rename cache_options to options in the call to Rails.cache.read_multi to match the other calls to Rails.cache.\n"
},
{
"from": "human",
"value": "# Defines the default cache engine for RABL when caching is invoked for a template.\n# You can define your own caching e... | ruby | chosen |
[
{
"from": "system",
"value": "Add merge, Change attr can store not only String but also Object\n"
},
{
"from": "human",
"value": "require 'contracts'\nrequire 'tasklist/task'\n\nmodule Tasklist\n class Tasklist\n include Contracts\n\n attr_reader :tasks, :attrs\n\n Contract () => nil\n... | ruby | chosen |
[
{
"from": "system",
"value": "feat: Add ability to init production\n"
},
{
"from": "human",
"value": "# lib/tasks/skip_prod.rake\n# See: http://nithinbekal.com/posts/safe-rake-tasks/\n\ndesc 'Raises exception if used in production'\ntask skip_prod: [:environment] do\n raise 'You cannot run this... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Go to gpx_offline mode\"\n\nThis reverts commit e7079dd2fb8ce60491718872e14f7d8272376c21.\n"
},
{
"from": "human",
"value": "name \"web\"\ndescription \"Role applied to all web/api servers\"\n\ndefault_attributes(\n :accounts => {\n :users => {\n :... | ruby | chosen |
[
{
"from": "system",
"value": "Rename misleading method 'dirs' to 'all'\n"
},
{
"from": "human",
"value": "module Trackler\n # Problems is the collection of problems that we have metadata for.\n class Problems\n include Enumerable\n\n SLUG_PATTERN = Regexp.new(\".*\\/exercises\\/([^\\/]*)... | ruby | chosen |
[
{
"from": "system",
"value": "Make OTP code zero-padding configurable\n"
},
{
"from": "human",
"value": "module ActiveModel\n module OneTimePassword\n extend ActiveSupport::Concern\n\n module ClassMethods\n def has_one_time_password(options = {})\n\n cattr_accessor :otp_column... | ruby | chosen |
[
{
"from": "system",
"value": "Store zeromq context in a constant.\n"
},
{
"from": "human",
"value": "require 'aggro/zeromq_transport/client'\nrequire 'aggro/zeromq_transport/publisher'\nrequire 'aggro/zeromq_transport/server'\nrequire 'aggro/zeromq_transport/subscriber'\n\nmodule Aggro\n # Publ... | ruby | chosen |
[
{
"from": "system",
"value": "Move instance variable initialisation to constructor\n"
},
{
"from": "human",
"value": "module AskAwesomely\n class Typeform\n attr_reader :links, :id, :structure, :fields\n\n def initialize(structure)\n @structure = structure\n end\n\n def title\n... | ruby | chosen |
[
{
"from": "system",
"value": "Return JSON to naive HTTP clients like browsers or curl.\n"
},
{
"from": "human",
"value": "require 'grape'\nrequire 'grape-msgpack'\n\nmodule Berkshelf::API\n module Endpoint\n class Base < Grape::API\n # Force inbound requests to be JSON\n def call(e... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to process each provider individually\n"
},
{
"from": "human",
"value": "require_relative 'performers/base_git'\nrequire_relative 'backup_github'\nrequire_relative 'backup_bitbucket'\nrequire_relative 'backup_gitlab_endpoint'\nrequire_relative 'backup_gi... | ruby | chosen |
[
{
"from": "system",
"value": "Chore: Remove unused 'decryption_key=' method from TranslateSecureKeysFilter\n"
},
{
"from": "human",
"value": "require 'hashie/mash'\n\nmodule Chamber\nmodule Filters\nclass TranslateSecureKeysFilter\n SECURE_KEY_TOKEN = /\\A_secure_/\n\n def initialize(optio... | ruby | chosen |
[
{
"from": "human",
"value": "Add 2.0.1 of labels that adds a hard dep on fonts\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n s.name = \"Artsy+UILabels\"\n s.version = \"2.0.1\"\n s.summary = \"UILabels subclasses and related categories.\"\n s.homepage ... | ruby | chosen |
[
{
"from": "system",
"value": "Set user and associated when logging emails\n"
},
{
"from": "human",
"value": "module EffectiveLogging\n class EmailLogger\n def self.delivering_email(message)\n return unless message.present?\n\n # collect a Hash of arguments used to invoke EffectiveL... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bundler requirement for chef\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'secure_data_bag/version'\n\nGem::Specification.new do |spec|\n spec... | ruby | chosen |
[
{
"from": "human",
"value": "Add implementation for unpacking keyed archive objects.\n"
},
{
"from": "gpt",
"value": "class KeyedArchive\n def unpacked_objects\n objects = @objects.clone\n unpacked_objects = []\n\n objects.each_with_index do |object, index|\n if object.is_a? Hash\... | ruby | chosen |
[
{
"from": "system",
"value": "Set github repo to sonian\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'scli'\n s.version = '0.0.2'\n s.date = '2012-06-30'\n s.platform = Gem::Platform::RUBY\n s.authors = ['Josh Pasqualetto']\n s.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing banner for JSHint\n"
},
{
"from": "human",
"value": "module Phare\n module Checks\n class JavaScriptJSHint\n attr_reader :status\n\n def initialize(directory)\n @config = File.expand_path(\"#{directory}.jshintrc\", __FILE__)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make the shorthand expansion more strict to allow non-Github repos\n"
},
{
"from": "human",
"value": "require 'fileutils'\n\nPuppet::Type.type(:repository).provide(:git) do\n desc \"Git repository clones\"\n\n # FIX: needs to infer path\n CRED_HELPER_PATH = \"#{F... | ruby | chosen |
[
{
"from": "system",
"value": "Add html_safe, because all output is escaped by default in the new rails.\n"
},
{
"from": "human",
"value": "module TagsHelper\n\n# Returns links to filter the current task list by tags\n def tag_links\n links = []\n tags = Tag.top_counts_as_tags(current_user... | ruby | chosen |
[
{
"from": "system",
"value": "Use push/pop/exec tag to begin implementing catch table.\n"
},
{
"from": "human",
"value": "require 'ludicrous/yarv_vm'\n\nclass RubyVM\n class InstructionSequence\n def ludicrous_compile(function, env)\n self.each do |instruction|\n # env.stack.sync... | ruby | chosen |
[
{
"from": "system",
"value": "Add validation to ensure valid order detail creation\n\nDo not allow order details without a valid quantity\n"
},
{
"from": "human",
"value": "class OrderDetail < ActiveRecord::Base\n belongs_to :order\n belongs_to :item\n\n scope :for_order, ->(order_id) { where... | ruby | chosen |
[
{
"from": "system",
"value": "Set logger level base on settings.\n"
},
{
"from": "human",
"value": "require \"logger\"\nrequire \"r18n-core\"\nrequire \"rubycas-server-core/version\"\nrequire \"rubycas-server-core/authenticator\"\nrequire \"rubycas-server-core/settings\"\nrequire \"rubycas-serve... | ruby | chosen |
[
{
"from": "system",
"value": "Update apply_nesting option to require value; default to deep\n"
},
{
"from": "human",
"value": "require 'sfn'\n\nmodule Sfn\n class Config\n # Validate command configuration\n class Validate < Config\n\n attribute(\n :processing, [TrueClass, Fals... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue with object field type builder instantiation\n"
},
{
"from": "human",
"value": "module AggregateBuilder\n class FieldBuilders::ObjectFieldBuilder\n class << self\n\n def build(field, field_value, object, config, methods_context)\n hash = ca... | ruby | chosen |
[
{
"from": "system",
"value": "Use require_relative to speed up requires\n\nThere's only a single require here, but we might as well make it a\nrelative require\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "require \"dep-selector... | ruby | chosen |
[
{
"from": "system",
"value": "Move nucleotide-count out of the way in Go\n"
},
{
"from": "human",
"value": "class Exercism\n class GoCurriculum\n def slugs\n %w(\n leap etl hamming anagram word-count binary accumulate\n point-mutations allergies nucleotide-count bob\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change docs for fork create.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Github\n class Repos::Forks < API\n\n # List repository forks\n #\n # = Parameters\n # * <tt>:sort</tt> - newest, oldest, watchers, default: newest\n #\n #... | ruby | chosen |
[
{
"from": "system",
"value": "Use current configuration everytime the configuration server test daemon is started \n"
},
{
"from": "human",
"value": "require 'daemon_controller'\n\nmodule TestDaemons\n class RedisConfigurationServer\n\n # At the moment, we need only one, so we implement the ... | ruby | chosen |
[
{
"from": "system",
"value": "Set Capybara.app_host (needed by new version)"
},
{
"from": "human",
"value": "require 'spiderfw/http/adapters/rack'\nrequire 'capybara'\nrequire 'capybara/cucumber'\nrequire 'culerity'\n\nCapybara.app = Spider::HTTP::RackApplication.new\nCapybara.default_host = 'lo... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task to reattach files to active storage\n"
},
{
"from": "gpt",
"value": "namespace :cms_update_2 do\n desc 'Reattach files to ActiveStorage'\n task :reattach_files => :environment do |t|\n files_directory = Rails.root.join(\"public/system/comfy/cms/fil... | ruby | chosen |
[
{
"from": "system",
"value": "Use links ending with .html in feed\n"
},
{
"from": "human",
"value": "xml.instruct!\nxml.feed \"xmlns\" => \"http://www.w3.org/2005/Atom\" do\n site_url = \"#{config[:base_url]}/blog\"\n xml.title \"GoCD\"\n xml.subtitle \"Continuous Delivery\"\n xml.id URI.joi... | ruby | chosen |
[
{
"from": "system",
"value": "Add a test for /search\n"
},
{
"from": "human",
"value": "require \"rack/test\"\n\nclass AppTest < Test::Unit::TestCase\n include Rack::Test::Methods\n\n def app\n @app ||= Rack::Builder.parse_file(\"config.ru\").first\n end\n\n def test_index\n get \"/\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Initialize players from user input\n"
},
{
"from": "human",
"value": "require 'csv'\nrequire 'pry'\nrequire 'colorize'\n\nrequire './player.rb'\nrequire './board.rb'\n\nmodule Game\n class Play\n def initialize\n get_players\n end\n\n def get_players\... | ruby | chosen |
[
{
"from": "system",
"value": "Set markup to markdown by default, do not require text\n"
},
{
"from": "human",
"value": "require 'bundler/setup'\nrequire 'docify'\nrequire 'sinatra'\nrequire './app/lib/highlight'\n\nVERSION = '0.3.1'\n\nconfigure do\n set :views, 'app/views'\nend\n\nconfigure :p... | ruby | chosen |
[
{
"from": "system",
"value": "Fix method not yet released\n"
},
{
"from": "human",
"value": "require 'facebook/messenger'\n\ninclude Facebook::Messenger\n\nBot.on :postback do |postback|\nend\n\nBot.on :message do |message|\n message.reply_with_text(message.text)\nend\n"
},
{
"from": "g... | ruby | chosen |
[
{
"from": "system",
"value": "Fix url and homepage in VOX Cask\n\n* url supports SSL which should be used.\n* homepage had changed and was a 404 error.\n* homepage supports SSL which should be used.\n"
},
{
"from": "human",
"value": "cask :v1 => 'vox' do\n version :latest\n sha256 :no_check\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix closing semantics in queues\n"
},
{
"from": "human",
"value": "describe :sizedqueue_enq, shared: true do\n it \"blocks if queued elements exceed size\" do\n q = @object.call(1)\n\n q.size.should == 0\n q.send(@method, :first_element)\n q.size.should... | ruby | chosen |
[
{
"from": "system",
"value": "Remove useless references to self.\n"
},
{
"from": "human",
"value": "class Comment < ActiveRecord::Base\n # include Concerns::Parentable\n # include Concerns::Spammable\n\n # spammable author_email: :email, content: :message\n\n STATUSES = %w(pending_moderation... | ruby | chosen |
[
{
"from": "system",
"value": "Change for_listing scope to use a flat OR query\n"
},
{
"from": "human",
"value": "class Contact < ActiveRecord::Base\n acts_as_url :title, url_attribute: :slug, sync_url: true\n\n belongs_to :department\n belongs_to :contact_group, counter_cache: true\n\n has_m... | ruby | chosen |
[
{
"from": "system",
"value": "Allow us to generate names.\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :user, aliases: [:creator, :updater] do\n transient do\n emails_count 1\n end\n\n name 'user'\n role :normal\n password 'lolololol'\n\n after(:bui... | ruby | chosen |
[
{
"from": "system",
"value": "Fix example for strike following a spare\n"
},
{
"from": "human",
"value": "class BowlingGame\n def initialize\n @total = 0\n @frames = []\n end\n\n def roll(score)\n last = @frames.last\n if last && last.size < 2 && last[0] != 10\n last << score... | ruby | chosen |
[
{
"from": "system",
"value": "Add a test for the empty search results page\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nrequire 'test_helper'\nrequire 'support/sphinx'\nrequire 'support/web_mocking'\n\nclass Search < ActionDispatch::IntegrationTest\n include WebMocking\n i... | ruby | chosen |
[
{
"from": "human",
"value": "Add feature tests for adding event hospitality\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nfeature 'User adds an event hospitality location' do\n let (:authed_admin) {\n create_logged_in_admin\n }\n\tbefore(:all) do\n\t\t@event = create(:event)\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Mark commented tests as pending\n\nCommented code is gross! Ideally I'd just write the code for these\ntests, but I guess the intent here was to make 'em pass somehow. Marking\nthem as pending is a nice alternative way to remind us that these tests\nare broken (but important to... | ruby | chosen |
[
{
"from": "system",
"value": "Fix curse return order of cols, rows. [bug]\n"
},
{
"from": "human",
"value": "module ANSI\n\n module Terminal\n require 'curses'\n\n module_function\n\n #CHARACTER_MODE = \"curses\" # For Debugging purposes only.\n\n #\n # Curses savvy getc().\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change to use URI.parse method\n"
},
{
"from": "human",
"value": "require 'capistrano'\nrequire 'json'\nrequire 'net/http'\nrequire 'uri'\n\nCapistrano::Configuration.instance(:must_exist).load do\n after 'deploy', 'chatwork:notify'\n\n namespace :chatwork do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix specs for Redis backend\n"
},
{
"from": "human",
"value": "module Baustelle\n module Backend\n class Redis\n def initialize(name, options, vpc:)\n @name = name\n @options = options\n @vpc = vpc\n end\n\n def build(template... | ruby | chosen |
[
{
"from": "system",
"value": "Use HashWithIndifferentAccess for loaded settings\n"
},
{
"from": "human",
"value": "module MessageQueue\n def self.hook_rails!\n config_file = ::Rails.root.join(\"config\", \"message_queue.yml\")\n config = if config_file.exist?\n YAML.load_fil... | ruby | chosen |
[
{
"from": "system",
"value": "Add \"vanity\" attributes to the User resource\n"
},
{
"from": "human",
"value": "module ChefAPI\n class Resource::User < Resource::Base\n collection_path '/users'\n\n schema do\n attribute :username, type: String, primary: true, required: true\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Move Direction constant dynamic constant creation\n"
},
{
"from": "human",
"value": "require 'matrix'\n\nmodule ToyRobot\n # Direction\n module Direction\n TURN = (2 * Math::PI).freeze\n ROUND = 12\n\n def self.included(base)\n base.extend ClassMetho... | ruby | chosen |
[
{
"from": "system",
"value": "Add files other than app itself to gem archive\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = 'rack-archive-zip-extract'\n spec.version = '0.0.3'\n spec.summary = 'Zip file server'\n spec.description = 'Rack::Archive::Zip::Extr... | ruby | chosen |
[
{
"from": "system",
"value": "Add license type to gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/rails_riemann_middleware/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Richard Outten\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Add an refactor factory test.\n"
},
{
"from": "human",
"value": "describe Metacrunch::Mab2::AlephMabXmlDocumentFactory do\n\n it \"should parse Aleph MAB XML files\" do\n xml = File.read(File.join(RSpec.root, \"assets\", \"aleph_mab_xml\", \"file1.xml\"))\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for minimal configuration with no accounts\n"
},
{
"from": "gpt",
"value": "require \"features/helper\"\n\nRSpec.describe \"Running commands\", type: :aruba do\n def create_config(accounts:, debug: false)\n config_path = File.expand_path(\"~/.imap-backup... | ruby | chosen |
[
{
"from": "system",
"value": "Fix not updated spec after renaming test entities.\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\nrequire \"mongoid_embed_finder/relation_discovery\"\n\ndescribe MongoidEmbedFinder::RelationDiscovery do\n describe \"#relations\" do\n subject { descr... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Use ENV['ACCELA_ACCESS_TOKEN'] if present.\"\n\nThis reverts commit 5fe1939523d2ad04c1a2ef51874f157007db30a3.\n"
},
{
"from": "human",
"value": "module Accela\n class Configuration\n BASE_URI = 'https://apis.accela.com'\n API_VERSION = \"4\"\n\n c... | ruby | chosen |
[
{
"from": "system",
"value": "Change to use AFNetworking's API\n"
},
{
"from": "human",
"value": "module AFMotion\n class HTTPResult\n attr_accessor :operation, :object, :error\n\n def initialize(operation, responseObject, error)\n self.operation = operation\n self.object = resp... | ruby | chosen |
[
{
"from": "system",
"value": "Define attributes on which search terms will filter\n"
},
{
"from": "human",
"value": "module ActiveRecord\n module AttributeSearchable\n \n def self.included(base)\n base.extend ClassMethods\n end\n\n module ClassMethods\n def attribute_searcha... | ruby | chosen |
[
{
"from": "system",
"value": "Use :deploy_group instead of :group"
},
{
"from": "human",
"value": "# Reset Rails-specific stuff.\n\nset :shared_children, %w()\n\nnamespace :deploy do\n task :finalize_update, :except => { :no_release => true } do\n if fetch(:group_writable, true)\n sudo ... | ruby | chosen |
[
{
"from": "system",
"value": "Use `<` operator to check if `Numeric` is among the time interval class ancestors.\n"
},
{
"from": "human",
"value": "require \"sleep2/version\"\n\nclass Sleep2\n MATH_OPERATORS = %i[* / + - % **]\n\n include Comparable\n\n def self.[](duration)\n new duration... | ruby | chosen |
[
{
"from": "system",
"value": "Fix warning: too many arguments for format string\n"
},
{
"from": "human",
"value": "require 'mechanize'\n\nmodule Cocoapods::Search\n class Pod\n attr_accessor :name, :star_count, :fork_count, :has_github\n\n def initialize\n @has_github = false\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Add some notes regarding type size\n"
},
{
"from": "human",
"value": "module GirFFI\n module FFIExt\n module Pointer\n def to_ptr\n self\n end\n\n def to_value\n self\n end\n\n def to_object\n # TODO: Move implementa... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor the tag stuff slightly to allow more custom loading.\n"
},
{
"from": "human",
"value": "module Headjs\n \n module TagHelper\n\n def headjs_include_tag(*sources)\n keys = []\n content_tag :script, { :type => Mime::JS }, false do\n \"hea... | ruby | chosen |
[
{
"from": "system",
"value": "Remove parallel processing support for Db::Reader\n\nWithout count there is no way to implement parallel processing support\nfor Db::Reader. If you need parallel reading use Db::Reader in\nconjunction with Redis queues.\n"
},
{
"from": "human",
"value": "require \"m... | ruby | chosen |
[
{
"from": "system",
"value": "Make anything not a date nil in parse_spanish_date\n\nFor example, some people are putting only a year (“2013”) or “Around\n2013”). Those dates will not be imported and transformed to nil\n"
},
{
"from": "human",
"value": "require 'csv_converters'\n\nmodule Importer... | ruby | chosen |
[
{
"from": "system",
"value": "Prepare for next release, 6.0.1\n"
},
{
"from": "human",
"value": "module Mongoid #:nodoc:\n module Slug\n VERSION = '6.0.0'.freeze\n end\nend\n"
},
{
"from": "gpt",
"value": "module Mongoid #:nodoc:\n module Slug\n VERSION = '6.0.1'.freeze\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test to render partials in Sotechsha\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe SotechshaOverviewPageController, type: :controller, scrivito: true do\n render_views\n\n describe \"GET #index\" do\n it \"set @sts_post\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix double namespace issue when deleting failed jobs."
},
{
"from": "human",
"value": "module Resque\n module Failure\n # A Failure backend that stores exceptions in Redis. Very simple but\n # works out of the box, along with support in the Resque web app.\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add GitHub address as homepage\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nrequire 'check_passenger/version'\n\nGem::Specification.new do |spec|\n spec.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix undefined method `start_with?` for sprockets 4\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/breadcrumbs.rb'\nmodule Semantic\n module Ui\n module Sass\n module Rails\n class Engine < ::Rails::Engine\n initializer... | ruby | chosen |
[
{
"from": "system",
"value": "Add error handling around Elasticsearch update/delete.\n"
},
{
"from": "human",
"value": "module Searchable\n extend ActiveSupport::Concern\n\n included do\n include Elasticsearch::Model\n\n # We specify our own callbacks, instead of using Elasticsearch::Mod... | ruby | chosen |
[
{
"from": "system",
"value": "Update faraday, typhoeus to latest\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'filepreviews/version'\n\nGem::Specification.new do |spec|\n spec.n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug where sync limit was not respected\n\nargs[:limit] was a string, so the comparison failed. We now ensure it is an integer if present.\n"
},
{
"from": "human",
"value": "namespace :stagehand do\n desc \"Polls the commit entries table for changes to sync to p... | ruby | chosen |
[
{
"from": "human",
"value": "Add dashboard controller rspec test\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe DashboardController, type: :controller do\n before :each do\n # Create plans and users static values for free account\n\n # add plan\n Plan.create!... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for \"attributes\" attribute\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe \"Adding attribute called 'attributes'\" do\n\n context \"when mass assignment is disabled\" do\n before do\n module Examples\n class User\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Check that we're a teapot\n"
},
{
"from": "gpt",
"value": "require File.expand_path(\"../../test_helper\", __FILE__)\nclass ImaTeapotTest < Test::Unit::TestCase\n def test_it_is_a_teapot\n q = SingletonQueue.get\n q.enq(httpinate(\"I'm a teapot, yo\", 418))\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Rails requirements. Now optional.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/hw/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.description = %q{Package manager for random tasks}\n gem.summary... | ruby | chosen |
[
{
"from": "system",
"value": "Change podspec source to point to correct http/git link.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n# Root specification\n\ns.name = \"box-ios-browse-sdk\"\ns.version = \"1.0.0\"\ns.summary = \"iOS Browse ... | ruby | chosen |
[
{
"from": "system",
"value": "Set required courier_id; use consignment_number\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\nRSpec.describe Admin::ShipmentsController, type: :controller do\n before do\n logged_in_as_admin\n end\n\n describe \"POST create\" do\n let(:vali... | ruby | chosen |
[
{
"from": "system",
"value": "Add `json` gem as runtime dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'twig/version'\n\nGem::Specification.new do |spec|\n spec... | ruby | chosen |
[
{
"from": "system",
"value": "Update hashie dependency to ~> 1.1.0\n"
},
{
"from": "human",
"value": "spec = Gem::Specification.new do |s|\n s.name = 'mogli'\n s.version = '0.0.28'\n s.summary = \"Open Graph Library for Ruby\"\n s.description = %{Simple library for accessing the facebook Ope... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude testing for certain packages on Debian 8\n\nWe're slimming down the list of pre-installed packages starting with\njessie\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe package('acpid') do\n it { should be_installed }\nend\n\ndescribe p... | ruby | chosen |
[
{
"from": "human",
"value": "Add partial spec for Shell adapter.\n"
},
{
"from": "gpt",
"value": "describe Lita::Adapters::Shell do\n let(:robot) { double(\"Robot\") }\n\n subject { described_class.new(robot) }\n\n describe \"#say\" do\n it \"prints its input\" do\n expect(subject).to... | ruby | chosen |
[
{
"from": "system",
"value": "Include FactoryGirl methods in RSpec config\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe SponsorType, type: :model do\n let(:sponsor_type) { FactoryGirl.build_stubbed(:sponsor_type) }\n\n subject { sponsor_type }\n\n it { should be_valid ... | ruby | chosen |
[
{
"from": "human",
"value": "Add smoke test to touch all the elements for real.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper.rb'\n\nclass ExampleObserver\n include ImapMonitor::EmailEvent::Observer\n\n def initialize(account = {})\n @tracker = ImapMonitor::Email::Tracker.new(ImapMo... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for Multiton::Mixin module.\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire \"multiton/mixin\"\n\ndescribe Multiton::Mixin do\n let(:klass) do\n Class.new do\n include Multiton::Mixin\n end\n end\n\n subject { klass.n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove spec related to defunct classroom activity\n"
},
{
"from": "human",
"value": "shared_examples_for \"student\" do\n let(:classroom){ build(:classroom, code: '101') }\n let(:student){build(:student)}\n\n context 'if username is not present' do\n let!(:stu... | ruby | chosen |
[
{
"from": "system",
"value": "Rephrase in level controller spec\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe Course::LevelsController, type: :controller do\n let!(:instance) { create(:instance) }\n\n with_tenant(:instance) do\n let!(:user) { create(:administra... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spec failing in Ruby 1.9.1"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + \"/acceptance_helper.rb\"\n\nfeature \"Acceptance spec execution\", %q{\n In order to write better web apps\n As a rails developer\n I want to execute acceptance spec... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.