conversations listlengths 2 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Add I18n translations to the conductor\n"
},
{
"from": "human",
"value": "require \"active_model\"\nrequire \"forwardable\"\n\nclass ActiveConductor\n include ActiveModel::Conversion\n include ActiveModel::Validations\n extend ActiveModel::Naming\n extend Forwar... | ruby | chosen |
[
{
"from": "system",
"value": "guests/debian: Exit on error when configuring hostname"
},
{
"from": "human",
"value": "module VagrantPlugins\n module GuestDebian\n module Cap\n class ChangeHostName\n # For more information, please see:\n #\n # https://wiki.debian.o... | ruby | chosen |
[
{
"from": "system",
"value": "Set Reveal license to commercial"
},
{
"from": "human",
"value": "cask :v1 => 'reveal' do\n version :latest\n sha256 :no_check\n\n url 'http://download.revealapp.com/Reveal.app.zip'\n appcast 'http://download.revealapp.com/reveal-release.xml'\n name 'Reveal'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for activesupport < 4.0\n"
},
{
"from": "human",
"value": "module Goodyear\n class Railtie < Rails::Railtie\n ActiveSupport::Notifications.subscribe 'query.elasticsearch' do |name, start, finish, id, payload|\n Rails.logger.debug([\"#{payload[:name]}\".... | ruby | chosen |
[
{
"from": "system",
"value": "Make a clean code in InsensitiveLoad\n\nInsensitiveLoad\n----\n\n- Make a clean code at argument definition of InsensitiveLoad.values.\n"
},
{
"from": "human",
"value": "require \"insensitive_load/version\"\nrequire \"insensitive_load/collector\"\n\nmodule Insensiti... | ruby | chosen |
[
{
"from": "system",
"value": "Use the same oneliner in the update function\n\nSigned-off-by: Siddharth Kannan <7a804f1d08bac02a84ba1822c22c8bf38be68ecc@tutanota.com>\n"
},
{
"from": "human",
"value": "class ArticleController < ApplicationController\n\tdef index\n\tend\n\tdef create\n\t\tif not u... | ruby | chosen |
[
{
"from": "system",
"value": "Fix how Selector.multi_selection? handles symbols\n"
},
{
"from": "human",
"value": "module Mongoff\n class Selector < Mongoid::Criteria::Selector\n\n def evolve_hash(serializer, value)\n value = serializer.evolve_hash(value)\n super\n end\n end\ne... | ruby | chosen |
[
{
"from": "system",
"value": "Check active plugin array for inquiries plugin.\n"
},
{
"from": "human",
"value": "module ::Refinery\n module Admin\n class DashboardController < ::Refinery::AdminController\n\n def index\n @recent_activity = []\n\n ::Refinery::Plugins.active.... | ruby | chosen |
[
{
"from": "system",
"value": "Clarify differences of selecting kind filter\n"
},
{
"from": "human",
"value": "require 'nicorepo/report'\nrequire 'forwardable'\n\nclass Nicorepo\n class Reports\n extend Forwardable\n\n TOP_URL = 'http://www.nicovideo.jp/my/top'\n\n attr_reader :reports\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the require_all dependency as it adds complexity/magic\n"
},
{
"from": "human",
"value": "$:.push File.expand_path('../lib', __FILE__)\n\n# Maintain your gem's version:\nrequire 'dayglo/version'\n\n# Describe your gem and declare its dependencies:\nGem::Speci... | ruby | chosen |
[
{
"from": "system",
"value": "Cocoapods: Fix issue <React/RCTConvert.h> not found\n\nSee #191.\r\nFixes issue <React/RCTConvert.h> by adding the missing dependency."
},
{
"from": "human",
"value": "require 'json'\n\npackage = JSON.parse(File.read(File.join(__dir__, 'package.json')))\n\nPod::Spec... | ruby | chosen |
[
{
"from": "system",
"value": "Format api end point and remove empty params such as value switch\n"
},
{
"from": "human",
"value": "require 'aliyun/openapi'\n\nmodule Aliyun::Openapi\n Core::ApiDSL.define('openapi').<%= @product %>(version: '<%= @version %>').<%=@api_name%>.end_point do |end_poi... | ruby | chosen |
[
{
"from": "system",
"value": "Remove some dependencies that can be pulled in transitively via GAX\n"
},
{
"from": "human",
"value": "# -*- ruby -*-\n# encoding: utf-8\n\nGem::Specification.new do |gem|\n gem.name = \"google-cloud-video_intelligence\"\n gem.version = \"0.25.0\"\n... | ruby | chosen |
[
{
"from": "human",
"value": "Add example of creating a subscription with metadata using the Ruby gem"
},
{
"from": "gpt",
"value": "# Testing creating a subscription with metadata (custom fields)\n\ngem 'chargify_api_ares', '=1.4.7'\nrequire 'chargify_api_ares'\n\nChargify.configure do |c|\n c.... | ruby | chosen |
[
{
"from": "system",
"value": "Fix version path for case sensitive FSes\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/ostrichPoll/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"Wiktor Macura\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Add description and summary to gemspec\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'patchstream/version'\n\nGem::Specification.new do |spec|\n spec.... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"rpearce: Adding support for multiple stackbuilder-config files\"\n\nThis reverts commit d48cb6eda2b31f7304b26b30f867264082231c1a.\n"
},
{
"from": "human",
"value": "class Stacks::Inventory\n\n def initialize(stack_dir)\n @stacks = Object.new\n @stack... | ruby | chosen |
[
{
"from": "system",
"value": "Update spec for new default configuration\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Disclosure::Configuration do\n it \"should have an accessor for the owner class to use\" do\n subject.should respond_to \"owner_class\"\n subject.sh... | ruby | chosen |
[
{
"from": "system",
"value": "Add a context for user_deposit specs\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\nRSpec.describe UserDeposit do\n describe '#call' do\n let(:user) {create(:user, balance: 1000)}\n let(:interactor) {UserDeposit.new(user_id: user.id, amount: 100... | ruby | chosen |
[
{
"from": "system",
"value": "Add endpoint for period quantity sold in range\n"
},
{
"from": "human",
"value": "module Shopt\n class API < Grape::API\n version 'v1', using: :header, vendor: 'shopt'\n format :json\n\n resource :customers do\n desc 'Returns all customers.'\n ge... | ruby | chosen |
[
{
"from": "system",
"value": "Fix index districts request spec\n"
},
{
"from": "human",
"value": "require 'rails_helper'\n\ndescribe \"GET /districts\", type: :request do\n let(:user) { create :user }\n let(:auth) { {\"X-Barcelona-Token\" => user.token} }\n let(:district) { create :district }... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for calling exit inside at_exit handler\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../../spec_helper'\nrequire File.dirname(__FILE__) + '/fixtures/classes'\n\ndescribe \"Kernel.at_exit\" do\n it \"is a private method\" do\n Ke... | ruby | chosen |
[
{
"from": "human",
"value": "Add podspec file with valid details\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n s.name = \"NSData+ImageMIMEDetection\"\n s.version = \"0.1.0\"\n s.summary = \"Category on NSData to check if it represents PNG or JPEG.\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Prepare to CI Capybara.default_wait_time = 15\n"
},
{
"from": "human",
"value": "require 'sinatra'\nrequire 'vxod'\nrequire 'slim'\nrequire 'sass'\nrequire 'config_env'\nrequire 'mongoid'\nrequire 'omniauth'\nrequire 'omniauth-twitter'\nrequire 'omniauth-vkontakte'\... | ruby | chosen |
[
{
"from": "system",
"value": "Add nested path for activities and papers\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n resources :papers\n devise_for :users, :controllers => { :omniauth_callbacks => \"users/omniauth_callbacks\" }\n as :user do\n get 'users/edit' => '... | ruby | chosen |
[
{
"from": "system",
"value": "[Foundation] Fix error messages on login to be more better.\n"
},
{
"from": "human",
"value": "class UserSessionsController < ApplicationController\n before_filter :require_no_user, :only => [:new, :create]\n before_filter :require_user, :only => :destroy\n \n l... | ruby | chosen |
[
{
"from": "system",
"value": "Add route for user show page\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n root to: 'welcome#index'\n \n \n get '/login', :to => 'sessions#new', :as => :login\n get '/logout', :to => 'sessions#destroy', :as => :logout\n\n get \"/aut... | ruby | chosen |
[
{
"from": "system",
"value": "Allow newer versions of faraday 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 'tinplate/version'\n\nGem::Specification.new do |spec|\n spe... | ruby | chosen |
[
{
"from": "system",
"value": "Test explicitely for nil, not falsey\n"
},
{
"from": "human",
"value": "require 'yaml'\nrequire 'active_support'\nrequire 'active_support/core_ext/hash'\n\nmodule UserPreferences\n extend ActiveSupport::Autoload\n\n autoload :API, 'user_preferences/api'\n autoloa... | ruby | chosen |
[
{
"from": "system",
"value": "Initialize option parameter in Providers\n"
},
{
"from": "human",
"value": "module Veewee\n\n class Providers\n def initialize(env, options)\n @env=env\n @options=options\n @providers=Hash.new\n end\n\n def [](name)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix edge case with getifaddrs\n"
},
{
"from": "human",
"value": "module Flow::Cassandra::Local\n extend self\n\n def addresses\n @local_addresses ||= begin\n if RUBY_VERSION['2.1']\n Socket.getifaddrs.map(&:addr).select(&:ip?).map(&:ip_address)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "ENHANCE: Validate that active is present\n"
},
{
"from": "human",
"value": "class Campus < ActiveRecord::Base\n # Relationships\n has_many :tutorials\n has_many :projects\n\n # Callbacks - methods called are private\n before_destroy :can_destroy?\n\n val... | ruby | chosen |
[
{
"from": "system",
"value": "Kill passing ivars as local vars\n\nIssue: #215\n"
},
{
"from": "human",
"value": "module RailsEventStore\n module RSpec\n class HavePublished\n def initialize(expected, *expecteds, differ:)\n @expected = [expected, *expecteds]\n @matcher = :... | ruby | chosen |
[
{
"from": "system",
"value": "Set deferred status on failure\n"
},
{
"from": "human",
"value": "require 'nori'\nrequire 'em-http-request'\nrequire_relative 'error'\n\nmodule UPnP\n class ControlPoint\n class Base\n include LogSwitch::Mixin\n\n def initialize\n Nori.configure... | ruby | chosen |
[
{
"from": "system",
"value": "Make it more obvious we're referenceing a non-bare repository.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Clamshell::Project do\n before :each do\n @project = Clamshell::Project.new(\"MyProject\")\n end\n\n describe \"project\" do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove delegate from ReadCommand spec mocks\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift '../lib'\n\nrequire 'read_command'\n\nrequire_relative '../spec_helper'\n\nrequire 'strscan'\n\ndescribe ReadCommand do\n subject { ReadCommand.new(translator, scanner... | ruby | chosen |
[
{
"from": "human",
"value": "Create a separate spec for tracked revisions functionality\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'rails_helper'\nrequire_dependency \"#{Rails.root}/lib/analytics/course_statistics.rb\"\n\ndescribe 'TrackedRevisions' do\n let(:cour... | ruby | chosen |
[
{
"from": "system",
"value": "Fix no projects for current project bug\n"
},
{
"from": "human",
"value": "module ProjectsHelper\n\n def set_current_project(project)\n self.current_project = project\n end\n\n def current_project\n @current_project = if session[:project_id]\n current_... | ruby | chosen |
[
{
"from": "system",
"value": "Remove pry; debugger not available on JRuby\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'falcor/version'\n\nGem::Specification.new do |spec|\n spec.... | ruby | chosen |
[
{
"from": "system",
"value": "Add license to gemspec with SPDX compliant identifier\n\nCloses #15\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"em-winrm/version\"\n\nGem::Specification.new do |s|\n s.name = \"em-wi... | ruby | chosen |
[
{
"from": "system",
"value": "Use ActiveRecord instead of Ruby Enumerables to compute volume, as per @armahillo's recommendation.\n"
},
{
"from": "human",
"value": "# == Schema Information\n#\n# Table name: manufacturers\n#\n# id :bigint(8) not null, primary key\n# name ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove reference to 'authentication' when calling Plek\n\nThis was more unnecessary indirection, let's just use signon.\n"
},
{
"from": "human",
"value": "GDS::SSO.config do |config|\n config.user_model = \"User\"\n config.oauth_id = 'abcdefgh12345678'\n co... | ruby | chosen |
[
{
"from": "system",
"value": "Remove reference to 'authentication' when calling Plek\n\nThis was more unnecessary indirection, let's just use signon.\n"
},
{
"from": "human",
"value": "GDS::SSO.config do |config|\n config.user_model = \"User\"\n config.oauth_id = 'abcdefgh12345678pan'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Load jobs and get rid of jobs no longer in the schedule file\n"
},
{
"from": "human",
"value": "schedule_file = \"config/schedule.yml\"\n\nif File.exists?(schedule_file) && Sidekiq.server?\n Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file)\nend\n"
... | ruby | chosen |
[
{
"from": "system",
"value": "Add versions for the development dependencies.\n\nAddresses #217.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'fakefs/version'\n\nGem::Specification.... | ruby | chosen |
[
{
"from": "system",
"value": "Exclude begin-else without rescue from 2.6 tests\n"
},
{
"from": "human",
"value": "### Without rescue\n#### With raise\n\n begin\n raise\n else\n#>X\n \"not here\"\n#>X\n end rescue nil\n\n#### With raise in else\n\n begin\n \"here\"\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Add integration tests for the migrator\n"
},
{
"from": "gpt",
"value": "require File.join(File.dirname(__FILE__), 'spec_helper.rb')\n\nSequel.extension :migration\ndescribe Sequel::Migrator do\n before do\n @db = INTEGRATION_DB\n @m = Sequel::Migrator\n @di... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade ruby-progressbar to the latest version\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire 'fuubar/version'\n\nGem::Specification.new do |s|\n s.rubygems_version = '1.3.5'\n\n s.name ... | ruby | chosen |
[
{
"from": "human",
"value": "Remove unused extra_fields field from SectionEdition\n\nAlthough this field was removed from the `SectionEdition` model class in\nthis commit [1], many/all of the documents in the\n`manual_section_editions` collection in MongoDB still had this field set\nto an empty Hash.\n\nThe... | ruby | chosen |
[
{
"from": "system",
"value": "Correct typo to make orm a module variable\n"
},
{
"from": "human",
"value": "require 'singleton'\n\nmodule BlowPipe\n class Configuration\n include Singleton\n \n cattr_accessor :mount_at, :strategy, :orm\n \n @@mount_at = '/blowpipe'\n @@strateg... | ruby | chosen |
[
{
"from": "system",
"value": "Fix syntax error in var ref.\n"
},
{
"from": "human",
"value": "# Cookbook Name:: sys_dns\n# Recipe:: do_set_private\n\n# Copyright RightScale, Inc. All rights reserved. All access and use subject to the\n# RightScale Terms of Service available at http://www.rights... | ruby | chosen |
[
{
"from": "human",
"value": "Split most platform-specific autodetection code to a seperate module.\n"
},
{
"from": "gpt",
"value": "require 'rbconfig'\n\nmodule PlatformInfo # :nodoc:\nprivate\n\tdef self.determine_multi_arch_flags\n\t\tif RUBY_PLATFORM =~ /darwin/\n\t\t\treturn \"-arch ppc7400 ... | ruby | chosen |
[
{
"from": "system",
"value": "Change regex so it only picks up the filename for the template, as in production the path has 'election-data-renderer.jar' in it so 'election-data-renderer' was picked up\n"
},
{
"from": "human",
"value": "require 'mustache'\nrequire 'alephant/views'\nrequire 'hashi... | ruby | chosen |
[
{
"from": "system",
"value": "Add a few code comments\n"
},
{
"from": "human",
"value": "module Bourgeois\n class Presenter < ::SimpleDelegator\n def initialize(object, view = nil)\n @view = view\n super(@object = object)\n end\n\n def inspect\n \"#<#{self.class} object=... | ruby | chosen |
[
{
"from": "system",
"value": "Use Warden configs to handle custom naming schemes\n"
},
{
"from": "human",
"value": "require \"warden\"\n\nclass Warden::Strategies::Token < ::Warden::Strategies::Base\n VERSION = \"0.1.1\"\n\n attr_reader :id, :token\n\n def initialize(env, scope=nil)\n supe... | ruby | chosen |
[
{
"from": "system",
"value": "Add ResponseError response attribute to message"
},
{
"from": "human",
"value": "module HTTParty\n # @abstact Exceptions raised by HTTParty inherit from Error\n class Error < StandardError; end\n\n # Exception raised when you attempt to set a non-existent format\... | ruby | chosen |
[
{
"from": "system",
"value": "Rewrite `Promise::EM` to use a proper `EventMachine::Deferrable`.\n"
},
{
"from": "human",
"value": "require 'eventmachine'\n\nmodule MrDarcy\n module Promise\n class EM < Thread\n\n def initialize *args\n raise \"EventMachine driver is unsupported o... | ruby | chosen |
[
{
"from": "system",
"value": "Add pry to development dependencies"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'huddle/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Replace tests with super-simple OS X test\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe package('pv'), :if => os[:family] == 'darwin' do\n it { should be_installed }\nend\n\ndescribe port(88) do\n it { should be_listening }\nend\n\ndescribe ... | ruby | chosen |
[
{
"from": "system",
"value": "Simplify guid in MiqGroup factory\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n factory :miq_group do\n sequence(:description) { |n| \"Test Group #{seq_padded_for_sorting(n)}\" }\n sequence(:guid) { |n| UUIDTools::UUID.parse_int((0x87654321 << 96... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for put and patch requests in specs\n"
},
{
"from": "human",
"value": "class MockResponse\n def initialize(response)\n @response = response\n end\n\n def code\n @response.code.to_i\n end\n\n def method_missing(sym, *args, &block)\n @respons... | ruby | chosen |
[
{
"from": "system",
"value": "Allow any Rails 4.x version\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"rendered-multi-select/version\"\n\nGem::Specification.new do |s|\n s.name = \"rendered-multi-select\"\n s.version = RenderedMultiSel... | ruby | chosen |
[
{
"from": "system",
"value": "Replace global variable with string in downloadJob"
},
{
"from": "human",
"value": "class DownloadJob < JuliaJob\n queue_as :default\n\n def perform(*args)\n Batch.current_marker_date = Time.zone.now\n set_batch_marker :current_date, Batch.current_marker_dat... | ruby | chosen |
[
{
"from": "system",
"value": "Add new choosers to sha/index list\n"
},
{
"from": "human",
"value": "\nclass ShaController < ApplicationController\n\n def index\n @names = %w(\n creator custom-chooser\n custom-start-points exercises-start-points languages-start-points\n avatars... | ruby | chosen |
[
{
"from": "system",
"value": "Fix broken award emoji for comments\n\nCloses #23506\n"
},
{
"from": "human",
"value": "module AwardEmojiHelper\n def toggle_award_url(awardable)\n return url_for([:toggle_award_emoji, awardable]) unless @project\n\n if awardable.is_a?(Note)\n # We rende... | ruby | chosen |
[
{
"from": "system",
"value": "Fix pnv controller test. Provider setter should respect nil\n"
},
{
"from": "human",
"value": "module Providable\n extend ActiveSupport::Concern\n\n included do\n scope :of_vendor_provider, -> (vendor) { where(\"(provider ->> 'vendor') = ?\", vendor) }\n sco... | ruby | chosen |
[
{
"from": "system",
"value": "Allow cassette re-use in integration tests."
},
{
"from": "human",
"value": "Given(/^the Trello API is stubbed with \"(.*?)\"$/) do |stub|\n VCR.insert_cassette(stub)\nend\n\nThen(/^the output should be the version number of troo$/) do\n !!(all_output.match(/#{Tro... | ruby | chosen |
[
{
"from": "system",
"value": "Remove some attributes that are no longer used\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: glassfish\n# Recipe:: default\n#\n# Copyright 2011, Fire Information Systems Group\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you m... | ruby | chosen |
[
{
"from": "system",
"value": "Update name to not be uppercase.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire File.expand_path('../lib/gemfiler/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"... | ruby | chosen |
[
{
"from": "system",
"value": "Make IRC channel an environment variable\n"
},
{
"from": "human",
"value": "require 'logger'\nrequire 'em-irc'\nrequire 'hipchat'\n\nIRC_HOST = 'irc.freenode.net'\nIRC_PORT = '6667'\nIRC_CHANNEL = '#emacs'\nHIPCHAT_ROOM = 'IRC'\n\nhipchat_client = HipChat::Client.ne... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for setting a name by full name.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe ActiveESP::Subscriber do\n before(:each) do\n @attributes = Factory.attributes_for(:subscriber)\n end\n \n it \"should properly assign attributes\"... | ruby | chosen |
[
{
"from": "system",
"value": "Remove puppet_module_install in favor of copy_module_to\n"
},
{
"from": "human",
"value": "require 'beaker-rspec'\n\nUNSUPPORTED_PLATFORMS = []\n\nunless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'\n if hosts.first.is_pe?\n install_pe\n else\... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for nested directory\n"
},
{
"from": "human",
"value": "require 'spec_helper'\nrequire 'tmpdir'\n\ndescribe WorkerScoreboard do\n context do\n let(:base_dir) { Dir.tmpdir }\n subject { WorkerScoreboard.new(base_dir) }\n it do\n subject.update... | ruby | chosen |
[
{
"from": "system",
"value": "Add Thor 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 'printit/version'\n\nGem::Specification.new do |spec|\n spec.name = \"... | ruby | chosen |
[
{
"from": "system",
"value": "Put an upper bound on compatible versions of ActiveRecord.\n\nThe loaded_{parent,child}? association methods no longer exist in\nActiveRecord 3.1. To use dagnabit with ActiveRecord >= 3.1, use\ndagnabit from the activerecord-edge branch.\n"
},
{
"from": "human",
"v... | ruby | chosen |
[
{
"from": "system",
"value": "Update capistrano lock to 3.11.0\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nlock '3.10.2'\n\nset :application, 'evemonk'\nset :repo_url, 'git@github.com:biow0lf/evemonk.git'\n\nset :rbenv_type, :user\nset :rbenv_ruby, File.read('.ruby-versio... | ruby | chosen |
[
{
"from": "system",
"value": "Add pdf to shared directories\n"
},
{
"from": "human",
"value": "# config valid only for current version of Capistrano\nlock '3.4.0'\n\nset :application, 'mjmr'\nset :repo_url, 'git@github.com:paulmolin42/mjmr.git'\n\nset :tmp_dir, '/var/www/tmp'\nset :deploy_to, '/... | ruby | chosen |
[
{
"from": "system",
"value": "Remove 'only' parameter in resources questions\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n mount RailsAdmin::Engine => '/admin', as: 'rails_admin'\n devise_for :users, :controllers => { :omniauth_callbacks => \"callbacks\" }\n\n resource... | ruby | chosen |
[
{
"from": "system",
"value": "Create route for individual user show pages\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n root 'items#index'\n get '/users', to: 'users#index'\n get '/users/new', to: 'users#new', as: 'new_user'\n post '/users', to: 'users#create'\n\n ge... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Lovell as author since email contact is not needed\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'jekyll-theme-feeling-responsive'\n s.version = '1.0.0'\n s.date = '2017-10-09'\n s.summary = 'a free flexible theme for Jekyll ... | ruby | chosen |
[
{
"from": "system",
"value": "Update rspec requirement from ~> 3.10.0 to ~> 3.11.0\n\nUpdates the requirements on [rspec](https://github.com/rspec/rspec-metagem) to permit the latest version.\n- [Release notes](https://github.com/rspec/rspec-metagem/releases)\n- [Commits](https://github.com/rspec/rspec-meta... | ruby | chosen |
[
{
"from": "system",
"value": "Establish connection by using ActiveRecord::Base\n"
},
{
"from": "human",
"value": "require \"con_air/version\"\nrequire \"con_air/railtie\"\nrequire \"con_air/connection_handler\"\n\nmodule ConAir\n def self.hijack(config, klass = ActiveRecord::Base, &block)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Make Rails version dependency more liberal\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"interapp/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new ... | ruby | chosen |
[
{
"from": "human",
"value": "Add cap support file from RVM.\n"
},
{
"from": "gpt",
"value": "# Copyright (c) 2009-2011 Wayne E. Seguin\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a c... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake as development dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'yaml_converters/version'\n\nGem::Specification.new do |gem|... | ruby | chosen |
[
{
"from": "system",
"value": "Add more metadata to gemspec\n\nMaking automated reasoning about the gem easier, by indicating a link to its source code and indicating the license."
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/makara/version', __FILE_... | ruby | chosen |
[
{
"from": "system",
"value": "Update the region list documentation\n"
},
{
"from": "human",
"value": "require \"version\"\nrequire \"aws-sdk\"\nrequire \"apns\"\n\nmodule ApnsS3\n # Set PEM file to APNS module\n #\n # @param [String] region\n # One of ap-northeast-1, ap-southeast-1, ap-sou... | ruby | chosen |
[
{
"from": "system",
"value": "Set log level according to environment\n"
},
{
"from": "human",
"value": "\nrequire 'logger'\nrequire \"instana/version\"\nrequire \"instana/util\"\n\nmodule Instana\n class << self\n attr_accessor :agent\n attr_accessor :collectors\n attr_accessor :tracer... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec for 0.3.0 release\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n git_tag = '0.2.0'\n\n s.name = \"BlurryModalSegue\"\n s.version = git_tag\n s.summary = \"A custom segue for providing a blurred overlay eff... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to 1.1.1, with Xcode 5 fixes\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"CKRefreshControl\"\n s.version = \"1.1.0\"\n s.summary = \"A pull-to-refresh view for iOS 5, 100% API-compatible with UIRefreshContr... | ruby | chosen |
[
{
"from": "system",
"value": "Add version constraints to development dependencies."
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path(\"../lib\", __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"cash_flow_analysis/version\"\n\nGem::Specification... | ruby | chosen |
[
{
"from": "system",
"value": "Update BetterTouchTool license from commercial to gratis\n\nas per the official homepage, BetterTouchTool is absolutely free.\n"
},
{
"from": "human",
"value": "cask :v1 => 'bettertouchtool' do\n\n if MacOS.release <= :snow_leopard\n version '0.939'\n sha256 ... | ruby | chosen |
[
{
"from": "system",
"value": "Update RStudio preview to 0.98.752"
},
{
"from": "human",
"value": "class RstudioPreview < Cask\n url 'https://s3.amazonaws.com/rstudio-dailybuilds/RStudio-0.98.484.dmg'\n homepage 'http://www.rstudio.com/ide/download/preview'\n version '0.98.484'\n sha256 '2445... | ruby | chosen |
[
{
"from": "human",
"value": "Enable JCE for unlimited strength encryption\n"
},
{
"from": "gpt",
"value": "if RUBY_PLATFORM == 'java'\n require 'java'\n java_import 'java.lang.ClassNotFoundException'\n\n begin\n security_class = java.lang.Class.for_name('javax.crypto.JceSecurity')\n res... | ruby | chosen |
[
{
"from": "system",
"value": "Fix pod spec for 1.6 and up.\n\nSigned-off-by: Zachary Waldowski <f6cb034ae1bf314d2c0261a7a22e4684d1f74b57@gmail.com>\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'BlocksKit'\n s.version = '1.6'\n s.license = 'MIT'\n s.summary = 'The... | ruby | chosen |
[
{
"from": "system",
"value": "Store the stats instead of a test string\n"
},
{
"from": "human",
"value": "require \"dalli\"\n\nmodule Memdash\n DEFAULT_TTL = 60\n\n def self.included(base)\n base.class_eval do\n class << base\n attr_accessor :memdash_ttl\n end\n self.m... | ruby | chosen |
[
{
"from": "human",
"value": "Add base class for data.\n"
},
{
"from": "gpt",
"value": "class MyData\n attr_reader :year, :lat, :lng, :times\n\n def initialize(year, lat, lng)\n @year = year\n @lat = lat\n @lng = lng\n end\n\n def calculate\n raise NotImplementedError\n end\nend\... | ruby | chosen |
[
{
"from": "system",
"value": "Add helper for tracking thread-level current state.\n"
},
{
"from": "human",
"value": "require 'specter/version'\n\nrequire 'clap'\n\nclass Specter\n def patterns\n @patterns ||= []\n end\n\n def filenames\n Dir[*patterns]\n end\n\n def run\n statuses ... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing require for optparse.\n"
},
{
"from": "human",
"value": "require 'active_support/core_ext/hash'\nrequire 'syslog_logger'\nrequire 's3'\nrequire 'sqs'\nrequire 'yaml'\n\nrequire 'tootsie/application'\nrequire 'tootsie/client'\nrequire 'tootsie/configurati... | ruby | chosen |
[
{
"from": "system",
"value": "Change to add ability to run external commands.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire_relative 'sh'\n\nmodule TTY\n class Cmd\n\n def execute(*)\n raise(\n NotImplementedError,\n \"#{self.class}##{__method__} must be ... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.