conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Add task to send mails to Powerball user on draw date\n"
},
{
"from": "human",
"value": "task :send_mail_Powerball => :environment do\n puts \"mail sent\"\n user = User.new(username:'mimi', email: 'drodriguez@clunda.co', password:\"12345\")\n Notifier.welcome_ema... | ruby | chosen |
[
{
"from": "system",
"value": "Set default bundler to 1.16.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"debug_extras/version\"\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "human",
"value": "Add NOT NULL constraint to Entry timestamps\n"
},
{
"from": "gpt",
"value": "class AddNotNullToEntryTimestamps < ActiveRecord::Migration\n def up\n change_column :entries, :created_at, :datetime, null: false\n change_column :entries, :updated_at, :datetime, nu... | ruby | chosen |
[
{
"from": "system",
"value": "Remove spec files from gem\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'month'\n s.version = '1.5.0'\n s.license = 'MIT'\n s.platform = Gem::Platform::RUBY\n s.authors = ['Tim Craft']\n s.email = ['mail@timcraft.com']\n s.homep... | ruby | chosen |
[
{
"from": "system",
"value": "Fix service name in capistrano production deployment task\n"
},
{
"from": "human",
"value": "namespace :unicorn do\n desc \"Restart application server\"\n task :restart do\n on roles(fetch(:unicorn_roles)) do\n execute :service, 'unicorn.onodo', 'restart'\... | ruby | chosen |
[
{
"from": "human",
"value": "Complete code coverage for VotesController.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe VotesController do\n render_views\n \n it \"should set the votes variable on index\" do\n get :index\n\n assigns(:votes).should_not be_nil\n end\n... | ruby | chosen |
[
{
"from": "system",
"value": "Make usage content spec the same for CE and EE\n\nThis changes the spec in question so that it is the same for both CE and\nEE. This requires an `if Gitlab.ee?` since EE requires that we stub an\nEE specific module, but doing so in CE will break the spec there.\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Make spec license extraction more confident for pip\n"
},
{
"from": "human",
"value": "module LicenseFinder\n class PipPackage < Package\n LICENSE_FORMAT = /^License.*::\\s*(.*)$/\n INVALID_LICENSES = [\"\", \"UNKNOWN\"].to_set\n\n def self.license_names_f... | ruby | chosen |
[
{
"from": "system",
"value": "Remove count method on the model.\n"
},
{
"from": "human",
"value": "module FCG\n module Client\n module Comment\n ATTRIBUTES = [:site, :record, :body, :body_as_html, :deleted, :flagged_by, :depth, :path, :parent_id, :displayed_name, :user_id]\n\n modu... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.3 to 0.1.4\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'error_data'\n s.version = '0.1.3'\n s.summary = 'Representation of an error as a data structure'\n s.descript... | ruby | chosen |
[
{
"from": "system",
"value": "Read MIFARE card without poll, send directly to FireFox\n"
},
{
"from": "human",
"value": "# -*- encoding : utf-8 -*-\nrequire 'rubygems'\nrequire 'smartcard'\n\n\n\ndef get_uid\n while true\n context = Smartcard::PCSC::Context.new\n reader = context.readers... | ruby | chosen |
[
{
"from": "system",
"value": "Add assertion about newly audited model\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe RawInputTransformJob do\n describe '#perform' do\n context 'with a new record' do\n it 'creates that record and records the result' do\n sou... | ruby | chosen |
[
{
"from": "system",
"value": "Remove activesupport as a dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'doormat/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Add pry to development dependencies.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/einhorn/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = ['Greg Brockman']\n gem.email = ['gdb@s... | ruby | chosen |
[
{
"from": "system",
"value": "Return a JSON error message if requested resource could not be found"
},
{
"from": "human",
"value": "class Api::ResourcesController < ApiController\n before_filter :ensure_klass\n before_filter :find_instance\n\n # Creates resource consumer on provider.\n def c... | ruby | chosen |
[
{
"from": "system",
"value": "Make ApplicationData a plain module include\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Clusters\n module Concerns\n module ApplicationData\n extend ActiveSupport::Concern\n\n included do\n def uninstall_command\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add default for initializer for service\n"
},
{
"from": "human",
"value": "class DatasetFileSchemaService\n\n def initialize(dataset_file_schema)\n @dataset_file_schema = dataset_file_schema\n end\n\n def create_dataset_file_schema(schema_name, description, ur... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in MuseScore 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 => 'musescore' do\n version '2.0.1'\n sha2... | ruby | chosen |
[
{
"from": "system",
"value": "Include sample output with examlpe\n"
},
{
"from": "human",
"value": "class A\n def foo\n a = 1\n a\n end\n\n def bar\n foo\n private_methods\n end\n\n def car\n c\n c = 1\n end\nend\n\nmodule B\n def foo\n a\n instance_bar\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor csv importer to keep state of validity\n"
},
{
"from": "human",
"value": "require 'csv'\n\nmodule Peoplefinder\n class CsvPeopleImporter\n COLUMNS = %w[given_name surname email]\n\n attr_reader :errors\n\n def initialize(csv)\n @rows, @header... | ruby | chosen |
[
{
"from": "system",
"value": "Configure mail for letter_opener gem"
},
{
"from": "human",
"value": "Techradar::Application.configure do\n # Settings specified here will take precedence over those in config/application.rb.\n\n # In the development environment your application's code is reloaded... | ruby | chosen |
[
{
"from": "system",
"value": "Add email and password validations in Spree::User model\n"
},
{
"from": "human",
"value": "module Spree\n class User < ActiveRecord::Base\n self.table_name = 'spree_people'\n\n authenticates_with_sorcery!\n end\nend\n"
},
{
"from": "gpt",
"value"... | ruby | chosen |
[
{
"from": "system",
"value": "Fix left join in to_rate scope\n"
},
{
"from": "human",
"value": "class Submission < ActiveRecord::Base\n validates :full_name, :age, :email, :codeacademy_username, :description, :html, :css, :js, :ror, :db,\n :programming_others, :english, :operating_sy... | ruby | chosen |
[
{
"from": "system",
"value": "Fix :only and :except options bug\n"
},
{
"from": "human",
"value": "require \"pathname\"\n\nmodule Guideline\n class Visitor\n attr_reader :options\n\n def initialize(options, &block)\n @options = options\n @block = block\n end\n\n def visi... | ruby | chosen |
[
{
"from": "system",
"value": "Set the settings with correct settings set\n"
},
{
"from": "human",
"value": "class Identities::Saml < Identities::Base\n include Routing\n set_identity_type :saml\n attr_accessor :response\n\n def initialize(response: \"\")\n super.tap do\n self.respons... | ruby | chosen |
[
{
"from": "system",
"value": "Use portal name in email messages from field\n"
},
{
"from": "human",
"value": "class PasswordMailer < ActionMailer::Base\n default :from => \"Admin <#{APP_CONFIG[:help_email]}>\"\n \n def forgot_password(password)\n @user = password.user\n @url = \"#{APP_C... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue where emailed replies weren't being published\n"
},
{
"from": "human",
"value": "require 'openssl'\n\nclass SecureReplyTo\n attr_reader :object_type, :object_id, :user_id\n\n def initialize(object_type, object_id, user_id)\n @object_type, @object_id, ... | ruby | chosen |
[
{
"from": "system",
"value": "Add accepts_nested_attributes declarations to HasVcards concern.\n"
},
{
"from": "human",
"value": "module HasVcards\n module Concerns\n # ActiveRecord extensions\n #\n # Including this module in your ActiveRecord classes sets up associations and helpers t... | ruby | chosen |
[
{
"from": "system",
"value": "Add bank account type list to select collection\n"
},
{
"from": "human",
"value": "class BankAccount < ActiveRecord::Base\n include CatarsePagarme::BankAccountConcern\n include Shared::BankAccountHelper\n\n belongs_to :user\n belongs_to :bank\n\n validates :ban... | ruby | chosen |
[
{
"from": "system",
"value": "Tag names can be mass-assigned.\n"
},
{
"from": "human",
"value": "class Gutentag::Tag < ActiveRecord::Base\n has_many :taggings, :class_name => 'Gutentag::Tagging',\n :dependent => :destroy\n\n validates :name, :presence => true, :uniqueness => {:case_sensitiv... | ruby | chosen |
[
{
"from": "system",
"value": "Allow view helpers to take an options hash\n\n- To allow css classes, etc\n"
},
{
"from": "human",
"value": "module DeviseAuthy\n module Views\n module Helpers\n\n def authy_request_sms_link\n link_to(\n I18n.t('request_sms', {:scope => 'dev... | ruby | chosen |
[
{
"from": "human",
"value": "Add a helper for strip_heredoc.\n"
},
{
"from": "gpt",
"value": "module Librarian\n module Helpers\n extend self\n\n # [active_support/core_ext/string/strip]\n def strip_heredoc(string)\n indent = string.scan(/^[ \\t]*(?=\\S)/).min\n indent = inde... | ruby | chosen |
[
{
"from": "system",
"value": "Switch effective date to match AMA supplied records\n"
},
{
"from": "human",
"value": "module Cypress\n class MeasureEvaluator\n \n STATIC_EFFECTIVE_DATE = Time.gm(2010,12,31).to_i\n \n # Evaluates the supplied measure for a particular vendor\n def sel... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for Unclaimed Draft Edit and Resend endpoint\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe HelloSign::Api::UnclaimedDraft do\n describe '#create_unclaimed_draft' do\n context 'send_document' do\n before do\n stub_post... | ruby | chosen |
[
{
"from": "system",
"value": "Remove mince related code in the integration spec for creating a migraiton\n"
},
{
"from": "human",
"value": "require_relative '../../lib/mince_migrator'\n\nrequire 'hashy_db'\n\nMince::Config.interface = Mince::HashyDb::Interface\n\ndescribe \"The creation of a mig... | ruby | chosen |
[
{
"from": "system",
"value": "Fix slow request by converting to ms\n"
},
{
"from": "human",
"value": "module TransactionHelpers\n\n def transaction_with_exception\n appsignal_transaction.tap do |o|\n begin\n raise ArgumentError, 'oh no'\n rescue ArgumentError => exception\n ... | ruby | chosen |
[
{
"from": "system",
"value": "[Gemspec] Add a required ruby version\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'cocoapods/deintegrate/gem_version'\n\nGem::Specification.new do |s... | ruby | chosen |
[
{
"from": "system",
"value": "Make price parser a bit more robust\n"
},
{
"from": "human",
"value": "module Pris\n class PriceParser\n def parse(raw)\n parse_float(extract_number(raw))\n end\n\n def extract_number(raw)\n raw[/\\d+,\\d+/] || \"\"\n end\n\n def parse_floa... | ruby | chosen |
[
{
"from": "system",
"value": "Move method in class methods\n"
},
{
"from": "human",
"value": "module Net\n USER_AGENT = \"Net - https://bitbucket.org/hipbyte/flow\"\n\n def self.session(base_url, &block)\n Session.build(base_url, &block)\n end\n\n class << self\n [:get, :post, :put, :d... | ruby | chosen |
[
{
"from": "system",
"value": "Add options argument to helper methods\n"
},
{
"from": "human",
"value": "module Sinatrails\n class Router < Struct.new(:sinatra)\n def add_route method, path, target, opts = {}\n controller, action = target.split '#'\n \n action = action.to_sym\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add a rake task to create demo data\n\nUseful for development, review apps and our demo instance\n"
},
{
"from": "gpt",
"value": "namespace :data do\n desc 'Create demo data using our factories'\n task demo: :environment do\n include FactoryGirl::Syntax::Methods... | ruby | chosen |
[
{
"from": "system",
"value": "Make savon options more configurable and overridable by subclass\n"
},
{
"from": "human",
"value": "require 'savon'\n\nmodule TresDelta\n class Client\n attr_accessor :wsdl\n\n def initialize(wsdl)\n @wsdl = wsdl\n end\n\n def request(action, soap_... | ruby | chosen |
[
{
"from": "system",
"value": "Add URIConfig::Config.parameter for query params\n"
},
{
"from": "human",
"value": "require 'uri'\nrequire 'cgi'\n\nmodule URIConfig\n class Config\n def initialize(url)\n @url = url\n end\n\n def self.map(key, options = {})\n alias_method key, o... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Revert \"We still need Ruby >= 2.0 assertion error class for test::unit\"\"\n\nThis reverts commit 4fe92a42691b49b81570d9771e7f41c48e43c100.\n"
},
{
"from": "human",
"value": "require 'test/unit'\nrequire 'webmock'\n\nWebMock.enable!\n\nmodule Test\n modul... | ruby | chosen |
[
{
"from": "system",
"value": "Update hiredis dependency to 0.5.x\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"em-hiredis/version\"\n\nGem::Specification.new do |s|\n s.name = \"em-hiredis\"\n s.version = Even... | ruby | chosen |
[
{
"from": "system",
"value": "Remove use of @page_title from the ApplicationHelper\n\nRubocop was moaning about this, and I can't see where it's used, so\njust remove it.\n"
},
{
"from": "human",
"value": "module ApplicationHelper\n def page_title(*title_parts)\n if title_parts.any?\n t... | ruby | chosen |
[
{
"from": "system",
"value": "Use `case` instead of `if`\n\nIt reads nicer, and `flog` agrees. Before:\n\n❯ flog lib/rubocop/cop/rspec/mixin/top_level_group.rb\n 29.7: flog total\n 5.0: flog/method average\n\n 9.8: RuboCop::Cop::RSpec::TopLevelGroup#top_level_nodes lib/rubocop/cop/rspec/mixin/top... | ruby | chosen |
[
{
"from": "system",
"value": "Handle processing errors in the consumer example\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.expand_path(\"../../lib\", __FILE__))\n\nrequire \"kafka\"\n\nlogger = Logger.new(STDOUT)\nbrokers = ENV.fetch(\"KAFKA_BROKERS\", \"localhost:9092\").split(\"... | ruby | chosen |
[
{
"from": "system",
"value": "Add instructions for gengo translators\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass GengoCommunicator\n TIER = 'standard'\n\n def initialize\n @connection = Gengo::API.new(\n public_key: Rails.application.secrets.gengo['public_... | ruby | chosen |
[
{
"from": "system",
"value": "Disable any filters that might be set in Application Controller, speeds up the action time. Only works with rails 2.1+"
},
{
"from": "human",
"value": "class FitterHappierController < ActionController::Base\n session :off\n layout nil\n \n def index\n render(... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spec to support the Backbone app's refactoring\n"
},
{
"from": "human",
"value": "require_relative '../spec_helper'\n\ndescribe \"Sinatra application\" do\n\n\tit 'compiles the sass stylesheet' do\n\t\tget '/stylesheet.css'\n\t\tlast_response.status.should == 20... | ruby | chosen |
[
{
"from": "system",
"value": "Add LICENSE to .gemspec\nThis will include the LICENSE file in the distributed .gem.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"sprockets-rails\"\n s.version = \"2.0.0\"\n\n s.homepage = \"https://github.com/rails/sprockets-rail... | ruby | chosen |
[
{
"from": "system",
"value": "Increase version number of dotenv dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'everything/version'\n\nGem::Specification.new do |spec|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update rubocop requirement to ~> 0.50.0\n\nUpdates the requirements on [rubocop](https://github.com/bbatsov/rubocop) to permit the latest version.\n- [Release notes](https://github.com/bbatsov/rubocop/releases)\n- [Changelog](https://github.com/bbatsov/rubocop/blob/master/CHANG... | ruby | chosen |
[
{
"from": "system",
"value": "Call compact to weed out nil addresses before calling js.\n"
},
{
"from": "human",
"value": "module MapItHelper\n \n def javascript_mapit_include\n js = '<script type=\"text/javascript\" src=\"http://maps.google.com/maps/api/js?sensor=false\"></script>'\n js... | ruby | chosen |
[
{
"from": "system",
"value": "Add searching for unique available terms\n"
},
{
"from": "human",
"value": "module OfferHelper\n def user_assignations(user)\n assignations = Assignation.joins(schedule: :user).where(schedules: { user_id: user }).includes(term: :subject)\n assignations.map { ... | ruby | chosen |
[
{
"from": "system",
"value": "Check for valid Flatiron student earlier in the workflow (avoid destroying users who have left flatiron-school-students)\n"
},
{
"from": "human",
"value": "class Authorization < ActiveRecord::Base\n belongs_to :user\n\n def self.user_from_omniauth(auth)\n autho... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing expectation to Appium test for Singer Selection\n"
},
{
"from": "human",
"value": "# coding: utf-8\nrequire_relative 'spec_helper'\n\ndescribe '読手を選ぶテスト' do\n\n it 'アプリのタイトルが正しく表示される' do\n can_see(TITLE)\n end\n\n describe '読手を選ぶと、それがホーム画面に反映される' d... | ruby | chosen |
[
{
"from": "human",
"value": "Add spec to ensure php extensions files are correct\n\n[#161119336]\n\nCo-authored-by: Andrew Meyer <8f92422f5861fc9f31873f75dd770facd670512b@pivotal.io>\n"
},
{
"from": "gpt",
"value": "describe 'PhpExtensions' do\n modules_72_only = ['libsodium']\n extensions_72_... | ruby | chosen |
[
{
"from": "system",
"value": "Check that Bundler::Deprecate is not an autoload constant\n\n* Otherwise, it should be defined by this file.\n* The issue is bundler/deprecate.rb checks `defined? Bundler::Deprecate`\n and this would normally return true since an autoload is defined for\n that constant. But s... | ruby | chosen |
[
{
"from": "system",
"value": "Add view specs for homepage\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe \"homepage/index.html.erb\", type: :view do\n pending \"add some examples to (or delete) #{__FILE__}\"\nend\n"
},
{
"from": "gpt",
"value": "require ... | ruby | chosen |
[
{
"from": "human",
"value": "Add the example from the utracker gem.\n"
},
{
"from": "gpt",
"value": "#\n# In this example 3 bots are sending each other messages. Each bot run in a\n# separated thread. A bot follows this behaviour:\n#\n# 1. Check its inbox (queue)\n# 2. If there is no message... | ruby | chosen |
[
{
"from": "system",
"value": "Add debian to, and reorders icinga2.apache_modules\n"
},
{
"from": "human",
"value": "\ndefault['icinga2']['apache_modules'] = value_for_platform(\n %w(centos redhat fedora) => { '>= 7.0' => %w(default mod_wsgi mod_php5 mod_cgi mod_ssl mod_rewrite),\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add some UnitTests to to_pdate method of Date\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\n\nclass CoreDateTest < ActiveSupport::TestCase\n\n test \"date to pdate\" do\n assert_equal Date.today.to_pdate.class, PDate\n end\n\n\n\nend\n"
},
{
... | ruby | chosen |
[
{
"from": "system",
"value": "Change branch of oc-chef-pedand to dt/remove_focus\n"
},
{
"from": "human",
"value": "name \"oc-chef-pedant\"\ndefault_version \"1.0.47.1\"\n\ndependency \"ruby\"\ndependency \"bundler\"\ndependency \"rsync\"\n\nsource :git => \"git@github.com:opscode/oc-chef-pedant... | ruby | chosen |
[
{
"from": "system",
"value": "Allow blocks on Faraday connections\n"
},
{
"from": "human",
"value": "module Faraday::Bang\n ERROR_CODES = [(400..417).to_a, (500..505).to_a].flatten\n\n Faraday::Connection::METHODS.each do |verb|\n define_method(\"#{verb}!\") do |*args|\n response = sel... | ruby | chosen |
[
{
"from": "system",
"value": "Change variable to become more readable. File to file name\n"
},
{
"from": "human",
"value": "\n%w(no_such_api_error no_username_or_password_error).each do |file|\n require \"jeckle/exceptions/#{file}\"\nend\n"
},
{
"from": "gpt",
"value": "\n%w(no_such... | ruby | chosen |
[
{
"from": "system",
"value": "Test union builder with different union class\n\nTypeCValue no longer exposes its internal structure in the GIR.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nrequire 'gir_ffi_test_helper'\n\ndescribe GirFFI::Builders::UnionBuilder do\n let(:u... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the UsersController in the testapp\n"
},
{
"from": "human",
"value": "class UsersController < ApplicationController\n \n def index\n User.create! :name => \"Frank\" unless User.first\n redirect_to User.first\n end\n \n def show\n @user = User.find ... | ruby | chosen |
[
{
"from": "system",
"value": "Install deps, now that we pin version\n"
},
{
"from": "human",
"value": "# install all packages from jenkins-server-plugins array to mimic\n# previous cookbook's behavior\n\nnode['jenkins']['server']['plugins'].each do |plugin|\n jenkins_plugin plugin['name'] do\n ... | ruby | chosen |
[
{
"from": "human",
"value": "[TAV-485] Set up minimal worker tests.\n\nJust checks max_attempts so far.\n"
},
{
"from": "gpt",
"value": "#------------------------------------------------------------------------------\n# Copyright (c) 2014 The University of Manchester, UK.\n#\n# BSD Licenced. See... | ruby | chosen |
[
{
"from": "system",
"value": "Set date on gem build\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'gitlab_git'\n s.version = `cat VERSION`\n s.date = '2013-04-29'\n s.summary = \"Gitlab::Git library\"\n s.description = \"GitLab wrapper aro... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade GoPro Studio.app to v2.5.4.514\n"
},
{
"from": "human",
"value": "cask :v1 => 'gopro-studio' do\n version '2.5.3.460'\n sha256 '870ede8a7f446caaf34690dcb623b2d3b193449575517339dca4ff81f07e2f9a'\n\n url \"http://software.gopro.com/Mac/GoProStudio-#{version... | ruby | chosen |
[
{
"from": "system",
"value": "Update rake requirement from ~> 10.0 to ~> 12.3\n\nUpdates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.\n- [Release notes](https://github.com/ruby/rake/releases)\n- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)\n- [... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Replace \"execute_script\" for triggering hovercards\"\n\nThis reverts commit e7dc4eca9ecdb025c01b02890e8e075ebc1af9cc.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nWhen(/^I activate the first hovercard$/) do\n first(\".hovercardable... | ruby | chosen |
[
{
"from": "system",
"value": "Add option for absolute paths\n"
},
{
"from": "human",
"value": "module GraphStarter\n module ApplicationHelper\n def asset_path(asset)\n graph_starter.asset_path(id: asset, model_slug: asset.class.model_slug)\n end\n\n def engine_view(&b)\n yie... | ruby | chosen |
[
{
"from": "system",
"value": "Add book fields script to asset pipeline\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.0'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix issue where exception would be thrown if Avalara is configured with Numeric account number instead of String\n"
},
{
"from": "human",
"value": "require 'singleton'\n\nmodule AvaTax\n class Configuration\n include Singleton\n\n def initialize\n @accou... | ruby | chosen |
[
{
"from": "system",
"value": "Use narrow definition of files to include in gemspec\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"high_voltage/version\"\n\nGem::Specification.new do |s|\n s.name = 'high_voltage'\n s.version = HighVoltage... | ruby | chosen |
[
{
"from": "system",
"value": "Remove duplicate dependency in gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path('../lib', __FILE__)\nrequire 'i18n_generators/version'\n\nGem::Specification.new do |s|\n s.name = 'i18n_generators'\n s.version ... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure we can run all spec files individually\n"
},
{
"from": "human",
"value": "require 'perpetuity/validations/length'\nrequire 'perpetuity/validations/presence'\n\nmodule Perpetuity\n class ValidationSet < Set\n\n def valid? object\n each do |validati... | ruby | chosen |
[
{
"from": "system",
"value": "Remove thread in collector to allow offline usage\n"
},
{
"from": "human",
"value": "require 'securerandom'\nrequire 'httparty'\n\nmodule Sessions\n class CollectorClient\n include HTTParty\n base_uri 'https://drill-collector.herokuapp.com'\n # base_uri 'h... | ruby | chosen |
[
{
"from": "system",
"value": "Add all of owner's shard keys to specify shards when association preloading\n"
},
{
"from": "human",
"value": "require 'active_record/associations/preloader/association'\n\nmodule ActiveRecord::Turntable\n module ActiveRecordExt\n module AssociationPreloader\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Read version from version file\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |s|\n s.name = %q{capybara-mechanize}\n s.version = \"0.2.4\"\n\n s.required_rubygems_version = Gem::Requirement.new(\">= 0\") if s.respond_to... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs for BEGIN/END behaviour with -n\n"
},
{
"from": "human",
"value": "describe \"The -n command line option\" do\n before :each do\n @names = fixture __FILE__, \"names.txt\"\n end\n\n it \"runs the code in loop conditional on Kernel.gets()\" do\n ru... | ruby | chosen |
[
{
"from": "system",
"value": "Use jsonb for subscription event details when possible\n"
},
{
"from": "human",
"value": "class CreateSolidusSubscriptionsSubscriptionEvents < ActiveRecord::Migration[5.2]\n def change\n create_table :solidus_subscriptions_subscription_events do |t|\n t.bel... | ruby | chosen |
[
{
"from": "system",
"value": "Raise RuntimeError for invalid token\n"
},
{
"from": "human",
"value": "require \"strscan\"\n\nmodule AWSConfig\n class Parser\n def self.parse(string)\n new.parse(string)\n end\n\n def parse(string)\n build(tokenize(string))\n end\n\n priv... | ruby | chosen |
[
{
"from": "system",
"value": "Add erroneous product find test\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nmodule Tiqets\n module Resources\n class ProductTest < Minitest::Test\n def setup\n @client = ::Tiqets::Client.new(api_key: 'test_api_key')\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Move fetch rules to private\n"
},
{
"from": "human",
"value": "require 'nokogiri'\n\nclass Fetcher\n attr_reader :document\n\n def initialize(html_document)\n @document = Nokogiri::HTML(html_document)\n end\n\n def copyright\n text = fetch_by_tags || fetch... | ruby | chosen |
[
{
"from": "system",
"value": "Fix encoding bug with Mail::Body."
},
{
"from": "human",
"value": "module Shrinker\n module Parser\n class Mime < Abstract\n require 'mail'\n\n def replace\n [email, email.all_parts].flatten.compact.each do |part|\n part.body = Text::re... | ruby | chosen |
[
{
"from": "human",
"value": "Add rake task to export users to CSV\n"
},
{
"from": "gpt",
"value": "namespace :export do\n desc 'Export all users'\n task :users => :environment do\n FILENAME = \"tmp/users_#{Date.today.to_s}.csv\".freeze\n COLUMN_NAMES = %w(id name email role organisation ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a few more extension points.\n"
},
{
"from": "human",
"value": "module VncTools\n class ServerPool\n include Observable\n\n def initialize(capacity, klass = Server)\n @capacity = capacity\n @running = []\n @server_class = klass\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add rails version check method\n\nConflicts:\n\tlib/espinita.rb\n"
},
{
"from": "human",
"value": "require \"espinita/engine\"\nrequire \"request_store\"\n\nmodule Espinita\n\n autoload :Auditor, \"espinita/auditor\"\n autoload :AuditorBehavior, \"espinita/auditor... | ruby | chosen |
[
{
"from": "system",
"value": "Use UTF-8 as default encoding\n"
},
{
"from": "human",
"value": "require 'redcarpet'\nrequire 'yaml'\nrequire 'pygments'\nrequire 'fileutils'\nrequire 'pathname'\nrequire 'erb'\n\nrequire 'hologram/version'\nrequire 'hologram/document_block'\nrequire 'hologram/doc_b... | ruby | chosen |
[
{
"from": "system",
"value": "Use blank? instead of nil? and empty?\n"
},
{
"from": "human",
"value": "class Aerosol::Instance\n include Aerosol::AWSModel\n\n aws_attribute :availability_zone, :health_status, :instance_id, :lifecycle_state\n aws_class_attribute :launch_configuration, Aerosol:... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bundler version from gemspec. Travis still having trouble.\n"
},
{
"from": "human",
"value": "$:.unshift File.expand_path('lib', File.dirname(__FILE__))\nrequire 'looksee/version'\n\nGem::Specification.new do |gem|\n gem.name = 'looksee'\n gem.version = Loo... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec with maintainer information.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib/', __FILE__)\n$:.unshift lib unless $:.include?(lib)\n\nrequire 'maildir/version'\n\nGem::Specification.new do |s|\n s.name = 'm... | ruby | chosen |
[
{
"from": "human",
"value": "Add integration specs for existing TrackSensor class\n\nUse regular text files to simulate device files.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe TrackSensor do\n subject(:track_sensor) { TrackSensor.new device_glob: \"{#{device_path},#{sec... | ruby | chosen |
[
{
"from": "human",
"value": "Add a simple smoke test for scheduling.\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\n\ndescribe \"Scheduler\" do\n before(:all) do\n @scheduler = TorqueBox::Scheduling::Scheduler\n end\n\n describe \"schedule\" do\n it \"should work\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor code per Ben's suggestions\n\ngit-svn-id: 61896eb63f1561c389be937852d9629e8857f2e4@134 e959a6d6-1924-0410-92b3-a6fa492f4c66\n"
},
{
"from": "human",
"value": "module ActiveRecord\n class Base\n class << self\n def caches_constants(additional_option... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.