conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add district variable to index method, remove new, create, edit, update, destroy methods\n"
},
{
"from": "human",
"value": "class SchoolsController < ApplicationController\n before_action :set_school, only: [:show, :edit, :update, :destroy]\n\n # GET /schools\n #... | ruby | chosen |
[
{
"from": "system",
"value": "Use params.require to respond with Bad Request should id parameter not be included in request\n"
},
{
"from": "human",
"value": "class VCardsController < ApplicationController\n def show\n return unless params[:id]\n @office = OfficeLocation.find_with_rep(par... | ruby | chosen |
[
{
"from": "system",
"value": "Add top-level redirects to /activities and /walkathon if a user's url is activities.fairwoodexplorer.org or walkathon.fairwoodexplorer.org\n"
},
{
"from": "human",
"value": "class WelcomeController < ApplicationController\n layout 'home'\n\n def index\n end\nend\... | ruby | chosen |
[
{
"from": "system",
"value": "Document how we mean to go on"
},
{
"from": "human",
"value": "module CineworldUk\n VERSION = \"0.0.1\"\nend\n"
},
{
"from": "gpt",
"value": "# Ruby interface for http://www.cineworld.co.uk\n# @version 0.0.1\nmodule CineworldUk\n # Gem version\n VERSI... | ruby | chosen |
[
{
"from": "system",
"value": "Allow setting inventory when Fishbowl integration is disabled"
},
{
"from": "human",
"value": "module Spree\n Variant.class_eval do\n include ActiveModel::Validations\n\n validates :sku, 'spree_fishbowl/sku_in_fishbowl' => true, :if => \"sku.present?\"\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for receiving '~user' in File.absolute_path.\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\n\nruby_version_is \"1.9\" do\n describe \"File.absolute_path\" do\n before(:each) do\n @abs = File.expand_pa... | ruby | chosen |
[
{
"from": "system",
"value": "Update site spec with shoulda gem\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe Site, 'site attribut testing' do\n it 'cannot save without a name' do\n site = build(:site, name: nil)\n result = site.save\n expect(result).to be... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec to check the user defines locale enum\n\nThe two expected values are German and English.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe User, type: :model do\n\n it 'has a valid factory' do\n expect(create :user).to be_valid... | ruby | chosen |
[
{
"from": "system",
"value": "Add omniauth relate test for user model\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe User, type: :model do\n it { should validate_presence_of(:name) }\nend\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.d... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify a platform family check in the test recipe\n\nUbuntu isn't a platform family and we have a nice helper for this\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n... | ruby | chosen |
[
{
"from": "system",
"value": "Introduce spurious test failure to test Travis failure reporting\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule Dash2\n module Harvester\n\n describe Client do\n describe '#new' do\n it 'accepts a valid URL' do\n valid_ur... | ruby | chosen |
[
{
"from": "system",
"value": "Fix single table inheritance bug.\n\nChild classes didn't have access to parent's configuration. This is kind\nof crude (if geocoder_options not defined, see parent) but it works.\n"
},
{
"from": "human",
"value": "require 'geocoder'\n\nmodule Geocoder\n\n ##\n # ... | ruby | chosen |
[
{
"from": "system",
"value": "Rename preview task to watch\n"
},
{
"from": "human",
"value": "require 'thor'\nrequire 'yaml'\n\nmodule Forge\n class CLI < Thor\n include Thor::Actions\n\n def self.source_root\n File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'templates... | ruby | chosen |
[
{
"from": "system",
"value": "Add BigDecimal::Math to simplify use of BigDecimal math functions.\n"
},
{
"from": "human",
"value": "# This adds some extensions to BigDecimal for (limited) compatibility with BigFloat types\n\n# require 'bigdecimal'\n\nclass BigDecimal\n\n class <<self\n def b... | ruby | chosen |
[
{
"from": "system",
"value": "Remove all challenge controller tests\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe ChallengesController do\n\n # let!(:user) { User.create!(first_name: \"Karl\", last_name: \"Thomas\", email: \"karl@karl.com\", phone: \"555-555-5555\", user... | ruby | chosen |
[
{
"from": "system",
"value": "Remove some extra spaces in ZipCode (it was annoying me)\n"
},
{
"from": "human",
"value": "module DataMapper\n module Address\n class ZipCode < String \n # Remove all non-digits from given zip code\n def initialize(s)\n super((s || '').gsub... | ruby | chosen |
[
{
"from": "system",
"value": "CHANGE STUFF TO FIND BUG\n"
},
{
"from": "human",
"value": "require \"base64\"\n\nmodule Identity\n class HerokuAPI < Excon::Connection\n def initialize(options={})\n headers = {\n \"Accept\" => \"application/vnd.heroku+json; version=3\"\n }.mer... | ruby | chosen |
[
{
"from": "system",
"value": "Add dependency to plist gem and bump others to working versions.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |spec|\n spec.name = \"motion-screenshots\"\n spec.version = \"0.1.0\"\n spec.authors =... | ruby | chosen |
[
{
"from": "system",
"value": "Change repo example in yard docs [ci skip]\n"
},
{
"from": "human",
"value": "require 'yaml'\n\nrequire 'rom/repository'\nrequire 'rom/yaml/dataset'\n\nmodule ROM\n module YAML\n # YAML repository\n #\n # @example\n # repository = ROM::YAML::Repositor... | ruby | chosen |
[
{
"from": "human",
"value": "Add a HP provider class for the fog binary.\n"
},
{
"from": "gpt",
"value": "class HP < Fog::Bin\n class << self\n\n def class_for(key)\n case key\n when :cdn\n Fog::HP::CDN\n when :compute\n Fog::HP::Compute\n when :storage\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add full import load event study count.\n"
},
{
"from": "human",
"value": "namespace :import do\n namespace :full do\n task :run, [:force] => :environment do |t, args|\n if Date.today.day == 1 || args[:force]\n load_event = ClinicalTrials::LoadEvent.... | ruby | chosen |
[
{
"from": "system",
"value": "Add debug puts in rake task\n"
},
{
"from": "human",
"value": "namespace :maintenance do\n namespace :messages do\n \n desc \"Regenerate message html\"\n task :regenerate_html => :environment do\n Message.find_each(:batch_size => 100) do |m|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Return photo JSON with text MIME type\n\nThis is a work around for an IE issue. Recent versions of IE treat the\nphoto JSON returned as a file download, instead of passing it to the\ntarget iframe.\n\nTested in IE11 against staging environment.\n"
},
{
"from": "human",
... | ruby | chosen |
[
{
"from": "system",
"value": "Read plugin gemspecs to get list of plugin files.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"qu/version\"\n\nplugins = Dir['qu-*.gemspec'].map {|gemspec| gemspec.scan(/qu-(.*)\\.gemspec/).f... | ruby | chosen |
[
{
"from": "system",
"value": "Remove test for old static map\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe StaticPagesController, type: :controller do\n\n describe 'GET #home' do\n it 'returns http success' do\n get :home\n expect(response).to have_htt... | ruby | chosen |
[
{
"from": "system",
"value": "Tidy up share analytics updater class\n"
},
{
"from": "human",
"value": "require \"net/http\"\nrequire \"uri\"\n\nclass ShareAnalyticsUpdater\n def self.update_shares\n puts \"Fetching data...\"\n\n uri = 'http://run.shareprogress.org/api/v1/buttons/analytics... | ruby | chosen |
[
{
"from": "system",
"value": "Add view specs for application’s index."
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe \"home/index.html.erb\", type: :view do\n pending \"add some examples to (or delete) #{__FILE__}\"\nend\n"
},
{
"from": "gpt",
"value": "re... | ruby | chosen |
[
{
"from": "system",
"value": "Store extra key:value pairs from json post in extras\n"
},
{
"from": "human",
"value": "module Api\n\n class LogsController < ApplicationController\n\n \tdef index\n \t logs = Log.all\n \t render json: logs, status: 200\n \tend\n\n \tdef create\n \t log = ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor comments controller, remove set_submission method\n"
},
{
"from": "human",
"value": "class CommentsController < ApplicationController\n before_action :set_submission\n\n def create\n @comment = @submission.comments.build({ body: comment_params[:body], ... | ruby | chosen |
[
{
"from": "system",
"value": "Order Services by LGSL code\n\nThe services are now ordered by LGSL until we decide there is a better\nway to order them.\n"
},
{
"from": "human",
"value": "class ServicesController < ApplicationController\n def index\n @authority = LocalAuthority.find_by_slug!(... | ruby | chosen |
[
{
"from": "system",
"value": "Return users to the correct page on sign out\n"
},
{
"from": "human",
"value": "class SessionsController < ApplicationController\n skip_before_filter :verify_authenticity_token, only: :create\n\n def create\n session[:user_id] = user.id\n redirect_to session... | ruby | chosen |
[
{
"from": "system",
"value": "Send to current project instruments path for current instrument version\n"
},
{
"from": "human",
"value": "class VersionsController < ApplicationController\n def index\n @instrument = current_project.instruments.find(params[:instrument_id])\n end\n\n def show\... | ruby | chosen |
[
{
"from": "system",
"value": "Add gem version dependency on test-unit >= 2.1.0\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'test/unit'\nrequire 'shoulda'\n\n$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n$LOAD_PATH.unshift(File.dirname(__FILE__))\nrequire ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the test from the old sync install\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "control 'chef-server' do\n describe package('chef-server-core') do\n it { should be_installed }\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use Open3 to execute cowsay instead of dangerous backticks\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nrequire \"rubygems\"\nrequire \"sinatra\"\nrequire \"erb\"\n\nCOWSAY_OPTIONS = %w(f b d g p s t w y e T W)\n\nget \"/\" do\n if params[:message]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Destroy doc series groups when series deleted\n"
},
{
"from": "human",
"value": "class DocumentSeries < ActiveRecord::Base\n include Searchable\n include SimpleWorkflow\n\n belongs_to :organisation\n\n has_many :groups, class_name: 'DocumentSeriesGroup', order: ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix mini ports compilation issue\n\nHost might not be set when doing native compilation.\n"
},
{
"from": "human",
"value": "require \"rake/clean\"\nrequire \"rake/extensioncompiler\"\nrequire \"mini_portile\"\n\n$recipes = {}\n\n$recipes[:sqlite3] = MiniPortile.new ... | ruby | chosen |
[
{
"from": "system",
"value": "Add back the provides to the provider\n\nMagic doesn't work here since the class name isn't magical\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "#\n# Author:: Cary Penniman (<cary@rightscale.com>)\... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade to a more modern version of jtds\n"
},
{
"from": "human",
"value": "#\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 License at\n#\n# ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove non-existent executables from 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 'omniauth/eventbrite/version'\n\nGem::Specification.new do |s... | ruby | chosen |
[
{
"from": "system",
"value": "Use JSON content-type only if payload exists\n"
},
{
"from": "human",
"value": "require 'restclient'\n\nmodule Heroku\n module Kensa\n module HTTP\n\n def get(path, params={})\n path = \"#{path}?\" + params.map { |k, v| \"#{k}=#{v}\" }.join(\"&\") un... | ruby | chosen |
[
{
"from": "system",
"value": "Move Activity and Application fetchout of transaction\n\nThis should reduce not unique record exceptions due to creating unique\nactivities in longer transactions.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Mnemosyne\n class Builder\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix loading pagination helpers for rails 5\n"
},
{
"from": "human",
"value": "module PagerApi\n class Railtie < Rails::Railtie\n config.after_initialize do\n require 'pager_api/hooks'\n end\n end\nend\n\n"
},
{
"from": "gpt",
"value": "modul... | ruby | chosen |
[
{
"from": "system",
"value": "Fix unknown action name handling\n"
},
{
"from": "human",
"value": "require \"serverkit/actions/apply\"\nrequire \"serverkit/actions/diff\"\nrequire \"serverkit/actions/inspect\"\nrequire \"serverkit/actions/validate\"\nrequire \"serverkit/errors/missing_action_name... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor to add a parse response method\n"
},
{
"from": "human",
"value": "module SimilarWeb\n class Client\n include AlsoVisited\n include EstimatedVisits\n include SimilarSites\n include CategoryRank\n include Destinations\n include Keywords\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task to start test app\n"
},
{
"from": "gpt",
"value": "require 'test_app_starter.rb'\n\nnamespace :idt do # idt stands for Image Downloader Test\n desc 'Start test sinatra application'\n task :start_app do\n app = TestAppStarter.new(4567)\n app.star... | ruby | chosen |
[
{
"from": "system",
"value": "Update Net Launch to use core config\n\nI meant to do this and forgot, and this was only picked up in the long version of the integration tests. Meaning that there are no unit tests around this at all. We should fix that.\n"
},
{
"from": "human",
"value": "require '... | ruby | chosen |
[
{
"from": "human",
"value": "Add sequel real world discourse bench\n"
},
{
"from": "gpt",
"value": "require \"bundler/setup\"\nrequire \"sequel\"\n\nrequire_relative \"support/benchmark_sequel\"\n\ndb_setup script: \"bm_discourse_setup.rb\"\n\nDB = Sequel.connect(ENV.fetch(\"DATABASE_URL\"))\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update pod spec to new tag\n\nPulled from upstream."
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"MBAlertView\"\n s.version = \"1.2.0\"\n s.summary = \"Fast, fun, and simple block-based alerts and HUDs.\"\n s.description =... | ruby | chosen |
[
{
"from": "system",
"value": "Increase bunny continuation_timeout since ci is slow\n"
},
{
"from": "human",
"value": "class BrokerConfig\n class << self\n def config\n adapter_file = File.expand_path(\"../../.adapter_under_test\", __FILE__)\n @adapter, @version = (ENV['ADAPTER'] ||... | ruby | chosen |
[
{
"from": "system",
"value": "Update homebrew formula for release 0.3.0\n"
},
{
"from": "human",
"value": "class Mhost < Formula\n desc \"More than host - A modern take on the classic host DNS lookup utility\"\n homepage \"https://mhost.pustina.de\"\n url \"https://github.com/lukaspustina/mho... | ruby | chosen |
[
{
"from": "human",
"value": "Add Course Lesson Plan feature specs\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\nRSpec.feature 'Course: Lesson Plan' do\n subject { page }\n let!(:instance) { create(:instance) }\n\n with_tenant(:instance) do\n let!(:user) { create(:administrator... | ruby | chosen |
[
{
"from": "human",
"value": "Add functional test for WebLinkRow\n"
},
{
"from": "gpt",
"value": "describe \"FormController/WebLinkRow\" do\n tests Formotion::FormController\n\n # By default, `tests` uses @controller.init\n # this isn't ideal for our case, so override.\n def controller\n r... | ruby | chosen |
[
{
"from": "human",
"value": "Update admin_partner_id primary key to bigint\n"
},
{
"from": "gpt",
"value": "class ChangeAdminPartnerIdToBigint < ActiveRecord::Migration[6.0]\n def up\n change_column :admin_partners, :id, :bigint\n end\n\n def down\n change_column :admin_partners, :id, :... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Add bcrypt and bundle\"\n\nThis reverts commit 2d33b11fb46e360afe8f7c350a19e181d0531827.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'users/... | ruby | chosen |
[
{
"from": "system",
"value": "Add json to runtime dependency list\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'valor/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix patch __END__ data for mp4-h264 module\n\nHomebrew/homebrew-nginx#68"
},
{
"from": "human",
"value": "require \"formula\"\n\nclass Mp4H264NginxModule < Formula\n homepage \"http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Nginx-Version2\"\n url \"http://... | ruby | chosen |
[
{
"from": "system",
"value": "Remove /admin catch all route.\n"
},
{
"from": "human",
"value": "::Refinery::Application.routes.draw do\n match '/admin(/*path)', :to => redirect {|params, request|\n request.flash[:message] = \"<p>\n The URL '/<strong>admin</strong>#{\"/#{params[:path]}\"... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for user can't mannage services,\n\nor versions for other organizations.\n"
},
{
"from": "gpt",
"value": "require \"test_helper\"\n\nclass LogedUserCanOnlyManagesItsOwmOrganizationServicesTest < Capybara::Rails::TestCase\n include Warden::Test::Helpers\n a... | ruby | chosen |
[
{
"from": "system",
"value": "Support all of has_many options\n"
},
{
"from": "human",
"value": "module ActiveRecord::Associations::Builder\n class CountLoader < SingularAssociation\n self.valid_options = [:class_name, :foreign_key]\n\n def macro\n :count_loader\n end\n\n def s... | ruby | chosen |
[
{
"from": "human",
"value": "Add unit test verifying that activities are now lazily fetched as needed\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Interactors::Feed::Global do\n include PavlovSupport\n\n describe '#call' do\n it 'filters out invalid activities' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Test that arbitrary fields can hold non-ascii characters.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe Person, type: :model do\n it 'should have a valid factory' do\n expect(create(:person)).to be_valid\n end\n \n it 'requires a churc... | ruby | chosen |
[
{
"from": "human",
"value": "Add timestamps to all tables\n"
},
{
"from": "gpt",
"value": "class AddTimestampsToAllTables < ActiveRecord::Migration\n def change\n [\n :usda_food_groups, :usda_foods, :usda_foods_nutrients,\n :usda_weights, :usda_footnotes, :usda_source_codes,\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update AppCleaner.app to version 2.3\n"
},
{
"from": "human",
"value": "cask :v1 => 'appcleaner' do\n version '2.2.3'\n sha256 '90b3d8e3c32388035e5154594222d66d48d5cad263a5387f77f9ea77315af84d'\n\n url \"http://www.freemacsoft.net/downloads/AppCleaner_#{version}.... | ruby | chosen |
[
{
"from": "system",
"value": "Update Endless Sky to v0.8.3\n"
},
{
"from": "human",
"value": "cask :v1 => 'endlesssky' do\n version '0.8.2'\n sha256 '65ae266e629c17b46fa69593fdbb7b318620f4eb68085f135e63046dae6751ad'\n\n url \"https://github.com/endless-sky/endless-sky/releases/download/v#{ver... | ruby | chosen |
[
{
"from": "system",
"value": "Use latest snapshot if snapshot cannot be found\n\nA snapshot might be selected through the URL that is not available.\nInstead of failing all together, the latest snapshot of the repository\nis selected. What is still missing is an automated redirection.\n\nSigned-off-by: Konr... | ruby | chosen |
[
{
"from": "system",
"value": "Make view and preview of supporting pages work\n\nAlso make the preview checking more secure by ensuring the\ncurrent user can see the previewed records.\n"
},
{
"from": "human",
"value": "class SupportingPagesController < PublicFacingController\n before_filter :fi... | ruby | chosen |
[
{
"from": "system",
"value": "Add stats for marine as well\n"
},
{
"from": "human",
"value": "class AddWellConnectedAndImportanceToCountryStatistic < ActiveRecord::Migration\n def change\n add_column :country_statistics, :well_connected, :float\n add_column :country_statistics, :importanc... | ruby | chosen |
[
{
"from": "system",
"value": "Load actual variants in the exchange, wrong behaviour was implemented in previous two commits\n"
},
{
"from": "human",
"value": "class Api::Admin::ExchangeSerializer < ActiveModel::Serializer\n attributes :id, :sender_id, :receiver_id, :incoming, :variants, :pickup... | ruby | chosen |
[
{
"from": "system",
"value": "Redefine class in instance matcher spec\n\n- rspec describes are not classes, so the class was defined globally\n- this caused warnings for other matchers"
},
{
"from": "human",
"value": "RSpec.describe Mutant::Matcher::Methods::Instance, '#each' do\n let(:object) ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove reloader, doesn't work with camping\n"
},
{
"from": "human",
"value": "require 'kalimba'\nrequire 'fileutils'\n\n# config\nenvironment = ENV['DATABASE_URL'] ? 'production' : 'development'\nif environment == 'development'\n require 'sass/plugin/rack'\n Sass:... | ruby | chosen |
[
{
"from": "system",
"value": "Update Grub to fix memory allocation warning.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n#\n# Cookbook Name:: octohost\n# Recipe:: final\n#\n# Copyright (C) 2014, Darron Froese <darron@froese.org>\n#\n# Licensed under the Apache License, Version 2.0 (the ... | ruby | chosen |
[
{
"from": "system",
"value": "Add Category 3 Women to OWPS\n"
},
{
"from": "human",
"value": "module Competitions\n class OregonWomensPrestigeSeries < Competition\n include Competitions::OregonWomensPrestigeSeriesModules::Common\n\n def friendly_name\n \"Oregon Womens Prestige Series... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a bug with returning the fuse and calculating the size of the store\n"
},
{
"from": "human",
"value": "require \"breaker/rails_cache/version\"\nrequire \"breaker/rails_cache/fuse\"\nrequire \"breaker/rails_cache/store\"\n\nmodule Breaker\n module RailsCache\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix API param name and sugar over nested attributes.\n"
},
{
"from": "human",
"value": "module ContextIO\n class EmailSettings < APIResource\n def self.discover_for(email_address, source_type = 'imap')\n attrs = ContextIO::API.request(:get, 'discovery', ema... | ruby | chosen |
[
{
"from": "system",
"value": "Improve restart on close performance.\n"
},
{
"from": "human",
"value": "module SlackBotServer\n class Server < SlackRubyBot::Server\n attr_accessor :team\n\n def initialize(attrs = {})\n @team = attrs[:team]\n fail 'Missing team' unless @team\n ... | ruby | chosen |
[
{
"from": "system",
"value": "test: Destroy author that has posts\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass PostTest < ActiveSupport::TestCase\n setup do\n @default_locale = I18n.locale\n I18n.locale = :ja\n @site = Site.create!(name: \"name\",\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove spec files from bundled gem\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nlib = File.expand_path('lib', File.dirname(__FILE__))\n$:.unshift lib unless $:.include?(lib)\nrequire 'xpath/version'\n\nGem::Specification.new do |s|\n s.name =... | ruby | chosen |
[
{
"from": "system",
"value": "Use assert_raise to catch an exception in tests\n"
},
{
"from": "human",
"value": "require 'helper'\n\nclass TestConstructor < Test::Unit::TestCase\n\n\n def test_build_fail\n spore = Spore.new() rescue nil\n assert_nil spore\n end\n\n def test_build_github... | ruby | chosen |
[
{
"from": "system",
"value": "Bring in bits from cuke-chef\n"
},
{
"from": "human",
"value": "current_dir = File.dirname(__FILE__)\ncache_options(:path => \"#{current_dir}/checksums\")\nverbose_logging true\n"
},
{
"from": "gpt",
"value": "current_dir = File.dirname(__FILE__)\n\nlog_... | ruby | chosen |
[
{
"from": "system",
"value": "Use puts instead of pp\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'gli'\n\ninclude GLI::App\n\nrequire_relative '../../version'\n\nrequire_relative '../../dataset/dataset.rb'\n\nrequire_relative '../shared'\n\ndesc 'Dataset related operations'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Complete `TODO` after Ruby < 2.5 dropping\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Flame\n\tclass Dispatcher\n\t\t## Class for requests\n\t\tclass Request < Rack::Request\n\t\t\tinclude Memery\n\n\t\t\t## Initialize Flame::Path\n\t\... | ruby | chosen |
[
{
"from": "system",
"value": "Rename fork method to stop forking myself\n"
},
{
"from": "human",
"value": "module Frisky\n module Model\n class Repository < ProxyBase\n attr_accessor :homepage, :watchers_count, :html_url, :owner, :master_branch,\n :forks_count, :git_u... | ruby | chosen |
[
{
"from": "system",
"value": "Update routes to new Rails 3 format\n"
},
{
"from": "human",
"value": "if Rails.env != \"test\"\n ActionController::Routing::Routes.draw do |map|\n # Additional help pages\n map.with_options :controller => 'help' do |help|\n help.help_hel... | ruby | chosen |
[
{
"from": "system",
"value": "Add s.swift_version = '4.0' in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'WOWCheckbox'\n s.version = '1.2.1'\n s.summary = 'Highly customisable checkbox in Swift.'\n\n s.description = <<-DESC\nA... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tag bug on podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = 'FlexibleImage'\n s.version = '1.6'\n s.summary = 'A simple way to play with image!'\n s.license = { :type => 'MIT', :file => 'LICENSE' }\n s.home... | ruby | chosen |
[
{
"from": "system",
"value": "Update Bowery.app to verision 3.2.9\n"
},
{
"from": "human",
"value": "class Bowery < Cask\n version '3.2.7'\n sha256 'e473b9d3b056a23b79c5174e979f345ef1cb873bcadfd02360a46f7b015a394f'\n\n url \"http://desktop.bowery.io/#{version}_darwin_amd64.zip\"\n homepage '... | ruby | chosen |
[
{
"from": "system",
"value": "Update appcast's sha256 for Poedit.app"
},
{
"from": "human",
"value": "cask :v1 => 'poedit' do\n\n if MacOS.release <= :snow_leopard\n version '1.5.7'\n sha256 '2017538011239f07924b709e4c13aa3fd7f83a96f76208b8b746fcee29251caf'\n # sourceforge.net is the o... | ruby | chosen |
[
{
"from": "system",
"value": "Allow symbol to be used to specify database\n"
},
{
"from": "human",
"value": "module PgHero\n module Methods\n module Databases\n def databases\n @databases ||= begin\n Hash[\n config[\"databases\"].map do |id, c|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove 'bin/' prefix from imagesnap command name\n\n* It will not require this because it should be in PATH for the\n executing user.\n"
},
{
"from": "human",
"value": "module Snapme\n class ImagesnapCommand\n def call(filename)\n `#{command_name} #{filena... | ruby | chosen |
[
{
"from": "human",
"value": "Create rake task to link editions to a government\n"
},
{
"from": "gpt",
"value": "namespace :governments do\n task relink: :environment do\n STDOUT.sync = true\n Edition.where.not(state: %w[deleted superseded]).find_each do |edition|\n presenter = Publis... | ruby | chosen |
[
{
"from": "system",
"value": "Improve to describe gem 'github-linguist'\n\nThe required gem is 'github-linguist' not 'linguist'.\n"
},
{
"from": "human",
"value": "begin\n require 'linguist'\nrescue LoadError\n raise LoadError, \"You need to install linguist before using the SyntaxHighlightFil... | ruby | chosen |
[
{
"from": "system",
"value": "Add method implementation requision on :each.\n"
},
{
"from": "human",
"value": "require 'versatile_rjs/proxy/selectable'\n\nmodule VersatileRJS\n class Proxy\n class ElementSetProxy < Proxy\n include Selectable\n include FrameworkDependent\n\n de... | ruby | chosen |
[
{
"from": "human",
"value": "Add some pending specs for the Listener class.\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'spec_helper'\n\ndescribe Que::Listener do\n it \"should return messages to the locker in bulk by type\"\n\n it \"should pre-process new_job mes... | ruby | chosen |
[
{
"from": "system",
"value": "Fix app not found error\n"
},
{
"from": "human",
"value": "class AddTypeToMiniapp < ActiveRecord::Migration\n def change\n \t\t\n\t\tMiniApp.where(:name=>app.name).delete_all\n\t\tmini_app = MiniappStudy::Question.new(:name=>\"study\", :order_number=>90)\n\t\tmini... | ruby | chosen |
[
{
"from": "human",
"value": "Add Podspec with AFNetworking version updated\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n s.name = \"RunKeeper-iOS\"\n s.version = \"0.0.1\"\n s.summary = \"An iOS RunKeeper API module.\"\n s.description = <<-DESC\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add protocol and host for dummy request\n"
},
{
"from": "human",
"value": "require 'action_view'\n\nclass DummyView < ActionView::Base\n module FakeRequest\n class Request\n attr_accessor :path, :fullpath\n def get?\n true\n end\n end\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Token Response for Simple Auth\t"
},
{
"from": "human",
"value": "module Spree\n module Api\n module Ams\n class UsersController < Spree::Api::UsersController\n include Serializable\n include Requestable\n\n def token\n ... | ruby | chosen |
[
{
"from": "system",
"value": "v1.4.3: Fix doc for jazzy and CocoaPods\n\nThings in `**` were missing if they are in `parameter` or a `returns`,\ne.g.\n\n```\nA *Reducer* function\n```\n\nwill be rendered as:\n\n> A function\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude published version from plans project serialized attributes\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule GobiertoPlans\n class NodeSerializer < BaseSerializer\n include ::GobiertoCommon::Versionable\n include ::GobiertoCom... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.