conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add monkey-patch for StubSocket so that specs would pass\n"
},
{
"from": "human",
"value": "require \"simplecov\"\nrequire 'coveralls'\n\nSimpleCov.formatter = Coveralls::SimpleCov::Formatter\nSimpleCov.start\n\nrequire File.expand_path(\"../lib/eventify\", __dir__)... | ruby | chosen |
[
{
"from": "system",
"value": "Reset global connection pool on tests\n"
},
{
"from": "human",
"value": "if ENV[\"CI\"]\n require \"simplecov\"\n require \"coveralls\"\n SimpleCov.formatter = Coveralls::SimpleCov::Formatter\n SimpleCov.start do\n add_filter \"spec\"\n end\nend\n\nrequire \... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec helpers to open page in web browser for debugging\n\nObvious caveat: this will only work if you are running the tests on your\nlocal machine, and particularly, it depends on Mac OS X (for the \"open\"\ncommand).\n"
},
{
"from": "human",
"value": "require 'r... | ruby | chosen |
[
{
"from": "system",
"value": "Update the version of reality-naming in use\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\n\nGem::Specification.new do |s|\n s.name = %q{buildr_plus}\n s.version = '1.0.0'\n s.p... | ruby | chosen |
[
{
"from": "human",
"value": "Add a test for simple-case fingerprinting.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Winnow::Fingerprinter do\n describe '#fingerprints' do\n it 'hashes strings to get keys' do\n # if t = k = 1, then each character will become a fing... | ruby | chosen |
[
{
"from": "system",
"value": "Update tests for Coveralls coverage\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Markwiki do\n it 'has a version number' do\n expect(Markwiki::VERSION).not_to be nil\n end\n\n it 'does something useful' do\n expect(true).to eq(true)\... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor and add rspec tests\n"
},
{
"from": "human",
"value": "require 'lib/nif_generator'\n\ndescribe \"NifGenerator\" do\n it \"should validade a valid Nif\" do\n valid_nif = '502874210'\n nif_generator = NifGenerator.instance\n result = NifGenerator.in... | ruby | chosen |
[
{
"from": "system",
"value": "Add system properties to snoop\n"
},
{
"from": "human",
"value": "class SnoopController < ApplicationController\n def index\n @snoop = {}\n @snoop[:env] = request.env\n @snoop[:remote_addr] = request.remote_addr\n @snoop[:remote_ip] ... | ruby | chosen |
[
{
"from": "system",
"value": "Add the ability to specify where the maintenance file comes from.\n"
},
{
"from": "human",
"value": "namespace :web do\n desc 'Enable web site'\n task :enable, :roles => :app, :except => { :no_release => true } do\n run \"rm #{current_path}/public/system/mainte... | ruby | chosen |
[
{
"from": "system",
"value": "Use current_page.url instead of current_page.path for og:url\n"
},
{
"from": "human",
"value": "module MetaHelpers\n def site_host\n 'https://www.helloper.com'\n end\n\n def canonical_url\n host = site_host + '/'\n path = current_page.path.gsub('index.ht... | ruby | chosen |
[
{
"from": "system",
"value": "Fix when form empty submit.\n"
},
{
"from": "human",
"value": "module OmniAuth\n module Strategies\n class Local\n include OmniAuth::Strategy\n\n option :user_key, :email\n option :user_secret, :password\n\n def request_phase\n redirec... | ruby | chosen |
[
{
"from": "system",
"value": "Fix parameter passing to Comic Vine API url\n"
},
{
"from": "human",
"value": "class ComicVine\n def initialize()\n end\n\n def search(resource_type, query)\n\n request_url = \"http://comicvine.gamespot.com/api/search/\"\n\n params = {\n \"api_key\" =>... | ruby | chosen |
[
{
"from": "system",
"value": "Use common class to manage apache service in beaker job\n\nDepends-on: https://review.opendev.org/#/c/745246/\nChange-Id: I299640aed47071381efb4dfb95f77245223b7dce\n"
},
{
"from": "human",
"value": "require 'spec_helper_acceptance'\n\ndescribe 'basic gnocchi' do\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add same hack as UI to make rake routes output mo' pretty\n"
},
{
"from": "human",
"value": "require 'rack'\nrequire 'flipper'\nrequire 'flipper/api/middleware'\nrequire 'flipper/api/json_params'\nrequire 'flipper/api/setup_env'\nrequire 'flipper/api/actor'\n\nmodul... | ruby | chosen |
[
{
"from": "system",
"value": "Allow GET request for omniauth gem\n\nLogins are failing on Chrome and it seems due to receiving `GET`\nrequests. This is an attempt to get our logins working again.\n"
},
{
"from": "human",
"value": "OmniAuth.config.logger = Rails.logger\n\nRails.application.config... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug in the UI where work weeks wouldn't update, ID has to be set on initial page load\n"
},
{
"from": "human",
"value": "class User < ActiveRecord::Base\n attr_accessible :name, :email, :password, :password_confirmation\n \n has_secure_password\n \n has_and... | ruby | chosen |
[
{
"from": "system",
"value": "Remove has_many to reflect changes to votes table\n"
},
{
"from": "human",
"value": "class User < ActiveRecord::Base\n belongs_to :group\n has_many :made_requests, class_name: 'Request', foreign_key: 'requester_id'\n has_many :fulfilled_requests, clas... | ruby | chosen |
[
{
"from": "system",
"value": "Validate password length only on create\n"
},
{
"from": "human",
"value": "class User < ActiveRecord::Base\n has_secure_password\n geocoded_by :zip_code\n before_validation :geocode\n\n validates :username, presence: true, uniqueness: true\n validates :first_na... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec with proper dependency settings\n"
},
{
"from": "human",
"value": "require File.join(File.expand_path(File.dirname(__FILE__)), 'lib', 'version')\n\nGem::Specification.new do |s|\n s.name = 'mandrill-delivery-method'\n s.summary = 'Add M... | ruby | chosen |
[
{
"from": "system",
"value": "Change json dependency to use add_dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path(\"../lib/pdf_ravager/version\", __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"pdf_ravager\"\n s.version = PDFRa... | ruby | chosen |
[
{
"from": "system",
"value": "Fix migration typo to be able to rollback if needed"
},
{
"from": "human",
"value": "Sequel.migration do\n up do\n drop_column :users, :ghost_tables_enabled\n end\n \n down do\n alter_table :users do\n add_column :users, :ghost_tables_enabled, :boolea... | ruby | chosen |
[
{
"from": "system",
"value": "Remove AS::Concern extension from Testing::TaggedLogging\n"
},
{
"from": "human",
"value": "require 'active_support/concern'\n\nmodule ActiveSupport\n module Testing\n module TaggedLogging\n extend ActiveSupport::Concern\n\n attr_writer :tagged_logger\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix MultiLogger spec to use dummy logger.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nrequire 'spec_helper'\n\ndescribe Agharta::UserStream do\n before do\n @context = DummyRecipe.new\n @stream = Agharta::UserStream.new(@context)\n @clien... | ruby | chosen |
[
{
"from": "human",
"value": "Add rspec test for Class['bmclib'].\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env rspec\n\nrequire 'spec_helper'\n\ndescribe 'bmclib', :type => 'class' do\n\n context 'on a RedHat osfamily' do\n let(:params) {{}}\n let :facts do {\n :osfamily => ... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for unicode request body length header\n\nRelated to #129\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe HTTP::Request::Writer do\n describe '#initalize' do\n def construct(body)\n HTTP::Request::Writer.new(nil, body, [], '')\... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for instantiating subclasses of Fiber\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\n\nwith_feature :fiber do\n describe \"Fiber.new\" do\n it \"creates a fiber from the given block\" do\n fiber = Fib... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for older versions of rails without the hash compact method"
},
{
"from": "human",
"value": "module Grapple\r\n\tmodule Components\r\n\t\t# Generates paging links using will_paginate.\r\n\t\t#\r\n\t\t# @example \r\n\t\t# <%= table_for(columns, Post.paginate(pa... | ruby | chosen |
[
{
"from": "system",
"value": "Make the code easier to read.\n"
},
{
"from": "human",
"value": "module Shoulda # :nodoc:\n module Matchers\n module ActiveModel # :nodoc:\n module Helpers\n def pretty_error_messages(obj) # :nodoc:\n obj.errors.map do |attribute, model|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bundler from the development dependencies. It lives outside of gemspecs\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'chamber/version'\n\nGem::... | ruby | chosen |
[
{
"from": "system",
"value": "Add crons to check env\n"
},
{
"from": "human",
"value": "# Use this file to easily define all of your cron jobs.\n#\n# It's helpful, but not entirely necessary to understand cron before proceeding.\n# http://en.wikipedia.org/wiki/Cron\n\n# Example:\n#\n# set :outpu... | ruby | chosen |
[
{
"from": "system",
"value": "Tweak coercions in the input sanitizers\n"
},
{
"from": "human",
"value": "#------------------------------------------------------------------------------\n#\n# NumericSanitizers\n#\n# Mixin that adds numeric sanitizers to a model\n#\n#------------------------------... | ruby | chosen |
[
{
"from": "system",
"value": "Change constant of vertical bar increment value\n"
},
{
"from": "human",
"value": "class Shoes\n module Swt\n class ShoesLayout < ::Swt::Widgets::Layout\n\n attr_accessor :gui_app\n\n def layout(*dontcare)\n dsl_app = @gui_app.dsl\n heigh... | ruby | chosen |
[
{
"from": "system",
"value": "Move commit monitor polling time into an option.\n"
},
{
"from": "human",
"value": "namespace :commit_monitor do\n desc \"Run polling loop for the commit monitor\"\n task :poll => :environment do\n loop do\n print \".\"\n CommitMonitor.perform_async\n... | ruby | chosen |
[
{
"from": "system",
"value": "Customize Pick stream scopes: Join enclosures table on `container_id`\n"
},
{
"from": "human",
"value": "class Pick < ApplicationRecord\n include EnclosureMark\n belongs_to :enclosure , counter_cache: :pick_count, touch: true\n belongs_to :container , class_name:... | ruby | chosen |
[
{
"from": "system",
"value": "Enable uploaded certificates in ca-certificates.conf for debian\n"
},
{
"from": "human",
"value": "module VagrantPlugins\n module CaCertificates\n module Cap\n module Debian\n # Capability for configuring the certificate bundle on Debian.\n mo... | ruby | chosen |
[
{
"from": "human",
"value": "Add IoLogger to be used for stdout and stderr logging\n"
},
{
"from": "gpt",
"value": "module Vmdb::Loggers\n class IoLogger < StringIO\n def initialize(logger, level = :info, prefix = nil)\n @logger = logger\n @level = level\n @prefix = prefix\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add workaround for databox cookbook bug by implementing database choice directly\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: cbench-databox\n# Recipe:: default\n#\n# Copyright (C) 2014 seal uzh\n#\n# Licensed under the Apache License, Version 2.0 (the \"... | ruby | chosen |
[
{
"from": "system",
"value": "Update dependencies in gemspec; use ~> syntax"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'html_massage/version'\n\nGem::Specification.new do... | ruby | chosen |
[
{
"from": "system",
"value": "Add vendor to require paths\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'jfit/version'\n\nGem::Specification.new do |spec|\n spec.name = \"... | ruby | chosen |
[
{
"from": "system",
"value": "Print data bag item file name after creation"
},
{
"from": "human",
"value": "require \"json\"\n\nmodule Capistrano\n module DataBag\n module Helper\n def create_data_bag_item(bag, item, data = {})\n FileUtils.makedirs \"#{data_bags_path}/#{bag}\" un... | ruby | chosen |
[
{
"from": "system",
"value": "Allow collection resources to be iterated over\n"
},
{
"from": "human",
"value": "module Moltin\n class ResourceCollection\n @resources = []\n\n def initialize(resource_class, data)\n @resources = data.map do |result|\n resource_class.constantize.... | ruby | chosen |
[
{
"from": "system",
"value": "Revert - worked locally, but on Travis it seems . . .\n"
},
{
"from": "human",
"value": "# ext/baz/extconf.rb\nrequire 'mkmf'\n$CXXFLAGS = '--std=c++0x'\ncreate_makefile( 'baz/baz' )\n"
},
{
"from": "gpt",
"value": "# ext/baz/extconf.rb\nrequire 'mkmf'\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add module for deprecating model attributes\n\nThis will cause a deprecation message to be logged when any attribute\nrelated method (Model#foo, Model#foo= and Model#foo?) is used.\n"
},
{
"from": "gpt",
"value": "require 'active_support/deprecation'\n\nmodule Deprec... | ruby | chosen |
[
{
"from": "system",
"value": "Change to mail in newsletter\n"
},
{
"from": "human",
"value": "class NewsletterMailer < ActionMailer::Base\n default :from => \"noresponder@dealhunter.com\"\n\n def newsletter_email(client)\n clients_titles = ClientsTitles.select(\"title_id\").where(:client_id... | ruby | chosen |
[
{
"from": "system",
"value": "Add type options on carte champ\n"
},
{
"from": "human",
"value": "class Champs::CarteChamp < Champ\n has_many :geo_areas, foreign_key: :champ_id, dependent: :destroy\n\n # We are not using scopes here as we want to access\n # the following collections on unsaved... | ruby | chosen |
[
{
"from": "system",
"value": "Use the root namespace for CurationConcern\n"
},
{
"from": "human",
"value": "module Worthwhile\n class GenericWork < ActiveFedora::Base\n has_metadata \"descMetadata\", type: GenericFileRdfDatastream\n has_metadata \"properties\", type: PropertiesDatastream\... | ruby | chosen |
[
{
"from": "system",
"value": "Update formula version to v0.2\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Haxby < Formula\n homepage 'https://github.com/tabletcorry/haxby'\n url \"https://github.com/tabletcorry/haxby/tarball/haxby-0.1\"\n head \"git://github.com/tabletc... | ruby | chosen |
[
{
"from": "system",
"value": "Add stub methods for league specs\n"
},
{
"from": "human",
"value": "require 'webmock/rspec'\nrequire \"yaml\"\n\ndef stub_api_key\n file = File.dirname(__FILE__) + '/support/fanfeedr.yml'\n YAML::load( File.open(file) )[\"key\"]\nend\n\ndef json_fixture(file)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Improve the caching of the default avatar\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nclass AvatarUploader < CarrierWave::Uploader::Base\n\n AVATAR_SIZE = 64\n DEFAULT_AVATAR_URL = \"http://#{MY_DOMAIN}/images/default-avatar.png\"\n\n include CarrierW... | ruby | chosen |
[
{
"from": "human",
"value": "Add custom validator to check for well-formed slugs\n"
},
{
"from": "gpt",
"value": "class SlugValidator < ActiveModel::EachValidator\n # implement the method called during validation\n def validate_each(record, attribute, value)\n record.errors[attribute] << 'm... | ruby | chosen |
[
{
"from": "system",
"value": "Add factory methods to AsyncClient::Clients::Qless\n"
},
{
"from": "human",
"value": "require \"async_client/client\"\nrequire \"qless\"\nrequire \"async_client/clients/qless/client\"\nrequire \"async_client/clients/qless/client_factory\"\n"
},
{
"from": "gp... | ruby | chosen |
[
{
"from": "system",
"value": "Set memory storage for file upload tests\n"
},
{
"from": "human",
"value": "require 'dragonfly'\n\n# Configure\nDragonfly.app.configure do\n plugin :imagemagick\n\n secret Rails.application.secrets.secret_key_base\n\n url_format \"/media/:job/:name\"\n\n if Rail... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Company API XML accessing nonexistent tag\n"
},
{
"from": "human",
"value": "module FullContact\n class Client\n module Company\n # Returns extended information for a given company (email, phone, twitter or facebook)\n #\n def company(options=... | ruby | chosen |
[
{
"from": "system",
"value": "Add variable to be able to seperate Redis host for Resque.\n"
},
{
"from": "human",
"value": "require 'resque'\nrequire 'resque-status'\n\nResque.inline = ENV['APP_ENV'] == 'test'\nResque.redis = ENV['REDIS_HOST'] || 'localhost'\nResque::Plugins::Status::Hash.expire... | ruby | chosen |
[
{
"from": "system",
"value": "Remove deprecated alias from ProcessorRegistry\n\nThe tasks method was originally defined for the non-service \"chains\" in\npre-0.9 Peribot, and was kept in ProcessorRegistry for backwards\ncompatibility with calls like `bot.preprocessor.tasks`. With 0.9, the\nlist method beca... | ruby | chosen |
[
{
"from": "system",
"value": "Complete rewrite of `EnableButton` to ensure compatibility with all other Rack apps\n\nConflicts:\n\tlib/rack/insight/enable-button.rb\n"
},
{
"from": "human",
"value": "module Rack::Insight\n class EnableButton\n include Render\n\n MIME_TYPES = [\"text/plain... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing abstract method to SourceControlSystem\n"
},
{
"from": "human",
"value": "module Rubycritic\n\n class SourceControlSystem\n @@systems = []\n\n def self.register_system\n @@systems << self\n end\n\n def self.create\n supported_syste... | ruby | chosen |
[
{
"from": "human",
"value": "Add a couple of facts about the puppet installation\n"
},
{
"from": "gpt",
"value": "# 'inspired/stolen' from puppetlabs-stdlib puppet_vardir fact\n\n\nbegin\n require 'facter/util/puppet_settings'\nrescue LoadError => e\n # puppet apply does not add module lib dir... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor so InOutPointer knows it holds a :gboolean when it does.\n"
},
{
"from": "human",
"value": "module GirFFI\n # The InOutPointer class handles conversion between ruby types and\n # pointers for arguments with direction :inout.\n class InOutPointer < FFI::P... | ruby | chosen |
[
{
"from": "system",
"value": "Return a 400 Bad Request for invalid payloads\n"
},
{
"from": "human",
"value": "module Janky\n module Builder\n class Receiver\n def self.call(env)\n request = Rack::Request.new(env)\n payload = Payload.parse(request.body)\n\n if paylo... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for newer ruby version.\n"
},
{
"from": "human",
"value": "# Copyright (C) 2008 Google Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of th... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify requiring of all files\n"
},
{
"from": "human",
"value": "require \"ideas/version\"\n\nrequire \"ideas/models/feature\"\nrequire \"ideas/models/feature_set\"\nrequire \"ideas/models/idea\"\n\nrequire \"ideas/scopes/root_scope\"\nrequire \"ideas/scopes/idea_... | ruby | chosen |
[
{
"from": "system",
"value": "Support associating Floating Ips with Instances\n\n* Add methods to the Openstack instance model for\n associating and disassociating floating ips\n with Openstack cloud instances.\n* Expose Associate and Disassociate Floating IP\n to Automate.\n\n\n(transferred from ManageI... | ruby | chosen |
[
{
"from": "system",
"value": "Create image to be same size as the terminal\n"
},
{
"from": "human",
"value": "require 'yaml'\nrequire_relative 'terminal'\n\nmodule Layer\n class Layer\n\n CONFIG_FILE = File.expand_path '~/.layer/config/layer_config.yml'\n\n def initialize\n @config =... | ruby | chosen |
[
{
"from": "system",
"value": "Add very basic setup for httparty\n"
},
{
"from": "human",
"value": "class HearthstoneJSON\nend\n"
},
{
"from": "gpt",
"value": "require 'httparty'\n\nclass HearthstoneJSON\n include HTTParty\n\n API_URL_BASE = 'https://api.hearthstonejson.com'.fre... | ruby | chosen |
[
{
"from": "system",
"value": "Fix domain settings without user"
},
{
"from": "human",
"value": "# Slack tasks\nnamespace :slack do\n task :post_info do\n if (url = fetch(:slack_url)) && (room = fetch(:slack_room))\n if set?(:user)\n Net::SSH.start(fetch(:domain), fetch(:user)) do... | ruby | chosen |
[
{
"from": "system",
"value": "Fix extname and base name issues"
},
{
"from": "human",
"value": "require 'pathname'\n\nmodule Rusic\n class ThemeFile\n attr_reader :file\n\n def initialize(file)\n @file = file\n end\n\n def uploader\n case dirname\n when 'layouts', 'id... | ruby | chosen |
[
{
"from": "system",
"value": "Add requirement to \"code\" folder.\n"
},
{
"from": "human",
"value": "require 'logging'\nrequire 'optparse'\nrequire 'raml_parser'\nrequire 'json'\n\nmodule RamlPoliglota\n module Support\n\n class SourceLoader\n\n def initialize\n @ignorable_source... | ruby | chosen |
[
{
"from": "system",
"value": "Add a mutex and sync call around import\n"
},
{
"from": "human",
"value": "module Cargo\n VERSION = \"0.0.3\"\n REGISTRY = {}\n\n def import(file)\n REGISTRY.fetch(file.sub(/\\.rb$/, '').freeze) do |name|\n load(\"#{name}.rb\", true)\n REGISTRY[name]... | ruby | chosen |
[
{
"from": "system",
"value": "Add /cas and /proxyValidate routes\n"
},
{
"from": "human",
"value": "module Cassy\n extend ActiveSupport::Autoload\n \n autoload :CAS\n autoload :Utils\n autoload :Engine\n\n def self.draw_routes\n Rails.application.routes.draw do\n scope(:path => \"c... | ruby | chosen |
[
{
"from": "system",
"value": "Fix \"ActionView::Template::Error ( isn't precompiled)\"\n"
},
{
"from": "human",
"value": "module UsersHelper\n def profile_image(user, size=24)\n image_tag user.authorizations && !user.authorizations.empty? ? user.authorizations.first.image : '', :width => siz... | ruby | chosen |
[
{
"from": "system",
"value": "Disable Finder publishing for now\n\nPublishing the Finder will take over the Index page for Contacts and\nas they don't yet exist in the search index there's then no way to\nbrowse them.\n\nThis commit disables the Finder publishing temporarily by commenting\nit out and explai... | ruby | chosen |
[
{
"from": "system",
"value": "Load email helpers by default.\n"
},
{
"from": "human",
"value": "module Ratch\n # Access to project metadata.\n def self.metadata\n @metadata ||= (\n require 'yaml'\n YAML.load(File.dirname(__FILE__) + '/ratch.yml')\n )\n end\n\n # Access to pro... | ruby | chosen |
[
{
"from": "system",
"value": "Remove location filter for icalreader\n"
},
{
"from": "human",
"value": "require 'http'\n\nclass IcalReader < BaseReader\n ALLOWED_LOCATIONS = ['Dresden', 'SLUB']\n class << self\n def cronjob\n UserGroup.with_ical.each do |account|\n new(account).r... | ruby | chosen |
[
{
"from": "system",
"value": "Change to increase rails version\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'loaf/version'\n\nGem::Specification.new do |spec|\n spec.name =... | ruby | chosen |
[
{
"from": "system",
"value": "Include CachedRender support by default\n"
},
{
"from": "human",
"value": "require 'browser'\nrequire 'clearwater/component'\nrequire 'clearwater/svg_component'\nrequire 'clearwater/link'\nrequire 'clearwater/application'\n"
},
{
"from": "gpt",
"value": ... | ruby | chosen |
[
{
"from": "system",
"value": "Add Rubocop to development dependencies\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/callcredit/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.add_runtime_dependency 'faraday_middleware', '>= 0.8.2', '< 0.10'\n gem.add_runtime... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage link in gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nrequire_relative \"lib/lmtp\"\n\nGEMSPEC = Gem::Specification.new do |spec|\n spec.name = \"lmtp\"\n spec.version = LmtpServer::VERSION\n spec.date = Time.now.strftime(\"%Y-%m-%d\")\... | ruby | chosen |
[
{
"from": "system",
"value": "Change to [] globbing syntax\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nrequire File.expand_path('../lib/hello_sign/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'hello_sign'\n gem.version = HelloSign::VERSION\n gem... | ruby | chosen |
[
{
"from": "system",
"value": "Fix podspec doesn't include right files issue\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n spec.name = 'EnvoyAmbassador'\n spec.version = '0.0.1-alpha-1'\n spec.summary = 'Lightweight web framework in Swift based on SWSGI for iOS... | ruby | chosen |
[
{
"from": "system",
"value": "Add parslet, rspec, guard-rspec, simplecov, pry and pry-debugger gems.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'subtle/version'\n\nGem:... | ruby | chosen |
[
{
"from": "system",
"value": "Manage avatar upload date from uploader.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nclass AvatarUploader < ApplicationUploader\n\n include CarrierWave::MiniMagick\n\n # Process files as they are uploaded:\n process :resize_to_fill => [512, 512]\n pr... | ruby | chosen |
[
{
"from": "system",
"value": "Add pagination to nearby endpoint\n"
},
{
"from": "human",
"value": "module Api\n module V1\n class OrganizationsController < ApiController\n\n #These filters provide pagination info via HTTP Link headers\n #thanks to the 'api-pagination' gem\n af... | ruby | chosen |
[
{
"from": "system",
"value": "Return an empty string if unauthorized\n"
},
{
"from": "human",
"value": "module ChatBotCommand\n class Reload\n TITLE = \"Reload\" # Title of the command\n REGEX = /^!reload/ # REGEX the command needs to look for\n COMMAND = \"!reload\" # ... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for multibyte UTF8 table alignment\n\nSigned-off-by: Ben Mabey <73675debcd8a436be48ec22211dcf44fe0df0a64@benmabey.com>"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../../spec_helper'\nrequire File.dirname(__FILE__) + '/../../../lib/cu... | ruby | chosen |
[
{
"from": "system",
"value": "Fix redirect url in plugin\n"
},
{
"from": "human",
"value": "module FacebookerAuthentication\n module Controller\n def self.included(includer)\n #install the current_user helper and the before filter\n includer.module_eval do\n helper_attr :cur... | ruby | chosen |
[
{
"from": "system",
"value": "Update brew cask for 2.2.1\n"
},
{
"from": "human",
"value": "cask 'awsaml' do\n version '2.2.0'\n sha256 'f9a0a74c3630cc6a53b5d68bb34cd545827f9541b6393046bfff88b1658de4ae'\n\n url \"https://github.com/rapid7/awsaml/releases/download/v#{version}/awsaml-v#{version... | ruby | chosen |
[
{
"from": "system",
"value": "Update download URL for Box Sync\n"
},
{
"from": "human",
"value": "cask :v1 => 'box-sync' do\n version :latest\n sha256 :no_check\n\n url 'https://box.com/sync4mac'\n name 'Box Sync'\n homepage 'https://sites.box.com/sync4/'\n license :gratis\n\n app 'Box Sy... | ruby | chosen |
[
{
"from": "system",
"value": "Modify : pod spec 1.2.3\n"
},
{
"from": "human",
"value": "#\n# Luo Yu\n\nPod::Spec.new do |s|\n s.name = 'ConfigKit'\n s.version = '1.2.2'\n s.summary = 'Configuration toolkit.'\n\n s.description = <<-DESC\nConfiguration toolkit.\nSystem style.\nLanguage setter... | ruby | chosen |
[
{
"from": "system",
"value": "Add Capybara as a runtime dependency\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nGem::Specification.new do |spec|\n spec.name = \"capybara-ui\"\n spec.version = \"1.0.0\"\n\n spec.author = \"Collective Idea\"\n spec.email = \"info@colle... | ruby | chosen |
[
{
"from": "system",
"value": "Add gem for test_apps to gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'js_invoker/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to convenience approach for gemspec files\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'msfl'\n s.version = '0.0.1-qa'\n s.date = '2015-03-05'\n s.summary = \"MSFL in Ruby\"\n s.description = \"Seriali... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake feed store to whenever\n"
},
{
"from": "human",
"value": "every 1.day, at: '4:30 am' do\n job_type :rake, \"cd /srv/frontend/ && source /etc/mas/environment && RAILS_ENV=production bundle exec rake :task --silent :output\"\n\n rake 'feed:store' # from the... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for model creation\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\nclass RailsOps::Operation::Model::CreateTest < ActiveSupport::TestCase\n include TestHelper\n\n BASIC_OP = Class.new(RailsOps::Operation::Model::Create) do\n model Group\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude new jobs from being run in specs\n\nThe `@environment_variables` variable doesn’t seem to be getting passed\nthrough in specs, so following the pattern of other copy_data jobs and\nadding them to this list.\n"
},
{
"from": "human",
"value": "require_relative... | ruby | chosen |
[
{
"from": "system",
"value": "Update Formula to version 4.1.1\n"
},
{
"from": "human",
"value": "class Bartycrouch < Formula\n desc \"Incrementally update/translate your Strings files\"\n homepage \"https://github.com/Flinesoft/BartyCrouch\"\n url \"https://github.com/Flinesoft/BartyCrouch.gi... | ruby | chosen |
[
{
"from": "system",
"value": "Update formula to version 4.0.1\n"
},
{
"from": "human",
"value": "class Bartycrouch < Formula\n desc \"Incrementally update/translate your Strings files\"\n homepage \"https://github.com/Flinesoft/BartyCrouch\"\n url \"https://github.com/Flinesoft/BartyCrouch.gi... | ruby | chosen |
[
{
"from": "system",
"value": "Update notifier to pass title and custom attributes\n"
},
{
"from": "human",
"value": "require 'notifiable'\nrequire 'ruby-mpns'\n\nmodule Notifiable\n module Mpns\n module Nverinaud\n \t\tclass SingleNotifier < Notifiable::NotifierBase\n \n prote... | ruby | chosen |
[
{
"from": "system",
"value": "Remove duplications in federation controller\n"
},
{
"from": "human",
"value": "module V3\n module Auth\n class FederationController < ApplicationController\n include Timestampable\n include TokenRespondable\n\n def oidc\n @credentials = ::... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue where backporting would not false detect nil time_profile_id\n"
},
{
"from": "human",
"value": "module Metric::CiMixin::LongTermAverages\n Metric::LongTermAverages::AVG_METHODS_INFO.each do |meth, info|\n define_method(meth) { averages_over_time_period... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.