conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Test non-admin cannot perform action.\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../../test_helper'\n\n##\n# Here we test resources which are not related to a model.\n#\nclass Admin::StatusControllerTest < ActionController::TestCase\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Use get instead of match.\n"
},
{
"from": "human",
"value": "Dummy::Application.routes.draw do\n api vendor_string: \"myvendor\" do\n version 1 do\n cache as: 'v1' do\n resources :bar\n end\n end\n\n version 2 do\n cache as: 'v2' do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add orders association for Spree.user_class models\n"
},
{
"from": "human",
"value": "Spree::Core::Engine.config.to_prepare do\n if Spree.user_class\n Spree.user_class.class_eval do\n include Spree::Core::UserBanners\n has_and_belongs_to_many :spree_ro... | ruby | chosen |
[
{
"from": "system",
"value": "Remove broken ref to travis_haskell cookbook\n"
},
{
"from": "human",
"value": "name 'travis_build_environment'\nmaintainer 'Travis CI Development Team'\nlicense 'Apache v2.0'\nversion '1.1.0'\ndescription 'Travis build environment'\nlong_description 'Travis build e... | ruby | chosen |
[
{
"from": "system",
"value": "Add bootstrap_wrapping to radio collection \n\nAs is in checkbox collection! This essentially adds the missing \"form-wrapper\" span tag to allow for better formatting of the radio buttons!"
},
{
"from": "human",
"value": "module FormtasticBootstrap\n module Inputs... | ruby | chosen |
[
{
"from": "human",
"value": "Add implementation for creating keypair and also provide mocking support.\n"
},
{
"from": "gpt",
"value": "module Fog\n module Compute\n class HP\n class Real\n\n # Create a new keypair\n #\n # ==== Parameters\n # * name<~String> ... | ruby | chosen |
[
{
"from": "system",
"value": "Change gemspec to avoid subshells and remove unneeded files\n\nMore informations at http://tenderlovemaking.com/2011/12/05/profiling-rails-startup-with-dtrace/\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE_... | ruby | chosen |
[
{
"from": "system",
"value": "Convert Set to Array before access to it first element.\n\n[#897 state:resolved]\n"
},
{
"from": "human",
"value": "class Admin::ShippingRatesController < Admin::BaseController\n resource_controller\n before_filter :load_data\n\n update.wants.html { redirect_to e... | ruby | chosen |
[
{
"from": "system",
"value": "Drop Asset from list of Booking reference models.\n"
},
{
"from": "human",
"value": "module BookingHelper\n def reference_types_as_collection\n types = [Invoice, Asset]\n types.inject({}) do |result, type|\n result[t_model(type)] = type.base_class\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Check for config options only inside the before_configuration hook\n\nThis fixes calling \"bundle console\" from Rails, without this change we\nget the following error:\n\n undefined method `action_view' for\n #<Rails::Railtie::Configuration:0x007fdb842b4cd0> (NoMethodE... | ruby | chosen |
[
{
"from": "human",
"value": "Add Fiery Color Profiler Suite v4.6.2.08\n\nFiery Color Profiler Suite 4.app is an installer that points to multiple pkgs.\n411MB download is moved to Caskroom and is still present after manual install.\nTODO: Test installer of individual pkgs.\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "human",
"value": "Add check runner test case\n"
},
{
"from": "gpt",
"value": "# encoding: utf-8\n\nclass Nanoc::Extra::Checking::RunnerTest < MiniTest::Unit::TestCase\n\n include Nanoc::TestHelpers\n\n def test_run\n with_site do |site|\n File.open('output/blah', 'w') { |io|... | ruby | chosen |
[
{
"from": "system",
"value": "Fix i18n entries index name for postgresql compatibility (63 char limit)\n"
},
{
"from": "human",
"value": "class CreateReleafTranslations < ActiveRecord::Migration\n def change\n create_table :releaf_i18n_entries do |t|\n t.string :key, null: false\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Sococo to 3.2.7 and add license\n\nThe new url is from the download page of the product.\n"
},
{
"from": "human",
"value": "cask :v1 => 'sococo' do\n version '3.2.7'\n sha256 '6772f2c2ef5c7b046612de408b79a71ed0936041fb9286785af69d862f653d1f'\n\n url \"http... | ruby | chosen |
[
{
"from": "system",
"value": "Update Vienna.app to version 3.0.4\n"
},
{
"from": "human",
"value": "cask :v1 => 'vienna' do\n version '3.0.3'\n sha256 'c575b069ba0fa504891c104a9652b427c559d798ceff83109eb2b86e14015c76'\n\n # sourceforge.net is the official download host per the vendor homepage... | ruby | chosen |
[
{
"from": "system",
"value": "Use consistent `Committee:` prefix for deprecation messages\n"
},
{
"from": "human",
"value": "module Committee::Test\n module Methods\n def assert_schema_conform\n if (data = schema_contents).is_a?(String)\n warn_string_deprecated\n data = Mu... | ruby | chosen |
[
{
"from": "system",
"value": "Rewrite text when profile is hidden\n"
},
{
"from": "human",
"value": "class Directory::UsersController < ApplicationController\n before_action :set_user, only: [:show]\n # devise authentication required to access invitations\n before_action :authenticate_user!, ... | ruby | chosen |
[
{
"from": "system",
"value": "Update redo specs to match rubyspec\n"
},
{
"from": "human",
"value": "describe \"The loop expression\" do\n it \"repeats the given block until a break is called\" do\n outer_loop = 0\n loop do\n outer_loop += 1\n break if outer_loop == 10\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for named function in classes\n"
},
{
"from": "human",
"value": "require File.expand_path('../spec_helper', __FILE__)\n\ndescribe Opal::Compiler do\n it \"should compile simple ruby values\" do\n expect_compiled(\"3.142\").to include(\"return 3.142\")\n... | ruby | chosen |
[
{
"from": "system",
"value": "Include Description and Category in Page Type Seeds\n"
},
{
"from": "human",
"value": "json.(page_type, :name, :translation_key, :help_entry_translation_key)\n\njson.thumbnail_candidates(page_type.thumbnail_candidates) do |candidate|\n json.(candidate, :attribute, ... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for https urls\n"
},
{
"from": "human",
"value": "require File.join(File.dirname(__FILE__), '..', 'spec_helper.rb')\n\ndescribe \"Url Validation\" do\n before(:each) do\n TestRecord.reset_callbacks(:validate)\n TestRecord.validates :url, :url => true... | ruby | chosen |
[
{
"from": "system",
"value": "Remove translation of error messages\n\nThese messages will only appear in the admin interface so currently shouldn't be translated - https://github.com/mysociety/alaveteli/issues/1353\n"
},
{
"from": "human",
"value": "# == Schema Information\n#\n# Table name: spam... | ruby | chosen |
[
{
"from": "system",
"value": "Use password field to hide token."
},
{
"from": "human",
"value": "class Service::Travis < Service\n default_events :push, :pull_request, :issue_comment, :public, :member\n string :user, :token, :domain\n white_list :domain, :user\n\n def receive_event\n http... | ruby | chosen |
[
{
"from": "system",
"value": "Change the notification to restart rsyslog service to immediate\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: loggly\n# Recipe:: default\n#\n# Copyright (C) 2014 AgaMatrix\n# \n# All rights reserved - Do Not Redistribute\n#\n\nraise \"You have to set a tok... | ruby | chosen |
[
{
"from": "system",
"value": "Fix indentation for next! in address in api orders controller\n"
},
{
"from": "human",
"value": "module Spree\n module Api\n module V1\n class OrdersController < Spree::Api::V1::BaseController\n def index\n # should probably look at turning ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove useless comment from YARD handler\n"
},
{
"from": "human",
"value": "class NanocIdentifierHandler < ::YARD::Handlers::Ruby::AttributeHandler\n\n # e.g. identifier :foo, :bar\n\n handles method_call(:identifier), method_call(:identifiers)\n namespace_only\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the skip flag from Polygamous badge spec\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nRSpec.describe Polygamous, type: :model, skip: true do\n\n it 'should have a name and description' do\n expect(Polygamous.name).not_to be_blank\n expec... | ruby | chosen |
[
{
"from": "system",
"value": "Add legacy table support to delete in progress orders migration\n"
},
{
"from": "human",
"value": "class DeleteInProgressOrders < ActiveRecord::Migration\n def self.up\n Order.delete_all(:state=>'in_progress')\n delete_orphans('adjustments')\n delete_orpha... | ruby | chosen |
[
{
"from": "system",
"value": "Allow for requests without headers to default to V1\n"
},
{
"from": "human",
"value": "module ApiVersions\n class Middleware\n def initialize(app)\n @app = app\n end\n\n def call(env)\n return @app.call(env) unless env['HTTP_ACCEPT']\n\n acc... | ruby | chosen |
[
{
"from": "system",
"value": "Fix tests for subject updates\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Ci::SendPipelineNotificationService, services: true do\n let(:pipeline) do\n create(:ci_pipeline,\n project: project,\n sha: project.commit('ma... | ruby | chosen |
[
{
"from": "system",
"value": "Update PostgreSQLAdapter to work with jdbc-postgres\n"
},
{
"from": "human",
"value": "require 'spectacles/schema_statements/abstract_adapter'\n\nmodule Spectacles\n module SchemaStatements\n module PostgreSQLAdapter\n include Spectacles::SchemaStatements::... | ruby | chosen |
[
{
"from": "human",
"value": "Add new benchmark with to_a and a unique index on email\n"
},
{
"from": "gpt",
"value": "require 'bundler/setup'\nrequire 'active_record'\nrequire_relative 'support/benchmark_rails'\n\nActiveRecord::Base.establish_connection(ENV['DATABASE_URL'])\n\nActiveRecord::Migr... | ruby | chosen |
[
{
"from": "system",
"value": "Update Bit-Slicer 1.7.3 sha256 hash\n\nNew version of 1.7.3 was uploaded."
},
{
"from": "human",
"value": "class BitSlicer < Cask\n version '1.7.3'\n sha256 'd1a2fa33852ec95f52070e6b4d9c16f4a8741b41d384f8d1aab7c501d5a78b24'\n\n url 'https://bitbucket.org/zorgiepo... | ruby | chosen |
[
{
"from": "system",
"value": "Add webrat configuration to support webrat 0.7.2\n\nSigned-off-by: Shin-ichiro OGAWA <944c384b665d30ce41dfae275e7ba3c4ca979271@gmail.com>\n"
},
{
"from": "human",
"value": "# This file is copied to ~/spec when you run 'ruby script/generate rspec'\n# from the project... | ruby | chosen |
[
{
"from": "system",
"value": "Use Gem.win_platform? to determine if the ruby platform is Windows\n"
},
{
"from": "human",
"value": "WIN32 = (RUBY_PLATFORM =~ /win32|mingw|bccwin|cygwin/) rescue nil\nSUDO = WIN32 ? '' : ('sudo' unless ENV['SUDOLESS'])\n\ndef sudo_gem(cmd)\n sh \"#{SUDO} #{RUBY} ... | ruby | chosen |
[
{
"from": "human",
"value": "Add an `opc org edit` command.\n"
},
{
"from": "gpt",
"value": "#\n# Author:: Steven Danna (<steve@opscode.com>)\n# Copyright:: Copyright 2011 Opscode, Inc.\n# License:: Apache License, Version 2.0\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\"... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to not conflict with libvirt-aws and libvirt-openstack-plugin\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/vagrant-libvirt/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove some TODOs that won't be implemented\n"
},
{
"from": "human",
"value": "begin\n require 'pry'\n has_pry = true\nrescue LoadError\n has_pry = false\nend\n\nmodule Byebug\n class PryTestCase < TestCase\n def setup\n @example = -> do\n byebug\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove `assert_template` test as this was extracted to a gem. Changed to a match of the page body contents.\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass Devise::PasswordExpiredControllerTest < ActionController::TestCase\n include Devise::TestHe... | ruby | chosen |
[
{
"from": "system",
"value": "Split RelationshipMappersFinalizer into smaller methods\n"
},
{
"from": "human",
"value": "module DataMapper\n class Finalizer\n\n class RelationshipMappersFinalizer < self\n\n # @api private\n def run\n finalize_relationship_mappers\n fi... | ruby | chosen |
[
{
"from": "system",
"value": "Support for keys without leading slashes\n"
},
{
"from": "human",
"value": "\ndef whyrun_supported?\n true\nend\n\naction :create do\n do_s3_file(:create)\nend\n\naction :create_if_missing do\n do_s3_file(:create_if_missing)\nend\n\naction :delete do\n do_s3_fil... | ruby | chosen |
[
{
"from": "system",
"value": "Update HHVM version for Trusty\n"
},
{
"from": "human",
"value": "default[\"hhvm\"][\"package\"][\"name\"] = \"hhvm\"\ndefault[\"hhvm\"][\"package\"][\"version\"] = \"3.5.0~precise\"\n\ndefault[\"hhvm\"][\"package\"][\"url\"] = \"https://s3.amazonaws.com/travis-php-... | ruby | chosen |
[
{
"from": "system",
"value": "Use more optimistic versioning for development dependencies\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"committee\"\n s.version = \"1.2.1\"\n\n s.summary = \"A collection of Rack middleware to support JSON Sc... | ruby | chosen |
[
{
"from": "system",
"value": "Add generated engine namespace into admin url\n"
},
{
"from": "human",
"value": "Refinery::Core::Engine.routes.draw do\n<% unless skip_frontend? %>\n # Frontend routes\n namespace :<%= namespacing.underscore %> do\n resources :<%= class_name.pluralize.underscor... | ruby | chosen |
[
{
"from": "system",
"value": "Rename global to better name and corrected a step definition\n"
},
{
"from": "human",
"value": "def flunker\n raise \"FAIL\"\nend\n\nGiven /^passing$/ do |table|\nend\n\nGiven /^failing$/ do |string|\n flunker\nend\n\nGiven /^passing without a table$/ do\nend\n\nG... | ruby | chosen |
[
{
"from": "human",
"value": "Add specs for pipeline builder repository validator\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe Gitlab::Ci::Pipeline::Chain::Validate::Repository do\n set(:project) { create(:project, :repository) }\n set(:user) { create(:user) }\n\n let(:co... | ruby | chosen |
[
{
"from": "system",
"value": "Use currency_fmt helper from cydoc adding delimiter.\n"
},
{
"from": "human",
"value": "# Methods added to this helper will be available to all templates in the application.\nmodule ApplicationHelper\n def sort_header(column, label = nil)\n label ||= column.huma... | ruby | chosen |
[
{
"from": "system",
"value": "Define system-info run via dynamic resource\n"
},
{
"from": "human",
"value": "module SystemInfoRecipeMethods\n include Chef::Mixin::ShellOut\n\n def run_system_info(options = {})\n require 'rbconfig'\n\n shell_out!(\n \"#{RbConfig.ruby} -S system-info ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove monkeypatch as now present in upstream\n\nSee\nhttps://github.com/abonas/kubeclient/blob/v4.0.0/lib/kubeclient/common.rb#L395\n"
},
{
"from": "human",
"value": "class Kubeclient::Client\n # We need to monkey patch this method until\n # https://github.com/ab... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Updated clang recipe for clang 3.4.\"\n\nThe ark we use does not work with xz file extensions, and thus clang 3.4 does not install.\nReverting for now until I have time to update ark and then clang.\n\nThis reverts commit 5a15cbac0ee399aa0a53b5cb56e76d0f0eab5719.\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Return Location header on successful upload\n"
},
{
"from": "human",
"value": "class Api::AsciicastsController < ApplicationController\n skip_before_filter :verify_authenticity_token\n\n def create\n ac = Asciicast.new(params[:asciicast])\n\n if ac.save\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Kext Wizard to new download location\n"
},
{
"from": "human",
"value": "class KextWizard < Cask\n version 'latest'\n sha256 :no_check\n\n url 'https://dl.dropboxusercontent.com/u/7085278/Kext_Wizard/KextWizard.zip'\n appcast 'http://dl.dropbox.com/u/70852... | ruby | chosen |
[
{
"from": "system",
"value": "Update SimPholders to version 2.1\n\nThis commit updates the version and sha256 stanzas.\n"
},
{
"from": "human",
"value": "cask :v1 => 'simpholders' do\n version '2.0'\n sha256 'f98517e2dc3eee2a564409d1bb0e59239a4221048102b67477c3f754436596bb'\n\n url \"http://s... | ruby | chosen |
[
{
"from": "system",
"value": "Update the azure-armrest gem dependency\n\nThis solves some nokogiri dependency resolution issues\nin other repos/gems\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\nrequire \"manageiq/providers/azure/version\"\n\nGem::Specifica... | ruby | chosen |
[
{
"from": "system",
"value": "Add History.txt and gemspec to gemspec.\n"
},
{
"from": "human",
"value": "require File.join(File.dirname(__FILE__), 'lib', 'twitter_cldr', 'version')\n\nGem::Specification.new do |s|\n s.name = \"twitter_cldr\"\n s.version = ::TwitterCldr::VERSION\n s.autho... | ruby | chosen |
[
{
"from": "human",
"value": "Add a spec that fails\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe 'cron::file' do\n let(:params) {{\n :file_params => {},\n }}\n\n context 'with a full path' do\n let(:title) { '/etc/cron.d/foobar' }\n\n it { should raise_error(Pup... | ruby | chosen |
[
{
"from": "system",
"value": "Update description of the home page\n"
},
{
"from": "human",
"value": "# Renders the home page.\nclass HomeController < ApplicationController\n def about\n @page_title = 'About us'\n @page_description = 'About MENA devs'\n @page_keywords = AppSett... | ruby | chosen |
[
{
"from": "system",
"value": "Fix reference to Spree::Calculator and Spree::TaxCategory in TaxRate model\n"
},
{
"from": "human",
"value": "class Spree::TaxRate < ActiveRecord::Base\n belongs_to :zone\n belongs_to :tax_category\n\n validates :amount, :presence => true, :numericality => true\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in Beatport 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 => 'beatport-pro' do\n version '2.1.6_155'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Move to new rails framework defaults\n\nWith the exception of “preserving the timezone of the receiver when calling to_time”, which relies on Ruby 2.4.\n\nThankfully, none of these migrations affected the behaviour of our application.\n"
},
{
"from": "human",
"value... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the error message on generate mailer\n\ngit-svn-id: afc9fed30c1a09d8801d1e4fbe6e01c29c67d11f@745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de\n"
},
{
"from": "human",
"value": "class MailerGenerator < Rails::Generator::NamedBase\n def manifest\n record do |m|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ambiguous column name in UpdateShipmentStateForCanceledOrders\nmigration\n\n[Closes #2792]\n"
},
{
"from": "human",
"value": "class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration\n def up\n Spree::Shipment.joins(:order).where(\"spree_orders.s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix 404 handling on docs pages\n"
},
{
"from": "human",
"value": "class DocsController < ApplicationController\n layout 'docs'\n\n rescue_from ActionView::MissingTemplate, :with => :not_found\n\n def show\n @current_category = params[:page].to_sym\n render ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove gem spec from environment\n\nThis was causing me strange errors, and we think is not needed.\n"
},
{
"from": "human",
"value": "# Settings specified here will take precedence over those in config/environment.rb\n\nconfig.log_level = :info\n\n# In the developm... | ruby | chosen |
[
{
"from": "human",
"value": "Remove some now unnessecary indexes.\n\nFixes #6194\n"
},
{
"from": "gpt",
"value": "class RemoveDuplicatedIndexesFromMultiColumns < ActiveRecord::Migration\n def change\n remove_index :spree_adjustments, name: \"index_adjustments_on_order_id\"\n remove_index ... | ruby | chosen |
[
{
"from": "system",
"value": "Add an inflector to mark \"commits\" as uncountable\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Add new inflection rules using the following format\n# (all these examples are active by default):\n# ActiveSuppor... | ruby | chosen |
[
{
"from": "system",
"value": "Update Beatport Pro to 2.1.1_137\n"
},
{
"from": "human",
"value": "class BeatportPro < Cask\n version '2.1.0_133'\n sha256 'd668c8fb82be5a5402a2470f7f65df75d08bad84352a609ea694290e29df93e2'\n\n url \"http://pro.beatport.com/mac/#{version}/beatportpro_#{version}.... | ruby | chosen |
[
{
"from": "human",
"value": "Add Deep Dreamer.app latest version\n\nThe easiest way to process images and video with Google’s amazing Deepdream engine.\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'deep-dreamer' do\n version :latest\n sha256 :no_check\n\n url 'http://dl.devmate.com/com.realma... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in SpiderOak 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 => 'spideroak' do\n version :latest\n sha2... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing health check spec (stub platform)"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Omnibus::HealthCheck do\n context 'on linux' do\n context 'without external dependencies' do\n it 'should not raise' do\n expect(Mixlib::... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in Dropshare 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 => 'dropshare' do\n version :latest\n sha2... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage and appcast to use SSL in Enjoyable 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 => 'enjoyable' do\n version '1.... | ruby | chosen |
[
{
"from": "system",
"value": "Make RSpec emit colored output no matter what\n\nWe thought concourse-filter was swallowing color codes.\n\nIt was not. Instead, they were not emitted on CI.\n\n[#133046105]\n"
},
{
"from": "human",
"value": "require 'bundler/setup'\nrequire 'machete'\nrequire 'mach... | ruby | chosen |
[
{
"from": "system",
"value": "Use from_salary in Slack notification\n"
},
{
"from": "human",
"value": "require 'slack-notifier'\n\nclass Notifier\n def self.get_notifier\n notifier = Slack::Notifier.new(AppSettings.slack_web_hook_url,\n channel: AppSettings... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec for subdir mounting\n"
},
{
"from": "gpt",
"value": "require \"spec_helper\"\n\ndescribe \"Rack config\" do\n include Rack::Test::Methods\n let(:app) {\n Rack::Builder.parse_file('config.ru').first\n }\n describe \"when RAILS_RELATIVE_URL_ROOT is abse... | ruby | chosen |
[
{
"from": "system",
"value": "Use packages app to redirect to bucket resources\n"
},
{
"from": "human",
"value": "# container for all constants including vendor-specific ones\nmodule Configs\n\n NAME = \"ruby\"\n BUILDPACK_VERSION = \"v77\"\n DEFAULT_RUBY_VERSION = \"ruby-2.0.0\"\n\n PAAS_VE... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug with TeamCityChainedProject creating extra statuses\n"
},
{
"from": "human",
"value": "class TeamCityChainedProject < TeamCityRestProject\n include TeamCityProjectWithChildren\n\n def fetch_new_statuses\n parsed_status = parse_project_status\n parsed... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure queries go to the master if transaction is active\n"
},
{
"from": "human",
"value": "module DbCharmer\n module FinderOverrides\n module ClassMethods\n SLAVE_METHODS = [ :find_by_sql, :count_by_sql, :calculate ]\n MASTER_METHODS = [ :update, :... | ruby | chosen |
[
{
"from": "system",
"value": "Make a new Errors module for the errors\n"
},
{
"from": "human",
"value": "module Discordrb\n # Raised when authentication data is invalid or incorrect.\n class InvalidAuthenticationException < RuntimeError; end\n\n # Raised when a HTTP status code indicates a fa... | ruby | chosen |
[
{
"from": "human",
"value": "Add Spec for UpsellPagesController edit Action\n\nAdd a spec to test the UpsellPagesController edit action.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe UpsellPagesController do\n describe \"GET 'edit'\" do\n let!(:user) { FactoryGirl... | ruby | chosen |
[
{
"from": "system",
"value": "Use fully qualified recipe name\n"
},
{
"from": "human",
"value": "name 'jenkins'\nmaintainer 'Chef Software, Inc.'\nmaintainer_email 'releng@chef.io'\nlicense 'Apache 2.0'\ndescription 'Installs and configures Jenkins CI master & sla... | ruby | chosen |
[
{
"from": "system",
"value": "Add StateHandler::handled_states wrapper method for readability\n"
},
{
"from": "human",
"value": "module StateHandler\n extend self\n\n def for(state_abbreviation)\n if constants.include?(state_abbreviation.to_sym)\n eval(\"StateHandler::#{state_abbreviat... | ruby | chosen |
[
{
"from": "system",
"value": "Update Dwarf Fortress to 0.40.24\n"
},
{
"from": "human",
"value": "cask :v1 => 'dwarf-fortress' do\n version '0.40.14'\n sha256 'f5c2e841702327af73fbed1f32eeb6ade7c3789ae795e8fa2b6a1a777e927ceb'\n\n url \"http://www.bay12games.com/dwarves/df_#{version.sub(%r{^0+... | ruby | chosen |
[
{
"from": "human",
"value": "Add new app Unified Remote\n"
},
{
"from": "gpt",
"value": "class UnifiedRemote < Cask\n url 'http://www.unifiedremote.com/download/macosx-setup'\n homepage 'http://www.unifiedremote.com'\n version 'latest'\n no_checksum\n link 'Unified Remote.app'\nend\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Allow ChargeBookingTemplate.amount with no date.\n"
},
{
"from": "human",
"value": "class ChargeBookingTemplate < BookingTemplate\n # Charge Rates\n def charge_rate(date = nil)\n ChargeRate.current(charge_rate_code, date)\n end\n \n def amount(date)\n ret... | ruby | chosen |
[
{
"from": "system",
"value": "Update Tor Browser to 4.0.1\n"
},
{
"from": "human",
"value": "class Torbrowser < Cask\n version '4.0'\n sha256 '1a6f153eb34ca43218ecd88a1ca8168c9e098a5a2fe10c3539e036f893e55bf2'\n\n url \"https://www.torproject.org/dist/torbrowser/#{version}/TorBrowser-#{version... | ruby | chosen |
[
{
"from": "system",
"value": "Use non-deprecated `deliver_now` in mailer spec.\n\n`deliver` is being depreacted. So use the non-deprecated one. Easy!\n"
},
{
"from": "human",
"value": "RSpec.describe Spree::UserMailer, type: :mailer do\n\n let!(:store) { create(:store) }\n let(:user) { create(... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for new way to get page_views\n"
},
{
"from": "human",
"value": "module Similarweb\n module EstimatedVisits\n def estimated_visits(domain)\n response = self.http_client.get \"#{domain}/v1/EstimatedTraffic?Format=JSON&UserKey=#{self.api_key}\"\n JSO... | ruby | chosen |
[
{
"from": "system",
"value": "Fix public search bug for logged in users."
},
{
"from": "human",
"value": "class PublicController < ApplicationController\n\n # Public search.\n def index\n @organizations = Organization.listed\n @current_account = current_account\n @include_analytics = ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure tests dont use ya2yaml\n"
},
{
"from": "human",
"value": "ENV[\"RAILS_ENV\"] = \"test\"\nrequire File.expand_path(File.dirname(__FILE__) + \"/../config/environment\")\nrequire 'test_help'\n\nrequire \"webrat\"\n\nWebrat.configure do |config|\n config.mode... | ruby | chosen |
[
{
"from": "system",
"value": "Update Pundit version dependency to at least version 1.1\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'pundit-matchers'\n s.version = '1.0.2'\n s.date = Time.now.strftime('%Y-%m-%d')\n s.summary = 'RSpec match... | ruby | chosen |
[
{
"from": "system",
"value": "Change adobe air's classname to what cask expects it to be.\n"
},
{
"from": "human",
"value": "class AdobeAirInstaller < Cask\n url 'http://airdownload.adobe.com/air/mac/download/3.5/AdobeAIR.dmg'\n homepage 'https://get.adobe.com/air/'\n version '3.5'\n \n #ca... | ruby | chosen |
[
{
"from": "system",
"value": "Fix topic/post creation error. Now we use build in HTML::WhiteLIstSanitizer instaead of removed white_list plugin. But plugin white_list_formatted_content still needed.\n"
},
{
"from": "human",
"value": "ActiveRecord::Base.class_eval do\n include ActionView::Helper... | ruby | chosen |
[
{
"from": "human",
"value": "Add the secret token initalizer\n"
},
{
"from": "gpt",
"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 invalid!\n# ... | ruby | chosen |
[
{
"from": "system",
"value": "Check recoverability of error in base class\n"
},
{
"from": "human",
"value": "require 'socket'\n\nmodule LogStashLogger\n module Device\n class Socket < Connectable\n DEFAULT_HOST = '0.0.0.0'\n\n attr_reader :host, :port\n\n def initialize(opts)\... | ruby | chosen |
[
{
"from": "human",
"value": "Add cask for Parallels Desktop 10 for Mac\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'parallels10' do\n version '10.2.2-29105'\n sha256 '1065e1b85b5a3ccce0eecafe425dc29e17a9f71a8eed81716ca705aa1b738639'\n\n url \"http://download.parallels.com/desktop/v#{version[... | ruby | chosen |
[
{
"from": "system",
"value": "Update feature visibility spec for projects edit page\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nfeature 'Project edit', feature: true, js: true do\n include WaitForAjax\n\n let(:user) { create(:user) }\n let(:project) { create(:project) }\n\... | ruby | chosen |
[
{
"from": "human",
"value": "Revert \"removing old flight agent\"\n\nThis reverts commit 46ca9d7919a08f8a27600943939ff74722b60adc.\n"
},
{
"from": "gpt",
"value": "module Agents\n class AdiosoAgent < Agent\n cannot_receive_events!\n\n \tdefault_schedule \"every_1d\"\n\n description <<-MD... | ruby | chosen |
[
{
"from": "system",
"value": "Add `with: :exception` to protect_from_forgery call\n\nAs recommended by codacy"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n protect_from_forgery\n\n helper_method :current_user, :logged_in?, :current_year, :admin?\n\n b... | ruby | chosen |
[
{
"from": "system",
"value": "Update em-http-request dependency to version ~> 1.1\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'tweetstream/version'\n\nGem::Specification.new do |s... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.