conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Package version is increased from 0.1.4 to 0.1.5\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'set_attributes'\n s.version = '0.1.4'\n s.summary = \"Set an object's attributes from an object or hash with a... | ruby | chosen |
[
{
"from": "human",
"value": "Add Math spec with a few pending tests\n"
},
{
"from": "gpt",
"value": "require File.expand_path(File.dirname(__FILE__) + '/spec_helper')\n\ndescribe Math do\n\n\tit 'should solve a quadratic formula'\n\tit 'should get the number of permutations with n and k'\n\tit '... | ruby | chosen |
[
{
"from": "system",
"value": "Remove attr_accessible calls in test schema."
},
{
"from": "human",
"value": "class Artist < ActiveRecord::Base\n attr_accessible :name, :deceased\n has_many :albums\n has_many :songs, through: :albums\nend\n\nclass Album < ActiveRecord::Base\n attr_accessible :... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to appease gem build\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'ignote/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to the new version tag."
},
{
"from": "human",
"value": "#\n# Author:: Noah Kantrowitz <noah@coderanger.net>\n#\n# Copyright 2014, Balanced, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in co... | ruby | chosen |
[
{
"from": "system",
"value": "Fix polymorphic association in transaction factory"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :transaction do\n amount Faker::Number.number(3)\n user\n project\n end\nend\n"
},
{
"from": "gpt",
"value": "FactoryGirl.defin... | ruby | chosen |
[
{
"from": "human",
"value": "Add integration specs working off rails engine.\n"
},
{
"from": "gpt",
"value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\ndescribe \"Rails integration\", Tytus do\n\n include Integration\n\n let(:controller) { Class.new(ActionController::Base)}\n\n it 'should... | ruby | chosen |
[
{
"from": "human",
"value": "Add a mix of JsonProcess and BaseProcess\n"
},
{
"from": "gpt",
"value": "require 'deadly_serious/engine/json_io'\n\nmodule DeadlySerious\n module Engine\n module SimpleJsonProcess\n def run(readers: [], writers: [])\n reader = JsonIo.new(readers.firs... | ruby | chosen |
[
{
"from": "system",
"value": "Store logger on instance variable\n"
},
{
"from": "human",
"value": "require 'logger'\n\nmodule Midori\n @@logger = ::Logger.new(StringIO.new)\n\n def self.run(api = Midori::API, ip = nil, port = nil, logger = ::Logger.new(STDOUT))\n ip ||= '127.0.0.1'\n por... | ruby | chosen |
[
{
"from": "system",
"value": "Mark the failing EndOfLine CR+LF spec as pending\n\nI'm marking it as pending to restore the build status until we figure\nout what to do with it.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\nmodule Rubocop\n module Cop\n modu... | ruby | chosen |
[
{
"from": "human",
"value": "Save fake s3 server for future use.\n"
},
{
"from": "gpt",
"value": "require 'sinatra/base'\n\nclass UploadServer < Sinatra::Base\n configure do\n set :server, :thin\n end\n\n before do\n response.headers['Access-Control-Allow-Origin'] = '*'\n response.he... | ruby | chosen |
[
{
"from": "system",
"value": "Mark rspec2 or rbx spec bug as pending under rbx\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Mutant::Matcher::Chain, '#each' do\n subject { object.each { |entry| yields << entry } }\n\n let(:object) { described_class.new(matchers) }\n\n l... | ruby | chosen |
[
{
"from": "system",
"value": "Add accessors to simplify function calls\n"
},
{
"from": "human",
"value": "require \"writer/overwrite_prevention\"\n\nmodule Writer\n class FileCreator\n class << self\n def create!(name, content)\n filename = OverwritePrevention.adjust_name(name)\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add Dominant color find test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe Colorname do\n it 'has a version number' do\n expect(Colorname::VERSION).not_to be nil\n end\n\n it 'does something useful' do\n expect(false).to eq(true... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests around RedisRpc.random_id and random_source\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe RedisRpc do\n\n it \"should have a logger\" do\n RedisRpc.logger.wont_equal nil\n end\n\n describe RedisRpc::Packed do\n\n class TestO... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for mime types module.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Github::MimeType do\n\n let(:github) { Github.new }\n\n it \"should lookup mime type for :full\" do\n github.lookup_mime(:full).should == 'full+json'\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change to mock out fork.\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nRSpec.describe TTY::Pager::SystemPager, '.page' do\n let(:input) { StringIO.new }\n let(:output) { StringIO.new }\n\n it \"executes the pager command in a subprocess\" do\n text ... | ruby | chosen |
[
{
"from": "system",
"value": "Include additional blacklisted topic words\n\nMotivation:\n-these words are causing many poor point constructs to surface\n\nChange Explanation:\n-might need to extract these to a file if they get much longer\n"
},
{
"from": "human",
"value": "require 'sinatra'\nreq... | ruby | chosen |
[
{
"from": "system",
"value": "Fix arguments warnings of `ERB.new` on ruby 3.1\n"
},
{
"from": "human",
"value": "require 'ec2ssh/ec2_instances'\nrequire 'erb'\nrequire 'stringio'\n\nmodule Ec2ssh\n class Builder\n def initialize(container)\n @container = container\n safe_level = ni... | ruby | chosen |
[
{
"from": "system",
"value": "Add google_oauth2 to omniauth callbacks controller\n"
},
{
"from": "human",
"value": "class User::OmniauthCallbacksController < Devise::OmniauthCallbacksController\n # You should configure your model like this:\n # devise :omniauthable, omniauth_providers: [:twitt... | ruby | chosen |
[
{
"from": "system",
"value": "Fix references in api user spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe User do\n\n let(:user) { User.new }\n\n context \"#generate_api_key!\" do\n it \"should set authentication_token to a 20 char SHA\" do\n user.generate_api_... | ruby | chosen |
[
{
"from": "system",
"value": "Use SameSite None instead of Strict\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\nRails.application.config.session_store :cookie_store, key: \"_lti_starter_app_session\", secure: true, same_site: true\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Make ISignalInfo test run stand-alone\n"
},
{
"from": "human",
"value": "require 'gir_ffi_test_helper'\n\ndescribe GirFFI::InfoExt::ISignalInfo do\n let(:klass) { Class.new do\n include GirFFI::InfoExt::ICallableInfo\n include GirFFI::InfoExt::ISignalInfo\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix downward sequel migration for test_site\n"
},
{
"from": "human",
"value": "class CreateMeetings < Sequel::Migration\n def up\n create_table :meetings do\n primary_key :id\n varchar :name, :size=>255\n end\n end\n\n def down\n drop_table :of... | ruby | chosen |
[
{
"from": "system",
"value": "Downgrade version number until it is more tested\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'refinerycms-auto_tweets'\n s.version = '1.0'\n s.description = ... | ruby | chosen |
[
{
"from": "system",
"value": "Use size instead of count\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass ChallengePost < ApplicationRecord\n include Recoverable\n include Rails.application.routes.url_helpers\n\n belongs_to :creator, class_name: 'User'\n belongs_to :c... | ruby | chosen |
[
{
"from": "system",
"value": "Use Time.current converted to Date by the database DirectMessage today scope\n\nWhy:\n\n* Database stores created_at as timestamp with the timezone, so when comparing DATE(created_at) to something we have to convert it to DATE as well with the postresql native function, but usi... | ruby | chosen |
[
{
"from": "system",
"value": "Make workflow events be sorted with newest first by default\n"
},
{
"from": "human",
"value": "#------------------------------------------------------------------------------\n#\n# WorkflowEvent\n#\n# A WorkflowEvent that has been associated with another class such ... | ruby | chosen |
[
{
"from": "system",
"value": "Use correct path for web version\n"
},
{
"from": "human",
"value": "require \"album_photos\"\nrequire \"album_processor\"\nrequire \"uploader\"\nrequire 'fileutils'\n\nclass ProcessPhotos\n attr_accessor :title, :to_process\n\n def initialize(title)\n @title = ... | ruby | chosen |
[
{
"from": "system",
"value": "Use gem1.9.1 to install bundle\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: toolkit\n# Recipe:: default\n#\n# Copyright 2011, Cyclestreets Ltd\n\ninclude_recipe 'passenger'\ninclude_recipe 'postgres'\n\ndirectory \"/var/www/toolkit/shared\" do\n owner \"... | ruby | chosen |
[
{
"from": "system",
"value": "Add download URL for 4.6.2\n"
},
{
"from": "human",
"value": "module XcodeDownload\n\nend\n"
},
{
"from": "gpt",
"value": "module XcodeDownload\n\n GUI = {\n '4.6.2' => 'https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode... | ruby | chosen |
[
{
"from": "system",
"value": "Remove support for ancient chefspec\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "if defined?(ChefSpec)\n chefspec_version = Gem.loaded_specs['chefspec'].version\n if chefspec_version < Gem::Versi... | ruby | chosen |
[
{
"from": "human",
"value": "Add test coverage for enabling authenticating-proxy\n"
},
{
"from": "gpt",
"value": "require_relative '../../../../spec_helper'\n\ndescribe 'govuk::node::s_cache', :type => :class do\n let(:node) { 'cache-1.router.somethingsomething' }\n let (:pre_condition) { '$co... | ruby | chosen |
[
{
"from": "system",
"value": "Change to soastainc Twitter account"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"mPulse\"\n s.version = \"2.0.1\"\n s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE'}\n s.summary = \"i... | ruby | chosen |
[
{
"from": "human",
"value": "Cover redirect to previous url with spec\n"
},
{
"from": "gpt",
"value": "describe 'Login' do\n it 'redirects to previous page' do\n password = 'Secret123!'\n user = User.create!(email: 'ab@ex.com', password: password, confirmed_at: Time.current)\n\n visit ... | ruby | chosen |
[
{
"from": "system",
"value": "Drop item, type, and invoice value in default LineItem factory.\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :line_item do\n quantity \"9.99\"\n price \"9.99\"\n code \"MyString\"\n title \"MyString\"\n description \"MyString\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Reset Recipe after each test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'niman/cli/application'\nrequire 'niman/shell'\n\ndescribe Niman::CLI::Application do\n let(:shell) { double(Niman::Shell) }\n subject(:application) { Niman::CLI::Applic... | ruby | chosen |
[
{
"from": "system",
"value": "Remove rubyforge_project from gem spec.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"timeliness/version\"\n\nGem::Specification.new do |s|\n s.name = \"timeliness\"\n s.version =... | ruby | chosen |
[
{
"from": "human",
"value": "Add test of memoized production rules\n"
},
{
"from": "gpt",
"value": "describe Calyx::Production::Memo do\n it 'uses the registry to memoize expansions' do\n registry = double('registry')\n allow(registry).to receive(:memoize_expansion).with(:one).and_return(... | ruby | chosen |
[
{
"from": "system",
"value": "Load correct README in Yard\n"
},
{
"from": "human",
"value": "begin\n require 'yard'\n\n YARD::Rake::YardocTask.new do |t|\n t.files = ['lib/**/*.rb']\n t.options = ['--private', '--protected', '--readme', 'README.rdoc']\n end\nrescue LoadError\nend\n"
... | ruby | chosen |
[
{
"from": "human",
"value": "Add exploratory test program: Uses repository, generates methods dynamically.\n"
},
{
"from": "gpt",
"value": "#\n# Exploratory program to see what kind of method_missing we would need in a\n# module. In the end, this code would have to be generated by the Builder,\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix to allow password reset even if signed in\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass Auth::PasswordsController < Devise::PasswordsController\n layout 'auth'\nend\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce requests for latest changes\n\nThis reduces the number of content store requests required to render a page\nin latest changes from 8(!) to 1.\n\nExample URL: https://www.gov.uk/topic/business-tax/pension-scheme-administration/latest\n"
},
{
"from": "human",
"... | ruby | chosen |
[
{
"from": "system",
"value": "Check if blank? instead of nil?.\n"
},
{
"from": "human",
"value": "class UnreadEntriesController < ApplicationController\n\n def update\n @user = current_user\n @entry = Entry.find(params[:id])\n unread_entry = UnreadEntry.where(user: @user, entry: @entry... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Add a little sleep around the mass uploader, to try and fix the file upload result page showing an outdated status for a server upload\"\n\nThis reverts commit 7d33cc41a5aaf2b15d48b38b01c31f5299bba2ec.\n"
},
{
"from": "human",
"value": "# frozen_string_lite... | ruby | chosen |
[
{
"from": "system",
"value": "Add attribute \"code\" to Semester\n"
},
{
"from": "human",
"value": "module KOSapiClient\n module Entity\n class Semester < BaseEntity\n\n map_data :end_date, Time\n map_data :name, MLString\n map_data :start_date, Time\n end\n end\nend\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Add relations to User model\n"
},
{
"from": "human",
"value": "class User\n include Mongoid::Document\n # Include default devise modules. Others available are:\n # :confirmable, :lockable, :timeoutable and :omniauthable\n devise :database_authenticatable, :regis... | ruby | chosen |
[
{
"from": "system",
"value": "Add confirmable module to User model\n\nAdd devise's confirmable module to the User model. This will allow\nconfirmation of accounts by email after creation.\n"
},
{
"from": "human",
"value": "class User < ActiveRecord::Base\n # Include default devise modules. Othe... | ruby | chosen |
[
{
"from": "human",
"value": "Add day 21: Scrambled Passwords\n"
},
{
"from": "gpt",
"value": "def apply(instructions, input, undo: false)\n instructions.reduce(input.dup) { |pw, (cmd, *args)|\n case cmd\n when :swap_letter\n # Undo == do\n pw.tr(args.join, args.join.reverse)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add an `import_now` task. To import a model without using background jobs.\n"
},
{
"from": "human",
"value": "namespace :active_elastic_schema do\n\n desc \"Creates the Schema for Elastic Search\"\n task create_schema: :environment do\n ActiveElastic::ElasticSc... | ruby | chosen |
[
{
"from": "system",
"value": "Enable HTTPS requests for S3 uploads\n"
},
{
"from": "human",
"value": "require 'aws'\n\nclass PhotoRequest\n def self.configure(config)\n @config = config\n end\n\n def self.aws_config\n AWS.config.with(\n access_key_id: @config[:access_key_id],\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add acceptance test for openldap_access\n"
},
{
"from": "gpt",
"value": "require 'spec_helper_acceptance'\n\ndescribe 'openldap::server::access' do\n\n context 'with defaults' do\n it 'should idempotently run' do\n pp = <<-EOS\n class { 'openldap::ser... | ruby | chosen |
[
{
"from": "system",
"value": "Move set-up and tear-down outside specific context\n\nAs same set-up and tear-down will be required for other testing contexts.\n"
},
{
"from": "human",
"value": "require 'vcloud/tools/tester'\n\nmodule Vcloud::Tools::Tester\n describe TestParameters do\n\n cont... | ruby | chosen |
[
{
"from": "system",
"value": "Add 32bit support to Eclipse Platform\n"
},
{
"from": "human",
"value": "class EclipsePlatform < Cask\n url 'http://download.eclipse.org/eclipse/downloads/drops4/R-4.3.2-201402211700/eclipse-SDK-4.3.2-macosx-cocoa-x86_64.tar.gz'\n homepage 'http://eclipse.org'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove .m file from Podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"XPCSwift\"\n s.version = \"0.0.2\"\n s.summary = \"Type safe Swift wrapper for libxpc\"\n\n s.description = <<-DESC\n XPCSwift... | ruby | chosen |
[
{
"from": "system",
"value": "Add necromancer to list of spawners\n"
},
{
"from": "human",
"value": "\nNONRANDOMIZABLE_PICKUP_GLOBAL_IDS =\n [0x0, 0x37, 0x50, 0xE5, 0x100, 0x124, 0x139, 0x160] + # unequip dummy items (---)\n [0x161] + # unused vampire killer weapon\n [0xE6] + # casual clothes... | ruby | chosen |
[
{
"from": "system",
"value": "Use variables instead of let\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nfeature 'Toggle Whitespace Changes', js: true, feature: true do\n let(:merge_request) { create(:merge_request) }\n let(:project) { merge_request.source_project }\n\n before d... | ruby | chosen |
[
{
"from": "system",
"value": "Update basic AST spec to include error arrays"
},
{
"from": "human",
"value": "RSpec.describe Formalist::Form do\n subject(:form) {\n Class.new(Formalist::Form) do\n field :title, type: \"string\"\n field :rating, type: \"int\"\n end.new\n }\n\n i... | ruby | chosen |
[
{
"from": "system",
"value": "Fix turnstile specs on 1.8.7 and ree\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndef run_in_two_threads(proc1, proc2)\n t1 = Thread.new &proc1\n sleep test_latency # t1 must run before t2\n t2 = Thread.new { proc2.call; Thread.kill t1 }\n t2.join... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec stub for new events api.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Github::Events do\n\n let(:github) { Github.new }\n\n describe \"public_events\" do\n context \"resource found\" do\n before do\n stub_get(\"/events\... | ruby | chosen |
[
{
"from": "system",
"value": "Allow websocket to be any 1.x version"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'pusher-client/version'\n\nGem::Specification.new do |s|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make ruby implementation more idiomatic\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nrequire 'uri'\nrequire 'fileutils'\nrequire 'open-uri'\nrequire 'nokogiri'\n\ndef save_img(src, download_path)\n basename = File.basename(src)\n ext = File.extname(sr... | ruby | chosen |
[
{
"from": "system",
"value": "Use new Dimensions in Window setup\n"
},
{
"from": "human",
"value": "class Window < Gosu::Window\n\n include Poke\n include Dimensions\n\n attr_reader :current_map, :controls\n attr_accessor :paused\n\n def initialize\n @width = Poke::Dimensions::WIDTH\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use instance method instead of class method"
},
{
"from": "human",
"value": "require \"last_hit/version\"\nrequire \"last_hit/configure\"\n\nrequire 'last_hit/rc_adapter'\nrequire 'last_hit/file_filter'\n\nrequire 'last_hit/test_handler'\n\nmodule LastHit\n class <... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify handling of missing event names\n"
},
{
"from": "human",
"value": "require 'kitty_events/version'\nrequire 'kitty_events/handle_worker'\nrequire 'active_job'\n\n# Super simple event system on top of ActiveJob\n#\n# Register a new event:\n# KittyEvents.reg... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude 1.8.7 from using the nicer yaml parser. Its breaks the build as it does not know what the parser is\n"
},
{
"from": "human",
"value": "$:.unshift(File.dirname(__FILE__)) unless\n $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirna... | ruby | chosen |
[
{
"from": "system",
"value": "Increase Asset Manager timeout to 60s\n\nWe are finding that large attachments are not being uploaded to asset\nmanager due to a timeout during the upload. Therefore increasing this\nfrom the default 15s to 60s.\n"
},
{
"from": "human",
"value": "require \"gds_api/p... | ruby | chosen |
[
{
"from": "system",
"value": "Add skeleton for basic API\n"
},
{
"from": "human",
"value": "require \"sonicapi/version\"\n\nmodule Sonicapi\n # Your code goes here...\nend\n"
},
{
"from": "gpt",
"value": "require \"sonicapi/version\"\n\nmodule SonicApi\n class << self\n def auth... | ruby | chosen |
[
{
"from": "system",
"value": "Use `prepend` to avoid creating new string objects\n"
},
{
"from": "human",
"value": "require \"base62/version\"\nrequire \"base62/string\"\nrequire \"base62/integer\"\n\nmodule Base62\n PRIMITIVES = (0..9).collect { |i| i.to_s } + ('A'..'Z').to_a + ('a'..'z').to_a... | ruby | chosen |
[
{
"from": "system",
"value": "Add config.yml to deploy process\n"
},
{
"from": "human",
"value": "# PRODUCTION-specific deployment configuration\n# please put general deployment config in config/deploy/settings.rb\n\nset :user, \"#{application}\"\nset :is_root_domain, true\nset :root_domain, \"t... | ruby | chosen |
[
{
"from": "system",
"value": "Update requirements to permit multi_xml 0.6.0\n\nUpdates requirements to permit [multi_xml 0.6.0](https://github.com/sferik/multi_xml).\n- [Changelog](https://github.com/sferik/multi_xml/blob/master/CHANGELOG.md)"
},
{
"from": "human",
"value": "require File.expand_... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for recursing into directories\n"
},
{
"from": "human",
"value": "require \"whiteout/version\"\nrequire \"optparse\"\n\n# TODO add man page\n\nmodule Whiteout\n def self.execute(*args)\n opts = OptionParser.new do |opts|\n opts.banner = \"Usage:... | ruby | chosen |
[
{
"from": "system",
"value": "Update gc_ruboconfig requirement from ~> 2.29.0 to ~> 2.30.0\n\nUpdates the requirements on [gc_ruboconfig](https://github.com/gocardless/ruboconfig) to permit the latest version.\n- [Release notes](https://github.com/gocardless/ruboconfig/releases)\n- [Changelog](https://githu... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 1.15.0 to ~> 1.18.0\n\nUpdates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.\n- [Release notes](https://github.com/rubocop/rubocop/releases)\n- [Changelog](https://github.com/rubocop/rubocop/bl... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec with 3 digit version code.\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nGem::Specification.new do |spec|\n spec.name = 'cassette'\n spec.version ... | ruby | chosen |
[
{
"from": "system",
"value": "Make width and height class attributes.\n"
},
{
"from": "human",
"value": "require 'color'\n\n# The bitmap object.\n# A 2D array with rgb values as entries.\nclass Bitmap\n attr_reader :data\n\n def initialize(width, height)\n @data = Array.new(width) do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure we're casting as an integer\n"
},
{
"from": "human",
"value": "require 'dotenv'\nDotenv.load\n\nclass Import\n\n def self.perform(pages = nil)\n response = HTTParty.get(ENV['ERNEST_ADDRESS_ENDPOINT']).parsed_response\n pages = pages || response[\"pa... | ruby | chosen |
[
{
"from": "human",
"value": "Add Rails plugin which adds foo.zip.zipper template handler\n"
},
{
"from": "gpt",
"value": "require 'zippy'\n\nMime::Type.register 'application/zip', :zip\n\nmodule ::ActionView\n module TemplateHandlers\n class Zipper < TemplateHandler\n include Compilable... | ruby | chosen |
[
{
"from": "system",
"value": "Include given keys in missing keys error message\n"
},
{
"from": "human",
"value": "class Value\n def self.new(*fields, &block)\n Class.new do\n attr_reader(:hash, *fields)\n\n define_method(:initialize) do |*values|\n raise ArgumentError.new(\"... | ruby | chosen |
[
{
"from": "system",
"value": "Remove rescue as it was clobbering the real error.\n"
},
{
"from": "human",
"value": "begin\n require File.expand_path('../.bundle/environment', __FILE__)\nrescue LoadError\n begin\n # bust gem prelude\n if defined? Gem\n Gem.source_index\n gem 'bu... | ruby | chosen |
[
{
"from": "system",
"value": "Use scoped controllers for devise users\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n resources :social_media_accounts\n resources :phone_numbers\n resources :profiles\n resources :messages\n resources :conversations\n\n # the root path... | ruby | chosen |
[
{
"from": "system",
"value": "Remove remains of previous sessions controller"
},
{
"from": "human",
"value": "Timeoverflow::Application.routes.draw do\n devise_for :users, controllers: {\n sessions: \"sessions\"\n }\n\n ActiveAdmin.routes(self)\n # mount RailsAdmin::Engine => '/admin', :a... | ruby | chosen |
[
{
"from": "system",
"value": "Add condition to catch all route for asset requests.\n"
},
{
"from": "human",
"value": "Photeasy::Application.routes.draw do\n # Index\n root to: 'high_voltage/pages#show', id: 'index'\n\n # Authentication\n devise_for :users, controllers: { omniauth_callbacks: ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix load of Reviewit::VERSION constant when no API calls were made yet.\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n devise_for :users, skip: :registrations\n devise_scope :user do\n resource :registration,\n only: [:new, :create, ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove catch-all from routing configuration\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n namespace :api, defaults: { format: :json } do\n resources :feeds, only: %i[index show], param: :name do\n resource :activity, only: :show, con... | ruby | chosen |
[
{
"from": "system",
"value": "Update from Java6 to Java7\n\nFixes #2189\n"
},
{
"from": "human",
"value": "class Java < Cask\n url 'http://support.apple.com/downloads/DL1572/en_US/JavaForOSX2013-05.dmg'\n homepage 'http://support.apple.com/downloads/DL1572'\n version '1.6.0_65'\n sha1 'ce78f... | ruby | chosen |
[
{
"from": "system",
"value": "Set up expected state before test rather than cleaning after test.\nDo chdir with a block so that it does not rely on the after hook.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'pact/init/consumer'\n\ndescribe 'The pact-init-consumer command l... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for new license generation.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nRSpec.describe 'rtty new --license', type: :cli do\n it \"generates a license file\" do\n app_name = tmp_path('newcli')\n command = \"bundle exec rtty new #{app_name}... | ruby | chosen |
[
{
"from": "system",
"value": "Add quick way to get at APP_NAME\n"
},
{
"from": "human",
"value": "module Features\n APP_NAME = \"arkenstone_test\"\n\n def run_arkenstone(args = nil)\n Dir.chdir(Dir.tmpdir) do\n `#{arkenstone_bin} #{args} #{project_path}`\n end\n end\n\n def remove... | ruby | chosen |
[
{
"from": "system",
"value": "Trim down the dependency list\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../lib/nestive/version\", __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"nestive\"\n s.version = Nestive::VERSION\n s.platform = Gem::Platform... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec so hpple files are included\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Pluck'\n s.version = '0.1'\n s.summary = 'Library for grabbing data from OEmbed (and OEmbed-ish) sites'\n s.license = 'MIT'\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Add example to verify behavior of non_unique attr for user_account.\n\nReferences #30\n"
},
{
"from": "human",
"value": "include_recipe 'user'\n\nuser_account 'hsolo' do\n comment 'Han Solo'\n ssh_keys ['key111...', 'key222...']\n home '/opt/hoth/hsolo'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add basic test that Monaco is hooked up\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'support/playground_actions'\n\nRSpec.feature \"Editing in different editors\", type: :feature, js: true do\n include PlaygroundActions\n\n before { visit '/'... | ruby | chosen |
[
{
"from": "system",
"value": "Remove test job on startup.\n"
},
{
"from": "human",
"value": "\nclass Plugin::Jobs < Plugin\n def add_routes(rp, opts)\n rp.jobs do\n rp.route 'list' do |act|\n jobs = Twke::JobManager.list\n if jobs.length == 0\n act.say \"No active... | ruby | chosen |
[
{
"from": "system",
"value": "Allow all migrations to run in sequence\n\nAn earlier migration does actually create these indexes. However the\nschema.rb at some point had got out of sync with the schema generated by\nrunning migrations in order. I suspect that this migration was created\nto fix a db schema ... | ruby | chosen |
[
{
"from": "system",
"value": "Add cucumber and aruba development gem dependencies\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"json_spec/version\"\n\nGem::Specification.new do |s|\n s.name = \"json_spec\"\n s.ver... | ruby | chosen |
[
{
"from": "system",
"value": "Remove dependency on rspec 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 'adash/version'\n\nGem::Specification.new do |spec|\n spec.name... | ruby | chosen |
[
{
"from": "system",
"value": "Add all source files to gemspec\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'paymentwall'\n s.version = '1.0.0'\n s.summary = \"Paymentwall gem\"\n s.description = \"Paymentwall is the leading digital payments platf... | ruby | chosen |
[
{
"from": "system",
"value": "Set header files to private\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'poco'\n s.version = '1.4.6'\n s.summary = 'The C++ POCO Library'\n s.description = <<-DESC\nWritten in modern, standard ANSI C++, using the C++ Sta... | ruby | chosen |
[
{
"from": "system",
"value": "Fix wrong source_files dir in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"SwiftHEXColors\"\n s.version = \"1.0.2\"\n s.summary = \"HEX color handling as an extension for UIColor. Written in Swift.\"\n... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.