conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Update experiment links on sidebar between actions\n"
},
{
"from": "human",
"value": "module SidebarHelper\n\n def currently_active?(my_module)\n @my_module.present? and @my_module.id == my_module.id\n end\n\n def is_canvas?\n action_name == \"canvas\"\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for BlogCategories controller\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nrequire 'test_helper'\n\n#\n# == BlogCategoriesController Test\n#\nclass BlogCategoriesControllerTest < ActionController::TestCase\n test 'should get show' do\... | ruby | chosen |
[
{
"from": "system",
"value": "Use the BufferedLogger from ActiveSupport for message process loggin\n"
},
{
"from": "human",
"value": "class ApplicationProcessor < ActiveMessaging::Processor\n \n def ActiveMessaging.logger\n @@logger = Logger.new(File.join(RAILS_ROOT, \"log\", \"message_proc... | ruby | chosen |
[
{
"from": "system",
"value": "Test callback helper without setting up GObject.\n"
},
{
"from": "human",
"value": "require File.expand_path('../gir_ffi_test_helper.rb', File.dirname(__FILE__))\nrequire \"gir_ffi/callback_helper\"\n\ndescribe GirFFI::CallbackHelper do\n describe \".map_single_cal... | ruby | chosen |
[
{
"from": "system",
"value": "Configure TCP protocol to accept an optional timestamp\n"
},
{
"from": "human",
"value": "module HostedGraphite\n class TCP < Protocol\n private\n def build_message(name, value)\n message = [name, value].join(' ') + \"\\n\"\n [@api_key, messag... | ruby | chosen |
[
{
"from": "system",
"value": "Fix style issues in Mutant::NodeHelpers\n"
},
{
"from": "human",
"value": "module Mutant\n # Mixin for node helpers\n module NodeHelpers\n\n # Build node\n #\n # @param [Symbol] type\n #\n # @return [Parser::AST::Node]\n #\n # @api private\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Disable nginx logging on tile caches\n"
},
{
"from": "human",
"value": "name \"tilecache\"\ndescription \"Role applied to all tile cache servers\"\n\ndefault_attributes(\n :accounts => {\n :groups => {\n :proxy => {\n :members => [:tomh, :grant, :mat... | ruby | chosen |
[
{
"from": "system",
"value": "Fix \"A copy of Gitlab::Middleware::Readonly has been removed from the module tree but is still active\"\n\nSimilar to #34047 and #29327\n"
},
{
"from": "human",
"value": "module Gitlab\n module Middleware\n class ReadOnly\n API_VERSIONS = (3..4)\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Add has many relation on events for command"
},
{
"from": "human",
"value": "require 'active_record'\nrequire_relative 'sequent_oj'\n\nmodule Sequent\n module Core\n\n module SerializesCommand\n def command\n args = Sequent::Core::Oj.strict_load(comm... | ruby | chosen |
[
{
"from": "system",
"value": "Return an id and message in body when 404 in json.\n\nAll other errors return something with `id` and `message`.\nThis is just uniformising the behavior there.\n"
},
{
"from": "human",
"value": "module Endpoints\n # The base class for all Sinatra-based endpoints. U... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bundler dep upper limit\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'pastel/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Define operations available for a story\n"
},
{
"from": "human",
"value": "require 'pivotal-tracker'\n\n# Usage: ruby pivo.rb print_stories API_TOKEN PROJECT_ID\n\nclass Pivo\n attr_reader :project\n\n def initialize(token, project_id)\n PivotalTracker::Client.... | ruby | chosen |
[
{
"from": "system",
"value": "Move server start code into module\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\n# If you need a bit of debugging output in the threads add -d to the line above\n\n# For the benefit of foreman\n$stdout.sync = true\n\n$: << File.join(File.dirname(__FILE__),... | ruby | chosen |
[
{
"from": "system",
"value": "Add progress bars dev seeds\n"
},
{
"from": "human",
"value": "section \"Creating default Milestone Statuses\" do\n Milestone::Status.create(name: I18n.t('seeds.budgets.statuses.studying_project'))\n Milestone::Status.create(name: I18n.t('seeds.budgets.statuses.bi... | ruby | chosen |
[
{
"from": "system",
"value": "Fix some possible infinite recursion in Comparable\n"
},
{
"from": "human",
"value": "module Comparable\n def self.normalize(what)\n return what if Integer === what\n\n return 1 if what > 0\n return -1 if what < 0\n return 0\n end\n\n def ==(other)\... | ruby | chosen |
[
{
"from": "human",
"value": "Cover current feature of Types.parse with a spec\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\nmodule VhdlDoctest\n describe Types do\n describe \".parse\" do\n subject { Types.parse(string) }\n\n describe 'std_logic' do\n let(:string... | ruby | chosen |
[
{
"from": "system",
"value": "Downgrade required bundler to 1.5\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'spidr_test/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix accidental renaming of requires.\n"
},
{
"from": "human",
"value": "require \"Oshpark/version\"\nrequire \"Oshpark/Oshpark\"\nrequire \"Oshpark/client\"\nrequire \"Oshpark/model\"\nrequire \"Oshpark/dimensionable\"\nrequire \"Oshpark/project\"\n\nmodule Oshpark\... | ruby | chosen |
[
{
"from": "system",
"value": "Test with Enumerables that aren't an Array"
},
{
"from": "human",
"value": "require 'hw2_part2'\nrequire 'test/unit'\n\nclass TestCartesianProduct < Test::Unit::TestCase\n\n def test_2x2_cartesian_product\n expected_result = [[:a,4],[:a,5],[:b,4],[:b,5]]\n pr... | ruby | chosen |
[
{
"from": "system",
"value": "Test to check perch and acre extraction\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass RubyAreaTest < ActiveSupport::TestCase\n test \"truth\" do\n assert_kind_of Module, RubyArea\n end\nend\n"
},
{
"from": "gpt",
"value": "requir... | ruby | chosen |
[
{
"from": "system",
"value": "Remove patch version from faraday dep\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |gem|\n gem.name = 'fraudrecord'\n gem.version = '0.0.2'\n gem.date = '2017-01-11'\n gem.summary = 'fraudrecord'\n gem.description = 'API wrapper for FraudRecord.... | ruby | chosen |
[
{
"from": "system",
"value": "Use newer version of WebMock\n"
},
{
"from": "human",
"value": "lib = File.expand_path(\"lib\", __dir__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire \"gds_zendesk/version\"\n\nGem::Specification.new do |gem|\n gem.name = \"gds_zendesk... | ruby | chosen |
[
{
"from": "system",
"value": "Reorganize gemspec to be much like faraday's\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'faraday_middleware/version'\n\nGem::Specification.new do |s... | ruby | chosen |
[
{
"from": "system",
"value": "Add secrets to linked deploy files\n"
},
{
"from": "human",
"value": "set :deploy_to, -> { \"/var/www/#{fetch :application}/#{fetch :rails_env}\" }\n\nset :application, 'ngoaidmap'\nset :user, \"deploy\"\n\nset :rbenv_type, :system\nset :rbenv_ruby, '2.3.1'\n\nrole ... | ruby | chosen |
[
{
"from": "system",
"value": "Add cuba as a development dependency.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"shield\"\n s.version = \"2.1.0\"\n s.summary = %{Generic authentication protocol for rack applications.}\n s.description = %Q{\n Provides all t... | ruby | chosen |
[
{
"from": "system",
"value": "Allow consuming project to define capybara 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 'jurisdiction/version'\n\nGem::Specification.new do |s... | ruby | chosen |
[
{
"from": "system",
"value": "Fix requiring of all serializers\n"
},
{
"from": "human",
"value": "require 'test/unit'\nrequire 'shoulda'\nrequire 'maildir'\n\n# Require all the serializers\nserializers = File.join(\".\", File.dirname(__FILE__), \"..\",\"lib\",\"maildir\",\"serializer\",\"*.rb\")... | ruby | chosen |
[
{
"from": "system",
"value": "Allow accessing \"chromedriver.storage.googleapis.com\" to check chromedriver version\n\nSigned-off-by: Kenji Okimoto <7a4b90a0a1e6fc688adec907898b6822ce215e6c@clear-code.com>\n"
},
{
"from": "human",
"value": "ENV['RAILS_ENV'] ||= 'test'\nif ENV['RAILS_ENV'] == 'te... | ruby | chosen |
[
{
"from": "system",
"value": "Add version constraints 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 'thirteenth_age/version'\n\nGem::Specification.new do |spec|\n spec.n... | ruby | chosen |
[
{
"from": "system",
"value": "Add metadata so it loads in admin\n"
},
{
"from": "human",
"value": "register_asset \"javascripts/discourse/templates/connectors/poster-avatar-bottom/under-avatar.js.handlebars\"\nregister_asset \"stylesheets/twittercommunity.scss\"\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "Clear identity map before each spec."
},
{
"from": "human",
"value": "require 'pathname'\nrequire 'logger'\n\nroot_path = Pathname(__FILE__).dirname.join('..').expand_path\nlib_path = root_path.join('lib')\nlog_path = root_path.join('log')\nmoneta_path = roo... | ruby | chosen |
[
{
"from": "system",
"value": "Add inheriting user model to specs\n"
},
{
"from": "human",
"value": "class TaggableModel < ActiveRecord::Base\n acts_as_taggable\n acts_as_taggable_on :languages\n acts_as_taggable_on :skills\n acts_as_taggable_on :needs, :offerings\n has_many :untaggable_mode... | ruby | chosen |
[
{
"from": "system",
"value": "FIX invalid log command on update command\n\nWhen running bummr update it crashes when trying to create a log.\n"
},
{
"from": "human",
"value": "module Bummr\n class Updater\n def initialize(outdated_gems)\n @outdated_gems = outdated_gems\n end\n\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Make auth task description more precise\n"
},
{
"from": "human",
"value": "require 'thor'\n\nmodule DearS3\n class Cli\n class S3 < Thor\n desc \"upload\", \"Deploy current and nested directories to S3\"\n option :publish, type: :boolean, default... | ruby | chosen |
[
{
"from": "system",
"value": "Use single quotes and add a newline for readability\n"
},
{
"from": "human",
"value": "module FilmBuff\n class IMDb\n attr_accessor :locale\n\n include HTTParty\n include HTTParty::Icebox\n cache :store => 'memory', :timeout => 120\n\n base_uri 'app.... | ruby | chosen |
[
{
"from": "system",
"value": "Check if file in proj's filepaths exist\n"
},
{
"from": "human",
"value": "require 'xcodeproj'\n\nmodule Swoop\n\n class Project\n\n attr_reader :path, :directory\n\n def initialize(path, directory = 'Classes')\n @path = path\n @directory = director... | ruby | chosen |
[
{
"from": "system",
"value": "Change the output of rake\n"
},
{
"from": "human",
"value": "require 'origin_detector'\n\nnamespace :bruce do \n desc \"Check many gems are created locally in Australia\"\n\n task :check => :environment do |t|\n # Call the AussieDetector\n aussieDetector = O... | ruby | chosen |
[
{
"from": "system",
"value": "Add link to CleanMyMac 2\n"
},
{
"from": "human",
"value": "class CleanMyMac < Cask\n url 'http://dl.devmate.com/com.macpaw.CleanMyMac2/CleanMyMac2.dmg'\n homepage 'http://macpaw.com/cleanmymac'\n version '2.0.3'\n sha1 '3bd47a6c1849f42389daa92309e24b395d6eb1f2'... | ruby | chosen |
[
{
"from": "system",
"value": "Update PG Commander to 1.5.2\n\nLowecase sha256\n"
},
{
"from": "human",
"value": "class PgCommander < Cask\n version '1.5.1'\n sha256 '082dc5b5c08e0df543424e86eef76d9aae121f7d64adf458d327542b30cd1185'\n\n url \"https://eggerapps.at/pgcommander/download/pgcommand... | ruby | chosen |
[
{
"from": "human",
"value": "Patch the TestNG addon to ensure that test failures result in a failed build.\n"
},
{
"from": "gpt",
"value": "raise \"Patch applied upstream \" if Buildr::VERSION.to_s > '1.5.8'\n\nclass Buildr::TestNG < TestFramework::Java\n\n def run(tests, dependencies) #:nodoc:... | ruby | chosen |
[
{
"from": "human",
"value": "Support for versioned resources on a CDN\n"
},
{
"from": "gpt",
"value": "require 'digest'\nrequire 'yaml'\n\nmodule Aweplug\n module Helpers\n # CDN will take the details of a file passed to the version method\n # If necessary, if the file has changed since t... | ruby | chosen |
[
{
"from": "system",
"value": "Store calls in response objects\n"
},
{
"from": "human",
"value": "module Celluloid\n # Responses to calls\n class Response\n attr_reader :value\n \n def initialize(call, value)\n @value = value\n end\n end\n \n # Call completed successfully\n ... | ruby | chosen |
[
{
"from": "human",
"value": "Make a generic IDEvent that only contains an ID\n"
},
{
"from": "gpt",
"value": "module Discordrb::Events\n # An event only associated with an ID and no further information.\n class IDEvent\n # @return [Integer] the ID associated with this event\n attr_reader... | ruby | chosen |
[
{
"from": "system",
"value": "Return resource type object from Puppet::Parser::Parser.environment.known_resource_types instead of relying on result of import\n"
},
{
"from": "human",
"value": "module PuppetParse\n class Parser\n\n def initialize(file)\n # Read file and return parsed obj... | ruby | chosen |
[
{
"from": "system",
"value": "Add description and summary to gem\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'json_resume/version'\n\nGem::Specification.new do |spec|\n spec.name... | ruby | chosen |
[
{
"from": "system",
"value": "Add performance specs for take(`>:`) on ranges.\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\n\ndescribe Calvin::Evaluator do\n describe \"performance\" do\n # Basically, these tests won't terminate if things aren't optimized :)\n it \"should op... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure that we generate JSON for the landing page map.\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Landing page' do\n it 'shows the title of the page' do\n visit root_path\n page.should have_content 'To learn more about'\n end\ne... | ruby | chosen |
[
{
"from": "system",
"value": "Add 404 response for json & html\n"
},
{
"from": "human",
"value": "require_relative 'import'\n\nmodule CaptainADB\n class App < Sinatra::Base\n register Sinatra::Namespace\n include ADB\n \n namespace '/api' do\n post '/adb/action/restart/?' do\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update openssl to 1.1.1j and libarchive to 3.5.1\n\nUpdate to the match the chef-16 branch\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "# THIS IS NOW HAND MANAGED, JUST EDIT THE THING\n# keep it ma... | ruby | chosen |
[
{
"from": "system",
"value": "Add table name, actual if using includes(:connected_table)\n"
},
{
"from": "human",
"value": "require \"filterable_sortable/version\"\n\nmodule FilterableSortable\n\n extend ActiveSupport::Concern\n\n included do\n\n scope :filtered, lambda { |filter|\n if... | ruby | chosen |
[
{
"from": "system",
"value": "Fix user not found bug"
},
{
"from": "human",
"value": "require 'lita/adapters/slack/rtm_connection'\n\nmodule Lita\n module Adapters\n class Slack < Adapter\n # Required configuration attributes.\n config :token, type: String, required: true\n co... | ruby | chosen |
[
{
"from": "system",
"value": "Use better variable name for mutant\n"
},
{
"from": "human",
"value": "module Mutant\n class Mutator\n # Abstract class for mutatiosn where messages are send\n class Call < Mutator\n\n handle(Rubinius::AST::Send)\n\n private\n\n # Return receiver... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Ruby 2.7 keyword argument warning\n"
},
{
"from": "human",
"value": "module Paysafe\n module REST\n class Client\n extend Forwardable\n\n delegate [:account_number, :api_base, :api_key, :api_secret, :test_mode, :timeout] => :@config\n\n # Init... | ruby | chosen |
[
{
"from": "human",
"value": "Add script to generate class stubs\n"
},
{
"from": "gpt",
"value": "require 'sqlite3'\nrequire 'awesome_print'\n\nclass String\n def underscore\n word = self.dup\n word.gsub!(/::/, '/')\n word.gsub!(/([A-Z]+)([A-Z][a-z])/,'\\1_\\2')\n word.gsub!(/([a-z\\... | ruby | chosen |
[
{
"from": "system",
"value": "Use Git.new instead of Git.clone\n"
},
{
"from": "human",
"value": "require 'anvil/task'\nrequire 'anvil/versioner'\n\nclass Gem::BumpTask < Anvil::Task\n description \"Bumps a gem's version\"\n\n parser do\n arguments %w[term]\n end\n\n attr_reader :term\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Implement basic parsing of actual OBJ data\n\n- Before, the vertices, normals, and faces arrays contained dummy data\n (although its sizes were correct)\n\n- Now they contain (correct?) data (tests pending)\n"
},
{
"from": "human",
"value": "module OBJ\n class Mes... | ruby | chosen |
[
{
"from": "system",
"value": "Fix syntax error when calling CONFIG\n"
},
{
"from": "human",
"value": "# MIGRATIONS\n\nif !File.exists?(\"db/#{CONFIG[database]}.db\")\n\n # IF YOU DO CHANGES HERE, DELETE THE FILE 'db/pomospace.db'\n\n DB = Sequel.connect(\"sqlite://#{CONFIG[database]}\")\n\n D... | ruby | chosen |
[
{
"from": "system",
"value": "Add PHP-FPM file to permissions check, per support\n"
},
{
"from": "human",
"value": "# Encoding: UTF-8\nOhai.plugin(:Permissions) do\n provides 'permissions'\n\n def file_perms(file)\n command = <<-EOS\n stat -L -c \"%a\" #{file}\n EOS\n so = shell_ou... | ruby | chosen |
[
{
"from": "system",
"value": "Add rdoc to development 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 'wptemplates/version'\n\nGem::Specification.new do |spec|\n spec.na... | ruby | chosen |
[
{
"from": "system",
"value": "Fix method call for Facter v2\n\nFacter 2 doesn't seem to support methods for fact values. This code\nmoves to use a supported method that can be used to retrieve fact values\nfrom the loaded facts.\n"
},
{
"from": "human",
"value": "\nFacter.add(\"pkgng_supported\... | ruby | chosen |
[
{
"from": "system",
"value": "Set :environment task as a dependency to all rake task\n"
},
{
"from": "human",
"value": "desc \"Run govuk-lint with similar params to CI\"\ntask \"lint\" do\n sh \"bundle exec rubocop\"\nend\n"
},
{
"from": "gpt",
"value": "desc \"Run govuk-lint with s... | ruby | chosen |
[
{
"from": "human",
"value": "Add formula for memcache PHP extension\n\nSigned-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>\n"
},
{
"from": "gpt",
"value": "require 'formula'\n\nclass MemcachePhp <Formula\n url 'http://pecl.php.net/get/memcache-2.2.6.tgz'\n homep... | ruby | chosen |
[
{
"from": "system",
"value": "Add asset test for IE shims\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe 'Assets' do\n subject(:asset) { page.body }\n\n describe 'Static' do\n it 'provides the crown header' do\n visit '/assets/header-crown.png'\n asset.should... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure we do work in order\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe DrbQueue do\n it { should_not be_nil }\n\n def connect_to_redis!\n Redis.current = Redis::Namespace.new(described_class.to_s, :redis => Redis.new(:db => 8))\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Modify cocoas pods config file\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"Lasagna-Cookies\"\n s.version = \"1.0.0\"\n s.summary = \"Lasagna Cookies is a UI theme for iOS that provide multiple view object \"\n s.homepag... | ruby | chosen |
[
{
"from": "system",
"value": "Use attr_reader instead of instance variables\n"
},
{
"from": "human",
"value": "class ClustersFinder\n attr_reader :project, :user, :scope\n\n def initialize(project, user, scope)\n @project = project\n @user = user\n @scope = scope || :active\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Add test for exceptions in Evaluator\n"
},
{
"from": "human",
"value": "require 'dest'\nrequire'./spec/class_example.rb'\n\ndescribe Dest::Evaluator do \n\n it \"should return true for a parsed doctest that is correct\" do \n doctest = [7, \"Greeter.new(\\\"Aaro... | ruby | chosen |
[
{
"from": "system",
"value": "Update pod spec to v1.0.3\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"KMSWebRTCCall\"\n s.version = \"1.0.2\"\n s.summary = \"Kurento Media Server iOS Web RTC Call.\"\n s.homepage = \"https://github.... | ruby | chosen |
[
{
"from": "human",
"value": "Add missing 5.3.27 fpm spec\n"
},
{
"from": "gpt",
"value": "require 'spec_helper'\n\ndescribe \"php::fpm::5_3_27\" do\n let(:facts) { default_test_facts }\n\n it do\n should contain_php__fpm(\"5.3.27\")\n end\nend\n"
}
] | ruby | chosen |
[
{
"from": "system",
"value": "Make podspec reference tag '2.1'"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'MagicalRecord'\n s.version = '2.1.0'\n s.license = 'MIT'\n s.summary = 'Super Awesome Easy Fetching for Core Data 1!!!11!!!!1!.'\n s.homepage = 'http://git... | ruby | chosen |
[
{
"from": "system",
"value": "Make it a >= for oauth gem\n"
},
{
"from": "human",
"value": "$:.unshift(File.join(File.dirname(__FILE__), 'lib'))\n\nrequire 'myjohndeere/version'\n\nspec = Gem::Specification.new do |s|\n s.name = 'myjohndeere'\n s.version = MyJohnDeere::VERSION\n s.required_ru... | ruby | chosen |
[
{
"from": "system",
"value": "Add project metadata to the gemspec\n\nAs per https://guides.rubygems.org/specification-reference/#metadata,\nadd metadata to the gemspec file. This'll allow people to more easily\naccess the source code, raise issues and read the changelog. These\n`bug_tracker_uri`, `changelog... | ruby | chosen |
[
{
"from": "system",
"value": "Add web mock as a development dependency."
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'openweather2/version'\n\nGem::Specification.new do |spec|\n spe... | ruby | chosen |
[
{
"from": "system",
"value": "Update the version to 1.3.2\n"
},
{
"from": "human",
"value": "libdir = File.dirname(__FILE__)\n$:.unshift(libdir) unless $:.include?(libdir)\n\nmodule MessageBird\n CLIENT_VERSION = '1.3.1'\n ENDPOINT = 'https://rest.messagebird.com'\nend\n\nrequire 'messag... | ruby | chosen |
[
{
"from": "system",
"value": "Add lib dir to files in gemspec, bump to 0.0.8.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = 'rs-api-tools'\n s.version = '0.0.7'\n s.date = '2013-11-04'\n s.summary = \"rs-api-tools\"\n s.description = \"Rig... | ruby | chosen |
[
{
"from": "system",
"value": "Increase tcp connections backlog to 1024\n\nFixes #11\n"
},
{
"from": "human",
"value": "module Reel\n class Server\n include Celluloid::IO\n \n def initialize(host, port, &callback)\n # This is actually an evented Celluloid::IO::TCPServer\n @ser... | ruby | chosen |
[
{
"from": "system",
"value": "Add ancestry as a dependency\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"simple-pages/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specification.new do |s|\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update Visual Studio Code to v0.3.0"
},
{
"from": "human",
"value": "cask :v1 => 'visual-studio-code' do\n version :latest\n sha256 :no_check\n\n url 'http://download.microsoft.com/download/0/D/5/0D57186C-834B-463A-AECB-BC55A8E466AE/VSCode-osx.zip'\n name 'Visua... | ruby | chosen |
[
{
"from": "human",
"value": "Add Data Rescue 4.app v4.1\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'data-rescue' do\n version '4.1'\n sha256 '479f91c85e4e87cf4d9b99a1e4c73a132c318a9b98d00d44a77e771c20a428dc'\n\n url \"https://s3.amazonaws.com/prosoft-engineering/drmac/Data_Rescue_#{version}... | ruby | chosen |
[
{
"from": "system",
"value": "Add uninstall stanza to growl notify\n"
},
{
"from": "human",
"value": "class Growlnotify < Cask\n url 'http://growl.cachefly.net/GrowlNotify-2.1.zip'\n homepage 'http://growl.info/downloads'\n version '2.1'\n sha256 'eec601488b19c9e9b9cb7f0081638436518bce782d07... | ruby | chosen |
[
{
"from": "system",
"value": "Complete test coverage of CLI\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\nrequire \"minitest_to_rspec/cli\"\n\nmodule MinitestToRspec\n RSpec.describe CLI do\n describe \".new\" do\n context \"target omitted\" do\n it \"infers target\... | ruby | chosen |
[
{
"from": "system",
"value": "Remove Capybara.save_and_open_page_path since it was removed\n"
},
{
"from": "human",
"value": "ENV['RAILS_ENV'] = 'test'\n\nrequire 'spec_helper'\nrequire 'capybara/rspec'\nrequire 'rails_app/config/environment'\nrequire 'orm/active_record'\n\nCapybara.app = RailsA... | ruby | chosen |
[
{
"from": "system",
"value": "Update TG Pro.app to v2.8.3\n"
},
{
"from": "human",
"value": "cask :v1 => 'tg-pro' do\n version '2.8.1'\n sha256 '9cdb4731d20daa4242beff1ecbc44fe9a03b4d768261994c0cee85b42f33c525'\n\n url \"http://www.tunabellysoftware.com/resources/TGPro_#{version.gsub('.','_')... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unneeded and unused callback.\n\nThis was not working (incorrect syntax) in the past. I updated it in\nthis PR https://github.com/procore/registrar/pull/27 while upgrading to\nRails 5. (See attached PR for relevant discussion) After double\nchecking, this callback can in... | ruby | chosen |
[
{
"from": "system",
"value": "Remove compile time installation as this fights with apt-update and we lose\n\nSigned-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>\n"
},
{
"from": "human",
"value": "# Cookbook:: firefox\n# Recipe:: default\n#\n# Copyright:: 2012-2016, Webtre... | ruby | chosen |
[
{
"from": "system",
"value": "Update Pod version to 1.2.2-alpha\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'LLRegex'\n s.version = '1.2.2'\n s.summary = 'Regular expression library in Swift, wrapping NSRegularExpression.'\n s.homepage ... | ruby | chosen |
[
{
"from": "system",
"value": "Add user_variable to the config template\n"
},
{
"from": "human",
"value": "Sofort.setup do |config|\n\n config.base_url = \"https://api.sofort.com/api/xml\"\n config.user_id = 'sofort_user_id'\n config.api_key = 'api_key'\n config.abort_url = 'abort_url'\n con... | ruby | chosen |
[
{
"from": "system",
"value": "Remove match node which is no longer provided by parser\n"
},
{
"from": "human",
"value": "module Mutant\n class Mutator\n class Node\n\n # Generic mutator\n class Generic < self\n\n # These nodes still need a dedicated mutator,\n # your ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix check for Exception extension methods.\n"
},
{
"from": "human",
"value": "class Exception\n\n def set_assertion(boolean)\n @assertion = boolean\n end unless defined?(:set_assertion)\n\n def assertion?\n @assertion\n end unless defined?(:assertion?)\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Use DSA API instead of github raw\n"
},
{
"from": "human",
"value": "# This file should contain all the record creation needed to seed the database with its default values.\n# The data can then be loaded with the rake db:seed (or created alongside the db with db:set... | ruby | chosen |
[
{
"from": "system",
"value": "Update CacheWarmer URL and homepage\n"
},
{
"from": "human",
"value": "cask :v1 => 'cachewarmer' do\n version '13'\n sha256 '97f9d743a41c4a38ea3b2af5c33716e72b02e9e11b0fed3000d0a3c584f104f3'\n\n url \"https://glencode.net/_downloads/CacheWarmer-#{version}.pkg\"\n... | ruby | chosen |
[
{
"from": "system",
"value": "Remove deprecation messages in rspec\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'bundler/setup'\nrequire 'rspec/given'\nrequire 'httpclient'\nrequire 'vcr'\nrequire 'sovren'\nrequire 'webmock'\n\nVCR.configure do |c|\n c.cassette_library_dir = '... | ruby | chosen |
[
{
"from": "system",
"value": "Reorder dotenv loading for travis\n\nIt will not override the existing env variables\nif they are already set\n"
},
{
"from": "human",
"value": "$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)\nrequire 'ezapi_client'\nrequire \"yaml\"\nrequire \"pry\"\nre... | ruby | chosen |
[
{
"from": "system",
"value": "Remove autorun as it is no deprecated.\n"
},
{
"from": "human",
"value": "ENV['RAILS_ENV'] ||= 'test'\nrequire File.expand_path(\"../dummy/config/environment.rb\", __FILE__)\nrequire 'rspec/rails'\nrequire 'rspec/autorun'\nrequire 'pry'\n\nRails.backtrace_cleaner.r... | ruby | chosen |
[
{
"from": "system",
"value": "Add a spec of Work\n"
},
{
"from": "human",
"value": "require 'cool/work'\nRSpec.describe Cool::Work do\n describe '#execute' do\n it 'works' do\n work = described_class.new 'true'\n expect(work.execute).to eq(true)\n work = described_class.new 'f... | ruby | chosen |
[
{
"from": "system",
"value": "Change to rely on rails view to find current page\n"
},
{
"from": "human",
"value": "require 'action_view'\n\nclass DummyView < ActionView::Base\n module FakeRequest\n class Request\n attr_accessor :path\n def get?\n true\n end\n end\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Opera Beta.app to v29.0.1795.21\n"
},
{
"from": "human",
"value": "cask :v1 => 'opera-beta' do\n version '28.0.1750.36'\n sha256 'cab81fd4bee7b73ab8b377db3e73305f8dde64c2a495f4aa1acfd742e0ba248b'\n\n url \"http://get.geo.opera.com/pub/opera-beta/#{version... | ruby | chosen |
[
{
"from": "system",
"value": "Fix App Stanza target in Sassquatch Cask\n"
},
{
"from": "human",
"value": "cask 'sassquatch' do\n version '1.5.0'\n sha256 '9f9c688e473cc8fdffbee38c5d8f876726620a42dacdd6c2996faadfab714612'\n\n url \"https://thoughtbot.github.io/sassquatch/download/v#{version}/S... | ruby | chosen |
[
{
"from": "system",
"value": "Allow to pass a hash of options to Utils::Exec methods\n"
},
{
"from": "human",
"value": "# DeployIt - Docker containers management software\n# Copyright (C) 2015 Nicolas Rodriguez (nrodriguez@jbox-web.com), JBox Web (http://www.jbox-web.com)\n#\n# This code is free... | ruby | chosen |
[
{
"from": "system",
"value": "Use semver for the gem and specify API_VERSION\n"
},
{
"from": "human",
"value": "module MindBody\n VERSION = \"0.5.2.0\"\nend\n"
},
{
"from": "gpt",
"value": "module MindBody\n VERSION = \"1.0.0.alpha\"\n API_VERSION = \"0.5.2.0\"\nend\n"
}
] | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.