conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add HTTP gems to library\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'wink/version'\n\nGem::Specification.new do |spec|\n spec.name = \"win... | ruby | chosen |
[
{
"from": "system",
"value": "Add authors, email, summary and description again\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nGem::Specification.new do |spec|\n spec.name = 'refgs_dev_stanza'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove 'context.host.nil?' check for healtcheck endpoint\n\nWe're adding a Smokey test to check the healthcheck endpoint so\nthat we can enable CD on Bouncer: https://github.com/alphagov/smokey/pull/747\n\nWe therefore need the /healthcheck endpoint to be available\nregardless ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix pod spec lint warnings\n"
},
{
"from": "human",
"value": "require 'json'\npackage_json = JSON.parse(File.read('package.json'))\n\nPod::Spec.new do |s|\n\n s.name = \"react-native-onesignal\"\n s.version = package_json[\"version\"]\n s.summary... | ruby | chosen |
[
{
"from": "system",
"value": "Update the release date for v1.4.0.alpha1\n"
},
{
"from": "human",
"value": "::RUBY_PLATFORM = 'opal'\n::RUBY_ENGINE = 'opal'\n::RUBY_VERSION = '3.1.0'\n::RUBY_ENGINE_VERSION = '1.4.0.alpha1'\n::RUBY_RELEASE_DATE = '2021-12-20'\n::RUBY_PATCHLE... | ruby | chosen |
[
{
"from": "system",
"value": "Add documentation for the redcarpet options.\n"
},
{
"from": "human",
"value": "require 'redcarpet'\n\nmodule Udongo\n class Markdown\n def self.to_html(string, options = {})\n Redcarpet::Markdown.new(Redcarpet::Render::HTML, options).render(string.to_s).ht... | ruby | chosen |
[
{
"from": "system",
"value": "Remove puts from spec file\n\nThis was left over\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"rails_helper\"\n\nRSpec.describe \"alchemy/admin/attachments/show.html.erb\" do\n let(:attachment) do\n create(:alchemy_attachment)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Return JSON to naive HTTP clients like browsers or curl."
},
{
"from": "human",
"value": "require 'grape'\nrequire 'grape-msgpack'\n\nmodule Berkshelf::API\n module Endpoint\n class Base < Grape::API\n # Force inbound requests to be JSON\n def call(env... | ruby | chosen |
[
{
"from": "system",
"value": "Test for the one port\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe VendingMachine do\n\n before(:each) do\n @arduino = instance_double(\"ArduinoFirmata::Arduino\")\n allow(ArduinoFirmata).to receive(:connect).with(\"/dev/ttyUSB1\", bps... | ruby | chosen |
[
{
"from": "system",
"value": "Fix previous commit to support ruby 1.8"
},
{
"from": "human",
"value": "module EventMachine\n module WebSocket\n class MaskedString < String\n # Read a 4 bit XOR mask - further requested bytes will be unmasked\n def read_mask\n raise \"MaskedSt... | ruby | chosen |
[
{
"from": "system",
"value": "Address violation of Rubocop Rails/ReadWriteAttribute\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Spree\n class StockItem < ActiveRecord::Base\n belongs_to :stock_location, class_name: 'Spree::StockLocation'\n belongs_to :varian... | ruby | chosen |
[
{
"from": "system",
"value": "Add a note on load order and column type guessing\n"
},
{
"from": "human",
"value": "require \"incsv/column_type\"\n\nrequire \"incsv/types/date\"\nrequire \"incsv/types/currency\"\nrequire \"incsv/types/integer\"\nrequire \"incsv/types/decimal\"\nrequire \"incsv/ty... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as dev dependency.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/bundler_issue_report/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Peter Jaros\"]\n gem.email = [\"... | ruby | chosen |
[
{
"from": "system",
"value": "Add lines around declaration of `private`\nFix Layout/EmptyLinesAroundAccessModifier\n"
},
{
"from": "human",
"value": "module Memorylogic\n def self.included(klass)\n klass.class_eval do\n before_action :log_memory_usage\n after_action :log_memory_usa... | ruby | chosen |
[
{
"from": "system",
"value": "Update Fluid to version 1.7.2\n"
},
{
"from": "human",
"value": "class Fluid < Cask\n url 'http://fluidapp.com/dist/Fluid_1.7.1.zip'\n homepage 'http://fluidapp.com/'\n version '1.7.1'\n sha1 '052e8655cf07aeecdbdf274c179cf9faa8fbbf36'\n link 'Fluid.app'\nend\n"... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Workaround for Rails 5, where LIMIT...\"\n\nThis reverts commit 6823e7defb45dfd86d5258b40d6f82482d1ef451.\n\nOriginally implemented in\nhttps://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21839, but an\nerror was reported in\nhttps://gitlab.com/gitlab-org/gitlab-ce/... | ruby | chosen |
[
{
"from": "system",
"value": "Add check for SubjectKeyId in all certs\n\nThis should help us catch any regressions in bosh-cli that cause these\nto no longer be generated.\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\nrequire 'yaml'\nrequire 'tempfile'\nrequire 'openssl'\n\nALERT_DAYS ... | ruby | chosen |
[
{
"from": "system",
"value": "Enable DNS proxy (in NAT mode) by default\n"
},
{
"from": "human",
"value": "module Vagrant\n module Action\n module VM\n # This middleware enforces some sane defaults on the virtualbox\n # VM which help with performance, stability, and in some cases\n... | ruby | chosen |
[
{
"from": "system",
"value": "Configure through initializer instead of yml\n"
},
{
"from": "human",
"value": "module WPDB\n class << self\n attr_accessor :configuration\n\n def configure\n self.configuration ||= Configuration.new\n yield(configuration) if block_given?\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix syntax errors in regexp support.\n"
},
{
"from": "human",
"value": "module Multitenancy\n \n class Filter\n \n def initialize(app)\n @app = app\n end\n \n def call(env)\n tenant = Tenant.new tenant_id, sub_tenant_id\n Multitenancy... | ruby | chosen |
[
{
"from": "system",
"value": "Allow the creator_class to be explicitly set\n"
},
{
"from": "human",
"value": "module Plus2Seeder\n\n module Seeder\n\n class Base\n\n # These seeders will be run before the subclass's seeder\n def self.dependencies(dependency_list=nil)\n @depe... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing variable interpolation in ExportResult class\n"
},
{
"from": "human",
"value": "module ExportService\n\n class ExportResult\n\n attr_reader :content_path, :item_name, :format\n\n def initialize(opts={})\n @content_path = opts[:content_path]\n... | ruby | chosen |
[
{
"from": "system",
"value": "Change gem name to can-do\n"
},
{
"from": "human",
"value": "lib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nGem::Specification.new do |spec|\n spec.name = \"can_do\"\n spec.version = \"0.1.0\... | ruby | chosen |
[
{
"from": "system",
"value": "Make answer relation of Comment readonly\n"
},
{
"from": "human",
"value": "# Model storing comments mentors made for answers.\nclass Comment < ActiveRecord::Base\n\n hobo_model # Don't put anything above this\n\n fields do\n content HoboFields::MarkdownString,... | ruby | chosen |
[
{
"from": "system",
"value": "Add more strict top ordering by user updated at time.\n"
},
{
"from": "human",
"value": "class Dolphin < ActiveRecord::Base\n belongs_to :from, class_name: :User, counter_cache: :from_count\n belongs_to :to, class_name: :User, counter_cache: :to_count\n\n validat... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error if merging scenario task and external task\n"
},
{
"from": "human",
"value": "require 'yaml'\n\nmodule Rundock\n module Builder\n class TaskBuilder < Base\n DEFAULT_TASKS_FILE_PATH = './tasks.yml'\n\n def build(scenario_tasks)\n tasks ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure those methods are actually private\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nFakeActor = Struct.new(:thing, :block) do\n include LolConcurrency::Actor\n\n def call(n)\n block.call(n)\n end\n\n def call_with_block(n, &blk)\n blk.... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"chore: remove pid path (doesnt seem to work)\"\n\nThis reverts commit 36fae8ef2f23e4941a6e7cbfaf944f233604d2c0.\n"
},
{
"from": "human",
"value": "default['solr']['version'] = '5.5.5'\ndefault['solr']['host'] = 'archive.apache.org'\ndefault['solr']['checksu... | ruby | chosen |
[
{
"from": "system",
"value": "Fix require paths after 82b770c\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = \"lumberjack-dsl\"\n s.version = \"0.0.2\"\n s.authors = [\"Ryan Allen\", \"Steve Hodgkiss\", \"John Barton\", \"... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `create_tables` rake task - support nested directories for `model_dir`\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'dynamoid'\nrequire 'dynamoid/tasks/database'\n\nnamespace :dynamoid do\n desc 'Creates DynamoDB tables, one for e... | ruby | chosen |
[
{
"from": "system",
"value": "Remove list-ops from OCaml track\n\nThe meta-data is missing, so we can't serve a README.\n"
},
{
"from": "human",
"value": "class Exercism\n class OcamlCurriculum\n def slugs\n # Pretty simple\n %w(\n bob list-ops word-count anagram beer-song n... | ruby | chosen |
[
{
"from": "system",
"value": "Add option to specify embeddable name\n"
},
{
"from": "human",
"value": "module ViewHelpers\n def embed_video(embeddable, width, height)\n name = embeddable.embeddable_name.to_s\n from = embeddable.embeddable_from\n\n attributes = { id: embeddable.send(\"#... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Replace classify with eval\"\n\nThis reverts commit 5351a2604f8b2e36b48c697dc311dff6f9b71ba8.\n"
},
{
"from": "human",
"value": "require 'active_support/inflector'\n\nmodule JsonModel\n module Associations\n def initialize(attrs = {})\n super(attrs... | ruby | chosen |
[
{
"from": "system",
"value": "Use static file lists because otherwise gem doesn't build on Github.\n\nSigned-off-by: Fingertips <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@fngtps.com>"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"conversions\"\n s.version = \"1... | ruby | chosen |
[
{
"from": "system",
"value": "Remove commented code introduced in 843dd6e (whoops)"
},
{
"from": "human",
"value": "require 'json'\n\nrequire 'grape'\n\nrequire 'ledgerdary/statements/store'\n\nmodule Ledgerdary\n module API\n class Accounts < Grape::API\n format :json\n\n content_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the spelling of METRICS_EMAIL\n"
},
{
"from": "human",
"value": "require 'sinatra'\nrequire 'yajl'\nrequire 'active_support/core_ext/hash'\nrequire 'dalli'\n\nrequire 'metriks_log_webhook/librato_metrics'\n\nmodule MetriksLogWebhook\n class App < Sinatra::Base\... | ruby | chosen |
[
{
"from": "system",
"value": "Use camelize instead of classify\nComponents are singularized otherwise\n"
},
{
"from": "human",
"value": "module MountainView\n class Presenter\n class_attribute :_attributes, instance_accessor: false\n self._attributes = {}\n\n attr_reader :slug, :proper... | ruby | chosen |
[
{
"from": "system",
"value": "Add user permissions to our strategy\n"
},
{
"from": "human",
"value": "require 'omniauth-oauth2'\nrequire 'multi_json'\n\nclass OmniAuth::Strategies::Gds < OmniAuth::Strategies::OAuth2\n uid { user['uid'] }\n\n info do\n {\n name: user['name'],\n ema... | ruby | chosen |
[
{
"from": "system",
"value": "Edit migration to handle missing model name\n\n+ Better approach would have been to do it this way the first time around\n+ :confused: :confused:\n"
},
{
"from": "human",
"value": "class MigrateProgressNotesToEventNotes < ActiveRecord::Migration\n def change\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure count is integer\n"
},
{
"from": "human",
"value": "module RailsDba\n class TableEntries\n\n attr_reader :table\n attr_accessor :current_page, :offset, :per_page\n\n delegate :each, :to => :load\n\n def initialize(table)\n @table = table\... | ruby | chosen |
[
{
"from": "system",
"value": "Add an attribute for casks to install\n"
},
{
"from": "human",
"value": "#\n# Author:: Joshua Timberman (<jtimberman@opscode.com>)\n# Author:: Graeme Mathieson (<mathie@woss.name>)\n# Cookbook Name:: homebrew\n# Attributes:: default\n#\n# Copyright 2011-2013, Opscod... | ruby | chosen |
[
{
"from": "system",
"value": "Make default attributes keys same as those expected in recipe\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: ceph\n# Attributes:: radosgw\n#\n# Copyright 2011, DreamHost Web Hosting\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# ... | ruby | chosen |
[
{
"from": "human",
"value": "Create worker to check on team building products\n"
},
{
"from": "gpt",
"value": "class GraduateFromTeamBuilding\n include Sidekiq::Worker\n\n def perform\n expired = Product.where('started_teambuilding_at < ?', 30.days.ago).\n where(greenlit_at: nil)\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add an idiot check on .slugignore\n"
},
{
"from": "human",
"value": "require \"language_pack\"\nrequire \"language_pack/rack\"\n\n# Octopress Language Pack.\nclass LanguagePack::Octopress < LanguagePack::Rack\n\n # detects if this is a valid Octopress site by seein... | ruby | chosen |
[
{
"from": "system",
"value": "Add initializer to add hogan to precompile\n\nUsing `render_mustache_templates` will add our hogan.js to the app via a\nscript tag. In newer versions of rails using newer versions of\nsprockets-rails we must add the hogan.js to assets.precompile or rails\nwill complain and not... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Use the highest DM we can.\"\n\nThis reverts commit c09a074fcfcfd4e416553b07f9acbb9491890b0e.\n\n1.1.1 will keep a dependency on DM 0.10.x, and will only get bugfixes\n"
},
{
"from": "human",
"value": "module Merb\n module DataMapper\n VERSION ... | ruby | chosen |
[
{
"from": "system",
"value": "Update URLs and response json structure."
},
{
"from": "human",
"value": "require 'omniauth-oauth2'\n\nmodule OmniAuth\n module Strategies\n class Aol < OmniAuth::Strategies::OAuth2\n option :name, 'aol'\n\n option :client_options, {\n :site => ... | ruby | chosen |
[
{
"from": "system",
"value": "Add uninstall stanza for TotalSpaces\n"
},
{
"from": "human",
"value": "class Totalspaces < Cask\n url 'http://downloads.binaryage.com/TotalSpaces-1.2.11.zip'\n homepage 'http://totalspaces.binaryage.com/'\n version '1.2.11'\n sha256 'fd54c6ea092f6fae2035745959f... | ruby | chosen |
[
{
"from": "system",
"value": "Make AV dependency for ActionMailer\n"
},
{
"from": "human",
"value": "version = File.read(File.expand_path('../../RAILS_VERSION', __FILE__)).strip\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'actionmailer'\n s.version... | ruby | chosen |
[
{
"from": "system",
"value": "Include X-Avalara-Client in each request\n"
},
{
"from": "human",
"value": "require 'faraday_middleware'\n\nmodule AvaTax\n\n module Connection\n private\n\n def connection\n options = {\n :headers => {'Accept' => \"application/json; charset=utf-8... | ruby | chosen |
[
{
"from": "system",
"value": "Replace `render \"public/404.html\"` with `render file: \"public/404.html\"`\n\nThis change is backward-compatible, so it shouldn't break existing any\nexisting app.\n\nPreviously, calling render \"foo/bar\" in a controller action was\nequivalent to render file: \"foo/bar\". In... | ruby | chosen |
[
{
"from": "system",
"value": "Move register to correct location"
},
{
"from": "human",
"value": "require 'sinatra'\nmodule Sequent\n module Web\n module Sinatra\n # Allows for easy integration with Sinatra apps.\n # Provides:\n #\n # +Sequent::Core::Helpers::UuidHelper+... | ruby | chosen |
[
{
"from": "system",
"value": "Create class Serverspec::TestCase inherits Test::Unit::TestCase\n"
},
{
"from": "human",
"value": "require 'test/unit'\nrequire 'specinfra'\n\nrequire 'serverspec/helper/type'\nextend Serverspec::Helper::Type\nclass Test::Unit::TestCase\n extend Serverspec::Helper:... | ruby | chosen |
[
{
"from": "human",
"value": "Add TimeEntry class for Beetil Client\n"
},
{
"from": "gpt",
"value": "module Beetil\n class TimeEntry < Beetil::Base\n # Beetil::Base has a buggy implementation and cannot handle two word classes properly, until that's fixed...\n def self.model_name\n @_... | ruby | chosen |
[
{
"from": "system",
"value": "Implement the Rack protocol correctly.\n"
},
{
"from": "human",
"value": "module Slosilo\n module Rack\n class Middleware\n class BadEncryption < SecurityError\n end\n\n def initialize app, opts = {}\n @app = app\n @encryption_requir... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec to check if file has chapters.\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\nrequire 'voice_chapters'\n\ndescribe Voice_Chapters do\n\n it \"has a run method\" do\n text = \"In the beginning, God created the heavens and the earth.\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake task to destroy metadata for base paths\n"
},
{
"from": "human",
"value": "require 'rummager'\n\ndesc \"Apply metadata from the json file\"\ntask :tag_metadata do\n Indexer::MetadataTagger.amend_all_metadata\nend\n"
},
{
"from": "gpt",
"value":... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"confirm that the exception notifier works\"\n\nThis reverts commit a5cee62674d9eac834bc7304215f17fd1790485b.\n"
},
{
"from": "human",
"value": "module Travis\n class Logs\n class Handler\n class Log < Handler\n def handle\n info \"... | ruby | chosen |
[
{
"from": "system",
"value": "Undo relative path to thor\n"
},
{
"from": "human",
"value": "# require 'oj'\n# Local gem version\nrequire_relative '../../thor/lib/thor'\nrequire 'debugger'\n# require 'thor'\n\nrequire_relative 'jeera/version'\nrequire_relative 'jeera/config'\nrequire_relative 'je... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"fixed default url for fb thumbs\"\n\nThis reverts commit a4aa63ff82a401c35b5aaf194656ffc475618c4d.\n"
},
{
"from": "human",
"value": "# -*- encoding : utf-8 -*-\n\nclass PhotoUploader < CarrierWave::Uploader::Base\n include CarrierWave::MiniMagick\n inclu... | ruby | chosen |
[
{
"from": "system",
"value": "Add railtie and rails to gem requires\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire \"tytus/version\"\nrequire \"tytus/compatibility\"\nrequire \"tytus/controller_extensions\"\nrequire \"tytus/view_extensions\"\n\nmodule Tytus\n\n if defined? Rail... | ruby | chosen |
[
{
"from": "system",
"value": "Fix conditional for skipping posted values\n"
},
{
"from": "human",
"value": "require 'trello' #it is not required by default for some reason\n\nclass BeeminderWorker\n include Sidekiq::Worker\n\n def perform\n Goal.joins(:provider).each do |goal|\n calcul... | ruby | chosen |
[
{
"from": "system",
"value": "Update call route handler to use call context\n"
},
{
"from": "human",
"value": "# Calls an app route and returns a response, just like an HTTP request!\n#\nPakyow::Realtime.handler :'call-route' do |message, session, response|\n path, qs = message['uri'].split('?'... | ruby | chosen |
[
{
"from": "system",
"value": "Remove commented out old example code from RoQua\n"
},
{
"from": "human",
"value": "module Healthy\n module A19\n class CorrectPatientCheck\n attr_reader :patient_id, :record\n\n def initialize(patient_id, record)\n @patient_id = patient_id\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add additional fields to Inventory Number record\n"
},
{
"from": "human",
"value": "module NetSuite\n module Records\n class InventoryNumber\n include Support::Fields\n include Support::RecordRefs\n include Support::Records\n include Support:... | ruby | chosen |
[
{
"from": "system",
"value": "Update to use the new nav config syntax.\n"
},
{
"from": "human",
"value": "Islay::Engine.extensions.register do |e|\n e.namespace :islay_shop\n\n e.admin_styles true\n e.admin_scripts true\n\n # Navigation\n e.nav_entry('Products', :catalogue)\n e.nav_entry('... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused (for now) parameters on the SMS send and add a link to docs\n"
},
{
"from": "human",
"value": "module Facebooker\n class Mobile\n def initialize(session)\n @session = session\n end\n \n # Used to determine whether the user identified by... | ruby | chosen |
[
{
"from": "system",
"value": "Move procps binaries to the right location\n"
},
{
"from": "human",
"value": "name \"procps-ng\"\ndefault_version \"3.3.9\"\n\nsource :url => \"http://downloads.sourceforge.net/project/#{name}/Production/#{name}-#{version}.tar.xz\",\n :md5 => '0980646fa25e0be5... | ruby | chosen |
[
{
"from": "system",
"value": "Use RESTful paths in User Agent string\n"
},
{
"from": "human",
"value": "module Gitlactica\n module Config\n CONFIG_DIR = File.expand_path('../../../config', __FILE__)\n\n GITHUB_API_URL = ENV.fetch('GITHUB_API_URL') { \"https://api.github.com\" }\n U... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue where PROCESS_ACTIVE_ELASTIC_JOBS env var would not allow TRUE\n"
},
{
"from": "human",
"value": "module ActiveElasticJob\n class Railtie < Rails::Railtie\n config.active_elastic_job = ActiveSupport::OrderedOptions.new\n config.active_elastic_job.pr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ruby syntax for 2.3\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Ridgepole\n VERSION = '0.8.0.rc1'.freeze\nend\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nmodule Ridgepole\n VERSION = '0.8.0.rc1'\... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to exclude GitHub repositories\n"
},
{
"from": "human",
"value": "require 'octokit'\n\nrequire_relative 'performers/github_repository'\nrequire_relative 'performers/github_wiki'\nrequire_relative 'performers/github_gist'\n\nmodule BackupRepos\n class Ba... | ruby | chosen |
[
{
"from": "human",
"value": "Add a recipe to install the Singularity Executor and its config files\n"
},
{
"from": "gpt",
"value": "include_recipe 'singularity::build'\n\n[\"#{node[:singularity][:home]}/bin\",\n \"#{node[:singularity][:data_dir]}/executor-tasks\"].each do |dir|\n directory dir ... | ruby | chosen |
[
{
"from": "system",
"value": "Work with Chef 12 load_prior_resource\n"
},
{
"from": "human",
"value": "require 'chef/provisioning'\n\nclass Chef::Resource::FogKeyPair < Chef::Resource::LWRPBase\n self.resource_name = 'fog_key_pair'\n\n def initialize(*args)\n super\n @driver = run_contex... | ruby | chosen |
[
{
"from": "system",
"value": "Fix loading of native extension for new(er) Ruby/Bundler versions\n"
},
{
"from": "human",
"value": "require 'ipaddr'\nbegin\n require File.join(File.dirname(__FILE__), 'rb_getifaddrs')\nrescue LoadError\n require File.join(File.dirname(__FILE__), '..', 'rb_getifa... | ruby | chosen |
[
{
"from": "system",
"value": "Add original categories labels to pkg spreadsheet"
},
{
"from": "human",
"value": "namespace :downloads do\n\n desc \"make downloadable for packages\"\n task packages: :environment do\n book = Spreadsheet::Workbook.new\n\n sheet = book.create_worksheet name:... | ruby | chosen |
[
{
"from": "system",
"value": "Send from our new domain\n"
},
{
"from": "human",
"value": "class ApplicationMailer < ActionMailer::Base\n default from: \"larp-library@aegames.org\"\n layout 'mailer'\nend\n"
},
{
"from": "gpt",
"value": "class ApplicationMailer < ActionMailer::Base\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove duplicate attr_accessor in Attribute\n"
},
{
"from": "human",
"value": "require 'wheelie/element'\n\nmodule Wheelie\n class Attribute < Element\n\n attr_accessor :name, :type, :default, :assignable_values, :allow_blank, :options\n\n def initialize(*arg... | ruby | chosen |
[
{
"from": "system",
"value": "Allow passing options into wicked_pdf_stylesheet_link_tag\n"
},
{
"from": "human",
"value": "module WickedPdfHelper\n def wicked_pdf_stylesheet_link_tag(style)\n stylesheet_link_tag style, \"file://#{Rails.root.join('public','stylesheets',style)}\"\n end\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Reduce probability of duplicate names\n"
},
{
"from": "human",
"value": "require 'elite_universe/planet'\n\nmodule HiveMindTv\n class Plugin < ActiveRecord::Base\n has_one :device, as: :plugin\n\n def self.create(*args)\n if args[0] and args[0].keys.incl... | ruby | chosen |
[
{
"from": "system",
"value": "Update React Native documentation (0.33)\n"
},
{
"from": "human",
"value": "module Docs\n class ReactNative < React\n self.name = 'React Native'\n self.slug = 'react_native'\n self.type = 'react'\n self.release = '0.32'\n self.base_url = 'https://fac... | ruby | chosen |
[
{
"from": "system",
"value": "Add reader for the source_url variable.\n"
},
{
"from": "human",
"value": "require 'forwardable'\nrequire 'fpm/cookery/source_handler/curl'\nrequire 'fpm/cookery/source_handler/svn'\nrequire 'fpm/cookery/source_handler/git'\nrequire 'fpm/cookery/log'\n\nmodule FPM\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add all logic to 'help' command\n"
},
{
"from": "human",
"value": "module Nehm\n class HelpCommand < Command\n end\nend\n"
},
{
"from": "gpt",
"value": "module Nehm\n class HelpCommand < Command\n\n SPACES_BTW_NAME_AND_DESC = 5\n\n def execute\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add .sty files to the listener\n\n[#58484098 #59089918]\n"
},
{
"from": "human",
"value": "require 'listen'\n\nmodule Polytexnic::Commands::Server\n include Polytexnic::Output\n include Polytexnic::Utils\n attr_accessor :no_listener\n extend self\n\n def listen... | ruby | chosen |
[
{
"from": "system",
"value": "Change gem version to 0.2\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'fiware-orion-geo'\n s.version = '0.1.1'\n s.date = '2014-08-03'\n s.summary = 'Interface for Orion server'\n s.description = 'Gives you ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for recursion issue stemming from alias method chain\n"
},
{
"from": "human",
"value": "module SpreePriceSlashes\n class Engine < ::Rails::Engine\n\n config.autoload_paths += %W(#{config.root}/lib)\n\n def self.activate\n Dir.glob Engine.root.join(\"... | ruby | chosen |
[
{
"from": "system",
"value": "Support passing in an error handler in case SerDe fails\n"
},
{
"from": "human",
"value": "module Streamingly\n\n class SerDeIterable\n def initialize(iterable)\n @iterable = iterable\n end\n\n def each\n @iterable.each do |line|\n yield S... | ruby | chosen |
[
{
"from": "system",
"value": "Set swagger version to 2.0\n"
},
{
"from": "human",
"value": "module SwaggerYard\n class Configuration\n attr_accessor :swagger_spec_base_path, :api_base_path, :api_path\n attr_accessor :swagger_version, :api_version\n attr_accessor :title, :description\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a spec for nested data in an array with a guarded rule\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'dry/validation/contract'\n\nRSpec.describe Dry::Validation::Contract, '.rule' do\n subject(:contract) { contract_class.new }\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for file name (\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'bootstrap/wysiwyg/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Use better idioms for this.\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.dirname(__FILE__))\nrequire \"dolphy/core\"\n\nclass DolphyApplication\n# This returns a DolphyApplication defined by what is passed in the block.\n#\n# An application could for i... | ruby | chosen |
[
{
"from": "system",
"value": "Add fix for double-run of bundler/setup.\n"
},
{
"from": "human",
"value": "#! /usr/bin/env ruby\n\nrequire 'rubygems'\nrequire 'bundler/setup'\n\nrequire 'erubis'\nrequire 'pry'\n\nrequire 'erbtex/version'\nrequire 'erbtex/command_line'\nrequire 'erbtex/find_binary... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Upgrade Couchbase Server.app (Community) to v3.0.4\"\n"
},
{
"from": "human",
"value": "cask :v1 => 'couchbase-server-community' do\n version '3.0.4'\n sha256 '9a395c960b28ae0234d211b6e78d12599e54623eccbd1a5d001a873965fd71cb'\n\n url \"http://packages.co... | ruby | chosen |
[
{
"from": "system",
"value": "Update default drawing tool, config var.\n\nAs discussed here: https://github.com/concord-consortium/lara/commit/2f32727abf\n"
},
{
"from": "human",
"value": "# First portal listed is the \"Default Authentication Portal\"\nENV['CONCORD_CONFIGURED_PORTALS'] ||... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing test due to incorrect stub\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nmodule RabbitFeed\n describe Producer do\n describe '.publish' do\n let(:event_name) { 'event_name' }\n before do\n allow(RabbitFeed::Producer).to... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a typo in password routing spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Password routes' do\n it 'routes to /password/reset' do\n expect(get: '/password/reset').to route_to(\n controller: 'password', action: 'new')\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix reference lines in topics migration\n"
},
{
"from": "human",
"value": "class CreateTopics < ActiveRecord::Migration\n def change\n create_table :topics do |t|\n t.string :name\n t.language :references\n t.level :references\n\n t.timestamp... | ruby | chosen |
[
{
"from": "system",
"value": "Update Event migration to require title, description, and datetime as null: false\n"
},
{
"from": "human",
"value": "class CreateEvents < ActiveRecord::Migration\n def change\n create_table :events do |t|\n t.references :user, index: true, foreign_key: true... | ruby | chosen |
[
{
"from": "system",
"value": "Add nokogiri as dependency to gemspec for http hax.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'rightscale-cli'\n s.version = '0.1.1'\n s.date = '2013-11-15'\n s.summary = \"rightscale-cli\"\n s.description... | ruby | chosen |
[
{
"from": "system",
"value": "Add fonts to precompile path."
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\nrequire 'rails/all'\n\n# Require the gems listed in Gemfile, including any gems\n# you've limited to :test, :development, or :production.\nBundler.require... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.