conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Revert \"Move thorn-03 back to ramoth\"\n\nThis reverts commit 5fd1960c98c27eb7f727df1556d2803428679312.\n"
},
{
"from": "human",
"value": "name \"web\"\ndescription \"Role applied to all web/api servers\"\n\ndefault_attributes(\n :accounts => {\n :users => {\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Convert embeddable forms to blank ASTs when generating RTE AST"
},
{
"from": "human",
"value": "require \"formalist/element\"\nrequire \"formalist/elements\"\nrequire \"formalist/types\"\n\nmodule Formalist\n class Elements\n class RichTextArea < Field\n at... | ruby | chosen |
[
{
"from": "system",
"value": "Make it compatible with Ruby 2.0\n"
},
{
"from": "human",
"value": "lib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"ruboty/talk/version\"\n\nGem::Specification.new do |spec|\n spec.name = \"r... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a typo in an existing test name\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire File.dirname(__FILE__) + '/test_helper'\n\nclass SluggedModelTest < Test::Unit::TestCase\n\n context \"A slugged model using single table inheritance\" do\n\n set... | ruby | chosen |
[
{
"from": "system",
"value": "Remove previously introduced debug code\n"
},
{
"from": "human",
"value": "require 'dm-mapper'\n\nbegin\n require 'rspec' # try for RSpec 2\nrescue LoadError\n require 'spec' # try for RSpec 1\n RSpec = Spec::Runner\nend\n\nRSpec.configure do |config|\n confi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix SimpleCov statistics, now that it depends on Docile\n\nNeed to un-require and then re-require Docile after SimpleCov is\nloaded, so that it can measure test coverage of the library. This\nis necessary since SimpleCov began to ship with Docile as a\ndependency.\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Add Test namespace with cleaning to specs\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'pathname'\n\nSPEC_ROOT = root = Pathname(__FILE__).dirname\n\nif RUBY_ENGINE == 'ruby' && ENV['COVERAGE'] == 'true'\n require 'yaml'\n rubies = YAML.load(Fil... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for FOG_MOCK in tests\n"
},
{
"from": "human",
"value": "# SimpleCov must run _first_ according to its README\nif ENV['COVERAGE']\n require 'simplecov'\n\n # monkey-patch to prevent SimpleCov from reporting coverage percentage\n class SimpleCov::Forma... | ruby | chosen |
[
{
"from": "system",
"value": "Check value of MINIMAL env variable because github sets it \"false\"\n"
},
{
"from": "human",
"value": "lib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nrequire 'pry'\nrequire 'simplecov'\nrequire 'coveralls'\nSi... | ruby | chosen |
[
{
"from": "system",
"value": "Clear Prequel session after each spec\n"
},
{
"from": "human",
"value": "# This file is copied to spec/ when you run 'rails generate rspec:install'\nENV[\"RAILS_ENV\"] ||= 'test'\nrequire File.expand_path(\"../../config/environment\", __FILE__)\nrequire 'rspec/rails... | ruby | chosen |
[
{
"from": "system",
"value": "Add the ability to focus on particular RSpec examples\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nRSpec.configure do |config|\n config.expect_with :rspec do |expectations|\n expectations.include_chain_clauses_in_custom_matcher_description... | ruby | chosen |
[
{
"from": "system",
"value": "Print AR and Arel versions when starting tests\n"
},
{
"from": "human",
"value": "# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration\n#\nrequire 'simplecov'\nSimpleCov.start\n\nrequire 'byebug'\n\nrequire 'chrono_model'\n\nrequire 'support/connection... | ruby | chosen |
[
{
"from": "system",
"value": "Drop uselessly caching of fixture files\n"
},
{
"from": "human",
"value": "require 'rspec'\nrequire 'slacken'\n\nrequire 'helpers/document_component_dsl'\n\ndef fixture(name)\n @fixture_cache ||= {}\n @fixture_cache[name] ||= File.read(File.expand_path(name, File.... | ruby | chosen |
[
{
"from": "system",
"value": "Set log level to FATAL when running tests\n\nCan be overridden by setting the env. variable SILENCE_LOGGING to ‘no’."
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'tempfile'\nrequire 'simplecov'\n\nSimpleCov.start do\n add_group 'Source', 'lib'\n a... | ruby | chosen |
[
{
"from": "human",
"value": "Add devise confirmation controller test\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe ConfirmationsController do\n let(:user) { create(:user, confirmed_at: nil) }\n\n before do\n @request.env['devise.mapping'] = Devise.mappings[:user]\n end... | ruby | chosen |
[
{
"from": "system",
"value": "Change ruby version requirement to 1.9.3\n"
},
{
"from": "human",
"value": "require_relative \"lib/stig/version\"\n\nGem::Specification.new do |s|\n s.name = \"stig\"\n s.version = Stig::VERSION\n s.summary = \"simple test input generation\"\n s.d... | ruby | chosen |
[
{
"from": "system",
"value": "Replace bang actuator with call actuator.\n"
},
{
"from": "human",
"value": "require_relative 'test_init'\n\nRunner.! 'spec/*.rb' do |exclude|\n exclude =~ /_init.rb\\z/\nend\n"
},
{
"from": "gpt",
"value": "require_relative 'test_init'\n\nRunner.('spec... | ruby | chosen |
[
{
"from": "system",
"value": "Update URL of the 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 'telos/version'\n\nGem::Specification.new do |spec|\n spec.name = \"telos... | ruby | chosen |
[
{
"from": "system",
"value": "Increment mini_exiftool to version 2.10.\n"
},
{
"from": "human",
"value": "require_relative 'lib/halation/version'\n\nGem::Specification.new do |s|\n s.name = 'halation'\n s.version = Halation::VERSION\n s.date = Time.now.strftime '%Y-%m-%d'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add logic for creating or updating a user with a city\n"
},
{
"from": "human",
"value": "class AlexaInterfaceController < ApplicationController\n def recommend\n respond_to do |f|\n f.json {\n if params[\"request\"][\"intent\"]\n case params... | ruby | chosen |
[
{
"from": "system",
"value": "Change gemspec for version 0.6\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'what_now'\n s.version = '0.0.5'\n s.date = '2014-02-27'\n s.summary = 'Find todo comments in your code'\n s.description = 'Executab... | ruby | chosen |
[
{
"from": "system",
"value": "Linuxbrew: Read CPU flags from /proc/cpuinfo\n\nCloses Homebrew/homebrew#29895.\n\nSigned-off-by: Mike McQuaid <a17fed27eaa842282862ff7c1b9c8395a26ac320@mikemcquaid.com>\n"
},
{
"from": "human",
"value": "module LinuxCPUs\n OPTIMIZATION_FLAGS = {\n :penryn => '-... | ruby | chosen |
[
{
"from": "system",
"value": "Add logical expression in case no radius param gets passed\n"
},
{
"from": "human",
"value": "class Api::DropsController < ApplicationController\n respond_to :json\n\n def index\n if params[:latitude] && params[:longitude]\n places_within_radius = Place.ne... | ruby | chosen |
[
{
"from": "system",
"value": "Fix formatting of parameters for the proxy api\n\nRelated to severe problems in IE9\n\nFixes: #2415\n"
},
{
"from": "human",
"value": "require 'net/http'\nrequire 'uri'\n\n# This is used for testing only\n#\nclass ApiProxyController < ApplicationController\n def de... | ruby | chosen |
[
{
"from": "system",
"value": "Fix and make more readable\n"
},
{
"from": "human",
"value": "require 'zip'\n\nclass RubocopWorker\n include Sidekiq::Worker\n\n sidekiq_options retry: true\n\n attr_reader :project, :force_run\n\n def perform(project_id, force_run = false)\n @project = Proje... | ruby | chosen |
[
{
"from": "system",
"value": "Add create vote backend functionality but cannot grab session hash for user id for vote creation.\n"
},
{
"from": "human",
"value": "class ResponsesController < ApplicationController\n\n before_action :set_response, only: [:edit, :update, :destroy]\n\n def new\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add html format to Response Destroy\n"
},
{
"from": "human",
"value": "class ResponsesController < ApplicationController\n\n before_action :set_response, only: [:edit, :update, :destroy, :up_vote, :mark_as_best]\n\n def create\n question = Question.find(params[... | ruby | chosen |
[
{
"from": "system",
"value": "Allow definition of read only user fields from auth modules\n\nIn config/application.yml, at the auth modules section, for an auth\nprovider a read_only_user_attributes can be defined, with an array of\nuser attributes identifiers which the user won't be able to edit. The\nattr... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Firefox (Japanese) to 41.0.1\n"
},
{
"from": "human",
"value": "cask :v1 => 'firefox-ja' do\n version '41.0'\n sha256 'c58798d56bd2b93e15c5c36feb998530cc33597821f37aaecaa5c41264297517'\n\n url \"https://download.mozilla.org/?product=firefox-#{version}-SSL... | ruby | chosen |
[
{
"from": "system",
"value": "Add nokogiri to bot and create dictionary for symbols.\n"
},
{
"from": "human",
"value": "require 'sinatra'\nrequire 'httparty'\nrequire 'json'\n\nget '/' do\n 'test'\nend\n\npost '/gateway' do\n message = params[:text].gsub(params[:trigger_word], '').strip\n p m... | ruby | chosen |
[
{
"from": "system",
"value": "Fix setting current_user in integration helper\n\nUnder some circumstances it might be that the Alchemy.user_class has not\nthe same object id as the actual Alchemy.user_class\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule Alchemy\n module... | ruby | chosen |
[
{
"from": "system",
"value": "Add some tracing around travis_download because huh??\n"
},
{
"from": "human",
"value": "require 'travis/build/appliances/base'\n\nmodule Travis\n module Build\n module Appliances\n class WaitForNetwork < Base\n def apply\n\n sh.raw <<~BASHS... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `url` stanza comment for Brackets.\n"
},
{
"from": "human",
"value": "cask 'brackets' do\n version '1.7'\n sha256 '1631dd2603f69488171d29776fa6fad09266a6d22b4263b59ef7d1bc39d64ea8'\n\n url \"https://github.com/adobe/brackets/releases/download/release-#{versio... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage and appcast to use SSL in Chocolat 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 => 'chocolat' do\n version :late... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade PsychoPy to v1.83.03 via official github\n\npsychopy moved from sourceforge.net to github.com and\nupdated to latest release 1.83.03 released 15 Dec 2015\n"
},
{
"from": "human",
"value": "cask 'psychopy' do\n version '1.82.00'\n sha256 '42f980455815d6dd88... | ruby | chosen |
[
{
"from": "system",
"value": "Remove build artifact after rake db:sample\n"
},
{
"from": "human",
"value": "require 'active_record/fixtures'\nrequire 'fileutils'\n\nputs \"adding seed data from fixtures...\"\n\nDir.glob(File.join(Rails.root, \"db\", \"fixtures\", \"*.csv\")).each do |file|\n pu... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up whitespace in emailer helper.\n"
},
{
"from": "human",
"value": "module EmailerHelper\n include ApplicationHelper\n \n # returns a plain text short citation\n def brief_citation(request, options = {})\n options[:include_labels] ||= false\n rv =\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out include statement which was causing tests to fail.\n"
},
{
"from": "human",
"value": "# == Schema Information\n#\n# Table name: content_nodes\n#\n# id :integer not null, primary key\n# title :string\n# slug :string... | ruby | chosen |
[
{
"from": "system",
"value": "Add Scope class to generator\n"
},
{
"from": "human",
"value": "class ApplicationPolicy\n attr_reader :user, :record\n\n def initialize(user, record)\n @user = user\n @record = record\n end\n\n def index?\n false\n end\n\n def show?\n scope.where(:... | ruby | chosen |
[
{
"from": "system",
"value": "Enable tvos and watchos as targets for Cocoapod.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n spec.name = \"ValidationNEL\"\n spec.version = \"0.1.0\"\n spec.summary = \"A Swift implementation of ValidationNEL: accumulating more than one failure.\... | ruby | chosen |
[
{
"from": "system",
"value": "Use logger to STDOUT for github_cache\n"
},
{
"from": "human",
"value": "require \"cocoatree/version\"\nrequire \"cocoatree/pod\"\nrequire \"cocoatree/pods\"\nrequire \"cocoatree/website\"\nrequire \"cocoatree/cache\"\n\nmodule Cocoatree\n def self.root\n File.j... | ruby | chosen |
[
{
"from": "system",
"value": "Add setters and comment config out.\n"
},
{
"from": "human",
"value": "require 'communist/version'\nrequire 'rack'\n\nmodule Communist\n class << self\n attr_accessor :app_host\n attr_accessor :default_host\n attr_accessor :run_server\n attr_accessor :a... | ruby | chosen |
[
{
"from": "system",
"value": "Fix detection of uglify-js / gzip"
},
{
"from": "human",
"value": "module Opal\n module Util\n extend self\n\n def null\n if (/mswin|mingw/ =~ RUBY_PLATFORM).nil?\n '/dev/null'\n else\n 'nul'\n end\n end\n\n # Used for uglif... | ruby | chosen |
[
{
"from": "system",
"value": "Update gem to 1.0 for release\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |spec|\n spec.name = 'lita-dig'\n spec.version = '0.6.0'\n spec.authors = ['Eric Sigler']\n spec.email = ['me@esigler.com']\n spec.descriptio... | ruby | chosen |
[
{
"from": "human",
"value": "Add benchmark on gettime vs Time.now\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\nrequire \"bundler\"\nBundler.require(:default)\n\nrequire \"benchmark\"\n\n# Process.clock_gettime(Process::CLOCK_MONOTONIC, :millisecond)\n\nBenchmark.bm do |x|\n x.report(\"... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for unenrolling a user.\n"
},
{
"from": "gpt",
"value": "require 'test_helper'\n\nclass EnrolmentDeleteTest < ActionDispatch::IntegrationTest\n\n def setup\n @admin = users(:admin)\n @service_user = users(:service_user)\n @enrolment = enrolments(:t... | ruby | chosen |
[
{
"from": "system",
"value": "Add runtime dependency to thor\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'yomou/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Define hash that section name to section number\n"
},
{
"from": "human",
"value": "class Product < ApplicationRecord\n belongs_to :contest\n belongs_to :school\n\n has_many :documents\n has_many :prizes\n\n validates :section, inclusion: { in: [0, 1, 2] }\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure a user can't tag a package multiple times with the same tag name\n"
},
{
"from": "human",
"value": "# == Schema Information\n#\n# Table name: tagging\n#\n# id :integer not null, primary key\n# user_id :integer\n# package_id :integer\n... | ruby | chosen |
[
{
"from": "system",
"value": "Update pod spec for 0.0.2\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Banana\"\n s.version = \"0.0.1\"\n s.summary = \"A customizable dropdown menu\"\n s.homepage = \"https://github.com/Nonouf/Banana\"\n # s.screen... | ruby | chosen |
[
{
"from": "system",
"value": "Update formula for new tag\n"
},
{
"from": "human",
"value": "class Modelgen < Formula\n desc \"Swift CLI to generate Models based on a JSON Schema and a template.\"\n homepage \"https://github.com/hebertialmeida/ModelGen\"\n url \"https://github.com/hebertialmei... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure favicon is available in production\n\nDue to a change between Rails 4.2.5 and 4.2.5.1, this was causing an\nerror when running tests.\n"
},
{
"from": "human",
"value": "Rails.application.config.assets.version = '1.0'\n\nRails.application.config.assets.prec... | ruby | chosen |
[
{
"from": "system",
"value": "Drop caveat and conflicts_with - JetBrains only offer the version of CLion that comes bundled with their JDK\n"
},
{
"from": "human",
"value": "cask :v1 => 'clion' do\n version '1.2'\n sha256 '1f56dfb6ac1be8a80ed5850754a62e18cb9c0ae5961f01ea72c2769b3b02d2db'\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add auto_updates flag to Shimo\n"
},
{
"from": "human",
"value": "cask 'shimo' do\n version '4.0.5_7199'\n sha256 'e413fedd9dcb0161986433eb26599de07428ef1a2c443b0e9448bb8bc86af504'\n\n url \"https://www.feingeist.io/fg-library/appcasts/Shimo4/Shimo_#{version}.zip... | ruby | chosen |
[
{
"from": "human",
"value": "Add polynomial-C bassline (Aphex Twin).\n"
},
{
"from": "gpt",
"value": "use_bpm 138\n\nchords = [\n chord(:A3, :M, num_octaves: 2),\n chord(:A3, :m, num_octaves: 2),\n]\n\npattern = \"12123-12123-123-\".ring\n\ndefine :mk_bassline do |c|\n i = 0\n seq = []\n un... | ruby | chosen |
[
{
"from": "system",
"value": "Add Jenna as support email contact\n"
},
{
"from": "human",
"value": "default['et_upload']['api_url'] = \"https://api.evertrue.com\"\n"
},
{
"from": "gpt",
"value": "default['et_upload']['api_url'] = 'https://api.evertrue.com'\ndefault['et_upload']['supp... | ruby | chosen |
[
{
"from": "system",
"value": "Check only 1 test is created\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nmodule MiniTest::Perf\n class RunTest < MiniTest::Unit::TestCase\n def test_a_new_run_has_no_tests\n run = Run.new\n\n assert_empty run.tests\n end\n\n def t... | ruby | chosen |
[
{
"from": "system",
"value": "Update faraday requirement from ~> 0.9.2 to ~> 0.17.1\n\nUpdates the requirements on [faraday](https://github.com/lostisland/faraday) to permit the latest version.\n- [Release notes](https://github.com/lostisland/faraday/releases)\n- [Changelog](https://github.com/lostisland/fa... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.0.4.1 to 0.0.4.2\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'connection'\n s.version = '0.0.4.1'\n s.summary = 'TCP client/server connection library offering both bloc... | ruby | chosen |
[
{
"from": "system",
"value": "Increase limit for facebook requests\n"
},
{
"from": "human",
"value": "require 'forwardable'\nrequire 'mechanize'\nrequire_relative 'crawler'\n\nclass ShortCrawler < Crawler\n extend Forwardable\n\n def_delegators :@extractor,\n :initial_urls, :next_page, :blo... | ruby | chosen |
[
{
"from": "system",
"value": "Support for macOS 10.10 or later (only CocoaPods)\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"CalculateCalendarLogic\"\n s.version = \"0.1.2\"\n s.summary = \"This library CalculateCalendarLogi... | ruby | chosen |
[
{
"from": "system",
"value": "Use connection pooling for standard queries.\n"
},
{
"from": "human",
"value": "class ThinkingSphinx::Search::BatchInquirer\n def initialize(&block)\n @queries = []\n\n yield self if block_given?\n end\n\n def append_query(query)\n @queries << query\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Check that `whois` matches `dig`\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n\ndomain=ENV['DOMAIN']\n\ndef check_domain(domain)\n raise \"'DOMAIN' environment variable not set!\" if domain.nil?\n raise \"'DOMAIN' environment variable is empty string!\"... | ruby | chosen |
[
{
"from": "system",
"value": "Add cookie rotator to upgrade SHA1 sessions to SHA256\n"
},
{
"from": "human",
"value": "require_relative \"boot\"\n\nrequire \"rails\"\n\nrequire \"active_model/railtie\"\nrequire \"active_record/railtie\"\nrequire \"action_controller/railtie\"\nrequire \"action_vi... | ruby | chosen |
[
{
"from": "system",
"value": "Set 'Access-Control-Allow-Origin' header to allow requests from other origins\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\n# Pick the frameworks you want:\nrequire \"active_model/railtie\"\nrequire \"active_record/railtie\"\nre... | ruby | chosen |
[
{
"from": "system",
"value": "Add link to GitHub to gemspec file"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'fastlane/plugin/aws_device_farm/version'\n\nGem::Specification.new do... | ruby | chosen |
[
{
"from": "system",
"value": "Add some logging to figure out why this is blowing up.\n"
},
{
"from": "human",
"value": "module DataPreloading\n def preload_accounts\n _preload_url_into(\n \"/accounts/all/#{current_user.default_currency}?include_archived=true\",\n 'wesabe.data.accou... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Crashplan to version 3.7.0\n"
},
{
"from": "human",
"value": "cask :v1 => 'crashplan' do\n version '3.6.3'\n sha256 'c3bb61fda36d777395748a6c6946085255e8ffa64c1538c453888e0de8ce2b73'\n\n url \"http://download.crashplan.com/installs/mac/install/CrashPlan/C... | ruby | chosen |
[
{
"from": "system",
"value": "Update GitKraken's zap to clean out app settings"
},
{
"from": "human",
"value": "cask 'gitkraken' do\n version '0.8.0'\n sha256 '68b3c5fab1edc9f6703ca7e9fe54ca88db7e8a1574ecac2e416c86d8fe10d8f1'\n\n url \"http://release.gitkraken.com/darwin/v#{version}.zip\"\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add globalSAN iSCSI Initiator v5.3.0.541\n"
},
{
"from": "gpt",
"value": "cask 'globalsan' do\n version '5.3.0.541'\n sha256 'f0fd88aefe931b4ba932ec2f9e7e8d9760668f903812f80c42172a74ce782971'\n\n # snsftp.com was verified as official when first introduced to the c... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Kitematic (Beta).app to v0.7.4\n"
},
{
"from": "human",
"value": "cask :v1 => 'kitematic' do\n version '0.7.3'\n sha256 'db0a3f8e2d32c0d94a1a44092f5e6af4761a14df7235d906c5bbcacc7b822cb0'\n\n # github.com is the official download host per the vendor homepa... | ruby | chosen |
[
{
"from": "system",
"value": "Update MapQuest spec to use `subject` and `it`\n\nFor brevity and ease of reading I've updated MapQuest spec to lean less on `let` and more on explicit `subject`s and implicit `it` expectations. I've also removed some unnecessary argument-related tests as they were just testing... | ruby | chosen |
[
{
"from": "system",
"value": "Make the yaml ext spec descriptions more clear."
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe \"YAML\" do\n it \"should autoload classes that are unknown at runtime\" do\n lambda {\n yaml = \"--- !ruby/class:Autoloaded::Clazz {}\\n\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use env variables in FitbitGoal\n"
},
{
"from": "human",
"value": "class FitbitGoal\n def initialize(user)\n @user = user\n @increment = @user.goal_increment\n @type = 'steps'\n end\n\n def config\n @config ||= YAML.load_file('env.yml')\n end\n\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Allow 404 page to have custom view/layout templates.\n"
},
{
"from": "human",
"value": "module Refinery\n module Pages\n module InstanceMethods\n\n def self.included(base)\n base.send :helper_method, :refinery_menu_pages\n base.send :alias_met... | ruby | chosen |
[
{
"from": "system",
"value": "Update the version to 0.4.0 in pod spec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"SwiftLoader\"\n s.version = \"0.2.5\"\n s.summary = \"A simple and beautiful activity indicator\"\n s.description = <<... | ruby | chosen |
[
{
"from": "system",
"value": "Fix test where markdown text isn't present\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n def page_title(*title_parts)\n if title_parts.any?\n title_parts.push(\"Admin\") if params[:controller] =~ /^admin\\//\n title_parts.push(\"GOV.UK\... | ruby | chosen |
[
{
"from": "system",
"value": "Add newline as line terminator to spec.description\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'deviantart/version'\n\nGem::Specification.new do |spe... | ruby | chosen |
[
{
"from": "system",
"value": "Break up logic into more equally sized chunks\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Unparser\n class Emitter\n # Emitter control flow modifiers\n class FlowModifier < self\n\n MAP = {\n return: K_RETURN,\n next: K... | ruby | chosen |
[
{
"from": "system",
"value": "Add @joelmoss as author and remove plataformatec email\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"inherited_resources/version\"\n\nGem::Specification.new do |s|\n s.name = \"inherit... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec 2.99 specific logic\n"
},
{
"from": "human",
"value": "class DebugExceptionsJson\n module RSpec\n module Hook\n def self.included(base)\n base.instance_eval do\n after do |example|\n # For RSpec2 compatibility\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove description method from DebugStatement\n\nThe `description` method is being deprecated.\n\nChange-Id: Ie814b691ea39e20a50f57f0cdc3816dbf6e6c835\nReviewed-on: http://gerrit.causes.com/36721\nTested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@causes.com>\nReviewe... | ruby | chosen |
[
{
"from": "system",
"value": "Remove a `require` from an autoloaded file\n\nThis is the last change required to remedy #478 for now.\n\nStill waiting for the Rails team to respond to\nhttps://github.com/rails/rails/issues/27119.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix deleteing post version without creating delete post\n"
},
{
"from": "human",
"value": "module TentD\n class API\n\n class DeletePost < Middleware\n def action(env)\n return env unless post = env.delete('response.post')\n params = env['para... | ruby | chosen |
[
{
"from": "system",
"value": "Add speaker and talk css to asset initializer\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Version of your assets, change this if you want to expire all your assets.\nRails.application.config.assets.version = '1... | ruby | chosen |
[
{
"from": "system",
"value": "Convert port to integer for airbrake\n"
},
{
"from": "human",
"value": "Airbrake.configure do |config|\n config.api_key = ENV['ERRBIT_KEY']\n config.host = ENV['ERRBIT_HOST']\n config.port = ENV['ERRBIT_PORT']\n config.secure = config.port == 443\... | ruby | chosen |
[
{
"from": "system",
"value": "Add graceful auth token exception handling\n\nSource: https://stackoverflow.com/a/36533724/6875981\n\nPhase 1 (2nd variation)\nAnother way to go about is just redirect Alice back to the form which she submitted without any pre-filled values.\n\nThis approach can be achieved by:... | ruby | chosen |
[
{
"from": "system",
"value": "Use high level http_basic_auth to authenticate\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_forger... | ruby | chosen |
[
{
"from": "human",
"value": "Write tests for current GovukHeaders behaviour.\n"
},
{
"from": "gpt",
"value": "require_relative \"test_helper\"\nrequire \"gds_api/govuk_headers\"\n\ndescribe GdsApi::GovukHeaders do\n before :each do\n Thread.current[:headers] = nil if Thread.current[:headers]... | ruby | chosen |
[
{
"from": "human",
"value": "Add banner link to deface\n"
},
{
"from": "gpt",
"value": "Deface::Override.new(:virtual_path => \"spree/layouts/admin\",\n :name => \"static_admin_banner_link\",\n :insert_bottom => \"[data-hook='admin_tabs']\",\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Bump to factory_girl_rails 3.0.0\"\n\nThis reverts commit df3f4b5f219dc1bdd45568fe15a4f8a66db8e77c.\n"
},
{
"from": "human",
"value": "# By placing all of Spree's shared dependencies in this file and then loading \n# it for each component's Gemfile, we can ... | ruby | chosen |
[
{
"from": "system",
"value": "Load lif/fogbugz/parser.rb correctly from root\n"
},
{
"from": "human",
"value": "require 'sinatra'\nrequire 'json'\nrequire 'fogbugz'\nrequire 'foghub/parser'\n\nclass Foghub < Sinatra::Base\n attr_accessor :instance, :config\n\n def config\n @config ||= YAML.... | ruby | chosen |
[
{
"from": "system",
"value": "Add Event model method created_by? for view layer usage\n"
},
{
"from": "human",
"value": "class Event < ActiveRecord::Base\n belongs_to :user\n\thas_many :eventTags\n\thas_many :tags, through: :eventTags\n\n # validates :title, :presence => true\n # validates :d... | ruby | chosen |
[
{
"from": "system",
"value": "Use try in accessing Settings\n"
},
{
"from": "human",
"value": "class Graph < Node\n acts_as_taggable_on :tags\n\n # Find or create a graph with its ancestors\n #\n # @param [Hash] params parameters of the node\n # @return [Graph] graph object\n def self.find... | ruby | chosen |
[
{
"from": "system",
"value": "Disable tvOS support for Xcode 7.0 for cocoapods\n\n- tvOS support prevents pushing Podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Quick\"\n s.version = \"0.7.0\"\n s.summary = \"The Swift (and Objective-C) testing ... | ruby | chosen |
[
{
"from": "system",
"value": "Add cocoapod update to travis\n"
},
{
"from": "human",
"value": "#\n# Be sure to run `pod lib lint Qwasi.podspec' to ensure this is a\n# valid spec and remove all comments before submitting the spec.\n#\n# Any lines starting with a # are optional, but encouraged\n#\... | ruby | chosen |
[
{
"from": "system",
"value": "Update SalesPage Controller Spec for edit\n\nAdd edit action SalesPage controller tests.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe SalesPagesController do\n describe \"GET 'show'\" do\n let!(:sales_page) { FactoryGirl.create :sales_pag... | ruby | chosen |
[
{
"from": "human",
"value": "Add content image decorator spec.\n"
},
{
"from": "gpt",
"value": "require 'rails_helper'\n\ndescribe ContentImageDecorator do\n it '#text?' do\n expect(build(:content_image).decorate).not_to be_text\n end\n\n it '#image?' do\n expect(build(:content_image).d... | ruby | chosen |
[
{
"from": "system",
"value": "Add exec command for installing dependencies\n"
},
{
"from": "human",
"value": "require 'flickxtractr'\nrequire 'thor'\n\nmodule Flickxtractr\n class CLI < Thor\n package_name 'Flickxtractr'\n end\nend\n"
},
{
"from": "gpt",
"value": "require 'flick... | ruby | chosen |
[
{
"from": "system",
"value": "Update the site map every other day"
},
{
"from": "human",
"value": "namespace :projects do\n task recreate_index: :environment do\n # If the index doesn't exists can't be deleted, returns 404, carry on\n Project.__elasticsearch__.client.indices.delete index:... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.