conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix Bigone payload to return raw output\n"
},
{
"from": "human",
"value": "module Cryptoexchange::Exchanges\n module Bigone\n module Services\n class Market < Cryptoexchange::Services::Market\n class << self\n def supports_individual_ticker_... | ruby | chosen |
[
{
"from": "system",
"value": "Make the captcha check work\n"
},
{
"from": "human",
"value": "module MathCaptcha\n module HasCaptcha\n def check_captcha\n self.errors.add_to_base(\"Captcha not answered correctly.\") unless self.captcha.check(self.captcha_solution)\n end\n \n mod... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor more tolerant leap rule to subclass.\n"
},
{
"from": "human",
"value": "module HeadMusic::Style::Annotations\nend\n\nclass HeadMusic::Style::Annotations::SingleLargeLeaps < HeadMusic::Style::Annotation\n MESSAGE = \"Recover leaps by step, repetition, oppos... | ruby | chosen |
[
{
"from": "system",
"value": "Add Committee ID Search To API Agenda\n"
},
{
"from": "human",
"value": "class Api::AgendasController < ApiController\n\tdef index\n\t\t@agendas = if @@query.empty?\n\t\t\tpaginate Agenda.all.order(change_query_order), per_page: change_per_page\n\t\telse\n\t\t\tpagi... | ruby | chosen |
[
{
"from": "system",
"value": "Update CanCan Redirect To Have Default Item\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # Prevent CSRF attacks by raising an exception.\n # For APIs, you may want to use :null_session instead.\n protect_from_forgery w... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out before actions in green list controller so the index page loads\n"
},
{
"from": "human",
"value": "class GreenListController < ApplicationController\n # Show page for green listed protected areas\n # Will only show if that area is a green listed area, ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Where not filters by last syncronized events.\"\n\nThis reverts commit be27818c46fa279cd0fbde1b92d9448b4a926aeb.\n"
},
{
"from": "human",
"value": "class ModisDataController < ApplicationController\n require 'rgeo/geo_json'\n\n respond_to :json\n\n def f... | ruby | chosen |
[
{
"from": "system",
"value": "Add current_player2 and player2_logged_in? methods\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n protect_from_forgery with: :exception\nend\n"
},
{
"from": "gpt",
"value": "class ApplicationController < Action... | ruby | chosen |
[
{
"from": "system",
"value": "Change any manual calls to Airbrake\n\nChange any manual calls to Airbrake with new-style error logs:\n`GovukError.notify(\"My message here”)`\n"
},
{
"from": "human",
"value": "require \"gds_api/helpers\"\n\nclass ApplicationController < ActionController::Base\n i... | ruby | chosen |
[
{
"from": "system",
"value": "Use render :plain instead of render :text\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n include Slimmer::Headers\n include Slimmer::Template\n include Slimmer::GovukComponents\n slimmer_template \"header_footer_only\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Include pundit in the application controller\n"
},
{
"from": "human",
"value": "# The parent controller for all controllers\nclass ApplicationController < ActionController::Base\n protect_from_forgery with: :exception\n\n include MailpennyHelper\n\n # render 404 ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix deprecation (The :digest and :secret options to protect_from_forgery are deprecated and have no effect.)\n"
},
{
"from": "human",
"value": "# Filters added to this controller apply to all controllers in the application.\n# Likewise, all the methods added will be... | ruby | chosen |
[
{
"from": "system",
"value": "Allow complements to work like lessons\n"
},
{
"from": "human",
"value": "class ComplementsController < GuideContainerController\n\n private\n\n def subject\n @complement ||= Complement.find_by(id: params[:id])\n end\nend\n"
},
{
"from": "gpt",
"va... | ruby | chosen |
[
{
"from": "system",
"value": "Stop related videos display at end of embedded YouTube\n"
},
{
"from": "human",
"value": "module SemiStatic\n module EntriesHelper\n STYLE_CLASSES = ['normal', ' feint', 'flat', 'collapse', 'flat collapse', 'hard', 'highlight', 'wobble', 'dotted']\n\n def y... | ruby | chosen |
[
{
"from": "human",
"value": "Add a transit-specific rehabilitation update event that uses mileage\n"
},
{
"from": "gpt",
"value": "#\n# Rehabilitation update event. This is event type is required for\n# all implementations\n#\nclass RehabilitationUpdateEvent < AssetEvent\n \n # Callbacks\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update RSpec dependency to ~> 3.0.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'pundit/version'\n\nGem::Specification.new do |gem|\n gem.... | ruby | chosen |
[
{
"from": "system",
"value": "Scale running intensity to 255.\n"
},
{
"from": "human",
"value": "xml.chart :showValues=>'0', :showBorder=>0, :bgColor=>'ffffff', :plotGradientColor=>'', :showLegend=>0, :SYAxisMinValue=>150 do \n \n xml.categories do\n @period.each do |date|\n if date.m... | ruby | chosen |
[
{
"from": "human",
"value": "Create worker to run the service that will send the email\n"
},
{
"from": "gpt",
"value": "class NotificationMailerWorker\n include Sidekiq::Worker\n sidekiq_options queue: :email\n\n def perform(user, account, entry)\n NotificationMailer.notification_message(u... | ruby | chosen |
[
{
"from": "system",
"value": "Add a comment about Mock URLs"
},
{
"from": "human",
"value": "require 'uri'\n\nmodule Travis\n class Config\n class Heroku\n module Url\n class Base < Struct.new(:username, :password, :host, :port, :database)\n def to_h\n Hash[ea... | ruby | chosen |
[
{
"from": "system",
"value": "Clean global state in tests\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass ChilloutModuleTest < ChilloutTestCase\n def test_custom_metrics\n Chillout::Metric.track('RegistrationCompleted')\n assert_equal 1, Chillout.creations['RegistrationC... | ruby | chosen |
[
{
"from": "system",
"value": "Fix home page in 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 'rabbit/version'\n\nGem::Specification.new do |spec|\n spec.name = 'ra... | ruby | chosen |
[
{
"from": "system",
"value": "Add period for summary in podspec.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n name = \"SHMessageUIBlocks\"\n url = \"https://github.com/seivan/#{name}\"\n git_url = \"#{url}.git\"\n s.name = name\n version ... | ruby | chosen |
[
{
"from": "system",
"value": "Bump version up to 0.1.2\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = 'dash_ruby'\n spec.version = '0.1.1'\n spec.licenses = ['MIT']\n spec.summary = 'Hack your Amazon Dash button.'\n spec.descr... | ruby | chosen |
[
{
"from": "system",
"value": "Make the localize test independent on the actual YAML dump of the translation.\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\nrequire_relative 'helper'\n\nrequire 'form_input/localize'\n\nclass TestLocalizeForm < FormInput\n\n define_steps(\n one: \"Fir... | ruby | chosen |
[
{
"from": "system",
"value": "Update docker toolbox to 1.8.2b\n\nUpdate dockertoolbox to 1.8.2b\n"
},
{
"from": "human",
"value": "cask :v1_1 => 'dockertoolbox' do\n version '1.8.2a'\n sha256 '05e74dd2c811452f1c25e7264d9a06500bd5af5861cc36a45eb7e36967d1486d'\n\n url \"https://github.com/docke... | ruby | chosen |
[
{
"from": "system",
"value": "Update Google Play Music Manager (1.0.243.1116)\n"
},
{
"from": "human",
"value": "cask 'music-manager' do\n version '1.0.216.5719'\n sha256 '948967d9325bde3e7344504e965dbcd9f94bee01512f4c49ad3e4d9425798f11'\n\n url \"https://dl.google.com/dl/androidjumper/mac/#{... | ruby | chosen |
[
{
"from": "system",
"value": "Move the plugins.json to the home directory\n"
},
{
"from": "human",
"value": "module VagrantPlugins\n module CommandPlugin\n module Command\n class Base < Vagrant.plugin(\"2\", :command)\n # This is a helper for executing an action sequence with the... | ruby | chosen |
[
{
"from": "system",
"value": "Change default version to master\n"
},
{
"from": "human",
"value": "name \"datadog-upgrade-helper\"\ndefault_version \"last-stable\"\n\nenv = {\n \"GOPATH\" => \"#{Omnibus::Config.cache_dir}/src/#{name}\",\n}\n\nif ohai[\"platform\"] == \"windows\"\n gobin = \"C:/... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec tests for attributes/default.rb.\n"
},
{
"from": "gpt",
"value": "require 'minitest/autorun'\nrequire 'chef/node'\nrequire 'chef/platform'\n\ndescribe 'User::Attributes::Default' do\n let(:attr_ns) { 'user' }\n\n before do\n @node = Chef::Node.new\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change ColorKeyword to use source_from_range again\n\nThis was changed in f3a8839, but actually changes the behavior as the\nSass parser can potentially normalize the values here. We want to ensure\nwe are _always_ reading from the original source.\n\nChange-Id: Ibeeb7525ff9430... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task to unpublish email signup pages\n\nThis is because the frontend no longer links to them, and uses the\ngeneric functionality of Email Alert Frontend Instead.\n"
},
{
"from": "gpt",
"value": "desc \"Unpublish all email signup pages\"\ntask unpublish_emai... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec with version location\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/resume_generator/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'resume'\n gem.version = ResumeGenerator::VERSION\n gem.su... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure Vagrant::LXC.source_root is available to all specs\n"
},
{
"from": "human",
"value": "if ENV['COVERAGE']\n require 'simplecov'\n require 'coveralls'\n\n SimpleCov.start { add_filter '/spec/' }\n SimpleCov.merge_timeout 300\nend\n\nrequire 'bundler/setu... | ruby | chosen |
[
{
"from": "system",
"value": "Move rspec-puppet-facts to spec helper\n\nThis change updates the module to use the rspec-puppet-facts as defined\nin the puppet-openstack_spec_helper.\n\nChange-Id: I9c1ce41a719a25654f5e8658b65bf629cdc3fa83\n"
},
{
"from": "human",
"value": "require 'puppetlabs_spe... | ruby | chosen |
[
{
"from": "system",
"value": "Enforce expect syntax with rspec-mocks\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nRSpec.configure do |config|\n config.expect_with :rspec do |c|\n c.syntax = :expect\n end\nend\n\nDir[File.join(File.dirname(__FILE__), 'support', '*')].each do |path|\... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to the new poise-boiler helper stuffs."
},
{
"from": "human",
"value": "#\n# Copyright 2015, Noah Kantrowitz\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may... | ruby | chosen |
[
{
"from": "system",
"value": "[tdd] Configure serverspec for Docker or Vagrant\n"
},
{
"from": "human",
"value": "# TODO switch docker vs vagrant\n\nrequire 'serverspec'\nrequire 'net/ssh'\nrequire 'lib/docker'\n#require 'lib/vagrant'\n\ninclude SpecInfra::Helper::Exec\ninclude SpecInfra::Helper... | ruby | chosen |
[
{
"from": "system",
"value": "Fix loading of spec support files\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "require \"mixlib/shellout\"\n\nrequire \"tmpdir\"\nrequire \"tempfile\"\nrequire \"timeout\"\n\n# Load everything from... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec-puppet-facts (omitted from a previos commit), and set a puppetversion fact from an environment variable\n"
},
{
"from": "human",
"value": "require 'puppetlabs_spec_helper/module_spec_helper'\n"
},
{
"from": "gpt",
"value": "require 'puppetlabs_... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to --- for placeholder because curlies do not parse\n"
},
{
"from": "human",
"value": "require 'vcr'\n\nVCR.configure do |c|\n c.cassette_library_dir = 'spec/fixtures/vcr'\n c.hook_into :webmock\n c.default_cassette_options = { serialize_with: :json, recor... | ruby | chosen |
[
{
"from": "system",
"value": "Return a better message if a required key is missing\n"
},
{
"from": "human",
"value": "module Rusic\n module Uploaders\n class Base\n include CommandLineReporter\n\n attr_accessor :file, :api_key, :theme, :api_host\n\n def initialize(file)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Reset the database connection when explicitly setting a new one\n"
},
{
"from": "human",
"value": "require 'sinatra/base'\nrequire 'active_record'\nrequire 'logger'\n\nmodule Sinatra\n module ActiveRecordHelper\n def database\n settings.database\n end\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add self referential 1:N veritas integration specs"
},
{
"from": "gpt",
"value": "require 'spec_helper_integration'\n\ndescribe 'Relationship - Self referential Many To One' do\n include_context 'Models and Mappers'\n\n before(:all) do\n setup_db\n\n insert_p... | ruby | chosen |
[
{
"from": "human",
"value": "Add a spec that checks the finder schemas are valid\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\nrequire_relative \"../../../app/presenters/finders/finder_content_item_presenter\"\n\nRSpec.describe FinderContentItemPresenter do\n describe \"#to_json\" do\... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec tests for tripleo::certmonger::ca::local class\n\nChange-Id: I81e0850777f1498ba9b7a213ba02819847a40786\n"
},
{
"from": "gpt",
"value": "#\n# Copyright (C) 2017 Red Hat Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\n# no... | ruby | chosen |
[
{
"from": "human",
"value": "Add simple spec for using 'Download stats' modal\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'rails_helper'\n\ndescribe 'course update statistics', type: :feature, js: true do\n let(:course) { create(:course) }\n\n before do\n cours... | ruby | chosen |
[
{
"from": "system",
"value": "Add unit tests for Trigram conditions\n\nThis also includes a major overhaul of this whole spec file, collapsing\nmuch setup into some `let`s and using an OpenStruct for the config\nobject.\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe PgSea... | ruby | chosen |
[
{
"from": "system",
"value": "Use self.table_name= in OldPrefs class, as set_table_name is deprecated\n"
},
{
"from": "human",
"value": "module Spree\n class OldPrefs < ActiveRecord::Base\n set_table_name \"spree_preferences\"\n belongs_to :owner, :polymorphic => true\n attr_accessor ... | ruby | chosen |
[
{
"from": "system",
"value": "Change megration products in table\n"
},
{
"from": "human",
"value": "class AddProducts < ActiveRecord::Migration\n def change\n \tProduct.create :title => 'Hawaiian', :description => 'This is Hawaiian pizza', :price => 350, :size => 30, :is_spicy => false, :is_ve... | ruby | chosen |
[
{
"from": "system",
"value": "Add an update method we can use without a primary key\n"
},
{
"from": "human",
"value": "class PolicyMemberDistance < ActiveRecord::Base\n self.table_name = \"pw_cache_dreamreal_distance\"\n\n belongs_to :policy, foreign_key: :dream_id\n belongs_to :member, forei... | ruby | chosen |
[
{
"from": "system",
"value": "Remove low-value specs from medication model\n\n- we don’t test associations\n- we don’t test polymorphic associations"
},
{
"from": "human",
"value": "require 'rails_helper'\nrequire './spec/support/login_macros'\n\nmodule Renalware\n RSpec.describe Medication, :t... | ruby | chosen |
[
{
"from": "system",
"value": "Add basic tests for gem turnt\n"
},
{
"from": "human",
"value": "require 'helper'\n\nclass TestTurnt < Test::Unit::TestCase\n should \"probably rename this file and start testing for real\" do\n flunk \"hey buddy, you should probably rename this file and start t... | ruby | chosen |
[
{
"from": "system",
"value": "Add a debug print to figure out the working directory of the factor run.\n"
},
{
"from": "human",
"value": "require 'facter'\n\nraw = Facter::Core::Execution.execute('puppet config print')\nconfig = {}\nraw.each_line do |entry|\n entry_array = entry.split(' = ')\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make autoloading work out of app/views/, but with a required prefix of 'views', *without* adding app/views/ to the formal autoload chain.\n\nThis way app/views/user/password.rb can contain Views::User::Password and work great; but it doesn't define User::Password, which is impo... | ruby | chosen |
[
{
"from": "system",
"value": "Use sequence for args, as it will always be an array.\n"
},
{
"from": "human",
"value": "require 'parslet'\nrequire 'gitsh/git_command'\nrequire 'gitsh/internal_command'\nrequire 'gitsh/shell_command'\n\nmodule Gitsh\n class Transformer < Parslet::Transform\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Add link to the material\n"
},
{
"from": "human",
"value": "# Here's some stuff from when we talked about modules:\n# https://vimeo.com/157849877\n"
},
{
"from": "gpt",
"value": "# Here's some stuff from when we talked about modules:\n# https://vimeo.c... | ruby | chosen |
[
{
"from": "system",
"value": "refactor: Replace manual accessor with attr_reader\n"
},
{
"from": "human",
"value": "module Prezzo\n module Calculator\n def initialize(context = {})\n @context = validated!(context)\n end\n\n def calculate\n raise \"Calculate not implemented\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Use of StringIO requires stringio\n"
},
{
"from": "human",
"value": "module Reek\n module CLI\n # CLI silencer\n # @api private\n module Silencer\n module_function\n\n def silently(stderr: nil, stdout: nil)\n old_verbose = $VERBOSE\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for activesupport when using the rake task from another gem\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'easy_app_helper/version'\n\nGem::Specifi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix specs for changed branch checking\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule CodeclimateCi\n describe CompareGpa do\n let(:codeclimate_ci) { CodeclimateCi::CompareGpa.new('repo11', 'token1') }\n\n before do\n allow_any_instanc... | ruby | chosen |
[
{
"from": "system",
"value": "Add a little test for the helper\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe ApplicationHelper do\n\n describe '.up_downify' do\n\n it 'adds a down arrow icon for negative starts' do\n expect(helper.up_downify('+10%')).to include('... | ruby | chosen |
[
{
"from": "system",
"value": "Set expected feature count in one place instead of 3\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe MiqProductFeature do\n context \".seed\" do\n it \"empty table\" do\n MiqRegion.seed\n MiqProductFeature.seed\n MiqProductF... | ruby | chosen |
[
{
"from": "human",
"value": "Add view spec for html validations on deed form\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe 'deeds/_form' do\n before(:each) { render 'deeds/form', deed: Deed.new }\n\n it { should validate_field '#deed_trash_bags', min: 0, step: 1 }\n... | ruby | chosen |
[
{
"from": "system",
"value": "[Bugfix] Add bindir and optimize files in spec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'fabricio/version'\n\nGem::Specification.new do |spec|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change Transactions Explorer journey to GOV.UK\n"
},
{
"from": "human",
"value": "class TransactionsExplorerJourney < BaseJourney\n\n def run()\n @browser.goto 'gov.uk/performance'\n sleep 5\n\n moveToEl(@browser.link(:text => 'Transactions Explorer'), { :... | ruby | chosen |
[
{
"from": "system",
"value": "Increase Aruba timeout to 5 minutes\n"
},
{
"from": "human",
"value": "require 'aruba/cucumber'\n\nroot = Pathname.new(__FILE__).parent.parent.parent\n\nENV['PATH'] = \"#{root}/features/support/bin#{File::PATH_SEPARATOR}#{ENV['PATH']}\"\n\nBefore do\n @aruba_timeou... | ruby | chosen |
[
{
"from": "system",
"value": "Allow webkit requests to URLs for unknown hosts\n"
},
{
"from": "human",
"value": "require 'cucumber/rails'\nrequire 'factory_girl'\nrequire 'email_spec'\nrequire 'email_spec/cucumber'\n\nActionController::Base.allow_rescue = false\n\nbegin\n DatabaseCleaner.strate... | ruby | chosen |
[
{
"from": "system",
"value": "Add gem description, summary and homepage\n"
},
{
"from": "human",
"value": "# coding: utf-8\nrequire File.expand_path('../lib/portkey_parallax_header/version', __FILE__)\n\nGem::Specification.new do |spec|\n spec.name = \"portkey_parallax_header\"\n spec... | ruby | chosen |
[
{
"from": "system",
"value": "Add proper license information into the gemspec file for rubygems.org to parse correctly.\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"rails_exception_handler_admin/version\"\n\n# Desc... | ruby | chosen |
[
{
"from": "system",
"value": "Set much smaller timeout and number of tries on wget\n"
},
{
"from": "human",
"value": "class UrlCache < ActiveRecord::Base\n validates_presence_of :url, :fetched_at\n \n validates_uniqueness_of :url\n \n after_destroy :remove_cache_file\n \n class << self\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add previews for all customized Devise emails\n"
},
{
"from": "human",
"value": "class DeviseMailerPreview < ActionMailer::Preview\n def confirmation_instructions_for_signup\n user = User.new(name: 'Jane Doe', email: 'signup@example.com')\n DeviseMailer.confi... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as a development dependency.\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/gem_publisher/version', __FILE__)\n\ngemspec = Gem::Specification.new do |s|\n s.name = 'gem_publisher'\n s.version = GemPublisher::VER... | ruby | chosen |
[
{
"from": "system",
"value": "Make clearing follow the object:action naming of the rest of the tasks\n\ngit-svn-id: afc9fed30c1a09d8801d1e4fbe6e01c29c67d11f@3699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de\n"
},
{
"from": "human",
"value": "namespace :tmp do\n desc \"Clear session, cache, and socket f... | ruby | chosen |
[
{
"from": "system",
"value": "Include vendor directory in Gem\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\nrequire \"raptor_editor_rails/version\"\n\nGem::Specification.new do |s|\n s.name = \"raptor-editor-rails\"\n s.version = RaptorEditorRa... | ruby | chosen |
[
{
"from": "system",
"value": "Fix number of arguments for build\n"
},
{
"from": "human",
"value": "module Baustelle\n module Commands\n module ValidateConfig\n extend self\n\n def call(specification_file, region)\n config = Baustelle::Config.read(specification_file)\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add a new formulae: Binutils 2.24 for ARM-EABI"
},
{
"from": "gpt",
"value": "require 'formula'\n\nclass ArmEabiBinutils224 <Formula\n url 'http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.bz2'\n homepage 'http://www.gnu.org/software/binutils/'\n sha1 '7ac75404dd... | ruby | chosen |
[
{
"from": "system",
"value": "Set up the git-ssh command for gitdeploykey strategy.\n\nAn unpleasant hack right now, to try out whether this kind of deploy\nworks at all.\n"
},
{
"from": "human",
"value": "module DPL\n class Provider\n module Heroku\n class GitDeployKey < Git\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Implement a class method delete_dictionary\n"
},
{
"from": "human",
"value": "require 'yajl'\nrequire_relative 'two_word_dictionary'\n\nclass PersistentDictionary < TwoWordDictionary\n def initialize(dictionary)\n @dictionarylocation = dictionary\n self.open_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix task to work with old rails (2.x) and new rubies"
},
{
"from": "human",
"value": "Capistrano::Configuration.instance(:must_exist).load do\n _cset :sass_roles, [:app]\n\n #this is pre-asset pipeline days - left in for backwards compatibility\n namespace :sass ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Bug with the Server\n"
},
{
"from": "human",
"value": "get '/users/:id' do\n if @user.access == 'student'\n erb :'/users/student_index'\n elsif @user.access == 'coach'\n erb :'/users/coach_index'\n elsif @user.access == 'admin'\n @users = Users.all\n... | ruby | chosen |
[
{
"from": "system",
"value": "Change assign tags to find different tag\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe TagsController do\n before(:each) do\n @tag = create(:tag)\n @tag.questions << create(:question)\n end\n\n describe \"#index\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "test: BUMP node spec to `v9`\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe command('hash kubectl') do\n its(:exit_status) { should eq 0 }\nend\n\ndescribe command('node --version') do\n its(:exit_status) { should eq 0 }\n its(:stdout)... | ruby | chosen |
[
{
"from": "system",
"value": "Add parser for 1.0 Gemfile.lock.\n"
},
{
"from": "human",
"value": "module SevenScaleDeploy\n module BundlerSupport\n def bundler_dependencies(options = {})\n root = options.delete(:root)\n \n # Create something to communicate over\n r, w = I... | ruby | chosen |
[
{
"from": "system",
"value": "Change spec titles for cookbooks directory.\n\nThis makes the title the same as the expectations.\n"
},
{
"from": "human",
"value": "require 'spec_feature_helper'\n\ndescribe 'cookbook directory' do\n before do\n create_list(:cookbook, 5)\n\n visit '/'\n\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add index to users root_account_ids\n\nNeeded for communication_channels backfill (it depends on users being\nbackfilled to needs the index to efficiently check).\n\nrefs INTEROP-6038\nflag=none\n\nTest plan:\n- run migration up, check index exists on table\n- run migration down... | ruby | chosen |
[
{
"from": "system",
"value": "Use render `plain` instead of `text`\n\nIn newer Rails versions, text is no longer a valid option and we should\nuse `render plain` instead. This has existed since Rails 4.1, so it\nshould be compatible with Rails versions we expect users to be on with\nSolidus.\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Revert unwanted change on counter\n"
},
{
"from": "human",
"value": "require 'support/counter_support'\n\nmodule Counters\n class CountVisits < ActiveRecord::Base\n def self.fetch_and_format\n first.count\n end\n end\n\n class CountVisitsByState < Acti... | ruby | chosen |
[
{
"from": "system",
"value": "Change reference to renamed service class\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe SyncSalesAccountWorker do\n let(:subject) { described_class.new }\n\n describe '#perform' do\n let(:syncer) { double(:syncer, sync: true) }\n\n be... | ruby | chosen |
[
{
"from": "system",
"value": "Add a minor optimization, don't bother bootstrapping Puppet if it's already in our PATH\n"
},
{
"from": "human",
"value": "require 'blimpy/livery/base'\nrequire 'blimpy/livery/cwd'\n\nmodule Blimpy\n module Livery\n class Puppet < CWD\n attr_accessor :modul... | ruby | chosen |
[
{
"from": "system",
"value": "Update Lo-Dash documentation to 2.3.0\n"
},
{
"from": "human",
"value": "module Docs\n class Lodash < UrlScraper\n self.name = 'Lo-Dash'\n self.slug = 'lodash'\n self.type = 'lodash'\n self.version = '2.2.1'\n self.base_url = 'http://lodash.com/docs'... | ruby | chosen |
[
{
"from": "system",
"value": "Update translate method to return just the translated string\n"
},
{
"from": "human",
"value": "require \"ehrmagerd/version\"\nrequire \"unirest\"\nrequire \"pry\"\n\nmodule Ehrmagerd\n class Translator\n def self.translate(string)\n response = Unirest::pos... | ruby | chosen |
[
{
"from": "system",
"value": "Remove moped dependency as Mongoid should fetch it\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nlib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\n\nrequire \"kiqstand/version\"\n\nGem::Specification.new do |s|\n s.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Change ObjectID to ObjectId\"\n\nThis reverts commit efcc112397a8080fbfabd15dab30036bbb6c7140.\n"
},
{
"from": "human",
"value": "class String\n def to_id\n BSON::ObjectId self\n end\nend\nclass BSON::ObjectId\n def to_id\n self\n end\nend\n"
},... | ruby | chosen |
[
{
"from": "system",
"value": "Update Goby version to 0.2.0\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nGem::Specification.new do |spec|\n spec.name = \"goby\"\n spec.version ... | ruby | chosen |
[
{
"from": "human",
"value": "Add request spec for RequestedItems endpoints\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe \"RequestedItems\", type: :request do\n let(:headers) {\n { \"ACCEPT\" => \"application/json\" }\n }\n\n context \"Creating a RequestedItem\"... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor to have separate Signature class\n"
},
{
"from": "human",
"value": "require 'rack/github_webhooks/version'\nrequire 'openssl'\nrequire 'json'\n\nmodule Rack\n class GithubWebhooks\n HMAC_DIGEST = OpenSSL::Digest.new('sha1')\n\n attr_reader :app\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make the location attribute of Ast::Comment public.\n"
},
{
"from": "human",
"value": "require 'cucumber/core/ast/location'\n\nmodule Cucumber\n module Core\n module Ast\n class Comment\n include HasLocation\n\n attr_reader :location, :value\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix submit row text being slightly too far left.\n"
},
{
"from": "human",
"value": "motion_require 'base'\n\nmodule Formotion\n module RowType\n class ButtonRow < Base\n def button?\n true\n end\n\n # Does a clever little trick to override ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Rails 5 / Rack deprecation warning\n\nRails 5 / Rack 2 issues a deprecation warning when attempting to modify\nthe middleware stack with a string-enclosed middleware constant.\n"
},
{
"from": "human",
"value": "module UTF8Cleaner\n class Railtie < Rails::Rai... | ruby | chosen |
[
{
"from": "system",
"value": "Make pry available in tests\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nrequire \"minitest/autorun\"\nrequire \"minitest/pride\"\nrequire \"mocha\"\n\n$LOAD_PATH.unshift(File.dirname(__FILE__))\n$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), \"..\", ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.