conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Fix another of craig's typos ;-)\n"
},
{
"from": "human",
"value": "class MetadataSync\n include Pethau::InitializeWith\n include Pethau::DefaultValueOf\n\n initialize_with :logger\n default_value_of :logger, NullLogger.instance\n\n def run\n @marples = clie... | ruby | chosen |
[
{
"from": "system",
"value": "Disable Rollbaar JavaScript catch feature\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nRollbar.configure do |config|\n config.access_token = ENV['ROLLBAR_ACCESS_TOKEN']\n config.enabled = false unless Rails.env.production?\n config.environm... | ruby | chosen |
[
{
"from": "system",
"value": "Allow Heroku Redis resource as well\n"
},
{
"from": "human",
"value": "require \"sidekiq/throttled\"\nSidekiq::Throttled.setup!\n\nif ENV[\"REDISCLOUD_URL\"]\n Sidekiq.configure_server do |config|\n config.redis = { url: ENV[\"REDISCLOUD_URL\"] }\n poolsize =... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused helper method and todo\n\nWill add todo as an issue in the repo\n"
},
{
"from": "human",
"value": "module Sprig\n module Helpers\n def seed_directory\n Sprig.configuration.directory\n end\n\n def sprig_environment\n Rails.env #TODO:... | ruby | chosen |
[
{
"from": "system",
"value": "Add description for Rake tasks\n"
},
{
"from": "human",
"value": "namespace :openfoodnetwork do\n namespace :specs do\n namespace :engines do\n def detect_engine_paths\n Pathname(\"engines/\").children.select(&:directory?)\n end\n\n def eng... | ruby | chosen |
[
{
"from": "system",
"value": "Remove .NET 3 installation on win2k8\n\nNo need for this anymore\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "#\n# Author:: Seth Chisamore (<schisamo@chef.io>)\n# Cookbook:: sql_server\n# Recipe:: ... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Unity to version 4.6.1"
},
{
"from": "human",
"value": "cask :v1 => 'unity' do\n version '4.6.0'\n sha256 'ceeff727f8e66ebe00bd805468da27aa996bfcd5b3a455fe65516d9a2075a395'\n\n url \"http://netstorage.unity3d.com/unity/unity-#{version}.dmg\"\n homepage '... | ruby | chosen |
[
{
"from": "system",
"value": "Use get instead of match to be compatible with Rails 4\n"
},
{
"from": "human",
"value": "module Styleguide\n module Generators\n class InstallGenerator < Rails::Generators::Base\n source_root File.expand_path('../templates', __FILE__)\n\n desc \"Adds ... | ruby | chosen |
[
{
"from": "system",
"value": "Change block variable name in gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'ruby_life/version'\n\nGem::Specification.new do |spec|\n spec.nam... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug in highlighting the active menu item\n"
},
{
"from": "human",
"value": "module ComponentHelper\n def navigation_items\n return [] unless current_user\n items = []\n\n unless content_for(:suppress_navbar_items)\n items << { text: 'Dashboard', h... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec for Lita 3.0 compatibility.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = \"lita-excuses\"\n spec.version = \"0.0.5\"\n spec.authors = [\"Mitch Dempsey\"]\n spec.email = [\"mrdempsey... | ruby | chosen |
[
{
"from": "system",
"value": "Remove packages not needed with omnibus chef\n"
},
{
"from": "human",
"value": "case node['platform']\nwhen 'debian', 'ubuntu'\n default['augeas']['packages'] = %w(libaugeas-dev ruby1.9.1-dev libxml2-dev pkg-config)\nelse\n default['augeas']['packages'] = %w(augea... | ruby | chosen |
[
{
"from": "system",
"value": "Load presets recursively from subfolders\n\nAdjusted loading of presets such that presets can be organized in subfolders\n"
},
{
"from": "human",
"value": "module Etsource\n class Scenario\n def initialize\n @etsource = Etsource::Base.instance\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug with pull in progress\n"
},
{
"from": "human",
"value": "class Project\n class PullRepo\n def self.perform(project_id)\n begin\n project = Project.find(project_id)\n rescue ActiveRecord::RecordNotFound\n return\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make change to test trigger\n"
},
{
"from": "human",
"value": "require \"serverspec\"\nrequire \"docker\"\n\ndescribe \"Dockerfile\" do \n before(:all) do \n image = Docker::Image.build_from_dir('.')\n\n set :os, family: :debian\n set :backend, :docker\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove extra describe block in test\n"
},
{
"from": "human",
"value": "require \"./lib/eval\"\n\nmodule Lasp\n describe \"eval\" do\n it \"handles simple forms\" do\n expect(Lasp::execute(\"(+ 1 1)\")).to eq 2\n end\n\n it \"handles nested forms\" do\... | ruby | chosen |
[
{
"from": "system",
"value": "Add Travis sim count as alternative\n"
},
{
"from": "human",
"value": "require 'fourflusher'\n\ndescribe Fourflusher::SimControl do\n let(:simctl) { Fourflusher::SimControl.new }\n\n describe 'finding simulators' do\n it 'can list all usable simulators' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add should throw an error if player is already added.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire_relative '../src/team.rb'\n\ndescribe Team do\n\tdescribe 'Team#name' do\n\t\tit \"Should return team's name.\" do\n\t\t\tt = Team.new 'Devils'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update rack-test requirement from ~> 0.6 to ~> 1.1\n\nUpdates the requirements on [rack-test](https://github.com/rack-test/rack-test) to permit the latest version.\n- [Release notes](https://github.com/rack-test/rack-test/releases)\n- [Changelog](https://github.com/rack-test/ra... | ruby | chosen |
[
{
"from": "system",
"value": "Add the lib directory to the load path\n"
},
{
"from": "human",
"value": "require \"abyss/navigation\"\n"
},
{
"from": "gpt",
"value": "$:.unshift(File.expand_path('..', __FILE__)) unless $:.include? File.expand_path('..', __FILE__)\n\nrequire \"abyss/na... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a bug where url is not recognized.\n"
},
{
"from": "human",
"value": "require 'net/http'\nrequire 'uri'\nrequire 'action_controller'\nrequire 'ventilation/deep_stack'\n\nmodule Ventilation\n module EsiHelper\n\n # Render resource on the edge\n def esi(res... | ruby | chosen |
[
{
"from": "system",
"value": "Add repo url to gemspec"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"cama_meta_tag/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\n s.name... | ruby | chosen |
[
{
"from": "system",
"value": "Remove trailing space from a filter generated line\n"
},
{
"from": "human",
"value": "module Compath\n class YamlFormatter\n attr_accessor :yaml\n\n def initialize(yaml)\n @yaml = yaml\n end\n\n def format\n formatters.each do |formatter|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Call method for job, easier to debug\n"
},
{
"from": "human",
"value": "module HnHistory\n Clockwork.every(5.minutes, 'photos.new') do\n current_time = Time.now.utc\n\n puts \"Photo for: #{current_time.xmlschema(3)}\"\n\n entries = RubyHackernews::Entry.al... | ruby | chosen |
[
{
"from": "system",
"value": "Use .blank? instead of .empty?\n"
},
{
"from": "human",
"value": "# rubocop:disable Style/SpecialGlobalVars\nmodule Loga\n class RevisionStrategy\n DEFAULT_REVISION = 'unknown.sha'.freeze\n\n class << self\n def call(service_version = :git)\n if s... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unecessary 'nil?' test on 'block'\n"
},
{
"from": "human",
"value": "module SpinningCursor\n class Parser\n attr_reader :originator\n\n #\n # Parses proc\n #\n def initialize(proc)\n @banner = \"Loading\"\n @type = :spinner\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Resolve bundler warnings in gemspec file\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = \"lita-send_with_option\"\n spec.version = \"0.0.1\"\n spec.authors = [\"Shu Sugimoto\"]\n spec.email = [\"shu... | ruby | chosen |
[
{
"from": "system",
"value": "Add erubi as development dependency\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nGem::Specification.new do |s|\n s.name = \"graphql-client\"\n s.version = \"0.6.3\"\n s.summary = \"GraphQL Client\"\n s.description = \"A Ruby library for decl... | ruby | chosen |
[
{
"from": "system",
"value": "Make action pack dependency optional\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"graphql-client\"\n s.version = \"0.0.18\"\n s.summary = \"GraphQL Client\"\n s.description = \"???\"\n s.homepage = \"https://github.com/github/gr... | ruby | chosen |
[
{
"from": "system",
"value": "Update rom dependency to 0.9.0.beta1\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'rom/http/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove pending spec, we'll deal with that later\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe Nark::Plugin do\n it \"stores an array of plugin available\" do\n Nark.available_plugins.should be_an Array\n end\n\n describe \"#available_p... | ruby | chosen |
[
{
"from": "human",
"value": "Add unit vs error spec (prep put_execution rework)\n"
},
{
"from": "gpt",
"value": "\n#\n# specifying flor\n#\n# Sun Feb 5 19:48:17 JST 2017\n#\n\nrequire 'spec_helper'\n\n\ndescribe 'Flor unit' do\n\n before :each do\n\n @unit = Flor::Unit.new('envs/test/etc/co... | ruby | chosen |
[
{
"from": "system",
"value": "Update minor version again because shennanigans\n"
},
{
"from": "human",
"value": "# coding: utf-8\n\nGem::Specification.new do |spec|\n spec.name = \"sanguine\"\n spec.version = \"1.1.2\"\n spec.authors = [\"Austen Madden\"]\n spec.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bad parse output in a spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'awesome_print'\n\nmodule PradLibs\n describe 'Pull Request Annoyance Delivery Libraries' do\n include Rack::Test::Methods\n\n def app\n App\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update inline docs as per real responses.\n"
},
{
"from": "human",
"value": "module Fog\n module CDN\n class HP\n class Real\n\n # List cdn properties for a container\n #\n # ==== Parameters\n # * container<~String> - Name of con... | ruby | chosen |
[
{
"from": "system",
"value": "Update Guard dependency to ~> 2.0\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'guard/test/version'\n\nGem::Specification.new do |s|\n s.name = 'guard-test'\n s.version = Guard::TestVersion:... | ruby | chosen |
[
{
"from": "system",
"value": "Use Attr_accessor for attributes in Job class\n"
},
{
"from": "human",
"value": "# Author:: Gonzalo Rodríguez-Baltanás Díaz \n# Licence:: See Licence.rdoc\n\nmodule Job\n class Job\n @project_name\n @povray_arguments\n @povray_scene_file_name\n @partia... | ruby | chosen |
[
{
"from": "system",
"value": "Fix require for old Ruby\n"
},
{
"from": "human",
"value": "require_relative 'lib/jquery-cdn/version'\n\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = 'jquery-cdn'\n s.version = JqueryCdn::VERSION\n s.summary = 'Be... | ruby | chosen |
[
{
"from": "system",
"value": "Add bugsnag to API side of things\n"
},
{
"from": "human",
"value": "module ExercismAPI\n module Routes\n class Core < Sinatra::Application\n use Bugsnag::Rack\n\n configure do\n set :root, ExercismAPI::ROOT\n end\n\n before do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Build list of all Node subclasses\n"
},
{
"from": "human",
"value": "module DeepCover\n class Node\n # Reopened in base\n end\n require_relative_dir 'node/mixin'\n require_relative 'node/base'\n require_relative_dir 'node'\nend\n"
},
{
"from": "gpt"... | ruby | chosen |
[
{
"from": "system",
"value": "Update rake requirement from ~> 12.3 to ~> 13.0\n\nUpdates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.\n- [Release notes](https://github.com/ruby/rake/releases)\n- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)\n- [... | ruby | chosen |
[
{
"from": "system",
"value": "Read stderr if stdout was empty and exit_code != 0\n"
},
{
"from": "human",
"value": "require 'json'\nrequire 'open3'\n\nmodule SimCtl\n class Executor\n class << self\n def execute(command)\n command = command.flatten.join(' ')\n $stderr.puts... | ruby | chosen |
[
{
"from": "system",
"value": "Make Match a class instead of a Struct\n"
},
{
"from": "human",
"value": "module SubDiff\n class Differ < Struct.new(:diff_collection, :diff_method)\n Match = Struct.new(:match, :prefix, :suffix, :replacement) do\n alias_method :to_str, :match\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `env` deprecated in Rails 5.0\n\n`env` is deprecated in Ralis 5.0 and removed in 5.1, this updates the code to use `request.env` instead: https://github.com/rails/rails/issues/23294"
},
{
"from": "human",
"value": "require 'active_support/concern'\n# Interact wi... | ruby | chosen |
[
{
"from": "system",
"value": "Add section, section_start and section_end helpers\n"
},
{
"from": "human",
"value": "module Gitlab\n class Util\n class << self\n def get_env(key)\n ENV[key]&.strip\n end\n\n def set_env(key, value)\n ENV[key] = value&.strip\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add helper method for stripping whitespace off env variables\n"
},
{
"from": "gpt",
"value": "module Gitlab\n class Util\n class << self\n def get_env(key)\n ENV[key]&.strip\n end\n\n def set_env(key, value)\n ENV[key] = value&.strip\... | ruby | chosen |
[
{
"from": "system",
"value": "Load newrelic/rack_app in all environments\n"
},
{
"from": "human",
"value": "puts \"Warning! The padrino-rpm gem should be loaded before the newrelic_rpm gem.\" if defined?(::NewRelic) && defined?(::NewRelic::Control)\n\nmodule NewRelic #:nodoc:\n class LocalEnvir... | ruby | chosen |
[
{
"from": "system",
"value": "Add activesupport to gemspec as a dep.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'rs-api-tools'\n s.version = '0.0.9'\n s.date = '2013-11-05'\n s.summary = \"rs-api-tools\"\n s.description = \"RightScale A... | ruby | chosen |
[
{
"from": "human",
"value": "Create method to return array\n"
},
{
"from": "gpt",
"value": "def inventory(arr) \n\treturn arr\nend\n\n\nstore = []\n\nstore << \"candy\" << \"gum\" << \"chips\" << \"soda\" << \"ice\"\n\nstore.delete_at(2)\n\nstore.insert(2, \"burrito\")\n\nstore.delete(\"candy\")... | ruby | chosen |
[
{
"from": "system",
"value": "Add rack-test dependency for tests\n"
},
{
"from": "human",
"value": "require File.expand_path('../lib/lxc/server/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"lxc-server\"\n s.version = LXC::SERVER_VERSION\n s.summary = \"API s... | ruby | chosen |
[
{
"from": "human",
"value": "Add first cut of pod spec.\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n s.name = \"DSAWSOperations\"\n s.version = \"0.5\"\n s.summary = \"Small framework to make the AWS IOS SDK less verbose and asynchronous.\"\n s.description = <<-... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the other missing commit\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Ci::SendPipelineNotificationService, services: true do\n let(:user) { create(:user) }\n let(:pipeline) { create(:ci_pipeline, user: user, status: status) }\n subject... | ruby | chosen |
[
{
"from": "system",
"value": "Add a longer TTL to facilitate bridges being slow during discovery.\n"
},
{
"from": "human",
"value": "require \"frisky/ssdp\"\nFrisky.logging_enabled = false # Frisky is super verbose\n\nmodule SparkleMotion\n module Hue\n # Helpers for SSDP discovery of bridge... | ruby | chosen |
[
{
"from": "system",
"value": "Enable using default tests for html conversion\n\nThis includes a fix to the default xpath used to select the generated\ninline output. Because asciidoctor-doctest development in branch dev is\nmostly incompatible with the latex branch now, I'm not submitting this\nupstream. We... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for distort! and private helper methods\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass TestNote < MiniTest::Test\n def setup\n @frequency = 220.to_f\n @duration = 2.0\n @sample_rate = 22050\n @total_frames = (@duration *... | ruby | chosen |
[
{
"from": "system",
"value": "Change `send_file!` reference to `send` in Static middleware\n"
},
{
"from": "human",
"value": "module Pakyow\n module Middleware\n class Static\n def initialize(app)\n @app = app\n end\n \n def call(env)\n if is_static?(env)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add 'data:' and other missing domains to SecureHeaders\n"
},
{
"from": "human",
"value": "SecureHeaders::Configuration.default do |config|\n config.csp = {\n report_only: Rails.env.production?, # default: false\n preserve_schemes: true, # default:... | ruby | chosen |
[
{
"from": "system",
"value": "Add encoding and collation to the db creation.\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: gitlab\n# Recipe:: database_mysql\n#\n\nmysql = node['mysql']\ngitlab = node['gitlab']\n\n# 5.Database\ninclude_recipe \"mysql::server\"\ninclude_recipe \"database... | ruby | chosen |
[
{
"from": "system",
"value": "Return webp if browser supports it\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nif [:local, :test].include? Rails.application.config.active_storage.service\n module ActiveStorage\n class RepresentationsController < BaseController\n in... | ruby | chosen |
[
{
"from": "system",
"value": "Revert version change (2.0.0 not released yet)\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = \"refinerycms-forms\"\n s.version = \"2.0.1\"\n s.summary = \"Form generat... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify test for deserializing an empty string\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe Vault::Rails::JSONSerializer do\n [\n nil,\n false,\n true,\n \"\",\n \"foo\",\n {},\n { \"foo\" => \"bar\" },\n [],\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add note on how to install test dependency.\n"
},
{
"from": "human",
"value": "require 'http'\nr = HTTP.post(\"http://localhost:8000/tag\", :body => \"Fördomen har alltid sin rot i vardagslivet - Olof Palme\")\nputs r.to_s\n"
},
{
"from": "gpt",
"value":... | ruby | chosen |
[
{
"from": "system",
"value": "Fix migration for dataset commmits\n"
},
{
"from": "human",
"value": "class AssociateDatasetsWithCommits < ActiveRecord::Migration[5.0]\n def change\n add_reference :commits, :dataset, index: true\n\n Commit.all.each do |commit|\n dataset = Dataset.find_... | ruby | chosen |
[
{
"from": "system",
"value": "Remove deprication warning around Devise::TestHelpers\n"
},
{
"from": "human",
"value": "# This file is copied to spec/ when you run 'rails generate rspec:install'\nENV[\"RAILS_ENV\"] ||= 'test'\nrequire 'spec_helper'\nrequire File.expand_path(\"../../config/environ... | ruby | chosen |
[
{
"from": "system",
"value": "Use capture_io instead of must_output in minitest\n"
},
{
"from": "human",
"value": "require 'minitest/autorun'\nrequire 'minitest/pride'\nrequire 'omf_common/logger'\n\ndescribe OmfCommon::Logger do\n describe \"when used to log message\" do\n it \"must print a... | ruby | chosen |
[
{
"from": "system",
"value": "Add albino and pygmentize dependencies.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/rack-syntax-highlighter/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Glenn Gillen\"]\n gem.ema... | ruby | chosen |
[
{
"from": "system",
"value": "Make it resilient to encoding issues\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire 'open3'\n\n\nmodule CartoDB\n module Importer2\n\n # This class is responsible for analyzing a file through ogrinfo.\n class OgrInfo\n DEFAULT_BINARY = `wh... | ruby | chosen |
[
{
"from": "system",
"value": "Deploy to both foundation servers\n"
},
{
"from": "human",
"value": "# use local key for authentication\nssh_options[:forward_agent] = true\ndefault_run_options[:pty] = true\n\nset :application, \"foundation\"\nset :repository, \"git@github.com:zurb/#{application}.... | ruby | chosen |
[
{
"from": "human",
"value": "Add rudimentary AWS client test\n\nIt current mysteriously fails sometimes v_v\n"
},
{
"from": "gpt",
"value": "require File.expand_path(\"../../test_helper\", __FILE__)\n\ninclude RedmineS3\n\nclass ConfigurationTest < ActiveSupport::TestCase\n\n test \"basic aws f... | ruby | chosen |
[
{
"from": "system",
"value": "Add Lookback framework to the podspec\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 = pack... | ruby | chosen |
[
{
"from": "system",
"value": "Make bundler happy by providing a summary\n\n- Silences warning\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'jasmine/runners/selenium/version'\n\nGem... | ruby | chosen |
[
{
"from": "system",
"value": "Add a test to gem install nokogiri\n"
},
{
"from": "human",
"value": "require \"minitest/autorun\"\n\nclass TestGemInstall < Minitest::Test\n def test_gem_install\n res = system <<-EOT.gsub(\"\\n\", \"&\")\ncd test/helper/testgem\ngem build testgem.gemspec\ngem ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing tests due to lack of accept_license\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "# Chef Server Core\nchef_ingredient 'chef-server' do\n version node['test']['chef-server-core']['versio... | ruby | chosen |
[
{
"from": "system",
"value": "Make BCrypt a real dependency\n\n[ci-skip]\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'zero_auth/version'\n\nGem::Specification.new do |spec|\n spe... | ruby | chosen |
[
{
"from": "system",
"value": "Add exit code so we can break out of the execution flow more easily\n"
},
{
"from": "human",
"value": "module LearnWeb\n class Client\n module User\n class Me\n attr_accessor :response, :id, :first_name, :last_name, :full_name,\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add YARD for ClassMacros support module\n"
},
{
"from": "human",
"value": "module ROM\n module ClassMacros\n def defines(*args)\n mod = Module.new\n\n args.each do |name|\n mod.module_eval <<-RUBY, __FILE__, __LINE__ + 1\n def #{name}(v... | ruby | chosen |
[
{
"from": "system",
"value": "Set endpoint_key on sinatra class\n"
},
{
"from": "human",
"value": "require \"sinatra\"\nrequire \"endpoint_base\"\n# require \"pry\"\n\nrequire File.expand_path(File.dirname(__FILE__) + '/lib/qb_integration')\n\nclass QuickbooksEndpoint < EndpointBase::Sinatra::Ba... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Directly inheriting from ActiveRecord::Migration is not supported\n"
},
{
"from": "human",
"value": "class AddMissingIndexes < ActiveRecord::Migration\n def self.up\n add_index addresses_table_name, :user_id\n add_index addresses_table_name, :deleted_at\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake to dev dependencies\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/fernet/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Harold Giménez\"]\n gem.email = [\"harold.gimen... | ruby | chosen |
[
{
"from": "system",
"value": "Remove duplicate dependency on Rails to prevent RubyGems error.\n\nSee https://github.com/rubygems/rubygems/blob/master/lib/rubygems/specification.rb#L2795\n"
},
{
"from": "human",
"value": "\n# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/themes_for_ra... | ruby | chosen |
[
{
"from": "system",
"value": "Update Ridibooks to versioned url\n"
},
{
"from": "human",
"value": "cask :v1 => 'ridibooks' do\n version :latest\n sha256 :no_check\n\n url 'http://ridibooks.com/getapp?os=mac'\n name 'Ridibooks'\n homepage 'https://ridibooks.com/support/app/download'\n licen... | ruby | chosen |
[
{
"from": "system",
"value": "Update App Engine Go to 1.9.13\n"
},
{
"from": "human",
"value": "module Autoparts\n module Packages\n class GoogleAppEngineGo < Package\n name 'googleappenginego'\n version '1.9.11'\n description 'Google App Engine for Go: A CLI for managing Goog... | ruby | chosen |
[
{
"from": "system",
"value": "Fix uninitialized constant issue with git deploy\n"
},
{
"from": "human",
"value": "require 'awestruct/deployers'\n\nmodule Awestruct\n module Deploy\n\n class GitHubPagesDeploy\n def initialize( site_config, deploy_config )\n @site_path = site_confi... | ruby | chosen |
[
{
"from": "system",
"value": "Add badge hashtags to tweets\n"
},
{
"from": "human",
"value": "module DesignerNews\n module StoryFormatter\n SHORT_URL_LENGTH_HTTPS = 23\n WHITESPACE = 2\n MAX_TWEET_LENGTH = 140 - SHORT_URL_LENGTH_HTTPS - WHITESPACE\n\n def tweet\n [title.truncat... | ruby | chosen |
[
{
"from": "system",
"value": "Mark param as unused in SummaryPeriod validator\n"
},
{
"from": "human",
"value": "require \"fit_commit/validators/base\"\n\nmodule FitCommit\n module Validators\n class SummaryPeriod < Base\n def validate_line(lineno, text, branch_name)\n if lineno ... | ruby | chosen |
[
{
"from": "system",
"value": "Handle 204 responses with HTTP keepalive\n\nIf the HTTP API is behind a proxy which has HTTP keepalive enabled, Faraday will assign a nil body on 204 responses."
},
{
"from": "human",
"value": "require \"hashie\"\nrequire \"faraday\"\nrequire \"faraday_middleware\"\... | ruby | chosen |
[
{
"from": "human",
"value": "Add a placeholder action to check if machine provider is compatible with the plugin\n"
},
{
"from": "gpt",
"value": "module Vagrant\n module Notify\n module Action\n class CheckProvider\n def initialize(app, env)\n @app = app\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix an issue with naming\n"
},
{
"from": "human",
"value": "require 'web_blocks/facade/base'\n\nmodule WebBlocks\n module Facade\n class RegistrationScope < Base\n\n def initialize context\n super context\n @@component = nil unless defined? @@... | ruby | chosen |
[
{
"from": "system",
"value": "Use line item ship address to create the subscriptions\n"
},
{
"from": "human",
"value": "module Spree\n Order.class_eval do\n has_many :subscription\n\n def subscription_products\n products.subscribable\n end\n\n def check_subscriptions!\n li... | ruby | chosen |
[
{
"from": "system",
"value": "Include proper params on contrib notice\n"
},
{
"from": "human",
"value": "class ContributorService < Service\n def self.invite_contributor_to_universe universe:, email:\n # First, look up whether a user already exists for this invite\n related_user = User.fi... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor to use .odd? also style fixes\n"
},
{
"from": "human",
"value": "class Luhn\n\n def initialize(num)\n @num = num\n end\n\n def addends\n @num.to_s.chars.map(&:to_i) # digits\n .reverse\n .map.with_index { |digit, index| addend(digit, ... | ruby | chosen |
[
{
"from": "system",
"value": "Add category in forum feed.\n\nSigned-off-by: François de Metz <5187da0b934cc25eb2201a3ec9206c24b13cb23b@2metz.fr>\n"
},
{
"from": "human",
"value": "atom_feed(:root_url => forums_url, \"xmlns:wfw\" => \"http://wellformedweb.org/CommentAPI/\") do |feed|\n if @user\... | ruby | chosen |
[
{
"from": "human",
"value": "Add ugly performance comparison test\n"
},
{
"from": "gpt",
"value": "require \"test_helper\"\nrequire \"benchmark\"\n\nclass RaiseComparisonTest < RemotelyExceptional::TestCase\n class TestStrategy\n class << self\n attr_accessor :action\n end\n\n def... | ruby | chosen |
[
{
"from": "system",
"value": "Change unit test to just check for invocation\n"
},
{
"from": "human",
"value": "require \"test_helper\"\nrequire 'gds_api/test_helpers/gov_uk_delivery'\n\nclass Edition::GovUkDeliveryTest < ActiveSupport::TestCase\n include GdsApi::TestHelpers::GovUkDelivery\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add minitest to dev dependencies\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'gibber/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec as development 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 'gimlet/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix resource bundle test to allow Stripe3DS2.bundle\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\nbegin\n gem \"xcodeproj\"\nrescue LoadError\n system(\"gem install xcodeproj\")\n Gem.clear_paths\nend\n\nrequire 'xcodeproj'\n\ncontents_of_resources_di... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as dev depedency\n"
},
{
"from": "human",
"value": "$:.unshift File.expand_path(\"../lib\", __FILE__)\n\nrequire 'rake'\nrequire 'snmp/version'\n\nPKG_FILES = FileList[\n 'Rakefile',\n 'README.rdoc',\n 'lib/**/*.rb',\n 'test/**/test*.rb',\n '... | ruby | chosen |
[
{
"from": "human",
"value": "Upgrade to Sauce Connect 4.3\n"
},
{
"from": "gpt",
"value": "require \"formula\"\n\n\nclass SauceConnect < Formula\n homepage \"https://docs.saucelabs.com/reference/sauce-connect/\"\n url \"https://saucelabs.com/downloads/sc-4.3.10-osx.zip\"\n sha1 \"6ec6f7e2af76... | ruby | chosen |
[
{
"from": "system",
"value": "Fix to stupid bug in spec.\n\nI wasn't changing out of the directory in the old context before I\nremoved it, so pwd was failing in the new context.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nrequire 'mr_poole'\nrequire 'fileutils'\nrequire 'tmpdir'... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.