conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Check for RSpec::Core not RSpec\n\nCloses #18.\n"
},
{
"from": "human",
"value": "require 'fivemat/elapsed_time'\n\nmodule Fivemat\n autoload :Cucumber, 'fivemat/cucumber'\n autoload :MiniTest, 'fivemat/minitest/unit'\n autoload :RSpec, 'fivemat/rspec'\n autoloa... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Rubocop lint in gemspec\n\nSwitch from using `$:` to `$LOAD_PATH`, which is much more readable.\n\nChange-Id: Ibd13032cee0f4428c1c5cbeebff3053083423241\nReviewed-on: http://gerrit.causes.com/36106\nTested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@causes.com>\nRe... | ruby | chosen |
[
{
"from": "system",
"value": "Rearrange instance variables in Cli\n\nRealized that some instance variables could be set in #initialize rather\nthan in #setup, so some switchero going on here.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nmodule Rbk\n class Cli\n def self.run(argv=A... | ruby | chosen |
[
{
"from": "system",
"value": "Add some realistic text for event_note fixtures\n"
},
{
"from": "human",
"value": "class FakeEventNoteGenerator\n\n def initialize(student)\n @date = DateTime.new(2010, 9, 1)\n @student = student\n end\n\n def next\n @date += rand(30..60) # days\n ed... | ruby | chosen |
[
{
"from": "system",
"value": "[CHG] Remove duplicate tags from logged messages\n"
},
{
"from": "human",
"value": "require \"voltron/version\"\nrequire \"voltron/config\"\nrequire \"voltron/asset\"\nrequire \"active_support/callbacks\"\n\nbegin\n require \"colorize\"\nrescue LoadError => e\nend\... | ruby | chosen |
[
{
"from": "system",
"value": "Move torrent trimming to the rest of the tasks' schedule, 1d can easily be missed by falling asleep.\n"
},
{
"from": "human",
"value": "require 'feed_fetcher'\n\nscheduler = Rufus::Scheduler.start_new\n\nscheduler.every \"20m\" do\n FeedFetcher.fetch_and_save_torr... | ruby | chosen |
[
{
"from": "human",
"value": "Update reply_id primary and foreign keys to bigint\n"
},
{
"from": "gpt",
"value": "class ChangeReplyIdToBigint < ActiveRecord::Migration[6.0]\n def up\n change_column :replies, :id, :bigint\n\n change_column :notifications, :reply_id, :bigint\n change_colu... | ruby | chosen |
[
{
"from": "human",
"value": "Make Shipment.cost default to 0\n\nSince upgrading to Spree 2.2, I've noticed exceptions getting thrown by, for instance [`cost + promo_cost`](https://github.com/spree/spree/blob/2-2-stable/core/app/models/spree/shipment.rb#L151) throwing `NoMethodError: undefined method `+' for... | ruby | chosen |
[
{
"from": "system",
"value": "Add `compare!` to benchmarks [ci skip]\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift('lib')\n\nrequire 'bundler/setup'\nrequire 'dry-types'\n\nmodule SchemaBench\n def self.hash_schema(type)\n Dry::Types['hash'].public_send(type,\n email: Dry::Typ... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec to reflect necessary netzke versions\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\nrequire \"marty/version\"\n\nGem::Specification.new do |s|\n s.name = \"marty\"\n s.version = Marty::VERSION\n s.au... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure output directory is a directory\n"
},
{
"from": "human",
"value": "module WatirRobotGui\n\n module Worker\n\n class RunButton < javax.swing.SwingWorker\n attr_accessor :button, :original_text, :test_path\n\n def doInBackground\n self.o... | ruby | chosen |
[
{
"from": "system",
"value": "Update find_by_slug to use find_by!(slug: ) to raise exception\n"
},
{
"from": "human",
"value": "<% module_namespacing do -%>\nclass <%= class_name %>sController < ForestController\n before_action :set_<%= singular_name %>, only: [:show]\n\n def index\n # TODO... | ruby | chosen |
[
{
"from": "system",
"value": "Create tmp folder if not present\n\nAll Apps may not have a tmp folder\n\nUpdate dev.rake\n\nUpdate dev.rake\n\nUpdate dev.rake\n\nUpdate dev.rake\n\nUpdate dev.rake\n\nUpdate dev.rake\n\nUpdate dev.rake\n"
},
{
"from": "human",
"value": "namespace :dev do\n desc '... | ruby | chosen |
[
{
"from": "system",
"value": "ENHANCE: Validate that abbreviation is present\n"
},
{
"from": "human",
"value": "class Campus < ActiveRecord::Base\n # Relationships\n has_many :tutorials, dependent: :delete_all\n has_many :projects, dependent: :delete_all\n\n validates :name, presence:... | ruby | chosen |
[
{
"from": "system",
"value": "Validate presence of name, email and uniqueness of email\n"
},
{
"from": "human",
"value": "class Member < ActiveRecord::Base\n has_many :events\n has_many :organizations\n has_one :user\nend\n"
},
{
"from": "gpt",
"value": "class Member < ActiveRecor... | ruby | chosen |
[
{
"from": "system",
"value": "Remove pending from working tech check task spec.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\nfeature \"Tech Check\", js: true do\n let(:admin) do\n User.create! username: 'zoey',\n first_name: 'Zoey',\n last_name: 'Bob',\n email: ... | ruby | chosen |
[
{
"from": "human",
"value": "Add tests for editing todo lists\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe \"Editing todo lists\" do\n\tit \"updates a todo list successfully with correct information\" do\n\t\ttodo_list = TodoList.create(title: \"Groceries\", description: \"... | ruby | chosen |
[
{
"from": "system",
"value": "Support Spree 4.2 store_locale method\n\nAdded in https://github.com/spree/spree/pull/10029\n"
},
{
"from": "human",
"value": "module SpreeI18n\n # The fact this logic is in a single module also helps to apply a custom\n # locale on the spree/api context since api... | ruby | chosen |
[
{
"from": "system",
"value": "Bump ruuid dependency to ~> 0.2.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 'ruuid/mongoid/version'\n\nGem::Specification.new do |spec|\n spec.nam... | ruby | chosen |
[
{
"from": "system",
"value": "Fix a semantic issue on Podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n\n s.name = \"Lily\"\n s.version = \"0.5.2\"\n s.summary = \"A lightweight Swift Cache\"\n\n s.description = <<-DESC\n \t\t\t\t\tLily provide swifty way... | ruby | chosen |
[
{
"from": "system",
"value": "Add pry as dev 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 'dmarc_inspector/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix 404 in problem endpoint\n"
},
{
"from": "human",
"value": "require 'json'\nmodule Xapi\n module Routes\n class Problems < Core\n # This is special.\n # There is no problem called 'demo',\n # and perhaps this really should be just plain\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Tweak exception formatting for payload parser\n"
},
{
"from": "human",
"value": "require 'multi_json'\nrequire 'hashr'\n\nmodule Magnum\n module Payload\n class Base\n include Magnum::Payload::MessageParser\n\n attr_reader :raw_data, :data\n attr_... | ruby | chosen |
[
{
"from": "system",
"value": "Create board for the specified organization.\n"
},
{
"from": "human",
"value": "require \"trello\"\nrequire \"yaml\"\n\nmodule Nutrella\n class TaskBoard\n def initialize(options)\n @board_name = options.board_name\n configure_trello\n end\n\n de... | ruby | chosen |
[
{
"from": "system",
"value": "Add simple_form dependecy; Add boolean attributes for parsley\n"
},
{
"from": "human",
"value": "require 'parsley_simple_form/version'\nrequire 'simple_form_extensions/form_helper'\nrequire 'parsley_simple_form/simple_form_adapt'\n\nrequire 'simple_form'\n\nmodule P... | ruby | chosen |
[
{
"from": "system",
"value": "Change how we disable asset debugging\n\nFound this on second look through the Sprockets source. Much less\nconfusing looking.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass ScoreboardRenderer < ParticipantsController\n module ScoreboardR... | ruby | chosen |
[
{
"from": "system",
"value": "Allow higher versions of Rails\n"
},
{
"from": "human",
"value": "$LOAD_PATH.push File.expand_path('../lib', __FILE__)\n\n# Maintain your gem's version:\nrequire 'sql_probe/version'\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\... | ruby | chosen |
[
{
"from": "system",
"value": "Allow use with Rails 2.3 and up."
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'db_backup_rails/version'\n\nGem::Specification.new do |spec|\n spec.name... | ruby | chosen |
[
{
"from": "system",
"value": "Fix an error in the documentation.\n"
},
{
"from": "human",
"value": "module TZInfo\n module Data\n # TZInfo::Data version number.\n VERSION = '1.2014.8'\n \n # TZInfo::Data version information.\n module Version\n # The format of the Ruby modules.... | ruby | chosen |
[
{
"from": "system",
"value": "Set capistrano dependency version to v2.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'erCapistranoDrupal/version'\n\nGem::Specification.new do |spec|... | ruby | chosen |
[
{
"from": "human",
"value": "Add Moyashi::Params::TypeDefinition for DSL in Moyashi::Params::Base.\n"
},
{
"from": "gpt",
"value": "module Moyashi\n module Params\n class TypeDefinition\n attr_reader :types\n\n\n def initialize\n @types = {}\n end\n\n\n def method_... | ruby | chosen |
[
{
"from": "system",
"value": "Test for writing to file.\n"
},
{
"from": "human",
"value": "describe \"get_position\" do\n before :all do\n @robot = ToyRobot::Robot.new\n @robot.place(2, 3, 'EAST')\n end\n\n it \"gets X,Y and F of robot\" do\n expect(@robot.get_position).to eq \"2,3,E... | ruby | chosen |
[
{
"from": "system",
"value": "Update the default puppet version set as a fact if no PUPPET_VERSION env var is found.\n"
},
{
"from": "human",
"value": "require 'puppetlabs_spec_helper/module_spec_helper'\nrequire 'rspec-puppet-facts'\ninclude RspecPuppetFacts\n\nRSpec.configure do |c|\n c.defau... | ruby | chosen |
[
{
"from": "system",
"value": "Remove deprecated option (it's always on now)\n"
},
{
"from": "human",
"value": "# This file was generated by the `rspec --init` command. Conventionally, all\n# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.\n# Require this file using `re... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unneeded code in spec helper\n"
},
{
"from": "human",
"value": "require 'active_importer'\n\n# Require files in spec/support\nDir[\"#{File.dirname(__FILE__)}/support/**/*.rb\"].each { |f| require f }\n\n# This file was generated by the `rspec --init` command.... | ruby | chosen |
[
{
"from": "system",
"value": "Set correct path for fixtures\n\nThe fixture was being generated in the root project directory. Move this\nto the spec folder.\n"
},
{
"from": "human",
"value": "require \"rspec\"\nrequire \"rspec/core\"\nrequire \"vcr\"\nrequire \"pry\"\nrequire_relative \"../lib/t... | ruby | chosen |
[
{
"from": "system",
"value": "Use Test scope in specs\n"
},
{
"from": "human",
"value": "if ENV['COVERAGE'] == 'true' && RUBY_ENGINE == 'ruby' && RUBY_VERSION == '2.4.0'\n require \"simplecov\"\n SimpleCov.start do\n add_filter '/spec/'\n end\nend\n\nrequire 'rom-mongo'\n\nMongo::Logger.lo... | ruby | chosen |
[
{
"from": "system",
"value": "Improve how api/contact is set.\n"
},
{
"from": "human",
"value": "$LOAD_PATH << File.expand_path(\"../lib\", __FILE__)\nrequire \"xmlstats\"\nrequire \"rspec\"\nrequire \"vcr\"\n\nXmlstats.http_getter = Xmlstats::HttpGetters::NetHttp.new\nXmlstats.cacher ... | ruby | chosen |
[
{
"from": "system",
"value": "Use RSpec >= 1.1.12 so 1.2 can be used as well\n"
},
{
"from": "human",
"value": "require 'pathname'\nrequire 'rubygems'\n\ngem 'rspec', '~>1.1.12'\nrequire 'spec'\n\nROOT = Pathname(__FILE__).dirname.parent.expand_path\n\n# use local dm-adjust if running from dm-mo... | ruby | chosen |
[
{
"from": "system",
"value": "Add coveralls to unit spec coverage\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\n# SimpleCov MUST be started before require 'dm-mapper'\n#\nif ENV['COVERAGE']\n require 'simplecov'\n\n SimpleCov.start do\n command_name 'spec:unit'\n\n add_filter \... | ruby | chosen |
[
{
"from": "system",
"value": "Change to fix superclass mismatch with rspec in Ruby 2.7 when extending built-in class\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nif ENV['COVERAGE'] || ENV['TRAVIS']\n require 'simplecov'\n require 'coveralls'\n\n SimpleCov.formatter = Si... | ruby | chosen |
[
{
"from": "system",
"value": "Use google-api to obtain access_token\n"
},
{
"from": "human",
"value": "class ReferralsController < ApplicationController\n before_filter :authenticate, :only => [:edit]\n caches_action :index, :layout => false\n \n def index\n \t\tusername = ElfWeb::Applicatio... | ruby | chosen |
[
{
"from": "system",
"value": "Add github link 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 'oolite/version'\n\nGem::Specification.new do |spec|\n spec.name = \... | ruby | chosen |
[
{
"from": "system",
"value": "Add correct output element to industry heat slide\n"
},
{
"from": "human",
"value": "class MoveIndustryHeatSlide < ActiveRecord::Migration[5.2]\n def up\n ActiveRecord::Base.transaction do\n industry_slide = Slide.find_by_key(:supply_heat_network_industry)... | ruby | chosen |
[
{
"from": "system",
"value": "Add rake to please Travis\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/smbglobal_sms/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"mech\"]\n gem.email = [\"mech@me.com\"]\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove test for Simple Form install as we use the generator now\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\nRSpec.describe \"Generating a new project\" do\n before(:example) do\n remove_dummy_app\n run_arkenstone(\"--skip-bundle\")\n end\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Set invalid flags for checking validation in test case\n"
},
{
"from": "human",
"value": "module WeatherReporter\n module UserInput\n RSpec.describe Validator do\n let(:validator_class) { WeatherReporter::UserInput::Validator }\n\n describe '#pair_flag... | ruby | chosen |
[
{
"from": "system",
"value": "Allow coveralls api call through fakeweb\n"
},
{
"from": "human",
"value": "require 'coveralls'\nCoveralls.wear!\n\nrequire 'rspec'\nrequire 'rspec/autorun'\nrequire 'bundler'\nBundler.setup\n\nrequire 'fakeweb'\nFakeWeb.allow_net_connect = false\n\nrequire 'multi_j... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the rspec code coverage report\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "require 'chefspec'\nrequire 'chefspec/berkshelf'\n\nRSpec.configure do |config|\n config.color = true\n config.l... | ruby | chosen |
[
{
"from": "system",
"value": "Use Paperclip::Glue instead of Railtie\n\nSee: https://github.com/y8/paperclip-meta/pull/16\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'bundler/setup'\nBundler.require(:default, :development)\n\n# Prepare activerecord\nrequire \"active_record\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Allow logging with DEBUG_SQL env var\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'bundler/setup'\n\nBundler.require :default\n\nrequire 'sequel'\nrequire 'logger'\nrequire 'yaml'\n\n$: << \".\"\nrequire 'sequel/redshift'\n\nconfig_path = File.join... | ruby | chosen |
[
{
"from": "system",
"value": "Use the doc formatter for Node specs\n"
},
{
"from": "human",
"value": "require 'opal'\nrequire 'set'\nrequire 'opal-parser'\nrequire 'mspec'\nrequire 'mspec/version'\nrequire 'support/mspec_rspec_adapter'\nrequire 'mspec/opal/runner'\n\nrequire 'math'\nrequire 'enc... | ruby | chosen |
[
{
"from": "system",
"value": "Add timestamps `null: true` option to prevent Rails 5 deprecations\n\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))\n$LOAD_PATH.unshift(File.dirname(__FILE__))\nrequire 'rspec'\nrequire 'active_record/railtie'\n... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up loaded queries after spec run\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'bundler'\nBundler.setup\n\nif RUBY_ENGINE == 'rbx'\n require \"codeclimate-test-reporter\"\n CodeClimate::TestReporter.start\nend\n\nrequire 'rom-yesql'\n# FIXM... | ruby | chosen |
[
{
"from": "system",
"value": "Remove socket name upon UNIX receiver cleanup.\n"
},
{
"from": "human",
"value": "require 'socket'\nrequire_relative '../message'\n\nmodule Receivers\n class UNIX\n ACCEPT_BACKLOG = 10\n\n def initialize(socket_name)\n @socket_name = socket_name\n @... | ruby | chosen |
[
{
"from": "system",
"value": "rpearce: Modify ci slave tests from image_size to modify_storage\n"
},
{
"from": "human",
"value": "require 'stacks/test_framework'\ndescribe_stack 'jenkins' do\n given do\n stack \"jenkins\" do\n cislave 'jenkinsslave' do\n each_machine do |machine|... | ruby | chosen |
[
{
"from": "human",
"value": "Patch the Thor::Actions run task to use Mixlib::ShellOut with support for passing STDIN\n"
},
{
"from": "gpt",
"value": "require 'mixlib/shellout'\nrequire 'thor/actions'\n\nclass Thor\n ##\n # Patch `run` to use Mixlib::Shellout and accept STDIN\n ##\n module Ac... | ruby | chosen |
[
{
"from": "system",
"value": "Change Chef from module to class\n"
},
{
"from": "human",
"value": "module Chef\n module Provisioning\n module Aws2\n VERSION = \"0.1.0\"\n end\n end\nend\n"
},
{
"from": "gpt",
"value": "class Chef\n module Provisioning\n module Aws2\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update aws-sdk gem and add aws-sdk-v1 for backward compatibility\n"
},
{
"from": "human",
"value": "dir 'plugin_gems'\ndownload \"httpclient\", \"2.5.3.3\"\ndownload \"td-client\", \"0.8.76\"\ndownload \"td\", \"0.13.0\"\ndownload \"fluent-plugin-td\", \"0.10.28\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor to better modularize setting error in env\n"
},
{
"from": "human",
"value": "module Pliny::Middleware\n class RescueErrors\n def initialize(app, options = {})\n @app = app\n @raise = options[:raise]\n end\n\n def call(env)\n error =... | ruby | chosen |
[
{
"from": "system",
"value": "Sort the MixPanel funnel results by the date.\n"
},
{
"from": "human",
"value": "require 'mixpanel_client'\n\nmodule Reparty\n class Report\n class MixpanelFunnel < Report\n attr_reader :funnel_id, :api_key, :api_secret\n\n def initialize(*args, &block... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused dependency from gemspec."
},
{
"from": "human",
"value": "Gem::Specification.new 'cf_light_api', '2.0.0.pre1' do |s|\n s.summary = 'A super lightweight API for reading App and Org data from CloudFoundry, cached in Redis.'\n s.description = 'A sup... | ruby | chosen |
[
{
"from": "system",
"value": "Add changelog metadata link to gemspec\n"
},
{
"from": "human",
"value": "# rubocop:disable Style/ExpandPathArguments\nlib = File.expand_path('../lib', __FILE__)\n# rubocop:enable Style/ExpandPathArguments\n\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n... | ruby | chosen |
[
{
"from": "system",
"value": "Fix require issue by using git to list files in gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/area/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = \"area\"\n s.version = Area::VERSION\n s.au... | ruby | chosen |
[
{
"from": "system",
"value": "Change Virtus coercion type for input_data_types"
},
{
"from": "human",
"value": "module TwentyfourSevenOffice\n module Services\n class ApiOperation\n include Virtus.model\n\n attribute :client, Savon::Client, required: true\n attribute :name, Sy... | ruby | chosen |
[
{
"from": "system",
"value": "Add yard as development 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 'chef_helpers/version'\n\nGem::Specification.new do |spec|\n spec.nam... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.1.0 to 0.2.0.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'log'\n s.version = '0.1.1.0'\n s.summary = 'Logging to STD IO with levels, tagging, and coloring'\n s.des... | ruby | chosen |
[
{
"from": "system",
"value": "Handle Timeout::Error exceptions which are caught by ActiveRecord.\n\n\n"
},
{
"from": "human",
"value": "module ActiveRecord\n module ConnectionAdapters\n class AbstractAdapter\n protected\n alias_method :old_log, :log\n\n def log(sql, name)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add attained level and name to certificate factories\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n \n factory :certificate do\n response_set\n\n factory :published_certificate do\n published true\n end\n end\n\n factory :certificate_wi... | ruby | chosen |
[
{
"from": "system",
"value": "Add NetSim model to get_all_models\n"
},
{
"from": "human",
"value": "# load all the model classes on startup to avoid problems with Marshal.load\n# egrep -r '^class' app/models | cut -d' ' -f2 | ruby -pe '$_ = $_.strip + \",\\n\"'\n[Activity,\n ActivityHint,\n Arti... | ruby | chosen |
[
{
"from": "system",
"value": "Add errors to subscription instance on chage sub card\n"
},
{
"from": "human",
"value": "module Zahlen\n module ConektaGateway\n class ChangeSubscriptionCard\n def self.call(subscription, card_token)\n begin\n customer = Zahlen::ConektaGatew... | ruby | chosen |
[
{
"from": "system",
"value": "Use a different bundler 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 'withings/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Use CompareService for compare page\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n"
},
{
"from": "human",
"value": "class Projects::CompareController < Projects::ApplicationController\n # Authorize\n before_filter :aut... | ruby | chosen |
[
{
"from": "system",
"value": "Make 'build_platforms_string' private in Notifier"
},
{
"from": "human",
"value": "module FiveMobilePush\n class Notifier\n\n def initialize(client)\n @client = client\n end\n\n def broadcast(platforms, payload)\n @client.post 'notify/broadcast',... | ruby | chosen |
[
{
"from": "system",
"value": "Add pry for for bugging\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/jenkins-capistrano/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"cynipe\"]\n gem.email = [\"cynipe@gmai... | ruby | chosen |
[
{
"from": "system",
"value": "Change tournament name in test for readability\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\nRSpec.feature 'SMS notifications', :type => :feature do\n let(:password) { 'asdfasdf' }\n let(:admin) { create :admin, :password => password }\n let!(:to... | ruby | chosen |
[
{
"from": "system",
"value": "Replace `build` with `build_stubbed` in per item model specs\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Calculator::PerItem do\n let(:calculator) { Calculator::PerItem.new(preferred_amount: 10) }\n let(:shipping_calculable) { double(:calc... | ruby | chosen |
[
{
"from": "system",
"value": "Drop flaky spec in user show action\n"
},
{
"from": "human",
"value": "require_relative '../../../../apps/web/controllers/users/show'\n\nRSpec.describe Web::Controllers::Users::Show do\n let(:action) { described_class.new }\n let(:user) { Fabricate.create(:user, n... | ruby | chosen |
[
{
"from": "system",
"value": "Update campaign link for running a business\n\nThis commit updates the link for the _Running a business_ campaign.\n\nSolo: da39a3ee5e6b4b0d3255bfef95601890afd80709@karlbaker02\n"
},
{
"from": "human",
"value": "class BrexitCampaignController < ApplicationController... | ruby | chosen |
[
{
"from": "system",
"value": "Update TG Pro.app to v2.7.3\n"
},
{
"from": "human",
"value": "cask :v1 => 'tg-pro' do\n version '2.7.2'\n sha256 '6708a9762a62d30e2e83b37cd6c7597d0650e239b5b0f104ef85e5aa25f0c880'\n\n url \"http://www.tunabellysoftware.com/resources/TGPro_#{version.gsub('.','_')... | ruby | chosen |
[
{
"from": "system",
"value": "Update Vienna RSS to 3.0.9\n"
},
{
"from": "human",
"value": "cask :v1 => 'vienna' do\n version '3.0.8'\n sha256 'dbb6510500539718955718567cb246901b0508c8bda804020e5026119c288c19'\n\n # bintray.com is the official download host per the appcast feed\n url \"https... | ruby | chosen |
[
{
"from": "system",
"value": "Change modal title for InputError\n\n[ci skip]\n\nSigned-off-by: Anurag Priyam <6e6ab5ea9cb59fe7c35d2a1fc74443577eb60635@gmail.com>\n"
},
{
"from": "human",
"value": "module SequenceServer\n\n # API errors have an http status, title, message, and additional informa... | ruby | chosen |
[
{
"from": "system",
"value": "Remove warning on rubies < 1.9\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nmodule TruncateHtml\n class HtmlString < String\n\n UNPAIRED_TAGS = %w(br hr img).freeze\n\n def initialize(original_html)\n super(original_html)\n end\n\n def htm... | ruby | chosen |
[
{
"from": "system",
"value": "Allow creating multiple easy commands\n"
},
{
"from": "human",
"value": "require \"log4r\"\n\nmodule Vagrant\n module Easy\n # Base class for all easy commands. This contains the basic code\n # that knows how to run the easy commands.\n class CommandBase <... | ruby | chosen |
[
{
"from": "system",
"value": "Clone from heroku/api, but keep calling the directory core.\n"
},
{
"from": "human",
"value": "# Rake tasks for Core DB\n#\n# include in Rakefile via:\n#\n# require 'vault-tools/core_db_tasks'\n\ndesc \"Pull db/structure.sql from api HEAD\"\ntask :pull_core do\n st... | ruby | chosen |
[
{
"from": "system",
"value": "Fix spacing to Ruby standard 2 spaces indent\n"
},
{
"from": "human",
"value": "# Copyright (c) 2012 by Tracelytics, Inc.\n# All rights reserved.\n#\n\nif defined?(Memcached)\n class Memcached\n include Oboe::API::Memcache\n\n MEMCACHE_OPS.reject { |m| not me... | ruby | chosen |
[
{
"from": "system",
"value": "Write instance IPs and tags to file"
},
{
"from": "human",
"value": "#!/usr/bin/ruby\n\nrequire 'aws-sdk'\nrequire 'rubygems'\n\ntime = Time.now.utc\ntime = time.strftime('%d%b%Y%H%M%S%Z')\n\nclient = Aws::EC2::Client.new(region: 'us-east-1')\n\n# Get a list of avai... | ruby | chosen |
[
{
"from": "system",
"value": "Fix detection for Ubuntu 10 on Core3"
},
{
"from": "human",
"value": "# Helper library to help abstract some logic nastiness out of recipes\r\n\r\nmodule ZenossHelper\r\n # Is this a supported platform for Zenoss Core to run on\r\n #\r\n # @return [Boolean]\r\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a missing paren :scream_cat:\n"
},
{
"from": "human",
"value": "version = '1.9.8'\narch = kernel['machine'] =~ /x86_64/ ? \"x86_64\" : \"i686\"\n\ndefault[:phantomjs] = {\n :version => version,\n :arch => arch,\n :tarball => {\n :url => ::File.join(\... | ruby | chosen |
[
{
"from": "system",
"value": "Decrease minimum Firebase Database dependency requirement to improve backwards compatibility.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"GeoFire\"\n s.version = \"4.2.0\"\n s.summary = \"Realtime location queries with F... | ruby | chosen |
[
{
"from": "system",
"value": "Make the podspec usable on both iOS and OS X"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Block-KVO\"\n s.version = \"2.2.1\"\n s.summary = \"Objective-C Key-Value Observing made easier with blocks.\"\n s.homepage = \"... | ruby | chosen |
[
{
"from": "system",
"value": "Fix dependency syntax error in pod spec.\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.0.0'\n s.license = 'MIT'\n s.s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix for RSpec API change since 3\n\nThis is the same change as a4c05abc.\n"
},
{
"from": "human",
"value": "require 'capybara/cucumber'\nrequire 'rspec'\nrequire 'cucumber/rspec/doubles'\nrequire 'webmock/cucumber'\n\nrequire_relative '../../spec/support/multipart_h... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.0.2 to 0.1.1.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'schema'\n s.summary = \"Primitives for schema and structure\"\n s.version = '0.1.0.1'\n s.description = '... | ruby | chosen |
[
{
"from": "system",
"value": "Update podpsec for version 0.1.0\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Nuke\"\n s.version = \"0.1.0\"\n s.summary = \"Advanced framework for loading images\"\n\n# This description is used to generate ta... | ruby | chosen |
[
{
"from": "system",
"value": "Change setting of current user\n"
},
{
"from": "human",
"value": "class ApplicationController < ActionController::Base\n # Prevent CSRF attacks by raising an exception.\n # For APIs, you may want to use :null_session instead.\n protect_from_forgery with: :excepti... | ruby | chosen |
[
{
"from": "system",
"value": "Add Rails environment as first segment of the path\n"
},
{
"from": "human",
"value": "require 'aws-sdk'\nclass ChangesHistoryGeneratorJob < ApplicationJob\n queue_as :default\n\n def perform(aru_id, user, aws=false)\n begin\n aru = Trade::AnnualReportUploa... | ruby | chosen |
[
{
"from": "system",
"value": "Add hurley and pry as dependencies\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'uniara_virtual_parser/version'\n\nGem::Specification.new do |spec|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change Ruby requirement to >= 2.0.0\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'escapement/version'\n\nGem::Specification.new do |spec|\n spec.name... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for courses' subresources\n"
},
{
"from": "human",
"value": "module KOSapiClient\n module Resource\n class CoursesBuilder < RequestBuilder\n\n def detail(level = 1)\n url_builder.set_query_param(:detail, level)\n self\n end\n\... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.