conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Disable CDN host until we can figure things out\n" }, { "from": "human", "value": "if defined? Refile::S3\n aws = {\n access_key_id: Rails.application.secrets.aws_access_key_id,\n secret_access_key: Rails.application.secrets.aws_secret_access_key,\n region...
ruby
chosen
[ { "from": "system", "value": "Add state label helper here\n" }, { "from": "human", "value": "module PubdraftHelper\n def pubdraft_states_for_select(klass)\n klass.pubdraft_states.map(&:to_select_option)\n end\n\n def pubdraft_state_options(klass)\n options_for_select pubdraft_states_for...
ruby
chosen
[ { "from": "system", "value": "Add support for query string in root URL\n" }, { "from": "human", "value": "require \"rack/accept\"\n\nmodule Rack\n class LocaleRootRedirect\n VERSION = \"0.0.4\"\n\n def initialize(app, locales = {})\n @locales = locales\n @available_locales = loc...
ruby
chosen
[ { "from": "system", "value": "Use a regexp, better/faster than casting to integer. (plus we didn't check for number of digits before)" }, { "from": "human", "value": "require 'redirector/lookup'\n\nmodule Redirector\n class PathDetection\n\n attr_accessor :path, :new_path\n \n def init...
ruby
chosen
[ { "from": "system", "value": "Update the author's updated_at attribute when new versions are released\n" }, { "from": "human", "value": "class VersionObserver < ActiveRecord::Observer\n\n # Cache latest version in the package record\n def after_create(version)\n version.package.latest_versi...
ruby
chosen
[ { "from": "human", "value": "[i18n] Add rake task for finding missing_keys\n" }, { "from": "gpt", "value": "# Invoke this task with \"rake i18n:missing_keys\"\n\nnamespace :i18n do\n desc \"Find and list translation keys that do not exist in all locales\"\n task :missing_keys => :environment d...
ruby
chosen
[ { "from": "system", "value": "Call the given block before, the site is spidered.\n" }, { "from": "human", "value": "require 'wordlist/builder'\n\nrequire 'spidr'\n\nmodule Wordlist\n module Builders\n class Website < Builder\n\n # Host to spider\n attr_accessor :host\n\n #\n ...
ruby
chosen
[ { "from": "human", "value": "Add specs for new validations module.\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe Github::Validation, :type => :base do\n\n context '#_validate_inputs' do\n before do\n @required = ['param_a', 'param_c']\n @provided = { 'param_a' ...
ruby
chosen
[ { "from": "system", "value": "Change the wording the i18n spec\n" }, { "from": "human", "value": "require 'i18n'\n\nRSpec.describe I18n::Backend::Base do\n # Since #load_erb is a protected method, this spec tests the\n # interface that calls it: #load_translations\n describe '#load_translatio...
ruby
chosen
[ { "from": "system", "value": "Revert test for Node.js v4.4.4\n" }, { "from": "human", "value": "require 'spec_helper'\n\n# Node 12.x\nif property[:name] =~ /v0.12./\n describe command('node -v') do\n its(:stdout) { should contain('v0.12.14') }\n end\nend\n\n# Node 4.x\nif property[:name] =~...
ruby
chosen
[ { "from": "system", "value": "Add Witch 3.9.1 (Snow Leopard compatible)\n\nCloses #8095.\n" }, { "from": "human", "value": "cask :v1 => 'witch' do\n version :latest\n sha256 :no_check\n\n url 'http://manytricks.com/download/witch'\n homepage 'http://manytricks.com/witch/'\n license :unknown...
ruby
chosen
[ { "from": "system", "value": "Fix bad type name in support file\n" }, { "from": "human", "value": "module Types\n class TestUser < Kanji::Type\n name \"TestUser\"\n description \"A test user\"\n\n attribute :email, Kanji::Types::String, \"The test email\", required: true\n attribute...
ruby
chosen
[ { "from": "system", "value": "Add basic class for building objects to pass for the message queue for storing user actions.\n" }, { "from": "human", "value": "require 'browser'\n\nclass AkUserParams\n def self.create(params)\n # I'm assuming that the form params will come in with names that cor...
ruby
chosen
[ { "from": "human", "value": "Include project clone and pull script.\n" }, { "from": "gpt", "value": "# go through projects and clean and update\n\nrequire 'yaml'\n\n$basedir = Dir.pwd\t\t\t\t\t\t\nconfig = YAML.load_file(\"_config.yml\")\n\nconfig[\"projects\"].each do |repo|\n\tname = repo.spli...
ruby
chosen
[ { "from": "system", "value": "Add gem description and summary\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"cabinet/version\"\n\nGem::Specification.new do |s|\n s.name = \"cabinet\"\n s.version = Cabinet::VERS...
ruby
chosen
[ { "from": "system", "value": "Fix Travis using 1.9.3 to build gems\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$LOAD_PATH.unshift(File.join(__dir__, \"lib\"))\n\nGem::Specification.new do |gem|\n gem.name = \"blinkbox-common_config\"\n gem.version = open(\"./VE...
ruby
chosen
[ { "from": "system", "value": "Enable image processing in development.\n" }, { "from": "human", "value": "# -*- encoding : utf-8 -*-\nCarrierWave.configure do |config|\n if Rails.env.production?\n config.storage = :fog\n config.fog_credentials = {\n :provider => 'AWS',\n...
ruby
chosen
[ { "from": "system", "value": "Use IAM profile when key isn't available\n" }, { "from": "human", "value": "CarrierWave.configure do |config|\n config.storage = :fog\n config.fog_directory = ENV['AWS_BUCKET']\n config.fog_public = false\n config.fog_attributes = {}\n config.fo...
ruby
chosen
[ { "from": "system", "value": "Install php for macOS Monterey\n\nPHP requires in alfred-github-workflow\n" }, { "from": "human", "value": "brew 'awscli'\nbrew 'circleci'\nbrew 'colordiff'\nbrew 'coreutils'\nbrew 'direnv'\nbrew 'exa'\nbrew 'fd'\nbrew 'fish'\nbrew 'fzf'\nbrew 'gh'\nbrew 'ghq'\nbrew...
ruby
chosen
[ { "from": "system", "value": "Make sure of result of Module/Class\n" }, { "from": "human", "value": "### Empty module\n module A\n end.to_s\n\n#### Explicit global module\n module ::B\n end.to_s\n\n#### Scoped module\n module String::B\n end.to_s\n\n### Raising\n#### Module/Cla...
ruby
chosen
[ { "from": "system", "value": "Fix tests for apt platforms\n" }, { "from": "human", "value": "apt_update\n\ninclude_recipe 'yum-epel'\ninclude_recipe 'varnish::default'\n\n# Set up nginx first since it likes to start listening on port 80 during install\ninclude_recipe \"#{cookbook_name}::_nginx\"...
ruby
chosen
[ { "from": "system", "value": "Include ActionView::Helpers::NumberHelper in ApplicationHelper for number_with_precision.\n" }, { "from": "human", "value": "# Methods added to this helper will be available to all templates in the application.\nmodule ApplicationHelper\n def sort_header(column, la...
ruby
chosen
[ { "from": "system", "value": "Validate project request is not made for an existing project membership\n" }, { "from": "human", "value": "require 'active_model/model'\n\nclass ProjectRequest\n\n include ActiveModel::Model\n include ActiveModel::MassAssignmentSecurity\n\n attr_accessor :project...
ruby
chosen
[ { "from": "system", "value": "Revert \"update podspec deployment target\"\n\nThis reverts commit 8ad13386b051b00d9ba91cc44c573bc0999737e3.\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n\n s.name = \"Mortar\"\n s.version = \"1.0.0\"\n s.summary = \"Auto Layout in S...
ruby
chosen
[ { "from": "system", "value": "Correct element name in spec description\n" }, { "from": "human", "value": "# encoding: utf-8\nrequire File.expand_path('spec_helper', File.dirname(__FILE__))\n\ndescribe \"Labels\" do\n\n before :each do\n browser.goto(WatirSpec.files + \"/forms_with_input_elem...
ruby
chosen
[ { "from": "human", "value": "Add draft migration for a relational data model\n" }, { "from": "gpt", "value": "Sequel.migration do\n string_size = 2048\n\n up do\n create_table(:things) do\n primary_key :id\n String :type, :null=>false, :default=>\"Thing\"\n String :license, :...
ruby
chosen
[ { "from": "system", "value": "Add test code for checking nginx service\n" }, { "from": "human", "value": "# _ __ \n# _ __ __ _(_)_ __ __ __ / /__ _ __ ___ ___ \n# | '_ \\ / _` | | '_ \\\\ \\/ / / / __| '_ \\ / _ \\/ __|\n# | | | | (_| | | |...
ruby
chosen
[ { "from": "system", "value": "Resolve open-ended dependency on rspec to fix the warning.\n" }, { "from": "human", "value": "$:.unshift File.expand_path('../lib', __FILE__)\nrequire 'rails-better-filters/version'\n\nGem::Specification.new do |s|\n s.name = 'rails-better-filters'\n s.ve...
ruby
chosen
[ { "from": "system", "value": "Add friendly_id and globalize dependencies in gempsec\n" }, { "from": "human", "value": "# Encoding: UTF-8\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'refinerycms-products'\n s.version = '3.0.0'...
ruby
chosen
[ { "from": "system", "value": "Test logging capacity when do not bill isn't checked\n\nWe appear to be requiring Do Not Bill to be set instead of letting it default\nto false. This is causing the capacity not to be saved unless it's marked as DNB\n" }, { "from": "human", "value": "require 'rails_...
ruby
chosen
[ { "from": "human", "value": "Test for listnav saved search routes\n" }, { "from": "gpt", "value": "describe \"routes for Network Ports\" do\n let(:controller_name) { \"network_port\" }\n describe \"#listnav_search_selected\" do\n it \"routes with POST\" do\n expect(post(\"/#{controller...
ruby
chosen
[ { "from": "system", "value": "Add first specs for Simulator to accept commands\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe ToyRobotSimulator::Simulator do\nend\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe ToyRobotSimulator::Simulator do\...
ruby
chosen
[ { "from": "system", "value": "Clarify the test plan a litte\n" }, { "from": "human", "value": "require_relative '../game'\n\nRSpec.describe 'Completing challenges' do\n let(:new_balance) { 50 }\n let(:new_config) {\n {\n initial_balance: new_balance,\n payroll: {\n wage_bil...
ruby
chosen
[ { "from": "system", "value": "Update new test API key\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire 'rubygems'\nrequire 'bundler/setup'\n\nBundler.require(:default, :test)\nrequire 'pry'\nrequire 'find'\nrequire 'excon'\nrequire 'vcr'\nrequire 'girlscout'\n\nrequire...
ruby
chosen
[ { "from": "human", "value": "Add missing migration from 3297c389a1d4976f671\n" }, { "from": "gpt", "value": "class RemoveDefaultFromComments < ActiveRecord::Migration\n def up\n change_column_default(:comments, :commenter, nil)\n end\n\n def down\n change_column_default(:comments, :comm...
ruby
chosen
[ { "from": "system", "value": "Use environment variables, the way grown ups do it today\n" }, { "from": "human", "value": "Twitter.configure do |config|\n config.consumer_key = ENV['twitter_consumer_key']\n config.consumer_secret = ENV['twitter_consumer_secret']\n\n config.consumer_key = ENV['...
ruby
chosen
[ { "from": "system", "value": "Fix install generator commit failure\n" }, { "from": "human", "value": "class ExpressAdmin::InstallGenerator < Rails::Generators::Base\n source_root File.expand_path('../templates', __FILE__)\n\n desc \"mount express_admin engine; migrate database\"\n def install...
ruby
chosen
[ { "from": "system", "value": "Fix addMember task creation for push_notification plugin\n" }, { "from": "human", "value": "module ObserversTestHelper\n\n def create_add_friend_task\n user1 = fast_create(User)\n person = fast_create(Person, :user_id => user1.id)\n user2 = fast_create(Use...
ruby
chosen
[ { "from": "system", "value": "Create initialize method, create add(element) method\n" }, { "from": "human", "value": "class ArrayList\n def initialize\n end\n\n def add(element)\n end\n\n def get(index)\n end\n\n def set(index, element)\n end\n\n def length\n end\n\nend" }, { "...
ruby
chosen
[ { "from": "system", "value": "Allow res to be nil in InstallGenerator's run_migrations\n\nFixes: http://ci.spreecommerce.com/viewLog.html?buildId=5911&buildTypeId=bt14&tab=buildLog#_focus=123\n" }, { "from": "human", "value": "module SpreeGateway\n module Generators\n class InstallGenerator ...
ruby
chosen
[ { "from": "system", "value": "Fix response when code is not present\n\nThe blank response of featured_budgets_lines_controller was failing with\na 500 error\n" }, { "from": "human", "value": "module GobiertoBudgets\n class FeaturedBudgetLinesController < GobiertoBudgets::ApplicationController\n...
ruby
chosen
[ { "from": "system", "value": "Switch back to command for process checking\n\nInSpec fails to find the init services on Ubuntu\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n" }, { "from": "human", "value": "\ndescribe package('memcached') do\n it { should be_ins...
ruby
chosen
[ { "from": "system", "value": "Remove obsolete block invocation in Cache spec" }, { "from": "human", "value": "require_relative \"../../../test_helper\"\n\ndescribe Restforce::DB::RunnerCache do\n\n configure!\n mappings!\n\n let(:cache) { Restforce::DB::RunnerCache.new }\n\n describe \"#coll...
ruby
chosen
[ { "from": "system", "value": "Use new public API correctly.\n\nhttps://github.com/RailsEventStore/rails_event_store/pull/114/\n" }, { "from": "human", "value": "module RailsEventStore\n module RSpec\n class HaveApplied\n def initialize(expected, *expecteds, differ:)\n @expected =...
ruby
chosen
[ { "from": "system", "value": "Remove hardcoding view from create_zone method\n" }, { "from": "human", "value": "module InfobloxClient\n class Client\n module Zones\n\n def zones\n get('zone_auth')\n end\n\n def zone(ref)\n get(ref)\n end\n\n def delete_...
ruby
chosen
[ { "from": "system", "value": "Fix serializing multibyte character length issue.\n\nWhen developer serialize multibyte character, it seems serialized, but\nunserialize it through php fails. It is because php serialization\nexpects sting byte length, but `String#length` is just length of string\nin ruby >= 1....
ruby
chosen
[ { "from": "system", "value": "Bring back redirect_to or sign in on oauth flow won't work!\n" }, { "from": "human", "value": "Doorkeeper.configure do\n orm :active_record\n\n resource_owner_authenticator do\n env[:clearance].try(:current_user)\n end\n\n admin_authenticator do\n user = a...
ruby
chosen
[ { "from": "system", "value": "Set the index to be actually unique\n" }, { "from": "human", "value": "class AddUniqueIndexToTradePermits < ActiveRecord::Migration\n def change\n add_index \"trade_permits\", :number, :name => \"trade_permits_number_idx\"\n end\nend\n" }, { "from": "gp...
ruby
chosen
[ { "from": "system", "value": "Remove rr as development dependency\n" }, { "from": "human", "value": "lib = File.expand_path(\"../lib\", __FILE__)\n$:.unshift lib unless $:.include? lib\n\nrequire \"gas/version\"\n\nGem::Specification.new do |s|\n s.name = \"gas\"\n s.version = Gas::Version\n ...
ruby
chosen
[ { "from": "system", "value": "Include WorkflowActiverecord in the state persistence extension.\n" }, { "from": "human", "value": "# frozen_string_literal: true\nmodule Extensions::DeferredWorkflowStatePersistence::Workflow; end\nmodule Extensions::DeferredWorkflowStatePersistence::Workflow::Adap...
ruby
chosen
[ { "from": "human", "value": "Add specs for MightyGrid::Column class\n" }, { "from": "gpt", "value": "require 'spec_helper'\n\ndescribe MightyGrid::Column do\n\n describe '#new' do\n describe 'with attribute' do\n context 'without options' do\n subject { MightyGrid::Column.new(:na...
ruby
chosen
[ { "from": "system", "value": "Fix description for class method\n\nIt's `Sawarineko.nya`, not `Sawarineko#nya`.\n" }, { "from": "human", "value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\nRSpec.describe Sawarineko do\n subject(:sawarineko) { described_class }\n\n describe '#nya' do\n it...
ruby
chosen
[ { "from": "system", "value": "Clean up gemspec a bit\n" }, { "from": "human", "value": "require File.expand_path(\"../lib/authem/version.rb\", __FILE__)\n\nGem::Specification.new do |spec|\n spec.name = \"authem\"\n spec.version = Authem::VERSION\n spec.authors ...
ruby
chosen
[ { "from": "system", "value": "Remove dead code from Command::Output::Stats\n" }, { "from": "human", "value": "module Inch\n module CLI\n module Command\n module Output\n class Stats < Base\n attr_reader :objects, :good_count\n\n def initialize(options, objects, ...
ruby
chosen
[ { "from": "system", "value": "Use OpenSSL::Digest rather than OpenSSL::Digest::Digest\n\nThis eliminates the `Digest::Digest is deprecated; use Digest` warning\nwhen markety is required.\n" }, { "from": "human", "value": "module Markety\n # This class exists only to encapsulate the authenticati...
ruby
chosen
[ { "from": "system", "value": "Use correct branch name in PR.\n" }, { "from": "human", "value": "module Metasploit\n module Credential\n # Holds components of {VERSION} as defined by {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0}.\n module Version\n # The major versio...
ruby
chosen
[ { "from": "human", "value": "Implement 'PerAddress' config option for deliver.item.merger\n" }, { "from": "gpt", "value": "class Poloxy::ItemMerge::PerAddress < Poloxy::ItemMerge::Base\n\n private\n\n # @param data [Hash] nested Hash of {Poloxy::DataModel::Item}\n # @return [<Poloxy::MessageC...
ruby
chosen
[ { "from": "system", "value": "Add happy path tests for ParamsBuilder\n" }, { "from": "human", "value": "require \"lasp/params_builder\"\n\nmodule Lasp\n describe ParamsBuilder do\n it \"fails when params are not passed as a list\" do\n expect {\n described_class.build(:a)\n ...
ruby
chosen
[ { "from": "system", "value": "Fix how strings are wrapped in translation helper\n" }, { "from": "human", "value": "module OrgsHelper\n\n DEFAULT_EMAIL = '%{organisation_email}'.freeze\n\n # Tooltip string for Org feedback form.\n #\n # @param org [Org] The current Org we're updating feedback...
ruby
chosen
[ { "from": "system", "value": "Update subject line to reveal environment. In Heroku, RAILS_ENV is defined as production, even in dev environment, so use the S3_Bucket_Name which reveals the actual environment." }, { "from": "human", "value": "class LoadMailer < ApplicationMailer\n\n def self.se...
ruby
chosen
[ { "from": "system", "value": "Revert and remove lookback as a vendored framework\n" }, { "from": "human", "value": "require \"json\"\n\njson = File.read(File.join(__dir__, \"package.json\"))\npackage = JSON.parse(json).deep_symbolize_keys\n\nPod::Spec.new do |s|\n s.name = package[:name]\n s.v...
ruby
chosen
[ { "from": "system", "value": "Correct reference to order model in ReturnAuthorizationsController\n" }, { "from": "human", "value": "module Spree\n module Admin\n class ReturnAuthorizationsController < ResourceController\n belongs_to :order, :find_by => :number\n\n update.after :ass...
ruby
chosen
[ { "from": "system", "value": "Update SpotifyBeta.app to latest version.\n" }, { "from": "human", "value": "cask :v1 => 'spotifybeta' do\n version '1.0.0.1093.g2eba9b4b-1679'\n sha256 'ac5e99bfb448d3f4ee46b1a95bd428c5d8f27e193b44895754ac4150a0f56a60'\n\n url \"http://download.spotify.com/beta/...
ruby
chosen
[ { "from": "system", "value": "Improve tool to remove old guards\n" }, { "from": "human", "value": "# Remove old version guards in ruby/spec\n\ndef dedent(line)\n if line.start_with?(\" \")\n line[2..-1]\n else\n line\n end\nend\n\ndef remove_guards(guard, keep)\n Dir[\"*/**/*.rb\"].ea...
ruby
chosen
[ { "from": "system", "value": "Add rspec and mocha as dependencies for older Gem::Versions\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"rforce-wrapper/version\"\n\nGem::Specification.new do |s|\n s.name = \"rforce-...
ruby
chosen
[ { "from": "system", "value": "Mark failing test as pending for now\n\nUntil we can get to the bottom of the issue\n" }, { "from": "human", "value": "require \"rails_helper\"\nrequire \"delayed_job_active_record\"\n\nmodule Renalware\n module HD\n\n describe GenerateMonthlyStatisticsJob, type...
ruby
chosen
[ { "from": "system", "value": "Add a scenario to delete users\n" }, { "from": "human", "value": "require 'rails_helper'\n\nfeature 'Manage users', type: :feature do\n scenario 'Show the list of users', js: true do\n User.create!(name: 'Guirec Corbel', age: 29)\n visit users_path\n\n wit...
ruby
chosen
[ { "from": "system", "value": "Add the live MS registration specs\n" }, { "from": "human", "value": "# encoding: utf-8\nrequire 'spec_helper'\n\ndescribe Sonar::Registration do\n let(:client) { Sonar::Client.new }\n\n context 'POSTing a valid product key' do\n let (:resp) do\n VCR.use_c...
ruby
chosen
[ { "from": "system", "value": "Remove :app designation from link" }, { "from": "human", "value": "class Divvy < Cask\n url 'http://mizage.com/downloads/Divvy.zip'\n homepage 'http://mizage.com/divvy/'\n version 'latest'\n no_checksum\n link :app, 'Divvy.app'\nend\n" }, { "from": "gpt...
ruby
chosen
[ { "from": "system", "value": "Add license info for Slack\n" }, { "from": "human", "value": "cask :v1 => 'slack' do\n version '1.0.3'\n sha256 'a568f41a04f9025a8d101cebf8aef4fe9fbbb3c87281c70174538f99ddba32c5'\n\n # hockeyapp.net is the official download host per the appcast feed\n url 'https...
ruby
chosen
[ { "from": "system", "value": "Add all accessors to test\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire 'integration_helper'\nrequire 'mws/products'\n\nclass TestMWSHeaders < IntegrationTest\n use 'Products'\n\n def test_parsing_headers\n clients.each do |client|...
ruby
chosen
[ { "from": "system", "value": "Update podspec homepage and description\n" }, { "from": "human", "value": "#\n# Be sure to run `pod lib lint Clappr.podspec' to ensure this is a\n# valid spec before submitting.\n#\n# Any lines starting with a # are optional, but their use is encouraged\n# To learn ...
ruby
chosen
[ { "from": "system", "value": "Rename filter method to set detailed guide breadcrumbs\n" }, { "from": "human", "value": "class DetailedGuidesController < DocumentsController\n layout \"detailed-guidance\"\n skip_before_filter :set_search_path\n before_filter :set_search_index\n before_filter ...
ruby
chosen
[ { "from": "system", "value": "Handle more payload types in WebhookController calls\n" }, { "from": "human", "value": "# frozen_string_literal: true\nmodule Shipit\n class WebhooksController < ActionController::Base\n skip_before_action :verify_authenticity_token, raise: false\n before_act...
ruby
chosen
[ { "from": "system", "value": "Support back to macOS 10.11\n" }, { "from": "human", "value": "Pod::Spec.new do |spec|\n spec.name = 'Cassette'\n spec.version = '1.0.0-beta2'\n\n spec.license = { :type => 'BSD-2-Clause' }\n\n spec.homepage = 'https://gith...
ruby
chosen
[ { "from": "system", "value": "Add Pebbles::Cors to endpoint too\n" }, { "from": "human", "value": "$:.unshift(File.dirname(__FILE__))\n\nrequire 'config/environment'\nrequire 'api/v1'\nrequire 'rack/contrib'\n\nENV['RACK_ENV'] ||= 'development'\nset :environment, ENV['RACK_ENV'].to_sym\n\nuse Ra...
ruby
chosen
[ { "from": "system", "value": "Add minimum required ruby version to gemspec\n" }, { "from": "human", "value": "lib = File.expand_path('../lib/', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'jwt/version'\n\nGem::Specification.new do |spec|\n spec.name = 'jwt'\n sp...
ruby
chosen
[ { "from": "system", "value": "Fix db migration to v0.8 for Postgres\n" }, { "from": "human", "value": "class AddFingerprintToGitolitePublicKeys < ActiveRecord::Migration\n\n def self.up\n add_column :gitolite_public_keys, :fingerprint, :string, :null => false, :after => 'key'\n end\n\n\n d...
ruby
chosen
[ { "from": "system", "value": "Fix devise custom flash messages\n" }, { "from": "human", "value": "module DeviseCustomFlashMessage\n def self.included klass\n klass.class_eval do\n alias :orifinal_find_message :find_message\n remove_method :find_message\n end\n end\n\n protecte...
ruby
chosen
[ { "from": "system", "value": "Bump version on master after 0.1.0 release\n" }, { "from": "human", "value": "name 'local_apt'\nmaintainer 'Cyril Ledru'\nmaintainer_email 'cyril.ledru@gmail.com'\nlicense 'All rights reserved'\ndescription 'Installs/Configures local_...
ruby
chosen
[ { "from": "system", "value": "Make cookbook version 0.2.0 to match dokku's version\n" }, { "from": "human", "value": "name 'dokku'\nmaintainer 'Fabio Rehm'\nmaintainer_email 'fgrehm@gmail.com'\nlicense 'MIT'\ndescription 'Installs/Configures dokku'\nlong_descripti...
ruby
chosen
[ { "from": "system", "value": "Remove dependency version locking for flexibility\n" }, { "from": "human", "value": "name 'rvm_fw'\nmaintainer 'Steven Haddox'\nmaintainer_email 'steven.haddox@gmail.com'\nlicense 'MIT'\ndescription 'Installs common ruby packages and RVM via RVM::FW'\nlong_descripti...
ruby
chosen
[ { "from": "system", "value": "Remove empty line in spec test\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe 'netrc' do\n context 'supported operating systems' do\n on_supported_os.each do |os, facts|\n context \"on #{os}\" do\n let(:facts) do\n fact...
ruby
chosen
[ { "from": "system", "value": "Update Vault server spec to use local token" }, { "from": "human", "value": "require \"open-uri\"\nrequire \"singleton\"\nrequire \"timeout\"\nrequire \"tempfile\"\n\nmodule RSpec\n class VaultServer\n include Singleton\n\n def self.method_missing(m, *args, &...
ruby
chosen
[ { "from": "system", "value": "Add a homepage to the gem spec\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"epicify/version\"\n\nGem::Specification.new do |s|\n s.name = \"epicify\"\n s.version = Epicify::VERSI...
ruby
chosen
[ { "from": "system", "value": "Update to podspec to bump version.\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = \"ZettaKit\"\n s.version = \"0.0.6\"\n s.summary = \"A Reactive Hypermedia Client for the Zetta HTTP API.\"\n s.description =...
ruby
chosen
[ { "from": "system", "value": "Add remember method to sessions helper to call user remember method, and set secure cookies for user id and remember token. Add call to remember helper in session controller create action.\n" }, { "from": "human", "value": "module SessionsHelper\n # signs in a user...
ruby
chosen
[ { "from": "system", "value": "Bump the jekyll version dependency\n\nThe gem runs fine currently on 4.0.1 so we can probably safely bump the max or remove it altogether" }, { "from": "human", "value": "Gem::Specification.new do |s|\n s.name = 'jekyll-crosspost-to-medium'\n s.version ...
ruby
chosen
[ { "from": "system", "value": "Add depends_on >= :yosemite (10.10)\n" }, { "from": "human", "value": "cask \"coreclr\" do\n version :latest\n url \"https://dotnetcli.blob.core.windows.net/dotnet/dev/Installers/Latest/dotnet-osx-x64.#{version}.pkg\"\n name \".NET Core\"\n sha256 :no_check\n h...
ruby
chosen
[ { "from": "system", "value": "Allow course managers to duplicate their course.\n\nUse the previously defined :duplicate ability to check.\n\nCoursemology administrators can still duplicate courses as\nadministrators have all abilities.\n" }, { "from": "human", "value": "class Course::Duplication...
ruby
chosen
[ { "from": "system", "value": "Add devel release pointing to stable version\n\nNo surprises or errors for people using install --devel by default.\n" }, { "from": "human", "value": "class Tsuru < Formula\n desc \"tsuru-client is a tsuru command line tool for application developers.\"\n homepage...
ruby
chosen
[ { "from": "system", "value": "Remove oraclejdk9 from list of java alternate versions\n\nfor now? Because travis-ci/travis-ci#7778\n" }, { "from": "human", "value": "override['maven']['install_java'] = false\n\ndefault['travis_ci_cookiecat']['prerequisite_packages'] = %w(\n cron\n curl\n git\...
ruby
chosen
[ { "from": "system", "value": "2283: Fix previous migration (remove FK before adding it).\n\nThis is necessary because the staging database already have it. Since\nthe local one will not have it, a rescue is also needed.\n" }, { "from": "human", "value": "class AddChoiceForeignKey < ActiveRecord:...
ruby
chosen
[ { "from": "system", "value": "Use id to order entries in migration\n\nWhen deleting entries with duplicate hashes in this migration it is\nimportant to leave the oldest entry alone and delete any newer\nduplicates. The id attribute is used in the case of duplicate entries\nwith the same publish date and cre...
ruby
chosen
[ { "from": "system", "value": "Add rake to development dependencies\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/smiling/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Junya Ogura\"]\n gem.email = [\"juny...
ruby
chosen
[ { "from": "system", "value": "JariBakken: Implement pending spec for server backtrace.\n\ngit-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@9511 07704840-8298-11de-bf8c-fd130f914ac9\n" }, { "from": "human", "value": "require \"spec_helper\"\n\ndescribe \"Error\" do\n\n it \"should have an ap...
ruby
chosen
[ { "from": "system", "value": "Add SVG mime type support\n" }, { "from": "human", "value": "# Be sure to restart your server when you modify this file.\n\n# Add new mime types for use in respond_to blocks:\n# Mime::Type.register \"text/richtext\", :rtf\n# Mime::Type.register_alias \"text/html\", ...
ruby
chosen
[ { "from": "system", "value": "Add missing field 'name' to JSON output\n" }, { "from": "human", "value": "class Api::ClefTasksController < Api::BaseController\n before_action :auth_by_api_key, only: [:show]\n\n def show # GET :id\n begin\n clef_task = ClefTask.find(params[:id])\n ...
ruby
chosen
[ { "from": "system", "value": "Fix rubocop warnings in GenericFormMixin\n" }, { "from": "human", "value": "module Mixins\n module GenericFormMixin\n def cancel_action(message)\n session[:edit] = nil\n flash_to_session(message, :warning)\n javascript_redirect previous_breadcrumb...
ruby
chosen
[ { "from": "system", "value": "Add frozen string literal comment\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe Gitlab::BackgroundMigration::PopulateExternalPipelineSource, :migration, schema: 20180916011959 do\n let(:migration) { described_class.new }\n let(:projects) { t...
ruby
chosen