conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Refactor to add event status constant.\n"
},
{
"from": "human",
"value": "class Resource < ActiveRecord::Base\n include Loggable\n\n belongs_to :resource_type\n has_many :events\n\n validates :name, :resource_type, presence: true\n\n delegate :name, to: :resour... | ruby | chosen |
[
{
"from": "system",
"value": "Change to obey method visiblity\n"
},
{
"from": "human",
"value": "if ENV['COVERAGE'] || ENV['TRAVIS']\n require 'simplecov'\n require 'coveralls'\n\n SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[\n SimpleCov::Formatter::HTMLFormatter,\n Cover... | ruby | chosen |
[
{
"from": "system",
"value": "Load all lib files for more accurate coverage\n\nonly when it's going to run entire spec files (`bundle exec rspec`)\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\n\nrequire 'simplecov'\nSimpleCov.start\n\n# require 'e... | ruby | chosen |
[
{
"from": "system",
"value": "[tdd] Move TODOs to the beginning of files\n"
},
{
"from": "human",
"value": "require 'serverspec'\nrequire 'net/ssh'\nrequire 'lib/docker'\nrequire 'lib/vagrant'\n\ninclude SpecInfra::Helper::Exec\ninclude SpecInfra::Helper::DetectOS\ninclude SpecInfra::Helper::Ssh... | ruby | chosen |
[
{
"from": "system",
"value": "Speed up tests by ~90%.\n\nMake the helper method #event_happened much more efficient when the\nevent count is > 1. Prior to this change, event_happened(:times => N)\nwould make N POST requests to the app; now, it makes just one and sets\nthe :quantity parameter to N.\n\nThis s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix require order for accurate test coverage\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'active_support/inflector'\nrequire 'rspec'\nrequire 'webmock/rspec'\nrequire 'vcr'\nrequire 'isbm_adaptor'\n\nif ENV['COVERAGE'] == 'on'\n require 'coverall... | ruby | chosen |
[
{
"from": "system",
"value": "Use local copy when running specs\n"
},
{
"from": "human",
"value": "$:.push File.join(File.dirname(__FILE__), '..', 'lib')\n\nrequire 'rubygems'\nrequire 'spec'\nrequire 'merb-core'\nrequire 'merb-gen'\nrequire 'generators/cucumber'\nrequire 'templater/spec/helpers... | ruby | chosen |
[
{
"from": "human",
"value": "Test script to insert a row into a mock PHIN MS\n"
},
{
"from": "gpt",
"value": "require 'sequel'\nrequire 'csv'\n\ninput = File.read ARGV[0]\nmessages = CSV.parse(input, headers: true)\n\nrow_hash = messages[0].to_h\n\nlower_row = {}\n\nrow_hash.each_pair do |k, v|\... | ruby | chosen |
[
{
"from": "system",
"value": "Add default values to Puma configuration\n"
},
{
"from": "human",
"value": "workers ENV['SERVER_WORKER_COUNT']\n\nthreads_count = ENV['SERVER_MAX_THREADS_COUNT']\nthreads threads_count, threads_count\n\npreload_app!\n\nport ENV['SERVER_PORT']\nenvironment ENV['RACK_... | ruby | chosen |
[
{
"from": "system",
"value": "Update SalesPage Factory for call_details\n\nAdd the call_details attribute to the SalesPage model factory.\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :sales_page do\n club\n\n benefit1 { Faker::Lorem.words(rand(5) + 1).join \" \... | ruby | chosen |
[
{
"from": "system",
"value": "Implement failing feature specs around sign in\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Signing in' do\n context 'when visiting a protected page' do\n context 'with valid credentials' do\n context 'when user exists locally' do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Set :cpan_test? attribute to false for IPC::Session rspec test\n"
},
{
"from": "human",
"value": "require \"spec_setup\"\nrequire \"fpm\" # local\nrequire \"fpm/package/cpan\" # local\n\nhave_cpanm = program_exists?(\"cpanm\")\nif !have_cpanm\n Cabin::Channel.get(\... | ruby | chosen |
[
{
"from": "system",
"value": "Use the new test-utils name from Rails.\n"
},
{
"from": "human",
"value": "module WorkerMacros\n def use_workers\n after(:each) do\n old = Backend.mock\n Backend.mock = false\n Backend.wait_for_all_workers\n Backend.mock = old\n end\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Use the webkit driver to run all tests.\n"
},
{
"from": "human",
"value": "\nrequire 'fileutils'\nrequire 'selenium-webdriver'\nrequire 'capybara'\nrequire 'capybara/cucumber'\nrequire 'capybara/dsl'\nrequire 'rspec/expectations'\nrequire 'geo_magic/remote'\n\nCapyb... | ruby | chosen |
[
{
"from": "system",
"value": "Set VCR to ignore localhost requests (breaks Poltergeist stuff)\n"
},
{
"from": "human",
"value": "require 'vcr'\nrequire 'webmock/cucumber'\n\nVCR.configure do |c|\n # Automatically filter all secure details that are stored in the environment\n ignore_env = %w{SH... | ruby | chosen |
[
{
"from": "system",
"value": "Add private header files to podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n spec.name = 'FastEasyMapping'\n spec.version = '0.5.1'\n spec.summary = 'Fast mapping from JSON to NSObject / NSManagedObject and back'\n spec.home... | ruby | chosen |
[
{
"from": "system",
"value": "Remove old helper that's now unused.\n"
},
{
"from": "human",
"value": "require 'htmlentities'\n\nmodule ApplicationHelper\n def page_title(artefact, publication=nil)\n if publication\n title = [publication.title, publication.alternative_title].find(&:prese... | ruby | chosen |
[
{
"from": "system",
"value": "Correct `event_host?` to also include admins.\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n\n def admin?\n !current_user.nil? and current_user.admin?\n end\n\n def event_host?\n host = false\n unless @event.nil?\n current_user.event_... | ruby | chosen |
[
{
"from": "system",
"value": "Rename fees block to :value_with_fees\n"
},
{
"from": "human",
"value": "review_path = ->(contribution) do\n Neighborly::Balanced::Creditcard::Engine.\n routes.url_helpers.new_payment_path(contribution_id: contribution)\nend\n\ntotal_with_fees = ->(value) do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Set Application.config.secret_key_base from an environment variable\n\nThis is necessary for us to open source the API repo\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Your secret key is used for verifying the ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix CrashPlan checksum for v3.6.3\n"
},
{
"from": "human",
"value": "class Crashplan < Cask\n url 'http://download.crashplan.com/installs/mac/install/CrashPlan/CrashPlan_3.6.3_Mac.dmg'\n homepage 'http://www.crashplan.com/'\n version '3.6.3'\n sha256 '50a15332c7... | ruby | chosen |
[
{
"from": "system",
"value": "Add hyperlink filter to list\n"
},
{
"from": "human",
"value": "require \"liquid\"\nrequire \"condensation/sanitizer\"\nrequire \"condensation/filters\"\nrequire \"condensation/version\"\n\nmodule Condensation\n FILTERS = [\n Filters::Default,\n Filters::Repl... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Further Travis CI investigation\"\n\nThis reverts commit c25c82e503d34521cfd795e847d1844564b191ba.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'ffi'\n\nmodule LibC\n extend FFI::Library\n # figures out the correct libc for each platfor... | ruby | chosen |
[
{
"from": "system",
"value": "Use google's new https support if request is ssl\n"
},
{
"from": "human",
"value": "module StrictlyUntyped\n module Googtaculous\n \n GOOGLE_PATHS = {\n 'prototype' => 'http://ajax.googleapis.com/ajax/libs/prototype/1.6.0.2/prototype.js',\n 'effects... | ruby | chosen |
[
{
"from": "system",
"value": "Update usage of Sinatra::Export 1.0.0"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire 'rubygems'\nrequire 'bundler'\n\nBundler.require\n\nclass App < Sinatra::Base\n set :root, File.dirname(__FILE__)\n register Sinatra::AdvancedRoutes\n register Sinat... | ruby | chosen |
[
{
"from": "system",
"value": "Check global.enabled instead of machine.enabled\n\nupdate_all.rb checks if @machine.config.hostmanager.enabled is set to true.\nThe default value of @enabled is set to false by config.rb.\nIf the Vagrantfile has a global value of true for enabled but it sets vm\nspecific hostma... | ruby | chosen |
[
{
"from": "human",
"value": "Change seq field in questions table from float to decimal\n"
},
{
"from": "gpt",
"value": "class ChangeSeqFieldInQuestionsTableFromFloatToDecimal < ActiveRecord::Migration\n def self.up\n \tchange_column :questions, :seq, :decimal, precision: 6, scale: 2\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Correct priority functionality on the model"
},
{
"from": "human",
"value": "module Todotxt\n class Todo\n\n attr_accessor :text\n attr_accessor :line\n attr_accessor :priority\n attr_accessor :projects\n attr_accessor :contexts\n attr_accessor :d... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec removing TODO and renaming README.md\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/daemons/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = %q{daemons}\n s.version = Daemons::VERSION\n s.date = %q{2013-06-26}\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use Rails 3's prefered interface while maintaining backwards compatibility. "
},
{
"from": "human",
"value": "ActionController::Routing::Routes.draw do |map|\n if Authorization::activate_authorization_rules_browser?\n map.resources :authorization_rules, :only =>... | ruby | chosen |
[
{
"from": "system",
"value": "Include required dependency for caching support\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__)) + '/lib/'\nrequire 'knife-cloudformation/version'\nGem::Specification.new do |s|\n s.name = 'knife-cloudformation'\n s.ve... | ruby | chosen |
[
{
"from": "system",
"value": "Edit .gemspec for dependency json gem\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'smtpapi/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a bunch of typos in the create_reviews table migration"
},
{
"from": "human",
"value": "class CreateReviewsTable < ActiveRecord::Migration\n def change\n create_table :reviews_tables do |t|\n t.integer :rating\n t.text :comment\n t.string :nc... | ruby | chosen |
[
{
"from": "system",
"value": "Support module_parent_name instead of deprecated parent_name\n"
},
{
"from": "human",
"value": "module ConsoleColor\n class Railtie < Rails::Railtie\n module IRBSetup\n def setup(*)\n super\n\n app_name = Rails.application.class.parent_name.do... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"pushing back the map\"\n\nThis reverts commit 7a88ab758602fdc7b4456f2232989c9d16429e64.\n"
},
{
"from": "human",
"value": "# This file is used by Rack-based servers to start the application.\n\nrequire ::File.expand_path('../config/environment', __FILE__)\... | ruby | chosen |
[
{
"from": "system",
"value": "Update the homepage in the gemspec"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'related_word/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Use version 1.0.2 of w3c_love as 1.1.1 has a bug\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"w3clove/version\"\n\nGem::Specification.new do |s|\n s.name = \"w3clove\"\n s.version ... | ruby | chosen |
[
{
"from": "system",
"value": "Return if no command provided\n"
},
{
"from": "human",
"value": "module LunarShell\n class InterpreterController < LunarShell::ApplicationController\n def create\n render 'clear' if command == 'clear'\n end\n\n private\n\n def arguments\n @arg... | ruby | chosen |
[
{
"from": "system",
"value": "Make sales_price compatible with spree 2.1 and Rails 4.x\n"
},
{
"from": "human",
"value": "module Spree\n module Admin\n class SalePricesController < BaseController\n\n before_filter :load_product\n\n respond_to :js, :html\n\n # Show all sale pri... | ruby | chosen |
[
{
"from": "system",
"value": "Fix: Use Object.const_defined instead of Kernel\n\nThis fixes checking const_defined? for ruby 1.8.7\n\nResources:\n\n * http://www.ruby-forum.com/topic/144313\n"
},
{
"from": "human",
"value": "module Rapidash\n module Resourceable\n\n def self.included(base)\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests for Ruby < 2.3\n\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"jekyll-mentions\"\n s.summary = \"@mention support for your Jekyll site\"\n s.version = \"1.1.3\"\n s.authors = [\"GitHub, Inc.\"]\n s.em... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests to match styles\n"
},
{
"from": "human",
"value": "class AddAuthorsOverlay < CardOverlay\n def add_author(author)\n find(\".button-secondary\", text: \"ADD A NEW AUTHOR\").click\n group = find('.add-author-form')\n within(group) do\n fill_in... | ruby | chosen |
[
{
"from": "system",
"value": "Make dependency versions less strict\n\nSigned-off-by: Jesse Stuart <a5c95b3d7cb4d0ae05a15c79c79ab458dc2c8f9e@jessestuart.ca>\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LO... | ruby | chosen |
[
{
"from": "system",
"value": "Fix sitemap generation cron command\n\nRummager is now using the name \"rummager\" in production, rather than\nsearch. This is encoded in the command which is scheduled to run\nnightly to generate sitemaps. For now, just update this.\n\nLater, this should be specified by an e... | ruby | chosen |
[
{
"from": "system",
"value": "Use the correct logo url for the shallow serializer\n"
},
{
"from": "human",
"value": "class ProductShallowSerializer < ApplicationSerializer\n attributes :name, :pitch, :slug, :logo_url, :url, :wips_count, :partners_count\n attributes :homepage_url\n\n def logo_... | ruby | chosen |
[
{
"from": "system",
"value": "Make announce method not to say \"BUNDLE_GEMFILE=\" if we're not currently setting ENV['BUNDLE_GEMFILE']"
},
{
"from": "human",
"value": "module Appraisal\n # Executes commands with a clean environment\n class Command\n BUNDLER_ENV_VARS = %w(RUBYOPT BUNDLE_PATH... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as a dev dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/contestify/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Nicolás Hock Isaza\"]\n gem.email = [\"nh... | ruby | chosen |
[
{
"from": "system",
"value": "Remove FormulaPin dependency on FileUtils\n"
},
{
"from": "human",
"value": "require 'fileutils'\n\nclass FormulaPin\n PINDIR = Pathname.new(\"#{HOMEBREW_LIBRARY}/PinnedKegs\")\n\n def initialize(f)\n @f = f\n end\n\n def path\n Pathname.new(\"#{PINDIR}/#{... | ruby | chosen |
[
{
"from": "system",
"value": "Fix version information for supervisor\n"
},
{
"from": "human",
"value": "# Creates a simple setup of an IPython notebook server, creating a dummy user, a place to store IPython notebooks, and sets up IPython notebook as a service\n\ninclude_recipe \"supervisor\"\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Increase Poltergeist timeout in specs\n\nThis is to try to avoid flaky js specs in Travis\n"
},
{
"from": "human",
"value": "require 'coveralls'\nCoveralls.wear!('rails')\nENV['RAILS_ENV'] ||= 'test'\nrequire File.expand_path('../../config/environment', __FILE__)\na... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec that change how to use library.\n"
},
{
"from": "human",
"value": "# -*- coding: utf-8 -*-\n\nrequire File.expand_path(File.dirname(__FILE__) + '/spec_helper')\n\ndescribe Userstream do\n before do\n @consumer = OAuth::Consumer.new('consumer key', 'cons... | ruby | chosen |
[
{
"from": "system",
"value": "Fix third test to accommodate changes in comments controller\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe CommentsController, :type => :controller do\n\n\tlet!(:query) { FactoryGirl.create :query }\n\n\n\tcontext \"GET #new\" do\n\t\t\n\t\ti... | ruby | chosen |
[
{
"from": "system",
"value": "Update spec to test a subcategory\n\nThe old example of a small subcategory got reorganized on-wiki so that it no longer had a sub-category.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'rails_helper'\nrequire \"#{Rails.root}/lib/impor... | ruby | chosen |
[
{
"from": "system",
"value": "Fix relying on activesupport in? method\n"
},
{
"from": "human",
"value": "module PublicActivity\n module ORM\n module ActiveRecord\n # The ActiveRecord model containing\n # details about recorded activity.\n class Activity < ::ActiveRecord::Base\... | ruby | chosen |
[
{
"from": "system",
"value": "Set env in example and fix typo.\n"
},
{
"from": "human",
"value": "require 'dcell'\nrequire 'dcell/registries/hazelcast_adapter'\nrequire 'optparse'\n\n# The DCell node_id\nname = nil\n\n# The local port for the 0MZ communication.\nport = nil\n\nregistry = {:adapte... | ruby | chosen |
[
{
"from": "system",
"value": "Clear warning with testing rails app\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.dirname(__FILE__))\n$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n\nENV[\"RAILS_ENV\"] ||= 'test'\n\nrequire 'rubygems'\n\ngem 'actionpack', '>= 3.0... | ruby | chosen |
[
{
"from": "system",
"value": "Fix class methods extending in params sanitizers\n"
},
{
"from": "human",
"value": "# ParamsSanitizer takes hash of params from html form and return other hash\n# with only params which are permitted. It's similar to Rails permitted params\n\nmodule BaseParamsSani... | ruby | chosen |
[
{
"from": "system",
"value": "Change the where clause to prevent using direct string.\n"
},
{
"from": "human",
"value": "module Sqsearch\n module ClassMethods\n def make_me_searchable(options = {})\n @fields = options[:fields]\n @fields = [@fields] unless @fields.is_a? Array\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a method to recover error messages\n"
},
{
"from": "human",
"value": "module PGPool\n #\n # = class: NodeInfo, PORO\n class NodeInfo\n INITIALIZING = 0 # This state is only used during the initialization.\n UP_NO_CONNECTIONS = 1 # Node is up. No co... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure $LOADED_FEATURES gets restored after create block\n\nPreviously, a reference to the about-to-be-mutated array was\nbeing stored as the backup to restore from at the end of the block.\n"
},
{
"from": "human",
"value": "require \"rubinius/toolset/version\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Copy only contents of folder.\n"
},
{
"from": "human",
"value": "set :css_dir, './stylesheets'\nset :js_dir, './javascripts'\nset :images_dir, './images'\nset :relative_links, true\n\nactivate :automatic_image_sizes\nactivate :relative_assets\n\nconfigure :developme... | ruby | chosen |
[
{
"from": "system",
"value": "Use warmup to precompile assets\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) 2015, Sebastian Staudt\n\nunless defined? Gallerist\n $LOAD_PATH... | ruby | chosen |
[
{
"from": "system",
"value": "Enable arity check for test\n"
},
{
"from": "human",
"value": "require 'bundler'\nBundler.require\n\nrequire \"opal/rspec\"\nrequire \"opal-jquery\"\n\nif Opal::RSpec.const_defined?(\"SprocketsEnvironment\")\n sprockets_env = Opal::RSpec::SprocketsEnvironment.new\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add Portugal to Surfline rake task\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nnamespace :surfline do\n desc 'Update forecast from Surfline'\n task update: :environment do\n spots = [\n Spot.find_by(surfline_id: 4211),\n Spot.f... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `TimeoutError` depreciation warning by using `Timeout::Error`\n\nDeprecated since Ruby 2.3.0\n"
},
{
"from": "human",
"value": "require 'net/http'\nrequire 'net/smtp'\n\n# Example:\n# begin\n# some http call\n# rescue *HTTP_ERRORS => error\n# notify_... | ruby | chosen |
[
{
"from": "system",
"value": "Use the new router DSL for Rails 3\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass RoutesTest < Test::Unit::TestCase\n class RoutingFilter::Test < Filter\n def around_recognize(path, env, &block)\n 'recognized'\n end\n\n def around_g... | ruby | chosen |
[
{
"from": "system",
"value": "Use higher timeout on Travis\n"
},
{
"from": "human",
"value": "require 'coveralls'\nCoveralls.wear!\n\nrequire 'maxitest/autorun'\nrequire 'shoulda-context'\n\n$LOAD_PATH.push File.expand_path(\"../../lib\", __FILE__)\nrequire File.dirname(__FILE__) + '/../lib/simc... | ruby | chosen |
[
{
"from": "system",
"value": "Update Rutty::Runner tests to reflect changes\n"
},
{
"from": "human",
"value": "require 'helper'\n\nclass TestRunner < Test::Unit::TestCase\n context \"A Runner instance\" do\n setup { \n @r = Rutty::Runner.new \n call_init\n }\n \n should \"... | ruby | chosen |
[
{
"from": "system",
"value": "Add tvOS target to podspec.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Swinject\"\n s.version = \"0.2.3\"\n s.summary = \"Dependency injection framework for Swift\"\n s.description = <<-DESC\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Set Swift 4.2 as Swift version\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"TraktKit\"\n s.version = \"1.0.2\"\n s.summary = \"Swift wrapper for Trakt.tv API\"\n s.homepage = \"https://github.com/MaxHasADHD/TraktKit\"\n\n s.l... | ruby | chosen |
[
{
"from": "system",
"value": "Improve exception email subject line\n"
},
{
"from": "human",
"value": "unless Rails.env.development? or Rails.env.test?\n Rails.application.config.middleware.use ExceptionNotifier,\n :email_prefix => \"[#{Rails.application.to_s.split('::').first}] \",\n :sen... | ruby | chosen |
[
{
"from": "system",
"value": "Include test case for exceptions being raised, and ensuring release\n"
},
{
"from": "human",
"value": "require 'minitest_helper'\n\nclass TestCirrus < MiniTest::Unit::TestCase\n\n def setup\n @redis = Redis.new\n @redis.flushall\n end\n\n def test_cirrus_ru... | ruby | chosen |
[
{
"from": "system",
"value": "Change up the tests a bit\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass MarkovTest < ActiveSupport::TestCase\n test \"valid twitter user generates a dictionary\" do\n user = User.create(twitter_username: \"colinfike\")\n Markov.create_twit... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure we set an actual browser_url, else the driver won't know where to go (defaulting to saucelabs.com)\n"
},
{
"from": "human",
"value": "module Sauce\n module Generators\n class InstallGenerator < Rails::Generators::Base\n source_root File.expand_pat... | ruby | chosen |
[
{
"from": "system",
"value": "Add development dependency: test-unit, webmock\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'amazon-drs/version'\n\nGem::Specification.new do |spec|\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix devise spelling in gemspec.\n"
},
{
"from": "human",
"value": "# Provide a simple gemspec so you can easily use your enginex\n# project in your rails apps through git.\nGem::Specification.new do |s|\n s.name = \"lyb_devise_admin\"\n s.summary = \"LybDeviseAdmi... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for Prometheus Service\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :service do\n project factory: :empty_project\n type 'Service'\n end\n\n factory :custom_issue_tracker_service, class: CustomIssueTrackerService do\n pr... | ruby | chosen |
[
{
"from": "system",
"value": "Check the page save the atempt\n"
},
{
"from": "human",
"value": "describe \"GET /\" do\n it \"display welcome page\" do\n visit root_path\n expect(page).to have_css(\"section h1\", text: \"Track your Bowling Scores\") \n end\n\n context \"start game\" d... | ruby | chosen |
[
{
"from": "system",
"value": "Check that other stuff can share a comment block with meta-data.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'stringio'\n\nrequire 'pith/metadata'\n\ndescribe Pith::Metadata do\n\n def metadata\n Pith::Metadata.extract_from(StringIO.new(@in... | ruby | chosen |
[
{
"from": "system",
"value": "Add another test for when the user isn't logged in\n\n* spec/request/users_spec.rb: Ensure that when a user isn't logged in\n that they get redirected to sign in.\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe \"Users\", type: :request ... | ruby | chosen |
[
{
"from": "system",
"value": "Make param test pending due to rhel5 failures\n\nSigned-off-by: Ken Barber <470bc578162732ac7f9d387d34c4af4ca6e1b6f7@bob.sh>\n"
},
{
"from": "human",
"value": "require 'spec_helper_system'\n\ndescribe \"param based tests:\" do\n def pp(params)\n pm = <<-EOS\nfir... | ruby | chosen |
[
{
"from": "system",
"value": "Move finite funcionality into approriate class\n"
},
{
"from": "human",
"value": "class Stream\n attr_reader :head\n \n def initialize(head, &block)\n @head = head\n @tail_block = block\n end\n \n def tail\n @tail_block.call\n end\n \n def [](n)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the require path for lookup_service.rb when running from a different directory.\n\ngit-svn-id: fef28697fff9bc4bae060bf37c18ee74cae4f475@1673 bc291798-7d79-44a5-a816-fbf4f7d05ffa\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire './lookup_service.rb'... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gem description, gem summary, gem homepage\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8; mode: ruby -*-\nrequire File.expand_path('../lib/era_ja/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"tomi\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Add activesupport to gem dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'konjak/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Change http client to faraday\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'tiny_http_parser/version'\n\nGem::Specification.new do |spec|\n spec.name... | ruby | chosen |
[
{
"from": "system",
"value": "Make appraisal a development dependency rather than runtime\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'country_select/version'\n\nGem::Specification.new do |s|\n s.name = 'country_sele... | ruby | chosen |
[
{
"from": "system",
"value": "Fix loading of version file from gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/omniauth-oauth2/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.add_dependency 'omniauth', '~> 1.0'\n gem.add_depen... | ruby | chosen |
[
{
"from": "system",
"value": "Enforce test case for index action in account controller.\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass AccountsControllerTest < ActionController::TestCase\n test \"should get index\" do\n get :index\n assert_response :success\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add the extension for faye.\n"
},
{
"from": "human",
"value": "require 'faye'\nFaye::WebSocket.load_adapter('thin')\n\n\nbayeux = Faye::RackAdapter.new(:mount => 'faye', :timeout => 50)\n\n\nrun bayeux"
},
{
"from": "gpt",
"value": "require 'faye'\nFaye:... | ruby | chosen |
[
{
"from": "system",
"value": "Add 'VERSION' to describe for VERSION tests\n"
},
{
"from": "human",
"value": "require_relative '../../test_helper'\n\ndescribe Gday do\n\n it \"must be defined\" do\n Gday::VERSION.wont_be_nil\n end\n\nend\n"
},
{
"from": "gpt",
"value": "require_r... | ruby | chosen |
[
{
"from": "human",
"value": "Create files for 6.5 Nested Data Structures\n"
},
{
"from": "gpt",
"value": "# RELEASE 2: NESTED STRUCTURE GOLF\n# Hole 1\n# Target element: \"FORE\"\n\narray = [[1,2], [\"inner\", [\"eagle\", \"par\", [\"FORE\", \"hook\"]]]]\n\n# attempts:\n# =======================... | ruby | chosen |
[
{
"from": "system",
"value": "Change to use different formatting and remove auto spin\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'tty-spinner'\n\nspinners = TTY::Spinner::Multi.new \"[:spinner] main\"\n\nspinners.auto_spin\n\nsp1 = spinners.register \"[:spinner] one\"\nsp2 =... | ruby | chosen |
[
{
"from": "system",
"value": "Fix gemspec to remove unnecessary dependency.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'cloud_conductor_utils/version'\n\nGem::Specification.new d... | ruby | chosen |
[
{
"from": "human",
"value": "Add a package for Enhanced Navball.\n"
},
{
"from": "gpt",
"value": "class EnhancedNavball < Kosmos::Package\n title 'Enhanced Navball'\n url 'http://kerbalspaceport.com/wp/wp-content/themes/kerbal/inc/download.php?f=uploads/2013/09/EnhancedNavBall_1_2.zip'\n\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Use require_relative instead of require\n"
},
{
"from": "human",
"value": "module Lobster\nend\n\nrequire 'lobster/version'\n\nrequire 'lobster/error_codes'\nrequire 'lobster/error'\nrequire 'lobster/result'\nrequire 'lobster/uuid'\nrequire 'lobster/identifiable'\n\... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task and usage notes.\n"
},
{
"from": "gpt",
"value": "desc \"Change an organisation slug (DANGER!).\\n\n\nThis rake task changes an organisation slug in whitehall.\n\nIt performs the following steps:\n- changes org slug\n- changes organisation_slug of users... | ruby | chosen |
[
{
"from": "system",
"value": "Print current weather condition\ngets weather codtion from weather_obj form the\nmap weather condition to the relevent terminal icon\n"
},
{
"from": "human",
"value": "module WeatherReporter\n class ConsolePrinter\n def initialize(weather_obj)\n @weather_ob... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.0.1 to 0.1.0.2\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'postgresql-connector'\n s.summary = 'PostgreSQL Connector for Sequel'\n s.version = '0.1.0.1'\n s.authors... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify gem sorting logic by download count\n"
},
{
"from": "human",
"value": "require \"bundler\"\nBundler.require(:default)\n\nrequire \"json\"\nrequire 'sinatra/reloader' if development?\n\nget \"/\" do\n erb :index\nend\n\nget \"/search\" do\n if !params[:gem]... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.