conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "[Utils] Allow passing an array to command\n"
},
{
"from": "human",
"value": "# allow logging of terminal commands\n\ndef command(command_to_run)\n puts \" \" + command_to_run.yellow if $verbose\n success = system command_to_run\n\n # appledoc always fails for me ... | ruby | chosen |
[
{
"from": "system",
"value": "Update WhatPulse from 2.4 to 2.4.1\n"
},
{
"from": "human",
"value": "class Whatpulse < Cask\n version '2.4'\n sha256 'baa7f17829cf70241845642891bceb4c4e4f276152a90e804eb271bdf1ffdbe8'\n\n url \"http://amcdn.whatpulse.org/files/whatpulse-mac-#{version}.dmg\"\n h... | ruby | chosen |
[
{
"from": "human",
"value": "Add matcher to match elements by ids\n\nInitially added in gitlab-org/gitlab-ee!4864 and\ngitlab-org/gitlab-ee!4689.\n"
},
{
"from": "gpt",
"value": "RSpec::Matchers.define :match_ids do |*expected|\n match do |actual|\n actual_ids = map_ids(actual)\n expected... | ruby | chosen |
[
{
"from": "system",
"value": "Add a doc comment to ReactionEvent\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'discordrb/events/generic'\nrequire 'discordrb/data'\n\nmodule Discordrb::Events\n class ReactionEvent\n end\nend\n"
},
{
"from": "gpt",
"val... | ruby | chosen |
[
{
"from": "system",
"value": "Make selectable themes a feature to keep API intact\n"
},
{
"from": "human",
"value": "Pageflow.configure do |config|\n config.features.register('auto_change_page')\n config.features.register('delayed_text_fade_in')\n config.features.register('highdef_video_encod... | ruby | chosen |
[
{
"from": "system",
"value": "Update sugarable spec to check ancestors instead\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule Omnibus\n describe Software do\n it 'is a sugarable' do\n expect(subject).to be_a(Sugarable)\n end\n end\n\n describe Project do\n it... | ruby | chosen |
[
{
"from": "system",
"value": "Move execution of system_info to cookbooks\n\nNote that cookbooks SHA still needs to be determined somehow\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: system_info\n# Recipe:: default\n#\n# Copyright 2014, Travis CI GmbH\n#\n# MIT License\n#\n\ngit '/usr/... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Api::ThemeAssetReader to handle protocol-relative urls.\n"
},
{
"from": "human",
"value": "module Locomotive\n module Mounter\n module Reader\n module Api\n\n class ThemeAssetsReader < Base\n\n def initialize(runner)\n super\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add a \"silence\" behavior to completely turn off deprecation warnings.\n"
},
{
"from": "human",
"value": "require \"active_support/notifications\"\n\nmodule ActiveSupport\n module Deprecation\n class << self\n # Whether to print a backtrace along with the ... | ruby | chosen |
[
{
"from": "system",
"value": "Use const_missing for Null pattern as well\n"
},
{
"from": "human",
"value": "module Spruz\n # Implementation of the null object pattern in Ruby.\n module Null\n def method_missing(*)\n self\n end\n\n def to_s\n ''\n end\n\n def inspect\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix BrachFormatter for removed users\n"
},
{
"from": "human",
"value": "module Gitlab\n module GithubImport\n class BranchFormatter < BaseFormatter\n delegate :repo, :sha, :ref, to: :raw_data\n\n def exists?\n branch_exists? && commit_exists?\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make DJ logs visible when running in foreground\n\nI'm running `bundle exec foreman start` to fire off both worker and web processes. I see the web logs, but I don't see the worker logs. This change combines the logs into one place which jives nicely with 12-factor platforms."
... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify TaggedLogging symbol shortcuts (thanks Jose!)\n"
},
{
"from": "human",
"value": "module Rails\n module Rack\n # Enables easy tagging of any logging activity that occurs within the Rails request cycle. The tags are configured via the\n # config.log_ta... | ruby | chosen |
[
{
"from": "human",
"value": "Add missing initializer for FastGettext\n"
},
{
"from": "gpt",
"value": "FastGettext.add_text_domain 'gitlab', path: 'locale', type: :po\nFastGettext.default_available_locales = ['en', 'es','de']\nFastGettext.default_text_domain = 'gitlab'\n"
}
] | ruby | chosen |
[
{
"from": "human",
"value": "Add a monkey patch to squelch warnings from whitequark/parser\n"
},
{
"from": "gpt",
"value": "# frozen_literal_string: true\n\n# This works around unnecessary static-analysis warnings that will be\n# fixed via https://github.com/whitequark/parser/pull/528.\nmodule P... | ruby | chosen |
[
{
"from": "system",
"value": "Copy tweak to fix placeholder\n"
},
{
"from": "human",
"value": "module SchemesHelper\n def had_direct_interactions_label\n if businesses_audience?\n \"Have you engaged with schools before?\"\n else\n \"Have you engaged with businesses before?\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use proper template location for admin error_404.\n"
},
{
"from": "human",
"value": "module Refinery\n module Pages\n module Admin\n module InstanceMethods\n\n def error_404(exception=nil)\n if (@page = ::Refinery::Page.where(:menu_match => ... | ruby | chosen |
[
{
"from": "system",
"value": "[QA] Fix wrong spec files path in QA::Scenario::Test::Instance\n\nSigned-off-by: Rémy Coutable <4ea0184b9df19e0786dd00b28e6daa4d26baeb3e@rymai.me>\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule QA\n module Scenario\n module Test\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for protected attributes in Topic model (locked & pinned)\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Forem::Topic do\n before(:each) do\n Forem::Topic.any_instance.stub(:set_first_post_user).and_return(true)\n @attr = {\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add new lines to dasher controller"
},
{
"from": "human",
"value": "class Admin::DasherController < ApplicationController\n\tskip_before_action :verify_authenticity_token\n\n\tbefore_action :check_api_key\n\n\tdef new_pull_request\n\t\tuser = User.find_by_nickname(p... | ruby | chosen |
[
{
"from": "system",
"value": "Add default widgets for users when migrating\n"
},
{
"from": "human",
"value": "class CreateWidgets < ActiveRecord::Migration\n def self.up\n create_table :widgets do |t|\n t.integer :company_id\n t.integer :user_id\n t.string :name\n t.i... | ruby | chosen |
[
{
"from": "system",
"value": "Remove obsolete reader from AC::MethodNotAllowed exception class\n"
},
{
"from": "human",
"value": "module ActionController\n class ActionControllerError < StandardError #:nodoc:\n end\n\n class RenderError < ActionControllerError #:nodoc:\n end\n\n class Routi... | ruby | chosen |
[
{
"from": "system",
"value": "Update the socket attribute to the correct location\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: fail2ban\n# Attributes:: default\n#\n# Copyright 2010, Opscode, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not us... | ruby | chosen |
[
{
"from": "system",
"value": "Make richtext feature test failsafe\n"
},
{
"from": "human",
"value": "require 'rails_helper'\nfeature \"Richtext editing\", js: true do\n background do\n auth_as_user\n end\n\n scenario \"Image toolbar available when controller support attachments\" do\n v... | ruby | chosen |
[
{
"from": "system",
"value": "Test setting invalid trail store\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass TrailTest < ActiveSupport::TestCase\n setup do\n Gretel.reset!\n end\n\n test \"defaults\" do\n assert_equal :trail, Gretel::Trail.trail_param\n end\nend"
... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Made DRb spec depend partially on PID so multiple runs don't clash.\"\n\nThe spec is designed for sane behavior, if Rubinius or the\nimplementation of DRb is causing problems then they should be\nfixed, not the spec in this case. Fixing the spec will only\nhide the bu... | ruby | chosen |
[
{
"from": "system",
"value": "Use binary for homebrew recipe\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Gh < Formula\n VERSION = '0.7.0'\n\n homepage 'https://github.com/jingweno/gh'\n url \"https://github.com/jingweno/gh/archive/#{VERSION}.tar.gz\"\n sha1 '1e4ca70ebf018ae... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Kensington Trackball Works to v1.2.0\n"
},
{
"from": "human",
"value": "cask :v1 => 'kensington-trackball-works' do\n version '1.1.2'\n sha256 '02e3fed2fe01c234206d3fcf2c85f71f10aa2a3bc3d3dd6f4694ac41b725e3df'\n\n # windows.net is the official download ho... | ruby | chosen |
[
{
"from": "system",
"value": "Use the correct jaxb names in propOrder declaration\n"
},
{
"from": "human",
"value": "module Domgen\n module JAXB\n module Helper\n def namespace_annotation_parameter(element)\n return '' unless element.namespace\n \", namespace=\\\"#{element... | ruby | chosen |
[
{
"from": "system",
"value": "Update HandbrakeCLI Nightly to v6695svn\n\nHandBrakeCLI Nightly v6695svn built 2015-01-09.\n"
},
{
"from": "human",
"value": "cask :v1 => 'handbrakecli-nightly' do\n version '6685svn'\n sha256 'c3d0633c3f486c14880532561e3e9d59c9d213445cafec7c68077110608004d5'\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in test name\n"
},
{
"from": "human",
"value": "require_relative '../acceptance_helper'\n\nclass TeamAcceptanceTest < AcceptanceTestCase\n def test_joining_a_teamd\n creating_user = create_user(username: 'creating_user')\n joining_user = create_user(... | ruby | chosen |
[
{
"from": "system",
"value": "Fix download protocol in OmniFocus.app Cask\n\nChanged https to http because the former has stopped working\n"
},
{
"from": "human",
"value": "class Omnifocus < Cask\n version 'latest'\n sha256 :no_check\n\n url 'https://www.omnigroup.com/download/latest/omnifocu... | ruby | chosen |
[
{
"from": "system",
"value": "Update spec for /chat redirect URL change\n\n/chat now goes to the #chef on freenode logs instead of botbot.me's dashboard. This changes the spec to reflect that."
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe IrcLogsController do\n describe 'GE... | ruby | chosen |
[
{
"from": "system",
"value": "Make index of data migrations table match that of schema migrations.\n"
},
{
"from": "human",
"value": "class CreateDataMigrations < ActiveRecord::Migration\n def self.up\n create_table :data_migrations do |t|\n t.string :version\n end\n\n add_index :... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary version specification on Rake dependency"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'htty/version'\n\nGem::Specification.new do |s|\n s.name = 'htty'\n s.version =... | ruby | chosen |
[
{
"from": "system",
"value": "Make UserComments a Comment in structured data\n"
},
{
"from": "human",
"value": "module SchemaOrgHelper\n\n def meta_person_schema_url\n 'http://schema.org/Person'\n end\n \n def meta_address_schema_url\n 'http://schema.org/Address'\n end\n\n def meta_a... | ruby | chosen |
[
{
"from": "system",
"value": "Add shim to make TweetStream::Hash compatible with Ruby < 1.9\n"
},
{
"from": "human",
"value": "class TweetStream::Hash < ::Hash #:nodoc: all\n def initialize(other_hash = {})\n other_hash.keys.each do |key|\n value = other_hash[key]\n value = TweetSt... | ruby | chosen |
[
{
"from": "system",
"value": "Fix require order for coverage\n\nSeveral files were not covered because they were included before\nSimpleCov was started due to `autorun`\n"
},
{
"from": "human",
"value": "require \"minitest/autorun\"\nrequire \"minitest/spec\"\nrequire \"minitest/stub_const\"\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use a specific version of Fantastical\n"
},
{
"from": "human",
"value": "class Fantastical < Cask\n url 'http://flexibits.com/fantastical/download'\n homepage 'http://flexibits.com/fantastical'\n version 'latest'\n no_checksum\nend\n"
},
{
"from": "gpt",... | ruby | chosen |
[
{
"from": "system",
"value": "Add older versions of Omnigraffle for older OSX\n"
},
{
"from": "human",
"value": "cask :v1 => 'omnigraffle' do\n version :latest\n sha256 :no_check\n\n url 'https://www.omnigroup.com/download/latest/omnigraffle'\n homepage 'http://www.omnigroup.com/products/omn... | ruby | chosen |
[
{
"from": "system",
"value": "Update 1Password 4.1.1 -> 4.1.3"
},
{
"from": "human",
"value": "class Onepassword < Cask\n url 'http://i.agilebits.com/dist/1P/mac4/1Password-4.1.1.zip'\n homepage 'https://agilebits.com/onepassword'\n version '4.1.1'\n sha1 'bf475de1a4c3d70a292e44cb6fb2896ea74... | ruby | chosen |
[
{
"from": "system",
"value": ":anchor: Add an accessor for the URL\n"
},
{
"from": "human",
"value": "module Discordrb::Webhooks\n # An embed is a multipart-style attachment to a webhook message that can have a variety of different purposes and\n # appearances.\n class Embed\n def initiali... | ruby | chosen |
[
{
"from": "system",
"value": "Add real tests for the parameter validation middleware\n"
},
{
"from": "human",
"value": "require_relative \"test_helper\"\n\nApp = Rack::Builder.new {\n use Rack::Committee::ParamValidation, schema: File.read(\"./test/schema.json\")\n run lambda { |_|\n [200, ... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up some of the SSH key tests\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../../base\", __FILE__)\n\ndescribe Vagrant::SSH do\n context \"check_key_permissions\" do\n let(:key_path) { File.expand_path(\"../id_rsa\", __FILE__) }\n let(:s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the spacing for the command to be rendered correctly\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: threatstack\n# Recipe:: repo\n#\n# Copyright 2014-2015, Threat Stack\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may n... | ruby | chosen |
[
{
"from": "system",
"value": "Handle orphans when removing soft deleted groups\n\nThere may be more tables but these were the tables that were problematic\nfor GitLab.com due to foreign key constraints (without cascading\ndeletes).\n"
},
{
"from": "human",
"value": "# See http://doc.gitlab.com/c... | ruby | chosen |
[
{
"from": "system",
"value": "Make dummy controller work without deprecation warnings\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\nmodule Refinery\n module Admin\n class DummyController < Refinery::AdminController\n def index\n render :nothing => true\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove :app designation from GitX-L link"
},
{
"from": "human",
"value": "class GitxL < Cask\n url 'https://github.com/downloads/laullon/gitx/GitX-L_v0.8.4.zip'\n homepage 'http://gitx.laullon.com/'\n version '0.8.4'\n sha1 '86517311dcdc7348e308b542e3d5aad1a304f... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Slack Beta to 1.00 (2352)\n"
},
{
"from": "human",
"value": "class SlackBeta < Cask\n version '0.69 (2350)'\n sha256 '7a6be7418e27970b38f20c8e2516386e346e7b731ee814d15f5a40794b440cdd'\n\n url 'https://rink.hockeyapp.net/api/2/apps/06bd6493684f65a3b8f47aca... | ruby | chosen |
[
{
"from": "human",
"value": "Add Fog Burner.app version 1.0\n\nFog Burner is a simple status bar application for Mac OS X (10.9+) that prevents your Mac from going to sleep or dimming its screen.\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'fog-burner' do\n version :latest\n sha256 :no_check\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the type field from the location JSON builder.\n"
},
{
"from": "human",
"value": "# ONLY argument will return an array of the values of a single field across all records\n# eg, locations.json?only=name will yield, eg, [\"Name1\", \"Name2\", ...]\nif params[:o... | ruby | chosen |
[
{
"from": "human",
"value": "Add CapybaraExt file for promo\n"
},
{
"from": "gpt",
"value": "module CapybaraExt\n def page!\n save_and_open_page\n end\n\n def click_icon(type)\n find(\".icon-#{type}\").click\n end\n\n def within_row(num, &block)\n within(\"table.index tbody tr:nth-... | ruby | chosen |
[
{
"from": "system",
"value": "Implement @KL-7's suggestion to cut down a few lines.\n\nhttps://github.com/twitter/twitter-cldr-rb/pull/11#commitcomment-1186254\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n\nmodule TwitterCldr\n module Shared\n class UnicodeData\n @@blocks = Twi... | ruby | chosen |
[
{
"from": "system",
"value": "Add message about NPM API key change\n"
},
{
"from": "human",
"value": "module DPL\n class Provider\n class NPM < Provider\n NPMRC_FILE = '~/.npmrc'\n\n def needs_key?\n false\n end\n\n def check_app\n end\n\n def setup_auth\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix library load gem issue\n"
},
{
"from": "human",
"value": "require 'open-uri'\nrequire 'open_uri_redirections'\nrequire 'openssl'\nrequire 'digest'\n\nmodule JavaSE\n class <<self\n def download(url, file, limit = 5)\n raise ArgumentError, 'too many down... | ruby | chosen |
[
{
"from": "system",
"value": "Add a test for checking validates :key does not override by concern\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Ci::Variable, models: true do\n subject { build(:ci_variable) }\n\n it { is_expected.to be_kind_of(HasVariable) }\n it { is_ex... | ruby | chosen |
[
{
"from": "system",
"value": "Improve fast specs helper to autoload the library\n"
},
{
"from": "human",
"value": "require 'bundler/setup'\n\nENV['GITLAB_ENV'] = 'test'\nENV['IN_MEMORY_APPLICATION_SETTINGS'] = 'true'\n\nunless Object.respond_to?(:require_dependency)\n class Object\n alias_me... | ruby | chosen |
[
{
"from": "system",
"value": "Write some more specs of the future Code method\n"
},
{
"from": "human",
"value": "require 'discordrb'\n\ndescribe Discordrb::Errors do\n describe 'the Code method' do\n it 'should create a class without errors' do\n Discordrb::Errors.Code(10_000)\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Make specs pass on Ruby 1.9.\n"
},
{
"from": "human",
"value": "$TESTING=true\n\n$:.push File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))\n\nrequire 'thor'\nrequire 'stringio'\nrequire 'rubygems'\nrequire 'rr'\nrequire 'diff/lcs' # You need diff/lcs ... | ruby | chosen |
[
{
"from": "system",
"value": "Clear cached resource cache at start and end of testing"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'bundler/setup'\n\nrequire 'active_resource'\nrequire 'active_support'\n\n$:.unshift(File.dirname(__FILE__) + '/../lib')\nrequire 'cached_resource'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Change gemspec to avoid subshells and remove unneeded files\n\nMore informations at\nhttp://tenderlovemaking.com/2011/12/05/profiling-rails-startup-with-dtrace/\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE... | ruby | chosen |
[
{
"from": "system",
"value": "Set default order to :random\n"
},
{
"from": "human",
"value": "def add_to_load_path(path, prepend=false)\n path = File.expand_path(\"../../#{path}/lib\", __FILE__)\n if prepend\n $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)\n else\n $LOAD_PATH... | ruby | chosen |
[
{
"from": "system",
"value": "Fix merge request migration for postgres\n"
},
{
"from": "human",
"value": "class ConvertClosedToStateInMergeRequest < ActiveRecord::Migration\n def up\n MergeRequest.transaction do\n MergeRequest.where(\"closed = 1 AND merged = 1\").update_all(\"state = 'm... | ruby | chosen |
[
{
"from": "system",
"value": "Allow the fixture transaction to be joined to avoid savepoint use\n"
},
{
"from": "human",
"value": "if defined?(ActiveRecord::Base)\n Before do\n $__cucumber_global_use_txn = !!Cucumber::Rails::World.use_transactional_fixtures if $__cucumber_global_use_txn.nil?... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for product_price in products_helper\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\n\nmodule Spree\n describe ProductsHelper do\n include ProductsHelper\n include BaseHelper\n context \"#product_price\" do\n let(:product) { Factory... | ruby | chosen |
[
{
"from": "system",
"value": "Rename \"not\" to \"not!\" to avoid conflicts with the ruby keyword\n"
},
{
"from": "human",
"value": "require 'discordrb/events/utility'\n\ndef not(object)\n Negated.new(object)\nend\n\nmodule Discordrb::Events\n class Negated\n attr_reader :object\n def in... | ruby | chosen |
[
{
"from": "system",
"value": "Migrate the test database as recommended by the check_migration! error message\n"
},
{
"from": "human",
"value": "generate('rspec:install')\ngenerate('controller wombats index') # plural\ngenerate('controller welcome index') # singular\ngenerate('integration_test wi... | ruby | chosen |
[
{
"from": "system",
"value": "Bump version to 0.6.0 in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Quick\"\n s.version = \"0.5.0\"\n s.summary = \"The Swift (and Objective-C) testing framework.\"\n\n s.description = <<-DESC\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add How to stop Puma on Heroku using plugins to the example directory\n"
},
{
"from": "gpt",
"value": "require 'puma/plugin'\nrequire 'redis'\n\n# How to stop Puma on Heroku\n# - You can't use normal methods because the dyno is not accessible\n# - There's no file sys... | ruby | chosen |
[
{
"from": "human",
"value": "Add pending spec for automapping\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\ndescribe \"Automapping relations\" do\n let(:expected_relation) do\n mapper = ROM::Mapper.build { map :id, :name }\n relation = env.schema[:users]\n\n ROM::Relation... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for named parameter methods in add_element\n\nclose #6\n"
},
{
"from": "human",
"value": "module ProMotion\n module ViewHelper\n def set_attributes(element, args = {})\n args.each do |k, v|\n if v.is_a? Hash\n v.each do |k2, v2|\... | ruby | chosen |
[
{
"from": "system",
"value": "Update dependency to rails 3.2.11\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"data_migrate/version\"\n\nGem::Specification.new do |s|\n s.name = \"data_migrate\"\n s.version = D... | ruby | chosen |
[
{
"from": "system",
"value": "Fix specs and use anonymous controller.\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\nclass DummyController < ::ApplicationController\n include ::Refinery::ApplicationController\nend\n\ndescribe \"Refinery::ApplicationController\" do\n describe Dum... | ruby | chosen |
[
{
"from": "system",
"value": "Fix another typo in SHA attribute spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe ShaAttribute do\n let(:model) { Class.new { include ShaAttribute } }\n\n before do\n columns = [\n double(:column, name: 'name', type: :text),\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change Google Chrome Canary homepage to HTTPS"
},
{
"from": "human",
"value": "class GoogleChromeCanary < Cask\n url 'https://storage.googleapis.com/chrome-canary/GoogleChromeCanary.dmg'\n homepage 'http://www.google.com/chrome/browser/canary.html'\n version 'lat... | ruby | chosen |
[
{
"from": "system",
"value": "Update React Native documentation (0.21)\n"
},
{
"from": "human",
"value": "module Docs\n class ReactNative < React\n self.name = 'React Native'\n self.slug = 'react_native'\n self.type = 'react'\n self.release = '0.20'\n self.base_url = 'https://fac... | ruby | chosen |
[
{
"from": "system",
"value": "Disable timeouts in foreign keys for stages migration\n"
},
{
"from": "human",
"value": "class CreateForeignKeysForPipelineStages < ActiveRecord::Migration\n include Gitlab::Database::MigrationHelpers\n\n DOWNTIME = false\n\n disable_ddl_transaction!\n\n def up\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix version number in X-Lite.app Cask\n"
},
{
"from": "human",
"value": "cask :v1 => 'x-lite' do\n version 'X-Lite_4.8.4_76590'\n sha256 'a9ee144dd33616404a0ce1499c9e9004b70689fef285568c94f99767db87196e'\n\n # amazonaws.com is the official download host per the v... | ruby | chosen |
[
{
"from": "system",
"value": "Optimize SQL query that removes duplicated stages\n"
},
{
"from": "human",
"value": "class RemoveRedundantPipelineStages < ActiveRecord::Migration\n include Gitlab::Database::MigrationHelpers\n\n DOWNTIME = false\n\n def up\n redundant_stages_ids = <<~SQL\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update OpenEmu Experimental to version 1.0.3\n"
},
{
"from": "human",
"value": "class OpenemuExperimental < Cask\n url 'https://github.com/OpenEmu/OpenEmu/releases/download/v1.0.2/OpenEmu_1.0.2-experimental.zip'\n homepage 'http://openemu.org/'\n version '1.0.2'\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix blroken spec for colors\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../../spec_helper'\nrequire 'cucumber/formatters/ansicolor'\n\nmodule Cucumber\n module Formatters\n describe ANSIColor do\n include ANSIColor\n \n b... | ruby | chosen |
[
{
"from": "system",
"value": "Fix pipeline job worker specs\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe BuildFinishedWorker do\n describe '#perform' do\n context 'when build exists' do\n let(:build) { create(:ci_build) }\n\n it 'calculates coverage and call... | ruby | chosen |
[
{
"from": "system",
"value": "Rework tests for mysql_password to extend coverage.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env rspec\nrequire 'spec_helper'\n\ndescribe 'the mysql_password function' do\n before :all do\n Puppet::Parser::Functions.autoloader.loadall\n end\n\n before :ea... | ruby | chosen |
[
{
"from": "human",
"value": "Move IntelliJ Ultimate 12 to caskroom\n"
},
{
"from": "gpt",
"value": "class IntellijIdeaUltimate12 < Cask\n url 'http://download.jetbrains.com/idea/ideaIU-12.1.6.dmg'\n homepage 'https://www.jetbrains.com/idea/index.html'\n version '12.1.6'\n sha1 '4d0cb823bf0ff... | ruby | chosen |
[
{
"from": "system",
"value": "Use real integer object in Virtus::Coercion::Integer.to_integer spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Virtus::Coercion::Integer, '.to_integer' do\n subject { described_class.to_integer(value) }\n\n let(:value) { mock('value') }\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove UTF-8 characters from gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: UTF-8\n\nGem::Specification.new do |s|\n s.name = \"ruby-puppetdb\"\n s.version = %x{git describe --tags}.split('-')[0..1].join('.')\n s.platform = Gem::Platform... | ruby | chosen |
[
{
"from": "system",
"value": "Allow true as a valid value for app.assets.image_optim\n"
},
{
"from": "human",
"value": "require 'image_optim'\n\nclass ImageOptim\n class Railtie < Rails::Railtie\n initializer 'image_optim.initializer' do |app|\n if app.config.assets.compress && app.conf... | ruby | chosen |
[
{
"from": "human",
"value": "Make a mock for Discordrb::API to allow setting arbitrary request parameters and responses\n"
},
{
"from": "gpt",
"value": "# Mock for Discordrb::API that allows setting arbitrary results and checking previous requests\nrequire 'json'\n\nmodule APIMock\n refine Disc... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ordering issue so that ENV vars are set before being used in lib/kobol/app.rb\n"
},
{
"from": "human",
"value": "APP_ROOT = File.dirname(__FILE__)\nrequire './lib/kobol'\n\nrequire 'dotenv'\nDotenv.load\n\nrun Kobol::App\n"
},
{
"from": "gpt",
"value... | ruby | chosen |
[
{
"from": "system",
"value": "Update Vagrant Manager to v1.5.5\n\n from version 1.5.2"
},
{
"from": "human",
"value": "class VagrantManager < Cask\n version '1.5.2'\n sha256 '8b694afb8774e83088d317e18e679199ddb17bace499d519ba81d6ef4c7d7be3'\n\n url 'https://github.com/lanayotech/vagrant-mana... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in PhysicsEditor Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'physicseditor' do\n version '1.0.10... | ruby | chosen |
[
{
"from": "human",
"value": "Add a developer-only, debug sub-command.\n"
},
{
"from": "gpt",
"value": "require 'pp'\n\n# You don't need this.\n# To use this:\n# - mkdir -p ~/.mrmurano/plugins\n# - ln gb.rb ~/.mrmurano/plugins\n\ncommand :_gb do |c|\n c.syntax = %{mr _gb <class> <method> (<args>... | ruby | chosen |
[
{
"from": "system",
"value": "Fix TA Edit and Delete links in Manage Graders table\n"
},
{
"from": "human",
"value": "module TasHelper\n def get_tas_table_info\n tas = Ta.all\n @tas_table_info = tas.map do |ta|\n t = ta.attributes\n t['edit_link'] = url_for(controller: 'tas',\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use longest machine name to pad in status cmd\n"
},
{
"from": "human",
"value": "require 'optparse'\n\nmodule VagrantPlugins\n module CommandStatus\n class Command < Vagrant.plugin(\"2\", :command)\n def execute\n opts = OptionParser.new do |o|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove extra path => ''.\n"
},
{
"from": "human",
"value": "Refinery::Core::Engine.routes.draw do\n # Frontend routes\n namespace :<%= namespacing.underscore %> do\n resources :<%= plural_name %><%= \", :path => ''\" if namespacing.underscore == plural_name %>,... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug in fetch status cron\n"
},
{
"from": "human",
"value": "namespace :cimonitor do\n desc \"Update the status for each active project\"\n task :fetch_statuses => :environment do\n if !Delayed::Job.present?\n StatusFetcher.new.fetch_all\n end\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Add a method to resolve the channel that was reacted in\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'discordrb/events/generic'\nrequire 'discordrb/data'\n\nmodule Discordrb::Events\n # Generic superclass for events about adding and r... | ruby | chosen |
[
{
"from": "system",
"value": "Update Dwarf Fortress to 0.40.14\n"
},
{
"from": "human",
"value": "class DwarfFortress < Cask\n version '0.40.12'\n sha256 'e493942db5553a33ac38a150ea16dfb9748192a3f7c1961a342a7436f64cc6c0'\n\n url \"http://www.bay12games.com/dwarves/df_#{version.sub(%r{^0+\\.},... | ruby | chosen |
[
{
"from": "human",
"value": "Add formula for Regina-Rexx language.\n\nRegina-Rexx is an implementation of the REXX scripting language.\n"
},
{
"from": "gpt",
"value": "require 'formula'\n\nclass ReginaRexx <Formula\n url 'http://downloads.sourceforge.net/project/regina-rexx/regina-rexx/3.4/Regi... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary check from environments service\n"
},
{
"from": "human",
"value": "module Ci\n class StopEnvironmentsService < BaseService\n attr_reader :ref\n\n def execute(branch_name)\n @ref = branch_name\n\n return unless has_ref?\n retu... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.