conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Resolve type id in a function\n\nSeparate out the code that calculates the type_id of the class into its\nown function that we can use to build a map of tpes to classes.\n"
},
{
"from": "human",
"value": "module Subjoin\n class DerivableResource < Resource\n ROO... | ruby | chosen |
[
{
"from": "system",
"value": "Send info messages about Unicorn status to logger\n"
},
{
"from": "human",
"value": "if ENV['RACK_ENV'] == 'development'\n worker_processes 1\n listen \"#{ENV['BOXEN_SOCKET_DIR']}/rails_app\", :backlog => 1024\n timeout 120\nend\n\nworker_processes Integer(ENV[\"... | ruby | chosen |
[
{
"from": "system",
"value": "AirParrot1: Add name and update license stanza"
},
{
"from": "human",
"value": "cask :v1 => 'airparrot1' do\n version :latest\n sha256 :no_check\n\n url 'http://download.airsquirrels.com/AirParrot/Mac/AirParrot.dmg'\n appcast 'http://airparrot.com/updates/AirPar... | ruby | chosen |
[
{
"from": "system",
"value": "Add newline to end of file\n"
},
{
"from": "human",
"value": "module Jekyll\n class MultiPost < Post\n\n # Initialize this MultiPost instance.\n #\n # site - The Site.\n # base - The String path to the dir containing the post file.\n # na... | ruby | chosen |
[
{
"from": "system",
"value": "Change wp-content/cache and uploads group permission to write-v1\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: my_cookbook\n# Recipe:: default\n#\n# Copyright 2014, YOUR_COMPANY_NAME\n#\n# All rights reserved - Do Not Redistribute\n#\nnode[:deploy].each do... | ruby | chosen |
[
{
"from": "system",
"value": "Use sql syntax for join_request migration\n"
},
{
"from": "human",
"value": "class AddSecretTokenForEveryJoinRequest < ActiveRecord::Migration\n def up\n JoinRequest.all.map(&:save)\n end\n\n def down\n end\nend\n"
},
{
"from": "gpt",
"value": "cl... | ruby | chosen |
[
{
"from": "system",
"value": "Update seed file to reflect removal of has_challenge boolean form User migration.\n"
},
{
"from": "human",
"value": "i = 1\nuntil i == 20\n page = Page.create(text: Faker::Lorem.paragraph, next_page_id: i+1)\n if page.id % 3 == 0\n page.has_challenge = true\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add test to compare total_frames to samples.length\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass TestNote < MiniTest::Test\n def setup\n @test_samples = eval(File.read('test/fixtures/note_samples_array'))\n @basic_note = MusicTheory::Note.... | ruby | chosen |
[
{
"from": "system",
"value": "Revise seed file user email\n\nRevise seed file to use mentor.me.dev@gmail.com for all users.\n"
},
{
"from": "human",
"value": "# Create users with unique UID (string), name (string, full name, and\n# image (string, URI for avatar image).\nuser_count = 25\nuser_cou... | ruby | chosen |
[
{
"from": "system",
"value": "Use data driven test case\n"
},
{
"from": "human",
"value": "require 'test/unit'\nrequire 'test/unit/rr'\nrequire_relative '../lib/yomou'\n\nclass NovelInfoTest < Test::Unit::TestCase\n\n setup do\n ENV[\"YOMOU_HOME\"] = \"/tmp\"\n end\n\n sub_test_case \"cach... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure we preserve the entire item.\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'httparty'\nrequire 'mash'\nrequire 'activesupport'\nrequire 'pp'\n\nmodule A2WS\n class Base\n include HTTParty\n base_uri 'http://ecs.amazonaws.com'\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Make capistrano disable the web app by default when a deployment with migrations happens.\n"
},
{
"from": "human",
"value": "# Some defaults, based upon how we tend to work.\n\n# Repository defaults\nset :scm, :git\nset :git_enable_submodules, true\nset(:repository)... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Require everything, instead of specific names\"\n\nYarr Cap'n, f583bd7 has broken globbin', but ye' didn' notice.\n\nHANG 'IM FROM THE MAINS'L!\n\nThis reverts commit f583bd7f2d9f59b44ee845d854a360013f952ba9.\n"
},
{
"from": "human",
"value": "#!/usr/bin/en... | ruby | chosen |
[
{
"from": "system",
"value": "Use `eval` because `load` expects a path\n"
},
{
"from": "human",
"value": "# index_create_statements.rb\n#\n# Parse db/schema.rb for GitLab and extract PostgreSQL `CREATE INDEX`\n# statements.\n#\n# ruby index_create_statements.rb /home/git/gitlab/db/schema.rb\n#\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec for generator related stuff.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"api-versions/version\"\n\nGem::Specification.new do |s|\n s.name = \"api-versions\"\n s.versi... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for dialing out\n"
},
{
"from": "human",
"value": "ENV[\"RACK_ENV\"] = \"test\"\nrequire File.dirname(__FILE__) + \"/../app\"\nrequire \"rack/test\"\nrequire \"nokogiri\"\n\ndescribe \"Twilio\" do\n include Rack::Test::Methods\n\n def app\n CopperNet.n... | ruby | chosen |
[
{
"from": "system",
"value": "Make git tag tied to version\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"SHEmailValidator\"\n s.license = 'Apache License, Version 2.0'\n s.version = \"1.0.5\"\n s.summary = \"iOS Email Validator\"\n\n s.descrip... | ruby | chosen |
[
{
"from": "system",
"value": "Fix migration for polymorphic tag mappings\n\nThe `taggable_type` attribute got renamed from `taggable_type`.\n\nBecause locally there weren't any records in the tag_mappings table,\nthis didn't surface. On staging there are records, so this migration\nfails because `taggable_t... | ruby | chosen |
[
{
"from": "system",
"value": "Fix postgres Connector ODBC parameter name\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire_relative './odbc'\n\nmodule Carto\n class Connector\n\n # PostgreSQL provider using [psqlODBC](https://odbc.postgresql.org/) driver\n #\n # For compl... | ruby | chosen |
[
{
"from": "system",
"value": "Fix edit and update controller. Remove error for missing doc values\n"
},
{
"from": "human",
"value": "class DocsController < ApplicationController\nbefore_action :find_doc, only: [:show, :edit, :update, :destory]\n\n\n def index\n @docs = Doc.all.order(\"create... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for order of job listing.\n"
},
{
"from": "human",
"value": "class JobsController < ApplicationController\n def index\n @jobs = Job.all\n end\n \n def show\n @job = Job.find(params[:id])\n if @job.data[\"error\"]\n @error_message = @job.data[\"... | ruby | chosen |
[
{
"from": "system",
"value": "Add controller to get transactions and locations for times of earning; Also add private helper methods directly into the controller instead of helpers file for ease of review\n"
},
{
"from": "human",
"value": "class UserController < ApplicationController\n def all_... | ruby | chosen |
[
{
"from": "system",
"value": "Replace source with object in Draper\n"
},
{
"from": "human",
"value": "class AuthorDecorator < UserDecorator\n decorates :user\n\n def email\n if source.email && !source.private_email\n mail_to source.email\n end\n end\n\n def toggle_email_privacy\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a basic search scope to ProjectContentItem\n"
},
{
"from": "human",
"value": "class ProjectContentItem < ActiveRecord::Base\n belongs_to :project\n\n def base_path\n url.gsub('https://www.gov.uk', '')\n end\n\n # taxons don't exist\n def taxons\n []\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use Virtus's simpler sharing solution\n"
},
{
"from": "human",
"value": "module Person\n extend ActiveSupport::Concern\n\n included do\n attribute :name, Array[PersonName]\n attribute :date_of_birth, Date\n end\nend\n"
},
{
"from": "gpt",
"value... | ruby | chosen |
[
{
"from": "system",
"value": "Remove ruby version requirement from gemspec, as it's been moved to Travis.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$LOAD_PATH << File.dirname(__FILE__) + '/lib'\nrequire 'custom_counter_cache/version'\n\nspec = Gem::Specification.new do |s|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Support JSON values for Google Tag Manager\n"
},
{
"from": "human",
"value": "class Rack::Tracker::GoogleTagManager < Rack::Tracker::Handler\n\n class Push < OpenStruct\n\n def write\n \"'#{event[:name]}': '#{event[:value]}'\"\n end\n\n def event\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add lazy initialization to ruby:grains\n"
},
{
"from": "human",
"value": "class Grains\n\n def square(number)\n 2**(number-1)\n end\n\n def total\n (1..64).inject(0) do |sum, number|\n sum + square(number)\n end\n end\n\nend\n"
},
{
"from":... | ruby | chosen |
[
{
"from": "system",
"value": "Add bang to inspect method to indicate danger\n"
},
{
"from": "human",
"value": "class IBLT\n \n def initialize(opts = {})\n @opts = {\n :size => 100,\n :hashes => 4,\n :seed => Time.now.to_i,\n }.merge(opts)\n\n @iblt = CIBLT.new(@op... | ruby | chosen |
[
{
"from": "system",
"value": "Add COP constant attributes to FeverDetails\n"
},
{
"from": "human",
"value": "module Atlas\n # Describes optional information for setting up the node within a Fever\n # calculation.\n class FeverDetails\n include ValueObject\n\n values do\n attribute ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing specs for EpochTime type\n\n* The DateTime#to_time method in AS3 requires Time#utc_time to be\n available, but it does not require it, and this causes problems when\n cherry picking the #to_time methods.\n"
},
{
"from": "human",
"value": "require 'dm-c... | ruby | chosen |
[
{
"from": "system",
"value": "Update ARM gcc to `7-2018-q2-update`\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass ArmNoneEabiGcc < Formula\n\n homepage 'https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads'\n version '7-2017-q4-major'\n\n url 'https://developer.... | ruby | chosen |
[
{
"from": "system",
"value": "Add a quick example to doc\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire \"rubygems\"\nrequire \"happymapper\"\n\nrequire \"prtg/client\"\nrequire \"prtg/query\"\nrequire \"prtg/sensor\"\nrequire \"prtg/utils\"\n\nmodule Prtg\n VERSION = \"0.0.1\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 0.83.0 to ~> 0.84.0\n\nUpdates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.\n- [Release notes](https://github.com/rubocop-hq/rubocop/releases)\n- [Changelog](https://github.com/rubocop-hq/r... | ruby | chosen |
[
{
"from": "system",
"value": "Update guard-rspec to ~> 4.7\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'cutcut'\n s.authors = ['Jhimy Fernandes Villar']\n s.email = ['stjhimy@gmail.com']\n s.homepage = 'http://github.com/stjhimy/cutcut'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow db dsn to have empty user and password.\n"
},
{
"from": "human",
"value": "module FatTable\n class << self; attr_accessor :handle; end\n\n def self.set_db(driver: 'Pg',\n database:,\n user:,\n password:,\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add `.body` to faraday response\n"
},
{
"from": "human",
"value": "require 'faraday'\nrequire 'graphql'\n\nmodule GraphQLDocs\n class Client\n attr_accessor :faraday\n\n def initialize(options)\n @login = options[:login]\n @password = options[:passw... | ruby | chosen |
[
{
"from": "system",
"value": "Call super() for JanusGateway::Error constructor\n"
},
{
"from": "human",
"value": "module JanusGateway\n\n class Error < StandardError\n\n # @param [Integer] error_code\n # @param [String] error_info\n def initialize(error_code, error_info)\n @code, ... | ruby | chosen |
[
{
"from": "system",
"value": "Use params for instance variable assignment\n"
},
{
"from": "human",
"value": "class Grid\n\n def initialize(params)\n params = {programfile: nil}.merge(params)\n Params.check_params(params, [:window, :user, :map_file, :tileset])\n\n @window, @user = windo... | ruby | chosen |
[
{
"from": "system",
"value": "Patch to make find(:first) work with the OIO interface\n"
},
{
"from": "human",
"value": "module SimpleFind\n module ClassMethods\n def find_by_name(name)\n self.find(:all, :params =>{:q => name})\n end\n end\n\n def self.included(receiver)\n receiv... | ruby | chosen |
[
{
"from": "system",
"value": "Copy over the blobs/_blob partial so it can be specialized\n"
},
{
"from": "human",
"value": "say \"Copying actiontext.css to app/assets/stylesheets\"\ncopy_file \"#{__dir__}/actiontext.css\", \"app/assets/stylesheets/actiontext.css\"\n\nsay \"Copying fixtures to te... | ruby | chosen |
[
{
"from": "system",
"value": "Add version to be set in initialize."
},
{
"from": "human",
"value": "require 'httparty'\nrequire 'json'\n\nclass Tado\n include HTTParty\n base_uri 'https://my.tado.com/mobile/1.4'\n\n def initialize(username, password)\n @username = username\n @password =... | ruby | chosen |
[
{
"from": "system",
"value": "Add disconnect count and snarks\n"
},
{
"from": "human",
"value": "require 'ruby-growl'\n\nclass WiFiConnectionStatus\n def initialize\n @online = true\n @growler = Growl.new 'localhost', 'wifi', ['offline']\n end\n\n def reconnect\n %x[osascript #{Fi... | ruby | chosen |
[
{
"from": "human",
"value": "Add legacy version of libmpc\n\n* Track libmpc 0.8.1 on GCC infrastructure.\n"
},
{
"from": "gpt",
"value": "require 'formula'\n\nclass Libmpc08 < Formula\n homepage 'http://multiprecision.org'\n url 'ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz'\n sh... | ruby | chosen |
[
{
"from": "system",
"value": "Make the table explicit in the case statement\n"
},
{
"from": "human",
"value": "class AppsQuery\n FILTER_MINE = 'mine'\n FILTER_LIVE = 'live'\n FILTER_PUBLIC = 'public'\n\n ORDER_NEW = 'new'\n ORDER_TREND = 'trend'\n\n attr_reader :params\n\n def initialize(... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure only the first occurrence of a key gets a tooltip\n"
},
{
"from": "human",
"value": "# Internal dictionary: Definitions for certain words get automatically\n# infused into the texts of other models.\nclass Definition < ActiveRecord::Base\n # Validations\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused method in Gpdbtable\n"
},
{
"from": "human",
"value": "class GpdbTable < GpdbDatabaseObject\n\n def analyzed_date(table_stats)\n analyzed_date = table_stats.fetch(\"last_analyzed\", '')\n if analyzed_date.present?\n Time.parse(analyzed_date... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug setting check in destination section name.\n"
},
{
"from": "human",
"value": "class GroupTime < ActiveRecord::Base\n belongs_to :group\n belongs_to :checkin_time\n\n validates_exclusion_of :section, in: ['', '!']\n\n scope_by_site_id\n\n def section=(s)... | ruby | chosen |
[
{
"from": "system",
"value": "Set up file attachment for Import Job\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass ImportJob < ApplicationRecord\n belongs_to :user\n broadcasts_to :user\n\n enum :status => {\n :waiting => 0,\n :processing => 1,\n :finished ... | ruby | chosen |
[
{
"from": "system",
"value": "Add Integration spec for property new action.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe \"the properties management\", :type => :feature, :js => true do\n \n scenario 'Shows the properties menu for the leaseholder' do\n \tpage.driver.a... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the hardcoded font bit and other things.\n"
},
{
"from": "human",
"value": "require 'compass-normalize'\nrequire 'susy'\n\n# Set this to the root of your project when deployed:\nhttp_path = \"/\"\nhttp_fonts_path = \"http://revyver.s3.amazonaws.com/fonts/\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add require spree_sample to spec helper to prevent failure when running build.sh.\n"
},
{
"from": "human",
"value": "# This file is copied to ~/spec when you run 'ruby script/generate rspec'\n# from the project root directory.\nENV[\"RAILS_ENV\"] ||= 'test'\nrequire... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.4 to 0.2.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'event_store-entity_store'\n s.version = '0.1.4'\n s.summary = 'Store of entities that are projected from Event... | ruby | chosen |
[
{
"from": "system",
"value": "Support rich text areas without any embeddable forms"
},
{
"from": "human",
"value": "require \"formalist/element\"\nrequire \"formalist/elements\"\nrequire \"formalist/types\"\n\nmodule Formalist\n class Elements\n class RichTextArea < Field\n attribute :b... | ruby | chosen |
[
{
"from": "system",
"value": "Update the default generator asset engines\n"
},
{
"from": "human",
"value": "Rails.application.configure do\n # Settings specified here will take precedence over those in config/application.rb.\n\n # In the development environment your application's code is reloa... | ruby | chosen |
[
{
"from": "system",
"value": "Add the tld_length action_dispatch config\n\nWho uses linux and don't have an alternative like pow.\n\nIn the development environment the best option is to pass this value to the config.action_dispatch.tld_length.\n\nReference Link: https://github.com/rails/rails/issues/12438#i... | ruby | chosen |
[
{
"from": "system",
"value": "Fix host header poison attack\n\nUpdate config production to prevent against users being able to\ninput data that could redirect people away from the official site.\n"
},
{
"from": "human",
"value": "Rails.application.configure do\n config.action_mailer.smtp_settin... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.2.0.0 to 0.3.0.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'log'\n s.version = '0.2.0.0'\n s.summary = 'Logging to STD IO with levels, tagging, and coloring'\n s.des... | ruby | chosen |
[
{
"from": "system",
"value": "Add attributes of structure member\n"
},
{
"from": "human",
"value": "module Syoboemon\n\tmodule ProgramInfomationAccessor\n\t\tclass ProgramDetailSearch\n\n\t\tend\n\tend\nend\n"
},
{
"from": "gpt",
"value": "# \n# Syoboemon::ProgramInfomationAccessor::... | ruby | chosen |
[
{
"from": "system",
"value": "Update minimum iOS version to 8.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"CTFeedback\"\n s.version = \"1.0.20\"\n s.summary = \"Library to send feedback for iOS.\"\n s.homepage = \"https://github.com/rizumita/CT... | ruby | chosen |
[
{
"from": "system",
"value": "Send mails to company as bcc\n"
},
{
"from": "human",
"value": "class DeployerMailer < Mailer\n\n default from: \"from@test.com\"\n\n layout \"mailer\"\n\n\n def send_start(deploy, project)\n @deploy = deploy\n mail_subject = \"[deploys] {#{project.abbrevia... | ruby | chosen |
[
{
"from": "system",
"value": "Remove conditional on can_read?, can_edit? and can_publisH? methods\n"
},
{
"from": "human",
"value": "module Landable\n class Author < ActiveRecord::Base\n include Landable::TableName\n has_many :access_tokens\n\n def self.authenticate!(username, token_id... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor confirmations controller to remove duplication\n"
},
{
"from": "human",
"value": "class ConfirmationsController < Devise::ConfirmationsController\n def show\n confirmation_token = Devise.token_generator.\n digest(self, :confirmation_token, token)\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update maintainer and use standard SPDX license string\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "name 'atom'\nmaintainer 'Mohit Sethi'\nmaintainer_email 'mohit@sethis.in'\nlicense 'Apache v2.0'\... | ruby | chosen |
[
{
"from": "system",
"value": "Add revoke option in access_grants\n"
},
{
"from": "human",
"value": "name 'mysqler'\nmaintainer 'tata'\nmaintainer_email 'tata@wix.com'\nlicense 'Apache 2.0'\ndescription 'Installs and configures MySQL client and server'\nlong_d... | ruby | chosen |
[
{
"from": "human",
"value": "Add Overdrive Media Console v1.2\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'overdrive-media-console' do\n version '1.2'\n sha256 '6e04ac61337647aa86c67d04d62552a0c0a31a3104bf4856aa726e8317272be9'\n\n url 'http://app.overdrive.com/downloads/ODMediaConsoleSetup.d... | ruby | chosen |
[
{
"from": "system",
"value": "Add the deply:symlink_settings capistrano task\n"
},
{
"from": "human",
"value": "set :application, 'stillmaintained'\n\ndefault_run_options[:pty] = true\n\nset :scm, :git\nset :git_enable_submodules, 1\nset :repository, 'git@github.com:jeffkreeftmeijer/stillmaintai... | ruby | chosen |
[
{
"from": "system",
"value": "Move to the new server\n"
},
{
"from": "human",
"value": "set :application, 'stillmaintained'\n\ndefault_run_options[:pty] = true\n\nset :scm, :git\nset :git_enable_submodules, 1\nset :repository, 'git@github.com:jeffkreeftmeijer/stillmaintained.git'\nset :branch, '... | ruby | chosen |
[
{
"from": "system",
"value": "Add exceptions to games route\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html\n resources :users\n resources :games, except: :edit\n\n root ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove zip/ from zip_path to match page titles\n"
},
{
"from": "human",
"value": "ActionController::Routing::Routes.draw do |map|\n map.congress_person 'congress_people/:id', :controller => 'congress_people', :action => 'show'\n map.zip 'zip/:q', :controller => 'l... | ruby | chosen |
[
{
"from": "system",
"value": "Add a Static Pages controller\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html\nend\n"
},
{
"from": "gpt",
"value": "Rails.applicati... | ruby | chosen |
[
{
"from": "system",
"value": "Allow locale in URL to be optional\n\nWhen I first added URL-based locale specification, I made it required\nand had `/` redirect to `/en`. However, I realized that it would be\nbetter to just make it optional. This will allow routes like refresh and\nsweep triggering to work a... | ruby | chosen |
[
{
"from": "system",
"value": "Fix syntax around class require in tests\n\nThis test is failing on the version of Rspec that Travis runs tests\nwith, so update the syntax.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'aptly::repo' do\n let(:title) { 'example' }\n\n let(:... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Rails 5 deprecation warning for `get` request spec\n\nDEPRECATION WARNING:\n\n`ActionDispatch::IntegrationTest` HTTP request methods will accept only\nthe following keyword arguments in future Rails versions:\nparams, headers, env, xhr, as\n\nExamples:\n\n get '/profile'... | ruby | chosen |
[
{
"from": "system",
"value": "Update the version as 1.0.0\n"
},
{
"from": "human",
"value": "name 'mongodb3'\nmaintainer 'Sunggun Yu'\nmaintainer_email 'sunggun.dev@gmail.com'\nlicense 'Apache 2.0'\ndescription 'Installs/Configures mongodb3'\nlong_description 'Ins... | ruby | chosen |
[
{
"from": "system",
"value": "Remove attributes, use loop for supports, fix recipe name\n"
},
{
"from": "human",
"value": "name 'memcached'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nlicense 'Apache 2.0'\ndescription 'Installs me... | ruby | chosen |
[
{
"from": "system",
"value": "Fix LegacyEncoder namespace => Rollbar::Encoding::LegacyEncoder.\n"
},
{
"from": "human",
"value": "require 'iconv'\n\nmodule Rollbar\n class LegacyEncoder\n attr_accessor :object\n\n def initialize(object)\n @object = object\n end\n\n def encode\n... | ruby | chosen |
[
{
"from": "system",
"value": "Check git config without `--global`\n\nbecause it should work correctly without that option specified\n"
},
{
"from": "human",
"value": "require 'support'\n\ndescribe 'git installation' do\n describe package('git') do\n it { should be_installed }\n end\n\n des... | ruby | chosen |
[
{
"from": "system",
"value": "Create user favorites with users and recipes arrays\n"
},
{
"from": "human",
"value": "require 'faker'\n\npassword = '123'\nusers = []\nrecipes = []\n\n10.times do\n users << User.create(name: Faker::Name.first_name, password: password)\nend\n\nrecipes << Recipe.cr... | ruby | chosen |
[
{
"from": "system",
"value": "Add chef_version compatibility with older chef releases\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "name 'chef_slack'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookboo... | ruby | chosen |
[
{
"from": "system",
"value": "Update Chef dependency to >= 16\n"
},
{
"from": "human",
"value": "name 'rdiff-backup'\nmaintainer 'Oregon State University'\nmaintainer_email 'chef@osuosl.org'\nlicense 'Apache-2.0'\nchef_version '>= 14'\ndescription 'Installs/Co... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade \"Freeswitch Desktop.app\" to v1.1.0\n"
},
{
"from": "human",
"value": "cask :v1 => 'freeswitch-desktop' do\n version '1.0.0'\n sha256 'd86a622e3b2bcfdef41f6ab3f1a347e0e37b58ec28725740da27a135681591d5'\n\n url \"https://github.com/pablote/fs-mgmt/releases... | ruby | chosen |
[
{
"from": "human",
"value": "Add Sonarr Menu Helper App 2.2\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'sonarr-menu-helper' do\n version '2.2'\n sha256 'a46ace8316b873823adb829719a7b91780194a89d313a9bb313a9677e4fda78f'\n\n url \"https://github.com/jefbarn/Sonarr/releases/download/#{version}... | ruby | chosen |
[
{
"from": "system",
"value": "Change spec as wording was changed.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Home page' do\n it 'successfully renders the Tariff home page' do\n VCR.use_cassette('geographical_areas#countries') do\n visit root_path\n\n page... | ruby | chosen |
[
{
"from": "system",
"value": "Use a real summary and description.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'bnr/webhooks/version'\n\nGem::Specification.new do |spec|\n spec.na... | ruby | chosen |
[
{
"from": "system",
"value": "Add new field to podspec\n"
},
{
"from": "human",
"value": "#\n# Be sure to run `pod lib lint JSONViewControllers.podspec' to ensure this is a\n# valid spec before submitting.\n#\n# Any lines starting with a # are optional, but their use is encouraged\n# To learn mo... | ruby | chosen |
[
{
"from": "system",
"value": "Remove RemoteContent rspec test from base plugin.\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/spec_helper'\n\ndescribe ::Meteor::Widget::RemoteContent::Spec do\n \n context \"with partial\" do\n \n before(:all) do\n @content = ... | ruby | chosen |
[
{
"from": "system",
"value": "Drop collection (including indexes) instead of just removing all records.\n"
},
{
"from": "human",
"value": "ENV[\"RAILS_ENV\"] = \"production\"\n\nrequire 'rails_app/config/environment'\n\n# Requires supporting files with custom matchers and macros, etc,\n# in ./su... | ruby | chosen |
[
{
"from": "system",
"value": "Send coverage with latest MRI\n"
},
{
"from": "human",
"value": "if ENV['COVERAGE'] == 'true' && RUBY_ENGINE == 'ruby' && RUBY_VERSION == '2.4.1'\n require \"simplecov\"\n SimpleCov.start do\n add_filter '/spec/'\n end\nend\n\nSPEC_ROOT = root = Pathname(__FIL... | ruby | chosen |
[
{
"from": "system",
"value": "Check for existence of `tree` before running suite.\n"
},
{
"from": "human",
"value": "$LOAD_PATH << File.expand_path('../../lib', __FILE__)\n$LOAD_PATH << File.expand_path('../../spec/helpers', __FILE__)\nrequire 'buildpack/packager'\nrequire 'file_system_helpers'\... | ruby | chosen |
[
{
"from": "system",
"value": "Allow focus filter in specs"
},
{
"from": "human",
"value": "require \"coveralls\"\nCoveralls.wear!\n\n$LOAD_PATH.unshift File.dirname(__FILE__)\nrequire \"rspec\"\nrequire \"money\"\n\nI18n.enforce_available_locales = false\n\nRSpec.configure do |c|\n c.order = :r... | ruby | chosen |
[
{
"from": "system",
"value": "Allow for focusing on certain tests\n"
},
{
"from": "human",
"value": "require 'rspec'\n\nrequire 'aruba'\nrequire 'aruba/api'\n\nrequire 'jsonlint'\n\nmodule SpecHelpers\n def spec_data(data_path)\n File.expand_path(File.join('spec/data', data_path))\n end\nen... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the check rake task (was not working)\n"
},
{
"from": "human",
"value": "namespace :engine do\n desc \"Check all services\"\n task :check_all => :environment do\n interval = 60\n while true do\n start_time = Time.now.to_i\n threads = []\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Stop publisher registering certain frontend routes on deployment\n\nPublisher needs frontend to be registered as an application, but frontend should take care of registering the homepage and its assets folder as routes\n"
},
{
"from": "human",
"value": "namespace :r... | ruby | chosen |
[
{
"from": "system",
"value": "Add view_path setting for view tests\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n$LOAD_PATH.unshift(File.join(Gem.loaded_specs['kaminari'].gem_dir, 'spec'))\n$LOAD_PATH.unshift(File.dirname(__FILE__))\n\nreq... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude /spec/ from code coverage.\n\nWeirdly, on coveralls.io, only Rubinius (rbx-19mode) shows a 1%\nlack in coverage due to a line in docile_spec.rb. This should\nensure that the spec files are never measured for code coverage.\n"
},
{
"from": "human",
"value": "... | ruby | chosen |
[
{
"from": "system",
"value": "Add helper for status codes.\n"
},
{
"from": "human",
"value": "require 'rubygems'\n\n$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n$LOAD_PATH.unshift(File.dirname(__FILE__))\n\nrequire 'rspec'\nrequire 'github_cli'\n\nRSpec.configure do |confi... | ruby | chosen |
[
{
"from": "system",
"value": "Disable log output in tests\n"
},
{
"from": "human",
"value": "require 'bundler/setup'\nrequire 'bourne'\n\nRSpec.configure do |c|\n c.filter_run focus: true\n c.run_all_when_everything_filtered = true\n c.treat_symbols_as_metadata_keys_with_true_values = true\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove things from the load path\n"
},
{
"from": "human",
"value": "# $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n# $LOAD_PATH.unshift(File.dirname(__FILE__))\nrequire 'rspec'\nrequire 'robut-whois'\n\n# Requires supporting files with custom ... | ruby | chosen |
[
{
"from": "system",
"value": "Check if ChefSpec is defined, before defining matcher.\n"
},
{
"from": "human",
"value": "def create_rdiff_backup(resource_name)\n ChefSpec::Matchers::ResourceMatcher.new(\n :rdiff_backup,\n :create,\n resource_name\n )\nend\n\ndef delete_rdiff_backup(res... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.