conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Revert \"change the offset of the Mongoid time back to 0700\"\n\nThis reverts commit 748ae6f6f1ec2912f46e71405049248b26485515.\n"
},
{
"from": "human",
"value": "module Notifications\n class Activity < Mustache::Railstache\n\n def unread\n self[:activity].c... | ruby | chosen |
[
{
"from": "system",
"value": "Add latest issue to gh-issue\n"
},
{
"from": "human",
"value": "class GitHub\n include Cinch::Plugin\n\n match /ghissue (.+) (.+)/, method: :ghissue\n match /ghpull (.+) (.+)/, method: :ghissue\n\n def ghissue(m, repo, issuenum)\n issuenum = issuenum.to_i\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow CORS from xip.io and CloudFront host\n"
},
{
"from": "human",
"value": "Rails.application.config.middleware.use Rack::Cors do\n allow do\n origins 'localhost:8181', 'bibliaolvaso.dev', 'bibliaolvaso.hu'\n resource '*', methods: :any, max_age: 3600\n en... | ruby | chosen |
[
{
"from": "system",
"value": "Remove history_settings which does not have a template.\n"
},
{
"from": "human",
"value": "node.default['bash_it'] ={\n 'enabled_plugins' => {\n 'aliases' => %w[general],\n 'completion' => %w[defaults git],\n 'plugins' => %w[ssh]\n },\n 'custom_plu... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"Install rar and unrar\" (multiverse should be optional)\n\nThis reverts commit dd31e5575fc173d476bec7e9fe65233014e0afd8.\n\nConflicts:\n\n\tattributes/default.rb\n"
},
{
"from": "human",
"value": "# packages to install\ndefault.admin_essentials.packages = %... | ruby | chosen |
[
{
"from": "system",
"value": "Update Seed. Need a label_name now\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:se... | ruby | chosen |
[
{
"from": "system",
"value": "Switch back to old VERSION= syntax.\n\nThis makes it documentable, and it helps to enforce best practices.\n"
},
{
"from": "human",
"value": "# lib/frecon/base/variables.rb\n#\n# Copyright (C) 2014 Christopher Cooper, Sam Craig, Tiger Huang, Vincent Mai, Sam Mercier... | ruby | chosen |
[
{
"from": "human",
"value": "Add experimental Generic & Strict Types\nStrictType is basically just a wrapper for TypeChecker\nGenericType dynamically adjusts it's definition of shared class/modules until it finds a common ancestor that is not one that is common to basically all (e.g. Object, Kernel)\n------... | ruby | chosen |
[
{
"from": "system",
"value": "Fix notify parameter to post API\n"
},
{
"from": "human",
"value": "require 'java'\n\nimport 'org.apache.commons.httpclient.HttpClient'\nimport 'org.apache.commons.httpclient.methods.PostMethod'\n\nmodule HipChat\n module Publisher\n class API\n attr_reader... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the keyword \"end\", fixed grammar\n"
},
{
"from": "human",
"value": "module Syoboemon\n\tmodule Parser\n\t\tclass Base\n\t\t\tinclude HappyMapper\n\n\t\t\tdef initialize(target_tag_name=\"\", elements={})\n\t\t\t\tconfigure_target_tag(target_tag_name) unless... | ruby | chosen |
[
{
"from": "system",
"value": "Use TLSv1 instead of default SSLv3 for vagrantcloud API server\n"
},
{
"from": "human",
"value": "module VagrantCloud\n\n class Account\n\n attr_accessor :username\n attr_accessor :access_token\n\n def initialize(username, access_token)\n @username = ... | ruby | chosen |
[
{
"from": "system",
"value": "Use autoloading in Railtie so that framework loading isn't triggered by will_paginate\n"
},
{
"from": "human",
"value": "require 'will_paginate'\nrequire 'will_paginate/collection'\n\nmodule WillPaginate\n class Railtie < Rails::Railtie\n initializer \"will_pagi... | ruby | chosen |
[
{
"from": "system",
"value": "Use env instead of request\n"
},
{
"from": "human",
"value": "require \"bundler/setup\"\nENV[\"RACK_ENV\"] ||= \"development\"\nBundler.require(:default, ENV[\"RACK_ENV\"].to_sym)\nDotenv.load\n\nrequire \"./hook_delivery\"\n\nconfigure do\n MongoMapper.setup({'pro... | ruby | chosen |
[
{
"from": "system",
"value": "Comment out Rails 4.2-only line, since we want to support 4.1 too\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... | ruby | chosen |
[
{
"from": "system",
"value": "Add spec for using a class allocated with Class.allocate\n"
},
{
"from": "human",
"value": "require File.expand_path('../../../spec_helper', __FILE__)\n\ndescribe \"Class#allocate\" do\n it \"returns an instance of self\" do\n klass = Class.new\n klass.alloca... | ruby | chosen |
[
{
"from": "system",
"value": "Remove modified_files delegator from PostCheckout::Base\n\nThis was done in error in 8ee8707, since `Hook::Base` already defines a\ndelegator for `modified_files`.\n"
},
{
"from": "human",
"value": "require 'forwardable'\n\nmodule Overcommit::Hook::PostCheckout\n #... | ruby | chosen |
[
{
"from": "system",
"value": "Fix version numbering when TEENY = 9\n"
},
{
"from": "human",
"value": "$:.unshift File.expand_path(\"../lib\", __FILE__)\nrequire \"dpl/version\"\n\nGem::Specification.new do |s|\n s.name = \"dpl\"\n s.version = DPL::VERSION\n s.au... | ruby | chosen |
[
{
"from": "human",
"value": "Add docs framework build script\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env ruby\n\nmodules = [\n \"FirebaseAuthUI\",\n \"FirebaseAnonymousAuthUI\",\n \"FirebaseDatabaseUI\",\n \"FirebaseEmailAuthUI\",\n \"FirebaseFacebookAuthUI\",\n \"FirebaseF... | ruby | chosen |
[
{
"from": "human",
"value": "Add initial work on billing time change\n"
},
{
"from": "gpt",
"value": "# Billing Time Change (same date) with chargify_api_ares gem\n\n# Sets all billing times to 6:00 AM CDT (UTC -05:00)\n# http://www.timeanddate.com/time/zones/cdt\n# http://ruby-doc.org/core-2.2.... | ruby | chosen |
[
{
"from": "system",
"value": "Add tests for ProductPicture model\n"
},
{
"from": "human",
"value": "require 'test_helper'\n\nclass ProductPictureTest < ActiveSupport::TestCase\n # test \"the truth\" do\n # assert true\n # end\nend\n"
},
{
"from": "gpt",
"value": "require 'test_h... | ruby | chosen |
[
{
"from": "system",
"value": "Add rails as a dependency\n"
},
{
"from": "human",
"value": "# coding: utf-8\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\nrequire 'chikka_rails/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "system",
"value": "Add a third sidekiq server\n"
},
{
"from": "human",
"value": "server ENV['WEB_SERVER'], user: ENV['WEB_USER'], roles: %w{app web}\nserver ENV['SIDEKIQ_SERVER'], user: ENV['SIDEKIQ_USER'], roles: %w{app}\nserver ENV['SIDEKIQ_SERVER2'], user: ENV['SIDEKIQ_USER'], role... | ruby | chosen |
[
{
"from": "system",
"value": "Enable errors raised in callbacks to be propagated\n\nClears up another deprecation warning.\n"
},
{
"from": "human",
"value": "Rails.application.configure do\n # Settings specified here will take precedence over those in config/application.rb.\n\n # The test envi... | ruby | chosen |
[
{
"from": "system",
"value": "Change the way to require the generator file\n"
},
{
"from": "human",
"value": "# CodeKit needs relative paths\ndir = File.dirname(__FILE__)\n$LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)\n\nload 'cactu/generator.rb'\n\nunless defined?(Sass)\n require 'sas... | ruby | chosen |
[
{
"from": "human",
"value": "Update facebook sdk is 4.26.1\n"
},
{
"from": "gpt",
"value": "Pod::Spec.new do |s|\n name = \"Facebook\"\n version = \"4.26.1\"\n\n s.name = \"Yumi#{name}\"\n s.version = version\n s.summary = \"Yumi#{name}.\"\n s.description = \"Yumi#{name}... | ruby | chosen |
[
{
"from": "system",
"value": "Update migration for image association\n"
},
{
"from": "human",
"value": "class CreateSpinaArticlesTable < ActiveRecord::Migration[5.0]\n def change\n create_table :spina_articles do |t|\n t.string :title\n t.string :slug\n t.text :body\n t.t... | ruby | chosen |
[
{
"from": "system",
"value": "Implement test code for the added methods\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe Sisimai do\n it 'has a version number' do\n expect(Sisimai::VERSION).not_to be nil\n end\n\n it 'does something useful' do\n expect(false).to eq(t... | ruby | chosen |
[
{
"from": "system",
"value": "Add tzinfo gem as development dependency.\n\nThis uncovers some failing specs wrt the new time zone support.\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n$:.push File.expand_path(\"../lib\", __FILE__)\nrequire \"couch_potato/version\"\n\nGem::Specif... | ruby | chosen |
[
{
"from": "system",
"value": "Use app user for git, forward SSH keys\n"
},
{
"from": "human",
"value": "# Capfile adapted from:\n# http://kris.me.uk/2011/10/28/rails-rvm-passenger-capistrano-git-apache.html\n\n# RVM bootstrap\n$:.unshift(File.expand_path('./lib', ENV['rvm_path']))\nrequire 'rvm/... | ruby | chosen |
[
{
"from": "system",
"value": "Fix opml import finish routing\n"
},
{
"from": "human",
"value": "Fastladder::Application.routes.draw do\n match 'api/config/load' => 'api/config#getter'\n match 'api/config/save' => 'api/config#setter'\n\n match 'api/:action' => 'api'\n match 'subscribe/:url' =... | ruby | chosen |
[
{
"from": "system",
"value": "Create get /users to define path for get /users/new\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n root 'items#index'\n\n get '/users/new', to: 'users#new'\n\n get '/items', to: 'items#index'\n get '/items/new', to: 'items#new', as: 'new_i... | ruby | chosen |
[
{
"from": "system",
"value": "Make rails admin optional, enable with config variable.\n"
},
{
"from": "human",
"value": "Rails.application.routes.draw do\n\n devise_for :users\n devise_for :admins\n\n scope 'api' do\n resources :uploads do\n collection do\n post :check\n e... | ruby | chosen |
[
{
"from": "system",
"value": "Add destroy route to api\n"
},
{
"from": "human",
"value": "class Api::TimeslotsController < SecuredController\n def index\n @timeslots = Timeslot.all\n end\n\n def create\n timeslot = Timeslot.new(timeslot_params)\n if timeslot.save\n render plain:... | ruby | chosen |
[
{
"from": "system",
"value": "Remove user expose from money history controller\n"
},
{
"from": "human",
"value": "class MoneyHistoryController < ApplicationController\n expose(:money_histories) { campaign.money_histories }\n expose(:user)\n expose(:campaign)\n\n def index\n end\nend\n"
},... | ruby | chosen |
[
{
"from": "system",
"value": "Edit usermovements controller to change @movement to @usermovement\n"
},
{
"from": "human",
"value": "class UsermovementsController < ApplicationController\n\n\tdef index\n\t\t@movements = Usermovement.all\n\t\t@user = current_user\n\tend\n\n\tdef new\n\t\t@movement... | ruby | chosen |
[
{
"from": "system",
"value": "Add development dependency for 'coffee-rails'\n\nFor testing coffeescript processing\n"
},
{
"from": "human",
"value": "$:.push File.expand_path(\"../lib\", __FILE__)\n\n# Maintain your gem's version:\nrequire \"emcee/version\"\n\n# Describe your gem and declare its... | ruby | chosen |
[
{
"from": "system",
"value": "Save the process where description and user_id is set\n"
},
{
"from": "human",
"value": "class AccountsController < ApplicationController\n load_and_authorize_resource :user\n before_action :set_account, only: [:show, :update, :destroy]\n\n def new\n @account ... | ruby | chosen |
[
{
"from": "system",
"value": "Allow collection decorator to receive arguments to be passed to each decorator\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass CollectionDecorator < BaseDecorator\n include Enumerable\n attr_reader :collection, :decorator\n\n delegate :e... | ruby | chosen |
[
{
"from": "system",
"value": "Add reply_to inside mail class.\n"
},
{
"from": "human",
"value": "class WoodlockWelcomeMailer < ApplicationMailer\n def omniauth_welcome(user, provider)\n case provider\n when 'google_oauth2' then provider_name = 'Google'\n when 'facebook' then provider_n... | ruby | chosen |
[
{
"from": "system",
"value": "Add 'Business' Trait to Client Factory\n"
},
{
"from": "human",
"value": "FactoryGirl.define do\n\tfactory :client_type do\n\t\tname 'Example Client Type'\n\tend\n\n\tfactory :client do\n\t\tname 'Example Client'\n\t\tclient_type_id FactoryGirl.create(:client_type).... | ruby | chosen |
[
{
"from": "system",
"value": "Fix failing spec in Ruby 1.9.2\n"
},
{
"from": "human",
"value": "require 'spec_helper'\ninclude GitStatistics\n\ndescribe Repo do\n subject(:repository) { Repo.new(dir) }\n let(:current) { Pathname.new(Dir.pwd) }\n\n context \"within the current directory\" do\n... | ruby | chosen |
[
{
"from": "system",
"value": "Check permissions for dashboards modal action\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nmodule GobiertoAdmin\n module GobiertoDashboards\n class DashboardsController < GobiertoAdmin::BaseController\n layout false\n\n def modal... | ruby | chosen |
[
{
"from": "system",
"value": "Use Discourse style secret token management\n"
},
{
"from": "human",
"value": "# Be sure to restart your server when you modify this file.\n\n# Your secret key is used for verifying the integrity of signed cookies.\n# If you change this key, all old signed cookies w... | ruby | chosen |
[
{
"from": "system",
"value": "Revert \"tidy indent and empty lines\"\n\nThis reverts commit 1d9b86167d1485dd106a6da7446a81044551e580.\n"
},
{
"from": "human",
"value": "json.array!(@clients) do |client|\n json.id client.id\n json.label client.contact.full_name\n json.value client.contact.full... | ruby | chosen |
[
{
"from": "system",
"value": "Make example more likely to work on any given day.\n"
},
{
"from": "human",
"value": "require \"rubygems\"\nrequire \"national-rail\"\nrequire \"active_support\"\n\nTime.zone = \"London\"\nplanner = NationalRail::JourneyPlanner.new\nsummary_rows = planner.plan(\n :... | ruby | chosen |
[
{
"from": "system",
"value": "Use require_relative to require examples\n"
},
{
"from": "human",
"value": "require 'end_view'\n\nDir[File.join(__FILE__, '..', 'examples', '*.rb')].each { |f| require f }\n\ndescribe EndView do\n it 'renders a simple template' do\n expect(Foo.new.render).to eq(... | ruby | chosen |
[
{
"from": "system",
"value": "Add more times in tests\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\ndescribe NewTime do\n it 'has a version number' do\n expect(NewTime::VERSION).not_to be nil\n end\n\n context \"For a fixed time and place\" do\n let(:latitude) { -33.71495... | ruby | chosen |
[
{
"from": "system",
"value": "Use valid emails in specs\n"
},
{
"from": "human",
"value": "module SpecSupport\n module Login\n def mock_logged_in_user\n controller.session[::Login::SESSION_KEY] =\n create(:person, email: 'test.user@digital.justice.gov.uk').id\n end\n\n def ... | ruby | chosen |
[
{
"from": "system",
"value": "Change icon's prefix to 'fa-' from 'icon-'\n"
},
{
"from": "human",
"value": "module FontAwesome\n def self.icons\n Dir.glob(File.expand_path('./icons/icon-*.png')).map do |path|\n md = /\\/icon-(.+)\\.png/.match(path)\n (md && md[1]) ? md[1] : nil\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Upgrade DNSCrypt Proxy to 1.0.9\n"
},
{
"from": "human",
"value": "cask :v1 => 'dnscrypt' do\n version '1.0.8'\n sha256 '47954b33b6133fbc1c8736963797cc342874c25d50a1989990a29bb8c8173d04'\n\n url \"https://github.com/alterstep/dnscrypt-osxclient/releases/download/... | ruby | chosen |
[
{
"from": "system",
"value": "Update Fontprep URL, version, license\n\nURL has changed to Github, requiring to specify version.\n"
},
{
"from": "human",
"value": "class Fontprep < Cask\n version :latest\n sha256 :no_check\n\n url 'http://fontprep.com/download'\n homepage 'http://fontprep.com... | ruby | chosen |
[
{
"from": "human",
"value": "Add Akai LPK25 Keyboard Editor Cask.\n"
},
{
"from": "gpt",
"value": "class AkaiLpk25Editor < Cask\n url 'http://6be54c364949b623a3c0-4409a68c214f3a9eeca8d0265e9266c0.r0.cf2.rackcdn.com/453/downloads/lpk25_editor_mac_00.zip'\n homepage 'http://www.akaipro.com/index... | ruby | chosen |
[
{
"from": "system",
"value": "Fix homepage to use SSL in OmniPlan 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 => 'omniplan' do\n version :latest\n sha256... | ruby | chosen |
[
{
"from": "system",
"value": "Remove the external dependency in the spec\n"
},
{
"from": "human",
"value": "require 'rufus-scheduler'\nrequire 'cloudat/dsl/schedule'\n\ndescribe Cloudat::Dsl::Schedule do\n let(:scheduler) { double(Rufus::Scheduler) }\n let(:klass) do\n Class.new do\n i... | ruby | chosen |
[
{
"from": "system",
"value": "Update podspec to remove conflicting files\n"
},
{
"from": "human",
"value": "Pod::Spec.new do |s|\n s.name = \"coinbase-official\"\n s.version = \"2.1.2\"\n s.summary = \"Integrate bitcoin into your iOS application.\"\n s.descripti... | ruby | chosen |
[
{
"from": "system",
"value": "Fix Ruby 2.1.0-preview compile detection\n"
},
{
"from": "human",
"value": "require \"mkmf\"\n\ncase RUBY_VERSION\nwhen /1\\.9\\.3/\n $CFLAGS << \" -D RUBY_193\"\n $INCFLAGS << \" -I./ruby_193/\"\nwhen /2\\.0\\.*/\n $CFLAGS << \" -D RUBY_20\"\n $INCFLAGS << ... | ruby | chosen |
[
{
"from": "system",
"value": "Add cane and cane-hashcheck 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 'mute/version'\n\nGem::Specification.new do |spec|\n spec.name ... | ruby | chosen |
[
{
"from": "human",
"value": "Add files with secrets that were filtered out.\n"
},
{
"from": "gpt",
"value": "Airbrake.configure do |config|\n config.api_key = ENV['AIRBRAKE_API_KEY'] || 'b345706d1e61712d474d722c09a04dd2'\nend\n"
}
] | ruby | chosen |
[
{
"from": "human",
"value": "Fix NewRelic not getting any data\n"
},
{
"from": "gpt",
"value": "# Ensure the agent is started using Unicorn\n# This is needed when using Unicorn and preload_app is not set to true.\n# See http://support.newrelic.com/kb/troubleshooting/unicorn-no-data\n::NewRelic::... | ruby | chosen |
[
{
"from": "system",
"value": "Remove bundler 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 'frozen_record/version'\n\nGem::Specification.new do |spec|\n s... | ruby | chosen |
[
{
"from": "system",
"value": "Change the permissions of gitlab.rb\n"
},
{
"from": "human",
"value": "#\n# Cookbook Name:: cookbook-omnibus-gitlab\n# Recipe:: default\n#\n# Copyright (C) 2014 YOUR_NAME\n#\n# All rights reserved - Do Not Redistribute\n#\n\npkg_source = node['omnibus-gitlab']['pack... | ruby | chosen |
[
{
"from": "human",
"value": "Create recipe for configuring OpenCSW repo\n"
},
{
"from": "gpt",
"value": "# Cookbook Name:: pkgutil\n# Recipe:: opencsw\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# Yo... | ruby | chosen |
[
{
"from": "system",
"value": "Add ruby version constraint to gemspec\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\n\nGem::Specification.new do |gem|\n gem.authors = [\"Hidemasa Togashi\", \"Masahiro Nakagawa\"]\n gem.email = [\"togachiro@gmail.com\", \"repeatedly@... | ruby | chosen |
[
{
"from": "system",
"value": "Use !!terminus instead of (not terminus.nil?)\n"
},
{
"from": "human",
"value": "#!/usr/bin/env ruby\r\n\r\nrequire 'rubygems'\r\nrequire 'bundler/setup'\r\n\r\nrequire_relative 'coordinate'\r\n\r\n# Class to represent a detour, which holds a start and end Coordinat... | ruby | chosen |
[
{
"from": "system",
"value": "Add minitest as a development dependency\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nlib = File.expand_path('../lib', __FILE__)\n$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)\n\nrequire 'cross_validation'\n\nGem::Specification.new do |gem... | ruby | chosen |
[
{
"from": "system",
"value": "Put initialisation on one line\n"
},
{
"from": "human",
"value": "require 'mathn'\n\nclass Mean\n def Mean.arithmetic data\n data.reduce(:+) / data.size unless data.empty?\n end\n\n def Mean.geometric data\n data.reduce(:*) ** (1 / data.size) unless data.em... | ruby | chosen |
[
{
"from": "system",
"value": "Add ability to ignore firt run\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\nclass Feed\n\n DEFAULT_ICON = CONFIG.fetch('default_icon') { 'https://upload.wikimedia.org/wikipedia/en/4/43/Feed-icon.svg' }\n DEFAULT_TITLE = CONFIG.fetch('defau... | ruby | chosen |
[
{
"from": "system",
"value": "Move more methods to Grid\n"
},
{
"from": "human",
"value": "class Grid\n\n def initialize(window, user, map, tileset, map_key, background)\n @window, @user = window, user\n @map = Map.new(window, map, tileset, map_key)\n @background = Gosu::Image.new(win... | ruby | chosen |
[
{
"from": "system",
"value": "Add runtime check for compatible Rails version\n\nSince Rails is not a runtime dependency of Haml in the gemspec, Haml\n4.1+ is not prevented from being used with Rails <3.2. The best we can\ndo is raise an error if someone tries to include Haml 4.1+ with Rails\n<3.2.\n"
},
... | ruby | chosen |
[
{
"from": "system",
"value": "Improve logger setting. Set to false to disable logging.\n"
},
{
"from": "human",
"value": "require 'msgr/version'\nrequire 'celluloid'\nrequire 'active_support'\nrequire 'active_support/core_ext/object/blank'\nrequire 'active_support/core_ext/module/delegation'\nre... | ruby | chosen |
[
{
"from": "system",
"value": "Return empty line instead of one more hash dump."
},
{
"from": "human",
"value": "require_relative 'tado_api_client'\n\nclass Tado\n\n def initialize(username, password)\n @api_client = TadoApiClient.new(username, password)\n end\n\n def current_temperature\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Remove unused grid_to_numbers ruby function\n"
},
{
"from": "human",
"value": "require 'compass'\nCompass::Frameworks.register('susy',\n :stylesheets_directory => File.join(File.dirname(__FILE__), '..', 'sass'),\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Change S3 connection persistence to false\n"
},
{
"from": "human",
"value": "AWS::S3::Base.establish_connection!(\n :access_key_id => ENV['AMAZON_ACCESS_KEY_ID'],\n :secret_access_key => ENV['AMAZON_SECRET_ACCESS_KEY']\n)"
},
{
"from": "gpt",
"valu... | ruby | chosen |
[
{
"from": "system",
"value": "Package version is increased from 0.1.2 to 0.1.3\n"
},
{
"from": "human",
"value": "Gem::Specification.new do |s|\n s.name = \"http-protocol\"\n s.version = '0.1.2'\n s.summary = \"HTTP protocol library designed to facilitate custom HTTP clients\"\n s.descriptio... | ruby | chosen |
[
{
"from": "system",
"value": "Use mount instead run. :see_no_evil:\n"
},
{
"from": "human",
"value": "Routes = Rack::Builder.new do\n use Rollbar::Middleware::Sinatra\n use Pliny::Middleware::RescueErrors, raise: Config.raise_errors?\n use Pliny::Middleware::CORS\n use Pliny::Middleware::Req... | ruby | chosen |
[
{
"from": "system",
"value": "Fix the assumption that dynamic libraries will end in '.so'.\n\n--HG--\nextra : convert_revision : svn%3A39a105f4-52d6-0310-bb1b-d6517044f2e4/trunk%401027\n"
},
{
"from": "human",
"value": "#!/usr/bin/ruby\n#\n# The Multi-User Environment Server.\n#\n# This module p... | ruby | chosen |
[
{
"from": "system",
"value": "Deploy assets to a shared/assets path on Opsworks.\n"
},
{
"from": "human",
"value": "Chef::Log.info(\"Running deploy/before_migrate.rb...\")\n \nrails_env = new_resource.environment[\"RAILS_ENV\"]\nChef::Log.info(\"Precompiling assets for #{rails_env}...\")\n \nc... | ruby | chosen |
[
{
"from": "system",
"value": "Add commented out RestClient logger for debugging."
},
{
"from": "human",
"value": "require_relative 'troo/troo'\nrequire_relative 'troo/version'\n\nmodule Troo\n InvalidAccessToken = Class.new(StandardError)\n GenericAPIError = Class.new(StandardError)\n\n Tr... | ruby | chosen |
[
{
"from": "system",
"value": "Fix name of GNU Typist\n"
},
{
"from": "human",
"value": "require 'formula'\n\nclass Gtypist <Formula\n url 'http://ftp.gnu.org/gnu/gtypist/gtypist-2.8.3.tar.bz2'\n homepage 'http://www.gnu.org/software/gtypist/'\n md5 '43be4b69315a202cccfed0efd011d66c'\n\n aka ... | ruby | chosen |
[
{
"from": "system",
"value": "Fix warning for initialized constant VERSION\n\nhttps://github.com/eventmachine/eventmachine/pull/284\n"
},
{
"from": "human",
"value": "# -*- encoding: utf-8 -*-\nrequire File.expand_path('../lib/spock/version', __FILE__)\n\nGem::Specification.new do |gem|\n gem.a... | ruby | chosen |
[
{
"from": "system",
"value": "Add specs to test error marks\n"
},
{
"from": "human",
"value": "require \"spec_helper\"\nrequire \"rack/test\"\ninclude Rack::Test::Methods\n\ndescribe Crono::Web do\n let(:app) { Crono::Web }\n\n before do\n @test_job_id = \"Perform TestJob every 5 seconds\"\... | ruby | chosen |
[
{
"from": "system",
"value": "Switch to calling read_fixture, and have the test site scan its files.\n"
},
{
"from": "human",
"value": "# frozen_string_literal: true\n\n$LOAD_PATH.unshift(__dir__)\n\nrequire 'helper'\n\ndescribe 'Page' do\n subject do\n path = File.join(test_site.source_path... | ruby | chosen |
[
{
"from": "system",
"value": "Use Ping endpoint for test_connection method\n\n - Also improve console output of response.\n"
},
{
"from": "human",
"value": "require 'dotenv'\nrequire 'net/http'\nrequire 'yaml'\nDotenv.load\n\nmodule CheckfrontAPI\n class Client\n\n API_ENDPOINT = ENV[\"API_... | ruby | chosen |
[
{
"from": "system",
"value": "Use resource_path for sort url to make sorting work with different namespaces and activeadmin resources that belong to another\n"
},
{
"from": "human",
"value": "require 'activeadmin-sortable/version'\nrequire 'activeadmin'\nrequire 'rails/engine'\n\nmodule ActiveAd... | ruby | chosen |
[
{
"from": "system",
"value": "Set I18n default locale as :ja\n"
},
{
"from": "human",
"value": "require File.expand_path('../boot', __FILE__)\n\n# Pick the frameworks you want:\nrequire \"active_model/railtie\"\nrequire \"active_job/railtie\"\nrequire \"active_record/railtie\"\nrequire \"action_... | ruby | chosen |
[
{
"from": "system",
"value": "Add descriptions to Wiki macros\n"
},
{
"from": "human",
"value": "# coding: utf-8\nRedmine::WikiFormatting::Macros.register do\n macro :bx_resource do |obj, args|\n resource_id = args.first\n resource = BxResourceNode.where(:id => resource_id).first\n if ... | ruby | chosen |
[
{
"from": "system",
"value": "Revert changes to Capistrano config\n"
},
{
"from": "human",
"value": "set :stage, :prod\n\nset :deploy_to, '/home/unipept/rails'\n\n# don't specify db as it's not needed for unipept\nserver 'unipeptweb.ugent.be', user: 'unipept', roles: %i[web app], ssh_options: {\... | ruby | chosen |
[
{
"from": "system",
"value": "Use 400 to notify that CI API is disabled\n"
},
{
"from": "human",
"value": "module Ci\n module API\n module Helpers\n UPDATE_RUNNER_EVERY = 60\n\n def check_enable_flag!\n not_found! unless current_application_settings.ci_enabled\n end\n\n... | ruby | chosen |
[
{
"from": "system",
"value": "Refactor of request/response handling to DRY things up\n"
},
{
"from": "human",
"value": "require \"net/http\"\n\nmodule Gazette\n class Client\n\n attr_reader :username\n attr_reader :password\n \n # Build a new client with the supplied username and op... | ruby | chosen |
[
{
"from": "system",
"value": "Revert PFTrack residual computation on import\n"
},
{
"from": "human",
"value": "class Tracksperanto::Import::PFTrack < Tracksperanto::Import::Base\n def self.human_name\n \"PFTrack .2dt file\"\n end\n \n def self.distinct_file_ext\n \".2dt\"\n end\n \n ... | ruby | chosen |
[
{
"from": "system",
"value": "Move require of kaminari/cells into ActionView load hook\n\nPreviously when eager loading a rails application using zeitwerk, the\nKaminari::Helpers::CellsHelper module was included before it was defined\nby the load hook.\n"
},
{
"from": "human",
"value": "require ... | ruby | chosen |
[
{
"from": "system",
"value": "Add support for Rails <3 for list_link_helpers.rb\n"
},
{
"from": "human",
"value": "# Register helpers for Rails < 3\nrequire File.join(File.dirname(__FILE__), *%w[.. lib i18n_rails_helpers])\nrequire File.join(File.dirname(__FILE__), *%w[.. lib contextual_link_hel... | ruby | chosen |
[
{
"from": "system",
"value": "Use the newly added full_b_path method on grit diff\n"
},
{
"from": "human",
"value": "require 'rubocop'\nrequire 'pry'\n\nmodule Pronto\n class Rubocop\n def initialize\n @cli = ::Rubocop::CLI.new\n end\n\n def run(diffs)\n return [] unless diff... | ruby | chosen |
[
{
"from": "system",
"value": "Include .png file types in webpack precompilation task\n"
},
{
"from": "human",
"value": "# lib/tasks/assets.rake\n# The webpack task must run before assets:environment task.\n# Otherwise Sprockets cannot find the files that webpack produces.\nRake::Task['assets:pre... | ruby | chosen |
[
{
"from": "system",
"value": "Test all filtered files at once\n"
},
{
"from": "human",
"value": "require 'test/unit'\n\n\nclass TestFilter < Test::Unit::TestCase\n # Helpers\n def file_content(file, directory)\n path = File.join('test', directory, file)\n File.new(path).read\n end\n\n ... | ruby | chosen |
[
{
"from": "system",
"value": "Add newline support for IRC\n"
},
{
"from": "human",
"value": "class Bot::Adapter::Irc::Message < Bot::Core::Message\n attr_accessor :adapter\n attr_accessor :sender\n attr_accessor :real_name\n attr_accessor :hostname\n attr_accessor :type\n attr_accessor :ch... | ruby | chosen |
[
{
"from": "system",
"value": "Update LLVM to 3.5.0 (Trusty only)\n"
},
{
"from": "human",
"value": "default['clang']['version'] = '3.4.2'\n\ndefault['clang']['download_url'] = \"http://llvm.org/releases/#{node['clang']['version']}/clang+llvm-#{node['clang']['version']}-x86_64-linux-gnu-ub... | ruby | chosen |
[
{
"from": "system",
"value": "Add function to scrape NJTransit site for train info\n"
},
{
"from": "human",
"value": "require 'rubygems'\nrequire 'sinatra'\n\nget '/' do\n\terb :'index.html'\nend\n"
},
{
"from": "gpt",
"value": "require 'rubygems'\nrequire 'sinatra'\nrequire 'open-ur... | ruby | chosen |
[
{
"from": "system",
"value": "Change authenticate_with call to InvisionBridge\n"
},
{
"from": "human",
"value": "class UserSession < Authlogic::Session::Base\n authenticate_with InvisionUser\n last_request_at_threshold 1.minute\n params_key 'api_key'\nend"
},
{
"from": "gpt",
"val... | ruby | chosen |
[
{
"from": "system",
"value": "MAke sure eth0 and eth1 are properly configured\n"
},
{
"from": "human",
"value": "require 'spec_helper'\n\n# Tests to validate network and interfaces are properly configured \n\n# Make sure we cang ping out etc. \ndescribe host('google.com') do\n\tit { should be_re... | ruby | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.