conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update Mini Metro to alpha12\n"
},
{
"from": "human",
"value": "class MiniMetro < Cask\n url 'http://static.dinopoloclub.com/minimetro/builds/alpha11/MiniMetro-alpha11-osx.zip'\n homepage 'http://dinopoloclub.com/minimetro/'\n version 'Alpha 11'\n sha256 'c748fc... | ruby | chosen |
[
{
"from": "system",
"value": "Update Tor Browser to 4.0.4.\n"
},
{
"from": "human",
"value": "cask :v1 => 'torbrowser' do\n version '4.0.3'\n sha256 'abe638633449835e6c4f35379635d4c3a8d34337abab4503c3dad28fa6d1327c'\n\n url \"https://www.torproject.org/dist/torbrowser/#{version}/TorBrowser-#{... | ruby | chosen |
[
{
"from": "system",
"value": "Set sweep mode on startup\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path(\"../../lib\", __FILE__)\n\nrequire 'ubertooth'\nrequire 'usbpktrx'\nrequire 'lepacket'\n\nuber = RUbertooth::Ubertooth.new\n\nputs \"Found device: '#{uber.device.inspec... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing specs due to LOGGER not being defined.\n"
},
{
"from": "human",
"value": "require \"logger\"\n\nLog = LOGGER if defined?(LOGGER)\nLog ||= Logger.new(STDOUT)\n\nActiveRecord::Base.logger.level = Logger::WARN if ActiveRecord::Base.logger"
},
{
"fro... | ruby | chosen |
[
{
"from": "human",
"value": "Increase the number of workers to 4 per box\n"
},
{
"from": "gpt",
"value": "def load_file_if_exists(config, file)\n config.instance_eval(File.read(file)) if File.exist?(file)\nend\nload_file_if_exists(self, \"/etc/govuk/unicorn.rb\")\n\nworking_directory File.dirna... | ruby | chosen |
[
{
"from": "system",
"value": "Update description && remove tests from gem.files\n"
},
{
"from": "human",
"value": "# coding: utf-8\nrequire File.expand_path('../lib/changit/version', __FILE__)\n\nGem::Specification.new do |gem| \n gem.authors = [\"aaooki\"]\n gem.email = [\"aaoo... | ruby | chosen |
[
{
"from": "system",
"value": "Set podspec version to 0.0.1 for inital tests\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'RDHOrderedDictionary'\n s.version = '1.0.0'\n s.license = 'MIT'\n \n s.summary = 'Inline view that expands to show a UIPickerView/UIDatePickerView.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in description in gemspec."
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'consensus/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix rails4 secret token config option."
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Your secret key for verifying the integrity of signed cookies.\n# If you change this key, all old signed cookies will become inva... | ruby | chosen |
[
{
"from": "human",
"value": "Add Spec for SessionsController for Subscription\n\nAdd a spec to test the SessionsController routing based on whether a\nsubscription is present in the session.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe SessionsController do\n describe \"'a... | ruby | chosen |
[
{
"from": "system",
"value": "Add authorization scopes to dummy app\n"
},
{
"from": "human",
"value": "Doorkeeper.configure do\n # This block will be called to check whether the\n # resource owner is authenticated or not\n resource_owner_authenticator do |routes|\n # put your resource owne... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up spec with side effect.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe MetricFu::Metric do\n it 'can have its run_options over-written' do\n metric = MetricFu::Metric.get_metric(:flog)\n original_options = metric.run_options.dup\... | ruby | chosen |
[
{
"from": "system",
"value": "Package version increased from 0.2.0.1 to 0.2.0.2\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'event_store-messaging'\n s.summary = 'Messaging primitives for EventStore using the EventStore Client HTTP lib... | ruby | chosen |
[
{
"from": "system",
"value": "Use album path as Album page title\n"
},
{
"from": "human",
"value": "require 'natural_sort_kernel'\n\nPicty.controllers :albums do\n\n get :show, :map => '/albums/*album' do\n directory = Directory.from_param(params[:album])\n halt(404, \"Picture does not ex... | ruby | chosen |
[
{
"from": "system",
"value": "Add some more to the EmailSetup process\n"
},
{
"from": "human",
"value": "class EmailSetup\n def initialize(key)\n @key = key\n end\n\n def go\n # do stuff\n end\nend\n"
},
{
"from": "gpt",
"value": "class EmailSetup\n def initialize(key)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add yarn flag to capistrano"
},
{
"from": "human",
"value": "# Example:\n# DB=postgres REPO=git@github.com:user/avalon.git BRANCH=deploy/prod USER=deploy APP_HOST=avalon.example.edu cap dynamic deploy\n\nset :rails_env, ENV['RAILS_ENV'] || 'production'\nset :bundle_... | ruby | chosen |
[
{
"from": "system",
"value": "Fix url and appcast to use SSL in MoneyMoney Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'moneymoney' do\n version :lates... | ruby | chosen |
[
{
"from": "human",
"value": "Add Tower beta channel (currently v2.2.2)\n\nThis commit adds the Tower beta channel to Versions. It is based on\nthe main `tower.rb` in `homebrew-cask`, with updates for the beta\nappcast.\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'tower-beta' do\n version '2.2.... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify service parsing by using index_by.\n"
},
{
"from": "human",
"value": "class Service\n attr_reader :name, :slug, :excluded_from_list\n\n def initialize(service_config)\n @name = service_config[\"name\"]\n @slug = service_config[\"slug\"]\n @exclud... | ruby | chosen |
[
{
"from": "system",
"value": "Create an admin to use for dev purposes\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass ApplicationControllerTest < ActionController::TestCase\n include Devise::TestHelpers\n\n setup do\n @request.env[\"devise.mapping\"] = Devise.mappings[:adm... | ruby | chosen |
[
{
"from": "system",
"value": "Fix typo in exception class name\n"
},
{
"from": "human",
"value": "module ActionView\n module Helpers\n module Tags # :nodoc:\n class DatetimeField < TextField # :nodoc:\n def render\n options = @options.stringify_keys\n options[\"... | ruby | chosen |
[
{
"from": "system",
"value": "Fix incorrect type detection in helper\n"
},
{
"from": "human",
"value": "def build_url_for(project)\n case project\n when String\n \"/builds/#{project}\"\n when Juicy::Build\n \"/builds/#{project.name}\"\n end\nend\n"
},
{
"from": "gpt",
"valu... | ruby | chosen |
[
{
"from": "system",
"value": "Use true instead of \"true\" for the attempted sso store :department_store:.\n"
},
{
"from": "human",
"value": "module AuthpdsNyu\n module Session\n module Callbacks\n def pds_record_identifier\n (pds_user.respond_to?(:nyu_shibboleth) and pds_user.ny... | ruby | chosen |
[
{
"from": "system",
"value": "Add example of how to run it to the example file\n"
},
{
"from": "human",
"value": "describe 'some tests to show off the magic!' do\n # generate many passes!\n 50.times do |i|\n it \"passes with #{i}\" do\n 100.should == 100\n end\n end\n\n # generate... | ruby | chosen |
[
{
"from": "system",
"value": "Add join so we get the right number of results\n"
},
{
"from": "human",
"value": "class FeedsController < ApplicationController\n def mp_info\n # FIXME: We should change the accepted value to senate instead of lords\n house = params[:house] == 'lords' ? 'sena... | ruby | chosen |
[
{
"from": "system",
"value": "Use git-ng gem (fork of git)\n\ngit gem is not maintained.\n\nChange-Id: I71bb822864568ded0452e160f5df804bafb80569\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(... | ruby | chosen |
[
{
"from": "system",
"value": "Store water value in LastMeasurementStore.\n"
},
{
"from": "human",
"value": "require 'json'\n\nclass LastMeasurementStore\n NoMeasurementFound = Class.new(StandardError)\n\n def initialize\n @counter = 0\n end\n\n def load\n File.read(filename)\n rescue ... | ruby | chosen |
[
{
"from": "system",
"value": "Use withenv for Puppet 2.x\n"
},
{
"from": "human",
"value": "require \"puppet/util/execution\"\n\nPuppet::Type.type(:nodejs).provide :nodenv do\n include Puppet::Util::Execution\n\n optional_commands :nodenv => \"nodenv\"\n\n def create\n command = [\n \... | ruby | chosen |
[
{
"from": "system",
"value": "Increase the maximum allowed width of output\n"
},
{
"from": "human",
"value": "module StackMaster\n module Commands\n class Outputs\n include Command\n include Commander::UI\n\n def initialize(config, stack_definition, options = {})\n @con... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for Rails 5.1\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n s.name = %q{decorators}\n s.version = %q{2.0.2}\n s.description = %q{Manages the process of load... | ruby | chosen |
[
{
"from": "system",
"value": "Remove index route for pages\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n get 'organizations/index'\n\n get 'organizations/show'\n\n resources :pages\n\n namespace :admin do\n DashboardManifest::DASHBOARDS.each do |dashboard_resource|... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake to development dependencies\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nGem::Specification.new do |gem|\n gem.name = \"rack-ch... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unnecessary utf-8 encoding comment\n"
},
{
"from": "human",
"value": "# coding: utf-8\n# frozen_string_literal: true\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'japanese_calendar/version'\n\nG... | ruby | chosen |
[
{
"from": "system",
"value": "Update Rails version to match Refinery\n"
},
{
"from": "human",
"value": "require File.expand_path('lib/refinery/testimonials/version', __dir__)\nversion = Refinery::Testimonials::Version.to_s\nGem::Specification.new do |s|\n s.platform = Gem::Platform::RU... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for the state to default to info\n\nCheck that the state is info.\n"
},
{
"from": "human",
"value": "require_relative 'spec_helper'\nrequire 'minitest/mock'\nrequire 'awesome_print'\nrequire 'rails_riemann_middleware/duration'\n\ndescribe RailsRiemannMiddle... | ruby | chosen |
[
{
"from": "system",
"value": "Switch around the content_tagged metrics\n\nUse level_N.content_tagged, rather than content_tagged.level_N as the\nformer is a bit clearer.\n"
},
{
"from": "human",
"value": "module Metrics\n class ContentDistributionMetrics\n def count_content_per_level\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests on older rubies\n\nDon't try to bring in new activesupport on versions of Ruby that don't\nsupport it\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/lib/ice_cube/version'\n\nGem::Specification.new do |s|\n s.name = 'ice_cub... | ruby | chosen |
[
{
"from": "system",
"value": "C: Align the operands of an expression spanning multiple lines.\n"
},
{
"from": "human",
"value": "# encoding: UTF-8\n#\n# Cookbook Name:: system\n# Provider:: profile\n#\n# Copyright 2012-2015, Chris Fordham\n#\n# Licensed under the Apache License, Version 2.0 (the... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Admin -> License selector for GitLab QA specs\n\nCloses gitlab-qa#68\n"
},
{
"from": "human",
"value": "module QA\n module Page\n module Admin\n class Menu < Page::Base\n def go_to_license\n within_middle_menu { click_link 'License' }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert tag 1 and update to 16.3.1\n"
},
{
"from": "human",
"value": "class Ausalib < Formula\n\n version_number = \"1\"\n desc \"AarhusSubatom analysis library\"\n homepage \"https://git.kern.phys.au.dk/ausa/ausalib\"\n url \"https://git.kern.phys.au.dk/ausa/aus... | ruby | chosen |
[
{
"from": "system",
"value": "Add comment about checking for two different attributes in\nservice_enabled?\n"
},
{
"from": "human",
"value": "require 'mixlib/shellout'\nrequire_relative 'helper'\n\nclass OmnibusHelper\n include ShellOutHelper\n attr_reader :node\n\n def initialize(node)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update to the latest version of FLANN\n\nFixes some bad memory [leaking](https://github.com/mariusmuja/flann/commit/b0425ef5d4d6174270f7503ddd32b1ff345bd59c)\nCloses #197\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Flann < Formula\n homepage 'http... | ruby | chosen |
[
{
"from": "system",
"value": "Fix data_objects.rb reference in spec helper.\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'spec'\n\nrequire File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'lib', 'data_objects'))\nrequire File.expand_path(File.join(File.dirname(__F... | ruby | chosen |
[
{
"from": "system",
"value": "Add ember assets to precompile list\n"
},
{
"from": "human",
"value": "module EmberCLI\n class BuildServer\n attr_reader :name, :options, :pid\n\n def initialize(name, **options)\n @name, @options = name.to_s, options\n end\n\n def start\n sym... | ruby | chosen |
[
{
"from": "system",
"value": "Add a deprecation warn for `DeviseHelper.devise_error_messages!`\n\nTo customize the error style one should modifying the\n`devise/shared/error_messages` partial.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule DeviseHelper\n # Retain thi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix code to work with BasicObject descendants\n\n* In Ruby 1.9 BasicObject is the top-most object, and it does not\n have #kind_of? so we use BasicObject#=== instead.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Axiom\n module Types\n\n # Repr... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing company search method to company api wrapper\n"
},
{
"from": "human",
"value": "module LinkedIn\n module API\n module Companies\n def company(*selector, filter: nil, **opts)\n root = 'companies'\n\n selector.compact!\n selec... | ruby | chosen |
[
{
"from": "system",
"value": "Check for update before installing seeds.\n"
},
{
"from": "human",
"value": "module Seeds\n class Command\n def self.run(argv)\n case argv[0]\n when 'install'\n begin\n Seeds::Core.new(Dir.pwd).install\n rescue Seeds::Exception =... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to reflect renaming to README.md"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/dm-core/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [ \"Dan Kubb\" ]\n gem.email =... | ruby | chosen |
[
{
"from": "system",
"value": "Change ffi dependency to ~> 1.0.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.platform = Gem::Platform::RUBY\n\n s.name = \"ffi_gen\"\n s.version = \"1.1.0\"\n s.summary = \"A generator for Ruby FFI bindings\"\n s.description = \"A gener... | ruby | chosen |
[
{
"from": "system",
"value": "Fix class name in unimplemented run method\n"
},
{
"from": "human",
"value": "require 'mixlib/cli'\n\nEXIT_CODES = {\n 'OK' => 0,\n 'WARNING' => 1,\n 'CRITICAL' => 2,\n 'UNKNOWN' => 3,\n}\n\nclass Sensu\n class Plugin\n class Check\n class CLI\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade docker-api, remove version restriction on bundler.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'docker_tools/version'\n\nGem::Specification.n... | ruby | chosen |
[
{
"from": "system",
"value": "Make gemspec not rely on lib for version info\n"
},
{
"from": "human",
"value": "require 'lib/geohash'\n\nGem::Specification.new do |s|\n s.name = \"geohash\"\n s.version = GeoHash::VERSION\n s.date = \"2008-11-27\"\n s.summary = \"GeoHash Library for ... | ruby | chosen |
[
{
"from": "human",
"value": "Add IOPlugin, FileIOPlugin and AccountKey classes.\n"
},
{
"from": "gpt",
"value": "module LetsCert\n\n # Input/output plugin\n class IOPlugin\n\n # Plugin name\n # @return [String]\n attr_reader :name\n\n # Allowed plugin names\n ALLOWED_PLUGINS = %... | ruby | chosen |
[
{
"from": "human",
"value": "Add a pod spec so this can be used as a cocoa pod\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |spec|\n spec.name = 'AAPLCollectionView'\n spec.version = '0.0.1'\n spec.summary = 'This is a copy of the framework from Apple\\'s AdvancedCollectionView sampl... | ruby | chosen |
[
{
"from": "system",
"value": "Remove newlines from AMI name\n"
},
{
"from": "human",
"value": "module AmiManager\n class Deployer\n def deploy(ami_file, aws_access_key:, aws_secret_key:, ssh_key_name:)\n aws_ami_id = File.read ami_file\n terraform.apply(\n {\n aws_a... | ruby | chosen |
[
{
"from": "system",
"value": "Use git ls-remote to check for remote branch existence\n"
},
{
"from": "human",
"value": "load File.expand_path(\"../tasks/rsync_scm.rake\", __FILE__)\n\nrequire 'capistrano/scm'\nrequire 'tmpdir'\n\n\nclass Capistrano::RsyncScm < Capistrano::SCM\n VERSION = \"0.0.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix default platform to be AWS\n"
},
{
"from": "human",
"value": "module CfDeployer\n module Defaults\n ELBName = 'ELBName'\n AutoScalingGroupName = 'AutoScalingGroupName'\n Timeout = 900\n DNSDriver = 'CfDeployer::Driver::Route53'\n RaiseErrorForUnu... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec write master, read slave databases\n"
},
{
"from": "human",
"value": "describe ActiveRecord::Slave::Model do\n it \"connect to master\" do\n expect(User.connection.pool.spec.config[:port]).to eq 21891\n end\n\n it \"connect to slave\" do\n User.on_... | ruby | chosen |
[
{
"from": "system",
"value": "Add a attribute for description to an example\n"
},
{
"from": "human",
"value": "describe DMMCrawler::Ranking do\n let(:attachments) { described_class.new(arguments).arts }\n\n let(:submedia) { 'cg' }\n let(:arguments) { { submedia: submedia, term: term } }\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for disclosures index page, ensuring links to each disclosure page"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\ndescribe \"Disclosures\" do\n feature \"creating a disclosure\" do\n it \"accepts valid attributes\" do\n visit new_disc... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for font since due to the conditional of updating font families if resume font is not included in the Prawn built-ins\n"
},
{
"from": "gpt",
"value": "require 'resume/pdf/font'\n\nmodule Resume\n module PDF\n RSpec.describe Font do\n describe '.con... | ruby | chosen |
[
{
"from": "system",
"value": "Rename 'run' as 'parse' to better describe its role\n"
},
{
"from": "human",
"value": "require 'optparse/subcommand'\n\ndescribe OptionParser do\n def run(args)\n options.parse(args)\n hits\n end\n\n let(:hits) { [] }\n let(:options) do\n OptionParser.n... | ruby | chosen |
[
{
"from": "system",
"value": "Add before_suite and after_suite callbacks to ExampleGroupMethods and Options\n"
},
{
"from": "human",
"value": "module Spec\r\n module Rails\r\n module VERSION #:nodoc:\r\n BUILD_TIME_UTC = 20080503223441\r\n end\r\n end\r\nend\r\n\r\n# Verify that the... | ruby | chosen |
[
{
"from": "system",
"value": "Allow devices to updated by mass assigning attributes\n"
},
{
"from": "human",
"value": "module Device\n class Base\n attr_accessor :adapter, :configuration\n\n def initialize(params = {})\n @adapter = params.fetch(:adapter, default_adapter)\n @conf... | ruby | chosen |
[
{
"from": "system",
"value": "Include session helper in all application controllers\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... | ruby | chosen |
[
{
"from": "system",
"value": "Add raw query parameter in queue items API for debugging\n\nRaw option simply fetches and prints the raw data from SOAP API\nbypassing cache and all formatting.\n"
},
{
"from": "human",
"value": "# API for Queue status data\nclass QueueItemsController < ApplicationC... | ruby | chosen |
[
{
"from": "system",
"value": "Add more ruby and rails stats"
},
{
"from": "human",
"value": "module Whatsup::Collectors\n class ResqueStatus\n def call\n Resque.queues.inject({}) do |hsh, queue_name|\n hsh[queue_name] = { length: Resque.size(queue_name) }\n hsh\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Add retry for race conditions\n"
},
{
"from": "human",
"value": "module Gretel\n module Trails\n class ActiveRecordStore < Store\n class << self\n # Number of seconds to keep the trails in the database.\n # Default: +1.day+\n def expire... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Intellij Idea EAP to v140.2110.5\n"
},
{
"from": "human",
"value": "cask :v1 => 'intellij-idea-eap' do\n version '139.872.1'\n sha256 'f9ea80b72d0d1aa78685cda89eb6e7a1719636901957193b167fb884e40e47c4'\n\n url \"http://download-cf.jetbrains.com/idea/ideaIU... | ruby | chosen |
[
{
"from": "system",
"value": "Update OmniOutliner Beta to version 4.4.x-r244801\n\nThis commit updates the version and sha256 stanzas.\n"
},
{
"from": "human",
"value": "cask :v1 => 'omnioutliner-beta' do\n version '4.4.x-r244801'\n sha256 '45b7636ef8ab3c28aad9280fdf5317b7bf2ddda559673e1ae331b... | ruby | chosen |
[
{
"from": "system",
"value": "Remove references to Rails 2 and 3\n"
},
{
"from": "human",
"value": "module Silencer\n module Environment\n RAILS_2_3 = /^2.3/\n RAILS_3_2 = /^3.2/\n RAILS_4 = /^4/\n\n def rails?\n defined?(::Rails)\n end\n\n def rails_version\n return... | ruby | chosen |
[
{
"from": "system",
"value": "Load the rails environment before running rake tasks\n"
},
{
"from": "human",
"value": "namespace :enki do\n desc \"Generate AST files\"\n task :generate_ast do\n Enki::Snowcrasher.compile_dir(src_dir: \"doc\", dst_dir: \"doc_ast\")\n end\n\n desc \"Generate ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove last traces of NotNaughty from example\n"
},
{
"from": "human",
"value": "require 'makura'\n\n# Setting up everything\n\n# Makura::Model.server = 'http://localhost:5984'\nMakura::Model.database = 'mydb'\n\nclass Post\n include Makura::Model\n\n properties :... | ruby | chosen |
[
{
"from": "system",
"value": "Add more tests for controller helpers\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'web_bouncer/authentication'\nrequire 'support/action_classes'\n\nRSpec.describe WebBouncer::Authentication do\n let(:action) { Action.new(account: account) }\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a spec about Docker option.\n"
},
{
"from": "human",
"value": "require \"spec_helper_#{ENV['SPEC_TARGET_BACKEND']}\"\nrequire \"brewcask_patch\"\n\ndescribe package('dockertoolbox'), :if => os[:family] == 'darwin' do\n it { should be_installed.by('homebrew_cask... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for number sold for a product\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe Product, type: :model do\n product = Product.create(name: 'Widget')\n\n it 'creates successfully' do\n expect(product).to be_truthy\n end\n\n it... | ruby | chosen |
[
{
"from": "system",
"value": "Remove cruft which really only tested Sinatra behaviour\n"
},
{
"from": "human",
"value": "require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')\n\ndescribe Sinatra do\n subject { app }\n\n context \"classic apps\" do\n let(:app) { Sinatra::Appli... | ruby | chosen |
[
{
"from": "system",
"value": "Use argument value instead of `let` value\n"
},
{
"from": "human",
"value": "module LoginMacro\n def login_with(user)\n visit '/sessions/new'\n within(\"form\") do\n fill_in 'session_name', :with => exists_user.name\n fill_in 'session_password', :wi... | ruby | chosen |
[
{
"from": "system",
"value": "Make regex group non capturing\n"
},
{
"from": "human",
"value": "require \"email_assessor/email_validator\"\n\nmodule EmailAssessor\n DISPOSABLE_DOMAINS_FILE_NAME = File.expand_path(\"../../vendor/disposable_domains.txt\", __FILE__)\n BLACKLISTED_DOMAINS_FILE_NAM... | ruby | chosen |
[
{
"from": "system",
"value": "Adjust the max run time to 8 hours\n"
},
{
"from": "human",
"value": "# # # monkey patch BufferedLogger to allow a custom formatter\n# # class ActiveSupport::BufferedLogger\n# # def formatter=(formatter)\n# # @log.formatter = formatter\n# # end\n# # end\n\n#... | ruby | chosen |
[
{
"from": "human",
"value": "Add Model Boiler cask v2.1.2\n"
},
{
"from": "gpt",
"value": "cask 'model-boiler' do\n version '2.1.2'\n sha256 '8169af020a1354ee1ee688da28d5dcde741e342dff73ab17a1fa94dcfa7d4d1e'\n\n url \"https://github.com/nodes-ios/ModelBoiler/releases/download/#{version}/Model... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for empty original fullpath\n"
},
{
"from": "human",
"value": "class Gon\n class Watch < Gon\n class << self\n\n JS_FUNCTION = File.read(File.expand_path('../../../js/watch.js', __FILE__))\n\n def render\n JS_FUNCTION + \"window.gon.watchedV... | ruby | chosen |
[
{
"from": "system",
"value": "Update PHPStorm EAP to 138.1289"
},
{
"from": "human",
"value": "class PhpstormEap < Cask\n url 'http://download.jetbrains.com/webide/PhpStorm-EAP-138.1161.dmg'\n homepage 'http://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program'\n version ... | ruby | chosen |
[
{
"from": "system",
"value": "Update PhpStorm EAP Cask to v139.1226\n"
},
{
"from": "human",
"value": "cask :v1 => 'phpstorm-eap' do\n version '139.873'\n sha256 '8405a198ee9720e05f0b589367514ae4b86bb28064cd7d2a9cc9a015b30a53c3'\n\n url \"http://download.jetbrains.com/webide/PhpStorm-EAP-#{ve... | ruby | chosen |
[
{
"from": "system",
"value": "Fix require issue at server start\n"
},
{
"from": "human",
"value": "require 'hotchkiss/router'\nrequire 'hotchkiss/controller'\nrequire 'hotchkiss/fast_responder'\nrequire 'hotchkiss/application'\nrequire 'hotchkiss/server'\n"
},
{
"from": "gpt",
"value... | ruby | chosen |
[
{
"from": "system",
"value": "Add file names to require ruby file list\n"
},
{
"from": "human",
"value": "$:.unshift File.dirname(__FILE__)\n\n# gems\nrequire 'rubygems'\nrequire 'faraday'\nrequire 'happymapper'\n\n# syoboemon files\nrequire \"syoboemon/version\"\nrequire \"syoboemon/client\"\nr... | ruby | chosen |
[
{
"from": "system",
"value": "Make the time output look a little better than something non-sensical\n"
},
{
"from": "human",
"value": "module Util\n def self.ago_in_words(time1, time2)\n diff = time1.to_i - time2.to_i\n ago = ''\n if diff == 1\n ago = \"#{diff} second ago\"\n e... | ruby | chosen |
[
{
"from": "human",
"value": "Add OracleConnection class for future use\n"
},
{
"from": "gpt",
"value": "module BlacklightCornellRequests\n\n # This is based on the OracleConnection class from cornell-voyager-backend\n class OracleConnection\n\n def initialize(user, password, service)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use Rack::Reloader in dev mode\n"
},
{
"from": "human",
"value": "require './application'\n<%= app_const %>.initialize!\n\n# Development middlewares\nif <%= app_const %>.env == 'development'\n require 'async-rack'\n use AsyncRack::CommonLogger\nend\n\n# Running th... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor BugTracker to also read from file configuration\n"
},
{
"from": "human",
"value": "require 'pivotal_tracker'\n\nmodule Pv\n class BugTracker\n def initialize with_username, and_password\n PivotalTracker::Client.use_ssl = true\n @token = Pivota... | ruby | chosen |
[
{
"from": "system",
"value": "Delete results from all clusters\n"
},
{
"from": "human",
"value": "class Rummager < Sinatra::Application\n get '/content' do\n raw_result = find_result_by_link(params[\"link\"])\n {\n index: SearchIndices::Index.strip_alias_from_index_name(raw_result['_... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for updating personal access token\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\nclass UsersControllerTest < ActionDispatch::IntegrationTest\n setup do\n stub_notifications_request\n @user = users(:andrew)\n end\n\n test 'should update u... | ruby | chosen |
[
{
"from": "system",
"value": "Rewrite the after_initialize block as an initializer to append paths properly.\n"
},
{
"from": "human",
"value": "require 'stylus/tilt'\nrequire 'stylus/import_processor'\n\nmodule Stylus\n ### Stylus Railtie\n #\n # `Railtie` that hooks `stylus` inside a Rails a... | ruby | chosen |
[
{
"from": "system",
"value": "Exit non-zero if the arguments are wrong\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\n$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), \"..\", \"lib\")))\nrequire 'optparse'\nrequire 'ostruct'\nrequire 'recog'\nrequire 'recog/verifier_facto... | ruby | chosen |
[
{
"from": "system",
"value": "Clear working workers count in Resque\n\nResque will show something like \"2 of 356 Workers Working\" which is\nclearly false. This will clear that count, back to sane numbers.\n"
},
{
"from": "human",
"value": "require \"resque/tasks\"\nrequire \"resque/scheduler/t... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for join table index\n\nConflicts:\n\tspec/models/menu_spec.rb\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe Menu, :type => :model do\n let(:menu) { FactoryGirl.create(:menu) }\n\n describe 'Fixtures' do\n it 'should have ... | ruby | chosen |
[
{
"from": "system",
"value": "Add basic spec for persistability on class\n"
},
{
"from": "human",
"value": "require File.join(File.dirname(__FILE__), '..', 'spec_helper')\n\ndescribe Tesla::Model do\n it \"should fail\" do\n flunk \"fail!\"\n end\nend\n"
},
{
"from": "gpt",
"val... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to KTH Github endpoint\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: :exceptio... | ruby | chosen |
[
{
"from": "system",
"value": "Move top module method to uniq class method\n"
},
{
"from": "human",
"value": "require 'vhdl_parser'\n\nrequire \"vhdl_connector/version\"\nrequire \"vhdl_connector/helper\"\nrequire \"vhdl_connector/presenters\"\nrequire \"vhdl_connector/view\"\n\nrequire \"vhdl_co... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.