conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add Feed The Beast.app (latest)\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'feed-the-beast' do\n version :latest\n sha256 :no_check\n\n # cursecdn.com is the official download host per the vendor homepage\n url 'http://ftb.cursecdn.com/FTB2/launcher/FTB_Launche... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Radiant Player to 1.3.0"
},
{
"from": "human",
"value": "class RadiantPlayer < Cask\n version '1.2.1'\n sha256 'dc1ed98170e05c430779f527191717cb412e74f398324878286df4a2bbad79d4'\n\n url \"https://github.com/kbhomes/google-music-mac/releases/download/v#{ve... | ruby | chosen |
[
{
"from": "system",
"value": "Update Rowmote Helper to 4.1.4\n"
},
{
"from": "human",
"value": "cask :v1 => 'rowmote-helper' do\n version '4.1.2'\n sha256 '795359b6c5af08985acd7bffe7665be4c60656a7345c92c2602dd123b54380c2'\n\n url \"http://regularrateandrhythm.com/rowmote-pro/rh/rowmote-helper... | ruby | chosen |
[
{
"from": "system",
"value": "Modify sample code for RWS::Ichiba::Item: Shows first 10 items\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'rakuten_web_service'\n\ndeveloper_id = ARGV.shift\nkeyword = ARGV[0..-1].join(' ')\n\nputs items = RakutenWebService::Ichiba::Item.search(... | ruby | chosen |
[
{
"from": "system",
"value": "Change Email To New Non Google Version.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'nesta/plugin/jekyll/metadata/version'\n\nGem::Specification.new ... | ruby | chosen |
[
{
"from": "system",
"value": "Add * before commit and throw away last one - it is a duplicate\n"
},
{
"from": "human",
"value": "require 'net/smtp'\nrequire 'yaml'\nrequire \"changelog_generator/version\"\n\nmodule ChangelogGenerator\n class Generator < Struct.new(:repo_directory, :config_file)... | ruby | chosen |
[
{
"from": "system",
"value": "Add schema validation to lat lon list response."
},
{
"from": "human",
"value": "require_relative '../xml_parser_factory'\nrequire_relative 'reactive_xml_response'\n\nmodule NoaaWeatherClient\n module Responses\n class LatLonList\n include ReactiveXmlRespon... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for blockless calls to Rack::Mount router\n\nThis syncs our #recognize behaviour to that of the original\nRack::Mount::RouteSet#recognize implementation\n"
},
{
"from": "human",
"value": "require 'action_dispatch'\nrequire 'rack/mount/route_set'\nrequire... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the house option - always attempt to load both houses\n"
},
{
"from": "human",
"value": "module DataLoader\n class Debates\n # The options hash takes:\n # :house - specify representatives or senate, omit for both\n # :date - A single date\n def s... | ruby | chosen |
[
{
"from": "system",
"value": "Remove private class method declaration\n\n* If this method is private then the inherited hook cannot call it\n directly.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n# Module that adds descendant tracking to a class\nmodule DescendantsTracker\n\n # @pr... | ruby | chosen |
[
{
"from": "system",
"value": "Remove empty line at ApplicationController\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n protect_from_forgery with: :exception\n before_action :authenticate_user!\n before_action :configure_permitted_parameters, if: :de... | ruby | chosen |
[
{
"from": "system",
"value": "Add before auth to application controller\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n \n protect_from_forgery with: :exception\n skip_before_filter :verify_authenticity_token\n # before_action :authenticate_user!\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Save the URL blocked by authentication to redirect later.\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # Prevent CSRF attacks by raising an exception.\n # For APIs, you may want to use :null_session instead.\n protect_... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to Safe, disable styles, turn on hard wrap\n\n - Safe implies escape_html and safe_links_only\n - Safe adds extra escaping of the block_code function\n - escape_html escapes styles, but if there's a way to add them with markdown no_styles will block that\n - hard_wrap al... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to work with newer Placemat\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Luncheon\"\n s.version = \"0.5.0-swift-3\"\n s.summary = \"REST model resource mapping. Time saving. Opinionated. Convent... | ruby | chosen |
[
{
"from": "system",
"value": "Allow processes to be spawned without closing fds"
},
{
"from": "human",
"value": "Eye::Cli.class_eval do\n private\n\n def loader_path\n filename = File.expand_path(File.join(File.dirname(__FILE__), %w[.. .. .. bin eye-patch-loader]))\n File.exists?(filenam... | ruby | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Remove reference to dependency service\n"
},
{
"from": "human",
"value": "require 'fulmar/version'\n\nrequire 'fulmar/service/bootstrap_service'\nrequire 'fulmar/service/helper_service'\n\nrequire 'fulmar/domain/service/initialization_service'\nrequire 'ful... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out require that doesn't work so well on ruby 1.9.3"
},
{
"from": "human",
"value": "# This script will install the native extension locally in a bundler-compatible way\n# without one having to check in -> push -> bundle update constantly.\n#\n# When you run... | ruby | chosen |
[
{
"from": "system",
"value": "Rename to be more consistent\n"
},
{
"from": "human",
"value": "# @see https://developers.podio.com/doc/actions\nclass Podio::Device < ActivePodio::Base\n property :app, :string\n property :type, :string\n property :token, :string\n\n class << self\n def find... | ruby | chosen |
[
{
"from": "system",
"value": "Use the fager gem inside seed file for dummy item data\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 rails db:seed command (or create... | ruby | chosen |
[
{
"from": "system",
"value": "Update faker content to Faker::Lorem.paragraph(3, true, 3)"
},
{
"from": "human",
"value": "25.times do |n|\n email = Faker::Internet.unique.safe_email\n password = \"password\"\n password_confirmation = \"password\"\n user = User.create!(email: ... | ruby | chosen |
[
{
"from": "system",
"value": "Add methods to delete previous data in seed data\n"
},
{
"from": "human",
"value": "require 'faker'\n\n\nusers = 10.times.map do\n User.create!( :username => Faker::Internet.user_name,\n :email => Faker::Internet.email,\n :passw... | ruby | chosen |
[
{
"from": "system",
"value": "Fix PostController update was calling create\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe PostsController, type: :controller do\n describe \"POST #create\" do\n context \"with good parameters\" do\n let(:params) { { \"post\" =>... | ruby | chosen |
[
{
"from": "human",
"value": "Add codility training - count distinct slices\n"
},
{
"from": "gpt",
"value": "# 100/100\ndef solution(m, arr)\n found = [-1] * (m + 1)\n left_idx, count, n = -1, 0, arr.size\n\n (0...n).each do |right_idx|\n if found[arr[right_idx]] > left_idx\n left_idx ... | ruby | chosen |
[
{
"from": "system",
"value": "Correct condition for validate certification type presence\n\nOnly advocate \"final\" claims are currently applicable\n"
},
{
"from": "human",
"value": "class CertificationValidator < BaseValidator\n class << self\n def mandatory_fields\n %i[certification_t... | ruby | chosen |
[
{
"from": "human",
"value": "Apply some (very loose) rules about our randomness\n"
},
{
"from": "gpt",
"value": "require File.dirname(__FILE__) + '/../../spec_helper'\n\ndescribe \"Kernel.rand\" do\n it \"produces a vaguely even distribution\" do\n # Like several other rand specs, this one i... | ruby | chosen |
[
{
"from": "system",
"value": "Add description for xdebug formula\n\nCloses #2639.\n\nSigned-off-by: Andy Blyler <e3579b1e47f273529f0f929453e939a68ede9fd1@blyler.cc>\n"
},
{
"from": "human",
"value": "require File.expand_path(\"../../Abstract/abstract-php-extension\", __FILE__)\n\nclass Php53Xdeb... | ruby | chosen |
[
{
"from": "system",
"value": "Add in category_id to attributes\n"
},
{
"from": "human",
"value": "module Square\n module Connect\n class Item < Node\n attr_accessor(\n :merchant,\n :creator,\n :created_at,\n :description,\n :name,\n :visibility,... | ruby | chosen |
[
{
"from": "system",
"value": "Add a unit test for the layout building null parts "
},
{
"from": "human",
"value": "RSpec.describe Rodakase::View::Layout do\n subject(:layout) { layout_class.new }\n\n let(:layout_class) do\n klass = Class.new(Rodakase::View::Layout)\n\n klass.configure do... | ruby | chosen |
[
{
"from": "system",
"value": "Adjust code style to make robucop happy.\n"
},
{
"from": "human",
"value": "require 'virustotal_api/exceptions'\n\nrequire 'rest-client'\nrequire 'json'\n\nmodule VirustotalAPI\n class Base\n # @return [String] string of API URI class method\n def self.api_ur... | ruby | chosen |
[
{
"from": "system",
"value": "Update github repos after being edited in the admin"
},
{
"from": "human",
"value": "class Admin::GithubRepositoriesController < Admin::ApplicationController\n def show\n @github_repository = GithubRepository.find(params[:id])\n end\n\n def update\n @github... | ruby | chosen |
[
{
"from": "human",
"value": "Add missing transaction integration test\n"
},
{
"from": "gpt",
"value": "# encoding: utf-8\nrequire 'integration_test_helper'\n\nclass TransactionCreateEditTest < JavascriptIntegrationTest\n setup do\n @artefact = FactoryGirl.create(:artefact,\n slug: \"reg... | ruby | chosen |
[
{
"from": "human",
"value": "Complete Swap Nodes in Pairs\n"
},
{
"from": "gpt",
"value": "# Definition for singly-linked list.\n# class ListNode\n# attr_accessor :val, :next\n# def initialize(val)\n# @val = val\n# @next = nil\n# end\n# end\n\n# @param {ListNode} head... | ruby | chosen |
[
{
"from": "system",
"value": "Fix breaking OPMLWriter specs after HTTPFetcher switch\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'feed2email/opml_writer'\n\ndescribe Feed2Email::OPMLWriter do\n subject { Feed2Email::OPMLWriter.new(uris) }\n\n describe '#write' do\n sub... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for response model\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe Response, type: :model do\n pending \"add some examples to (or delete) #{__FILE__}\"\nend\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Add conversion to_* methods to ColorModes classes\n"
},
{
"from": "human",
"value": "module Chroma\n module ColorModes\n class << self\n private\n\n def build(*attrs)\n Class.new do\n attr_accessor *(attrs + [:a])\n\n class_eva... | ruby | chosen |
[
{
"from": "system",
"value": "Update Gadget spec with Ruby18 hash syntax\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Gadget do\n it { should be_versioned }\n\n let(:gadget) { Gadget.create!(name: 'Wrench', brand: 'Acme') }\n\n describe \"updates\", :versioning => true... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests on Xcode 7\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe SimCtl do\n describe '#warmup' do\n if SimCtl.device_set_path.nil?\n it 'warms up and returns a device for given strings' do\n expect(SimCtl.warmup('iPhon... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `rake spec` to work with `factory_girl` 2.0.x gem.\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :entity do\n sequence(:name) { |n| \"name_#{n}\" }\n sequence(:status) { |n| \"status_#{n}\" }\n end\n\n factory :platform do\n se... | ruby | chosen |
[
{
"from": "system",
"value": "Fix syntax issue with terminal defaults\n"
},
{
"from": "human",
"value": "pivotal_workstation_defaults \"Set terminal color scheme to #{node['terminal']['color_scheme']}\" do\n domain 'com.apple.Terminal'\n key 'Default Window Settings'\n string node['terminal']... | ruby | chosen |
[
{
"from": "system",
"value": "Update Node.js documentation (7.0.0, 6.9.1, 4.6.1)\n"
},
{
"from": "human",
"value": "module Docs\n class Node < UrlScraper\n self.name = 'Node.js'\n self.slug = 'node'\n self.type = 'node'\n self.links = {\n home: 'https://nodejs.org/',\n cod... | ruby | chosen |
[
{
"from": "system",
"value": "Rewrite a test helper to sign in without capybara\n"
},
{
"from": "human",
"value": "# User sign in helper for tests\ndef sign_in(user, options={})\n if options[:no_capybara]\n session[:user_id] = user.id\n else\n visit signin_path\n fill_in \"Email\", ... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to add description, summary, home page, and dependencies"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'ember/cucumber/version'\n\nGem::Sp... | ruby | chosen |
[
{
"from": "system",
"value": "Add class methods to Engine\n"
},
{
"from": "human",
"value": "class ExecJS::Xtrn::Engine\n\n Run=nil # Abstract class\n\n def exec(code)\n return if (code=code.to_s.strip).length==0\n result=child.say code\n result={'err'=>'Invalid JS result'} unless Has... | ruby | chosen |
[
{
"from": "system",
"value": "Enable rails 2.1.x compaitibility by allowing the render method to accept an ActionView::Template object.\n\nThis seems to complete the earlier 'ugly hack' for rails 2.1.x compatibility\n"
},
{
"from": "human",
"value": "# LiquidView is a action view extension class... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for knife-opc org creation\n\nThere was a breakage here by changes to chef/chef.\nCreating an org with a user in it raises the following:\n```\nException: NoMethodError: undefined method `get_rest' for #<Chef::ServerAPI:0x00000002347a18>`\n```\n\nThe test will pass when... | ruby | chosen |
[
{
"from": "system",
"value": "Add http authentification & token authentificaiton.\n"
},
{
"from": "human",
"value": "module Zena\n module Use\n module Authlogic\n\n module Common\n\n def visitor\n Thread.current[:visitor]\n end\n\n end\n\n module Contr... | ruby | chosen |
[
{
"from": "system",
"value": "Update webmock dependency to version 1.7.0\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire File.expand_path('../lib/gems/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.add_development_dependency 'maruku', '~> 0.6'\n gem.add_development_... | ruby | chosen |
[
{
"from": "system",
"value": "Add seed data for events\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": "system",
"value": "Add seed data for genres"
},
{
"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": "system",
"value": "Use the success email adress for the billing emails\n"
},
{
"from": "human",
"value": "require 'action_mailer'\n\nmodule Travis\n module Addons\n module Billing\n module Mailer\n class BillingMailer < ActionMailer::Base\n append_view_path Fi... | ruby | chosen |
[
{
"from": "system",
"value": "Add unenrol button to initiatives grid on user page.\n"
},
{
"from": "human",
"value": "class EnrolmentsInUsersGrid\n include Datagrid\n\n scope do\n Enrolment\n end\n\n column(:id, :mandatory => true)\n column(:initiative_id, :header => 'Initiative', :manda... | ruby | chosen |
[
{
"from": "system",
"value": "Change tarball url for the Streaming Auditor\n\n\nFormer-commit-id: 40b2972cea5baa90efc8ad3317afb5b3995fb4a0 [formerly f675eb234f7b0f23c49a57a7ef984d456b2b0c5b] [formerly 4541bffb492d40a4fbda4116bea872f856450c18 [formerly e61705262b2456a25251f9cd9b98fecb4033d220 [formerly e494e... | ruby | chosen |
[
{
"from": "system",
"value": "Switch cookie serializer to json\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Specify a serializer for the signed and encrypted cookie jars.\n# Valid options are :json, :marshal, and :hybrid.\nRails.application.... | ruby | chosen |
[
{
"from": "system",
"value": "Increase Delayed::Worker.max_attempts to 2 in case a job gets killed during a deploy\n"
},
{
"from": "human",
"value": "Delayed::Worker.sleep_delay = 10\nDelayed::Worker.max_attempts = 1\nDelayed::Worker.max_run_time = 20.minutes\n"
},
{
"from": "gpt",
"... | ruby | chosen |
[
{
"from": "system",
"value": "Make `can_recommend?` available as a view helper\n"
},
{
"from": "human",
"value": "module Feeder\n module Concerns::Controllers::ItemsController\n extend ActiveSupport::Concern\n\n included do\n include AuthorizationHelper\n\n respond_to :html, :js... | ruby | chosen |
[
{
"from": "system",
"value": "Remove default initializer for serial port\n"
},
{
"from": "human",
"value": "require 'serialport'\n\nmodule P1MeterReader\n module DataParsing\n class StreamSplitter\n def initialize(message_start, input: serial_port)\n @message_start = message_star... | ruby | chosen |
[
{
"from": "system",
"value": "Remove timeout and rescue blocks\n"
},
{
"from": "human",
"value": "require 'posix/spawn'\nrequire 'timeout'\nrequire 'cc/engine/analyzers/php/ast'\nrequire 'cc/engine/analyzers/php/nodes'\n\nmodule CC\n module Engine\n module Analyzers\n module Php\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Handle nil value for synced_folder_opts\n"
},
{
"from": "human",
"value": "require 'timeout'\n\nmodule VagrantPlugins\n module Cachier\n class Action\n class ConfigureBucketRoot\n def initialize(app, env)\n @app = app\n @logger =... | ruby | chosen |
[
{
"from": "system",
"value": "Move from strings & eval to symbols and public_send\n\nSeems like an obvious change. This works, but it's obviously not in a\nfinal state yet.\n"
},
{
"from": "human",
"value": "module QueryStringSearch\n module Comparator\n def self.using(operator)\n creat... | ruby | chosen |
[
{
"from": "system",
"value": "Update words migration with x and y coordinates.\n\nWords need an x and y coordinate to interact with an html5 canvas and it is easier to initialize words in our database with these attributes rather than having to update the words with coordinates in the browser with javascrip... | ruby | chosen |
[
{
"from": "human",
"value": "[migration] Add normalized_name to all existing pods.\n"
},
{
"from": "gpt",
"value": "module Pod\n module TrunkApp\n class Pod < Sequel::Model\n self.dataset = :pods\n\n def name=(name)\n self.normalized_name = name.downcase if name\n sup... | ruby | chosen |
[
{
"from": "system",
"value": "Fix non-showing error message when edit file via web\n"
},
{
"from": "human",
"value": "class Projects::NewTreeController < Projects::BaseTreeController\n before_filter :require_branch_head\n before_filter :authorize_push!\n\n def show\n end\n\n def update\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add OS X to pod spec. Bump pod version to 2.0.0.\n"
},
{
"from": "human",
"value": "#\n# Be sure to run `pod spec lint Solar.podspec' to ensure this is a\n# valid spec and to remove all comments including this before submitting the spec.\n#\n# To learn more about... | ruby | chosen |
[
{
"from": "system",
"value": "Add 2014 to GitLab.com copyright statement\n"
},
{
"from": "human",
"value": "#\n## Copyright:: Copyright (c) 2013 GitLab.com\n## License:: Apache License, Version 2.0\n##\n## Licensed under the Apache License, Version 2.0 (the \"License\");\n## you may not use this... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests for Ruby 1.9\n"
},
{
"from": "human",
"value": "module Gistance\n # Methods for HTTP requests\n module Request\n # Make a HTTP GET request.\n #\n # @param path [String] The path, relative to api_endpoint\n # @param options [Hash] query params... | ruby | chosen |
[
{
"from": "system",
"value": "[dm-validations] Mark failing spec as pending\n\n* Unsure what this method should return so marking as pending for now\n"
},
{
"from": "human",
"value": "require 'pathname'\nrequire Pathname(__FILE__).dirname.expand_path.parent + 'spec_helper'\n\ndescribe DataMapper... | ruby | chosen |
[
{
"from": "system",
"value": "Fix specs to support Ruby 1.9 and 2.0\n\nApparently, `include` was a private method until 2.1... :shrug:\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule SermonAudio\n describe Configuration do\n subject { Class.new.include(Configuration) }\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor and check key length validation\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Invite do\n it 'should always have a key of reasonable length after creation' do\n invite = Invite.new\n invite.key.should_not be_empty\n invite.k... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for error thrown when mutating a frozen object.\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../../spec_helper'\nrequire File.dirname(__FILE__) + '/fixtures/classes'\n\ndescribe \"Kernel#freeze\" do\n it \"prevents self from being... | ruby | chosen |
[
{
"from": "system",
"value": "Use `shared_examples_for` and DRY up specs.\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe \"include_url matcher\" do\n include RSpec::Sitemap::Matchers\n\n context \"on a File\" do\n let(:sitemap) { fixture('basic') }\n it \"passes\"... | ruby | chosen |
[
{
"from": "system",
"value": "Add info to gem spec.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'finite_machine/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix occasional exception from Zlib - retry\n"
},
{
"from": "human",
"value": "require 'json'\nrequire 'net/http'\nrequire 'uri'\n\nmodule HTTPUtils\n\n def get_response_with_redirect(host, request_uri, port, user='', passwd='')\n http = Net::HTTP::new(host, por... | ruby | chosen |
[
{
"from": "system",
"value": "Add the possibility to return a collection of subscriptions when no id specified\n"
},
{
"from": "human",
"value": "module Paymill\n module Operations\n module Find\n module ClassMethods\n def find(id)\n response = Paymill.request(:get, \"#{... | ruby | chosen |
[
{
"from": "system",
"value": "Add tooltip, name attr for artists path and tooltip styling\n"
},
{
"from": "human",
"value": "class SearchController < ApplicationController\n def index\n\n end\n\n # def show\n # # replace non-ASCII characters with ASCII and non-word characters with spaces f... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error handling for POST/PUT to /account\n"
},
{
"from": "human",
"value": "class Sprangular::AccountsController < Sprangular::BaseController\n before_filter :check_authorization, except: :create\n\n def create\n @user = Spree::User.create(spree_user_params)... | ruby | chosen |
[
{
"from": "system",
"value": "Fix copy-pasta in the gemspec\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include... | ruby | chosen |
[
{
"from": "system",
"value": "Remove schema dumper testing because it is tested on activerecord unit tests\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe ActiveRecord::Turntable::ActiveRecordExt::SchemaDumper do\n before(:all) do\n reload_turntable!(File.join(File.dir... | ruby | chosen |
[
{
"from": "system",
"value": "Make regtest samples ready for regtest version 2.0i again.\n"
},
{
"from": "human",
"value": "require 'ostruct'\nrequire 'regtest'\nrequire 'scripref'\n\ninclude Scripref\n\no = OpenStruct.new\no.b1 = [42]\no.c1 = [1, nil]\no.v1 = [2, nil]\no.b2 = [43, nil]\no.c2 = ... | ruby | chosen |
[
{
"from": "system",
"value": "Replace `descends_from_active_record?` with `superclass` check\n\nWhen we call `descends_from_active_record?` in `db:migrate:reset`\nphase and table of parent Model is not created (ie: CI test environment)\n`Table dose not exist` error is raised.\n"
},
{
"from": "human"... | ruby | chosen |
[
{
"from": "human",
"value": "Add test admin profile controller\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'spec_helper'\n\ndescribe Admin::ProfilesController do\n context 'logged in as user' do\n login_user\n\n it 'does not allow to be accessed by user' do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs checking the messages with TableWithoutForeignKey\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe TableWithoutForeignKey do\n describe 'matcher' do\n it { should_not have_foreign_key_for(:user) }\n it { should_not have_foreign_k... | ruby | chosen |
[
{
"from": "human",
"value": "Add (auto-generated) Rails 3.2 tests\n"
},
{
"from": "gpt",
"value": "abort \"Please run using test/test.rb\" unless defined? BrakemanTester\n\nRails32 = BrakemanTester.run_scan \"rails3.2\", \"Rails 3.2\"\n\nclass Rails32Tests < Test::Unit::TestCase\n include Brake... | ruby | chosen |
[
{
"from": "system",
"value": "Add a boss/employee relationship for admin to itself in db:seed\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 create... | ruby | chosen |
[
{
"from": "system",
"value": "Build seed file to tinker in console. Should migrate these to factory girl for testing.\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... | ruby | chosen |
[
{
"from": "system",
"value": "Add English, Italian and Spanish seed support\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... | ruby | chosen |
[
{
"from": "system",
"value": "Make nil handling more explicit."
},
{
"from": "human",
"value": "module ActiveRecord\n module DatabaseValidations\n module StringTruncator\n extend ActiveSupport::Concern\n\n module ClassMethods\n def truncate_string(field)\n column = ... | ruby | chosen |
[
{
"from": "system",
"value": "Update seed file to change testing phone numbers\n"
},
{
"from": "human",
"value": "Friend.delete_all\nUser.delete_all\nDrone.delete_all\n\n\nUser.create(first_name: \"Bill\", last_name: \"Miller\", email:\"e@c.com\", password: \"123456\",phone_number: \"+1415374401... | ruby | chosen |
[
{
"from": "system",
"value": "Move out of JSONAPI module\n\nThis allows it to be created in a consistent manner with the\nconfiguration option for OperationsProcessor.\n"
},
{
"from": "human",
"value": "module JSONAPI\n class ActiveRecordOperationsProcessor < OperationsProcessor\n\n private\... | ruby | chosen |
[
{
"from": "system",
"value": "Add feature spec for user with membership groups\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe \"User dashboard\", :type => :feature do\n\n before :all do\n @user = FactoryGirl.create(:user)\n end\n\n context 'when user has no groups' d... | ruby | chosen |
[
{
"from": "system",
"value": "Add path to fixtures for feature tests\n\nTests failed when feature tests were executed first.\n"
},
{
"from": "human",
"value": "require 'test_helper'\nrequire 'capybara/rails'\n\nclass ActionDispatch::IntegrationTest\n include Capybara::DSL\n\n def login(user)\n... | ruby | chosen |
[
{
"from": "system",
"value": "ADD dishwasher and trash wunderbar ID\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... | ruby | chosen |
[
{
"from": "system",
"value": "Spec: Add random order & support focus\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"simplecov\"\nSimpleCov.start do\n add_filter(\"spec/\")\nend\n\nif ENV[\"CI\"] == \"true\"\n require \"codecov\"\n SimpleCov.formatter = SimpleCov... | ruby | chosen |
[
{
"from": "system",
"value": "Remove duplicate UpdateFederationResources.runn in seed.rb\n"
},
{
"from": "human",
"value": "# Fetch available providers and templates from the OnApp installation\nUpdateFederationResources.run\n\n# Create an admin user\nadmin = User.find_or_create_by(email: 'admin... | ruby | chosen |
[
{
"from": "system",
"value": "Remove deprecation warning in test suite\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\n\nrequire 'coveralls'\nrequire 'simplecov'\n\nSimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[\n SimpleCov::Formatter:... | ruby | chosen |
[
{
"from": "system",
"value": "Expand router test to fail on a constant return\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'rack_tac_toe'\n\ndescribe TicTacToe::Router do\n include Rack::Test::Methods\n\n let(:router) { TicTacToe::Router.new }\n\n def app\n Proc.new do... | ruby | chosen |
[
{
"from": "system",
"value": "Add seed for creating default user\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:se... | ruby | chosen |
[
{
"from": "human",
"value": "Implement data seeding from previous seed file\n"
},
{
"from": "gpt",
"value": "User.create! [\n {username: \"Madison\", password: \"password\"},\n {username: \"Jennifer\", password: \"password\"},\n {username: \"Alessandra\", password: \"password\"},\n {username... | ruby | chosen |
[
{
"from": "system",
"value": "Change multi formatter to use new api\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nif RUBY_VERSION > '1.9' and (ENV['COVERAGE'] || ENV['TRAVIS'])\n require 'simplecov'\n require 'coveralls'\n\n SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter... | ruby | chosen |
[
{
"from": "system",
"value": "Allow testing against different versions of activerecord.\n"
},
{
"from": "human",
"value": "require 'spec'\n\n$LOAD_PATH.unshift(File.dirname(__FILE__))\n$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n\nrequire \"rubygems\"\n\ngem \"activerecor... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.