conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Remove upper version limit of one of the 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 'scopable/version'\n\nGem::Specification.new do |sp... | ruby | chosen |
[
{
"from": "system",
"value": "Order the builds so that PDF is last\n\nWe use `exec` to build PDFs so that LaTeX error messages don't cause\nthe command to hang. As a result, it's important to build PDFs last.\n\n[Delivers #58759998]\n"
},
{
"from": "human",
"value": "module Polytexnic\n FORMATS... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing 'end' in antennas\n"
},
{
"from": "human",
"value": "require 'socket'\n\nmodule RaceResult\n class Decoder\n attr_accessor :host, :port\n\n STATUS_KEYS = [:date, :time, :has_power, :antennas, :timing_mode, :file_no,\n :gps_fix, :... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure we check the correct instance.\n"
},
{
"from": "human",
"value": "module RFunk\n class Option\n include Enumerable\n\n def each(&block)\n return enum_for(:enum) if block.nil?\n\n enum.each { |v| block.call(v) }\n end\n end\n\n def Opt... | ruby | chosen |
[
{
"from": "system",
"value": "[UPDATE] Move earlier to before provisioning\n"
},
{
"from": "human",
"value": "module VagrantPlugins\n module VagrantGit\n class Plugin < Vagrant.plugin(\"2\")\n name \"vagrant git support\"\n description <<-DESC \n A vagrant plugin to allow checki... | ruby | chosen |
[
{
"from": "system",
"value": "Change url parameters in accordance w new API requirement\n"
},
{
"from": "human",
"value": "module Vimeo\n module Simple\n\n class Video < Vimeo::Simple::Base\n # Returns this video's information.\n #\n # @param [String] video_id The video's id.\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for layout rendering bug\n"
},
{
"from": "human",
"value": "require \"action_controller\"\n\nmodule Zertico\n class Controller < ActionController::Base\n def initialize\n begin\n extend \"::#{self.class.name.chomp(\"Controller\").concat(\"Service... | ruby | chosen |
[
{
"from": "system",
"value": "Add the encoding line to this file\n"
},
{
"from": "human",
"value": "module Cequel\n module Metal\n module Policy\n module CassandraError\n module ClearAndRetry\n def handle_error(error, retries_remaining)\n clear_active_connecti... | ruby | chosen |
[
{
"from": "system",
"value": "Use instance variables instead of class variables.\n"
},
{
"from": "human",
"value": "module InheritanceIntegerType\n module Extensions\n extend ActiveSupport::Concern\n module ClassMethods\n\n def integer_inheritance=(val)\n self._inheritance_map... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for scripts on oracle_exec\n"
},
{
"from": "human",
"value": "require 'utils/oracle_access'\nrequire 'easy_type/helpers'\n\nPuppet::Type.type(:oracle_exec).provide(:sqlplus) do\n include Utils::OracleAccess\n include EasyType::Helpers\n include Puppet... | ruby | chosen |
[
{
"from": "system",
"value": "Fix references to README file to point to README.md (fixes gemspec errors)\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.expand_path('../lib', __FILE__))\n\nrequire 'rack/accept/version'\n\nGem::Specification.new do |s|\n s.name = 'rack-accept'\n s.ve... | ruby | chosen |
[
{
"from": "system",
"value": "Return nil if no sexp given\n"
},
{
"from": "human",
"value": "module Fancy\n module AST\n Nodes = Hash.new\n\n # Converts a fancy sexp into fancy AST\n def self.from_sexp(sexp)\n return nil if sexp.empty?\n name = sexp.first\n rest = sexp[1... | ruby | chosen |
[
{
"from": "human",
"value": "Add Rake test file for Rails for reference\n"
},
{
"from": "gpt",
"value": "require 'rubygems'\nrequire 'rchardet'\n\n# Create a new rails app and put this under lib/tasks\n\nCONTENTS = \"\\345\\225\\206\\346\\245\\255\\346\\234\\215\\345\\213\\231\\347\\232\\204Ruby... | ruby | chosen |
[
{
"from": "system",
"value": "Add setting text widget value\n"
},
{
"from": "human",
"value": "module GPhoto2\n class TextCameraWidget < CameraWidget\n protected\n\n def get_value\n val = FFI::MemoryPointer.new(:string)\n val_ptr = FFI::MemoryPointer.new(:pointer)\n val_ptr... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"return distinct elements in by_enterprise scope\"\n\nThis reverts commit 3057b70bfe7e25e4dee80cae10c408238f040a02, which\ncaused several tests to fail.\n"
},
{
"from": "human",
"value": "class ProductCategory < Category\n # FIXME: do not allow category wit... | ruby | chosen |
[
{
"from": "system",
"value": "Use nil to indicate we don't care about the cases for now.\n"
},
{
"from": "human",
"value": "require_relative 'test_helper'\n\nclass GeneratorTest < Minitest::Test\n def test_default_metadata_path\n subject = Generator.new('aname', 'some cases')\n # This is ... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify tap block argument names.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Acfs::Client do\n let(:client) do\n Class.new(MyClient) do |cls|\n cls.base_url = MyClient.base_url\n end\n end\n\n describe '#initialize' do\n it... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for Logger component\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Alephant::LogSystem do\n before(:each) do\n sequencer = double()\n queue = double()\n cache = double()\n renderer = double()\n\n Alephant::Seque... | ruby | chosen |
[
{
"from": "system",
"value": "Fix specs using new lib path\n"
},
{
"from": "human",
"value": "# coding: utf-8\nrequire 'rubygems'\n\ngem 'activesupport', '2.3.8'\ngem 'actionpack', '2.3.8'\nrequire 'active_support'\nrequire 'action_pack'\nrequire 'action_view'\nrequire 'action_controller'\n\ngem... | ruby | chosen |
[
{
"from": "system",
"value": "Test for an XHR request, not for a javascript format\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe StaticController do\n routes { Sufia::Engine.routes }\n describe \"#mendeley\" do\n it \"renders page\" do\n get \"mendeley\"\n r... | ruby | chosen |
[
{
"from": "system",
"value": "Add a sleep to PaperReviewerTask feature spec.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nfeature \"Assigns Reviewer\", js: true do\n let(:journal) { FactoryGirl.create(:journal) }\n\n let(:editor) { create :user }\n\n let!(:albert) { create :use... | ruby | chosen |
[
{
"from": "system",
"value": "Add 'pp' gem as require - fix FakeFS issue\n\nFixes issue https://github.com/defunkt/fakefs/issues/99\n\nSigned-off-by: Seapagan <4ab1b2fdb7784a8f9b55e81e3261617f44fd0585@gmail.com>\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', ... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for feature check context\n"
},
{
"from": "gpt",
"value": "require 'helper'\n\nRSpec.describe Flipper::FeatureCheckContext do\n let(:feature_name) { :new_profiles }\n let(:values) { Flipper::GateValues.new({}) }\n let(:thing) { Struct.new(:flipper_id).ne... | ruby | chosen |
[
{
"from": "system",
"value": "Build configuration Generator fully tested.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule Xcake\n module Generator\n describe BuildConfiguration do\n\n before :each do\n @xcode_build_configuration = double().as_null_object\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add rails all to specs\n"
},
{
"from": "human",
"value": "require 'bundler/setup'\nBundler.setup\n\nrequire 'admin_auth'\n\nRSpec.configure do |config|\n # some (optional) config here\nend\n"
},
{
"from": "gpt",
"value": "require 'bundler/setup'\nBundle... | ruby | chosen |
[
{
"from": "system",
"value": "Add Devise Helpers for Controller Specs\n\nUpdate the RSpec helper file to include the Devise helpers.\n"
},
{
"from": "human",
"value": "# This file is copied to spec/ when you run 'rails generate rspec:install'\nENV[\"RAILS_ENV\"] ||= 'test'\nrequire File.expand_p... | ruby | chosen |
[
{
"from": "human",
"value": "Disable JSON and XML parameter parsing\n\nWe're already doing this in production using configuration added at deploy time.\nIt's better to have that happen in the app to keep development and production\nmore in sync.\n"
},
{
"from": "gpt",
"value": "# Turn off XML pa... | ruby | chosen |
[
{
"from": "system",
"value": "Add the support folder to the load path.\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\n"
},
{
"from": "gpt",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\n$LOAD_PATH.unshift File.ex... | ruby | chosen |
[
{
"from": "system",
"value": "Fix default value on bypass_flag\n"
},
{
"from": "human",
"value": "require 'active_record'\nrequire 'active_record-readonly_model/version'\n\nmodule ActiveRecord\n module ReadonlyModel\n @@bypass_flag = true\n\n def self.bypass(&block)\n @@bypass_flag =... | ruby | chosen |
[
{
"from": "system",
"value": "Remove body from page translations.\n"
},
{
"from": "human",
"value": "class RemoveBodyFieldFromPages < ActiveRecord::Migration\n def up\n remove_column :pages, :body\n end\n\n def down\n add_column :pages, :body, :text\n end\nend\n"
},
{
"from": "... | ruby | chosen |
[
{
"from": "human",
"value": "Update category_id primary and foreign keys to bigint\n"
},
{
"from": "gpt",
"value": "class ChangeCategoryIdToBigint < ActiveRecord::Migration[6.0]\n def up\n change_column :categories, :id, :bigint\n\n change_column :broadcasts, :category_id, :bigint\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Stop duplicating scope conditions. Instead, use existing scopes already added to the model\n"
},
{
"from": "human",
"value": "module HasPublishing\n module ClassMethods\n # This default scope allows published and draft viewing modes to share the\n # same code... | ruby | chosen |
[
{
"from": "system",
"value": "EYPP-8535: Replace legacy `ssl_certificates` endpoint with new `ssl-certificates` one\n"
},
{
"from": "human",
"value": "class Ey::Core::Client\n class Real\n def get_ssl_certificate(params={})\n id = params[\"id\"]\n url = params[\"url\"]\n\n re... | ruby | chosen |
[
{
"from": "system",
"value": "Load Config module on initialization\n\nLoad the config module after the default spree payment methods have been\nregistered\n"
},
{
"from": "human",
"value": "module SolidusSubscriptions\n class Engine < Rails::Engine\n require 'spree/core'\n isolate_namespa... | ruby | chosen |
[
{
"from": "system",
"value": "Remove a copied comment that doesn't make sense here\n"
},
{
"from": "human",
"value": "# Requires are moved to the bottom of this file.\n\nmodule Browser; module DOM\n\nclass Element < Node\n # @!attribute editable\n # @return [Boolean?] the value of contentEdita... | ruby | chosen |
[
{
"from": "system",
"value": "Update roda syntax for params in path"
},
{
"from": "human",
"value": "require \"web_bouncer/middleware\"\n\nmodule WebBouncer\n class OauthMiddleware < Middleware\n route do |r|\n config = opts[:config]\n\n r.is 'auth/failure' do\n Matcher.call... | ruby | chosen |
[
{
"from": "system",
"value": "Change expected interface for move and pos\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe TicTacToe do\n it 'has a version number' do\n expect(TicTacToe::VERSION).not_to be nil\n end\n\n it 'has a board' do\n game = TicTacToe::Board.ne... | ruby | chosen |
[
{
"from": "system",
"value": "Define basic models in migration\n"
},
{
"from": "human",
"value": "class AddOrderToAdjustments < ActiveRecord::Migration\n def up\n add_column :spree_adjustments, :order_id, :integer\n\n # Ensure migration can use the new column\n Spree::Adjustment.reset_... | ruby | chosen |
[
{
"from": "human",
"value": "Add capybara test for Mission component and pass\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.feature \"Mission\", type: :feature, js: true do\n scenario \"renders Mission component\" do\n visit \"/\"\n expect(page).to have_content \"Less t... | ruby | chosen |
[
{
"from": "system",
"value": "Fix copier spec (use real objects)\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire_relative '../../spec_helper'\nrequire_relative '../../../app/models/map/copier'\nrequire_relative '../../../app/models/layer'\n\ndescribe CartoDB::Map::Copier do\n befo... | ruby | chosen |
[
{
"from": "system",
"value": "Add FIXME note in test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Camaraderie do\n describe 'Custom model classes' do\n before do\n Camaraderie.configure do |config|\n config.organization_class = 'Company'\n config.us... | ruby | chosen |
[
{
"from": "system",
"value": "Remove functional tests against api\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\nmodule Embedly\n describe API do\n let(:api) { API.new :key => ENV['EMBEDLY_KEY'], :secret => ENV['EMBEDLY_SECRET'] }\n\n describe \"logger\" do\n let(:io) ... | ruby | chosen |
[
{
"from": "system",
"value": "Switch Amphibiaweb description provider to use https.\n"
},
{
"from": "human",
"value": "module TaxonDescribers\n class AmphibiaWeb < Base\n def describe(taxon)\n names = [taxon.taxon_names.select{|n| n.is_scientific?}.map(&:name), taxon.name].flatten.uniq\... | ruby | chosen |
[
{
"from": "human",
"value": "Write specs for markdown smart link behavior\n\nThis ApplicationHelper mess needs to be extracted somewhere\nelse but let's worry about that later.\n"
},
{
"from": "gpt",
"value": "require \"rails_helper\"\n\nRSpec.describe ApplicationHelper do\n include Application... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude the schema migration helpers from code coverage since they will never be tested.\n"
},
{
"from": "human",
"value": "require 'simplecov'\n\nmodule CoverageHelper\n # Helper to include Coveralls/Code Climate coverage, but not require developers to install the... | ruby | chosen |
[
{
"from": "system",
"value": "Add a nest for spec\n"
},
{
"from": "human",
"value": "require 'inline_template_loader'\n\ndescribe 'InlineTemplateLoader' do\n describe '#load' do\n shared_examples_for 'load templates correctly from this file' do\n it { should == {foo: \"Here is template ... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to run as travis locally\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\nrequire File.expand_path(File.join(File.dirname(__FILE__), 'ci-helpers'))\n\nworking_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..'))\n\nENV['TRAVIS... | ruby | chosen |
[
{
"from": "system",
"value": "Add additional high card tests\n"
},
{
"from": "human",
"value": "def expect_high_card(expected_high_card, cards)\n context \"given #{cards}\" do\n it \"the high card is #{expected_high_card}\" do\n cards = cards.map { |c| CardParser.parse c }\n expect... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude tests from the gem package\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n# frozen_string_literal: true\n\nrequire File.expand_path('../lib/erd/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = ['Akira Matsuda']\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to support tvOS\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"OROpenSubtitleDownloader\"\n s.version = \"1.1.1\"\n s.summary = \"An Obj-C API for Searching and Downloading Subtitles from OpenSubtitles.\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Create functionality so that only logged_in users may make new responses\n"
},
{
"from": "human",
"value": "class ResponsesController < ApplicationController\n\n def new\n @parent = parent_object\n @parent_name = @parent.class.name.downcase.pluralize\n @re... | ruby | chosen |
[
{
"from": "system",
"value": "Add David Kormushoff to gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/agile_check_in/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"phillc\", \"rsliter\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Stop using --local for update\n"
},
{
"from": "human",
"value": "gem \"engineyard-recipes\", :group => [:development]\n\nafter_bundler do\n say_custom \"eycloud\", \"Setting up deploy hooks...\"\n run \"bundle exec ey-recipes init --on-deploy --chef\"\n run \"bun... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec coverage for Rule::Confirmation.\n"
},
{
"from": "gpt",
"value": "require_relative '../../spec_helper'\nrequire 'aequitas/rule/confirmation'\n\nmodule Aequitas\n class Rule\n describe Confirmation do\n subject { Confirmation.new(attribute_name, opti... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for Ruby literal key regexp\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'spec_helper'\nrequire 'i18n/tasks/scanners/ruby_key_literals'\n\nRSpec.describe 'RubyKeyLiterals' do\n let(:scanner) do\n Object.new.extend I18n::T... | ruby | chosen |
[
{
"from": "system",
"value": "Change start elo to 700\n"
},
{
"from": "human",
"value": "class Champion < ActiveRecord::Base\n has_many :fights\n has_many :comments\n\n after_initialize :init\n\n def total_matches\n self.wins + self.losses\n end\n\n private\n def init\n begin\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use proper glob for files in gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = \"filesize\"\n s.version = \"0.1.0\"\n\n s.licenses = [\"MIT\"]\n s.authors = [\"Dominik Honnef\"]\n s.description = \"fi... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify disconnect test as the current one is brittle\n"
},
{
"from": "human",
"value": "RSpec.describe \"Components: model\", type: :cli do\n context \"with hanami-model\" do\n it \"resolves model\" do\n with_project do\n require Pathname.new(Dir.p... | ruby | chosen |
[
{
"from": "system",
"value": "Remove redundancy in method name\n"
},
{
"from": "human",
"value": "# January 2016, Robert W Gries\n#\n# Copyright (c) 2015-16 Cisco and/or its affiliates.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in... | ruby | chosen |
[
{
"from": "system",
"value": "Speed up article counting from raw radian6 River Of News XML\n"
},
{
"from": "human",
"value": "module Radian6\n module SAX\n class PostCounter < Nokogiri::XML::SAX::Document\n attr_reader :count, :total, :error, :last_timestamp\n def initialize\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the git repository after update is complete os the next time update is run it is successful.\n"
},
{
"from": "human",
"value": "include_recipe 'workstation::user_chef'\ninclude_recipe 'workstation::update'\ninclude_recipe 'workstation::chef_dk'\ninclude_recip... | ruby | chosen |
[
{
"from": "system",
"value": "Update a user without changes\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'editing a user as an admin' do\n context 'with no changes' do\n it 'updates the user' do\n end\n it 'redirect to users table' do\n end\n end\n context ... | ruby | chosen |
[
{
"from": "system",
"value": "[skip ci] Add channel resource documentation link\n"
},
{
"from": "human",
"value": "require 'yt/models/base'\n\nmodule Yt\n module Models\n # @private\n # Encapsulates statistics about the resource, such as the number of times\n # the resource has been vi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix menu link for relative url's.\n"
},
{
"from": "human",
"value": "require 'redmine'\n\nResque.redis.namespace = \"#{Rails.application.class.parent_name.downcase}_#{Rails.env}\"\n\nActionDispatch::Callbacks.to_prepare do\n require 'redmine_resque'\nend\n\nRedmine... | ruby | chosen |
[
{
"from": "human",
"value": "[Index] Add spec for searching for a spec with a nil platform\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\nrequire \"spec_helper\"\n\ndescribe Bundler::Index do\n let(:specs) { [] }\n subject { described_class.build {|i| i.use(specs) } }\n\n con... | ruby | chosen |
[
{
"from": "system",
"value": "Update Provider factory to be more unique\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :provider, traits: %i(audited) do\n name { Faker::Company.name }\n description { Faker::Lorem.sentence }\n identifier { name.gsub(/\\W+/, '-') }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify the Librarian::Lockfile spec for clarity when reading with `-f d`.\n"
},
{
"from": "human",
"value": "require 'librarian'\nrequire 'librarian/mock'\n\nmodule Librarian\n describe Lockfile do\n\n before do\n Mock.registry :clear => true do\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix mistake in __LINE__ usage\n"
},
{
"from": "human",
"value": "require 'backports/2.1.0/enumerable/to_h'\n\nmodule DeepCover\n module Node::Mixin\n module HasTracker\n def self.included(base)\n base.extend ClassMethods\n setup_constants(base... | ruby | chosen |
[
{
"from": "system",
"value": "Fix raw html output, add consistent avatar style\n\nSupports #187\n"
},
{
"from": "human",
"value": "module SignaturesHelper\n def signers_description(signer)\n description = \"#{signer.given_name} #{signer.family_name}\"\n\n if signer.image?\n avatar_ta... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo bug in sharedspec.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nshared_examples_for 'an Enumeration' do\n\n describe 'an instance' do\n\n let :instance do\n described_class.new 'foo'\n end\n\n let :immutable_error do\n RUB... | ruby | chosen |
[
{
"from": "system",
"value": "Halt authorization unless referrer is found\n\nThis will stop exceptions caused by bots\n"
},
{
"from": "human",
"value": "require 'uri'\n\nclass AuthorizeController < BaseController\n GITHUB_OAUTH_AUTHORIZE_URL = %q(https://github.com/login/oauth/authorize)\n\n g... | ruby | chosen |
[
{
"from": "system",
"value": "Set a test to pending cause of current_tenant.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe TenantsController do\n shared_examples \"it does all controller actions\" do\n describe \"GET current\" do\n it \"get the current tenant\" do... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for deprecated methods\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\nDEPRECATED_METHODS = %w[fetch list update delete]\ndescribe Librato::Metrics do\n\n DEPRECATED_METHODS.each do |deprecated_method|\n it { should respond_to(deprecated_metho... | ruby | chosen |
[
{
"from": "system",
"value": "Move creation of image and thumbnail methods in ExifData outside of initialize so that they aren't redefined every time a new ExifData is created\n"
},
{
"from": "human",
"value": "module FileData\n # Container for Exif tag values\n class ExifData\n NAMES = { 0... | ruby | chosen |
[
{
"from": "system",
"value": "Change height to length on the name of the image data convenience method\n"
},
{
"from": "human",
"value": "module FileData\n # Container for Exif tag values\n class ExifData\n SECTIONS = { 0 => :image, 1 => :thumbnail }.freeze\n SECTIONS.each { |section| de... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake to development dependencies"
},
{
"from": "human",
"value": "# coding: utf-8\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'haml2erb/version'\n\nGem::Specification.new do |s|\n s.name = 'haml2erb'\n s.version = Haml2Erb::VERSION\n s.a... | ruby | chosen |
[
{
"from": "system",
"value": "Use production env for grabbing email settings.\n"
},
{
"from": "human",
"value": "# Learn more about this file: http://github.com/javan/whenever\n\nset :environment, 'production_lite'\n\nevery 1.hour, :at => 19 do\n runner 'Site.each { Group.update_memberships; Ne... | ruby | chosen |
[
{
"from": "system",
"value": "Change data column to hash to provide more flexibilities\n"
},
{
"from": "human",
"value": "module SettingsOnRails\n module SettingsColumn\n DATA = :__settings_data\n\n def self.setup(klass, column)\n klass.class_eval do\n class << self; attr_acce... | ruby | chosen |
[
{
"from": "system",
"value": "Use let vs instance vars in Media requests spec\n\nThis is a more idiomatic use of RSpec.\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\nRSpec.describe \"Media requests\", type: :request do\n describe \"requesting an asset that doesn't exist\" do\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add full unit spec for Flame::Dispatcher::Cookies\n\nNow 100% test coverage!\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\ndescribe Flame::Dispatcher::Cookies do\n\tbefore do\n\t\t@env = {\n\t\t\t'HTTP_COOKIE' => 'foo=bar; baz=bat'\n\t\t}\n\t\t@re... | ruby | chosen |
[
{
"from": "system",
"value": "Add client info to connection\n"
},
{
"from": "human",
"value": "module Vertica\n module Protocol\n\n class Startup < FrontendMessage\n message_id nil\n\n def initialize(user, database, options = nil)\n @user = user\n @database = data... | ruby | chosen |
[
{
"from": "system",
"value": "Add short description for now.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'better_logging/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the strayed debug code.\n"
},
{
"from": "human",
"value": "module RailsDevelopmentBoost\n module Reloader # replacement for the Rails' post fa1d9a file_update_checker\n extend self\n \n def hook_in!\n Rails.application.reloaders.unshift(self)\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix registering signal keys for Windows.\n"
},
{
"from": "human",
"value": "# vim:fileencoding=utf-8\n\nmodule Resque\n module Scheduler\n module SignalHandling\n attr_writer :signal_queue\n\n def signal_queue\n @signal_queue ||= []\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update MAMP to version 3.0.5\n"
},
{
"from": "human",
"value": "class Mamp < Cask\n url 'http://downloads7.mamp.info/MAMP-PRO/releases/3.0.4/MAMP_MAMP_PRO_3.0.4.pkg'\n homepage 'http://www.mamp.info/en/index.html'\n version '3.0.4'\n sha256 '786538ce247870af4bfb... | ruby | chosen |
[
{
"from": "system",
"value": "Add binary stanza to Vico.app Cask\n\nCloses #7627.\n"
},
{
"from": "human",
"value": "cask :v1 => 'vico' do\n version 'r3132'\n sha256 'f5c82f320a1e3929492ecb30ba6b50d48af413b33b8e14dac06c75cd06cb809f'\n\n url \"http://www.vicoapp.com/download/vico-#{version}.dm... | ruby | chosen |
[
{
"from": "system",
"value": "Put Main controller under ApplicationName::Controllers.\nRemove notemplate action.\n"
},
{
"from": "human",
"value": "# Default url mappings are:\n# a controller called Main is mapped on the root of the site: /\n# a controller called Something is mapped on: /somet... | ruby | chosen |
[
{
"from": "system",
"value": "Remove image and zone defaults in favor of deploy task\n"
},
{
"from": "human",
"value": "current_dir = File.dirname(__FILE__)\nuser = ENV['OPSCODE_USER'] || ENV['USER']\n\nlog_level :info\nlog_location STDOUT\nnode_name use... | ruby | chosen |
[
{
"from": "system",
"value": "gemspec: Remove obsolete (as of Ruby 2.0) magic encoding comment\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'simple_sitemap/version'\n\nGem::Specification.new do |gem|\n\n gem.name = ... | ruby | chosen |
[
{
"from": "human",
"value": "Add option select component test\n\nTest that the option select component:\n* can start closed\n* can include aria control attributes\n* can pre-check checkboxes\n* creates checkboxes with assigned names, labels and values\n"
},
{
"from": "gpt",
"value": "require 'go... | ruby | chosen |
[
{
"from": "system",
"value": "Update spec to match readme\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'stow_test::stow_package' do\n let(:stow_package_run) do\n ChefSpec::SoloRunner.new(\n :step_into => 'stow_package'\n ).converge(described_recipe)\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Create `/topics/<id>` route shows the gambe\n\nThis will load the erb file `topics/show.html.erb` from the `views`\nfolder.\n\nThis samples 2 tweets for the game from the selected topic (or all, if\nid is all)\n"
},
{
"from": "human",
"value": "# Homepage (Root path... | ruby | chosen |
[
{
"from": "system",
"value": "Delete useless 'Private' and 'Public' comments\n"
},
{
"from": "human",
"value": "require 'highline'\nrequire 'paint'\n\nrequire 'nehm/artwork'\nrequire 'nehm/config'\nrequire 'nehm/configure'\nrequire 'nehm/client'\nrequire 'nehm/get'\nrequire 'nehm/help'\nrequire ... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec with min ruby version\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'bagit/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Introduce ncurses cookbook, not yet tested with sous-chef\n"
},
{
"from": "human",
"value": "package \"libncursesw5-dev\"\n"
},
{
"from": "gpt",
"value": "#\n# Cookbook Name:: ncurses\n# Recipe:: default\n# Copyright 2011, Travis CI development team\n#\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add nice display name for Amazon's EBS Manager\n"
},
{
"from": "human",
"value": "class ManageIQ::Providers::Amazon::StorageManager::Ebs < ManageIQ::Providers::StorageManager\n require_nested :CloudVolume\n require_nested :CloudVolumeSnapshot\n require_nested :Re... | ruby | chosen |
[
{
"from": "system",
"value": "Remove un-needed redefinition of puma\n"
},
{
"from": "human",
"value": "require \"test_helper\"\n\nrequire \"action_dispatch/system_testing/server\"\nclass ActionDispatch::SystemTesting::Server\n def register\n Capybara.register_server :rails_puma do |app, port... | ruby | chosen |
[
{
"from": "system",
"value": "Handle parentheses in strings correctly in REPL\n"
},
{
"from": "human",
"value": "require \"lasp\"\nrequire \"readline\"\n\nmodule Lasp\n module_function\n\n def repl\n trap(\"SIGINT\") { puts \"\\n\\nBye!\"; exit }\n\n puts \"((( Läsp v#{Lasp::VERSION} REP... | ruby | chosen |
[
{
"from": "system",
"value": "Add more tests for language helper\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\n#\n# == LanguageHelper Test\n#\nclass LanguageHelperTest < ActionView::TestCase\n include LanguageHelper\n\n test 'should return true if current locale is right' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a separate argument to block\n"
},
{
"from": "human",
"value": "require \"ruby-with/version\"\n\nmodule With\n \n def with context, &block\n context.instance_exec(&block)\n end\n \nend"
},
{
"from": "gpt",
"value": "require \"ruby-with/version... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.