conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add tests for local svn access\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe \"Local svn access\" do\n describe 'Check connection to repo' do\n repo = 'https://svn/um_ext'\n describe command(\"svn info --non-interactive --trust-s... | ruby | chosen |
[
{
"from": "human",
"value": "Add block init tests as well\n"
},
{
"from": "gpt",
"value": "# -*- encoding : utf-8 -*-\nrequire File.expand_path(File.dirname(__FILE__)) + '/helper'\n\nclass TestBlockInit < Test::Unit::TestCase\n \n class Settable\n include Tracksperanto::BlockInit\n \n ... | ruby | chosen |
[
{
"from": "system",
"value": "Reorganize Code for Course Model\n\nUpdate the Course model code to ensure consistency in ordering of\nassociations/validations with other models' code.\n"
},
{
"from": "human",
"value": "class Course < ActiveRecord::Base\n attr_accessible :description, :logo, :tit... | ruby | chosen |
[
{
"from": "system",
"value": "Validate uniqueness for email and username\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# ActiveRecord Member user\nclass Member < ApplicationRecord\n has_many :posts\n has_many :comments\n # Include default devise modules. Others available... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug in pointing direction.\n"
},
{
"from": "human",
"value": "class Azimuth < UIImageView\n def observe_location\n App.notification_center.observe 'HeadingUpdate' do |notification|\n @phone_heading = notification.object\n animate_to_bearing\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure the progress bar goes to 100%\n\nNo one likes it when an operation ends and the progress bar never went all the way to 100%. @zachgersh was showing me some concourseci output and the progress bars always ended at 96%. Rather than sort out exactly why the chunks never ... | ruby | chosen |
[
{
"from": "system",
"value": "Change dependency version to new minor release\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'alephant/logger/version'\n\nGem::Specification.new do |sp... | ruby | chosen |
[
{
"from": "system",
"value": "Allow to leave password blank in admin user form\n"
},
{
"from": "human",
"value": "ActiveAdmin.register AdminUser do\n permit_params :full_name, :email, :password, :password_confirmation\n\n index do\n selectable_column\n id_column\n\n column :full_name\... | ruby | chosen |
[
{
"from": "system",
"value": "Add store accessor for preferences and expire search query if preferences update\n"
},
{
"from": "human",
"value": "class Recruiter < ApplicationRecord\n devise :database_authenticatable, :registerable, :confirmable,\n :recoverable, :rememberable, :trackabl... | ruby | chosen |
[
{
"from": "system",
"value": "Fix integrations tests for Docker Compose\n\nSigned-off-by: Dieter Reuter <554783fc552b5b2a46dd3d7d7b9b2cce9a82c122@me.com>\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe package('docker-compose') do\n it { should be_installed }\nend\n\ndescri... | ruby | chosen |
[
{
"from": "system",
"value": "Add subspec that only includes utility classes\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"GeoFire\"\n s.version = \"4.0.1\"\n s.summary = \"Realtime location queries with Firebase.\"\n s.homepage = \"https://github... | ruby | chosen |
[
{
"from": "system",
"value": "Use semantic tagging in podspec to support dependency checking.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Lockbox'\n s.version = '0.0.1'\n s.license = 'MIT'\n s.summary = 'Lockbox is an Objective-C utility class for storing data ... | ruby | chosen |
[
{
"from": "system",
"value": "Clean this up a bit\n"
},
{
"from": "human",
"value": "module Net\n class HTTP\n @skip_bad_headers = false\n\n class << self\n def skip_bad_headers\n @skip_bad_headers\n end\n\n def skip_bad_headers=(value)\n @skip_bad_headers = v... | ruby | chosen |
[
{
"from": "system",
"value": "Add pending invited friendships to user api endpoint\n"
},
{
"from": "human",
"value": "user = @user\njson.user do\n json.id user.id\n json.user_name user.user_name\n json.introduction user.introduction\n json.gender user.gender\n json.lat user.latitude\n json... | ruby | chosen |
[
{
"from": "system",
"value": "Add more fields to JSON API\n"
},
{
"from": "human",
"value": "json.partial! 'ilohv/nodes/node', node: file\n"
},
{
"from": "gpt",
"value": "json.partial! 'ilohv/nodes/node', node: file\n\njson.size file.size\njson.content_type file.content_type\... | ruby | chosen |
[
{
"from": "system",
"value": "Create index for user_id, created_at in Micropost\n"
},
{
"from": "human",
"value": "class CreateMicroposts < ActiveRecord::Migration\n def change\n create_table :microposts do |t|\n t.string :content\n t.integer :user_id\n\n t.timestamps null: fa... | ruby | chosen |
[
{
"from": "system",
"value": "Prepare addCalculator for new argument system\n"
},
{
"from": "human",
"value": "class AddCalculator < Calculator\n endpoint \"add\"\n\n arg_type [:first, :second], :integer\n\n def self.calculate(first:, second:)\n first + second\n end\nend\n"
},
{
"... | ruby | chosen |
[
{
"from": "system",
"value": "Update gem version to 1.4.8\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nGem::Specification.new do |spec|\n spec.name = \"dta_rapid\"\n spec.version = \"1.4.7\"\n spec.authors = [\"Gareth Rogers\", \"Andrew Carr\", \"Matt Chamberlain... | ruby | chosen |
[
{
"from": "system",
"value": "Add source code and changelog URI to gemspec\n\nSo that it is easier for people to find the links\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/dry/configurable/version', __FILE__)\n\nGem::Specification.new do |spec|\n spec.name = 'dr... | ruby | chosen |
[
{
"from": "system",
"value": "Change the files in the gemspec\n"
},
{
"from": "human",
"value": "# Provide a simple gemspec so you can easily use your enginex\n# project in your rails apps through git.\nGem::Specification.new do |s|\n s.name = \"asset_hash\"\n s.summary = \"Asset hasher for Cl... | ruby | chosen |
[
{
"from": "system",
"value": "Add gem summary and description\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n$:.unshift File.expand_path('../lib', __FILE__)\nrequire 'associates/version'\n\nGem::Specification.new do |s|\n s.name = \"associates\"\n s.version = Associates... | ruby | chosen |
[
{
"from": "system",
"value": "FIX EC2 Network ACL icmp type\n"
},
{
"from": "human",
"value": "#\n# EC2 Network ACL Entry resource\n# http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-network-acl-entry.html\n#\nrequire 'kumogata/template/helper'\nrequire 'kumogata/te... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec since repo moved"
},
{
"from": "human",
"value": "require File.expand_path('../lib/constant_contact/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"constant_contact\"\n s.version = ConstantContact::VERSION\n s.platform ... | ruby | chosen |
[
{
"from": "human",
"value": "Add formtastic 2.0 compatible form helper\n"
},
{
"from": "gpt",
"value": "module Formtastic\n module Inputs\n class EnumInput < Formtastic::Inputs::SelectInput\n def raw_collection\n raise \"Attribute '#{@method}' has no enum class\" unless enum = @o... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests to look for non-visible elements\n\nCapybara doesn't find hidden elements in its default configuration, you\nhave to explicitly ask for them.\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass FancyboxTest < ActionDispatch::IntegrationTest\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for Math.lgamma. Numerical values are based on MRI, which uses lgamma_r() function from libmath."
},
{
"from": "gpt",
"value": "require File.dirname(__FILE__) + '/../../spec_helper'\n\nruby_version_is \"1.9\" do\n describe \"Math.lgamma\" do\n it \"retu... | ruby | chosen |
[
{
"from": "system",
"value": "Add a new requirement type: `webhooks`\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule ZendeskAppsSupport\n class AppRequirement\n CUSTOM_OBJECTS_KEY = 'custom_objects'\n CUSTOM_OBJECTS_TYPE_KEY = 'custom_object_types'\n CUSTOM_O... | ruby | chosen |
[
{
"from": "system",
"value": "Update Gemspec for gem rebuild.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |s|\n s.name = %q{fancypath}\n s.version = \"0.5.11\"\n\n s.required_rubygems_version = Gem::Requirement.new(\">= 0\") if s.respond_to? :requ... | ruby | chosen |
[
{
"from": "system",
"value": "Add auth logic to signup post route\n"
},
{
"from": "human",
"value": "get '/' do\n erb :index\nend\n\nget '/index' do\n redirect '/'\nend\n\n#-------------AUTH----------------\n\nget '/login' do\n erb :login\nend\n\npost '/login' do\n #create a new session w/ c... | ruby | chosen |
[
{
"from": "human",
"value": "Configure Devise for deleting a User\n"
},
{
"from": "gpt",
"value": "feature \"User Deletes profile\" do\n\n before do\n @user = Fabricate(:user)\n end\n\n scenario \"Happy path\" do\n visit '/'\n click_link \"Sign In\"\n fill_in \"Email\", with: \"#{... | ruby | chosen |
[
{
"from": "system",
"value": "Implement elements with background property in style attr spec\n"
},
{
"from": "human",
"value": "require 'image_bank'\n\ndescribe ImageDownloaderAdapter::Base do\n let(:source_dir) { @source_dir }\n let(:target_bank) { ImageBank.new(@target_dir) }\n\n it 'should... | ruby | chosen |
[
{
"from": "system",
"value": "Check restricted method definitions for Geo\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe LastFM::Geo do\n it \"should define unrestricted methods\" do\n LastFM::Geo.unrestricted_methods.should == [:get_events, :get_metro_artist_chart, :... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor unique artist_name spec for Interest.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Interest do\n\n before(:all) { Factory(:interest) }\n\n it { should belong_to :user }\n it { should belong_to :artist }\n it { should have_db_colu... | ruby | chosen |
[
{
"from": "system",
"value": "Add test to ensure private IP is set in my.cnf\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\n# Make sure mysql is listening on the private ip\n\nprivateIp = `ipadm show-addr -o addrob... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing authorization to read Place models for guest users.\n"
},
{
"from": "human",
"value": "class Ability\n include CanCan::Ability\n\n def initialize(user)\n # Create guest user aka. anonymous (not logged-in) when user is nil.\n user ||= User.new\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Include feature title in simplecov command name\n\nMSP-9923\n\nFalse negative coverage due to command name collisions when using just\nthe scenario and scenario outline name because I wasn't including the\nfeature name.\n"
},
{
"from": "human",
"value": "# Has to be... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.0.0 to 0.1.0.1\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'async_invocation'\n s.version = '0.1.0.0'\n s.summary = \"Return value for async method that is accidental... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.0.1 to 0.1.2\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'event_store-entity_projection'\n s.version = '0.1.1'\n s.summary = 'Projects an event stream into an entity'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Insert BetterErrors rack middleware after ActionDispatch::ShowExceptions in the railtie\n"
},
{
"from": "human",
"value": "module BetterErrors\n # @private\n class Railtie < Rails::Railtie\n initializer \"better_errors.configure_rails_initialization\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo, support hours without leading zeros\n"
},
{
"from": "human",
"value": "module DataService\n class Record\n require 'securerandom'\n\n attr_reader :uid, :id, :reading, :datetime, :extra\n def initialize(date, value, extra = {})\n @uid = Secur... | ruby | chosen |
[
{
"from": "system",
"value": "Make example feature inclusion dependent on webrat session type.\n"
},
{
"from": "human",
"value": "module Merb::Generators\n class CucumberGenerator < Generator\n def self.source_root\n File.join(File.dirname(__FILE__), 'cucumber', 'templates')\n end\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add in some debugging for finding the right handler class"
},
{
"from": "human",
"value": "require 'set'\nmodule Launchy\n #\n # Application is the base class of all the application types that launchy may\n # invoke. It essentially defines the public api of the l... | ruby | chosen |
[
{
"from": "system",
"value": "Use explicit requires so rake.rb is not required by default.\n"
},
{
"from": "human",
"value": "require 'mime/types'\nrequire 'sass'\nrequire 'coffee-script'\n\nhere = File.dirname(__FILE__)\n\nrequire File.join here, 'asset_snack', 'compilers', 'asset_compiler'\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests to follow changes; add a couple more\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass InstanaTest < Minitest::Test\n def test_that_it_has_a_version_number\n refute_nil ::Instana::VERSION\n end\n\n def test_that_it_has_a_logger\n r... | ruby | chosen |
[
{
"from": "system",
"value": "Add some basic methods to CLI class and implicit conversion to_ary to StockQuote::Stock class.\n"
},
{
"from": "human",
"value": "require \"thor\"\n\nmodule StockQuoteCLI\n\tclass CLI < Thor\n\t\tdesc \"hello NAME\", \"say HELLO to NAME\"\n\t\tdef hello(name)\n\t\t\... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade bunlder for CVE-2020-36327 and CVE-2019-3881\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'chef/provider/service/daemontools/version'\n\nGem::... | ruby | chosen |
[
{
"from": "system",
"value": "Fix platform dependent issue of sticky bit.\n\nLinux and Darwin can set stiky bit to a normal file,\nbut FreeBSD and NetBSD can't.\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\nrequire File.expand_path('../../../share... | ruby | chosen |
[
{
"from": "system",
"value": "Use the organization id associated with events for feeds\n\nWhen displaying the events associated with an organization, use the\norganization id attached to an event from the time it was generated\nrather than the users currently in the organization.\n\ncloses griffithlab/civic... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rspec infer from file\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe ApplicationController do\n controller do\n def index\n paginate per_page: 20\n\n set_pagination_header\n\n raise NeatPages::OutOfBound\n end\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Update query result collection object to pass updated tests.\n"
},
{
"from": "human",
"value": "module SalesforceBulk\n class QueryResultCollection < Array\n \n attr_reader :client\n attr_reader :batch_id\n attr_reader :job_id\n attr_reader :total_si... | ruby | chosen |
[
{
"from": "system",
"value": "Apply the sync at 8 & 11 pm\n\nThis is because the files are dropping in reverse order from HMRC.\nRun this only later in the day to pick up both files at once and\napply them in the correct order\n"
},
{
"from": "human",
"value": "set :output, { error: 'log/cron.er... | ruby | chosen |
[
{
"from": "system",
"value": "Add draft cron job to email a report to me for testing.\n"
},
{
"from": "human",
"value": "# Use this file to easily define all of your cron jobs.\n#\n# It's helpful, but not entirely necessary to understand cron before proceeding.\n# http://en.wikipedia.org/wiki/Cr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix frozen Hash issue in spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"ActiveRecord Models that declare `has_crumb_trail`\" do\n before(:all) do\n # Do not trigger AR callbacks\n ActiveRecord::Base.establish_connection :adapter =... | ruby | chosen |
[
{
"from": "system",
"value": "Add some model tests for now, not pushing yet\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\n\ndescribe User do\n let(:user) {User.new(first_name: 'ray', last_name: 'curran', username: 'rpcurr', password: 'password')}\n\n describe 'initialize' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix compilation on Mac OS Sierra\n\nThe `xsltproc` utility is missing some xsl files, which are now\ninstalled on the system by the `docbook-xsl` package.\n\nFixes #939\n"
},
{
"from": "human",
"value": "require \"formula\"\n\nclass Kakoune < Formula\n homepage \"h... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor reusable form signature request\n"
},
{
"from": "human",
"value": "module HelloSign\n module Parameters\n class ReusableFormSignatureRequest\n attr_writer :reusable_form_id, :title, :subject, :message, :ccs, :signers, :custom_fields\n\n def fo... | ruby | chosen |
[
{
"from": "system",
"value": "Add password generation, fix redirects after user creation\n"
},
{
"from": "human",
"value": "class Admin::UsersController < ApplicationController\n before_action :set_user, only: [:edit, :update, :destroy]\n\n def index\n @users = User.all.ordered\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Move helper_method label by method\n\nThis is how I've always seen this done, so I think it's an idiom. Could\nbe wrong though.\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n protect_from_forgery with: :exception\n force_... | ruby | chosen |
[
{
"from": "system",
"value": "Move session helpers to ApplicationController'\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # Prevent CSRF attacks by raising an exception.\n # For APIs, you may want to use :null_session instead.\n include SessionsHel... | ruby | chosen |
[
{
"from": "system",
"value": "Set respond format to attempt to fix map upload flash message\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass MapUploadsController < ApplicationController\n before_action :require_donator\n\n def new\n @map_upload = MapUpload.new\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Add product thumbnais to serializer for cart dropdown images\n"
},
{
"from": "human",
"value": "class Api::VariantSerializer < ActiveModel::Serializer\n attributes :id, :is_master, :product_name, :sku,\n :options_text, :unit_value, :unit_description, :u... | ruby | chosen |
[
{
"from": "system",
"value": "Implement watermark for uploaded images\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nclass Shoppe::AttachmentUploader < CarrierWave::Uploader::Base\n include CarrierWave::MiniMagick\n\n # Where should files be stored?\n def store_dir\n \"attachment/... | ruby | chosen |
[
{
"from": "system",
"value": "Add back SPEC assignment, since it is used in the Rakefile.\n"
},
{
"from": "human",
"value": "require 'date'\nrequire 'catissue/version'\n\nGem::Specification.new do |s|\n s.name = \"caruby-tissue\"\n s.summary = \"Ruby facade for caTissue.\" \n s... | ruby | chosen |
[
{
"from": "system",
"value": "Add Swift Version to pod spec config\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"SwiftDateExtension\"\n s.version = \"0.0.6\"\n s.summary = \"Date extension in Swift\"\n s.license = \"MIT\"\n s.homepage = \"... | ruby | chosen |
[
{
"from": "system",
"value": "Change activerecord-postgres-hstore dependency to ~> 0.7.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"hstore_translate/version\"\n\nGem::Specification.new do |s|\n s.name = 'h... | ruby | chosen |
[
{
"from": "system",
"value": "Add parslet to the gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/uri_template/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Paul Sadauskas\"]\n gem.email = [\"psadau... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for local timeouts (Travis was fine)\n"
},
{
"from": "human",
"value": "control \"shibboleth_idp_service_is_running\" do\n impact 1.0\n title \"The Shibboleth IdP service is running\"\n desc \"The Shibboleth IdP service is running on this container\"\n\n des... | ruby | chosen |
[
{
"from": "system",
"value": "Update .gemspec with a new summary and homepage\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'csv_reader/version'\n\nGem::Specification.new do |spec|\... | ruby | chosen |
[
{
"from": "system",
"value": "Tests: Update tests since the user_roles array is now returned when empty instead of omitted\n"
},
{
"from": "human",
"value": "Given(/^I am authenticated as a user in the \"employee\" and \"content manager\" roles$/) do\n # yes, this is a bit crap, but until we ha... | ruby | chosen |
[
{
"from": "system",
"value": "Add implementation of encode method.\n"
},
{
"from": "human",
"value": "# Caesar Cipher\n\nmodule CaesarCipher\n\n def self.offset_letter(letter,offset)\n # scrub the offset, mod it by 26 to make sure we are working with\n # something between 0 and 25. Moddin... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out a failing test that is not required yet\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nrequire 'frisky/models/commit'\nrequire 'frisky/models/repository'\nrequire 'frisky/models/file_commit'\n\ndescribe Frisky::Model::FileCommit do\n before... | ruby | chosen |
[
{
"from": "system",
"value": "Add bootstrap compatibility to asset pipeline\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\nrequire 'rails/all'\n\n# Require the gems listed in Gemfile, including any gems\n# you've limited to :test, :development, or :production... | ruby | chosen |
[
{
"from": "system",
"value": "Rename module name from jay to Jay\n\nRubyではクラス・モジュール名は大文字で始めなければならない\nという規約が存在するため修正した.\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\nrequire 'rails/all'\n\n# Require the gems listed in Gemfile, including any gems\n# you've lim... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for the plugin & plugin config callbacks\n"
},
{
"from": "gpt",
"value": "# rubocop:disable Metrics/LineLength\nrequire 'spec_helper'\n\ndescribe Cyclid::API::Plugins::Github do\n it 'returns the default config' do\n expect(Cyclid::API::Plugins::Github.... | ruby | chosen |
[
{
"from": "system",
"value": "Correct spacing to please rubocop\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nRSpec.describe Hyrax::WorkingDirectory do\n let(:path1) { described_class.send(:full_filename, 'abcdefghijklmnop1', 'foo.tif') }\n let(:path2) { described_class.sen... | ruby | chosen |
[
{
"from": "system",
"value": "Use AdminJournalSerializer after create too\n"
},
{
"from": "human",
"value": "class Admin::JournalsController < ApplicationController\n before_action :authenticate_user!\n before_action :enforce_policy\n\n respond_to :json\n\n def index\n respond_with curren... | ruby | chosen |
[
{
"from": "system",
"value": "Add description and type to the decorator\n"
},
{
"from": "human",
"value": "class CategoryContentDecorator < Draper::Decorator\n delegate :title\n\n def contents\n CategoryContentDecorator.decorate_collection(object.contents || [])\n end\n\n def path\n ca... | ruby | chosen |
[
{
"from": "system",
"value": "Add YARD docs to Faker::Construction\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Faker\n class Construction < Base\n def self.material\n fetch('construction.materials')\n end\n\n def self.heavy_equipment\n fetch('co... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the address commands that are not yet implemented with OS API.\n"
},
{
"from": "human",
"value": "require 'hpcloud/commands/addresses/add'\nrequire 'hpcloud/commands/addresses/remove'\nrequire 'hpcloud/commands/addresses/assign'\n\nmodule HP\n module Cloud\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add new Owly Shrinker API class\n"
},
{
"from": "gpt",
"value": "require 'json'\n\nmodule LinkShrink\n module Shrinkers\n # @author Jonah Ruiz <jonah@pixelhipsters.com>\n # Implements Owly's URL Shortener API\n class Owly < Base\n # Defines response st... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up Dirty attribute support and remove untested support for @previously_changed attributes"
},
{
"from": "human",
"value": "# encoding: UTF-8\nmodule MongoMapper\n module Plugins\n module Dirty\n def self.configure(model)\n model.class_eval do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use clear_active_connections! instead of with_connection\n\nwith_connection only clears a single connection. If any additional\nconnections are created or used by a thread, they won't be cleared.\nInstead, use clear_active_connections! in an after filter, which is what\nRails d... | ruby | chosen |
[
{
"from": "system",
"value": "Update public_updated_at to rfc3339 format\n\nWithout this format, it does not validate against `GovukContentSchemaTestHelpers::Validator` and throws error: \"The property '#/public_updated_at' must be a valid RFC3339 date/time string in schema file:///var/govuk/govuk-content-s... | ruby | chosen |
[
{
"from": "system",
"value": "Use Travis.config to retrieve default values for api_builds_rate_limit\n"
},
{
"from": "human",
"value": "module Travis::API::V3\n class Services::Requests::Create < Service\n TIME_FRAME = 1.hour\n LIMIT = 10\n private_constant :TIME_FRAME, :LIMIT\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Make the rwky redis patch less costly when unnecessary\n"
},
{
"from": "human",
"value": "require 'travis/build/appliances/base'\n\nmodule Travis\n module Build\n module Appliances\n class FixRwkyRedis < Base\n def apply\n command = <<-EOF\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add migration to migrate (d'oh) SpreeI18n/Globalize settings\n"
},
{
"from": "gpt",
"value": "class MigrateSpreeI18nGlobalizeConfig < ActiveRecord::Migration[6.0]\n def up\n locales = []\n\n if defined?(SpreeI18n) && defined?(SpreeI18n::Config)\n locales ... | ruby | chosen |
[
{
"from": "system",
"value": "Use Formatters::Stack::Table when listing via CLI\n"
},
{
"from": "human",
"value": "module Percheron\n module CLI\n class ListCommand < AbstractCommand\n\n def execute\n Stack.all(config).each do |stack_name, stack|\n ap stack\n st... | ruby | chosen |
[
{
"from": "human",
"value": "Add Spec for Lessons Controller create\n\nAdd spec tests for the Lessons controller create action.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe LessonsController do\n let(:user) { FactoryGirl.create :user }\n\n before :each do\n @request.en... | ruby | chosen |
[
{
"from": "system",
"value": "Test that the subscribers are invoked the correct number of times\n"
},
{
"from": "human",
"value": "require 'rails_helper'\nrequire 'spec_helper'\n\ndescribe StripeEvent::WebhookController do\n def stub_event(identifier, status = 200)\n stub_request(:get, \"htt... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for m4a audio onebox.\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe Onebox::Engine::AudioOnebox do\n it \"supports ogg\" do\n expect(Onebox.preview('http://upload.wikimedia.org/wikipedia/commons/c/c8/Example.ogg').to_s).to matc... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for the FileAdapter"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe \"SitemapGenerator::FileAdapter\" do\n let(:location) { SitemapGenerator::SitemapLocation.new }\n let(:adapter) { SitemapGenerator::FileAdapter.new }\n\n describe \"wri... | ruby | chosen |
[
{
"from": "system",
"value": "Add few more request helpers\n"
},
{
"from": "human",
"value": "module RequestSpecHelper\n def i_should_see(content)\n page.should have_content(content)\n end\n\n def i_should_not_see(content)\n page.should have_no_content(content)\n end\n\n def i_should_... | ruby | chosen |
[
{
"from": "system",
"value": "Update a few test to updated rspec syntax\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe ActivatedUI do\n\n include ActivatedUI\n\n describe '#ui_activated?' do\n\n before :each do\n should_receive(:stored_activated_ui).at_least(:once... | ruby | chosen |
[
{
"from": "system",
"value": "Allow option to override url\n"
},
{
"from": "human",
"value": "require 'omniauth-oauth2'\n\nmodule OmniAuth\n module Strategies\n class Headquarters < ::OmniAuth::Strategies::OAuth2\n include ::OmniAuth::Strategy\n\n URL = 'https://hq.groupbuddie... | ruby | chosen |
[
{
"from": "system",
"value": "Fix specs in ruby 1.8"
},
{
"from": "human",
"value": "module Warden\n module GitHub\n module Rails\n class Config\n BadConfig = Class.new(StandardError)\n\n # A cache of the warden config for the active manager.\n attr_accessor :warden... | ruby | chosen |
[
{
"from": "human",
"value": "Add example modeled after one on official site.\n"
},
{
"from": "gpt",
"value": "require \"rubygems\"\nrequire \"xmlstats\"\nrequire \"date\"\n\nXmlstats.api_key = ENV[\"XMLSTATS_API_KEY\"]\nXmlstats.contact_info = ENV[\"XMLSTATS_CONTACT_INFO\"] || \"alex@anticl... | ruby | chosen |
[
{
"from": "human",
"value": "Add show me the way to go home\n"
},
{
"from": "gpt",
"value": "# Lesson 9 - More Chords: D, E, A and B Flat\n# Rhythm - Oom Pah (Show me the way to go home)\nuse_synth :piano\n\ndefine :oom_pah_d do\n play :D3\n play chord(:D4)\n sleep 0.5\n\n play chord(:D4)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update deployment target to 10.0 and pod version to 1.1.\n"
},
{
"from": "human",
"value": "\nPod::Spec.new do |s|\ns.name = 'NotificationObserverHelper'\ns.version = '1.0.0'\ns.ios.deployment_target = '8.0'\ns.source = { :git => 'https://github.com/srpoucse... | ruby | chosen |
[
{
"from": "system",
"value": "Remove labels from new issue link\n\nas this requires collaborator rights\n"
},
{
"from": "human",
"value": "require 'travis/build/addons/base'\n\nmodule Travis\n module Build\n class Addons\n class AptPackages < Base\n SUPER_USER_SAFE = true\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix same bug for schools.\n"
},
{
"from": "human",
"value": "class SchoolsController < ApplicationController\n load_resource\n \n def index\n @schools = School.order(:official_name).paginate(:page => params[:page], :per_page =>\n 25)\n end\n\n def create\n ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.