conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update authors and homepage info to reflect transfer of ownership\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/twocheckout/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Ernesto Garc... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.5.0.0 to 0.5.1.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'messaging'\n s.version = '0.5.0.0'\n s.summary = 'Messaging primitives for Eventide'\n s.description = ' ... | ruby | chosen |
[
{
"from": "system",
"value": "Add extra checks for RSS feeds\n"
},
{
"from": "human",
"value": "xml.instruct! :xml, :version => \"1.0\" \nxml.rss :version => \"2.0\" do\n xml.channel do\n xml.title \"FunniesApp\"\n xml.description \"Your favorite web comics, all on one page\"\n xml.lin... | ruby | chosen |
[
{
"from": "system",
"value": "Include generated_date in the response\n"
},
{
"from": "human",
"value": "json.type @dump.dump_type.constant.downcase\njson.files do\n DumpFileType.all.each do |dft|\n json.set! dft.constant.downcase, @dump.dump_files.where(dump_file_type: dft).each do |df|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Put github page as homepage\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/pbcopy/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Josh Cheek\"]\n gem.email = [\"josh.cheek@gmai... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug showing sites on setup dashboard.\n"
},
{
"from": "human",
"value": "class Setup::DashboardController < Setup::BaseController\n \n def index\n begin\n @sites = Site.find(:all, :order => 'name')\n rescue\n @sites = []\n end\n end\n \n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix theses XLS table filters\n\nChange-Id: Ibd3147b3105d681d0dcb1ebf9fe88601ce0a9ffb\n"
},
{
"from": "human",
"value": "class Xlsx::ThesesList < Xlsx::XlsxStub\n\n def initialize(theses)\n super()\n\n @theses = theses\n\n end\n\n protected\n def xlsx_conte... | ruby | chosen |
[
{
"from": "human",
"value": "Add uploader for image file\n"
},
{
"from": "gpt",
"value": "# encoding: utf-8\n\nclass FileUploader < CarrierWave::Uploader::Base\n include Cloudinary::CarrierWave\n\n # Include RMagick or MiniMagick support:\n # include CarrierWave::RMagick\n # include CarrierW... | ruby | chosen |
[
{
"from": "system",
"value": "Fix broken association; inverse_of was missing\n"
},
{
"from": "human",
"value": "class Content::Annotation < ApplicationRecord\n KINDS = %w{elide replace link highlight note}\n belongs_to :resource, class_name: 'Content::Resource', inverse_of: :annotations, requi... | ruby | chosen |
[
{
"from": "system",
"value": "Use current for approved progr reviews since complete is meant to be\nhidden for staff\n"
},
{
"from": "human",
"value": "# Leap - Electronic Individual Learning Plan Software\n# Copyright (C) 2011 South Devon College\n\n# Leap is free software: you can redistribute... | ruby | chosen |
[
{
"from": "system",
"value": "Update dependencies specs to allow the upmost versions of vlad and rake-remote_task\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"vlad-extras/version\"\n\nGem::Specification.new do |s|\n s.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Replace pessimistic constraint (~>) on 1.9 to ge (>=)\n\nSigned-off-by: Olivier Mehani <9858fe98d2c7f5f35e0d2a08f134cfc58afd42d3@nicta.com.au>\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\... | ruby | chosen |
[
{
"from": "human",
"value": "Change Photo db fields from string to text\n\nUser-uploaded images have varying lengths, and in the case of storing\nthe direct_upload_url sometimes that URL can exceed the 255 character\nlimit default for a string. Since Postgres will treat strings and\nvarchars the same intern... | ruby | chosen |
[
{
"from": "system",
"value": "Fix sprockets test to match the new space weirdness\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nclass Nutils::Filters::SprocketWheelTest < MiniTest::Unit::TestCase\n\n include Nutils::TestHelpers\n\n def test_filter\n if_have 'sprockets' do\n #... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to match the new package.json\n"
},
{
"from": "human",
"value": "require \"json\"\n\njson = File.read(File.join(__dir__, \"package.json\"))\npackage = JSON.parse(json).deep_symbolize_keys\n\nPod::Spec.new do |s|\n s.name = package[:name]\n s.version... | ruby | chosen |
[
{
"from": "system",
"value": "Use custom VestalVersions class again\n"
},
{
"from": "human",
"value": "VestalVersions.configure do |config|\n # config.class_name = \"RacingOnRails::Version\"\nend\n"
},
{
"from": "gpt",
"value": "VestalVersions.configure do |config|\n config.class_n... | ruby | chosen |
[
{
"from": "system",
"value": "Allow a config setting to specify sending mail via test and not raising errors.\n"
},
{
"from": "human",
"value": "# Settings specified here will take precedence over those in config/environment.rb\n\n# In the development environment your application's code is reloa... | ruby | chosen |
[
{
"from": "system",
"value": "Update example use in membership spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ninclude Support::ResourceExamples\n\ndescribe Fulcrum::Membership do\n include_context 'with client'\n include_context 'with resource'\n\n let(:resource) { client.me... | ruby | chosen |
[
{
"from": "system",
"value": "Use active support to_json instead of JSON.dump\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # Prevent CSRF attacks by raising an exception.\n # For APIs, you may want to use :null_session instead.\n protect_from_forge... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Use FactoryGirl.build_stubbed instead of a hand-rolled solution.\"\n\nThis reverts commit 13237e4ea7e54c4d3bc9bd8d244fe08ff0655b2f.\n\nFor some reason this was causing a seg fault on CI.\n"
},
{
"from": "human",
"value": "module ModelStubbingHelpers\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove code that didn't work\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n protect_from_forgery with: :exception\n before_action :configure_permitted_parameters, if: :devise_controller?\n\n def index\n\n end\n\n \n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Rails 5's breaking of sign in\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # Prevent CSRF attacks by raising an exception.\n # For APIs, you may want to use :null_session instead.\n protect_from_forgery with: :exce... | ruby | chosen |
[
{
"from": "system",
"value": "Write to Siphon output path when amount is zero\n\nThis ensures that the P2G gas load array is always the correct, full\nlength.\n\nCloses #1377\n"
},
{
"from": "human",
"value": "module Network\n module Technologies\n # Consumes excess energy from the testing g... | ruby | chosen |
[
{
"from": "system",
"value": "Add of ruby_code string property with binding to ast_view and ruby_view\n"
},
{
"from": "human",
"value": "require 'jrubyfx'\nrequire_relative 'ast_tree_view_builder'\n\nfxml_root File.join(File.dirname(__FILE__), \"ui\")\n\nclass VisualizerMainApp < JRubyFX::Applic... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec to kill mutation in Axiom::Types::Options\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'spec_helper'\n\ndescribe Axiom::Types::Options, '#inherited' do\n subject { descendant }\n\n let(:object) do\n Class.new(ancestor) do\n exte... | ruby | chosen |
[
{
"from": "system",
"value": "Remove message that is never displayed\n\nRequirements with default formulae cannot fail the build.\n"
},
{
"from": "human",
"value": "require \"requirement\"\n\nclass AprDependency < Requirement\n fatal true\n default_formula \"apr-util\"\n\n satisfy { MacOS::CL... | ruby | chosen |
[
{
"from": "system",
"value": "Add the EVENTS constant, inline the default process method, add final newline\n"
},
{
"from": "human",
"value": "module Dimples\n class Plugin\n def self.inherited(subclass)\n (@subclasses ||= []) << subclass\n end\n\n def self.plugins(site)\n @p... | ruby | chosen |
[
{
"from": "system",
"value": "Add tiny refactoring: Use unless to raise Exception\n"
},
{
"from": "human",
"value": "require 'ostruct'\nrequire \"open-uri\"\nrequire \"nokogiri\"\nrequire_relative \"lyricfy/version\"\nrequire_relative \"lyricfy/uri_helper\"\nrequire_relative \"lyricfy/lyric_prov... | ruby | chosen |
[
{
"from": "system",
"value": "Format slugging percentage calc for readability\n"
},
{
"from": "human",
"value": "module BaseballStats\n module Calculators\n class SluggingPercentage\n include Calculators\n attr_accessor :team_id\n\n def initialize(raw_data, year, team_id)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add back in compose method\n"
},
{
"from": "human",
"value": "class CovalenceNotification < ActiveRecord::Base\n belongs_to :producer, :polymorphic => true\n belongs_to :consumer, :polymorphic => true\n\n # validates_presence_of :flavor # I haz a flavor\n valid... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec for 1.2.0 release\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"FileKit\"\n s.version = \"1.1.0\"\n s.summary = \"Simple and expressive file management in Swift.\"\n s.hom... | ruby | chosen |
[
{
"from": "system",
"value": "Add `find_context' and `find_project' methods\n"
},
{
"from": "human",
"value": "require 'mastodon/version'\n\nclass Mastodon\n\n # +todo+: An array of strings (each being an individual todo item)\n def initialize(todo)\n @lines = todo.map{|line| line.s... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Bump bundler to 1.0.0.beta.3\"\n\n(It's not out yet)\n\nThis reverts commit 64cee90c0f6bbbb2a53ffe71655a7cee1e6c99be.\n"
},
{
"from": "human",
"value": "version = File.read(File.expand_path(\"../RAILS_VERSION\",__FILE__)).strip\n\nGem::Specification.new do ... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for arrays of scalar values\n"
},
{
"from": "human",
"value": "require 'ostruct'\n\nclass Mws::Serializer\n\n def initialize(exceptions={})\n @exceptions = exceptions\n end\n\n def xml_for(data, builder, context=nil)\n data.each do | key, value ... | ruby | chosen |
[
{
"from": "system",
"value": "Bring the articles back home [ci skip]\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n# A simple implementation of dynamic programming table in the following\n# form: $\\pi(i, u, v)$. where $i$ is an index and $u, v$ are elements of\n# a finite set of tags.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error codes not being displayed in exception messages properly\n"
},
{
"from": "human",
"value": "module Neptune\n class Error < StandardError\n attr_reader :inner_exception\n\n def initialize(message = nil, inner_exception = nil) #:nodoc:\n super(me... | ruby | chosen |
[
{
"from": "system",
"value": "Make surer to YAMLify text if they were not String before\n"
},
{
"from": "human",
"value": "module Tolk\n class Translation < ActiveRecord::Base\n set_table_name \"tolk_translations\"\n\n serialize :text\n\n validates_uniqueness_of :phrase_id, :scope => :... | ruby | chosen |
[
{
"from": "system",
"value": "Add user login to pass test\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass QandasControllerTest < ActionDispatch::IntegrationTest\n \n def setup\n @qanda = qandas(:one)\n @user = users(:carsten)\n end\n\n test \"should get index\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix class name resolution issue"
},
{
"from": "human",
"value": "#--\n# Copyright (c) 2009 Michael Rykov\n#++\n\nmodule Stapler\n module Helper\n StaplerRoot = \"/stapler\"\n\n def self.included(base)\n base.send :alias_method_chain, :rewrite_asset_path,... | ruby | chosen |
[
{
"from": "system",
"value": "Add chore for updating student risk levels\n"
},
{
"from": "human",
"value": "namespace :chores do\n desc 'Update counter caches for Absence and Tardy'\n task update_absence_and_tardy_counts: :environment do\n Absence.find_each(&:save)\n Tardy.find_each(&:sa... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to re-index specific classes\n"
},
{
"from": "human",
"value": "# Copyright 2013 Square 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 o... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up an ambiguous argument case.\n"
},
{
"from": "human",
"value": "require \"test/unit\"\nrequire \"ply\"\n\nclass TestPly2Ascii < Test::Unit::TestCase\n def test_ply2ascii\n assert system(\"env RUBYOPT=-I./lib bin/ply2ascii examples/cube_binary_big_endian.... | ruby | chosen |
[
{
"from": "system",
"value": "Include content as well as data licenses. Sort license list\n"
},
{
"from": "human",
"value": "require 'json'\n\nmodule LicenseHelper\n\n LICENSE_ARRAY = JSON.parse(File.read(File.join(Rails.root, 'public', 'licenses.json')))\n DATA_LICENSE_ARRAY = LICENSE_ARRAY.s... | ruby | chosen |
[
{
"from": "human",
"value": "Add missing openid nuke migration"
},
{
"from": "gpt",
"value": "class Nukeopenid < ActiveRecord::Migration\n def self.up\n drop_table :open_id_authentication_associations\n drop_table :open_id_authentication_nonces\n remove_column :accounts, :openid_enable... | ruby | chosen |
[
{
"from": "system",
"value": "Remove version specific details from Diskmaker X\n\nThis removes version specific details from Diskmaker X as the URL for specific versions is no longer hosted by the creator.\n"
},
{
"from": "human",
"value": "cask 'diskmaker-x' do\n version '5.0.2'\n sha256 '9a2... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade iterm2 beta to 1.0.0.20140403\n"
},
{
"from": "human",
"value": "class Iterm2Beta < Cask\n url 'http://www.iterm2.com/downloads/beta/iTerm2-1_0_0_20140112.zip'\n homepage 'http://www.iterm2.com/'\n version '1.0.0.20140112'\n sha256 '0b435b5f40e189ecea662... | ruby | chosen |
[
{
"from": "system",
"value": "Update UncrustifyX to v. 0.4.2\n"
},
{
"from": "human",
"value": "class Uncrustifyx < Cask\n url 'http://www.cactuslab.com/uncrustifyx/UncrustifyX-0.4.1.zip'\n homepage 'https://github.com/ryanmaxwell/UncrustifyX'\n version '0.4.1'\n sha1 'bad2d93d0e75021c116692... | ruby | chosen |
[
{
"from": "human",
"value": "Add patch to the yajl JSON compatibility module to accept :symbolize_names as an option\n"
},
{
"from": "gpt",
"value": "require 'yajl/json_gem'\n\nmodule JSON\n def self.parse(str, opts=JSON.default_options)\n opts[:symbolize_keys] = opts[:symbolize_names] if op... | ruby | chosen |
[
{
"from": "system",
"value": "Configure Window’s environments to use `bsdtar`\n\nThe Ruby DevKit ships with `bsdtar` instead of `tar`. This change just \nensures the environment is configured to use it.\n\nUp until this point we have gotten lucky as our ChefDK builds build Chef \nfirst which in turn copies ... | ruby | chosen |
[
{
"from": "system",
"value": "Add better handling for a failure in a forked process\n"
},
{
"from": "human",
"value": "require 'singleton'\n\nmodule WishETL\n class Runner\n include Singleton\n\n def initialize\n @steps = []\n @pids = []\n end\n\n def flush\n @steps =... | ruby | chosen |
[
{
"from": "system",
"value": "Include `Whalebrew.reset!` in the test setup\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire \"spec_helper\"\n\ndescribe Bundle::Dumper do\n subject(:dumper) { described_class }\n\n before do\n allow(Bundle).to receive(:cask_installe... | ruby | chosen |
[
{
"from": "system",
"value": "Remove tests for removed code\n"
},
{
"from": "human",
"value": "context Blinkbox::Onix2Processor::Reader do\n describe \"while reading series\" do\n it \"must extract series name and number\" do\n book = process_xml_with_service <<-XML\n <ONIXmessage>... | ruby | chosen |
[
{
"from": "system",
"value": "Write 'RUPNP::SSDP::Listener should ignore M-SEARCH requests' spec.\n"
},
{
"from": "human",
"value": "require_relative '../spec_helper'\n\nmodule RUPNP\n module SSDP\n\n describe Listener do\n include EM::SpecHelper\n\n it \"should receive alive and b... | ruby | chosen |
[
{
"from": "system",
"value": "Fix leaky constant declaration in Notifiable test\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nRSpec.describe Hertz::Notifiable do\n let(:user) { create(:user) }\n\n describe '.notifications' do\n let!(:notification) { create(:notificatio... | ruby | chosen |
[
{
"from": "system",
"value": "Add patch for CocoaPods plugins until next release\n"
},
{
"from": "human",
"value": "require \"formula\"\n\nclass Cocoapods < Formula\n homepage \"https://github.com/keith/cocoapods/\"\n url \"http://keith.github.io/CocoaPods/cocoapods-0.37.2.tar.gz\"\n sha1 \"f... | ruby | chosen |
[
{
"from": "system",
"value": "Remove resource bundles form podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"BoxesView\"\n s.version = \"0.1.1\"\n s.summary = \"A UIView layed out in boxes\"\n\n s.description = <<-DESC\n BoxesVie... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec source repository and edit pod version\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"SwiftSocket\"\n s.version = \"1.2\"\n s.summary = \"A cool framework to work with TCP and UDP sockets\"\n\n s.descripti... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Opera Developer.app to v29.0.1795.14\n"
},
{
"from": "human",
"value": "cask :v1 => 'opera-developer' do\n version '29.0.1795.0'\n sha256 '33b33c56d079c524e43e41ff588f3cfa6bc3481f87f4c4705623220464462023'\n\n url \"http://get.geo.opera.com/pub/opera-devel... | ruby | chosen |
[
{
"from": "system",
"value": "Move from emitting words to emitting tokens.\n"
},
{
"from": "human",
"value": "# Parse nginx configs\n\n\nclass NginxParser\n def parse_path(path)\n File.open(path, 'r') do |f|\n self.parse_stream(f)\n end\n end\n \n def parse_file(file)\n self.pa... | ruby | chosen |
[
{
"from": "system",
"value": "Remove redundant GDS SSO initializer config\n\nThis was made redundant in [1].\n\n[1]: https://github.com/alphagov/gds-sso/pull/241\n"
},
{
"from": "human",
"value": "GDS::SSO.config do |config|\n config.user_model = \"User\"\n\n # set up ID and Secret in a way ... | ruby | chosen |
[
{
"from": "system",
"value": "FIX: Increase year window to 1000\n"
},
{
"from": "human",
"value": "class TeachingPeriod < ActiveRecord::Base\n has_many :units\n\n validates :period, length: { minimum: 1, maximum: 20, allow_blank: false }, uniqueness: true\n validates :year, length: { is: 4, a... | ruby | chosen |
[
{
"from": "system",
"value": "Use puppetdb directly instead of through inventory service\n"
},
{
"from": "human",
"value": "#!/usr/bin/ruby\n\nrequire 'hiera'\nrequire 'puppet'\nrequire 'json'\nrequire 'sinatra'\n\nhiera = Hiera.new(:config => File.join(Hiera::Util.config_dir, 'hiera.yaml'))\nPu... | ruby | chosen |
[
{
"from": "system",
"value": "Create redis set for discussions\n"
},
{
"from": "human",
"value": "require 'singleton'\n\nclass GlobalFeed\n include Singleton\n\n def initialize\n @key = Nest.new(:global_feed)\n end\n\n def self.[](ignored_id)\n # to support listeners created in create_... | ruby | chosen |
[
{
"from": "system",
"value": "Modify zone sample data for adding kind\n"
},
{
"from": "human",
"value": "eu_vat = Spree::Zone.create!(name: \"EU_VAT\", description: \"Countries that make up the EU VAT zone.\")\nnorth_america = Spree::Zone.create!(name: \"North America\", description: \"USA + Can... | ruby | chosen |
[
{
"from": "system",
"value": "Synchronize avatar only if available\n"
},
{
"from": "human",
"value": "class DiscourseSynchronizationWorker < DiscourseWorker\n include Sidekiq::Worker\n\n def perform(user_id)\n \tfor_each_tenant(user_id) do |u,t|\n client(t) do |c|\n c.sync_sso(\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Rename the session identifier to match the database name\n"
},
{
"from": "human",
"value": "# Filters added to this controller apply to all controllers in the application.\n# Likewise, all the methods added will be available for all controllers.\n\nclass Application... | ruby | chosen |
[
{
"from": "system",
"value": "Set Specified Versions for Alamofire, EVReflection and SwiftyJSON on PodSpec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"WarpSDK\"\n s.version = \"1.0.6\"\n s.summary = \"The Warp iOS SDK is a library designed to work ... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop-rspec dependency version to >= 1.9.1\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"onkcop/version\"\n\nGem::Specification.new do |sp... | ruby | chosen |
[
{
"from": "system",
"value": "Add remaining_size method to BMFF::Box::Base class.\n\nThis method returns a remaining size of itself.\n"
},
{
"from": "human",
"value": "# coding: utf-8\n# vim: set expandtab tabstop=2 shiftwidth=2 softtabstop=2 autoindent:\n\nclass BMFF::Box::Base\n attr_accessor... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Require version 0.9.1 of oauth2 gem.\"\n\nThis reverts commit 00b3ca8b546f5e3dfd9f14562cf5c00b69482b4b.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.inclu... | ruby | chosen |
[
{
"from": "system",
"value": "Jade::Template: Patch config-fetching to support Rails 4.2.x.\n\nCloses #1.\n"
},
{
"from": "human",
"value": "require 'tilt'\n\nmodule Jade\n class Template < Tilt::Template\n\n def self.engine_initialized?\n defined? ::Jade\n end\n\n def initialize_... | ruby | chosen |
[
{
"from": "system",
"value": "Define SA in the PublicBody Module\n"
},
{
"from": "human",
"value": "# Add a callback - to be executed before each request in development,\n# and at startup in production - to patch existing app classes.\n# Doing so in init/environment.rb wouldn't work in developme... | ruby | chosen |
[
{
"from": "system",
"value": "Rename private method in Mapping\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Ramom\n\n class Mapping\n\n include Concord.new(:entity_registry, :entries)\n\n def initialize(entity_registry, entries = EMPTY_HASH, &block)\n super(entity_r... | ruby | chosen |
[
{
"from": "system",
"value": "Fix title for atom entries\n"
},
{
"from": "human",
"value": "require 'rss'\nrequire 'open-uri'\nrequire 'open_uri_redirections'\nrequire 'parallel'\n\nmodule RSS\n module Atom\n class Feed\n class Updated\n def to_date\n @content\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Unify code coverage output between UTs and live tests\n"
},
{
"from": "human",
"value": "require 'simplecov'\n\nSimpleCov.start do\n add_filter '/functional_test/'\n coverage_dir 'fv_coverage'\nend\n\nrequire 'minitest/autorun'\nrequire 'minitest-spec-context'\nre... | ruby | chosen |
[
{
"from": "system",
"value": "Allow newer versions of pry to be used\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nrequire File.expand_path('../lib/pry-nav/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.name = 'pry-nav'\n gem.version = PryNav::VER... | ruby | chosen |
[
{
"from": "system",
"value": "Fix error exposed by running rspec in RubyMine\n"
},
{
"from": "human",
"value": "# Monkey patching patterns lifted from\n# https://github.com/thoughtbot/airbrake/blob/master/lib/airbrake/rake_handler.rb\nmodule ExceptionNotifier\n module RakePatch\n def self.in... | ruby | chosen |
[
{
"from": "system",
"value": "Fix missing span causing misalignment in org logos\n\nhttps://www.pivotaltracker.com/story/show/58077240\n"
},
{
"from": "human",
"value": "module LogoHelper\n def logo_classes(options = {})\n logo_class = ['organisation-logo']\n logo_class << 'stacked' if op... | ruby | chosen |
[
{
"from": "system",
"value": "Support rails 3.2 in install generator\n"
},
{
"from": "human",
"value": "require 'rails/generators'\nrequire 'rails/generators/migration'\nrequire 'rails/generators/active_record'\n\nmodule NetsuiteRails\n module Generators\n class InstallGenerator < Rails::Gen... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the email subject line. In preparation for moving away from AWS."
},
{
"from": "human",
"value": "class LoadMailer < ApplicationMailer\n\n def self.send_notifications(load_event)\n emails = ['sheri.tibbs@duke.edu']\n emails.each do |email|\n send_no... | ruby | chosen |
[
{
"from": "system",
"value": "Update the signup email subject\n"
},
{
"from": "human",
"value": "class UserMailer < ActionMailer::Base\n default from: \"Ultimate Bundles <customerservice@ultimate-bundles.com>\"\n\n def signup_email(user)\n @user = user\n @twitter_message = \"... | ruby | chosen |
[
{
"from": "system",
"value": "Put hash generation to a separate method.\n"
},
{
"from": "human",
"value": "class AccessToken < ActiveRecord::Base\n belongs_to :repository\n attr_accessible :expiration, :token\n\n scope :expired, ->() { where('expiration <= ?', Time.now) }\n scope :unexpired,... | ruby | chosen |
[
{
"from": "system",
"value": "Add rails to dev dependencies"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'pieces/version'\n\nGem::Specification.new do |spec|\n spec.name = 'pieces'\n spec.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the Railtie to run on before_configuration\n"
},
{
"from": "human",
"value": "class Armoire\n class Railtie < Rails::Railtie\n initializer \"armoire.load_config\" do\n Armoire.load! Rails.root.join('config', 'application.yml')\n end\n end\nend\n"
... | ruby | chosen |
[
{
"from": "human",
"value": "Create and push a git tag every time a deployment happens.\n"
},
{
"from": "gpt",
"value": "set :git_remote, \"origin\"\n\nnamespace :tags do\n desc <<-TEXT\n Tag the (git) repository with the release name and push that tag back\n upstream. This is double-entr... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing `license` property to gemspec"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift 'lib'\nrequire 'related/version'\n\nGem::Specification.new do |s|\n s.name = 'related'\n s.version = Related::Version\n s.summary = 'Related is a Redis-ba... | ruby | chosen |
[
{
"from": "system",
"value": "Add specification checking to interface comparison logic\n"
},
{
"from": "human",
"value": "module RSpec\n module Contracts\n class Interaction\n attr_reader :interface_name, :method_name, :arguments, :return_value\n\n def initialize(interface_name, me... | ruby | chosen |
[
{
"from": "system",
"value": "Update rspec requirement to 3.0.0.beta1.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = \"lita-imgflip\"\n spec.version = \"1.0.2\"\n spec.authors = [\"Henrik Sjökvist\"]\n spec.email = [\"henrik.sj... | ruby | chosen |
[
{
"from": "system",
"value": "Fix buggy auto-correct for 'format' method\n\nPreviously we changed to use the Kernel 'format' method, but this\nconflicts with an app-specific 'format' method. This switches to\nusing 'sprintf' and disables the associated Cop. Unfortantely the\nterm 'format' is too prevalent i... | ruby | chosen |
[
{
"from": "system",
"value": "Add debugging code for phone number\n"
},
{
"from": "human",
"value": "module YelpHelper\n def YelpHelper.ping_yelp(is_fancy, category_filter, radius_filter, is_vegetarian, location)\n p \"Inside ping yelp\"\n params = {sort:'2'}\n\n term = \"restaurants\"... | ruby | chosen |
[
{
"from": "system",
"value": "Reorganize for heroku build pack\n"
},
{
"from": "human",
"value": "require \"frontend_server/version\"\n\nrequire 'yaml'\nrequire 'rack/reverse_proxy'\nrequire 'rack/rewrite'\nrequire 'rake-pipeline'\nrequire 'rake-pipeline/middleware'\nrequire 'rake-pipeline-web-f... | ruby | chosen |
[
{
"from": "system",
"value": "Fix sorting issues for months and years\n"
},
{
"from": "human",
"value": "class NewsArchive\n attr_accessor :entries, :years\n\n def self.generate\n self.new.map_entries\n end\n\n def initialize\n @entries = BlogEntry.all\n find_years\n end\n\n def f... | ruby | chosen |
[
{
"from": "system",
"value": "Add tracking to option select filters\n"
},
{
"from": "human",
"value": "class SelectFacet < FilterableFacet\n def allowed_values\n facet['allowed_values']\n end\n\n def options\n # NOTE: We use a symbol-based hash here unlike all our other hash\n # data... | ruby | chosen |
[
{
"from": "system",
"value": "Use symbols, not strings, for component object keys\n\nWe should only use one style of keys for objects used in components,\nto avoid reduce confusion when using components. Consistency is good.\n\nAfter discussion with @edds we agreed to use symbols as this makes\nmore sense i... | ruby | chosen |
[
{
"from": "system",
"value": "Add validations method for shortcut\n"
},
{
"from": "human",
"value": "module Openlogi\n class Client\n attr_accessor :last_response\n\n def configure\n yield configuration\n end\n\n def configuration\n @configuration ||= Openlogi::Configurati... | ruby | chosen |
[
{
"from": "system",
"value": "Test handles multiple exception types depending on version of RestClient.\n"
},
{
"from": "human",
"value": "require_relative '../test_helper'\n\nclass BasicTest < Test::Unit::TestCase\n def client\n @client ||= FHIR::Client.new(\"feed-test\")\n end\n\n def te... | ruby | chosen |
[
{
"from": "system",
"value": "Return the response from yield\n"
},
{
"from": "human",
"value": "# Curses reference:\n# http://www.ruby-doc.org/stdlib-1.9.3/libdoc/curses/rdoc/Curses.html\n\nrequire 'curses'\ninclude Curses\n\nmodule OS\n def OS.windows?\n (/cygwin|mswin|mingw|bccwin|wince|em... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused configuration about executables\n"
},
{
"from": "human",
"value": "lib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"amakanize/version\"\n\nGem::Specification.new do |spec|\n spec.name = \... | ruby | chosen |
[
{
"from": "system",
"value": "Use effective_url instead of url for logging\n\nWhenever I look at logs from ethon, I get something like \r\n```performed EASY url= response_code=200 return_code=ok total_time=0.28435``` . \r\n\r\nI'm on OSX, ethon version 0.7.\r\n\r\nThis seems to fix it so that I can see the ... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify scheduling of different types of tasks.\n"
},
{
"from": "human",
"value": "module Sweep\n\tclass Scheduler\n\t\tdef initialize(config)\n\t\t\t@tasks = []\n\t\t\t@semaphore = Mutex.new\n\t\t\t@config = config\n\t\tend\n\n\t\tdef taskCount\n\t\t\t@tasks.size\n... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.