conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Make sure we get the latest epel release. If we don't do this and someone yum updates a box it breaks chef. Found out the hard way.\n\n\nFormer-commit-id: 82e38889b207dee7b4fca02c7dcbacd96a552fc8 [formerly 1ad52aeae55bcf40fed1cc8a6179ebcc575c66f7] [formerly 87cb199e9559df1e75... | ruby | chosen |
[
{
"from": "system",
"value": "Add pry to dev dependencies\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'stateoscope/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Add wiki macro for BBB link\n\nUsage:\r\n{{bbb}} - link to the current project meeting room\r\n{{bbb(project_id)}} - link to the meeting room for project_id"
},
{
"from": "human",
"value": "#WebDav plugin for REDMINE\nrequire 'redmine'\nDir::foreach(File.join(File.d... | ruby | chosen |
[
{
"from": "system",
"value": "Make User Omniauthable via bnet\n"
},
{
"from": "human",
"value": "class User < ApplicationRecord\n # Include default devise modules. Others available are:\n # :confirmable, :lockable, :timeoutable and :omniauthable\n devise :database_authenticatable, :registerab... | ruby | chosen |
[
{
"from": "system",
"value": "Update Homebrew recipe shasum for v1.0 tarball.\n"
},
{
"from": "human",
"value": "class TarsnapGui < Formula\n desc \"Cross-platform GUI front-end for the Tarsnap command-line client.\"\n homepage \"https://github.com/Tarsnap/tarsnap-gui/wiki/Tarsnap\"\n url \"h... | ruby | chosen |
[
{
"from": "system",
"value": "Modify Style/NilComparison to use NodePattern\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule RuboCop\n module Cop\n module Style\n # This cop checks for comparison of something with nil using ==.\n #\n # @example\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Resolve merge conflict in seed file\n"
},
{
"from": "human",
"value": "# This file should contain all the record creation needed to seed the database with its default values.\n# The data can then be loaded with the rake db:seed (or created alongside the db with db:s... | ruby | chosen |
[
{
"from": "human",
"value": "Add file for manually checking syntax highlighting\n\nCurrently there is no good to automate tests for the syntax highglighting. But this is better than nothing.\n"
},
{
"from": "gpt",
"value": "# This spec file is for manually checking the syntax highlighting. It i... | ruby | chosen |
[
{
"from": "human",
"value": "Add a task to install a bundler 2 dev gem\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nnamespace :bundler_2 do\n task :install do\n ENV[\"BUNDLER_SPEC_SUB_VERSION\"] = \"2.0.0.dev\"\n Rake::Task[\"spec:travis:sub_version\"].invoke\n Rak... | ruby | chosen |
[
{
"from": "system",
"value": "Allow capitalization after a period."
},
{
"from": "human",
"value": "class String\n def titlecase\n small_words = %w(a an and as at but by en for if in of on or the to v v. via vs vs.)\n\n x = split(\" \").map do |word|\n # note: word could contain non-... | ruby | chosen |
[
{
"from": "system",
"value": "Delete non used reference to the gem version.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'new_idea_cms/version'\n\nGem::Specification.new do |spec... | ruby | chosen |
[
{
"from": "system",
"value": "Stop to use invalid XML attribute name\n"
},
{
"from": "human",
"value": "require_relative '../../../spec_helper'\nrequire 'rexml/document'\n\ndescribe \"REXML::Attribute#inspect\" do\n it \"returns the name and value as a string\" do\n a = REXML::Attribute.new(... | ruby | chosen |
[
{
"from": "system",
"value": "Update spec to match new masthead search\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\nrequire 'spec_helper'\n\ndescribe \"Global assets javascript\" do\n let(:user) { create(:user) }\n before(:each) do\n login(user.username, \"\") # Stubbed auth\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix encoding issue on pantheons spec for ruby 1.9.3\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Pantheons' do\n subject { GodvilleKit::Pantheons.new(raw_pantheons_data) }\n\n let(:raw_pantheons_data) { JSON.parse(fixture_contents('raw_pan... | ruby | chosen |
[
{
"from": "system",
"value": "Prepare to introduce locator resolver.\n"
},
{
"from": "human",
"value": "module Cucumber\n module Salad\n module Widgets\n class Form < Widget\n def self.check_box(name, label = nil)\n define_method \"#{name}=\" do |val|\n l = la... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for JRuby 9K compatibility\n\nhttps://github.com/lenny/log4jruby/issues/14\n"
},
{
"from": "human",
"value": "require 'thread'\n\nJava::org.apache.log4j.Logger.class_eval do\n attr_accessor :ruby_logger\n @ruby_logger_lock = Mutex.new\n\n class << self\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Set default SASS encoding to UTF-8\n"
},
{
"from": "human",
"value": "# Require any additional compass plugins here.\n\n# Set this to the root of your project when deployed:\nhttp_path = \"/\"\ncss_dir = \"stylesheets\"\nsass_dir = \"stylesheets\"\nimages_dir = \"im... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as a dependency for TravisCI."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'simple_km/version'\n\nGem::Specification.new do |gem|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove redundant use of to_i\n"
},
{
"from": "human",
"value": "# TODO: Add option to service.fetch to disable paging\n# TODO: Restrict question title length to n characters\n\nclass NiceQuestion < Badge\n series :nice_question\n\n def progress_title\n \"You're... | ruby | chosen |
[
{
"from": "system",
"value": "Use login shell to load envs to run commands.\n"
},
{
"from": "human",
"value": "require 'open3'\n\nmodule SystemCommand\n\n def log(msg)\n format_msg = \"\\e[1;35m-----> \\e[1;33m\" + msg.to_s + \"\\e[0m\\n\"\n simple_log format_msg\n end\n\n def simple_lo... | ruby | chosen |
[
{
"from": "system",
"value": "Return full user and org info.\n"
},
{
"from": "human",
"value": "require 'omniauth-oauth2'\n\nmodule OmniAuth\n module Strategies\n class Adstage < OmniAuth::Strategies::OAuth2\n # change the class name and the :name option to match your application name\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use html formatter for rspec\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule PcRailsCodeQuality\n # :nodoc:\n module Tests\n require 'simplecov'\n\n SimpleCov.start 'rails' do\n coverage_dir 'public/reports/simplecov'\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Allow up through Rails 6\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'racym/version'\n\nGem::Specification.new do |spec|\n spec.name = \"ra... | ruby | chosen |
[
{
"from": "system",
"value": "Test that selecting Rust 2021 works\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'support/editor'\nrequire 'support/playground_actions'\n\nRSpec.feature \"Multiple Rust editions\", type: :feature, js: true do\n include PlaygroundActions\n\n be... | ruby | chosen |
[
{
"from": "system",
"value": "Move Chef requirement to runtime.\n"
},
{
"from": "human",
"value": "require 'chef/cookbook/metadata'\n\nmodule Vendorificator::Hooks\n module ChefCookbookDependencies\n # Add required Chef cookbooks to vendor modules\n def dependencies\n ignored =\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary (and broken) call to \"scoped\"\n"
},
{
"from": "human",
"value": "class Data::ScenariosController < Data::BaseController\n layout 'application'\n\n before_filter :find_scenario, :only => [:show, :edit, :update]\n\n def index\n base = Scenar... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce size of the gem by only including the necessary files via gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$LOAD_PATH.push File.expand_path('../lib', __FILE__)\n\nrequire 'pronto/spell/version'\n\nGem::Specification.new do |s|\n s.name =... | ruby | chosen |
[
{
"from": "system",
"value": "Use version 2, and provide a window\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n$LOAD_PATH.unshift File.dirname(__FILE__)\n$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\nrequire 'rspec'\n\nrequire 'guards'\nrequire 'server'\n\nrequire 'operawa... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for CreateOrganizationFromArray service class\n"
},
{
"from": "human",
"value": "class CreateOrganizationFromArray\n\n def initialize(row, mappings)\n @row = row\n @mappings = mappings\n end\n\n def call(validate)\n check_columns_in\n return... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as a development dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |gem|\n gem.authors = [\"Matt House\"]\n gem.email = [\"matt@eightbitraptor.com\"]\n gem.description = %q{Cucumber Plugin ... | ruby | chosen |
[
{
"from": "human",
"value": "Add some tests for VIEWS.\n"
},
{
"from": "gpt",
"value": "\n$: << File.dirname(__FILE__)\nrequire \"test_helper\"\n\nclass ViewsTests < PostgreSQLExtensionsTestCase\n def test_create_view\n Mig.create_view(\"foos_view\", \"SELECT * FROM foos\")\n Mig.create_v... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Reject \"/test/\" from the coverage metrics target\"\n\nThis reverts commit 0f4faf7fc995298cfd805ccef5913b0a040ae21b.\n"
},
{
"from": "human",
"value": "require 'simplecov'\nrequire 'coveralls'\nrequire 'test/unit'\n\nCoveralls.wear!\nif ENV['CI'] != 'true'... | ruby | chosen |
[
{
"from": "system",
"value": "Declare specific routes to get rid of deprecation warning\n\nDynamic :controller/:action route segments are deprecated in Rails:\n\n DEPRECATION WARNING: Using a dynamic :controller segment in a route\n is deprecated and will be removed in Rails 6.1.\n\n DEPRECATION WA... | ruby | chosen |
[
{
"from": "system",
"value": "Fix warning about an ActiveSupport's configuration deprecation.\n"
},
{
"from": "human",
"value": "require 'factory_girl'\nrequire 'faker'\nrequire 'telegram_bot'\n\n# Load support files\nDir[File.expand_path('../support/**/*.rb', __FILE__)].each { |f| require f }\n... | ruby | chosen |
[
{
"from": "system",
"value": "Change order of things here and there\n"
},
{
"from": "human",
"value": "require 'test/unit'\nrequire 'active_support'\nrequire 'active_support/test_case'\nrequire 'active_record'\nrequire 'logger'\n\n\nplugin_test_dir = File.dirname(__FILE__)\n\nActiveRecord::Base.... | ruby | chosen |
[
{
"from": "system",
"value": "Handle missing or unexecutable git binary\n\nWe need to trap for `Errno::ENOENT` otherwise a missing or\nnon-executable `git` binary will derails us.\n\nThe `stderr` check is only good for times when we were able to actually\nlaunch the binary.\n"
},
{
"from": "human",
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix meeting type to validate against strings instead of symbols\n"
},
{
"from": "human",
"value": "class Minute < ActiveRecord::Base\n include FriendlyId\n friendly_id :meeting_type_and_date, :use => :slugged\n\n include Ofx::HtmlSanitizer\n \n before_validatio... | ruby | chosen |
[
{
"from": "system",
"value": "Add freeze to string constants.\n"
},
{
"from": "human",
"value": "class Person < ActiveRecord::Base\n has_many :employments\n has_many :incomes\n belongs_to :grant\n\n FULL_TIME_STUDENT = \"Full-Time\"\n PART_TIME_STUDENT = \"Part-Time\"\n STUDENT_STATUSES = ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Rake and Bundler versions from Gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'edo/version'\n\nGem::Specification.new do |spec|\n spec.n... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to version 0.2.0 due to major wlang change.\n"
},
{
"from": "human",
"value": "module Anagram\n \n VERSION = \"0.1.35\".freeze\n \nend\n\nbegin\n require 'cruc/dsl_helper'\nrescue LoadError\n $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'vendor'... | ruby | chosen |
[
{
"from": "system",
"value": "Add user expense percentage methods\n"
},
{
"from": "human",
"value": "module Finances\n extend ActiveSupport::Concern\n\n\n def expensesheet_snapshot\n types = expenses.map { |d| ExpenseType.find(d.expense_type_id).name }\n values = expenses.map { |d| d.amo... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.0.1.4 to 0.1.0.0\n(Exception types are not backward compatible)\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'settings'\n s.version = '0.0.1.5'\n s.summary = 'Settings d... | ruby | chosen |
[
{
"from": "system",
"value": "Bump parser dependency to ~> 2.5\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'synvert/core/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Update rspec requirement from ~> 3.10.0 to ~> 3.11.0\n\nUpdates the requirements on [rspec](https://github.com/rspec/rspec-metagem) to permit the latest version.\n- [Release notes](https://github.com/rspec/rspec-metagem/releases)\n- [Commits](https://github.com/rspec/rspec-meta... | ruby | chosen |
[
{
"from": "system",
"value": "Ruby19: Fix gemspec require, add dev dependencies\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\nrequire 'lib/custom_counter_cache/version'\n\nspec = Gem::Specificati... | ruby | chosen |
[
{
"from": "system",
"value": "Update GC.stats options for Ruby 2.2\n"
},
{
"from": "human",
"value": "require 'bundler'; Bundler.setup\na = GC.stat(:total_allocated_object)\n\nrequire 'readthis'\nb = GC.stat(:total_allocated_object)\n\nrequire 'redis-activesupport'\nc = GC.stat(:total_allocated_... | ruby | chosen |
[
{
"from": "system",
"value": "Add future invoke to wait for execution.\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\r\n\r\ndescribe Alloy::Core::RunOnce do\r\n before(:all) { @model = Test::Alloy::Core::RunOnce }\r\n\r\n it { @model.should allow_public_access_for_methods :run_onc... | ruby | chosen |
[
{
"from": "system",
"value": "Allow the fuzz test even more retries\n"
},
{
"from": "human",
"value": "describe \"Producing a lot of messages with an unreliable cluster\", fuzz: true do\n let(:logger) { Logger.new(LOG) }\n let(:kafka) { Kafka.new(seed_brokers: KAFKA_BROKERS, client_id: \"test\... | ruby | chosen |
[
{
"from": "system",
"value": "Change how POP3 spec mocks\n"
},
{
"from": "human",
"value": "require File.expand_path(File.join(File.dirname(__FILE__), '..', '/spec_helper'))\n\ndescribe 'POP3 receiver' do\n\n before do\n @connection = mock('POP3 Connection')\n @connection.stub!(:start).an... | ruby | chosen |
[
{
"from": "system",
"value": "Remove redundant `include` call in system spec helper.\n\n`rspec-system-puppet` helpers are already included few lines above the deleted\nline, which by the way would have no effect anyway.\n"
},
{
"from": "human",
"value": "# This helper file is specific to the sys... | ruby | chosen |
[
{
"from": "system",
"value": "Update checksum and url for Sketch 3.3 Beta\n"
},
{
"from": "human",
"value": "cask :v1 => 'sketch-beta' do\n version '3.3'\n sha256 '275633effb38fa6e2d963efaa8a2fa9e614638fff67db89ab34acc1e7a469a8e'\n\n url 'https://rink.hockeyapp.net/api/2/apps/0172d48cceec1712... | ruby | chosen |
[
{
"from": "system",
"value": "SurveyCreateSpec: Refactor to use contexts in feature\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nfeature 'User signs in' do\n given!(:user) { User.create(email: \"mrpants666@example.com\", password: \"DevilPants\") }\n\n it \"lets a user sign in\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix flaky spec for translations\n\nThis spec was causing a side effect on another spec[2], making it fail 😌\n\nI think it was because no translation had been called yet, in the failing spec, and so the the i18n backend translations had not been initialized, and was always retu... | ruby | chosen |
[
{
"from": "system",
"value": "Change test to include valid option\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nRSpec.describe Loaf::OptionsValidator, '.valid?' do\n let(:klass) { Class.extend Loaf::OptionsValidator }\n\n it 'validates succesfully known option' do\n expect(klass.v... | ruby | chosen |
[
{
"from": "human",
"value": "Add a checksum file check.\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n#\n# Author: AJ Bourg <aj@ajbourg.com>\n#\n# Checks the checksums of files.\n\nrequire 'rubygems' if RUBY_VERSION < '1.9.0'\nrequire 'sensu-plugin/check/cli'\nrequire 'digest'\n\nclass C... | ruby | chosen |
[
{
"from": "system",
"value": "Include key path flag when calling script\n"
},
{
"from": "human",
"value": "module VagrantPlugins\n module HostWindows\n module Cap\n class SSH\n # Set the ownership and permissions for SSH\n # private key\n #\n # @param [Vagran... | ruby | chosen |
[
{
"from": "system",
"value": "Change default value for enabling partners on existing customers\n"
},
{
"from": "human",
"value": "class AlterTableCustomerPartners < ActiveRecord::Migration\n def up\n add_column :customers, :enable_tomtom, :boolean, default: false, null: false\n add_column... | ruby | chosen |
[
{
"from": "system",
"value": "Fix 'activesupport' deprecation warning in require\n"
},
{
"from": "human",
"value": "require 'activesupport'\nrequire 'active_hash/base'\nrequire 'active_file/base'\nrequire 'active_yaml/base'\nrequire 'associations/associations'\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "Add binfiles to the gem\n\nThis is required to make the jara command work, obviously."
},
{
"from": "human",
"value": "# encoding: utf-8\n\n$: << File.expand_path('../lib', __FILE__)\n\nrequire 'jara/version'\n\n\nGem::Specification.new do |s|\n s.name = '... | ruby | chosen |
[
{
"from": "system",
"value": "Use a newer version of Money\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"ebay/version\"\n\nGem::Specification.new do |s|\n s.name = \"ebayapi\"\n s.version = Ebay::VERSION\n s.... | ruby | chosen |
[
{
"from": "system",
"value": "Update spec file with our consistent marketing name - TinyTDS vs TinyTds.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.require_paths = ['lib']\n s.rubygems_version = '1.3.7'\n s.name = 'tiny_tds'\n s.su... | ruby | chosen |
[
{
"from": "system",
"value": "Add QuartzCore as dependency in Podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"PKAnimations\"\n s.version = \"0.1.0\"\n s.summary = \"A convenient way to run UIKit Animations in sequence and/or parallel using differ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow including keyword.h multiple times\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nPATHS = %w(. out libc)\n\ndef merge(c, used)\n c.gsub(/#\\s*include\\s*[<\"](.*?)[>\"]/) do\n name = $1\n fn = PATHS.map{|p|\"#{p}/#{name}\"}.find{|n|File.exist... | ruby | chosen |
[
{
"from": "system",
"value": "Disable null character check for PostgreSQL.\n\nSeems pg updates don't allow such strings in the database. Fine by me.\n"
},
{
"from": "human",
"value": "require 'acceptance/spec_helper'\n\ndescribe 'Updates to records in real-time indices', :live => true do\n it \... | ruby | chosen |
[
{
"from": "system",
"value": "Enable self-check of code style\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\ndescribe 'RuboCop Project' do\n describe '.rubocop.yml' do\n it 'has configuration for all cops' do\n cop_names = Rubocop::Cop::Cop.all.map(&:co... | ruby | chosen |
[
{
"from": "system",
"value": "Remove cleanup commands; Use installed cabal path\n"
},
{
"from": "human",
"value": "name \"cabal-update\"\n\nbuild do\n # clean out any previous installation details\n command \"rm -rf ~/.cabal ~/.ghc\"\n # pull in latest package db\n command \"/usr/bin/cabal u... | ruby | chosen |
[
{
"from": "system",
"value": "Set 8080 as default listening port and removed the call to 'run'.\n"
},
{
"from": "human",
"value": "require 'sinatra/base'\n\nclass MockInhalt < Sinatra::Base\n get '/' do\n 'Hello MockInhalt!'\n end\n\n # start the server if ruby file executed directly\n ru... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused id select, not used in existing code\n"
},
{
"from": "human",
"value": "require \"rubygems/text\"\n\nclass GemTypo\n attr_reader :protected_gem\n\n def initialize(rubygem_name)\n @rubygem_name = rubygem_name\n end\n\n def protected_typo?\n re... | ruby | chosen |
[
{
"from": "system",
"value": "Replace fiddle with DL to avoid compatibility issues with older rubies.\n"
},
{
"from": "human",
"value": "# coding: utf-8\r\n\r\n#* windows/win_32_api.rb - Support for selected low level Win32 API entry points.\r\nmodule MiniReadline\r\n\r\n require 'fiddle'\r\n\r... | ruby | chosen |
[
{
"from": "system",
"value": "Remove MutationType from LiveLogSchema temporally\n"
},
{
"from": "human",
"value": "class LiveLogSchema < GraphQL::Schema\n mutation(Types::MutationType)\n query(Types::QueryType)\n\n context_class CustomContext\n\n max_complexity 200\n max_depth 16\n default... | ruby | chosen |
[
{
"from": "system",
"value": "Change cancel button style from secondary to complementary-outline\n"
},
{
"from": "human",
"value": "module ProfileHelper\n def edit_profile_button\n link_to t(:edit_profile), :edit_user, class: 'btn btn-complementary'\n end\n\n def cancel_edit_profile_button... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Mamp Pro to 3.0.7.2\n"
},
{
"from": "human",
"value": "class Mamp < Cask\n version '3.0.7.1'\n sha256 'ec80adf7ed676de48c712d08918bcbf45e340bde6d9e0510b72c22565465b90b'\n\n url \"http://downloads4.mamp.info/MAMP-PRO/releases/#{version}/MAMP_MAMP_PRO_#{ver... | ruby | chosen |
[
{
"from": "system",
"value": "Add support Elasticsearch 1.x version of gem"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\n\nGem::Specification.new do |s|\n s.name = 'fluent-plugin-elasticsearch'\n s.version = '0.4.0'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use etag instead of last-modified when checking fresh_when\n"
},
{
"from": "human",
"value": "class WelcomeController < ApplicationController\n etag { can? :manage, Entity } # Don't cache admin content together with the rest\n\n def index \n # Highlight manu... | ruby | chosen |
[
{
"from": "system",
"value": "Update test to expect multiple concerns\n"
},
{
"from": "human",
"value": "describe Sufia::MySharesSearchBuilder do\n let(:me) { create(:user) }\n let(:config) { CatalogController.blacklight_config }\n let(:scope) do\n double('The scope',\n blackligh... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Fix pagination paths in Rails 4.2\"\n\nThis reverts commit a920fdb615171394f24a26d9be23eeda5cf421b1.\n"
},
{
"from": "human",
"value": "module Blog::PaginationHelper\n WILL_PAGINATE_BASE = defined?(WillPaginate::ViewHelpers) ? WillPaginate::ViewHelpers::Li... | ruby | chosen |
[
{
"from": "system",
"value": "Use Redis on port 8045\n"
},
{
"from": "human",
"value": "\nunless defined?(BONED_HOME)\n BONED_HOME = File.expand_path(File.join(File.dirname(__FILE__), '..') )\nend\n\nlocal_libs = %w{bone}\nlocal_libs.each { |dir| \n a = File.join(BONED_HOME, '..', '..', 'opens... | ruby | chosen |
[
{
"from": "system",
"value": "Rename manifest file to .manifest.json\n"
},
{
"from": "human",
"value": "module Chest\n PLUGINS_FOLDER = File.expand_path('~/Library/Containers/com.bohemiancoding.sketch3/Data/Library/Application Support/com.bohemiancoding.sketch3/Plugins')\n MANIFEST_PATH = File... | ruby | chosen |
[
{
"from": "system",
"value": "Update SQLite port to 3.7.13\n"
},
{
"from": "human",
"value": "# use rake-compiler for building the extension\nrequire 'rake/extensiontask'\n\n# NOTE: version used by cross compilation of Windows native extension\n# It do not affect compilation under other operatin... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec file for v2.1.1 release\n\nSigned-off-by: Ron Evans <b937b287f61b7a223d4aac55072db1a5381d3bb3@hybridgroup.com>\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'hebruby'\n s.version = '2.1.0'\n s.date = ... | ruby | chosen |
[
{
"from": "system",
"value": "Use correct spelling of activesupport\n\nThis allows updating to newer versions of activesupport than 3.0.0.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"hubtime/version\"\n\nGem::Specificati... | ruby | chosen |
[
{
"from": "system",
"value": "Undo the damage writing code at stupid o'clock will do.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n$LOAD_PATH.unshift(__dir__)\n\nrequire 'helper'\n\ndescribe 'Post' do\n subject do\n filename = Tilt.new(File.join(__dir__, 'templates', \... | ruby | chosen |
[
{
"from": "system",
"value": "Add Ripl.started?, idea from @janlelis\n"
},
{
"from": "human",
"value": "module Ripl\n def self.config\n @config ||= {:readline => true, :riplrc => '~/.riplrc', :completion => {}}\n end\n\n def self.start(*args); Runner.start(*args); end\n\n def self.plugins... | ruby | chosen |
[
{
"from": "system",
"value": "Check for length first in palindrome?\n"
},
{
"from": "human",
"value": "module Twitter\n class Tweet\n def palindrome?(min_length)\n essence = to_essence\n essence == essence.reverse && essence.length >= min_length\n end\n\n private\n\n def t... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec dependency commander to ~> 4.4.0\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'cuba/generator/version'\n\nGem::Specification.new do |sp... | ruby | chosen |
[
{
"from": "system",
"value": "Add put and index actions\n"
},
{
"from": "human",
"value": "class ContentController < ApplicationController\n around_filter :track_user\n\n def home\n end\n\n def post\n redirect_to root_path\n end\n\n def delete\n redirect_to root_path\n end\n\nend\n"... | ruby | chosen |
[
{
"from": "human",
"value": "Test for cancelling a delayed job from the search page\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nfeature 'cancelling a delayed job' do\n\n let(:some_time_in_the_future) { Time.now + 3600 }\n\n scenario 'cancelling the job from the search page' do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for Jiratools 0.3.3 filename/SHA\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Jiratools < Formula\n desc \"Collection of command-line tool(s) for Jira.\"\n homepage \"https://github.com/lottadot/jiratools\"\n url \"https://github.com/lottadot... | ruby | chosen |
[
{
"from": "human",
"value": "Add a formula for pgrep/pfind/pkill.\n"
},
{
"from": "gpt",
"value": "require 'brewkit'\n\nclass Proctools <Formula\n @version='0.4pre1'\n @url='http://downloads.sourceforge.net/project/proctools/proctools/0.4pre1/proctools-0.4pre1.tar.gz'\n @homepage='http://sour... | ruby | chosen |
[
{
"from": "system",
"value": "Set the ports in the test recipe\n"
},
{
"from": "human",
"value": "memcached_instance 'web_cache' do\n port 11_212\n memory 64\n action [:start, :enable]\nend\n\nuser 'memcached_other_user'\n\nmemcached_instance 'backend_cache' do\n port 11_213\n memory 64\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update rake dependency to 10.1.0\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/lib/steam-condenser/version')\n\nGem::Specification.new do |s|\n s.name = 'steam-condenser'\n s.version = SteamCondenser::VERSION\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Rename post_feed to main_feed, and remove the json feed format\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Dimples\n module Configuration\n def self.defaults\n {\n source_path: Dir.pwd,\n destination_path: File.j... | ruby | chosen |
[
{
"from": "system",
"value": "Include POST data with Sentry reports\n\nNo data POSTed to ETEngine contains user information, and is required to\naccurately reproduce errors which occur during scenario updates.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nRaven.configure do... | ruby | chosen |
[
{
"from": "system",
"value": "Use simple strings instead of symbols for the action\n"
},
{
"from": "human",
"value": "class Activity < ActiveRecord::Base\n named_scope :by_user, lambda { |users|\n { :conditions => { :user_id => users}}\n }\n\n named_scope :by_action, lambda { |action|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert THOR_DEBUG to the default for proper tests\n"
},
{
"from": "human",
"value": "require 'aruba/api'\nrequire 'aruba/cucumber'\nrequire 'fileutils'\nrequire 'vim-flavor'\n\nclass FakeUserEnvironment\n include Vim::Flavor::ShellUtility\n\n def expand(virtual_pa... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Knapsack report generation for Spinach\n"
},
{
"from": "human",
"value": "if ENV['SIMPLECOV']\n require 'simplecov'\nend\n\nENV['RAILS_ENV'] = 'test'\nrequire './config/environment'\nrequire 'rspec/expectations'\nrequire 'sidekiq/testing/inline'\n\nrequire_rela... | ruby | chosen |
[
{
"from": "system",
"value": "Add static files to `assets.precompile`\n\nThis avoids errors in apps using sprockets-rails > 3\n"
},
{
"from": "human",
"value": "module GovukTemplate\n class Engine < ::Rails::Engine\n initializer \"govuk_template.assets.precompile\" do |app|\n app.config... | ruby | chosen |
[
{
"from": "system",
"value": "Fix | Recursive pretty errors\n"
},
{
"from": "human",
"value": "module Mongoff\n module PrettyErrors\n def pretty_errors(record)\n return {} unless record\n errors = record.errors.messages.dup.with_indifferent_access\n if errors.key?(:base) && !p... | ruby | chosen |
[
{
"from": "system",
"value": "Set maximun and minimum values of RGB by integer\n"
},
{
"from": "human",
"value": "module Photomosaic::Color\n class RGB\n attr_reader :red, :green, :blue\n\n def initialize(red, green, blue)\n @red = red\n @green = green\n @blue = blue\n e... | ruby | chosen |
[
{
"from": "human",
"value": "Add a test to prevent unused i18n keys\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'i18n/tasks'\n\nclass I18nTest < Minitest::Test\n def test_does_not_have_unused_keys\n unused_keys = I18n::Tasks::BaseTask.new.unused_keys\n msg = ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.