conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Put dummy spec on pending instead of failing\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/spec_helper')\n\ndescribe \"Hashicorptools\" do\n it \"fails\" do\n fail \"hey buddy, you should probably rename this file and sta... | ruby | chosen |
[
{
"from": "system",
"value": "Remove level_override: it is not a property, it is a child element\n"
},
{
"from": "human",
"value": "module OpenXml\n module Docx\n module Elements\n class Number < OpenXml::Docx::Element\n include HasChildren, HasProperties\n tag :num\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a couple of test failures\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\ndescribe \"PagesController\" do\n describe \"GET /about\", type: :request do\n it \"renders successfully when logged out\" do\n visit about_path\n expect(page)... | ruby | chosen |
[
{
"from": "system",
"value": "Fix identation of conanical host\n"
},
{
"from": "human",
"value": "module Pah\n module Templates\n class CanonicalHost < Pah::Template\n def call\n rack_canonical = <<CANONICAL\n\n #Run heroku config:add CANONICAL_HOST=yourdomain.com\n #Fo... | ruby | chosen |
[
{
"from": "system",
"value": "Fix syntax error on 1.9\n"
},
{
"from": "human",
"value": "require File.expand_path('../../spec_helper', __FILE__)\n\ndescribe \"Resolving\" do\n\n before :each do\n @deps = []\n @index = an_awesome_index\n end\n\n it \"resolves\" do\n dep \"rack\"\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a TODO to CommandProxy\n"
},
{
"from": "human",
"value": "module ROM\n class Repository\n class CommandProxy\n attr_reader :command, :root\n\n def initialize(command)\n @command = command\n @root = Inflector.singularize(command.relati... | ruby | chosen |
[
{
"from": "system",
"value": "Add logging information to rake task\n"
},
{
"from": "human",
"value": "namespace :anonymise do\n desc 'Anonymise data that is at least 6 months old'\n task remove_old_personal_information: :environment do\n cutoff = Time.zone.now - 6.months\n Depersonalizer... | ruby | chosen |
[
{
"from": "system",
"value": "Hide duplication sidebar item from non-administrators.\n\nDuplication UX is not ready for end users yet.\n"
},
{
"from": "human",
"value": "class Course::DuplicationComponent < SimpleDelegator\n include Course::ControllerComponentHost::Component\n\n def sidebar_it... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typos for corporate pages on hippo migration\n"
},
{
"from": "human",
"value": "module Cms\n module HippoImporter\n class CorporatePage < HippoImporter::Base\n def hippo_type\n 'contentauthoringwebsite:Static'\n end\n\n def layout\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make adult nil if it dont exists\n"
},
{
"from": "human",
"value": "module CognitiveVision\n class AnalyzeResponse\n attr_reader :adult, :faces\n\n def initialize(options = {})\n @adult = options.fetch(:adult, {})\n @faces = options.fetch(:faces, []... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a typo where it inserts submedia into term instance variable\n"
},
{
"from": "human",
"value": "module DMMCrawler\n module Ranking\n class DojinRanking < BaseRanking\n include Attributes\n\n FETCHING_LIMITATION = 10\n\n def initialize(agent:, ... | ruby | chosen |
[
{
"from": "system",
"value": "Replace reference to API_KEYS with GovKit::configuration\n"
},
{
"from": "human",
"value": "module GovKit\n module SearchEngines\n class Technorati\n def self.search(options=[])\n query = options.to_query('q')\n host = \"api.technorati.com\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix class type from module to class\n"
},
{
"from": "human",
"value": "module Lazy\n module PP\n module JSON\n VERSION = \"0.0.1\"\n end\n end\nend\n"
},
{
"from": "gpt",
"value": "# -*- coding: utf-8 -*-\n\nmodule Lazy\n module PP\n cla... | ruby | chosen |
[
{
"from": "system",
"value": "Use def_delegators for text and binary.\n"
},
{
"from": "human",
"value": "require 'async/websocket'\n\nmodule Slack\n module RealTime\n module Concurrency\n module Async\n class Client < ::Async::WebSocket::Client\n extend ::Forwardable\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change the timing to return nil\n"
},
{
"from": "human",
"value": "require 'yummydata/http_helper'\nrequire 'sparql/client'\nrequire 'rdf/turtle'\n\nmodule Yummydata\n module Criteria\n module ExecutionTime\n\n BASE_QUERY = <<-'SPARQL'\nASK{}\nSPARQL\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make table printer take the table object\n"
},
{
"from": "human",
"value": "module Primer\n class TablePrinter\n attr_reader :rows, :primes, :cell_width\n private :rows, :primes, :cell_width\n\n def initialize(primes:, rows:)\n @primes = primes\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Support Puppet's embedded ruby and improve the which command usage\n"
},
{
"from": "human",
"value": "Facter.add(:nr_ruby_found) do\n confine :kernel => :linux\n setcode do\n ruby = Facter::Util::Resolution.exec('which ruby')\n if ruby\n version = Facte... | ruby | chosen |
[
{
"from": "system",
"value": "Remove attr_readers, use nil default context\n\nWe do not need the attr_readers because outside of the class the return_value\nmethod is called which gets the values internally. A nil default context is\nmore concise than defaulting to an error message because if someone sees\... | ruby | chosen |
[
{
"from": "system",
"value": "Add method_missing to let users know when something is not working\n\nTo be a bit more friendly. :)\n"
},
{
"from": "human",
"value": "module JIRA\nclass JIRAService < Handsoap::Service\n include RemoteAPI\n\n attr_reader :authToken, :user\n\n def self.instanc... | ruby | chosen |
[
{
"from": "system",
"value": "Add compatibility with Sprockets 4\n\nSee https://github.com/rails/sprockets-rails/issues/269\n"
},
{
"from": "human",
"value": "# to load pagination in rails app\nrequire 'will_paginate'\nrequire 'jquery-rails'\nrequire 'popper_js'\nrequire 'bootstrap'\nrequire 'si... | ruby | chosen |
[
{
"from": "system",
"value": "Add source_url and issues_url metata for Chef 12\n"
},
{
"from": "human",
"value": "name \"zsh\"\nmaintainer \"Chef Software, Inc.\"\nmaintainer_email \"cookbooks@chef.io\"\nlicense \"Apache 2.0\"\ndescription \"Installs zsh\"\nv... | ruby | chosen |
[
{
"from": "system",
"value": "Improve the description a whisker\n"
},
{
"from": "human",
"value": "name 'collectd'\nmaintainer 'Peter Donald'\nmaintainer_email 'peter@realityforge.org'\nlicense 'Apache 2.0'\ndescription 'Install and configure the collectd monitori... | ruby | chosen |
[
{
"from": "system",
"value": "Use official SPDX identifier for the license\n"
},
{
"from": "human",
"value": "name 'sys'\nmaintainer 'GSI HPC department'\nmaintainer_email 'hpc@gsi.de'\nlicense 'Apache 2.0'\ndescription 'System Software configuration and maintenan... | ruby | chosen |
[
{
"from": "system",
"value": "fix: Set dep versions for Chef 14 compatibility\n\njava >= 7.0.0 requires Chef 15 or above\n\nThe other cookbooks may require Chef >= 15 in the future, so this\navoids that.\n"
},
{
"from": "human",
"value": "name 'zookeeper'\nmaintainer 'Jeff Byrn... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused dependency on builder\n"
},
{
"from": "human",
"value": "#!/usr/bin/ruby\n\n$KCODE = 'UTF8'\n\nrequire 'yaml'\n\nrequire 'rubygems'\t\ngem 'builder', '~> 2.0'\n\nclass Hash\n def to_apple_dictionary(io = STDOUT)\n io.puts '<?xml version=\"1.0\" enc... | ruby | chosen |
[
{
"from": "system",
"value": "Update Apache dependency from ~1.0 to >= 2.0\n\n2.0+ brings with it Apache 2.4 support so we can support RHEL 7 and Ubuntu 14.04\n"
},
{
"from": "human",
"value": "name 'passenger_apache2'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'coo... | ruby | chosen |
[
{
"from": "system",
"value": "Revert changes that are incompatible with Chef 12.0\n"
},
{
"from": "human",
"value": "name 'sys'\nmaintainer 'GSI HPC department'\nmaintainer_email 'hpc@gsi.de'\nlicense 'Apache 2.0'\ndescription 'System Software configuration and ma... | ruby | chosen |
[
{
"from": "system",
"value": "Bump version in preparation for release\n"
},
{
"from": "human",
"value": "#\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 obtain a copy of the License at\n#\n# ... | ruby | chosen |
[
{
"from": "system",
"value": "Add fedora to list of platforms\n"
},
{
"from": "human",
"value": "name 'boost'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nlicense 'Apache 2.0'\ndescription 'Installs the Boost C++ Libraries'\nlong_description IO.read(File.join(File.dir... | ruby | chosen |
[
{
"from": "system",
"value": "Fix mongodb version number due to mistagging of mongodb author"
},
{
"from": "human",
"value": "name 'graylog2'\nmaintainer 'Stephan Oudmaijer'\nmaintainer_email 'soudmaijer@gmail... | ruby | chosen |
[
{
"from": "system",
"value": "Add 1.2.2 version of `windows` cookbook to dependencies\n\nDoesn't force users to upgrade to 2.x version of `windows`\ncookbook.\n"
},
{
"from": "human",
"value": "name 'seven_zip'\nmaintainer 'Shawn Neal'\nmaintainer_email 'sneal@sneal.net'\nissue... | ruby | chosen |
[
{
"from": "system",
"value": "Use a SPDX standard license string\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "name 'sqlite'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nlicense 'Apache 2.0'\ndescript... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade runit dependency to 4.x\n\nhttps://supermarket.chef.io/cookbooks/runit#changelog\n"
},
{
"from": "human",
"value": "name 'exhibitor'\nmaintainer 'EverTrue'\nmaintainer_email 'devops@evertrue.com'\nlicense 'Apache-2.0'\ndescription ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Bump version to 1.5.3.\"\n\nThis reverts commit 24cda809dfba7789f58be68d6a0e9ddc31992f28.\n"
},
{
"from": "human",
"value": "name \"monit\"\nmaintainer \"Phil Cohen\"\nmaintainer_email \"github@phlippers.net\"\nlicense \"MIT\"... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependency for mac_os_x cookbook\n\nAgain not using this yet, but will want to for defaults and plists, easier than keeping notes.\n"
},
{
"from": "human",
"value": "name 'mac_bootstrap'\nmaintainer 'Mike Moate'\nmaintainer_email 'chef@mikemoate.co.uk'\nlicense ... | ruby | chosen |
[
{
"from": "system",
"value": "Make json gem a dev dependency\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/lxc/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"lxc\"\n s.version = LXC::VERSION\n s.summary = \"Ruby wrapper to LXC\"\n s.des... | ruby | chosen |
[
{
"from": "system",
"value": "Add from_string monkey patch to Chef::Recipe\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\nrequire 'chef/run_context'\nrequire 'chef/client'\nrequire 'chef/recipe'\nrequire 'chef/resource'\nrequire 'chef/providers'\n\n$client = nil\n\ndef rebuild_node\n C... | ruby | chosen |
[
{
"from": "system",
"value": "Update Spectacle.app to version 0.8.10\n"
},
{
"from": "human",
"value": "cask :v1 => 'spectacle' do\n\n if MacOS.release <= :mountain_lion\n version '0.8.6'\n sha256 '3e367d2d7e6fe7d5f41d717d49cb087ba7432624b71ddd91c0cfa9d5a5459b7c'\n else\n version '0.8... | ruby | chosen |
[
{
"from": "system",
"value": "Update support to minimum of Ubuntu Precise\n"
},
{
"from": "human",
"value": "\nname 'sysctl'\nmaintainer 'OneHealth Solutions, Inc.'\nmaintainer_email 'cookbooks@onehealth.com'\nlicense 'Apache v2.0'\ndescription 'Configures sysctl parameters'\nlong_description IO... | ruby | chosen |
[
{
"from": "system",
"value": "Add audit cookbook to default recipe\n"
},
{
"from": "human",
"value": "name 'win_base'\nmaintainer 'John Snow'\nmaintainer_email 'jsnow@chef.io'\nlicense 'all_rights'\ndescription 'Installs/Configures win_base'\nlong_description 'Installs/Configures win_base'\nvers... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure we depends on users cookbook.\n"
},
{
"from": "human",
"value": "name 'rstudio'\nmaintainer 'Sprint.ly, Inc.'\nmaintainer_email 'joe@joestump.net'\nlicense 'All rights reserved'\ndescription 'Installs/Configures rstudio'\nlo... | ruby | chosen |
[
{
"from": "system",
"value": "@thenathanjones: Put spaces in the name so it has somewhere to wrap\n"
},
{
"from": "human",
"value": "class MakeCommonCategory < ActiveRecord::Migration\n def up\n if Category.count > 0\n puts \"Existing category found with ID #1\"\n first_category = ... | ruby | chosen |
[
{
"from": "system",
"value": "Add source URL for GitHub repo\n"
},
{
"from": "human",
"value": "# The MIT License (MIT)\n# =====================\n# Copyright (C) 2015 Rapid7 LLC.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated... | ruby | chosen |
[
{
"from": "system",
"value": "Set platform to iOS 6.0 since UICollectionView did not exist before that version.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'LXReorderableCollectionViewFlowLayout'\n s.version = '0.1.1'\n s.summary = 'Extends UICollectionViewFlowLayout to... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Brackets to Sprint 36\n"
},
{
"from": "human",
"value": "class Brackets < Cask\n url 'http://download.brackets.io/file.cfm?platform=OSX&build=35'\n homepage 'http://brackets.io'\n version 'Sprint 35'\n no_checksum\n link 'Brackets.app'\nend\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Use Cocktail for Mavericks as default\n\nCocktail for Mountain Lion moved to caskroom/homebrew-versions\r\n\r\nCloses #1354"
},
{
"from": "human",
"value": "class Cocktail < Cask\n url 'http://usa.maintain.se/CocktailMLE.dmg'\n homepage 'http://maintain.se/cocktai... | ruby | chosen |
[
{
"from": "system",
"value": "Add uninstall stanza for DNSCrypt\n"
},
{
"from": "human",
"value": "class Dnscrypt < Cask\n url 'http://download.dnscrypt.org/guis/opendns/osx/dnscrypt-osx-client-0.19.dmg'\n homepage 'http://opendns.github.io/dnscrypt-osx-client/'\n version '0.19'\n sha256 '36... | ruby | chosen |
[
{
"from": "system",
"value": "Add platform version to podspec"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"DWTagList\"\n s.version = \"0.1\"\n s.summary = \"Create a list of tags from an NSArray to be show in a view with customisable fonts, colors etc.\... | ruby | chosen |
[
{
"from": "system",
"value": "Change iOS version of .podspec to '8.0' .\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"FSCalendar\"\n s.version = \"2.8.0\"\n s.summary = \"A superiorly awesome iOS7+ calendar control, compatible with Object... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up user test script\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass UsersControllerTest < ActionController::TestCase\n setup do\n @user = users(:one)\n end\n\n test 'should get index' do\n get :index\n assert_response :success\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add generic_exception_handler rescue_from to the utils controller\n"
},
{
"from": "human",
"value": "require 'v1/bulk_download'\n\nmodule V1\n\n class UtilsController < ApplicationController\n before_filter :authenticate\n #rescue_from Exception, :with => :ge... | ruby | chosen |
[
{
"from": "system",
"value": "Remove root object logging from service class update status method.\n"
},
{
"from": "human",
"value": "#\n# Description: This method updates the service provisioning status\n# Required inputs: status, status_state\n#\n\n$evm.log(\"info\", \"=========================... | ruby | chosen |
[
{
"from": "system",
"value": "Remove an internal method from compat\n"
},
{
"from": "human",
"value": "class Formula\n def fails_with_llvm msg=nil, data=nil\n opoo \"Calling fails_with_llvm in the install method is deprecated\"\n puts \"Use the fails_with DSL instead\"\n end\n\n def fai... | ruby | chosen |
[
{
"from": "system",
"value": "Change namespace of Active Storage rake task\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nnamespace :activestorage do\n desc \"Copy over the migration needed to the application\"\n task install: :environment do\n Rake::Task[\"active_stora... | ruby | chosen |
[
{
"from": "system",
"value": "Add arc requirement to podspec file\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"AMPEasyTable\"\n s.version = \"0.0.1\"\n s.summary = \"UITableView delegate manager based on blocks with static and dynamic heigth calcula... | ruby | chosen |
[
{
"from": "system",
"value": "Add error.rb to the gem.\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/rest', __FILE__)\n\nGem::Specification.new do |spec|\n spec.name = 'nap'\n spec.version = REST::VERSION\n\n spec.author = \"Manfred Stienstra\"\n spec.email = \"manfred@... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Ring channel test case (change custom sample channel)\n\nIt was Branding annotation subclassing Card annotation\non yt-annotation gem. Add Branding Card to our sample channel.\n"
},
{
"from": "human",
"value": "require 'test_helper'\nrequire 'yt/audit'\n\ncla... | ruby | chosen |
[
{
"from": "system",
"value": "Bump version to highlight breaking changes.\n\nThis is a version bump as commits for #56 caused some breaking\nchanges. Since we haven't pushed 0.4.4 yet to supermarket (or tagged\nrelease, for that matter) let's bump this. There are a few pull-requests\nthat we are waiting on ... | ruby | chosen |
[
{
"from": "system",
"value": "Use README.md in the gemspec too.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = 'nap'\n spec.version = '0.5'\n\n spec.author = \"Manfred Stienstra\"\n spec.email = \"manfred@fngtps.com\"\n\n spec.description = <<-EOF\n Nap... | ruby | chosen |
[
{
"from": "system",
"value": "Create log dir before cucumber tests\n"
},
{
"from": "human",
"value": "require 'fileutils'\nrequire_relative \"../../lib/cranium\"\n\n\nCranium.configure do |config|\n config.greenplum_connection_string = \"postgres://cranium:cranium@192.168.56.43:5432/cranium\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add a place for post-test cleanup to go\n\nTests should be idempotent when run without VCR. 0:05\n"
},
{
"from": "human",
"value": "$:.unshift File.join( File.dirname(__FILE__), \"..\", \"..\", \"lib\")\n\nrequire 'simplecov'\nrequire 'simplecov-rcov'\nSimpleCov.for... | ruby | chosen |
[
{
"from": "human",
"value": "Add support for feature testing of live requests.\n"
},
{
"from": "gpt",
"value": "require 'vcr'\n\nVCR.config do |conf|\n conf.stub_with :webmock\n conf.cassette_library_dir = 'features/cassettes'\n conf.default_cassette_options = { :record => :new_episodes }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add dm-sqlite-adapter in development dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/postfix_admin/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.add_dependency 'thor'\n gem.add_dependency 'da... | ruby | chosen |
[
{
"from": "system",
"value": "Use super instead of write_attribute\n"
},
{
"from": "human",
"value": "module ActiveRecord\n module DatabaseValidations\n module StringTruncator\n extend ActiveSupport::Concern\n\n def truncate_value_to_field_limit(field, value)\n return if val... | ruby | chosen |
[
{
"from": "system",
"value": "Add explicit version range to msgpack dependency\n\n`msgpack` version 0.6.0 introduces some breaking changes, so it is now\nnecessary to specify version range for this dependency until that issue\nis resolved.\n"
},
{
"from": "human",
"value": "Gem::Specification.ne... | ruby | chosen |
[
{
"from": "system",
"value": "Update bootstrap-sass dependency in spree/frontend\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\nversion = File.read(File.expand_path(\"../../SPREE_VERSION\", __FILE__)).strip\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a test of default values\n"
},
{
"from": "human",
"value": "assert(\"MrbgemTemplate.parse_options!\") do\n argv = [\n \"-l\", \"Apache 2.0\",\n \"-u\", \"matsumoto-r\",\n \"-p\", \"/path/to/root\",\n \"-c\", \"FooClass\",\n \"-a\", \"Ryosuke Mats... | ruby | chosen |
[
{
"from": "system",
"value": "Fix visualizations table by casting the type of the map_id column\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nclass VisualizationsMigration < Sequel::Migration\n def up\n drop_table :visualizations\n create_table :visualizations do\n String ... | ruby | chosen |
[
{
"from": "system",
"value": "Add password_digest column if users table already exists\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass CreateUsers < ActiveRecord::Migration[4.2]\n def change\n return if table_exists? :users\n\n create_table :users do |t|\n t... | ruby | chosen |
[
{
"from": "system",
"value": "Update to use latest devise version\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'grape_devise_token_auth/version'\n\nGem::Specification.new do |spec|... | ruby | chosen |
[
{
"from": "system",
"value": "Fix calling `.empty?` on `nil` (Faraday Monkey Patch)\n\nIf `env[:request][:proxy]` was `nil` an error would be raised as `nil` does not have `.empty?`. This caused problems with code that used Faraday (such as librato-rack)."
},
{
"from": "human",
"value": "requir... | ruby | chosen |
[
{
"from": "system",
"value": "Add config switch to enable/disable email sending\n"
},
{
"from": "human",
"value": "require 'sinatra'\nrequire_relative './complaint_form'\nrequire_relative './main_layout'\nrequire_relative './complainant'\n\nset :public_folder, 'public'\n\nget '/' do\n Complaint... | ruby | chosen |
[
{
"from": "system",
"value": "Update specs following simplification of SpecialRoutePublisher\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\nrequire_relative \"../../lib/special_route_publisher\"\n\nRSpec.describe SpecialRoutePublisher do\n describe \"publish\" do\n it \"calls '... | ruby | chosen |
[
{
"from": "human",
"value": "Add authorization spec for active_admin.\n\n- Only superadmins are allowed to use the backend (/admin).\n- Users, Admins and Guests are not authorized.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe 'Active Admin' do\n\n it \"authorizes a superad... | ruby | chosen |
[
{
"from": "system",
"value": "Adjust dependencies to address installation errors on Travis CI\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/loc_scraper/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'loc_scraper'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow rails >= 3.2 (including 4+)\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"json_yaml_assets/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new d... | ruby | chosen |
[
{
"from": "human",
"value": "Add a stub that will let you mostly boot a rails app\n"
},
{
"from": "gpt",
"value": "class ApplicationController\n def self.before_filter(*args)\n end\nend\n\nclass ActionView\n module Helpers\n module JavaScriptHelper\n end\n end\nend\n\nmodule ActiveReco... | ruby | chosen |
[
{
"from": "system",
"value": "Add license flag to the gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"jquery/datatables/rails/version\"\n\nGem::Specification.new do |s|\n s.name = \"jquery-datatables-rails\"\n s.ve... | ruby | chosen |
[
{
"from": "system",
"value": "Update for releasing v21 of the gem\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"rubyfromexcel\"\n s.add_dependency('nokogiri','>= 1.4.1')\n s.add_dependency('rubyscriptwriter','>= 0.0.1')\n s.add_dependency('rubypeg','>= 0.0.2')... | ruby | chosen |
[
{
"from": "system",
"value": "Fix require path in example\n"
},
{
"from": "human",
"value": "# An example post-processing workflow using polisher\n\nrequire 'polisher/git'\nrequire 'polisher/rpmspec'\nrequire 'polisher/gem'\n\ngit = Polisher::GitPackage.clone('rails')\nspec = Polisher::RPM::Spe... | ruby | chosen |
[
{
"from": "system",
"value": "Add blank line between require statement and spec definition\n\nTo improve readability.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\nRSpec.describe SaveToCloudStorageWorker, type: :worker do\n let(:worker) { described_class.new }\n\n describe \"#perf... | ruby | chosen |
[
{
"from": "system",
"value": "Use Resque for background jobs if present.\n"
},
{
"from": "human",
"value": "require 'mixpanel'\n\nmodule AbPanel\n module Mixpanel\n class Tracker < ::Mixpanel::Tracker\n def initialize(options={})\n @tracker = ::Mixpanel::Tracker.new Config.token,... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor deep-freeze for 1.8-dev support\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nrequire \"graphql\"\n\nmodule GraphQL\n module Language\n module Nodes\n # :nodoc:\n class AbstractNode\n # Public: Freeze entire Node tre... | ruby | chosen |
[
{
"from": "system",
"value": "Update name servers on deployment\n"
},
{
"from": "human",
"value": "DOMAIN = 'code2d.net'.freeze\nREGION = 'us-east-1'.freeze\n\nTERRAFORM_VARS = \"-var domain=#{DOMAIN} -var region=#{REGION}\".freeze\n\ntask :build do\n cd 'app' do\n sh 'rake build'\n end\nen... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade pg from 0.18 to 1.2.3. Note: pg 1.x does not support Redshift (PostgreSQL 8)\n"
},
{
"from": "human",
"value": "require_relative 'lib/bricolage/version'\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'bricolage'\n s.versio... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for ruby 1.8.7 and ree\n"
},
{
"from": "human",
"value": "module ApiClient\n # ApiClient::Configuration provides a way to configure ApiClient globally.\n class Configuration\n attr_accessor :mock\n attr_reader :header\n\n # Return the api url.\n #\... | ruby | chosen |
[
{
"from": "system",
"value": "Add a power level restriction on Echo\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n# frozen_string_literal: true\n\nmodule Chatrix\n class Bot\n module Plugins\n # Provides a command to make the bot echo what was passed in as\n # argument to t... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor `JSON.to_nil` to use `eql?`\n\nThe check\n\n input.is_a?(String) && input == ''\n\nis equivalent to\n\n ''.eql?(input)\n\nsince `eql?` does not permit coercion\n"
},
{
"from": "human",
"value": "require 'date'\nrequire 'bigdecimal'\nrequire 'bigdecimal/ut... | ruby | chosen |
[
{
"from": "system",
"value": "Allow variables to be passed through via CLI\n"
},
{
"from": "human",
"value": "require 'masamune'\nrequire 'thor'\n\nmodule Masamune::Tasks\n class HiveThor < Thor\n include Masamune::Thor\n include Masamune::Actions::ElasticMapreduce\n include Masamune::... | ruby | chosen |
[
{
"from": "system",
"value": "Include ap (awesome_print) in list of print methods"
},
{
"from": "human",
"value": "# encoding: utf-8\n# frozen_string_literal: true\n\nmodule RuboCop\n module Cop\n module Rails\n # This cop checks for the use of output calls like puts and print\n cl... | ruby | chosen |
[
{
"from": "system",
"value": "Remove `executables` since this gem doesn't provide any command [ci skip]\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'rakuten_web_service/version'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use React-Core instead of React\n\nWe should depend on React-Core instead of React according to facebook/react-native#29633 (comment). You can check all the related PRs links to this issue."
},
{
"from": "human",
"value": "require 'json'\n\n# expect package.json in ... | ruby | chosen |
[
{
"from": "system",
"value": "Modify virtual_path in ActionView::Template for TESTING\n"
},
{
"from": "human",
"value": "module Jpmobile\n class Resolver < ActionView::FileSystemResolver\n EXTENSIONS = [:locale, :formats, :handlers, :mobile]\n DEFAULT_PATTERN = \":prefix/:action{_:mobile,... | ruby | chosen |
[
{
"from": "system",
"value": "Change how class methods are specified in Fabricator\n"
},
{
"from": "human",
"value": "class Fabrication::Fabricator\n\n class << self\n\n def define(name, options={}, &block)\n raise Fabrication::DuplicateFabricatorError, \"'#{name}' is already defined\" ... | ruby | chosen |
[
{
"from": "system",
"value": "Stop shipping the Gemfile and Gemspec in the gem\n\nWe never appbundler this app so we don't need either of these.\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_pa... | ruby | chosen |
[
{
"from": "system",
"value": "Add route for plugin administration\n"
},
{
"from": "human",
"value": "Dir.glob(File.join(Rails.root, 'config', 'plugins', '*', 'controllers')) do |dir|\n plugin_name = File.basename(File.dirname(dir))\n map.connect 'plugin/' + plugin_name + '/:action/:id', :contr... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary code in Lexer pointed out by Stepan\n"
},
{
"from": "human",
"value": "require 'strscan'\n\nmodule SimpleTemplates\n class Lexer\n Token = Struct.new(:type, :content, :pos)\n\n TOKENS = {\n lt: /\\\\</,\n gt: /\\\\>/... | ruby | chosen |
[
{
"from": "system",
"value": "Change the version number to 1.4.10.\n"
},
{
"from": "human",
"value": "spec = Gem::Specification.new do |s|\n s.name = \"twitter-text\"\n s.version = \"1.4.9\"\n s.authors = [\"Matt Sanford\", \"Patrick Ewing\", \"Ben Cherry\", \"Britt Selvitelle\",\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update gli dependency to version 2.5.4.\n"
},
{
"from": "human",
"value": "# -*- mode: ruby -*-\n\nGem::Specification.new do |s|\n s.name = \"mysql-tools\"\n s.version = \"9999.9.9\"\n s.platform = Gem::Platform::RUBY\n s.authors = [ \"Jens Bra... | ruby | chosen |
[
{
"from": "system",
"value": "Add a user agent to API requests"
},
{
"from": "human",
"value": "module Zuora\n class HttpClient\n include HTTParty\n\n format :json\n headers \"Accept\" => \"application/json\"\n headers \"Content-Type\" => \"application/json\"\n end\nend\n"
},
... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.