conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix rubocop issues with function\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe 'sendmail::canonify_array' do\n context 'with arg => []' do\n it {\n is_expected.to run.with_params([]).and_return([])\n }\n end\n\n context \"with ar...
ruby
chosen
[ { "from": "system", "value": "Remove unstub from match observer specs\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe MatchObserver do\n let!(:match) { create(:match, state: :confirmed) }\n let(:contribution) { create(:contribution, state: :confirmed) }\n\n before d...
ruby
chosen
[ { "from": "human", "value": "Add spec coverage for the graphite_storage_schema provider.\n" }, { "from": "gpt", "value": "require_relative \"../spec_helper\"\nload_resource(\"graphite\", \"storage_schema\")\nload_provider(\"graphite\", \"storage_schema\")\n\ndescribe Chef::Provider::GraphiteStor...
ruby
chosen
[ { "from": "system", "value": "Fix UKRDC observations spec after changes_since change\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nmodule PathologySpecHelper\n def create_descriptions(names)\n names.map { |name| create_observation_description(name) }\n end\n\n def cre...
ruby
chosen
[ { "from": "system", "value": "Add feature test for showing rounds\n" }, { "from": "human", "value": "require \"rails_helper\"\n\nRSpec.describe \"show tournament round pairings\" do\n context \"Any vistor to the website\" do\n let(:tournament) { create :tournament }\n let(:round) { create...
ruby
chosen
[ { "from": "system", "value": "Load schemas to possibly workaround the issues on centos7.\n" }, { "from": "human", "value": "require 'spec_helper_acceptance'\n\ndescribe 'openldap::server::access' do\n\n before :all do\n pp = <<-EOS\n class { 'openldap::server': }\n openldap::server...
ruby
chosen
[ { "from": "system", "value": "Update development dependencies with versions.\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"tinify/version\"\n\nGem::Specification.new do |spec|\n...
ruby
chosen
[ { "from": "system", "value": "Upgrade IntelliJ IDEA Ultimate to 14.1.6\n" }, { "from": "human", "value": "cask 'intellij-idea14' do\n version '14.1.5'\n sha256 '50941026863e2d43f4c8dcc1c02f749c096c2d0bcf53943220314f0898efec24'\n\n url \"https://download.jetbrains.com/idea/ideaIU-#{version}.dm...
ruby
chosen
[ { "from": "system", "value": "Fix compilation of the project when using Xcode 9 new build system and CocoaPods\n\nWith current podspec, one .xib file is getting picked up as a source, and is getting into Xcode Compile Sources build step in CocoaPods generated project. \r\n\r\nNew build system is more strict...
ruby
chosen
[ { "from": "system", "value": "Hide deprecation warning when running tests.\n" }, { "from": "human", "value": "ENV[\"RAILS_ENV\"] = \"test\"\n\nrequire \"minitest/autorun\"\nrequire \"minitest/spec\"\nrequire \"minitest/mock\"\nrequire \"mocha/setup\"\n\nrequire \"devise\"\nrequire \"devise/async...
ruby
chosen
[ { "from": "system", "value": "Save individual results to avoid performance issue\n" }, { "from": "human", "value": "module Sprat\n class JobExecutor\n\n def initialize(source)\n @source = source\n end\n\n def status_message(results)\n failures = results.select(&:failed?)\n ...
ruby
chosen
[ { "from": "system", "value": "Use the inline template's hash as a method key instead of relying on a counter\n" }, { "from": "human", "value": "module ActionView #:nodoc:\n class InlineTemplate #:nodoc:\n include Renderable\n\n # Count the number of inline templates\n cattr_accessor :i...
ruby
chosen
[ { "from": "system", "value": "Use domain updated method to simplify logic\n" }, { "from": "human", "value": "class GuideContainerController < ApplicationController\n include Mumuki::Laboratory::Controllers::Content\n\n before_action :set_guide\n\n def show\n if current_user?\n @stats ...
ruby
chosen
[ { "from": "system", "value": "Use full namespace destination for Log class.\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 if Mongoid::Search.classes.blank?\...
ruby
chosen
[ { "from": "system", "value": "Update rake requirement from ~> 12.0 to ~> 13.0\n\nUpdates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.\n- [Release notes](https://github.com/ruby/rake/releases)\n- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)\n- [...
ruby
chosen
[ { "from": "system", "value": "Fix price param for TradeOgre\n" }, { "from": "human", "value": "module Cryptoexchange::Exchanges\n module TradeOgre\n module Services\n class Market < Cryptoexchange::Services::Market\n class << self\n def supports_individual_ticker_query?\...
ruby
chosen
[ { "from": "system", "value": "Mark unimplemented spec as pending\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe HCast do\n\n describe \".create\" do\n it \"should cast hash attributes\" do\n input_hash = {\n contact: {\n name: \"John Smith\",\n ...
ruby
chosen
[ { "from": "system", "value": "Refactor spec so that we care less about the structure of the available plugins results\n" }, { "from": "human", "value": "require \"spec_helper\"\n\ndescribe Nark::Plugin do\n\n it \"stores an array of plugin available\" do\n Nark::Middleware.new stub(:app, :ca...
ruby
chosen
[ { "from": "system", "value": "Test for the error case." }, { "from": "human", "value": "#\n# Copyright 2015, Noah Kantrowitz\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the...
ruby
chosen
[ { "from": "system", "value": "Upgrade mail dependency to 2.4.0\n" }, { "from": "human", "value": "version = File.read(File.expand_path(\"../../RAILS_VERSION\", __FILE__)).strip\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'actionmailer'\n s.version ...
ruby
chosen
[ { "from": "system", "value": "Add project metadata to the gemspec\n\nAs per https://guides.rubygems.org/specification-reference/#metadata,\nadd metadata to the gemspec file. This'll allow people to more easily\naccess the source code, raise issues and read the changelog. These\n`bug_tracker_uri`, `changelog...
ruby
chosen
[ { "from": "system", "value": "Fix test broken by test process changes\n" }, { "from": "human", "value": "require 'abstract_unit'\nrequire 'action_controller'\nrequire 'action_controller/test_process'\n\nRAILS_ENV = \"test\"\nCURRENT_DIR = File.expand_path(File.dirname(__FILE__))\nHTML_DIR = File...
ruby
chosen
[ { "from": "system", "value": "Update gemspec with ruby trello and maruku gems\n\n- Ruby Trello is used to connect to Trello API\n- Maruku is used to convert markdown from Trello cards to HTML.\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_P...
ruby
chosen
[ { "from": "system", "value": "Build touches its job for cache\n" }, { "from": "human", "value": "class Build < ActiveRecord::Base\n attr_accessible :finished_at, :started_at, :status\n\n validates :job_id, presence: true\n\n belongs_to :job\n\n # Creates, queues, and returns itself.\n def s...
ruby
chosen
[ { "from": "system", "value": "Check active had a bug in it\n" }, { "from": "human", "value": "class Facet < ActiveRecord::Base\n has_many :dynamic_facets, :dependent=>:delete_all\n after_save{ Maybe(dynamic_facets).each{|x| x.save}}\n \n def self.check_active\n facets_to_save = []\n ...
ruby
chosen
[ { "from": "system", "value": "Add error message for including nokogiri in Gemfile for rake doc:guides [ci skip]\n\n- When `rake doc:guides` is run from applications, it complains for\n presence of redcarpet if it not present in Gemfile\n- Similarly it should complain about nokogiri\n" }, { "from": ...
ruby
chosen
[ { "from": "human", "value": "Rename gemspec so bundler can target it with git directly\n" }, { "from": "gpt", "value": "#!/usr/bin/env ruby -rubygems\n# -*- encoding: utf-8 -*-\n\nGEMSPEC = Gem::Specification.new do |gem|\n gem.version = File.read('VERSION').chomp\n gem.date ...
ruby
chosen
[ { "from": "system", "value": "Add some colors to the plist\n" }, { "from": "human", "value": "# Graciously stolen from https://github.com/mattt/GroundControl/blob/master/Example/Server/config.ru\nrequire 'bundler'\nrequire 'sinatra'\nrequire 'plist'\n\nget '/defaults.plist' do \n content_type '...
ruby
chosen
[ { "from": "system", "value": "Remove duplicate call to parser.help\n" }, { "from": "human", "value": "require 'optparse'\nrequire_relative 'exceptions'\n\nmodule Resume\n module CLI\n class ArgumentParser\n def self.parse\n parser.parse!(ARGV)\n rescue OptionParser::InvalidO...
ruby
chosen
[ { "from": "system", "value": "Tidy up gem summary and description\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'predicate_bang/version'\n\nGem::Specification.new do |spec|\n spec....
ruby
chosen
[ { "from": "system", "value": "Add rouge as a 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 'winnow/version'\n\nGem::Specification.new do |spec|\n spec.name = \...
ruby
chosen
[ { "from": "system", "value": "[hephaestus] Change status if document fails\n" }, { "from": "human", "value": "class Base\n def self.before_perform(*args)\n logging('start', args)\n store_status('start', args.first)\n end\n\n def self.after_perform(*args)\n logging('end', args)\n s...
ruby
chosen
[ { "from": "human", "value": "Add Binutils for ARM EABI v2.23.2" }, { "from": "gpt", "value": "require 'formula'\n\nclass ArmEabiBinutils223 <Formula\n url 'http://ftp.gnu.org/gnu/binutils/binutils-2.23.2.tar.bz2'\n homepage 'http://www.gnu.org/software/binutils/'\n sha1 '042c51073205ebaf88c27...
ruby
chosen
[ { "from": "system", "value": "Remove last traces of sublime auto encoding ruby package\n" }, { "from": "human", "value": "include_recipe 'sprout-osx-apps::sublime_text'\n\nsublime_package_path = [\"#{node['sprout']['home']}/Library/Application Support/Sublime Text 2\", \"Packages\"]\nsublime_use...
ruby
chosen
[ { "from": "system", "value": "Style/MultilineMethodCallIndentation: Align .decorate with .activity_stream on line 28. .decorate\n" }, { "from": "human", "value": "#\n# Namespace for the Socializer engine\n#\nmodule Socializer\n module Activities\n #\n # Activities controller\n #\n c...
ruby
chosen
[ { "from": "system", "value": "Replace or create link reports\n\nWe're coming across a problem whereby the data sync is causing\na mismatch in the batch IDs stored in Whitehall and the batch IDs\nstored in the Link Checker API. This is because the databases\ndon't get copied across at the same time.\n\nWe th...
ruby
chosen
[ { "from": "system", "value": "Make all actable records destroy their specific records.\n\nThis allows objects with foreign key constraints to be destroyed. This also allows for cyclic relations to be destroyed.\n" }, { "from": "human", "value": "module Extensions::DestroyCallbacks::ActiveRecord:...
ruby
chosen
[ { "from": "system", "value": "Make sure databases are created.\n" }, { "from": "human", "value": "require \"spec_helper\"\n\nRSpec.describe \"starting a rails app\" do\n around do |example|\n Bundler.with_clean_env do\n Dir.chdir(\"spec/rails_app\") do\n example.run\n end\n ...
ruby
chosen
[ { "from": "system", "value": "Remove setting schema_class in TestAdapter\n\nSee\nhttps://github.com/rom-rb/rom/commit/e7878b1fce97bc43f2b9c85bf761af3bf238246a\n" }, { "from": "human", "value": "module ROM\n module TestAdapter\n class Relation < ROM::Relation\n adapter :test_adapter\n ...
ruby
chosen
[ { "from": "system", "value": "Make locks spec more deterministic\n\nSigned-off-by: Maria Shaldibina <dc03896a0185453e5852a5e0f0fab6cbd2e026ff@pivotal.io>\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe 'cli: locks', type: :integration do\n with_reset_sandbox_before_each\n\n...
ruby
chosen
[ { "from": "system", "value": "Add tests for more cases.\n" }, { "from": "human", "value": "require_relative '../../lib/rackson'\nrequire_relative '../../lib/rackson/object_mapper'\n\ndescribe Rackson::ObjectMapper do\n let(:mapper) { Rackson::ObjectMapper.new }\n class DifferentFakeObject\n ...
ruby
chosen
[ { "from": "system", "value": "Remove unused subject in specs\n" }, { "from": "human", "value": "require 'shoes/spec_helper'\n\ndescribe Shoes::BuiltinMethods do\n let(:input_blk) { Proc.new {} }\n let(:app) { Shoes::App.new({}, &input_blk) }\n\n subject { Shoes::BuiltinMethods }\n\n before :...
ruby
chosen
[ { "from": "system", "value": "Revert \"Make word \"path\" plural\"\n\nThis reverts commit 1dbc4c3feed1ab4774e5a122b1af9ed5b533062a.\n" }, { "from": "human", "value": "# Copyright 2015 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file...
ruby
chosen
[ { "from": "system", "value": "Update unit spec for modern Chef\n\nThe link resource default link_type is now :symbolic instead of Symbol\n" }, { "from": "human", "value": "require 'unit/spec_helper'\n\ndescribe 'sprout-postgresql::add_launch_agent' do\n let(:runner) { ChefSpec::Runner.new }\n ...
ruby
chosen
[ { "from": "system", "value": "Extend spec for Virtus.attribute with a module example\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe Virtus, '#attribute' do\n let(:name) { :test }\n let(:options) { {} }\n\n share_examples_for 'a class with boolean attribute' do\n su...
ruby
chosen
[ { "from": "human", "value": "Add spec to test for contextual_links method properly handling nil block.\n" }, { "from": "gpt", "value": "require \"rails_helper\"\n\ndescribe ContextualLinkHelpers do\n describe \"#action_to_icon\" do\n it \"returns the action parameter if no action matches\" d...
ruby
chosen
[ { "from": "human", "value": "Add admin/activities request test with index and create parts\n" }, { "from": "gpt", "value": "require 'rails_helper'\n\nRSpec.describe \"Admin::Activities\", type: :request do\n let(:admin) { FactoryGirl.create(:user, :admin) }\n\n describe \"GET /admin/activities...
ruby
chosen
[ { "from": "system", "value": "LibDAP: Use explicit path to system curl\n\nWithout this we get some really nasty arch flags in `dap-config` on Leopard and\nSnow Leopard due to a fallback to buggy `libcurl.pc` files shipped with the\nsystem.\n" }, { "from": "human", "value": "require 'formula'\n\n...
ruby
chosen
[ { "from": "system", "value": "Upgrade Blu-Ray-Player to latest version\n" }, { "from": "human", "value": "class BluRayPlayer < Cask\n version '2.10.4'\n sha256 '76e9731115b3305ba21f5c451f90d2123fd357defca8206a496a8f9b63480cc1'\n\n url 'http://www.macblurayplayer.com/user/download/Mac_Bluray_P...
ruby
chosen
[ { "from": "system", "value": "Raise error when given backend is incompatible\n" }, { "from": "human", "value": "module InfraOperator\n module Commands\n class Base\n def initialize(options = {}, &block)\n @options = options\n @block = block\n end\n\n def compatib...
ruby
chosen
[ { "from": "system", "value": "Fix JSON serialization of Reference type\n" }, { "from": "human", "value": "module MongoModel\n class Reference\n attr_reader :id\n \n def initialize(id)\n @id = id\n end\n \n def to_s\n id.to_s\n end\n \n def hash\n id.has...
ruby
chosen
[ { "from": "system", "value": "Change AbcSize to only iterate through child nodes once\n" }, { "from": "human", "value": "# encoding: utf-8\n\nmodule RuboCop\n module Cop\n module Metrics\n # This cop checks that the ABC size of methods is not higher than the\n # configured maximum....
ruby
chosen
[ { "from": "system", "value": "Use poltergeist for all Capybara tests\n" }, { "from": "human", "value": "require 'rails_helper'\n\nRSpec.feature 'Visiting the invitation page', type: :feature do\n given(:invitation) { create(:invitation) }\n\n background do\n attrs = create(:aaf_attributes, ...
ruby
chosen
[ { "from": "system", "value": "Update gemspec with current conventions" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire 'stitches/version'\n\nGem::Specification.new do |s|\n s.name = \"stitches\"\n s.version = Stitche...
ruby
chosen
[ { "from": "system", "value": "Check if payments can be completed before completion\n" }, { "from": "human", "value": "module Spree\n class GlobalCollectCheckoutsController < BaseController\n before_filter :log_request, :load_global_collect_checkout, :load_payment\n skip_before_action :ver...
ruby
chosen
[ { "from": "system", "value": "Fix typo in s.public_header_files podspec\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n\n s.name = \"DMNetworkHelper\"\n s.version = \"0.2.2\"\n s.summary = \"Helper for perform network requests\"\n s.homepage = \"https://github...
ruby
chosen
[ { "from": "system", "value": "Update guard dependency to 0.8.2" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'guard/spork/version'\n\nGem::Specification.new do |s|\n s.name = 'guard-spork'\n s.version = Guard::Spork...
ruby
chosen
[ { "from": "system", "value": "Move authors to bootstrap admin\n" }, { "from": "human", "value": "class Admin::AuthorsController < Admin::BaseController\n def show\n @user = User.find(params[:id])\n end\nend\n" }, { "from": "gpt", "value": "class Admin::AuthorsController < Admin:...
ruby
chosen
[ { "from": "system", "value": "Update job document if it already exists\n\nApparently, I have not understood yet how the MongoDB, respectively\nMongoid update mechanism works. If I use .create! on attributes, which\ntheoretically map to the same object, it is not updated to the new\nvalue. What works for now...
ruby
chosen
[ { "from": "system", "value": "Fix cancan on abstract inheritance\n" }, { "from": "human", "value": "module Georgia\n class PagesController < Georgia::ApplicationController\n\n load_and_authorize_resource class: Georgia::Page\n\n include Georgia::Concerns::Pageable\n include Georgia::Co...
ruby
chosen
[ { "from": "system", "value": "Modify after_update_path in registrations controller\n" }, { "from": "human", "value": "class RegistrationsController < Devise::RegistrationsController\n\tbefore_filter :configure_permitted_parameters, if: :devise_controller?\n\n protected\n\n def configure_permit...
ruby
chosen
[ { "from": "system", "value": "Fix for release notes alert not clearing.\n" }, { "from": "human", "value": "class ReleaseNotesController < ApplicationController\n def index\n if current_user\n start_note = current_user.last_release_note_viewed\n else\n start_note = 0\n end\n\n...
ruby
chosen
[ { "from": "system", "value": "Add default scope to look book image product\n" }, { "from": "human", "value": "# frozen_string_literal: true\n# == Schema Information\n#\n# Table name: look_book_image_products\n#\n# id :integer not null, primary key\n# look_book_image_id...
ruby
chosen
[ { "from": "human", "value": "Add query result collection test file and test that initialize method sets instance variables as expected.\n" }, { "from": "gpt", "value": "require 'test_helper'\n\nclass TestQueryResultCollection < Test::Unit::TestCase\n \n def setup\n options = {\n :usern...
ruby
chosen
[ { "from": "system", "value": "Validate database connections every 5th minute\n\nHopefully addresses the issues with using Fly.io hosted Postgres.\n\nClose #412\nFixes WIKI-15\nFixes WIKI-17\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nrequire 'sinatra/base'\nrequire 'seque...
ruby
chosen
[ { "from": "system", "value": "Remove session[:chinese_t2s_lang] and there is no auto-translating now\n" }, { "from": "human", "value": "module ChineseT2s\n module Middleware\n class TranslationT2s\n def initialize(app)\n @app = app\n end\n\n def call(env)\n\n sta...
ruby
chosen
[ { "from": "human", "value": "Add rake task to republish all calendars\n\nThis uses functionality implemented earlier.\n\nRun with `rake publishing_api:register`.\n" }, { "from": "gpt", "value": "namespace :publishing_api do\n desc \"Send pages to the content-api\"\n task :register => :environm...
ruby
chosen
[ { "from": "system", "value": "Handle errors on gem uninstall\n" }, { "from": "human", "value": "require 'thor/runner'\n\nGem.post_install do |installed|\n $stderr.puts \"[I] installing thor tasks for #{installed.gem}\"\n bin = File.expand_path(File.dirname(__FILE__) + '/../../bin/install-gist....
ruby
chosen
[ { "from": "system", "value": "[BUGFIX] Set type first then get full length\n" }, { "from": "human", "value": "require 'ws_light/color'\n\nmodule WSLight\n module Set\n # Base set with one color\n class ColorSet\n DEFAULT_LENGTH = 160\n DEFAULT_TYPE = :double\n\n attr_access...
ruby
chosen
[ { "from": "system", "value": "Add test case: redis_key is proc\n" }, { "from": "human", "value": "require 'spec_helper'\n\nclass CacheableObject\n include RedisCacheable\n\n attr_reader :id, :name\n\n redis_key :id\n redis_attrs :id, :name\n\n def initialize(attrs)\n @id = attrs[:id]\n ...
ruby
chosen
[ { "from": "system", "value": "Add unit test for the global scripts feature" }, { "from": "human", "value": "require \"spec_helper\"\n\ndescribe \"logrotate::global\" do\n let(:chef_run) { ChefSpec::SoloRunner.new.converge(described_recipe) }\n\n it \"includes the default recipe\" do\n expec...
ruby
chosen
[ { "from": "system", "value": "Write test checking validations for creating a new item work\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass ItemTest < ActiveSupport::TestCase\n # test \"the truth\" do\n # assert true\n # end\nend\n" }, { "from": "gpt", "value": ...
ruby
chosen
[ { "from": "system", "value": "Add test case for user's email presence\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass UserTest < ActiveSupport::TestCase\n def setup\n @user = User.new(name: 'Example user', email: 'example@example.com')\n end\n\n test 'should be valid' do\...
ruby
chosen
[ { "from": "system", "value": "Handle VNF error state correctly\n\nHandle VNF error state correctly\n" }, { "from": "human", "value": "class ManageIQ::Providers::Openstack::CloudManager::Vnf::Status < ::OrchestrationStack::Status\n def succeeded?\n status.downcase == \"active\"\n end\n\n de...
ruby
chosen
[ { "from": "system", "value": "get_item: Add slash at the start of url if not present\n" }, { "from": "human", "value": "module ByNavigation\n class Configuration\n @@registered_by_id = {}\n @@registered_by_url = {}\n\n def initialize(id, &block)\n register(ByNavigation::Item.new(i...
ruby
chosen
[ { "from": "system", "value": "Add a spec to make sure we support Rails' 1.day.from_now syntax.\n" }, { "from": "human", "value": "require 'spec_helper'\nrequire 'active_record'\n\nActiveRecord::Base.establish_connection(QUE_URL)\nQue.connection = ActiveRecord\nQUE_ADAPTERS[:active_record] = Que....
ruby
chosen
[ { "from": "system", "value": "Use expect syntax for specs.\n" }, { "from": "human", "value": "require 'spec_helper'\n\ndescribe AxiomSelection do\n context 'associations' do\n it { should have_one(:proof_attempt_configuration) }\n it { should have_and_belong_to_many(:axioms) }\n end\nend...
ruby
chosen
[ { "from": "system", "value": "Update to remedy after upgrade to 0.36.1 of cocoapods\n" }, { "from": "human", "value": "Pod::Spec.new do |s|\n s.name = \"TilllessBCScanner\"\n s.version = \"0.0.1\"\n s.summary = \"TBarcodeScannerViewController suitable for working...
ruby
chosen
[ { "from": "system", "value": "Remove rubyforge_project name from gemspec :skull: RubyForge\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"rails_erd/version\"\n\nGem::Specification.new do |s|\n s.name = \"rails-erd\"...
ruby
chosen
[ { "from": "system", "value": "Remove mongoid version because we want to support both Mongoid 2.x and 3.x.\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"mongoid/magic-counter-cache/version\"\n\nGem::Specification.new do |s|...
ruby
chosen
[ { "from": "system", "value": "Add rspec as development dependency\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'git-authors/version'\n\nGem::Specification.new do |gem|\n ...
ruby
chosen
[ { "from": "system", "value": "Revert \"Don't throw error if gems param is omitted\" until some tests are\nin place for this\n\nThis reverts commit 3d367904b3e9fe341c37b349630c27c581f127fb.\n" }, { "from": "human", "value": "class Api::V1::DependenciesController < Api::BaseController\n def index...
ruby
chosen
[ { "from": "system", "value": "Migrate user contributions controller to pundit\n" }, { "from": "human", "value": "class Users::ContributionsController < ApplicationController\n inherit_resources\n defaults resource_class: Contribution\n belongs_to :user\n actions :index\n\n def request_refun...
ruby
chosen
[ { "from": "system", "value": "Update gemspec to thin down .gem contents." }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/schnitzelstyle/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Hendrik Mans\"]\n gem.email ...
ruby
chosen
[ { "from": "system", "value": "Revert \"Use notification email address\"\nWrong email address.\n\nThis reverts commit 9123f1d42c5b17b94df88a53c2f10f10934139af.\n" }, { "from": "human", "value": "unless Rails.env.development? or Rails.env.test?\n Rails.application.config.middleware.use ExceptionN...
ruby
chosen
[ { "from": "system", "value": "Allow sanitize 3.0 and up\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n#\n$:.push File.expand_path(\"../lib\", __FILE__)\n\nrequire 'sanitize/rails/version'\n\nGem::Specification.new do |s|\n s.name = \"sanitize-rails\"\n s.version ...
ruby
chosen
[ { "from": "system", "value": "Fix install generator auth option in common rake tasks\n\nThis issue was preventing solidus from being installed in all\nextensions, making specs fail against master.\n" }, { "from": "human", "value": "# frozen_string_literal: true\n\nunless defined?(Solidus::Instal...
ruby
chosen
[ { "from": "system", "value": "[core] Clean up RSpec deprecation warnings wrt 'should_not raise_error(SpecificError)'\n" }, { "from": "human", "value": "require 'spec_helper'\nrequire 'spree/core/product_filters'\n\ndescribe 'product filters' do\n # Regression test for #1709\n context 'finds pr...
ruby
chosen
[ { "from": "system", "value": "Fix homepage to use SSL in NoteDup Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n" }, { "from": "human", "value": "cask :v1 => 'notedup' do\n version '2014031401'\n sha...
ruby
chosen
[ { "from": "system", "value": "Add project homepage to gemspec.\n" }, { "from": "human", "value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'xml_spec/version'\n\nGem::Specification.new do |spec|\n spec.name ...
ruby
chosen
[ { "from": "system", "value": "Call Hutch::CLI instead of spawning a process\n" }, { "from": "human", "value": "namespace :streamy do\n namespace :consumer do\n desc \"Start consuming\"\n task run: :environment do\n if Rails.application.secrets.rabbitmq_uri.blank?\n raise \"Mis...
ruby
chosen
[ { "from": "system", "value": "Remove memoizations and instance variables.\n\nThese are not used and can therefore be removed\n" }, { "from": "human", "value": "class BrexitLandingPageController < ApplicationController\n def show\n setup_content_item_and_navigation_helpers(taxon)\n\n rende...
ruby
chosen
[ { "from": "system", "value": "Revert \"Upgrading to most recent version of gems\"\n\nThis reverts commit 5bd72ceb67398bbae05d616496d14ee0db14dd83.\n" }, { "from": "human", "value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'emory/version'\n\nGem::Specifica...
ruby
chosen
[ { "from": "system", "value": "Remove unnecessary bundle exec from the command\n\n* If the task is being run under bundler, system calls should work\n the same as if they were run with bundle exec.\n" }, { "from": "human", "value": "# encoding: utf-8\n\nnamespace :metrics do\n allowed_versions ...
ruby
chosen
[ { "from": "human", "value": "Add Cask for Ninja Blocks Client v0.2\n" }, { "from": "gpt", "value": "class Ninjablocks < Cask\n url 'https://dl.dropboxusercontent.com/u/428557/NinjaBlocks-0.2.dmg'\n homepage 'http://forums.ninjablocks.com/index.php?p=/discussion/1655/ninja-osx-client/p1'\n ver...
ruby
chosen
[ { "from": "human", "value": "Add Pocket Casts for Mac v1.0\n" }, { "from": "gpt", "value": "cask :v1 => 'pocketcasts' do\n version '1.0'\n sha256 'fe191ceb3a7157bee5a589bed248464587526ddbaeacab122960a4144d1c87da'\n\n url \"https://github.com/mortenjust/PocketCastsOSX/releases/download/#{versi...
ruby
chosen
[ { "from": "system", "value": "Update Vagrant Bar to 1.15\n" }, { "from": "human", "value": "cask :v1 => 'vagrant-bar' do\n version '1.14'\n sha256 '6cf9a2bf9fbe41237a7afa2621d9c1e94ad225e59aa3969b8408b9adbd956334'\n\n url \"https://github.com/BipSync/VagrantBar/releases/download/#{version}/Va...
ruby
chosen
[ { "from": "system", "value": "Remove Bundler as an explicit dependency\n\nIt's implicit in the use of a `gems.rb` file, where this is specified,\nthat Bundler must be used, so I think this callout is a bit unnecessary\nand can only cause annoying issues with Travis.\n" }, { "from": "human", "val...
ruby
chosen
[ { "from": "system", "value": "Fix class for test case.\n" }, { "from": "human", "value": "require 'minitest/autorun'\nrequire 'ingress_info'\n\nclass TestIngressInfo < Minitest::Test\n def test_that_checkpoints_can_include_zero\n set = IngressCycles.checkpointsForDate(Time.new(2014, 12, 02, ...
ruby
chosen
[ { "from": "system", "value": "Add a unit test to ensure that an user cannot add contributors\n" }, { "from": "human", "value": "require 'test_helper'\n\nclass AbilityTest < ActiveSupport::TestCase\n setup do\n @contributor = FactoryGirl.create(:user)\n\n @election = FactoryGirl.create(:el...
ruby
chosen