conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Make Hound CI even happier."
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass MountainView::ComponentHelperTest < ActionView::TestCase\n test \"renders the proper component\" do\n rendered = render_component(\"header\", id: 1, title: \"Pepe\")\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Adjust and add some tests.\n"
},
{
"from": "human",
"value": "# encoding: utf-8\nrequire 'spec_helper'\n\n# Write integration tests with Serverspec - http://serverspec.org/\ndescribe 'octohost::default' do\n describe service('ntp') do\n it { should be_enabled }\... | ruby | chosen |
[
{
"from": "system",
"value": "Fix eager loading on production\n"
},
{
"from": "human",
"value": "require_relative 'boot'\n\nrequire \"rails\"\n# Pick the frameworks you want:\nrequire \"active_model/railtie\"\n# require \"active_job/railtie\"\n# require \"active_record/railtie\"\nrequire \"actio... | ruby | chosen |
[
{
"from": "system",
"value": "Remove figs dependency from test env\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\nrequire 'rails/all'\n\n# Load the figs variables before the rest of the bundle\n# so we can use env vars in other gems\nrequire 'figs'\n# Don't r... | ruby | chosen |
[
{
"from": "system",
"value": "Set sass as the default for new stylesheets\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\n# Pick the frameworks you want:\nrequire \"active_record/railtie\"\nrequire \"action_controller/railtie\"\nrequire \"action_mailer/railtie... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in Puppet Cask\n\nThe HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly\nmakes it more secure and saves a HTTP round-trip.\n"
},
{
"from": "human",
"value": "cask :v1 => 'puppet' do\n version '3.7.4'\n sha256 '8e... | ruby | chosen |
[
{
"from": "system",
"value": "Update ruby version in .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 'sell_object/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "human",
"value": "Add GroupFinder for collection all groups user has access to\n\nSigned-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>\n"
},
{
"from": "gpt",
"value": "class GroupsFinder\n def execute(current_user, options = {})\n all_groups(curr... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up Pod description whitespace\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |spec|\n spec.name = 'Faraday'\n spec.version = '0.3.0'\n spec.summary = 'Flexible HTTP client framework based on Rack'\n spec.description = <<-DESCRIPTION\n Flexible HTTP a... | ruby | chosen |
[
{
"from": "system",
"value": "Add validations to invite request\n"
},
{
"from": "human",
"value": "class InviteRequest\n include ActiveModel::Validations\n include ActiveModel::Conversion\n extend ActiveModel::Naming\n\n attr_accessor :first_name, :last_name, :email, :company, :role, :messag... | ruby | chosen |
[
{
"from": "system",
"value": "Rename timeout attribute that might clash with ruby private method\n"
},
{
"from": "human",
"value": "class CreateAdapters < ActiveRecord::Migration\n def change\n create_table :adapters do |t|\n t.belongs_to :country, index: true\n t.string :name, nul... | ruby | chosen |
[
{
"from": "system",
"value": "Update Zotero cask version to 4.0.17.\n\nUpdates Zotero version to latest release version, 4.0.17.\n"
},
{
"from": "human",
"value": "class Zotero < Cask\n url 'http://download.zotero.org/standalone/4.0.16/Zotero-4.0.16.dmg'\n homepage 'http://www.zotero.org/'\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add rspec to 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 'mami/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Add OSX back into podspec file\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = 'WebViewProxy'\n s.version = '0.2.5'\n s.summary = 'A standalone iOS & OSX class for intercepting and proxying HTTP requests (e.g. from a Web View)... | ruby | chosen |
[
{
"from": "human",
"value": "Add cask for Fira Code v0.3\n"
},
{
"from": "gpt",
"value": "cask :v1 => 'font-fira-code' do\n version '0.3'\n sha256 'a90721b6b1de4640ace744657432a990aae4c8e403b78141a50d0a7abd305db7'\n\n url 'https://github.com/tonsky/FiraCode/releases/download/0.3/FiraCode-Regu... | ruby | chosen |
[
{
"from": "system",
"value": "Include CocoaLumberjack in podspec dependancy\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"ETA-SDK\"\n s.version = \"2.2.1\"\n s.summary = \"eTilbudsavis iOS SDK.\"\n s.description = <<-DESC\n An SDK... | ruby | chosen |
[
{
"from": "system",
"value": "Add cfnetwork framework to podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"SCPinions\"\n s.version = \"0.1.1\"\n s.summary = \"Steamclock uses various tools and utilities to build our apps. We call these tools Pinion... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Add myself as an owner.\"\n\nThis reverts commit 2b2e387facf8ad1861e4fd43fc3cbec419bae927.\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'js_a... | ruby | chosen |
[
{
"from": "human",
"value": "Add solution for string compression in ruby\n"
},
{
"from": "gpt",
"value": "def string_compression(str)\n count = 1\n output = []\n (0..str.length-1).each do |i|\n if str[i] != str[i+1]\n output[i] = \"#{str[i]}#{count}\"\n count = 1\n else\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add RSpec version to unsupported version message.\n"
},
{
"from": "human",
"value": "require 'rspec'\nrequire 'given'\n\nmodule RSpec\n module Given\n end\nend\n\nif Given::NATURAL_ASSERTIONS_SUPPORTED\n require 'given/rspec/monkey'\n raise \"Unsupported version... | ruby | chosen |
[
{
"from": "system",
"value": "Add missing require for `AC::Parameters`\n\nThis file is not required in Rails 5:<\n"
},
{
"from": "human",
"value": "# XXX Though these are necessary, AC::Parameters doesn't require it\nrequire 'active_support/core_ext/class/attribute_accessors'\nrequire 'date'\nre... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for on stage and on prod\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass Rain::DeployerTest < ActiveSupport::TestCase\n describe \"DeployerTest: bare invocation\" do\n setup { @command = %x(./bin/rain) }\n\n should \"deploy a new t... | ruby | chosen |
[
{
"from": "system",
"value": "Raise NotImplementedError when calling .new on a class that inherits from ::Spectacles::View.\n"
},
{
"from": "human",
"value": "module Spectacles\n class View < ActiveRecord::Base\n self.abstract_class = true\n\n def self.new(*)\n warn \"DEPRECATION WAR... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused code from response test\n"
},
{
"from": "human",
"value": "require File.dirname(__FILE__) + '/../test_helper'\n\nclass ResponseTest < Test::Unit::TestCase\n include ActiveMerchant::Shipping\n \n \n def setup\n\n end\n\n def test_initialize\n r... | ruby | chosen |
[
{
"from": "human",
"value": "Add test for tweet shortening\n\nCo-authored-by: Georg Gadinger <9e8f1a26fbf401b045347f083556ffd7c0b25a58@nilsding.org>\n"
},
{
"from": "gpt",
"value": "# frozen_string_literal: true\n\nrequire 'rails_helper'\n\ndescribe Services::Twitter do\n describe \"#post\" do\... | ruby | chosen |
[
{
"from": "system",
"value": "Make note of external, non RubyGems dependencies\n"
},
{
"from": "human",
"value": "require 'rubygems' # When running under 1.8. Who knows?\n\nrequire 'mediainfo' # Capture technical metadata from video\nrequire 'mini_exiftool' # Capture software metadata from video... | ruby | chosen |
[
{
"from": "system",
"value": "Remove final sprockets dependency from gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/opal/version', __FILE__)\n\nGem::Specification.new do |s|\n s.name = 'opal'\n s.version = Opal::VERSION\n s.... | ruby | chosen |
[
{
"from": "system",
"value": "Add mechanize dependency to gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/nexus_artifact/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.authors = [\"David McCullars\"]\n gem.email ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove return value from Adamantium.included\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n\nrequire 'ice_nine'\nrequire 'memoizable'\n\n# Allows objects to be made immutable\nmodule Adamantium\n\n # Defaults to less strict defaults\n module Flat\n\n # ... | ruby | chosen |
[
{
"from": "system",
"value": "Define run_on_change(s) according to Guard version\n\nThis suppresses a deprecation notice given when using guard-rake with\nGuard 1.1 and higher.\n"
},
{
"from": "human",
"value": "require 'guard'\nrequire 'guard/guard'\nrequire 'rake'\n\nmodule Guard\n class Rake... | ruby | chosen |
[
{
"from": "system",
"value": "Use Time instead of DateTime\n\nfor speed and bugged with mongoid:\nsee https://github.com/mongoid/mongoid/issues/1135\n\nSigned-off-by: Laurent Arnoud <f1b010126f61b5c59e7d5eb42c5c68f6105c5914@spkdev.net>\n"
},
{
"from": "human",
"value": "module Resa\n class Even... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out that code that check if a file is binary file\n"
},
{
"from": "human",
"value": "module SGF\n class Parser \n attr_reader :event_listener\n \n def initialize event_listener\n @event_listener = event_listener\n @stm = SGFStateMachin... | ruby | chosen |
[
{
"from": "system",
"value": "Add some basic type docs\n"
},
{
"from": "human",
"value": "module Slop\n class StringOption < Option\n def call(value)\n value.to_s\n end\n end\n\n class BoolOption < Option\n def call(_value)\n true\n end\n\n def default_value\n co... | ruby | chosen |
[
{
"from": "system",
"value": "Switch from Spree::Api::BaseController to Api::BaseController so that AMS is activated\n"
},
{
"from": "human",
"value": "module Api\n class ProductImagesController < Spree::Api::BaseController\n respond_to :json\n\n def update_product_image\n @product =... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Hopper Disassembler v3.app to v3.9.9\n"
},
{
"from": "human",
"value": "cask :v1 => 'hopper-disassembler' do\n version '3.9.4'\n sha256 'fc06dcd70c7af71eee96a95d32ab0ffa5b9452ec8d279fc8bc31c0d09575cc71'\n\n url \"http://www.hopperapp.com/HopperWeb/downloa... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Hopper Disassembler to v3.9.11\n"
},
{
"from": "human",
"value": "cask :v1 => 'hopper-disassembler' do\n version '3.9.9'\n sha256 '60a8412269cc51fbd8565f280dd70bea34d102c74a5efdc201b468c566d5ad87'\n\n url \"http://www.hopperapp.com/HopperWeb/downloads/Hop... | ruby | chosen |
[
{
"from": "human",
"value": "Add TorBrowser Alpha AR 5.5a3"
},
{
"from": "gpt",
"value": "cask :v1 => 'torbrowser-alpha-ar' do\n version '5.5a3'\n sha256 'cff609da6f3851c4fcfafcf3e212fd9fed489bd4a7e51fc3d63c9b402a6da277'\n\n url \"https://dist.torproject.org/torbrowser/#{version}/TorBrowser-#... | ruby | chosen |
[
{
"from": "system",
"value": "Remove N+1 queries in Consults\n"
},
{
"from": "human",
"value": "require_dependency \"renalware/admissions\"\n\nmodule Renalware\n module Admissions\n class ConsultQuery\n attr_reader :query\n\n def initialize(query = {})\n @query = query\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change vote count to return a num rather than change nonexistant col\n"
},
{
"from": "human",
"value": "class Answer < ActiveRecord::Base\n has_many :votes, as: :votable\n has_many :responses, as: :respondable\n belongs_to :question\n belongs_to :answerer, class... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"SCI-3702 replace _to_text with _to_html\"\n\nThis reverts commit 93b7c472ac8ef271c9b23bfc6ea85d78a713b7eb.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule DrawStepChecklist\n def draw_step_checklist(subject)\n checklist = Chec... | ruby | chosen |
[
{
"from": "system",
"value": "Check whether in SA only if address is not blank\n"
},
{
"from": "human",
"value": "class Permit < ActiveRecord::Base\n validates :owner_address, :presence => true, :address => true, :if => :active_or_address?\n\n\n def active?\n status == 'active'\n end\... | ruby | chosen |
[
{
"from": "system",
"value": "Disable trending links review request emails\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule Trends\n def self.table_name_prefix\n 'trends_'\n end\n\n def self.links\n @links ||= Trends::Links.new\n end\n\n def self.tags\n @t... | ruby | chosen |
[
{
"from": "system",
"value": "Remove test files from built gem\n"
},
{
"from": "human",
"value": "# encoding: utf-8\n$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"apitome/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specificat... | ruby | chosen |
[
{
"from": "system",
"value": "Remove useless before/after in Dir.home spec\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\nrequire File.expand_path('../fixtures/common', __FILE__)\n\ndescribe \"Dir.home\" do\n before :all do\n DirSpecs.create_mo... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade Safari Tab Switching to v1.2.7\n"
},
{
"from": "human",
"value": "class Safaritabswitching < Cask\n version '1.2.6'\n sha256 'd2823ec2327c5b5e2602876749f6c6ef352cfe7b5498158cc46c5610f6bf9b69'\n\n url \"https://github.com/rs/SafariTabSwitching/releases/dow... | ruby | chosen |
[
{
"from": "system",
"value": "Make task invocation in after hook namespace aware\n"
},
{
"from": "human",
"value": "desc 'Jekyll integration'\nnamespace :jekyll do\n desc 'Build the website using Jekyll'\n task :build do\n on roles(:web) do\n within release_path do\n execute :je... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.22.1.0 to 0.22.2.0\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'evt-messaging'\n s.version = '0.22.1.0'\n s.summary = 'Common primitives for platform-specific messaging... | ruby | chosen |
[
{
"from": "system",
"value": "Fix bug where middlware was counting 1 too many workers\n"
},
{
"from": "human",
"value": "class Git::Deploy::HerokuWorkers\n\n def initialize( app )\n @app = app\n end\n\n def call( env )\n\n if env[ 'remote.heroku' ]\n # TODO catch exit status\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Enable persistent to use the keepalives"
},
{
"from": "human",
"value": "require 'excon'\n\nmodule HttpShootingParty\n class Excon\n attr_accessor :client\n\n def initialize(url)\n self.client = ::Excon.new(url)\n end\n\n def name\n \"Excon\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Update KubeException to inherit StandardError\n\nCurrently, KubeException inherits from Exception, which is bad because\nthe default \"rescue\" behaviour is to catch only exception which are\nStandardException.\n"
},
{
"from": "human",
"value": "# Kubernetes HTTP Ex... | ruby | chosen |
[
{
"from": "system",
"value": "Allow non newest version PHP to tools.\n\nInstallation of PHP tools was blocked if installed PHP does not match to the newest formulas.\n"
},
{
"from": "human",
"value": "require File.join(File.dirname(__FILE__), 'homebrew-php-requirement')\n\nclass PhpMetaRequireme... | ruby | chosen |
[
{
"from": "system",
"value": "Move segments regex to constant.\n"
},
{
"from": "human",
"value": "module UserAgentParser\n\n class Version\n\n attr_accessor :version\n alias :to_s :version\n\n def initialize(version)\n self.version = version.to_s.strip\n end\n\n def segments... | ruby | chosen |
[
{
"from": "system",
"value": "Fix needed require for puppet 3.x\n"
},
{
"from": "human",
"value": "#!/usr/bin/ruby\n\nrequire 'puppetdb'\nrequire 'optparse'\nrequire 'pp'\n\noptions = {:puppetdb_host => \"puppet\",\n :puppetdb_port => 443,\n :query => nil}\n\nopt = OptionPars... | ruby | chosen |
[
{
"from": "system",
"value": ":boom: Join the name if it's a place\n"
},
{
"from": "human",
"value": "module Geo\n class Extractor\n def initialize(result)\n @result = result\n end\n\n def extracted\n {\n id: result.fetch('_id'),\n name: name,\n latitude:... | ruby | chosen |
[
{
"from": "system",
"value": "Use Redic instead of Redic::Client\n"
},
{
"from": "human",
"value": "require \"redic\"\n\nclass Redic::Cluster\n attr :url\n attr :node\n attr_accessor :debug\n\n def initialize(url=\"redis://localhost:12001\", timeout=10_000_000)\n @url = url\n @node ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix SDWebImage version to 4\n\nI'm not actively maintaining this anymore, so this is the\neasiest solution to the major upgrade.\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"OOPhotoBrowser\"\n s.summary = \"Photo Browser / ... | ruby | chosen |
[
{
"from": "system",
"value": "Write puma stdout and stderr to log files\n"
},
{
"from": "human",
"value": "directory '/app'\n\ndaemonize\n\npidfile '/run/puma.pid'\n\nthreads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }.to_i\nthreads threads_count, threads_count\n"
},
{
"from": "gpt",
... | ruby | chosen |
[
{
"from": "system",
"value": "[FIX] Remove \"require 'sinatra/base'\" from code."
},
{
"from": "human",
"value": "\nrequire 'sinatra/base'\nrequire 'sinatra/outputbuffer'\n\nmodule Sinatra\n module Cache\n VERSION = '0.3.3' unless const_defined?(:VERSION)\n def self.version; \"Sinatra::Ca... | ruby | chosen |
[
{
"from": "system",
"value": "Fix brick_in_volume for long hostnames\n"
},
{
"from": "human",
"value": "def node_peer?(node)\n cmd = shell_out(\"gluster pool list | awk '{print $2}' | grep #{node}\")\n # cmd.stdout has a \\n at the end of it\n if cmd.stdout.chomp == node\n return true\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Convert uid/gid into integers if databag objects are of type string.\n\nThis fixes issue 125.\n\n1. if user data bag object has UID specified as a string, will convert to appropriate integer.\n If UID == USERNAME, this will already fail for user creation object.\n2. if user da... | ruby | chosen |
[
{
"from": "system",
"value": "Check if server is available before get information\n"
},
{
"from": "human",
"value": "# https://github.com/rest-client/rest-client\nrequire 'rest-client'\n# https://github.com/flori/json\nrequire 'json'\n# http://stackoverflow.com/questions/9008847/what-is-differen... | ruby | chosen |
[
{
"from": "system",
"value": "Downgrade Savon version to support Inviso iWEB"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'twentyfour_seven_office_legacy/version'\n\nGem::Specificati... | ruby | chosen |
[
{
"from": "human",
"value": "Add recipe to install mod-jk\n"
},
{
"from": "gpt",
"value": "unless File.exists?(\"/usr/libexec/apache2/mod_jk.so\")\n\n remote_file \"#{Chef::Config[:file_cache_path]}/tomcat-connectors-1.2.37-src.tar.gz\" do\n source \"http://www.apache.org/dist/tomcat/tomcat-... | ruby | chosen |
[
{
"from": "system",
"value": "Make sure the superdirectory for a user's home exists.\n"
},
{
"from": "human",
"value": "users = if Chef::Config[:solo]\n node[:users]\n else\n search(:users)\n end\n\ngroups = if Chef::Config[:solo]\n node[:groups]\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use I18n to pluralize entries\n\nsee: https://github.com/amatsuda/kaminari/commit/7f6e9a877d646263dc0504a5ad96ef4d5f2dd684\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\nmodule Kaminari\n module Mongoid\n module MongoidCriteriaMethods\n d... | ruby | chosen |
[
{
"from": "system",
"value": "Add sixarm_ruby_unaccent to gemspec dependencies\n\n`countries` requires `sixarm_ruby_unaccent` (as included in `lib/countries.rb`), however it's not listed as a dependency causing breakages unless installed manually."
},
{
"from": "human",
"value": "# -*- encoding:... | ruby | chosen |
[
{
"from": "system",
"value": "Add a factory to generate our test github user.\n"
},
{
"from": "human",
"value": "require 'factory_girl'\n\nFactory.define :user do |u|\n u.name 'Test User'\n u.email 'user@test.com'\n u.password 'please'\nend\n\nFactory.define :signup do |s|\n s.email \"test@e... | ruby | chosen |
[
{
"from": "system",
"value": "Update PHPStorm EAP to 141.1534\n"
},
{
"from": "human",
"value": "cask :v1 => 'phpstorm-eap' do\n version '141.1306'\n sha256 'ebd04e0378cb2d5c528bb9e7618dbb89ddb1d9e7f9e429cd21594e622194a7e2'\n\n url \"http://download.jetbrains.com/webide/PhpStorm-EAP-#{version... | ruby | chosen |
[
{
"from": "system",
"value": "Make list of gem files more specific about file types.\n"
},
{
"from": "human",
"value": "spec = Gem::Specification.new do |s|\n s.name = \"songkick-oauth2-provider\"\n s.version = \"0.10.0\"\n s.summary = \"Simple OAuth 2.0 provi... | ruby | chosen |
[
{
"from": "system",
"value": "Move CAMP formula to drbenmorgan fork\n\nTo provide better CMake support for camp clients, migrate to use\ndrbenmorgan fork of CAMP with improved CMake support. These fixes\nhave been submitted upstream, so use of the primary repo can resume\nwhen/if these fixes are accepted.\n... | ruby | chosen |
[
{
"from": "system",
"value": "Split task_mailer expectations in their own examples\n"
},
{
"from": "human",
"value": "require \"rails_helper\"\n\nRSpec.describe TaskMailer, type: :mailer do\n fixtures :tasks, :responsibilities\n\n describe \"when task has turns\" do\n\n let(:task) { tasks(... | ruby | chosen |
[
{
"from": "system",
"value": "Fix redirects and sign the user in if they weren't yet created\n"
},
{
"from": "human",
"value": "require './lib/actions/oauth_signup_action'\n\n#\n# Handle signup or signin\n# from various oauth providers\n#\n# Heavily overlaps with Authentications controller\n#\nc... | ruby | chosen |
[
{
"from": "system",
"value": "Add power_down and hero_info test\n"
},
{
"from": "human",
"value": "require './hero'\n\ndescribe Hero do\n\n\tit \"has a capitalize name\" do\n\t\thero = Hero.new 'mike'\n\n\t\texpect(hero.name).to eq 'Mike' # hero.name == 'Mike'\n\tend\n\n\tit \"can power up\" do\... | ruby | chosen |
[
{
"from": "system",
"value": "Change gemspec.homepage to github repo url\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire 'log4r/version'\n\n# Removed dependency on rake because of error when running `bundle install --deploymen... | ruby | chosen |
[
{
"from": "system",
"value": "Add SignificantSpices dependency to podspec\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"TastyTomato\"\n s.version = \"0.16.0\"\n s.summary = \"The Tasty Tomato.\"\n s.description = <<-DESC \n Get all the awesome custom U... | ruby | chosen |
[
{
"from": "system",
"value": "Update for newer bundler/rake combinations\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'glicko2/version'\n\nGem::Specification.new do |gem|... | ruby | chosen |
[
{
"from": "system",
"value": "Add a gem spec summary and description\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"effective_style_guide/version\"\n\n# Describe your gem and declare its dependencies:\nGem::Specifica... | ruby | chosen |
[
{
"from": "system",
"value": "Update Nokogiri for security reasons\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\nrequire \"addic7ed/version\"\n\nGem::Specification.new do |s|\n s.name = \"addic7ed\"\n s.version = Addic7ed::VERSION\n s.platform... | ruby | chosen |
[
{
"from": "system",
"value": "Make private what must not be public\n"
},
{
"from": "human",
"value": "require 'cloudflair/communication'\n\nmodule Cloudflair\n class DevelopmentMode\n include Cloudflair::Communication\n\n attr_accessor :zone_id\n\n patchable_fields :value\n\n def pa... | ruby | chosen |
[
{
"from": "system",
"value": "Extend ActiveRecord the Rails2 Way\n\nWith no ActiveSupport::Concern in Rails2 class methods must be included\nin ActiveRecord with an actually defined included method.\n"
},
{
"from": "human",
"value": "module MaskableAttribute\n module ActsAsMaskableAttribute\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Rewrite Automaton to display grid\n"
},
{
"from": "human",
"value": "class Automaton\n def build_initial_configuration\n number_of_columns = `/usr/bin/env tput cols`.to_i\n grid = Array.new(number_of_columns, \" \")\n middle = number_of_columns / 2\n g... | ruby | chosen |
[
{
"from": "system",
"value": "Test updates for various changes\n\n * Changed 'result' route from POST index to POST result(.fmt)\n * CSV output test\n * DOCTYPE exclusion test. Other XXEs are essentially hidden by this,\n so not tested for\n"
},
{
"from": "human",
"value": "require './co... | ruby | chosen |
[
{
"from": "system",
"value": "Add caveats to Paraview Nightly.\n"
},
{
"from": "human",
"value": "class ParaviewNightly < Cask\n url 'http://www.paraview.org/paraview-downloads/download.php?submit=Download&version=nightly&type=binary&os=osx&downloadFile=ParaView-Darwin-64bit-NIGHTLY.dmg'\n hom... | ruby | chosen |
[
{
"from": "system",
"value": "Update gemspec with rails dependency.\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"easy_menu\"\n s.summary = \"Simple menu bar dsl for rails 3.1 views\"\n s.files = Dir[\"{app,lib,config}/**/*\"] + [\"MIT-LICENSE\", \"Gemfile\", \... | ruby | chosen |
[
{
"from": "system",
"value": "Change winelist method to accurately reflect wines for accepted users\n"
},
{
"from": "human",
"value": "class Event < ActiveRecord::Base\n has_many :event_wines\n has_many :wine_bringers, through: :event_wines\n has_many :wines, through: :event_wines\n\n belong... | ruby | chosen |
[
{
"from": "system",
"value": "Add method for titleizing common names in selects\n"
},
{
"from": "human",
"value": "class Plant < ApplicationRecord\n validates :common_name, presence: true\n validates :scientific_name, presence: true\n validates :description, presence: true\n validates :habit... | ruby | chosen |
[
{
"from": "system",
"value": "Clean up controller to use path\n"
},
{
"from": "human",
"value": "require_dependency \"synergy/application_controller\"\n\nmodule Synergy\n class PagesController < ApplicationController\n attr_accessor :node\n helper_method :node\n\n def index\n @nod... | ruby | chosen |
[
{
"from": "system",
"value": "Update the homepage for the gem\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'fixbraces/version'\n\nGem::Specification.new do |gem|\n gem.n... | ruby | chosen |
[
{
"from": "system",
"value": "Delete obsolete inst var in Diff\n"
},
{
"from": "human",
"value": "require \"llt/diff/version\"\n\nmodule LLT\n class Diff\n require 'llt/diff/parser'\n\n def initialize(gold, reviewables)\n @gold, @reviewables = parse_threaded(gold, reviewables)\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix ROM migrations for PostgreSQL\n"
},
{
"from": "human",
"value": "require 'rom/sql'\n\n::ROM::SQL.migration do\n change do\n postgres = database_type =~ /postgres/\n sqlite = database_type =~ /sqlite/\n \n run 'CREATE EXTENSION pgcrypto;' if postgr... | ruby | chosen |
[
{
"from": "system",
"value": "Make 'rake' default to spec and features.\n"
},
{
"from": "human",
"value": "require 'rake/clean'\n\n# common pattern cleanup\nCLEAN.include('tmp')\n"
},
{
"from": "gpt",
"value": "require 'rake/clean'\n\n# common pattern cleanup\nCLEAN.include('tmp')\n\... | ruby | chosen |
[
{
"from": "system",
"value": "Increase version from 0.0.1.4 to 0.0.1.5\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nGem::Specification.new do |s|\n s.name = 'telemetry'\n s.version = '0.0.1.4'\n s.summary = 'In-process telemetry based on observers'\n s.description = ' '\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Verify if Rails is defined\n"
},
{
"from": "human",
"value": "require \"seche/version\"\n\nmodule Seche\n module Rails\n class Engine < ::Rails::Engine\n end\n end\nend\n"
},
{
"from": "gpt",
"value": "require \"seche/version\"\n\nmodule Seche\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Update url and remove deprecated appcast.\n\nAdd new Numi official download host comment.\n"
},
{
"from": "human",
"value": "cask :v1 => 'numi' do\n version :latest\n sha256 :no_check\n\n url 'http://numi.io/static/files/Numi.zip'\n appcast 'http://numi.io/updat... | ruby | chosen |
[
{
"from": "system",
"value": "Fix `url` stanza comment for qTox.\n"
},
{
"from": "human",
"value": "cask 'qtox' do\n version '1.4.1.1'\n sha256 'e0dd8ecab2dc39bba1e6f34e44927e7bee9ca0f55f4c433f16079d4ba5cf4ab8'\n \n # https://github.com/tux3/qTox/ was verified as official when first introduc... | ruby | chosen |
[
{
"from": "system",
"value": "Change dependency version syntax for Rails gem.\nThis will enable update to newer Rails 4 versions.\nStill requires version 4.1.6 as minimum version.\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\... | ruby | chosen |
[
{
"from": "system",
"value": "Add static files to `assets.precompile`\n\nThis avoids errors when gem is used with sprockets-rails >= 3\n"
},
{
"from": "human",
"value": "module GovukTemplate\n class Engine < ::Rails::Engine\n initializer \"govuk_template.assets.precompile\" do |app|\n a... | ruby | chosen |
[
{
"from": "system",
"value": "Add a safe file name method\n"
},
{
"from": "human",
"value": "class AssetFile < ActiveRecord::Base\n attr_protected :id\n \n belongs_to :account\n \n scope :with_query, lambda { |s| where('name LIKE ? OR file_name LIKE ?', \"%#{s}%\", \"%#{s}%\") }\n \n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Expand list of available countries\n"
},
{
"from": "human",
"value": "class Restaurant\n COUNTRIES = %w(US CA MX)\n\n include Mongoid::Document\n include Mongoid::Timestamps\n include Mongoid::Pagination\n\n field :restaurant_id, type: Integer\n field :name\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Use other Gmail emails if primary there is no primary\n"
},
{
"from": "human",
"value": "require 'gdata'\n\nclass Contacts\n class Gmail < Base\n \n CONTACTS_SCOPE = 'http://www.google.com/m8/feeds/'\n CONTACTS_FEED = CONTACTS_SCOPE + 'contacts/default/ful... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.