conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Change gemspec for version 0.0.4\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'what_now'\n s.version = '0.0.3'\n s.date = '2014-02-27'\n s.summary = 'Find todo comments in your code'\n s.description = 'Execut... | ruby | chosen |
[
{
"from": "system",
"value": "Fix cocoa pod error handling.\n"
},
{
"from": "human",
"value": "require 'cocoapods-core'\nrequire 'octokit'\n\nmodule Cocoatree\n class Pods\n attr_reader :source\n\n def source_path=source_path\n @source = ::Pod::Source.new(source_path)\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add session cookie decryption to console helper\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n# Helper methods for using console.\n# rubocop:disable Rails/Output\nclass ConsoleHelper\n include Singleton\n\n # Sets current tenant\n def tenant... | ruby | chosen |
[
{
"from": "system",
"value": "Add small spec piece for sidekiq queue\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nif defined?(::Sidekiq)\n require 'sidekiq/testing'\n\n describe Chewy::Strategy::Sidekiq do\n around { |example| Chewy.strategy(:bypass) { example.run } }\n be... | ruby | chosen |
[
{
"from": "system",
"value": "Add timeout to Mongo test\n"
},
{
"from": "human",
"value": "require 'helper'\nrequire 'flipper/adapters/mongo'\nrequire 'flipper/spec/shared_adapter_specs'\n\nMongo::Logger.logger.level = Logger::INFO\n\ndescribe Flipper::Adapters::Mongo do\n let(:host) { ENV[\"BO... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec to ensure it's safe"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'jekyll'\nrequire 'jekyll-github-metadata/ghp_metadata_generator'\n\nRSpec.describe(Jekyll::GitHubMetadata::GHPMetadataGenerator) do\n let(:overrides) { {\"repository\" => ... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for the mvhd box parser\n"
},
{
"from": "gpt",
"value": "require 'file_data/formats/mpeg4/box_parsers/mvhd_box'\nrequire 'support/test_stream'\nrequire 'file_data/helpers/stream_view'\nrequire 'time'\n\nRSpec.describe FileData::MvhdBoxParser do\n let(:view... | ruby | chosen |
[
{
"from": "system",
"value": "Add Gitaly info-ref cache feature flags\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'set'\n\nclass Feature\n class Gitaly\n # Server feature flags should use '_' to separate words.\n SERVER_FEATURE_FLAGS =\n [\n 'ge... | ruby | chosen |
[
{
"from": "system",
"value": "Use extract_options! for tasks args extraction\n"
},
{
"from": "human",
"value": "class DummyTask < Alfred::Task\n\n def initialize(arg1 = nil, arg2 = nil, options = {})\n @arg1 = arg1\n @arg2 = arg2\n @options = options\n end\n\n def task; end\n\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Test \"Check for regression, nil URL from git “top level” causes illegal instruction with implicitly forced unwrap\"\n\nExpected to pass."
},
{
"from": "human",
"value": "class Carthage < Formula\n desc \"Decentralized dependency manager for Cocoa\"\n homepage \"h... | ruby | chosen |
[
{
"from": "system",
"value": "Update Line for new App API\n"
},
{
"from": "human",
"value": "module Shoes\n module Swt\n class Line\n include Shoes::Swt::Common::Stroke\n\n # @param [Hash] opts Options\n # Must be provided if this shape is responsible for\n # drawing ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix stop when foreground is used\n\nHappens with foreman and some goliath.\n\nSigned-off-by: chatgris <f9469d12bf3d131e7aae80be27ccfe58aa9db1f1@af83.com>\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nmodule Sponges\n # This class concern is to create a Supe... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify Dsl class_eval block syntax"
},
{
"from": "human",
"value": "require 'active_support/inflector'\n\nmodule WithModel\n class Dsl\n NOOP = lambda {|*|}\n\n def initialize(name, example_group)\n @name = name\n @example_group = example_group\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Update localization limit to 16 megabytes\n"
},
{
"from": "gpt",
"value": "class ChangeLocalizationLimit < ActiveRecord::Migration\n def up\n change_column :localizations, :value, :text, limit: 16_777_215\n end\n\n def down\n change_column :localizations, :v... | ruby | chosen |
[
{
"from": "system",
"value": "Use ActiveRecord polymorphism to set sender"
},
{
"from": "human",
"value": "class ActionLog < ActiveRecord::Base\n serialize :data\n\n def self.log action, source, sender = nil, ip = nil, data = {}, admin_id = nil\n create! action: action, source: source, send... | ruby | chosen |
[
{
"from": "system",
"value": "Disable integration tests if there is no heroku app configured\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"#bootstrap\" do\n let(:user) { ENV['HEROKU_USER'] }\n let(:password) { ENV['HEROKU_PASSWORD'] }\n let(:client) { Heroku::Client.n... | ruby | chosen |
[
{
"from": "system",
"value": "Set readonly to false if the record is new so that new records can be created\n"
},
{
"from": "human",
"value": "module BeReadonly\n module Model\n extend ActiveSupport::Concern\n\n module ClassMethods\n def be_readonly\n extend BeReadonlyClassMet... | ruby | chosen |
[
{
"from": "system",
"value": "Update to active email address\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'space2underscore/version'\n\nGem::Specification.new do |s... | ruby | chosen |
[
{
"from": "human",
"value": "Add the ssl hack for spec runs.\n"
},
{
"from": "gpt",
"value": "require 'net/http'\n\nNet::HTTP.class_eval do\n def do_start\n # Start Hack\n @ssl_version = :SSLv3 if @address =~ /.*\\.dibspayment\\.com/\n # PREPARE', End Hack\n connect\n @started = ... | ruby | chosen |
[
{
"from": "system",
"value": "Include service filters into services on inherit\n\nFilters are only run in the class the are defined in. They are not\ninherited. That means we need to inject them into each service that\ninherits from PB's RPC::Service class instead.\n"
},
{
"from": "human",
"valu... | ruby | chosen |
[
{
"from": "system",
"value": "Increase version number in podspec\n"
},
{
"from": "human",
"value": "#\n# Be sure to run `pod lib lint MKCommons.podspec' to ensure this is a\n# valid spec and remove all comments before submitting the spec.\n#\n# Any lines starting with a # are optional, but encou... | ruby | chosen |
[
{
"from": "system",
"value": "Make gem working for ActiveRecord 3\n\nUse .scoped method for AR3.2 and .all for AR4\nReplace `scope :cursor` by `def self.cursor` (because you can't get previous\nscope in ActiveRecord 3, when use `scope :cursor`)\n"
},
{
"from": "human",
"value": "require 'cursor_... | ruby | chosen |
[
{
"from": "system",
"value": "Remove specific websockets middleware insertion point.\n\n"
},
{
"from": "human",
"value": "module SpreeBrewbitDashboard\n class Engine < Rails::Engine\n require 'spree/core'\n isolate_namespace Spree\n engine_name 'spree_brewbit_dashboard'\n\n # use rs... | ruby | chosen |
[
{
"from": "system",
"value": "Use admin@ for default admin account and set the password to something random.\n"
},
{
"from": "human",
"value": "puts \"Seeding database\"\nputs \"-------------------------------\"\n\n# Create an initial Admin User\nadmin_email = \"errbit@#{Errbit::Config.host}\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix seed data: password_hash to password. Add additional question choices to test seed.\n"
},
{
"from": "human",
"value": "user01 = User.create( username: \"Albert\", password_hash: \"Albert\")\nuser02 = User.create( username: \"Bertha\", password_hash: \"Bertha\")\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix: Use a 1.9.3-compatible way of counting bytes in Utf8mb3Cleaner\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule ActiveCleaner\n class Utf8mb3Cleaner < BaseCleaner\n\n def clean_value(old_value, record=nil)\n unless old_value.nil?\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add all tests complete message printer to Formatter\n"
},
{
"from": "human",
"value": "require 'colorize'\n\nmodule Dest\n\n class Formatter\n\n @@fail_count = 1\n\n def initialize(evald_result)\n @evald_result = evald_result\n end\n\n def print\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Concatenate arrays without modifying the first array\n"
},
{
"from": "human",
"value": "#\n# concat.rb\n#\n\nmodule Puppet::Parser::Functions\n newfunction(:concat, :type => :rvalue, :doc => <<-EOS\nAppends the contents of array 2 onto array 1.\n\n*Example:*\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec version to 1.0.1\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Metron'\n s.version = '1.0.0'\n s.summary = 'Gemeometry, simplified.'\n\n s.description = <<-DESC\nMetron is a comprehensive co... | ruby | chosen |
[
{
"from": "system",
"value": "Clear out data and errors after successful send.\n"
},
{
"from": "human",
"value": "module MailerProcess\n def self.included(base)\n base.class_eval { \n alias_method_chain :process, :mailer \n attr_accessor :last_mail\n }\n end\n\n def process_wi... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure modified request isn't stopped by Rack::Protection::AuthenticityToken\n\nIf user doesn't have csrf set yet, then\nRack::Protection::AuthenticityToken will happily stop post request\n"
},
{
"from": "human",
"value": "require 'warden'\nrequire File.join(File... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rake task to use arguments\n"
},
{
"from": "human",
"value": "namespace :docker do\n desc 'Remove pre-existing Docker container'\n task :clean do\n system \"docker images | grep \\\"quimby\\\" | awk '{print $3}' | xargs docker rmi\"\n end\n\n desc 'Build ... | ruby | chosen |
[
{
"from": "system",
"value": "Include the owning user's organisation ID\n"
},
{
"from": "human",
"value": "namespace :export do\n desc 'Export CSV data to blob storage for analysis'\n task blob: :environment do\n from_timestamp = ENV.fetch('FROM') { 3.months.ago }\n\n AppointmentSummary.... | ruby | chosen |
[
{
"from": "system",
"value": "Define error classes at load time.\n\nPreviously error classes didn't exist until they were thrown which makes it harder to do targeted rescuing.\n"
},
{
"from": "human",
"value": "module Finch\n class Error < StandardError\n\n RESPONSE_CODES = {\n 400 => '... | ruby | chosen |
[
{
"from": "system",
"value": "Allow a specific endpoint URL to be passed in\n"
},
{
"from": "human",
"value": "require_relative 'json_utils'\n\nclass GdsApi::Base\n include GdsApi::JsonUtils\n\n def initialize(environment)\n adapter_name = self.class.to_s.split(\"::\").last.downcase\n se... | ruby | chosen |
[
{
"from": "system",
"value": "Handle key not found gracefully\n"
},
{
"from": "human",
"value": "require 'fog'\nrequire \"iamfindbykey/version\"\n\nmodule EverTools\n class IamFindByKey\n\n def initialize(args)\n @args = args\n @key = args[1]\n end\n\n def run\n display(... | ruby | chosen |
[
{
"from": "system",
"value": "Set attr_reader for most of Palta::Server instance variables\n"
},
{
"from": "human",
"value": "require \"palta/core\"\nrequire \"socket\"\nrequire \"json\"\n\nmodule Palta\n\n class Server\n\n def initialize options = {}\n @host = options[:host] || \"local... | ruby | chosen |
[
{
"from": "system",
"value": "Use original method name as variable\n"
},
{
"from": "human",
"value": "# TODO (smolnar)\n# * create custom handlers for preprocessing args\n# * add option to specify context which method run on (class or instance)\n# * figure out specs\n\nmodule Scout\n module Wor... | ruby | chosen |
[
{
"from": "system",
"value": "Remove all whitespace from strings.\n"
},
{
"from": "human",
"value": "require \"strus/smoosh/version\"\n\nmodule Strus\n module Smoosh\n # Your code goes here...\n end\nend\n"
},
{
"from": "gpt",
"value": "require \"strus/smoosh/version\"\n\nmodule... | ruby | chosen |
[
{
"from": "system",
"value": "Disable s3 db backups if you're documentcloud."
},
{
"from": "human",
"value": "namespace :cron do\n\n # Only run on db01\n task :nightly do\n invoke 'crowd:cluster:free_calais_blacklist'\n invoke 'db:backup'\n invoke 'db:vacuum_analyze'\n invoke 'mail... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify that we only generate JSON\n"
},
{
"from": "human",
"value": "namespace :ember do\n desc \"Generate documentation with YUIDoc.\"\n task :docs do\n EmberDev::DocumentationGenerator.new.generate\n end\nend\n"
},
{
"from": "gpt",
"value": "nam... | ruby | chosen |
[
{
"from": "system",
"value": "Update to 0.0.8 with support for Rubinius.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |s|\n s.name = %q{atomic}\n s.version = \"0.0.7\"\n s.authors = [\"Charles Oliver Nutter\", \"MenTaLguY\"]\n s.date = Time.now.st... | ruby | chosen |
[
{
"from": "system",
"value": "Move filters to please Fuseki\n"
},
{
"from": "human",
"value": "PREFIX pc: <http://purl.org/procurement/public-contracts#>\n\nDELETE {\n ?contract ?p1 ?o1 .\n ?o1 ?p2 ?o2 .\n ?o2 ?p3 ?o3 .\n}\nWHERE {\n ?contract pc:isValid false ;\n ?p1 ?o1 .\n OPTIONAL {\... | ruby | chosen |
[
{
"from": "system",
"value": "Add all app subdirectories to $LOAD_PATH in fast specs\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.expand_path(\"../app/models\", File.dirname(__FILE__)))\n$LOAD_PATH.unshift(File.expand_path(\"../app/repositories\", File.dirname(__FILE__)))\n\nrequir... | ruby | chosen |
[
{
"from": "system",
"value": "Add some specs to user model\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe User do\n pending \"add some examples to (or delete) #{__FILE__}\"\nend\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe User do\n subje... | ruby | chosen |
[
{
"from": "human",
"value": "Add basic testing for User model.\n\nNote that methods are not yet tested. These will be available in future\nrelease.\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe User do\n context \"validations\" do\n it { should validate_presence_of :fir... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure that the user owns the team created by create_personal_namespace\n\nSigned-off-by: Miquel Sabaté <59dd01d5f2d887d8f62723e70d14bf48e0ed35a3@gmail.com>\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe User do\n\n subject { create(:user)... | ruby | chosen |
[
{
"from": "system",
"value": "Update data migration to use raw SQL\n"
},
{
"from": "human",
"value": "class PopulateOrderTaxTotals < ActiveRecord::Migration\n class Spree::Adjustment < ActiveRecord::Base\n scope :tax, -> { where(originator_type: 'Spree::TaxRate') }\n scope :additional, ->... | ruby | chosen |
[
{
"from": "system",
"value": "Update conditionals in .jbuilder template [.success?]\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\njson.success @result.success?\njson.params @result.params if @result.params\njson.errors @result.errors if @result.errors\njson.message @result.me... | ruby | chosen |
[
{
"from": "system",
"value": "Add more preinstalled go versions to precise go stack\n\nand set the default to 1.6.3\n"
},
{
"from": "human",
"value": "override['gimme']['versions'] = %w(\n 1.0.3\n 1.1.2\n 1.2.2\n 1.3.3\n 1.4.1\n)\noverride['gimme']['default_version'] = '1.4.1'\noverride['tr... | ruby | chosen |
[
{
"from": "system",
"value": "Add seed data for users\n"
},
{
"from": "human",
"value": "# This file should contain all the record creation needed to seed the database with its default values.\n# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).\n#\n#... | ruby | chosen |
[
{
"from": "human",
"value": "Add a script to deploy/update Ploggy into an existing nanoc site.\n\nThis is useful to keep the clone of Ploggy clean, while still being able to use\nPloggy in a nanoc website. This script should be used when Ploggy is updated for\nexample: your local copy can then get the lates... | ruby | chosen |
[
{
"from": "system",
"value": "Remove require of deleted file\n"
},
{
"from": "human",
"value": "\n# Standard libraries\nrequire 'socket'\nrequire 'tempfile'\nrequire 'yaml'\nrequire 'time'\nrequire 'etc'\nrequire 'uri'\nrequire 'stringio'\n\n# Gem conditional loader\nrequire 'puma/gems'\nrequire... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure we don't reset the sequence returned by rand outside Sham.\n\nTurns out Ruby's srand doesn't work the way you'd think. The seed value it returns is the initial value used to see the generator, not the current seed value. That means you can't use it to save and restore... | ruby | chosen |
[
{
"from": "system",
"value": "Convert strings to symbols to save memory instantiation.\n"
},
{
"from": "human",
"value": "module Siff\n \n SIFFS = {\n :BE => 'EUR',\n :BG => 'EUR',\n :CA => 'CAD',\n :CZ => 'EUR',\n :DK => 'EUR',\n :DE => 'EUR',\n :EE => 'EUR',\n :IE => ... | ruby | chosen |
[
{
"from": "system",
"value": "Declare openssl-ccm as runtime 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 'adyen_cse/version'\n\nGem::Specification.new do |spec|\n spec... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the Info.plist from the podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"HCSStarRatingView\"\n s.version = \"1.4.3\"\n s.summary = \"Simple star rating view for iOS written in Objecti... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `PATH` variable to support non standard brew\n\nThe formulae fails when brew isn't installed on `/usr/local`, which is the case for [boxen](https://boxen.github.com) users (brew lives in `/opt/boxen/homebrew` here)."
},
{
"from": "human",
"value": "require \"for... | ruby | chosen |
[
{
"from": "system",
"value": "Make KTSwiftExtensions an osx and ios dependency\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'InvisibillSwiftApi'\n s.version = '0.1.0'\n s.license = { :type => 'MIT', :file => 'LICENSE' }\n s.summary = 'invisibill swift api'\n\n s.homepa... | ruby | chosen |
[
{
"from": "system",
"value": "Declare this is deprecated in podspec\n"
},
{
"from": "human",
"value": "#\n# Be sure to run `pod lib lint MMCollapsibleLabel.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#... | ruby | chosen |
[
{
"from": "system",
"value": "JariBakken: Fix thinko in the Chrome::Service spec.\n\ngit-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@11900 07704840-8298-11de-bf8c-fd130f914ac9\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../../spec_helper\", __FILE__)\n\nmodule Selenium\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add expectations around test setup to help understand\n\nwhere the test is failing.\n\n[#114012649](https://www.pivotaltracker.com/story/show/114012649)\n"
},
{
"from": "human",
"value": "require 'open3'\n\ndescribe 'postgres_ctl.erb' do\n context 'running postgres... | ruby | chosen |
[
{
"from": "system",
"value": "Add github to spec 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 'pronto/tailor/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Address foodcritic offence FC064, FC065\n"
},
{
"from": "human",
"value": "name 'odoo'\nmaintainer 'Joel Handwell'\nmaintainer_email 'joelhandwell@gmail.com'\nlicense 'apachev2'\ndescription 'Installs/Configures odoo'\nlong_description 'Installs/Configures odoo'\nve... | ruby | chosen |
[
{
"from": "system",
"value": "Use the standard apache license string\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "name 'selinux'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'cookbooks@chef.io'\nlicense... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for new user's locale\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe Auth::RegistrationsController, type: :controller do\n render_views\n\n describe 'GET #new' do\n before do\n Setting.open_registrations = true\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update spec to RSpec 3 syntax\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'fog/dnsimple'\n\ndescribe 'dnsimple_test::create_same_record_with_two_values' do\n include_context 'dnsimple'\n\n context 'with existing record with the same name and ... | ruby | chosen |
[
{
"from": "system",
"value": "Add strongloop [node API builder] to node packages\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nputs \"Running Node version: #{`node --version`}\"\nnpms = {\n # module name => module command\n # leave command blank if they are the same\n \"bower\" =>... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused code from questions controller.\n"
},
{
"from": "human",
"value": "class QuestionsController < ApplicationController\n def index\n @questions = Question.all\n @questions_grid = QuestionsGrid.new(params[:questions_grid]) { |scope| scope.page(para... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for users/new view; all tests pass\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe \"users/new\", type: :view do\n\tit \"renders the :new template\" do\n\t\trender\n\t\texpect(view).to render_template(:new)\n\tend\n\t\n\tit \"displ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test to exactly match message\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'ruby_event_store/spec/dispatcher_lint'\n\nmodule RubyEventStore\n module PubSub\n\n RSpec.describe Dispatcher do\n it_behaves_like :dispatcher, Dispatcher.n... | ruby | chosen |
[
{
"from": "system",
"value": "Install ruby gem only if not installed already\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\n# Install brew and gems as listed in `brew` and `gems` folder.\n\nrequire 'rake'\n\ndef installFrom(filePath)\n File.foreach(filePath) { |line|\n name ... | ruby | chosen |
[
{
"from": "system",
"value": "Sort rummager fields by type\n\nThis makes it easier to follow and see related fields.\n"
},
{
"from": "human",
"value": "class SearchApiReference\n def self.fetch_field_definitions\n contents = HTTP.get(\n field_definitions_url,\n )\n\n JSON.parse(co... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.0.2.9 to 0.0.2.10\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'raygun_client'\n s.version = '0.0.2.9'\n s.summary = 'Client for the Raygun API using the Obsidian HTTP c... | ruby | chosen |
[
{
"from": "system",
"value": "Make gemspec have the right date for versioning\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire File.expand_path('lib/recommendable/version')\n\nGem::Specification.new do |s|\n s.name = \"recommendable\"\n s.version = Recommendable::VERSION\n s.dat... | ruby | chosen |
[
{
"from": "system",
"value": "Edit param input for lessons token controller\n"
},
{
"from": "human",
"value": "class Api::V1::LessonsTokensController < Api::ApiController\n skip_before_action :verify_authenticity_token\n\n def create\n token = LessonsTokenCreator\n .new(current_user, l... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused gem for test\n"
},
{
"from": "human",
"value": "MRuby::Build.new do |conf|\n toolchain :gcc\n\n # include the default GEMs\n conf.gembox 'full-core'\n conf.gem File.expand_path(File.dirname(__FILE__))\n conf.gem :github => 'matsumoto-r/mruby-sleep... | ruby | chosen |
[
{
"from": "system",
"value": "Add CMake to the path after installation"
},
{
"from": "human",
"value": "#\n# Cookbook:: cmake\n# Recipe:: _package\n#\n\npackage \"cmake\" do\n not_if { platform_family?('windows') }\nend\n\ncmake_version = node[\"cmake\"][\"version\"]\n\nwindows_package \"CMake ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix order of paginated accounts in FollowerDomainsController\n\nUnordered pagination could result in unexpected behavior.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'sidekiq-bulk'\n\nclass Settings::FollowerDomainsController < Applic... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gemspec for Ruby 1.8\n"
},
{
"from": "human",
"value": "version_from_source = -> (file) do\n File.open(File.expand_path(\"../#{file}\", __FILE__)) do |source|\n source.each { |line| return $1 if line =~ /\\bversion\\b.+\"(.+?)\"/i }\n end\nend\n\nGem::Speci... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec for rrdtool make\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/rrdtool_lib/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Nicolas Brousse\"]\n gem.email = [\"p... | ruby | chosen |
[
{
"from": "system",
"value": "Allow local, fake SQS implementations\n"
},
{
"from": "human",
"value": "module Aws\n module Plugins\n # @api private\n class SQSQueueUrls < Seahorse::Client::Plugin\n\n class Handler < Seahorse::Client::Handler\n\n def call(context)\n if... | ruby | chosen |
[
{
"from": "human",
"value": "Add view tests for /sessions/new; tests pass\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.describe \"/sessions/new\", type: :view do\n\tit \"renders the :new template\" do\n\t\trender\n\t\texpect(view).to render_template(:new)\n\tend\n\n\tit \"dis... | ruby | chosen |
[
{
"from": "system",
"value": "Replace class var with a class instance var\n"
},
{
"from": "human",
"value": "class UserRanking\n def self.users_array\n User.find(all.entries.collect(&:_id))\n rescue Mongoid::Errors::DocumentNotFound\n []\n end\n\n def self.users_hash\n Hash[*users_a... | ruby | chosen |
[
{
"from": "system",
"value": "Add admin-tasks.md to the publishing-api docs\n"
},
{
"from": "human",
"value": "class PublishingApiDocs\n PAGES = {\n \"api\" => \"API docs\",\n \"dependency-resolution\" => \"Dependency resolution\",\n \"link-expansion\" => \"Link expansion\",\n \"mod... | ruby | chosen |
[
{
"from": "system",
"value": "Make parse look for programEpisode flag to parse episode_id from NPR API response\n"
},
{
"from": "human",
"value": "class Npr::Parser\n attr_reader :response, :stories\n\n EPISODE_FLAG = 'unknown'\n\n def initialize(stories)\n @stories = stories\n end\n\n d... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for the Github plugin callbacks\n"
},
{
"from": "gpt",
"value": "# rubocop:disable Metrics/LineLength\nrequire 'spec_helper'\n\ndescribe Cyclid::API::Plugins::ApiExtension::GithubCallback do\n it 'creates a new instance' do\n expect{ Cyclid::API::Plugin... | ruby | chosen |
[
{
"from": "system",
"value": "Replace scenario alias from barcode_items_spec.rb with the standard it syntax\n"
},
{
"from": "human",
"value": "RSpec.describe \"Barcode Items Admin\" do\n before do\n sign_in(@super_admin)\n end\n context \"while signed in as a super admin\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Prepare for 0.0.1 beta 2 release\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Kakapo\"\n s.version = \"0.0.1-beta1\"\n s.summary = \"Next generation network mocking library.\"\n\n s.description = <<-DESC... | ruby | chosen |
[
{
"from": "system",
"value": "Prepare gemfile for next release\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |gem|\n gem.name = 'shenanigans'\n gem.version = '1.0.7'\n gem.author = 'Michael Kohl'\n gem.email = 'citizen428@gmail.com'\n gem.summary = \"Think Facets, just less u... | ruby | chosen |
[
{
"from": "system",
"value": "Use a more specific matcher in Sysvinit test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Chef::Provider::DockerService::Sysvinit with Centos' do\n let(:chef_run) do\n ChefSpec::SoloRunner.new(\n platform: 'centos',\n version: ... | ruby | chosen |
[
{
"from": "system",
"value": "Add i18n_scope to dummy app\n"
},
{
"from": "human",
"value": "ActiveModelSerializers.config.key_transform = :unaltered\n"
},
{
"from": "gpt",
"value": "ActiveModelSerializers.config.key_transform = :unaltered\nCaprese.config.i18n_scope = 'api.v1.errors'... | ruby | chosen |
[
{
"from": "system",
"value": "Set as pending the matches specs on project page\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nfeature 'Show active matches in project page' do\n background do\n @project = create(:project, state: 'online', online_date: -1.day.from_now)\n create... | ruby | chosen |
[
{
"from": "system",
"value": "Add preloading of application in Puma.\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\n# Store the pid of the server in the file at “path”.\npidfile 'tmp/pids/puma.pid'\n\n# Use “path” as the file to store the server info state. This is\n# used by “pumactl” to... | ruby | chosen |
[
{
"from": "system",
"value": "Remove executable and test files from gemspec\n\ntest_files are installed, see https://github.com/rubygems/rubygems/issues/735\nFixes #27\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $... | ruby | chosen |
[
{
"from": "system",
"value": "Remove `PolicyGroup` from `HtmlAttachment` factory\n\nUpdate the `HtmlAttachment` factory to more correctly represent a 'real\nworld' `HtmlAttachment`. `PolicyGroup` objects cannot have attached\n`HtmlAttachments`.\n"
},
{
"from": "human",
"value": "FactoryGirl.defi... | ruby | chosen |
[
{
"from": "system",
"value": "Update hashie and rash depenancies\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire File.expand_path('../lib/commons/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.add_dependency 'faraday', '~> 0.7'\n gem.add_dependency 'faraday_middlewa... | ruby | chosen |
[
{
"from": "system",
"value": "Add extra tests and assertions for VERSION\n"
},
{
"from": "human",
"value": "require_relative '../../test_helper'\n\ndescribe Gday, 'VERSION' do\n\n it \"must be defined\" do\n Gday::VERSION.wont_be_nil\n end\n\nend\n"
},
{
"from": "gpt",
"value": ... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade syntax for codeclimate (an upgarde from pre-1.0)\n"
},
{
"from": "human",
"value": "require \"codeclimate-test-reporter\"\nCodeClimate::TestReporter.start\n\n$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\nrequire 'doorkeeper-jwt'\nrequire 'pry'\... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Exclude initializers from test coverage\"\n\nThis reverts commit 7f6fbf2b487cae0a6b11fffe27eccb3e1984c23c.\n"
},
{
"from": "human",
"value": "require \"codeclimate-test-reporter\"\nCodeClimate::TestReporter.start do\n add_filter \"/config/initializers/\"\n... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.