conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add a script file to load and parse the summa.txt file.\n"
},
{
"from": "gpt",
"value": "require_relative 'parser/summa_parser.rb'\ndef load()\n text = File.open(\"summa.txt\", \"rb\") { |f| f.read }\n SummaParser.new(text).summa\nend\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Fix namespacing issue on readmap test\n"
},
{
"from": "human",
"value": "require_relative \"test_helper\"\n\nclass TestReadMap < Poke::Test\n\n def setup\n @object = Object.new\n @object.extend(ReadMap)\n @mf = \"media/grid_one/map.txt\"\n @pmf = \"medi... | ruby | chosen |
[
{
"from": "system",
"value": "Index the solr freshness boolean\n"
},
{
"from": "human",
"value": "class IndexRequestsWithSolr < ActiveRecord::Migration\n def self.up\n add_column :info_requests, :solr_up_to_date, :boolean, :default => false, :null => false\n end\n\n def self.down... | ruby | chosen |
[
{
"from": "human",
"value": "Add integration test to demonstrate attachment replacement behaviour\n\nWhen an attachment file is *replaced* with another file, the\nattachment's URL path changes (both the AttachmentData ID and,\npotentially, the filename parts). However, requests for the original\nattachment ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove nil values from the join\n\nSigned-off-by: Will Fisher <392743f9dc9e2aef3201bd7129e55eb620ce557e@chef.io>\n"
},
{
"from": "human",
"value": "require 'cgi'\nrequire 'jwt'\nrequire 'securerandom'\nrequire 'uri'\n\nclass ZendeskSSOURL\n attr_reader :user, :retu... | ruby | chosen |
[
{
"from": "system",
"value": "Update mustache dependency to 1.0.2\n\nThe change we want to include is the performance improvement when using\npartials in loops: https://github.com/mustache/mustache/pull/205\n\nThe breaking change from 0.99 to 1.0 is that mustache now requires\nRuby >= 2.0.\n"
},
{
"... | ruby | chosen |
[
{
"from": "system",
"value": "Fix basic auth with correct paths\n"
},
{
"from": "human",
"value": "class BasicAuth < Rack::Auth::Basic\n PROTECTED_PATHS = ['/images']\n\n def call(env)\n request = Rack::Request.new(env)\n\n return super if PROTECTED_PATHS.include? request.path\n\n @ap... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for MatchData named capture behaviors in Ruby 1.9-2.1\n\nAsking for a named capture returns the corresponding match, but only the\nlast one if multiple matches are made.\n\nAccessing a non-matching named capture returns nil, while accessing an\nundefined one gives an In... | ruby | chosen |
[
{
"from": "system",
"value": "Whitelist local assets only during JS tests\n\nThis stops our tests loading remote assets, speeding up the tests\ngenerally but also silencing the stupid console output from smart\nsurvey's scripts.\n"
},
{
"from": "human",
"value": "require 'capybara/poltergeist'\n... | ruby | chosen |
[
{
"from": "human",
"value": "Patch for getting rack in line with webrat for test host name.\n\nProblem described at:\nhttp://baldowl.github.com/2010/12/06/coercing-cucumber-and-webrat-to-cooperate.html\n\nFix from:\nhttps://gist.github.com/729996\n\nI ran into this while trying to run a cucumber feature tha... | ruby | chosen |
[
{
"from": "system",
"value": "Fix redirect to sign-in link on EXH vote endpoint\n"
},
{
"from": "human",
"value": "class ExhController < ApplicationController\n def vote\n return redirect_to(controller: \"session\", action: \"create\") unless signed_in?\n card = exh_card(params[:name])\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Change to separate input tests\n"
},
{
"from": "gpt",
"value": "RSpec.describe TTY::Command, 'input' do\n it \"reads user input data\" do\n cli = fixtures_path('cli')\n output = StringIO.new\n command = TTY::Command.new(output: output)\n\n out, _ = comma... | ruby | chosen |
[
{
"from": "human",
"value": "Add a pending spec for Build.all"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\nmodule Artifactory\n describe Resource::Build, :integration do\n describe '.all' do\n it 'returns an array of build objects' do\n pending 'Need more information a... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for limit feature\n"
},
{
"from": "human",
"value": "require_relative '../../../../apps/web/controllers/repos/index'\n\nRSpec.describe Web::Controllers::Repos::Index do\n let(:action) { described_class.new }\n let(:params) { Hash[] }\n\n let(:project_re... | ruby | chosen |
[
{
"from": "system",
"value": "Add gist support to GithubRepositoryCollection\n\n- #gists\n- #starred_gists\n"
},
{
"from": "human",
"value": "module GithubBackup\n class GithubRepositoryCollection\n attr_reader :client\n\n def initialize(client)\n @client = client\n end\n\n def... | ruby | chosen |
[
{
"from": "system",
"value": "Hide some methods in leftover distributor\n"
},
{
"from": "human",
"value": "module Knapsack\n module Distributors\n class LeftoverDistributor < BaseDistributor\n attr_reader :spec_pattern\n\n def post_initialize(args={})\n @spec_pattern = args[... | ruby | chosen |
[
{
"from": "system",
"value": "Update for nori gem version"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'appdirect/version'\n\nGem::Specification.new do |spec|\n spec.name =... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Her to accommodate security fixes\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\nrequire 'castle-rb/version'\n\nGem::Specification.new do |s|\n s.name = 'castle-rb'\n s.version = Castle::VERSION\n s.summary... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up code that generates the PDF a bit\n"
},
{
"from": "human",
"value": "require 'prawn/labels'\n\nclass Group < ActiveRecord::Base\n LABELS_PATH = '/tmp'\n LABELS_FILE = 'mailing_labels.pdf'\n\n has_and_belongs_to_many :addresses\n\n before_destroy :clear_... | ruby | chosen |
[
{
"from": "system",
"value": "Move set_thumbnails to be public\n"
},
{
"from": "human",
"value": "class Image < ActiveRecord::Base\n attr_accessible :image\n\n belongs_to :album, counter_cache: true\n\n mount_uploader :image, ImageUploader\n\n paginates_per 100\n\n validates :md5, uniquenes... | ruby | chosen |
[
{
"from": "system",
"value": "Add description and summary in 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 'bourgeois/version'\n\nGem::Specification.new do |spec|\n spec.na... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo, it’s “Bundler”, not “Bundle”\n"
},
{
"from": "human",
"value": "require 'optparse'\nrequire 'yaml'\nrequire 'highline/import'\n\nrequire 'hanzo/base'\nrequire 'hanzo/cli'\nrequire 'hanzo/heroku'\nrequire 'hanzo/version'\n\nmodule Hanzo\n def self.run(comm... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up Rlocu module file\n"
},
{
"from": "human",
"value": "#require \"rlocu/version\"\nrequire_relative 'rlocu/config'\nrequire_relative 'rlocu/venue'\nrequire_relative 'rlocu/menu'\nrequire_relative 'rlocu/venue_search'\nrequire_relative 'rlocu/venue_details'\nr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix CAS for the backend\n"
},
{
"from": "human",
"value": "class Backend::BackendController < ApplicationController\n respond_to :html\n layout \"backend\"\n\n before_filter :verify_club\n def verify_club\n # Development backdoor\n return @club = Club.find... | ruby | chosen |
[
{
"from": "system",
"value": "Expire LocationBlock cache on profile's location change\n\n(ActionItem3217)\n"
},
{
"from": "human",
"value": "class MapsController < MyProfileController\n\n protect 'edit_profile', :profile\n\n def edit_location\n @profile_data = profile\n if request.post?\... | ruby | chosen |
[
{
"from": "system",
"value": "Add expired check in controller.\n"
},
{
"from": "human",
"value": "class PasswordResetsController < ApplicationController\n def new\n end\n\n def create\n user = User.find_by(email: params[:email])\n @password_reset = PasswordReset.new(user_id: user.id)\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Add gemspec files to allow bundler to run from the gem\n"
},
{
"from": "human",
"value": "$:.unshift(File.dirname(__FILE__) + '/lib')\nrequire 'chef_zero/version'\n\nGem::Specification.new do |s|\n s.name = 'chef-zero'\n s.version = ChefZero::VERSION\n s.platform... | ruby | chosen |
[
{
"from": "system",
"value": "Add quiet toggling to the top level\n"
},
{
"from": "human",
"value": "require \"benchmark/memory/errors\"\nrequire \"benchmark/memory/job\"\nrequire \"benchmark/memory/version\"\n\n# Performance benchmarking library\nmodule Benchmark\n # Benchmark memory usage in ... | ruby | chosen |
[
{
"from": "human",
"value": "Add experience points record model\n"
},
{
"from": "gpt",
"value": "class Course::ExperiencePointsRecord < ActiveRecord::Base\n actable\n stampable\n\n belongs_to :course_user, inverse_of: :experience_points_records\n\n validates :points_awarded, numericality: { ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a type with class 2 exercise 1\n"
},
{
"from": "human",
"value": "# 5 points\n#\n# Assuming leap-years don't exist, display the hours are in year.\n#\n# TIP: I expect you to use a mathematical equation.\n"
},
{
"from": "gpt",
"value": "# 5 points\n#\... | ruby | chosen |
[
{
"from": "system",
"value": "Add some additional documentation to DSL implementation.\n"
},
{
"from": "human",
"value": "class Array\n # The magic that enables the filter operator.\n def >> other\n other << self\n end\nend\n\n# This portion is still highly experimental. It allows filters... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce sql calls on api divisions show\n"
},
{
"from": "human",
"value": "json.partial! \"division\", division: @division\n\n# Extra information that isn't in the summary\njson.summary @division.motion\njson.votes @division.votes.order(:vote), partial: \"api/v1/vote... | ruby | chosen |
[
{
"from": "system",
"value": "Update OmniFocus Beta to version 2.3.x-r245365\n\nThis commit updates the version, sha256 and url stanzas.\n"
},
{
"from": "human",
"value": "cask :v1 => 'omnifocus-beta' do\n version 'r243022'\n sha256 '4afcc45844522d63b787f7f346bfa81094aecce790cec8b4b9fbedbafcc2... | ruby | chosen |
[
{
"from": "system",
"value": "Fix remaining rake test_app issues\n"
},
{
"from": "human",
"value": "module SpreePaypalExpress\n class Engine < Rails::Engine\n engine_name 'spree_paypal_express'\n\n config.autoload_paths += %W(#{config.root}/lib)\n\n # use rspec for tests\n config.ge... | ruby | chosen |
[
{
"from": "system",
"value": "Add delgationm method to Logger\n"
},
{
"from": "human",
"value": "require 'tumugi/logger/logger'\nrequire 'forwardable'\n\nmodule Tumugi\n class ScopedLogger\n extend Forwardable\n def_delegators :@logger, :debug?, :error?, :fatal?, :info?, :warn?, :level\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Cover empty value scenario in DomainValidator\n"
},
{
"from": "human",
"value": "class DomainValidator < ActiveModel::EachValidator\n def validate_each(record, attribute, value)\n record.errors.add attribute, :not_valid_format if value.split('.').length < 2\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Update to more better condition\n"
},
{
"from": "human",
"value": "require 'space2underscore/version'\n\nmodule Space2underscore\n class << self\n def convert(argv)\n argv.length == 1 ? argv[0].strip.gsub(/\\s/, '_') : argv.join('_')\n end\n\n def ge... | ruby | chosen |
[
{
"from": "system",
"value": "Update TensorFlow documentation (0.10, 0.10)\n"
},
{
"from": "human",
"value": "module Docs\n class Tensorflow < UrlScraper\n self.name = 'TensorFlow'\n self.type = 'tensorflow'\n self.links = {\n home: 'https://www.tensorflow.org/',\n code: 'htt... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out line breaking deploys\n"
},
{
"from": "human",
"value": "namespace :rummager do\n desc \"Reindex search engine\"\n task :index => :environment do\n documents = [{\n \"title\" => \"Help\",\n \"description\" => \"Get help using the site.\",\... | ruby | chosen |
[
{
"from": "system",
"value": "sorting: Add merge test for bottom_up strategy\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nmodule Algs4ruby\n class Sorting\n class MergeTest < MiniTest::Unit::TestCase\n include SortingTestHelper\n\n def test_sort_stability\n as... | ruby | chosen |
[
{
"from": "human",
"value": "Add xml helper unit tests\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\nrequire 'xlsxtream/xml'\n\nmodule Xlsxtream\n class XMLTest < Minitest::Test\n def test_header\n expected = %'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\\r\\... | ruby | chosen |
[
{
"from": "system",
"value": "Add the `activemodel` gem as a dependency."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"music/version\"\n\nGem::Specification.new do |s|\n # Basic Info\n s.name = \"music\"\n s.vers... | ruby | chosen |
[
{
"from": "system",
"value": "Update to a minimum of manageiq-appliance_console v3.3.1\n\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1648986\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1625377\n"
},
{
"from": "human",
"value": "# Add gems here, in Gemfile syntax, which are dependencies of the ... | ruby | chosen |
[
{
"from": "system",
"value": "Include the extensions in active model\n"
},
{
"from": "human",
"value": "require \"inheritance_integer_type/version\"\nrequire \"inheritance_integer_type/extensions\"\n"
},
{
"from": "gpt",
"value": "require \"inheritance_integer_type/version\"\nrequire... | ruby | chosen |
[
{
"from": "system",
"value": "Allow retrieving `automatic` type values from nodes\n\nFixes #3\n"
},
{
"from": "human",
"value": "module KnifeAttribute\n module Node\n class NodeAttributeGet < Chef::Knife\n include KnifeAttribute::Node::Helpers\n include KnifeAttribute::Get\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix that Present matcher returns false -- not nil -- when failing\nwith a blank string.\n"
},
{
"from": "human",
"value": "module Luggage\n module Matchers\n # Tests whether the validation value is present.\n #\n # A \"present\" value is one which:\n #\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Pose Class to get passing tests.\n\nAdd public interface messages and allow initialization without\narguments.\n"
},
{
"from": "human",
"value": "class Pose\n module Orientation\n EAST = :east\n NORTH = :north\n WEST = :west\n SOUTH = :south\n end\... | ruby | chosen |
[
{
"from": "human",
"value": "Write output files based on configured convention\n"
},
{
"from": "gpt",
"value": "module Yarrow\n module Tools\n # TODO: consider renaming this to OutputDocument.\n class OutputFile\n include ::Configurable\n\n WRITE_MODE = 'w+:UTF-8'.freeze\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use private_header_files instead of exclude_files for protected header\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'Valet'\n s.version = '2.1.0'\n s.license = 'Apache License, Version 2.0'\n s.summary = 'Valet lets you securely stor... | ruby | chosen |
[
{
"from": "system",
"value": "Fix CI on Ruby 2.7\n\nhttps://github.com/sue445/twitter_retry/runs/372611709"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"twitter_retry/version\"\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Include test_helper instead of test/unit and AS/test-case separately\n"
},
{
"from": "human",
"value": "# require 'test_helper'\nrequire 'test/unit'\nrequire 'active_support/test_case'\nrequire_relative '../../lib/sorted_repo_collection'\n\nclass SortedRepoCollectio... | ruby | chosen |
[
{
"from": "system",
"value": "Add rdmm gem that is API Client for DMM and DMM.R18\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'dmm-crawler/version'\n\nGem::Specification.new do |spec|\n spec.name... | ruby | chosen |
[
{
"from": "system",
"value": "Add `UNICORN_TIMEOUT` to configure app timeout\n"
},
{
"from": "human",
"value": "worker_processes Integer(ENV[\"WEB_CONCURRENCY\"] || 3)\ntimeout 15\npreload_app true\n\nbefore_fork do |server, worker|\n Signal.trap 'TERM' do\n puts 'Unicorn master intercepting... | ruby | chosen |
[
{
"from": "system",
"value": "Set dashboard controller tests as pending\n"
},
{
"from": "human",
"value": "require 'rails_helper'\nrequire 'cancan/matchers'\n\nRSpec.describe DashboardController, type: :controller do\n include Devise::TestHelpers\n\n let(:valid_session) { }\n let(:user) { cre... | ruby | chosen |
[
{
"from": "system",
"value": "Add employer_controller tests for creating password\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe EmployersController, :type => :controller do\n describe \"GET #new\" do\n it \"renders the new template\" do\n get :new\n ex... | ruby | chosen |
[
{
"from": "system",
"value": "Fix pod spec source path\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n\tspec.name = \"Persei\"\n\tspec.version = \"1.0\"\n\t\n\tspec.homepage = \"https://github.com/Yalantis/Persei\"\t\n\tspec.summary = \"Animated top menu for UITableView / UICollecti... | ruby | chosen |
[
{
"from": "system",
"value": "Add encoding hint do Address model.\n"
},
{
"from": "human",
"value": "class Address < ActiveRecord::Base\n # Access restrictions\n attr_accessible :extended_address, :street_address, :post_office_box, :postal_code, :locality\n\n belongs_to :vcard\n\n # Validati... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for Menu model\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\n#\n# == Menu model test\n#\nclass MenuTest < ActiveSupport::TestCase\n # # TODO: Fix these tests\n # test 'should return only visible header element' do\n # assert_equal 5, Cate... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for executables in bin\n"
},
{
"from": "gpt",
"value": "#frozen_string_literal: true\nrequire \"minitest/autorun\"\nrequire \"fileutils\"\n\nclass TestExecutables < Minitest::Test\n def test_bundler\n skip if RUBY_VERSION =~ /^2\\.[345]\\./\n # bundl... | ruby | chosen |
[
{
"from": "system",
"value": "Set RestClient to >= 1.8\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\nrequire 'clicksign/version'\n\nGem::Specification.new do |spec|\n spec.name = \"clicksign\"\n spec.version = Clicksign::VERSION\n spec.autho... | ruby | chosen |
[
{
"from": "human",
"value": "Add a request level spec for admin testing\n\nThis operates more at the API level, but it appears that Rails5.1 has\ntaken away access to the session variable, so it becomes necessary to\ninteract with multiple different controller endpoints, instead of simply\npreconfiguring a ... | ruby | chosen |
[
{
"from": "system",
"value": "Test for photo thumbnails; stub Flickr username/id.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"photos/new\" do\n before(:each) do\n @member = FactoryGirl.create(:member)\n controller.stub(:current_user) { @member }\n assign(:pho... | ruby | chosen |
[
{
"from": "system",
"value": "Use case statement to ascertain object class\n"
},
{
"from": "human",
"value": "require \"oga\"\nrequire \"open-uri\"\nrequire \"addressable/uri\"\nrequire \"thread\"\n\nrequire \"ocawari/version\"\nrequire \"ocawari/parser\"\nrequire \"ocawari/strategy_delegator\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Add an explicit requirement for test-unit\n\nThis is required for Ruby 2.2.\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/lib/steam-condenser/version')\n\nGem::Specification.new do |s|\n s.name = 'steam-condenser'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add initializer for server connection\n"
},
{
"from": "human",
"value": "module RGBController\n class LampControl\n\n def fade\n raise NotYetImplemented\n end\n\n def set\n raise NotYetImplemented\n end\n end\nend\n"
},
{
"from": "gpt... | ruby | chosen |
[
{
"from": "system",
"value": "Update rake requirement from ~> 10.0 to ~> 12.3\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 open ended rake dependency.\n"
},
{
"from": "human",
"value": "require './lib/json/stream/version'\n\nGem::Specification.new do |s|\n s.name = 'json-stream'\n s.version = JSON::Stream::VERSION\n s.summary = %q[A streaming JSON parser that gener... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo: use del for removal of settings\n"
},
{
"from": "human",
"value": "module Carto\n class GCloudUserSettings\n\n REDIS_PREFIX = 'do_settings'\n\n STORE_ATTRIBUTES = [ :service_account, :bq_public_project,\n :gcp_execution_project, :bq_project, :b... | ruby | chosen |
[
{
"from": "system",
"value": "Convert data to json string\n"
},
{
"from": "human",
"value": "require \"rest_client\"\n\nmodule CatsocketClient\n class Publisher < Struct.new(:url, :api_key)\n\n def publish(channel, data)\n RestClient.post(url, guid: 0, api_key: api_key, channel: channel... | ruby | chosen |
[
{
"from": "system",
"value": "Remove incorrect usage of mesos options\n"
},
{
"from": "human",
"value": "default['marathon']['version'] = '0.10.1'\ndefault['marathon']['checksum'] = '0c4c78058a26194cf039614e3f88ab4746a534a372cc547e511972909397bf5b'\ndefault['marathon']['path'] = '/opt/marathon'\... | ruby | chosen |
[
{
"from": "system",
"value": ":anchor: Add an accessor for the content\n"
},
{
"from": "human",
"value": "module Discordrb::Webhooks\n # A class that acts as a builder for a webhook message object.\n class Builder\n def initialize(content: '', username: nil, avatar_url: nil, tts: false, fil... | ruby | chosen |
[
{
"from": "system",
"value": "Remove shortcut as Async is already included\n"
},
{
"from": "human",
"value": "module Fetch\n class Module\n include Callbacks\n include Async\n\n define_callback :fetch_if,\n :fetch,\n :before_fetch,\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use bundle_cmd in Foreman recipe\n"
},
{
"from": "human",
"value": "Capistrano::Configuration.instance(:must_exist).load do\n\n after 'deploy', 'foreman:export'\n after 'deploy', 'foreman:restart'\n\n namespace :foreman do\n\n desc \"Export upstart script\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update pod version to 1.2\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'le'\n s.version = '1.1'\n s.summary = 'Logentries logging for iOS'\n s.homepage = 'https://github.com/logentries/le_ios'\n s.author = { 'Logentries' => 'support@logent... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for empty env var\n"
},
{
"from": "human",
"value": "require \"nest\"\n\nmodule Ost\n TIMEOUT = ENV[\"OST_TIMEOUT\"].to_i || 2\n\n class Queue\n attr :key\n attr :backup\n\n def initialize(name)\n @key = Nest.new(:ost, redis)[name]\n @backup... | ruby | chosen |
[
{
"from": "system",
"value": "Remove check for legacy OKComputer namespace\n"
},
{
"from": "human",
"value": "require \"ok_computer/engine\"\nrequire \"ok_computer/configuration\"\nrequire \"ok_computer/check\"\nrequire \"ok_computer/check_collection\"\nrequire \"ok_computer/registry\"\n\n# and ... | ruby | chosen |
[
{
"from": "human",
"value": "Add the GFF file parser\n"
},
{
"from": "gpt",
"value": "module Gff\n class Record\n attr_accessor :seqid,\n :source,\n :type,\n :start,\n :end,\n :score,\n :str... | ruby | chosen |
[
{
"from": "system",
"value": "Support for multiple options through hash syntax.\n"
},
{
"from": "human",
"value": "require \"shellwords\"\n\nclass Pygmentize\n VERSION = \"0.0.3\"\n\n def self.bin\n \"/usr/bin/env python #{File.expand_path(\"../vendor/pygmentize.py\", File.dirname(__FILE__)... | ruby | chosen |
[
{
"from": "system",
"value": "Fix description in gemfile and bump version\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = \"lita-flip\"\n spec.version = \"0.0.1\"\n spec.authors = [\"Zac Stewart\"]\n spec.email = [\"zgstewart@gma... | ruby | chosen |
[
{
"from": "system",
"value": "Add container initialization to ROMConfig.initialize\n"
},
{
"from": "human",
"value": "module CherryTomato\n class ROMConfig\n attr_reader :container\n\n def initialize\n rom_cofig = ROM::Configuration.new(:sql, load_db_settings)\n end\n\n def rep... | ruby | chosen |
[
{
"from": "system",
"value": "Update the custom audiences fields\n"
},
{
"from": "human",
"value": "module FbGraph\n class CustomAudience < Node\n ATTRS = [\n :account_id,\n :approximate_count,\n :name,\n :origin_audience_id,\n :parent_audience_id,\n :parent_cat... | ruby | chosen |
[
{
"from": "system",
"value": "Replace report in Sentence when cloned\n"
},
{
"from": "human",
"value": "module LLT\n class Diff::Parser\n class Sentence\n include HashContainable\n\n container_alias :words\n\n def initialize(id)\n super\n @comparable_elements = %... | ruby | chosen |
[
{
"from": "system",
"value": "Fix validations of uniqueness so it always scope by saas_id on the scoped documents."
},
{
"from": "human",
"value": "module Saasable::ScopedDocument\n @scoped_documents = []\n \n def self.included klass\n @scoped_documents << klass unless @scoped_documents.in... | ruby | chosen |
[
{
"from": "human",
"value": "Add drg_cms:clear_session rake task to clear robots visits from session collection.\n"
},
{
"from": "gpt",
"value": "#--\n# Copyright (c) 2012+ Damjan Rems\n#\n# Permission is hereby granted, free of charge, to any person obtaining\n# a copy of this software and asso... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake, rspec and pry as dev dependencies\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'bickle/version'\n\nGem::Specification.new do |gem|... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Comments helper spec pending message\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\n# Specs in this file have access to a helper object that includes\n# the CommentsHelper. For example:\n#\n# describe CommentsHelper do\n# describe \"string concat\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gem name in gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nrequire File.expand_path('../lib/dump_parser/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'dump_parser'\n gem.version = DumpParser::VERSION.du... | ruby | chosen |
[
{
"from": "system",
"value": "Add resourceful route for Plan\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n\n get 'plans/index'\n\n get 'plans/show'\n\n root 'static_pages#home'\n get '/about', to: 'static_pages#about'\n get '/signup', to: 'users#new'\n post '/signup... | ruby | chosen |
[
{
"from": "system",
"value": "Update core gems. sigdump and tzinfo-data\n"
},
{
"from": "human",
"value": "dir 'core_gems'\ndownload \"bundler\", \"1.7.13\"\ndownload \"json\", \"1.8.2\"\ndownload \"msgpack\", \"0.5.11\"\ndownload \"cool.io\", \"1.3.0\"\ndownload \"http_parser.rb\", \"0.6.0\"\nd... | ruby | chosen |
[
{
"from": "system",
"value": "Add pry-nav as a 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 'calvin/version'\n\nGem::Specification.new do |gem|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make Pandoc test less brittle\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'helper'\n\nclass Nanoc::Filters::PandocTest < Nanoc::TestCase\n def test_filter\n if_have 'pandoc-ruby' do\n skip_unless_have_command 'pandoc'\n\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add flash projector (standalone) 12.0.0.77\n"
},
{
"from": "gpt",
"value": "class FlashPlayer < Cask\n url 'http://fpdownload.macromedia.com/pub/flashplayer/updaters/12/flashplayer_12_sa.dmg'\n homepage 'https://www.adobe.com/support/flashplayer/downloads.html'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix :unless_present option in Capp .gitignore edit to use regex\n"
},
{
"from": "human",
"value": "arguments = \"\"\nif yes?(\"Do you want to use a CIB based app?\")\n arguments = \"-t NibApplication\"\nelse\n arguments = \"-t Application\"\nend\n\nappName = ask(\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix field type in materials migration\n"
},
{
"from": "human",
"value": "class CreateMaterials < ActiveRecord::Migration[5.0]\n def change\n create_table :materials do |t|\n t.references :rightholder, index: true, foreign_key: { to_table: :rightholders }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Bump SwiftDate dependency in podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"TastyTomato\"\n s.version = \"0.34.0\"\n s.summary = \"The Tasty Tomato.\"\n s.description = <<-DESC \n Get all the awesome custom UI eleme... | ruby | chosen |
[
{
"from": "system",
"value": "Add single_quad definition for configuration profiles\n"
},
{
"from": "human",
"value": "class ConfigurationProfileDecorator < MiqDecorator\n def fonticon\n if id.nil?\n 'pficon pficon-folder-close'\n else\n 'fa fa-list-ul'\n end\n end\nend\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure we also install the xtrabackup scripts\n"
},
{
"from": "human",
"value": "include_recipe 'git'\n\nresources('git_client[default]').run_action(:install)\nversion = node['osl-mysql']['xtrabackuprb']['version']\n\ngit '/usr/local/src/xtrabackup-rb' do\n repo... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Sales Channel By Id\"\n\nThis reverts commit 7a0c194d52279a0565b5238c01c9aa51c28bb447.\n"
},
{
"from": "human",
"value": "module Vtex\n class SalesChannelResource < ResourceKit::Resource\n resources do\n action :sales_channel_list, 'GET /api/catalo... | ruby | chosen |
[
{
"from": "system",
"value": "Improve support for multi-ref lines\n\nOur multi-ref-lines look like one of the two following lines:\n\nrefs #123 #234 #345\nrefs #123, #234, #345\n\nThis patch ensures that only whitespace-separated numbers are left when\nthe string is to be interpreted into integers.\n"
},
... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to satisfy warnings.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'wrongtangulizer/version'\n\nGem::Specification.new do |spec|\n spec... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.