conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Include a revamped institutions helper modified for rails 3\n"
},
{
"from": "gpt",
"value": "# Rails helper module for institutions\nmodule Nyulibraries\n module Assets\n module InstitutionsHelper\n # Determine current primary institution based on:\n # ... | ruby | chosen |
[
{
"from": "system",
"value": "Use absolute path for cmd.exe as well\n"
},
{
"from": "human",
"value": "require 'delegate'\n\nmodule Aruba\n module Platforms\n # This is a command which should be run\n class WindowsCommandString < SimpleDelegator\n def initialize(cmd)\n __setob... | ruby | chosen |
[
{
"from": "system",
"value": "Send invoices and order notifications to ourselves via BCC\n"
},
{
"from": "human",
"value": "class StoreMailer < ActionMailer::Base\n helper :application\n helper :store_mailer\n \n default :from => APP_CONFIG['default_from_email'] || 'stizun@localhost'\n\n \n... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify what is being copied\n"
},
{
"from": "human",
"value": "Given /^I am using the \"(.+)\" cookbook$/ do |cookbook|\n FileUtils.cp_r(File.join('examples', cookbook), expand_path('.'))\n cd(cookbook)\nend\n"
},
{
"from": "gpt",
"value": "Given /^I ... | ruby | chosen |
[
{
"from": "human",
"value": "Add development fixtures for nested groups\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n"
},
{
"from": "gpt",
"value": "require './spec/support/sidekiq'\n\ndef create_group_with_parents(user, full_path)\n parent_path = ... | ruby | chosen |
[
{
"from": "system",
"value": "Use find_in_batches for rake task\n"
},
{
"from": "human",
"value": "require 'logger'\nrequire 'resolv-replace'\n\ndesc \"GitLab | Archive legacy traces to trace artifacts\"\nnamespace :gitlab do\n namespace :traces do\n task archive: :environment do\n logg... | ruby | chosen |
[
{
"from": "system",
"value": "Comment to explain the man files"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\n\nrequire 'bundler/version'\n\nGem::Specification.new do |s|\n s.name = \"bundle... | ruby | chosen |
[
{
"from": "human",
"value": "Add migration for re-arranging adjustment fields\n"
},
{
"from": "gpt",
"value": "class RenameAdjustmentFields < ActiveRecord::Migration\n def up\n remove_column :spree_adjustments, :originator_id\n remove_column :spree_adjustments, :originator_type\n\n add... | ruby | chosen |
[
{
"from": "human",
"value": "Add recipe for adding the percona repo if needed\n"
},
{
"from": "gpt",
"value": "#\n# Cookbook Name:: mysql\n# Recipe:: percona_repo\n#\n# Copyright 2008-2009, Opscode, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use t... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in ActoTracker Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'actotracker' do\n version :latest\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make the table of environment variables look prettier\n"
},
{
"from": "human",
"value": "module Aruba\n module Platform\n class SimpleTable\n private\n\n attr_reader :hash\n\n public\n\n def initialize(hash)\n @hash = hash\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove multibyte chars for ruby 1.9.3 compatibility\n"
},
{
"from": "human",
"value": "shared_examples_for 'busca_logotipo' do\n it 'para layout padrão' do\n boleto_novo = described_class.new\n expect(File.exist?(boleto_novo.logotipo)).to be_truthy\n expec... | ruby | chosen |
[
{
"from": "system",
"value": "Add page/action to payload in mantis_rb hook.\n\nSpecifying url-encoded params in the POST request does not work, so the\npage variable has to be added to the payload instead.\n"
},
{
"from": "human",
"value": "service :mantis_bt do |data, payload|\n begin\n bas... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in gemspec files\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'coffee-script'\n s.version = '0.9.0'\n s.date = '2010-9-10'\n\n s.homepage = \"http://github.com/josh/ruby-coffee-script\"\n s.summary = \"... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for receiving '~user' in File.absolute_path.\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\n\nruby_version_is \"1.9\" do\n describe \"File.absolute_path\" do\n before(:each) do\n @abs = File.expand_pa... | ruby | chosen |
[
{
"from": "system",
"value": "Create LifetimeEvent as a common superclass for ReadyEvent and DisconnectEvent\n"
},
{
"from": "human",
"value": "require 'discordrb/events/generic'\n\nmodule Discordrb::Events\n # @see Discordrb::EventContainer#ready\n class ReadyEvent < Event; end\n\n # Event h... | ruby | chosen |
[
{
"from": "system",
"value": "Remove pry-doc, depends on more recent pry.\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\nrequire 'foodcritic/version'\nGem::Specification.new do |s|\n s.name = 'foodcritic'\n s.version = Fo... | ruby | chosen |
[
{
"from": "system",
"value": "Use `def before_setup` instead of `setup do`\n\n`setup do` creates unnecessary allocations of proc objects in test\ncallbacks. This prevents that from happening and results in faster code.\n\nOriginally I had done this as `def setup` and all Railties tests passed.\nSee 044f9ab.... | ruby | chosen |
[
{
"from": "system",
"value": "Add convinience method to build entry points\n"
},
{
"from": "human",
"value": "# Public: Hyperclient namespace.\n#\nmodule Hyperclient\nend\n\nrequire 'hyperclient/entry_point'\nrequire \"hyperclient/version\"\n"
},
{
"from": "gpt",
"value": "# Public: ... | ruby | chosen |
[
{
"from": "system",
"value": "Update deprecation warning with correct namespace"
},
{
"from": "human",
"value": "require 'active_model/serializer/collection_serializer'\nclass ActiveModel::Serializer\n class ArraySerializer < CollectionSerializer\n class << self\n extend ActiveModelSeri... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for duplicate ids after destroy\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nrequire 'dm-core'\nrequire 'dm-core/spec/shared/adapter_spec'\n\nrequire 'dm-migrations'\nrequire 'dm-yaml-adapter/spec/setup'\n\nENV['ADAPTER'] = 'yaml'\nE... | ruby | chosen |
[
{
"from": "system",
"value": "Make including crazyegg code conditional on the presence of an environment variable\n"
},
{
"from": "human",
"value": "# Rails helper module for footers\nmodule Nyulibraries\n module Assets\n module FooterHelper\n\n # Library H3lp javascript\n def libr... | ruby | chosen |
[
{
"from": "system",
"value": "Add ffi_lib() before attach_function(). This need to run with ffi 0.6.0.\n"
},
{
"from": "human",
"value": "require 'ffi'\n\nmodule INotify\n # This module contains the low-level foreign-function interface code\n # for dealing with the inotify C APIs.\n # It's an... | ruby | chosen |
[
{
"from": "system",
"value": "Load filters from the position method.\n"
},
{
"from": "human",
"value": "# Module designed to work with `acts_as_list`.\n\nrequire 'active_support/concern'\n\nmodule Admin\n module ActsAsList\n\n extend ActiveSupport::Concern\n\n included do\n before_fi... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec version to 2.3.2\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'BZGFormViewController'\n s.version = '2.3.1'\n s.license = 'MIT'\n s.summary = 'A library for creating dynamic forms.'\n s.homepage = 'https://github.com/... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Fix Category spec not to delete existing category entries\"\n\nThis reverts commit dd3223ca9319060349db0dbd9d50af2a737c1c47.\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/spec_helper'\n\ndescribe Category do\n before(:all) do\n @... | ruby | chosen |
[
{
"from": "system",
"value": "Convert dependencies to formulas for name matching\n\nDependency names are prefixed with the tap location, therefore\ndependency names do not match formula names. We convert dependencies\ninto formulas to ensure proper name checking.\n\nCloses #35058.\n\nSigned-off-by: Jack Nag... | ruby | chosen |
[
{
"from": "human",
"value": "Add a simple spec for the azure mixin\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "gpt",
"value": "#\n# Author:: Tim Smith <tsmith@chef.io>\n# Copyright:: 2017 Chef Software, Inc.\n# License:: Apache License, Version... | ruby | chosen |
[
{
"from": "system",
"value": "Remove cached files before testing.\n"
},
{
"from": "human",
"value": "# Configure Rails Environment\nENV[\"RAILS_ENV\"] = \"test\"\n\nrequire File.expand_path(\"../dummy/config/environment.rb\", __FILE__)\nrequire \"rails/test_help\"\n\nRails.backtrace_cleaner.rem... | ruby | chosen |
[
{
"from": "system",
"value": "Add initializer for Slack websocket\n"
},
{
"from": "human",
"value": "require 'slack'\n\nif AppConfig.slack.token.present?\n Slack.configure do |config|\n config.token = AppConfig.slack.token\n end\n Slack.auth_test\nend\n"
},
{
"from": "gpt",
"va... | ruby | chosen |
[
{
"from": "system",
"value": "Update The Unarchiver to version 3.7\n"
},
{
"from": "human",
"value": "class TheUnarchiver < Cask\n url 'http://theunarchiver.googlecode.com/files/TheUnarchiver3.4.zip'\n homepage 'http://unarchiver.c3.cx/'\n version '3.4'\n sha1 '05e794f1ef9259138fdf19a3592d64... | ruby | chosen |
[
{
"from": "human",
"value": "Add a class for dumping arbitrary msgpack messages to fiel\n"
},
{
"from": "gpt",
"value": "require 'msgpack'\n\nmessage = {\n 'event_type' => 'gc_start',\n 'timestamp' => Time.now.to_f\n}\n\nFile.open(\"/tmp/msgpack.dat\", \"w\") do |fl|\n fl.write(message.to_msg... | ruby | chosen |
[
{
"from": "system",
"value": "Disable Rubinius' JIT when running aruba tests.\n"
},
{
"from": "human",
"value": "require 'aruba/cucumber'\n\nBefore do\n if RUBY_PLATFORM =~ /java/ || defined?(Rubinius)\n @aruba_timeout_seconds = 60\n else\n @aruba_timeout_seconds = 10\n end\nend\n\nArub... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure hooks run when seeding admin user\n"
},
{
"from": "human",
"value": "require './spec/support/sidekiq'\n\nGitlab::Seeder.quiet do\n User.seed do |s|\n s.id = 1\n s.name = 'Administrator'\n s.email = 'admin@example.com'\n s.notification_email = ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ChargeRate.valid_at for rates no duration_from.\n"
},
{
"from": "human",
"value": "class ChargeRate < ActiveRecord::Base\n # String\n def to_s(format = :default)\n return \"\" if (title.blank? or rate_to_s.blank?)\n\n case format\n when :long\n ... | ruby | chosen |
[
{
"from": "system",
"value": "[Openstack] Fix mock returning a hash instead of an array\n"
},
{
"from": "human",
"value": "module Fog\n module Identity\n class OpenStack\n class Real\n def list_roles_for_user_on_tenant(tenant_id, user_id)\n request(\n :expects... | ruby | chosen |
[
{
"from": "system",
"value": "Remove N+1 queries from NetworkManager list pages\n\nN+1 was caused by STI inheritance of relations, for virtual\nmethods to work correctly, we need to hold the relations on a base\nclasses.\n\n(transferred from ManageIQ/manageiq@4666d74f027dae965fbdab4d4ab713d0e2247979)\n"
}... | ruby | chosen |
[
{
"from": "system",
"value": "Fix flipped arguments to `FHIR::Klass.read`\n\nWhen getting a reference, the call to `FHIR::Klass.read` (where `Klass` is some\nFHIR model) had its arguments flipped: the `id` should come first, and the\n`client` second.\n"
},
{
"from": "human",
"value": "module FHI... | ruby | chosen |
[
{
"from": "system",
"value": "Update location of grpc_objective_c_plugin for sample\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"RemoteTest\"\n s.version = \"0.0.1\"\n s.license = \"New BSD\"\n\n s.ios.deployment_target = \"6.0\"\n s.osx.deployment_target = \"1... | ruby | chosen |
[
{
"from": "system",
"value": "Terminate the IRB backtrace properly\n"
},
{
"from": "human",
"value": "module IRB\n class IrbRubinius < Irb\n def process_statements\n @scanner.each_top_level_statement do |line, line_no|\n signal_status(:IN_EVAL) do\n begin\n li... | ruby | chosen |
[
{
"from": "system",
"value": "Increase minimum version of mail.\n\n Second security vulnerability found in mail file delivery method\n patched in version 2.4.4.\n"
},
{
"from": "human",
"value": "version = File.read(File.expand_path(\"../../RAILS_VERSION\", __FILE__)).strip\n\nGem::Specificati... | ruby | chosen |
[
{
"from": "system",
"value": "Send the source for librato metrics\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nclass Service::LibratoMetrics < Service\n def receive_logs\n values = Hash.new { |h,k| h[k] = 0 }\n\n payload[:events].each do |event|\n time = Time.parse(event[:re... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Rubyforge project from gemspec\n\nRubyforge isn't used anymore, it has been replaced by Rubygems.org"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'mongo/version'\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix handling of sql errors\n"
},
{
"from": "human",
"value": "#\n# Copyright (c) 2011, SoundCloud Ltd., Rany Keddo, Tobias Bielohlawek, Tobias\n# Schmidt\n#\n# Apply a change to the database.\n#\n\nmodule Lhm\n module Command\n def self.included(base)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Stop Slack spec hitting the Internet\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire './lib/slack_poster'\n\n\n describe 'slack_poster' do\n\n let(:webhook_url) { ENV[\"SLACK_WEBHOOK\"] }\n let(:team_channel... | ruby | chosen |
[
{
"from": "system",
"value": "Fix environment policy class name in specs\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Ci::EnvironmentPolicy do\n let(:user) { create(:user) }\n let(:project) { create(:project) }\n\n let(:environment) do\n create(:environment, :with_r... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade \"IntelliJ IDEA 14 EAP.app\" to v138.777\n"
},
{
"from": "human",
"value": "class IntellijIdeaUltimateEap < Cask\n url 'http://download.jetbrains.com/idea/ideaIU-135.863.dmg'\n homepage 'https://www.jetbrains.com/idea/index.html'\n version '135.863'\n sh... | ruby | chosen |
[
{
"from": "system",
"value": "Add some tests to check the features of the VM generated\n"
},
{
"from": "human",
"value": "require_relative 'spec_helper'\n\ndescribe 'box' do\n it 'should have a root user' do\n expect(user 'root').to exist\n end\n\n it 'should have a vagrant user' do\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Slowy.app to version 1.7\n"
},
{
"from": "human",
"value": "class Slowy < Cask\n version '1.6'\n sha256 '0ecb2fbe06f3d7a050efab30d8ee6b370c83c2b44fec8b005fdc805cbc7728c7'\n\n url \"http://slowyapp.com/downloads/Slowyapp_v#{version}.dmg\"\n homepage 'http... | ruby | chosen |
[
{
"from": "human",
"value": "Add db migration for notifications\n"
},
{
"from": "gpt",
"value": "class AddColumnsToNotification < ActiveRecord::Migration\n def change\n add_column :notifications, :action, :string\n add_column :notifications, :actor_id, :integer\n add_column :notificati... | ruby | chosen |
[
{
"from": "system",
"value": "Validate successfully if a response was an empty list\n"
},
{
"from": "human",
"value": "module Committee\n class ResponseValidator\n def initialize(link)\n @link = link\n\n # we should eventually move off of validating against parent schema too\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Fix Ruby 1.8 incompatibility\"\n\nThis reverts commit 07e1de1303a2db2f64109e48919820d398ca6fad.\n"
},
{
"from": "human",
"value": "module Kernel\n\n def Bignum(arg)\n Integer(arg)\n end\n\n def Fixnum(arg)\n Integer(arg)\n end\n\n def NilClass(ar... | ruby | chosen |
[
{
"from": "system",
"value": "Update setting directly without fetching it first."
},
{
"from": "human",
"value": "class Admin::DashboardController < Admin::BaseController\n\n def index\n @recent_activity = []\n\n Refinery::Plugins.active.each do |plugin|\n begin\n plugin.activ... | ruby | chosen |
[
{
"from": "system",
"value": "Update RStudio preview to 0.98.770"
},
{
"from": "human",
"value": "class RstudioPreview < Cask\n url 'https://s3.amazonaws.com/rstudio-dailybuilds/RStudio-0.98.752.dmg'\n homepage 'http://www.rstudio.com/ide/download/preview'\n version '0.98.752'\n sha256 '7393... | ruby | chosen |
[
{
"from": "system",
"value": "Add $ and ^ to list of characters to escape in regex.\n\nThe escape_string method did not include ^ and $ in the list of\ncharacters to escape. This caused append_if_no_line to possibly add\nlines with a dollar sign in them many times even after they have been\nadded.\n"
},
... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for '\"status_code\"=>210, \"status_message\"=>\"No notifications\"' error\n"
},
{
"from": "human",
"value": "require 'httparty'\nrequire 'json'\nrequire 'pushwoosh/request'\nrequire 'pushwoosh/response'\nrequire 'active_support/core_ext/hash/indifferent_access'... | ruby | chosen |
[
{
"from": "system",
"value": "Remove left over bit of test data\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\nrequire \"date\"\n\nRSpec.describe Archangel::Driver::Filesystem do\n test_id = \"fish\"\n test_payload = \"halibut\"\n now = DateTime.now\n filestore = \"./test_run\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix images example to use images in app/assets/images\n"
},
{
"from": "human",
"value": "class ImagesController < ApplicationController\n def show\n image_name, image_type = params[:id], params[:format]\n filename = Rails.public_path + \"/images/#{image_name}... | ruby | chosen |
[
{
"from": "system",
"value": "Fix hash syntax for older ruby versions.\n"
},
{
"from": "human",
"value": "action :create do\n path = new_resource.path\n type = new_resource.type || \"syslog\"\n tags = new_resource.tags || [\"logstash\"]\n add_field = new_resource.add_field || false\n\n node... | ruby | chosen |
[
{
"from": "system",
"value": "Increase test coverage for SlackApi\n"
},
{
"from": "human",
"value": "class SlackApi\n def self.get_user_info(slack_uid)\n base_uri = 'https://slack.com/api/users.info'\n api_response = HTTParty.get(base_uri, query: {token: AppSettings.slack_token,\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sample model for admin/accounts singular rather than plural.\n\nThis fixes rspec/rspec-rails#731\n"
},
{
"from": "human",
"value": "generate('rspec:install')\ngenerate('controller wombats index') # plural\ngenerate('controller welcome index') # singular\ngenera... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for url_encode on date\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Twilio::Util do\n include Twilio::Util\n\n it 'should parse a Date object' do\n today = Time.now\n url = url_encode({'DateSent>' => today})\n\n url.should ==... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Alfred 2.app to v2.5_299\n"
},
{
"from": "human",
"value": "class Alfred < Cask\n version '2.4_279'\n sha256 '5faaa5e7029adb6a884433c3c442440cee6398241bc8098f02186e5e1f010dea'\n\n url \"https://cachefly.alfredapp.com/Alfred_#{version}.zip\"\n homepage 'h... | ruby | chosen |
[
{
"from": "human",
"value": "Rename KindleForMac Cask class to Kindle\n\nCloses #943\n\nSigned-off-by: Fernando Paredes <nano@fdp.io>\n\nConflicts:\n\tCasks/kindle.rb\n"
},
{
"from": "gpt",
"value": "class Kindle < Cask\n url 'http://kindleformac.amazon.com/40499/KindleForMac.dmg'\n homepage '... | ruby | chosen |
[
{
"from": "system",
"value": "Update profile controller spec, test role_id injection\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Releaf::AdminProfileController do\n login_as_admin :admin\n\n describe \"#settings\" do\n context 'when params[:settings] not Hash' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix quotes in pushwoosh spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Pushwoosh do\n before do\n Pushwoosh.configure do |config|\n config.application = '5555-5555'\n config.auth = 'abcefg'\n end\n end\n\n describe '.not... | ruby | chosen |
[
{
"from": "system",
"value": "Correct CreditCard class name in PolymorphicPayments migration\n"
},
{
"from": "human",
"value": "# Legacy table support\nclass Checkout < ActiveRecord::Base; end;\n\nclass PolymorphicPayments < ActiveRecord::Migration\n def up\n remove_column :payments, :type\n... | ruby | chosen |
[
{
"from": "system",
"value": "Make it easier to test against gem dependencies that are bundled using a development path. All that is needed now is to add them to the top-level Gemfile.\n"
},
{
"from": "human",
"value": "# Configure Rails Envinronment\nENV[\"RAILS_ENV\"] = \"test\"\n\nrequire 'ra... | ruby | chosen |
[
{
"from": "human",
"value": "Create a feature spec for \"/tag\"\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe 'Commit > User uses quick actions', :js do\n include Spec::Support::Helpers::Features::NotesHelpers\n include RepoHelpers\n\n let(:project) { create(:project, :p... | ruby | chosen |
[
{
"from": "human",
"value": "Add IntelliJ IDEA CE with bundled JDK\n\nIntelliJ offers a version with a bundled JDK for it to run when one is not present, or there is no java version installed (as with yosemite not having a jdk)\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'intellij-idea-ce-bundl... | ruby | chosen |
[
{
"from": "system",
"value": "Enable SMTP/TLS in SMTP settings\n\nBe more secure by default.\n\nhttps://en.wikipedia.org/wiki/STARTTLS\n\nRecommended by SendGrid, our usual email provider.\n\nhttp://sendgrid.com/docs/Integrate/Frameworks/rubyonrails.html\n"
},
{
"from": "human",
"value": "if Rai... | ruby | chosen |
[
{
"from": "human",
"value": "Add an homebrew external commad for auditing head-only formula\n"
},
{
"from": "gpt",
"value": "# This homebrew external command is used to override `brew audit`\n# so that it will omit the HEAD only error.\n#\n# This file should be removed after neovim reaching stab... | ruby | chosen |
[
{
"from": "human",
"value": "Add a request spec for BalanceSheetController.\n"
},
{
"from": "gpt",
"value": "# -*- encoding : utf-8 -*-\nrequire 'spec_helper'\n\ndescribe BalanceSheetController do\n fixtures :users, :accounts, :preferences\n set_fixture_class :accounts => Account::Base\n\n i... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure the job/queue metric is optional, for totals\n"
},
{
"from": "human",
"value": "module Resque\n module Metrics\n module Backends\n class Statsd\n attr_accessor :statsd, :stats_prefix\n\n def initialize(stats, stats_prefix = 'resque')... | ruby | chosen |
[
{
"from": "system",
"value": "Allow other plugins to hook after formtastic is initialized so they can extend its functionality ex. formtastic_calendar_date_select.\n"
},
{
"from": "human",
"value": "require 'formtastic'\nrequire 'formtastic/layout_helper'\nrequire 'rails'\n\nmodule Formtastic\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use db_name column to detect db for subdomain.\n"
},
{
"from": "human",
"value": "class Bookyt::Elevator < Apartment::Elevators::Subdomain\n def parse_database_name(request)\n database_name = super\n if Apartment.database_names.include? database_name\n r... | ruby | chosen |
[
{
"from": "system",
"value": "Add name, license, vendor and zap for Gyazo.app\n"
},
{
"from": "human",
"value": "cask :v1 => 'gyazo' do\n version '2.1'\n sha256 '88491cc2a9d481fdb99b822ca49560427ed11578b304203c4504d83fc2562061'\n\n url \"https://files.gyazo.com/setup/Gyazo_#{version}.dmg\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix url, appcast and homepage to use SSL in gfxCardStatus Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'gfxcardstatus' do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for Fixnum size spec to guard \"java\" platform with 8 byte size\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../../spec_helper'\n\ndescribe \"Fixnum#size\" do\n it \"returns the number of bytes in the machine representation of self\" d... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Vivaldi.app to TP4 v1.0.219.50\n"
},
{
"from": "human",
"value": "cask :v1 => 'vivaldi' do\n version '1.0.162.9'\n sha256 :no_check # required as upstream package is updated in-place\n\n url \"https://vivaldi.com/download/Vivaldi_TP3.#{version}.dmg\"\n n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix code in ChargeRate seed for vat:full.\n"
},
{
"from": "human",
"value": "# Master Data\n# ===========\n# Swiss (German)\n\n# Vat Rates\nChargeRate.create!([\n {:code => 'vat:normal', :title => \"MWSt. (Normaler Satz)\", :duration_from => '2011-01-01', :rate => ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor to avoid duplication on param filter\n"
},
{
"from": "human",
"value": "module Devise\n class ParamFilter\n def initialize(case_insensitive_keys, strip_whitespace_keys)\n @case_insensitive_keys = case_insensitive_keys || []\n @strip_whitespace... | ruby | chosen |
[
{
"from": "system",
"value": "Use a double instead of the real Sprockets context\n"
},
{
"from": "human",
"value": "require 'lib/spec_helper'\nrequire 'lib/shared/path_reader_shared'\nrequire 'opal/sprockets/path_reader'\n\ndescribe Opal::Sprockets::PathReader do\n subject(:path_reader) { descr... | ruby | chosen |
[
{
"from": "system",
"value": "Make page factory produce unique titles.\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :page, :class => Refinery::Page do\n title \"Test title\"\n end\nend\n"
},
{
"from": "gpt",
"value": "FactoryGirl.define do\n factory :page,... | ruby | chosen |
[
{
"from": "system",
"value": "Fix update head pipeline worker\n"
},
{
"from": "human",
"value": "class UpdateHeadPipelineForMergeRequestWorker\n include Sidekiq::Worker\n\n sidekiq_options queue: 'pipeline_default'\n\n def perform(merge_request_id)\n merge_request = MergeRequest.find(merge... | ruby | chosen |
[
{
"from": "human",
"value": "Add CocoaPods podspec for a future version.\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n s.name = 'PSStackedView'\n s.version = '0.1'\n s.platform = :ios\n s.summary = 'Open source implementation of Twitter/iPad stacked ui - done right.'\n s.hom... | ruby | chosen |
[
{
"from": "system",
"value": "Update iPhoto Library Manager to 4.2.2\n"
},
{
"from": "human",
"value": "cask :v1 => 'iphoto-library-manager' do\n version '4.2.1'\n sha256 'fc4c70e5fd54d73e2f73c0acc6bfcd3c744dfd7ccb99119afaf824467cb0c015'\n\n # amazonaws.com is the official download host per t... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task to create dummy data for a property at 1234 Fake St\n"
},
{
"from": "gpt",
"value": "namespace :dummy_data do\n desc \"Creates a dummy property and loads feedback data for it\"\n task :load => :environment do\n existing_dummy_property = Property.fi... | ruby | chosen |
[
{
"from": "system",
"value": "Add support to PHP 5.3.9rc3.\n"
},
{
"from": "human",
"value": "default[:php][:multi][:versions] = [\"5.2.17\", \"5.3.2\", \"5.3.8\", \"5.4.0rc3\"]\ndefault[:php][:multi][:aliases] = {\"5.2\" => \"5.2.17\", \"5.3\" => \"5.3.8\", \"5.4\" => \"5.4.0rc3\"}\n"
},
{... | ruby | chosen |
[
{
"from": "system",
"value": "Add some spaces, remove comment\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass PasswordsControllerTest < ActionController::TestCase\n tests Devise::PasswordsController\n include Devise::TestHelpers\n\n def setup\n request.env[\"devise.mappin... | ruby | chosen |
[
{
"from": "system",
"value": "Add sourcemaps support to sinatra example"
},
{
"from": "human",
"value": "require 'opal'\nrequire 'sinatra'\n\nget '/' do\n <<-EOS\n <!doctype html>\n <html>\n <head>\n <script src=\"/assets/application.js\"></script>\n </head>\n </html>\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove duplicate cygwin in RUBY_PLATFORM check\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Nanoc\n\n # @return [String] A string containing information about this nanoc version\n # and its environment (Ruby engine and version, Rubygems version... | ruby | chosen |
[
{
"from": "system",
"value": "Use self.to_s in Mongoid class_name in Formula\n"
},
{
"from": "human",
"value": "# This code is free software; you can redistribute it and/or modify it under\n# the terms of the new BSD License.\n#\n# Copyright (c) 2012-2013, Sebastian Staudt\n\nclass Formula\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add .org? method to Gitlab helper\n\ndev_env_or_com? now considers dev.gitlab.org\n"
},
{
"from": "human",
"value": "require_dependency 'gitlab/git'\n\nmodule Gitlab\n COM_URL = 'https://gitlab.com'.freeze\n APP_DIRS_PATTERN = %r{^/?(app|config|ee|lib|spec|\\(\\w*... | ruby | chosen |
[
{
"from": "system",
"value": "Fix double-escaping of config settings\n"
},
{
"from": "human",
"value": "module Middleman\n module MetaPages\n # View class for a config entry\n class ConfigSetting\n include Padrino::Helpers::OutputHelpers\n include Padrino::Helpers::TagHelpers\n\... | ruby | chosen |
[
{
"from": "human",
"value": "Add Heroku's default Unicorn config\n"
},
{
"from": "gpt",
"value": "worker_processes 3\ntimeout 30\npreload_app true\n\nbefore_fork do |server, worker|\n Signal.trap 'TERM' do\n puts 'Unicorn master intercepting TERM and sending myself QUIT instead'\n Process... | ruby | chosen |
[
{
"from": "system",
"value": "Update OnyX to OS X Mavericks version\n"
},
{
"from": "human",
"value": "class Onyx < Cask\n url 'http://joel.barriere.pagesperso-orange.fr/dl/108/OnyX.dmg'\n homepage 'http://www.titanium.free.fr/downloadonyx.php'\n version 'latest'\n no_checksum\n link 'OnyX.... | ruby | chosen |
[
{
"from": "system",
"value": "Add a blank line after a guard clause"
},
{
"from": "human",
"value": "class PipelineSerializer < BaseSerializer\n InvalidResourceError = Class.new(StandardError)\n\n entity PipelineEntity\n\n def with_pagination(request, response)\n tap { @paginator = Gitlab:... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for whether the database file is created\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"the sinatra extension\" do\n before(:each) do\n @app = Class.new(MockSinatraApp)\n end\n\n let(:test_database_url) { \"sqlite:///foo.db\" }... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec without api key\n"
},
{
"from": "human",
"value": "require 'bipbip/agent'\n\ndescribe Bipbip::Agent do\nend\n"
},
{
"from": "gpt",
"value": "require 'bipbip'\n\ndescribe Bipbip::Agent do\n let(:agent) { Bipbip::Agent.new }\n\n it 'should exit ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.