conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Remove related policies that do not exist within the publishing api\n\n- In response to Sync Check error: \"the links key 'related_policies' is not present\"\n"
},
{
"from": "gpt",
"value": "#This removes related policies that do not exist within the publishing api\n... | ruby | chosen |
[
{
"from": "system",
"value": "Allow pushing any gem server\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'rgot/version'\n\nGem::Specification.new do |spec|\n spec.name = \... | ruby | chosen |
[
{
"from": "human",
"value": "Add metric for count of instances in AWS AutoScaling group\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n#\n# AutoScaling Group Instance Metrics\n# ===\n#\n# Get a count of instances in a given AutoScaling group\n#\n# Copyright 2013 Bashton Ltd http://www.bas... | ruby | chosen |
[
{
"from": "system",
"value": "Change Users api to be more consistent with the new addition of convenors and tutors endpoints.\n"
},
{
"from": "human",
"value": "require 'grape'\n\nmodule Api\n class Users < Grape::API\n helpers AuthHelpers\n\n before do\n authenticated?\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use inifile instead of chef-metal\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n# Extremely simple fog wrapper using pry for the interactive shell\n# Written before I realized there was a 'fog' command already, but I like pry\n# and using ~/.aws/config for... | ruby | chosen |
[
{
"from": "human",
"value": "Add rspec file for challenge 4.3 release 4\n"
},
{
"from": "gpt",
"value": "require_relative \"my_solution\"\n\ndescribe \"add\" do\n it \"is defined as a method\" do\n expect(defined?(add)).to eq 'method'\n end\n\n it \"adds two numbers\" do\n expect(add(2,... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test for new data structure\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe FlowManagersController do\n let(:user) { FactoryGirl.create :user, :admin, first_name: \"Admin\" }\n\n before do\n sign_in user\n end\n\n describe \"GET 'show... | ruby | chosen |
[
{
"from": "system",
"value": "Add default blank user config"
},
{
"from": "human",
"value": "require 'jquery-rails'\nrequire 'sass-rails'\nrequire 'bootstrap-sass'\nrequire 'kss'\nrequire \"stylin/engine\"\n\nmodule Stylin\n config = {\n stylesheets_path: File.join('app', 'assets', 'styleshe... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a 500 when getting follows\n"
},
{
"from": "human",
"value": "require 'net/http'\n\nclass Twitch\n class Error < StandardError; end\n class NotFound < Error; end\n\n module User\n def self.login_from_url(twitch_url)\n %r{^https?://(?:www\\.)?twitch\\.... | ruby | chosen |
[
{
"from": "system",
"value": "Remove compatibility method and fix its usages\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../constraint\", __FILE__)\n\nclass Vector\n attr_reader :members\n\n # TODO : vector shouldn't know the constraints it was generated from\n # Constraints... | ruby | chosen |
[
{
"from": "human",
"value": "Add first tests for the organizations collection\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\nrequire 'json'\n\ndescribe 'the organizations collection' do\n include Rack::Test::Methods\n\n before :all do\n new_database\n end\n\n it 'requires authent... | ruby | chosen |
[
{
"from": "system",
"value": "Use a string instead boolean\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Configurator::Config do\n it \"sets and gets values assigned\" do\n config = Configurator::Config.new\n config.my_config = true\n expect(config.my_config).to ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove allow_blank from user email validation\n"
},
{
"from": "human",
"value": "class Identity <OmniAuth::Identity::Models::ActiveRecord\n validates :name, presence: true\n validates :email, presence: true, uniqueness: true, allow_blank: true, format:\n { with... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up get_headers by using \"each_line\"\n"
},
{
"from": "human",
"value": "require 'socket'\nrequire_relative 'handler'\nrequire_relative 'parser'\n\nclass Server\n\tattr_reader :server, :client, :port, :handler\n\n\tdef initialize(port, array_of_pages, error_pa... | ruby | chosen |
[
{
"from": "system",
"value": "Verify that the \"after\" commit is the one posted\n"
},
{
"from": "human",
"value": "require File.expand_path('../helper', __FILE__)\n\nclass AppHarborTest < Service::TestCase\n def setup\n @stubs = Faraday::Adapter::Test::Stubs.new\n end\n\n def test_push\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the template of update migration\n"
},
{
"from": "human",
"value": "class UpdateFriendships < ActiveRecord::Migration\n def self.up\n HasFriendship::Friendship.where(status: 'pending').update_all(status: 0)\n HasFriendship::Friendship.where(status: 'reque... | ruby | chosen |
[
{
"from": "system",
"value": "Use mailcatcher SMTP in dev\n"
},
{
"from": "human",
"value": "Dummy::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 reloaded on\n # eve... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out unused method calls\n"
},
{
"from": "human",
"value": "require 'nokogiri'\nrequire 'json'\n\n# TODO:\n# 1. Verify RubyMotion is installed\n# 2. Get latest BridgeSupport folder\n# 3. Get all files inside folder\n# 4. Process each through nokogiri\n\n# Opt... | ruby | chosen |
[
{
"from": "system",
"value": "Use recursive algorithm to limit review comment\n\nAs an alternative, this commit uses recursion to limit the review body\ncomment.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nclass ReviewBody\n MAX_BODY_LENGTH = 65536\n SUMMARY_LENGTH = 80\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add Webmock and HttpMultiParty monkey patch.\n"
},
{
"from": "gpt",
"value": "require 'webmock'\nrequire 'httmultiparty'\n\nclass FakeUploadIO\n\n attr_accessor :original_filename, :content_type, :body\n\n def initialize(io)\n io.rewind # make sure....\n\n se... | ruby | chosen |
[
{
"from": "system",
"value": "Add not null db validations to users.\n"
},
{
"from": "human",
"value": "class CreateUsers < ActiveRecord::Migration\n def change\n create_table :users do |t|\n t.string :name\n t.string :password_digest\n t.timestamps\n end\n end\nend\n"
},... | ruby | chosen |
[
{
"from": "system",
"value": "Add address reference to user migration\n"
},
{
"from": "human",
"value": "class CreateUsers < ActiveRecord::Migration\n def change\n create_table :users do |t|\n t.string :first_name, null: false\n t.string :last_name, null: false\n t.string :ema... | ruby | chosen |
[
{
"from": "system",
"value": "Add rack-test as development dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'hi/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Profile > Preferences feature specs\n\nSigned-off-by: Rémy Coutable <4ea0184b9df19e0786dd00b28e6daa4d26baeb3e@rymai.me>\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Profile > Preferences' do\n let(:user) { create(:user) }\n\n before do... | ruby | chosen |
[
{
"from": "system",
"value": "Initialize builders for models that don't have one.\n"
},
{
"from": "human",
"value": "require 'bricks/builder'\nrequire 'bricks/dsl'\n\nmodule Bricks\n class << self\n attr_accessor :builders\n end\n\n class BuilderHashSet\n def initialize(&block)\n @... | ruby | chosen |
[
{
"from": "system",
"value": "Connect to port specified in configuration\n\nFixes #10."
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\n$: << File.join(File.dirname(__FILE__), 'lib')\n\nrequire 'irclogger'\nrequire 'irclogger/cinch_plugin'\nrequire 'redis'\n\npidfile = File.join(File.dirn... | ruby | chosen |
[
{
"from": "system",
"value": "Hide auth_token method from CLI/shell.\n"
},
{
"from": "human",
"value": "require 'gitlab/version'\nrequire 'gitlab/objectified_hash'\nrequire 'gitlab/configuration'\nrequire 'gitlab/error'\nrequire 'gitlab/request'\nrequire 'gitlab/api'\nrequire 'gitlab/client'\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Twitter gem usage changes.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nrequire 'twitter'\nrequire './time_messenger'\n\nTwitter.configure do |config|\n config.consumer_key = 'xxxxx'\n config.consumer_secret = 'xxxxx'\n config.oauth_token = 'xxxx... | ruby | chosen |
[
{
"from": "system",
"value": "Move root into configuration block\n"
},
{
"from": "human",
"value": "require 'sinatra/asset_pipeline'\nrequire 'sinatra/base'\nrequire 'sinatra/reloader'\n\nclass Wowser < Sinatra::Base\n\n set :root, File.dirname(__FILE__) + '/../'\n\n configure do\n register... | ruby | chosen |
[
{
"from": "system",
"value": "Update YARD to use the 1.8 parser for jruby\n\n* Without this the ripper parser is used, which is still too buggy.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nnamespace :metrics do\n namespace :yardstick do\n begin\n require 'yardstick/rake/meas... | ruby | chosen |
[
{
"from": "system",
"value": "Fix invalid URI in gemspec\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"content_manager/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Stop if classes is blank.\n"
},
{
"from": "human",
"value": "namespace :mongoid_search do\n desc 'Goes through all documents with search enabled and indexes the keywords.'\n task :index => :environment do\n Mongoid::Search.classes.each do |klass|\n Log.sil... | ruby | chosen |
[
{
"from": "system",
"value": "Add MIT License specification to gemspec\n\nThanks to @bf4's detailed description (#49).\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"clockwork\"\n s.version = \"0.5.5\"\n\n s.authors = [\"Adam Wiggins\", \"tomykaira\"]\n s.descr... | ruby | chosen |
[
{
"from": "human",
"value": "Add \"next\" command functional test.\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\nrequire 'test/unit'\nrequire 'trace'\nrequire_relative 'fn_helper'\n\nclass TestNext < Test::Unit::TestCase\n\n include FnTestHelper\n\n def test_next_same_level\n\n # Se... | ruby | chosen |
[
{
"from": "system",
"value": "Change cc.rb variable to project_name\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\n# The svn:externals is a bit of a hack, but seems like the easiest solution to pulling in different projects\n#\n# Intentionally doing svn co and rake cruise in separate ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix open and active processes in participation home\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule GobiertoParticipation\n class WelcomeController < GobiertoParticipation::ApplicationController\n def index\n @processes = current_... | ruby | chosen |
[
{
"from": "system",
"value": "Remove spurious dash from file path glob\n\n- go .tar.gz files don't have a dash before the version,\n e.g. go1.6.3.linux-amd64.tar.gz\n\n[#127362389]\n\nSigned-off-by: Sam Smith <03a07629efb0a02c7bbe7cc340a4243da1ab861a@gmail.com>\n"
},
{
"from": "human",
"value":... | ruby | chosen |
[
{
"from": "system",
"value": "Use FeedImport.created_at for Feed.last_fetched_at, FeedImport.updated_at for Feed.updated_at\n"
},
{
"from": "human",
"value": "# == Schema Information\n#\n# Table name: feed_imports\n#\n# id :integer not null, primary key\n# feed_id ... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 0.64.0 to ~> 0.68.1\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": "Work around idiosyncrasies of stripe-mock\n"
},
{
"from": "human",
"value": "require File.expand_path('../../test_helper', __FILE__)\n\nmodule Stripe\n class ReversalTest < Test::Unit::TestCase\n setup do\n @transfer = Stripe::Transfer.retrieve(\"tr_123\")\... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up document migration script\n"
},
{
"from": "human",
"value": "class CreateDocuments < ActiveRecord::Migration\n def change\n create_table :documents do |t|\n t.string :type, null: false\n t.string :digest, null: false, limit: 64\n t.dateti... | ruby | chosen |
[
{
"from": "system",
"value": "Handle class level view_path changes, this should also avaid some weirdness in ActionMailer.\n"
},
{
"from": "human",
"value": "module RailsDevelopmentBoost\n module CachedTemplatesPatch\n module BasePatch\n \n module ClassMethods\n def process_... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement from ~> 1.9.1 to ~> 1.10.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/ru... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gemspec for 1.8 rubies (minitest 5 clashes with mocha 0.13.2)\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'nexmo'\n s.version = '1.2.0'\n s.platform = Gem::Platform::RUBY\n s.authors = ['Tim Craft']\n s.email = ['mail@timcraf... | ruby | chosen |
[
{
"from": "system",
"value": "Make github project page the homepage again.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"smail\"\n s.version = \"0.0.5\"\n s.author = \"Matthew Walker\"\n s.email = \"matthew@walker.wattle.id.au\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove SSL test, this is done at nginx lvl\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe HeartbeatController, type: :controller do\n\n describe '#ping' do\n describe 'does not force ssl' do\n before do\n allow(Rails).to ... | ruby | chosen |
[
{
"from": "system",
"value": "Update FinalizedConnection to new CommandContext format\n"
},
{
"from": "human",
"value": "module CarbonMU\n class Connection\n private\n\n class FinalizedConnection < ConnectionState\n def handle_input(input)\n command_context = CommandContext.ne... | ruby | chosen |
[
{
"from": "system",
"value": "Create separate sequel connection to avoid settings leakage\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Travis\n module Logs\n module Services\n class PartmanMaintenance\n include Travis::Logs::MetricsMethods\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Improve token logic for ENV var\n"
},
{
"from": "human",
"value": "require \"rails/engine\"\n\nmodule AhoyEmail\n class Engine < ::Rails::Engine\n initializer \"ahoy_email\" do |app|\n AhoyEmail.secret_token ||= begin\n creds =\n if app.resp... | ruby | chosen |
[
{
"from": "system",
"value": "Use new registration name in bin/akephalos\n"
},
{
"from": "human",
"value": "# Begin a new Capybara session, by default connecting to localhost on port\n# 3000.\ndef session\n Capybara.app_host ||= \"http://localhost:3000\"\n @session ||= Capybara::Session.new(:A... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade CLion EAP to v142.5047.10\n"
},
{
"from": "human",
"value": "cask :v1 => 'clion-eap' do\n version '142.4859.12'\n sha256 'eb0eda15a615aea33a43acbb0efd23e24049e041aed68711f6e0319d0c987c93'\n\n url \"https://download.jetbrains.com/cpp/CLion-#{version}-custo... | ruby | chosen |
[
{
"from": "system",
"value": "Set timeout limit to 25s\n"
},
{
"from": "human",
"value": "# config/unicorn.rb\n\nworker_processes Integer(ENV['WEB_CONCURRENCY'] || 3)\ntimeout Integer(ENV['WEB_TIMEOUT'] || 30)\npreload_app true\n\nbefore_fork do |server, worker|\n\n Signal.trap 'TERM' do\n p... | ruby | chosen |
[
{
"from": "system",
"value": "Set all the recipes to be called in the right order\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\r\n\r\n#\r\n# Cookbook Name:: base_windows\r\n# Recipe:: default\r\n#\r\n# Copyright 2017, P. van der Velde\r\n#\r\n\r\n# Always make sure that apt i... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to a blacklist for metadata keys.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Dimples\n # A mixin class that handles reading and parsing front matter from a file.\n module Frontable\n METADATA_KEYS = %w[title layout extensi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in repo name\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Liftoff < Formula\n homepage 'https://github.com/liftoffcli/liftoff'\n url 'http://liftoffcli.github.io/liftoff/Liftoff-1.8.1.tar.gz'\n sha256 '4f60770640cef4d510fccb66fb36e741848... | ruby | chosen |
[
{
"from": "system",
"value": "Change podspec file / spec.source_files\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n spec.name = \"Framezilla\"\n spec.version = \"0.1\"\n spec.summary = \"Comfortable syntax for working with frames.\"\n\n spec.hom... | ruby | chosen |
[
{
"from": "system",
"value": "Add active in apikey validation"
},
{
"from": "human",
"value": "require 'grape-swagger'\n\nmodule Pushificator\n class V1 < Grape::API\n version 'v1', using: :path, vendor: 'pushificator'\n # Specific content type to set UTF-8 and avoid codification problems... | ruby | chosen |
[
{
"from": "system",
"value": "Add github repo to gemspec as the 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 'heroku-request-id/version'\n\nGem::Specification.new do |spe... | ruby | chosen |
[
{
"from": "system",
"value": "Add url method to github issues\n\nFixes #567\n"
},
{
"from": "human",
"value": "class GithubIssue < ActiveRecord::Base\n belongs_to :github_repository\n belongs_to :github_user, primary_key: :github_id\n\n API_FIELDS = [:number, :state, :title, :body, :locked, :... | ruby | chosen |
[
{
"from": "system",
"value": "Add video asset to news items\n"
},
{
"from": "human",
"value": "require \"edition\"\n\nclass NewsEdition < Edition\n include Attachable\n\n field :subtitle, type: String\n field :body, type: String\n field :featured, type: Boolean\n \n GOVS... | ruby | chosen |
[
{
"from": "system",
"value": "Add a dummy string as a secret token\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Your secret key is used for verifying the integrity of signed cookies.\n# If you change this key, all old signed cookies will bec... | ruby | chosen |
[
{
"from": "system",
"value": "Add a functional test for the business support campaign page\n"
},
{
"from": "human",
"value": "require_relative \"../test_helper\"\n\nclass CampaignControllerTest < ActionController::TestCase\n\n should \"set slimmer format of campaign\" do\n get :workplace_pen... | ruby | chosen |
[
{
"from": "system",
"value": "Remove question about moving Stay to /Applications\n"
},
{
"from": "human",
"value": "cask 'stay' do\n version '1.2.5'\n sha256 '4ca4048d75c2b3199e1a46c06797a1a483ebf7f9ca9fa48ddac9eb1bfe75bc58'\n\n url \"https://cordlessdog.com/stay/versions/Stay%20#{version}.zi... | ruby | chosen |
[
{
"from": "system",
"value": "Make clarification in PathManager clearer\n"
},
{
"from": "human",
"value": "module Nehm\n\n ##\n # Path manager works with download paths\n\n module PathManager\n\n def self.default_dl_path\n Cfg[:dl_path]\n end\n\n ##\n # Checks path for valida... | ruby | chosen |
[
{
"from": "human",
"value": "Add unit tests for ReceiverArgumentInfo\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\nrequire 'gir_ffi_test_helper'\nrequire 'gir_ffi/receiver_argument_info'\n\ndescribe GirFFI::ReceiverArgumentInfo do\n let(:dummy_type) { 'foo' }\n let(:instance)... | ruby | chosen |
[
{
"from": "system",
"value": "Check last mail in deliveries instead of first cause it's appended not prepended.\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nmodule Authentication\n class RegistrationsControllerTest < ActionController::TestCase\n include ActiveJob::TestHelper\n... | ruby | chosen |
[
{
"from": "system",
"value": "Enable all of the services required for networking.\n\nThis will probably get refactored later into more roles.\n\nChange-Id: I303edfc8db1237acf507b0d5fe886dc66e0baeee\n"
},
{
"from": "human",
"value": "name \"os-network\"\ndescription \"Configures OpenStack network... | ruby | chosen |
[
{
"from": "system",
"value": "Add documentation SimpleFormAdapt; Add ability to search custom validation;\n"
},
{
"from": "human",
"value": "module ParsleySimpleForm\n class SimpleFormAdapt < SimpleForm::FormBuilder\n\n def input(attribute_name, options = {}, &block)\n options[:input_ht... | ruby | chosen |
[
{
"from": "system",
"value": "Handle bad url error in errbit\n\nIn particular, this query string\n`ad_type='2&q='Bolso+(coslada)&woeid='766273`.\n\nNo idea where it comes from but let's just handle it gracefully and not\ncrash.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\ncl... | ruby | chosen |
[
{
"from": "system",
"value": "Add Rakefile to the gem, oops. Bump version to 0.1.1\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'sinatra-redis-cache'\n s.version = '0.1'\n s.licenses = ['MIT']\n s.summary = 'A simple redis backed cache for Sin... | ruby | chosen |
[
{
"from": "human",
"value": "Add a task to populate the artefact 'live' flag.\n"
},
{
"from": "gpt",
"value": "namespace :live_flag do\n task :populate => :environment do\n # Disable the search observer to avoid a mass update of Rummager\n Artefact.observers.disable :update_search_observe... | ruby | chosen |
[
{
"from": "human",
"value": "Test around_each logic with special organizer constructs\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\nrequire 'test_doubles'\n\nRSpec.describe LightService::Organizer do\n class TestReduceIfWithAroundEach\n extend LightService::Organizer\n\n def sel... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement to ~> 0.52.0\n\nUpdates the requirements on [rubocop](https://github.com/bbatsov/rubocop) to permit the latest version.\n- [Release notes](https://github.com/bbatsov/rubocop/releases)\n- [Changelog](https://github.com/bbatsov/rubocop/blob/master/CHANG... | ruby | chosen |
[
{
"from": "system",
"value": "Patch in AMQPS support for travis-config\n"
},
{
"from": "human",
"value": "module Travis\n class Config\n module Url\n class Base < Struct.new(:username, :password, :host, :port, :database)\n def to_h\n Hash[each_pair.to_a]\n end\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix unescaped newline in single-quoted string\n"
},
{
"from": "human",
"value": "module Overcommit::Hook::PreCommit\n # Ensures that a commit author has a name with at least first and last names.\n class AuthorName < Base\n def run\n result = execute(%w[gi... | ruby | chosen |
[
{
"from": "system",
"value": "Allow overriding of action in PublishingApiWorker\n"
},
{
"from": "human",
"value": "class PublishingApiWorker\n include Sidekiq::Worker\n\n def perform(model_name, id, update_type = nil, locale=I18n.default_locale.to_s)\n return unless model = class_for(model_... | ruby | chosen |
[
{
"from": "system",
"value": "[api] Convert 1.9 hash syntax to hashrocket syntax within inventory_units\ncontroller\n\nFixes #2398\n\nFixes #2400\n"
},
{
"from": "human",
"value": "module Spree\n module Api\n module V1\n class InventoryUnitsController < Spree::Api::V1::BaseController\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Disable dependencies plugin (should be branched instead)"
},
{
"from": "human",
"value": "PE_PATH=\"#{File.expand_path('../',File.dirname(__FILE__))}\"\n\nmodule PotionExtra\n\n def self.in_config\n return Proc.new do |config|\n\n # Rails::Initializer.run d... | ruby | chosen |
[
{
"from": "system",
"value": "Add actual restart step for Capistrano\n"
},
{
"from": "human",
"value": "# config valid only for Capistrano 3.1\nlock '3.2.1'\n\nset :application, 'track-assignment'\nset :repo_url, 'https://github.com/pgengler/track-assignment.git'\n\nset :deploy_to, '/srv/apps/tr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rabbitmq_erlang_cookie provider under rbenv"
},
{
"from": "human",
"value": "require 'puppet'\nrequire 'set'\nPuppet::Type.type(:rabbitmq_erlang_cookie).provide(:ruby) do\n\n defaultfor :feature => :posix\n\n env_path = '/opt/puppetlabs/bin:/usr/local/bin:/usr... | ruby | chosen |
[
{
"from": "system",
"value": "Remove deprecated way of setting up database\n"
},
{
"from": "human",
"value": "require \"codeclimate-test-reporter\"\nCodeClimate::TestReporter.start\n\n$: << File.expand_path(\"../../lib\", __FILE__)\n\nrequire 'database_cleaner'\nrequire 'mongoid'\nrequire 'mongo... | ruby | chosen |
[
{
"from": "system",
"value": "Use default observed dirs instead of configuring\n"
},
{
"from": "human",
"value": "require 'snapshot_coverage'\nCoverage.start\nrequire 'finland'\n\nFinland.index_location = \"index.txt\"\nFinland.observed_dirs << Pathname(__FILE__).join('../../lib').to_s\n\nRSpec.... | ruby | chosen |
[
{
"from": "system",
"value": "Remove logging output from tests\n"
},
{
"from": "human",
"value": "$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n\nrequire 'juggler'\n\nrequire 'em-spec/rspec'\n\nmodule EM\n class ChainableDeferrable\n include Deferrable\n\n def callback(&bloc... | ruby | chosen |
[
{
"from": "system",
"value": "Remove debug from the spec config.\n"
},
{
"from": "human",
"value": "require 'distillery'\nrequire 'rspec'\n\nDir['./spec/support/**/*.rb'].each { |f| require f }\n\nRSpec.configure do |config|\n config.color_enabled = true\n config.debug = true\n\n config.filte... | ruby | chosen |
[
{
"from": "system",
"value": "Remove extraneous require to test/unit\n\ngit-svn-id: 982b67ca69bd6fc3726bc0f9388c1d3710924df8@1185 af276e61-6b34-4dac-905b-574b5f35ef33\n"
},
{
"from": "human",
"value": "require \"rubygems\"\nrequire \"logger\"\ndir = File.dirname(__FILE__)\n$LOAD_PATH.unshift(\"#... | ruby | chosen |
[
{
"from": "system",
"value": "Add require gems, and fixtures path\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.dirname(__FILE__))\n$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\nrequire 'ticketmaster-github'\nrequire 'spec'\nrequire 'spec/autorun'\n\nSpec::Runn... | ruby | chosen |
[
{
"from": "system",
"value": "Add coveralls.io stats to gem\n\nSigned-off-by: Seapagan <4ab1b2fdb7784a8f9b55e81e3261617f44fd0585@gmail.com>\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\nrequire 'optioneer'\n"
},
{
"from": "gpt",
"value... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for Security/YAMLLoad rubocop warning\n"
},
{
"from": "human",
"value": "require 'puppetlabs_spec_helper/module_spec_helper'\nrequire 'rspec-puppet-facts'\ninclude RspecPuppetFacts\n\nif Dir.exist?(File.expand_path('../../lib', __FILE__))\n require 'coveralls'\... | ruby | chosen |
[
{
"from": "system",
"value": "Add the basic spec helper\n"
},
{
"from": "human",
"value": "require 'chefspec'\nrequire 'chefspec/berkshelf'\n\nat_exit { ChefSpec::Coverage.report! }\n"
},
{
"from": "gpt",
"value": "require 'chefspec'\nrequire 'chefspec/berkshelf'\n\nRSpec.configure d... | ruby | chosen |
[
{
"from": "human",
"value": "[rackspace|compute] Add tests for volume attachments.\n"
},
{
"from": "gpt",
"value": "Shindo.tests('Fog::Compute::RackspaceV2 | attachment_tests', ['rackspace']) do\n\n pending if Fog.mocking?\n\n ATTACHMENT_FORMAT = {\n 'volumeAttachment' => {\n 'id' => S... | ruby | chosen |
[
{
"from": "system",
"value": "Add Title Search For API Items\n"
},
{
"from": "human",
"value": "class Api::ItemsController < ApiController\n def index\n item_type_id = params[:item_type_id]\n number = params[:number]\n agenda_id = params[:agenda_id]\n \n @items = Item.all\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix library json search results\n"
},
{
"from": "human",
"value": "class LibrariesController < ApplicationController\n def show\n @items = Library::ItemDecorator.decorate_collection Library::Item.by_most_recent.page(params[:page])\n end\n\n def search\n ite... | ruby | chosen |
[
{
"from": "system",
"value": "Update demo data generator with provided_by_educator_name\n"
},
{
"from": "human",
"value": "class FakeServiceGenerator\n\n def initialize(student)\n @date = DateTime.new(2010, 9, 1)\n @student = student\n @drawn_service_type_ids = Set.new\n @all_servic... | ruby | chosen |
[
{
"from": "system",
"value": "Remove deprecated BigDecimal.new on move to ruby 2.6.2.\n"
},
{
"from": "human",
"value": "require 'fat_core/bigdecimal'\n\ndescribe BigDecimal do\n it 'should provide a human-readable inspect for BigDecimal' do\n expect(BigDecimal.new('33.45').inspect).to eq '3... | ruby | chosen |
[
{
"from": "system",
"value": "Use same trick to avoid sleep in all specs.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'With the contents fixture' do\n before(:each) do\n @page = mock('fake_page')\n @page.stub!(:id).and_return(1)\n @page.stub!(:type).and_return(... | ruby | chosen |
[
{
"from": "system",
"value": "Update route file with Comment resource\n"
},
{
"from": "human",
"value": "Livrodaclasse::Application.routes.draw do\n\n get 'entrar', :to => 'sessions#new', :as => :signin\n get 'auth/:provider/callback', :to => 'sessions#create'\n delete 'sair', :to => 'session... | ruby | chosen |
[
{
"from": "system",
"value": "Fix /index direct access issue\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n devise_for :users\n # The priority is based upon order of creation: first created -> highest priority.\n # See how all your routes lay out with \"rake routes\".\... | ruby | chosen |
[
{
"from": "system",
"value": "Change single quotes to double\n"
},
{
"from": "human",
"value": "require 'colorize'\nrequire File.expand_path('../document_generator.rb', __FILE__)\n\nmodule Rambo\n class CLI\n def initialize(raml_file=nil, stdout=STDOUT)\n @stdout = stdout\n @file ... | ruby | chosen |
[
{
"from": "system",
"value": "Update simplecov requirement from ~> 0.20.0 to ~> 0.21.0\n\nUpdates the requirements on [simplecov](https://github.com/simplecov-ruby/simplecov) to permit the latest version.\n- [Release notes](https://github.com/simplecov-ruby/simplecov/releases)\n- [Changelog](https://github.... | ruby | chosen |
[
{
"from": "system",
"value": "Change the hero image blur again\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nclass HeroImageUploader < ImageUploader\n\n version :blur\n\n def store_dir\n \"uploads/project/#{mounted_as}/#{model.id}\"\n end\n\n version :blur do\n process resize... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.