diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/spec/functional/fc108_spec.rb b/spec/functional/fc108_spec.rb
index abc1234..def5678 100644
--- a/spec/functional/fc108_spec.rb
+++ b/spec/functional/fc108_spec.rb
@@ -30,4 +30,14 @@ EOF
it { is_expected.to_not violate_rule }
end
+
+ context "with a cookbook with a custom resource where a prop... | Add functional spec for a :name symbol
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/app/mailers/project_notification_mailer.rb b/app/mailers/project_notification_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/project_notification_mailer.rb
+++ b/app/mailers/project_notification_mailer.rb
@@ -0,0 +1,26 @@+class ProjectNotificationMailer < ApplicationMailer
+ attr_reader :projec... | Add mailer for sending reminding's notifications
|
diff --git a/spec/support/email_helpers.rb b/spec/support/email_helpers.rb
index abc1234..def5678 100644
--- a/spec/support/email_helpers.rb
+++ b/spec/support/email_helpers.rb
@@ -7,9 +7,13 @@ end
end
-def receive_incoming_mail(email_name, email_to, email_from = 'geraldinequango@localhost')
- email_name = file_f... | Allow receive_incoming_mail to receive a String
You can now send a string rather than a filename to the
receive_incoming_mail spec helper.
For example:
spam_email = <<-EOF
From: EMAIL_FROM
To: FOI Person <EMAIL_TO>
Subject: Test Email
Plz buy my spam
EOF
receive_incoming_mail(spam_email... |
diff --git a/tzinfo.gemspec b/tzinfo.gemspec
index abc1234..def5678 100644
--- a/tzinfo.gemspec
+++ b/tzinfo.gemspec
@@ -14,4 +14,27 @@ s.require_path = 'lib'
s.extra_rdoc_files = ['README', 'CHANGES', 'LICENSE']
s.required_ruby_version = '>= 1.8.6'
+
+ s.post_install_message = <<END
+
+TZInfo Timezone Data ha... | Add a post_install_message to the gem to inform users that the Ruby data modules have been moved.
|
diff --git a/app/controllers/rpt/tournament_reports_controller.rb b/app/controllers/rpt/tournament_reports_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/rpt/tournament_reports_controller.rb
+++ b/app/controllers/rpt/tournament_reports_controller.rb
@@ -7,7 +7,7 @@ @tournament = Tournament.yr(@ye... | Order players in tournament reports by rank
|
diff --git a/app/helpers/provider_configuration_manager_helper.rb b/app/helpers/provider_configuration_manager_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/provider_configuration_manager_helper.rb
+++ b/app/helpers/provider_configuration_manager_helper.rb
@@ -13,8 +13,7 @@ def textual_hostname
{:lab... | Fix rubocop warnings in ProviderConfigurationManagerHelper
|
diff --git a/lib/drug-bot/plugins/reddit.rb b/lib/drug-bot/plugins/reddit.rb
index abc1234..def5678 100644
--- a/lib/drug-bot/plugins/reddit.rb
+++ b/lib/drug-bot/plugins/reddit.rb
@@ -21,6 +21,7 @@ def call(connection, message)
if message[:command] == "JOIN" && message[:nick] == connection.options[:nick]
... | Move last update before request
|
diff --git a/lib/facebooker/models/album.rb b/lib/facebooker/models/album.rb
index abc1234..def5678 100644
--- a/lib/facebooker/models/album.rb
+++ b/lib/facebooker/models/album.rb
@@ -5,7 +5,7 @@ class Album
include Model
attr_accessor :aid, :cover_pid, :owner, :name, :created,
- :modified... | Add :visible attr_accessor to Facebooker:Album model
|
diff --git a/lib/facter/java_patch_level.rb b/lib/facter/java_patch_level.rb
index abc1234..def5678 100644
--- a/lib/facter/java_patch_level.rb
+++ b/lib/facter/java_patch_level.rb
@@ -14,7 +14,7 @@ setcode do
java_version = Facter.value(:java_version)
if java_version.nil?
- "NOT_INSTALLED"
+ "JAV... | Change to more specific message about java |
diff --git a/lib/bundler_help.rb b/lib/bundler_help.rb
index abc1234..def5678 100644
--- a/lib/bundler_help.rb
+++ b/lib/bundler_help.rb
@@ -4,7 +4,7 @@ paths = [File.expand_path('.'), File.expand_path('..')]
paths.each do |path|
path_arr = path.split(File::SEPARATOR).map {|x| x=='' ? File::SEPARATOR : ... | Allow other engines to be checked out in parallel with stash_engine as well as in subdirectories
|
diff --git a/core/process/times_spec.rb b/core/process/times_spec.rb
index abc1234..def5678 100644
--- a/core/process/times_spec.rb
+++ b/core/process/times_spec.rb
@@ -25,7 +25,7 @@ skip "getrusage is not supported on this environment"
end
- found = (max * 10).times.find do
+ found =... | Increase the number of Process.times attempts
CI of 5806c54447439f2ba22892e4045e78dd80f96f0c did not succeed
https://travis-ci.org/github/ruby/ruby/jobs/668072714
|
diff --git a/descendants_tracker.gemspec b/descendants_tracker.gemspec
index abc1234..def5678 100644
--- a/descendants_tracker.gemspec
+++ b/descendants_tracker.gemspec
@@ -16,7 +16,7 @@ gem.test_files = `git ls-files -- spec/unit`.split($/)
gem.extra_rdoc_files = %w[LICENSE README.md TODO]
- gem.add_deve... | Upgrade gem dependencies in gemspec
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -22,5 +22,12 @@
# Do not swallow errors in after_commit/after_rollback callbacks.
config.api_only = false
+
+ config.action_dispatch.default_headers = {
+ ... | Add CORS headers: use ENV['ACCESS_CONTROL_ALLOW_ORIGIN']
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -6,6 +6,24 @@ require 'rack/gridfs'
Bundler.require(:default, Rails.env) if defined?(Bundler)
+
+# Allow datajam_* engines to override Datajam core classes
+require 'act... | Allow datajam_* engines to override Datajam core classes |
diff --git a/Formula/git.rb b/Formula/git.rb
index abc1234..def5678 100644
--- a/Formula/git.rb
+++ b/Formula/git.rb
@@ -15,7 +15,7 @@ ENV['NO_FINK']='1'
ENV['NO_DARWIN_PORTS']='1'
- system "./configure --prefix='#{prefix}' --disable-debug"
+ system "./configure --prefix=#{prefix}"
system "make in... | Fix some "GCC cannot create executables"
This regards Issue Homebrew/homebrew#30.
Turns out -march=native isn't supported by Apple's GCC, but while investigating it I found they'd back ported the -march=core2 option, so we win anyway.
Logic reverted to how it was yesterday.
I moved the gcc options stuff back to bre... |
diff --git a/Formula/kpt.rb b/Formula/kpt.rb
index abc1234..def5678 100644
--- a/Formula/kpt.rb
+++ b/Formula/kpt.rb
@@ -15,8 +15,8 @@ class Kpt < Formula
desc "Toolkit to manage,and apply Kubernetes Resource config data files"
homepage "https://googlecontainertools.github.io/kpt"
- url "https://github.com/Googl... | Update homebrew version to v0.15.0
|
diff --git a/lib/naifa/config.rb b/lib/naifa/config.rb
index abc1234..def5678 100644
--- a/lib/naifa/config.rb
+++ b/lib/naifa/config.rb
@@ -13,7 +13,7 @@ def self.settings
@settings ||= begin
loaded_settings = YAML.load(File.read('.naifa')).with_indifferent_access if File.exists?('.naifa')
- ... | Delete version from the settings to avoid getting a version command.
|
diff --git a/lib/plover/files.rb b/lib/plover/files.rb
index abc1234..def5678 100644
--- a/lib/plover/files.rb
+++ b/lib/plover/files.rb
@@ -11,7 +11,11 @@ def by_role(role)
@yaml_hash.select {|server| server[:role] == role}
end
-
+
+ def by_roles(*roles)
+ @yaml_hash.select {|server| roles.in... | Add by_roles for multirole finding.
|
diff --git a/spec/features/import_csv_data_spec.rb b/spec/features/import_csv_data_spec.rb
index abc1234..def5678 100644
--- a/spec/features/import_csv_data_spec.rb
+++ b/spec/features/import_csv_data_spec.rb
@@ -12,6 +12,6 @@
it "can import csv data" do
visit display_csv_user_competition_import_results_path(U... | Fix import feature spec (broken due to text search)
|
diff --git a/spec/support/concerns/content_type.rb b/spec/support/concerns/content_type.rb
index abc1234..def5678 100644
--- a/spec/support/concerns/content_type.rb
+++ b/spec/support/concerns/content_type.rb
@@ -15,6 +15,6 @@ end
it '#respond_to?' do
- expect(build(klass)).to respond_to(:column)
+ expect(... | Add more respond_to checks for the content type shared examples.
|
diff --git a/test/integration/test_listing_scenarios.rb b/test/integration/test_listing_scenarios.rb
index abc1234..def5678 100644
--- a/test/integration/test_listing_scenarios.rb
+++ b/test/integration/test_listing_scenarios.rb
@@ -30,6 +30,7 @@ expected_output << "1. Eat tiger meat\n"
expected_output << ... | Fix final highline errors printed in test output.
|
diff --git a/spec/commands/remove_spec.rb b/spec/commands/remove_spec.rb
index abc1234..def5678 100644
--- a/spec/commands/remove_spec.rb
+++ b/spec/commands/remove_spec.rb
@@ -0,0 +1,40 @@+# frozen_string_literal: true
+
+RSpec.describe "bundle remove", :focus do
+ context "remove a specific gem from gemfile when gem... | Add specs for remove command
|
diff --git a/spec/defines/archive_spec.rb b/spec/defines/archive_spec.rb
index abc1234..def5678 100644
--- a/spec/defines/archive_spec.rb
+++ b/spec/defines/archive_spec.rb
@@ -10,7 +10,7 @@ end
context 'without parameters' do
- it { expect { is_expected.to compile.with_all_deps }.to raise_error(/... | Fix unit tests on ruby 1.8.7
|
diff --git a/spec/sorted_pipeline_spec.rb b/spec/sorted_pipeline_spec.rb
index abc1234..def5678 100644
--- a/spec/sorted_pipeline_spec.rb
+++ b/spec/sorted_pipeline_spec.rb
@@ -15,10 +15,9 @@ end
it "uses sorted input files for #output_files" do
- # only 2 files in this test. Return 1 so the
- # first comp... | Fix test failure caused by JRuby's different handling of sort
|
diff --git a/lib/benchmark/memory.rb b/lib/benchmark/memory.rb
index abc1234..def5678 100644
--- a/lib/benchmark/memory.rb
+++ b/lib/benchmark/memory.rb
@@ -1,5 +1,4 @@ require "benchmark/memory/errors"
-require "benchmark/memory/helpers"
require "benchmark/memory/job"
require "benchmark/memory/version"
@@ -13,7 +1... | Remove an unnecessary require and fix a typo
|
diff --git a/lib/capistrano/setup.rb b/lib/capistrano/setup.rb
index abc1234..def5678 100644
--- a/lib/capistrano/setup.rb
+++ b/lib/capistrano/setup.rb
@@ -1,10 +1,15 @@ include Capistrano::DSL
-load 'capistrano/defaults.rb'
+namespace :load do
+ task :defaults do
+ load 'capistrano/defaults.rb'
+ load 'confi... | Add a task to load defaults
Now gems can implement a 'load:defaults' task in order to set any
defaults that may rely on other varibles set in stage configuration.
namespace :load do
task :defaults do
set :my_file, release_path.join('my_file')
end
end
|
diff --git a/lib/rbNFA.rb b/lib/rbNFA.rb
index abc1234..def5678 100644
--- a/lib/rbNFA.rb
+++ b/lib/rbNFA.rb
@@ -51,8 +51,22 @@ end
end
+ class ZeroOrOneToken
+ def initialize
+ raise "Use as class constant"
+ end
+
+ def self.cover(char)
+ return char == "?"
+ end
+
+ def self.create... | Add implementation for zero or one token in lexer
|
diff --git a/.test.rb b/.test.rb
index abc1234..def5678 100644
--- a/.test.rb
+++ b/.test.rb
@@ -1,8 +1,9 @@-Test.run(:common) do |run|
+Test.run(:default) do |run|
run.files << 'test/*_case.rb'
end
Test.run(:cov) do |run|
+ run.files << 'test/*_case.rb'
SimpleCov.start do |cov|
cov.coverage_dir = 'log/... | Use default rather than common. [admin]
|
diff --git a/rucs.rb b/rucs.rb
index abc1234..def5678 100644
--- a/rucs.rb
+++ b/rucs.rb
@@ -0,0 +1,8 @@+#!/usr/bin/ruby
+
+# The URL's to download the customer data.
+DATA = [];
+
+(0..9).each do |termination|
+ DATA.push("http://www.set.gov.py/portal/PARAGUAY-SET/detail?folder-id=repository:collaboration:/sites/PARA... | Add the base URL to download data
|
diff --git a/lib/bluster.rb b/lib/bluster.rb
index abc1234..def5678 100644
--- a/lib/bluster.rb
+++ b/lib/bluster.rb
@@ -7,7 +7,6 @@
module Bluster
def self.create_cluster(name, listener, options = {})
- config = Bluster::ClusterConfig.create(options)
- Ordasity::Cluster.new(name, listener, config)
+ Orda... | Remove superfluous variable in Bluster.create_cluster |
diff --git a/lib/chamber.rb b/lib/chamber.rb
index abc1234..def5678 100644
--- a/lib/chamber.rb
+++ b/lib/chamber.rb
@@ -3,8 +3,6 @@ require 'chamber/rails'
module Chamber
- extend self
-
def load(options = {})
self.instance = Instance.new(options)
end
@@ -38,4 +36,12 @@ def respond_to_missing?(name, ... | Style: Convert 'extend self' to 'module_function'
--------------------------------------------------------------------------------
Change-Id: I706c404fae374cd39acf66131b099dd1ebf91296
Signed-off-by: Jeff Felchner <8a84c204e2d4c387d61d20f7892a2bbbf0bc8ae8@thekompanee.com>
|
diff --git a/recipes/nginx.rb b/recipes/nginx.rb
index abc1234..def5678 100644
--- a/recipes/nginx.rb
+++ b/recipes/nginx.rb
@@ -1,3 +1,5 @@+# Encoding: utf-8
+
# Cookbook Name:: roundcube
# Recipe:: nginx
#
| Add encoding header back CHEF-3304 - use modification of config.rb instead as workaround.
|
diff --git a/lib/solidus.rb b/lib/solidus.rb
index abc1234..def5678 100644
--- a/lib/solidus.rb
+++ b/lib/solidus.rb
@@ -7,8 +7,8 @@ begin
require 'protected_attributes'
puts "*" * 75
- puts "[FATAL] Spree does not work with the protected_attributes gem installed!"
- puts "You MUST remove this gem from your Gem... | Change a reference from Spree to Solidus
|
diff --git a/test/unit/callbacks_test.rb b/test/unit/callbacks_test.rb
index abc1234..def5678 100644
--- a/test/unit/callbacks_test.rb
+++ b/test/unit/callbacks_test.rb
@@ -5,7 +5,15 @@ self.table_name = 'issues'
string :description
- %w(before_validation after_validation after_save after_create after_upd... | Test the before_save callback, for completeness
|
diff --git a/lib/multiple_man/cli.rb b/lib/multiple_man/cli.rb
index abc1234..def5678 100644
--- a/lib/multiple_man/cli.rb
+++ b/lib/multiple_man/cli.rb
@@ -17,7 +17,7 @@
def set_opts
on('--seed', 'listen to the seeding queue') do
- options[:mode] == :seed
+ options[:mode] = :seed
end
... | Fix seeding mode in CLI
|
diff --git a/lib/poms/api/request.rb b/lib/poms/api/request.rb
index abc1234..def5678 100644
--- a/lib/poms/api/request.rb
+++ b/lib/poms/api/request.rb
@@ -1,4 +1,6 @@ require 'poms/api/auth'
+require 'open-uri'
+require 'addressable/uri'
module Poms
module Api
@@ -9,13 +11,12 @@ # URI to be called and the... | Use addressable uri object in Poms::Api::Request + set json accept header
|
diff --git a/lib/sensu-plugin/cli.rb b/lib/sensu-plugin/cli.rb
index abc1234..def5678 100644
--- a/lib/sensu-plugin/cli.rb
+++ b/lib/sensu-plugin/cli.rb
@@ -52,9 +52,9 @@ rescue SystemExit => e
exit e.status
rescue Exception => e
- self.new.critical "Check failed to run: #{e.message... | Use the runtime class's output methods, not the base class
|
diff --git a/lib/dm-is-read_only.rb b/lib/dm-is-read_only.rb
index abc1234..def5678 100644
--- a/lib/dm-is-read_only.rb
+++ b/lib/dm-is-read_only.rb
@@ -1,3 +1,5 @@ require 'dm-core'
require 'dm-is-read_only/is/read_only'
require 'dm-is-read_only/is/version'
+
+DataMapper::Model.append_extensions DataMapper::Is::Read... | Use DataMapper::Model.append_extension to register the plugin.
|
diff --git a/test/api/units/feedback_test.rb b/test/api/units/feedback_test.rb
index abc1234..def5678 100644
--- a/test/api/units/feedback_test.rb
+++ b/test/api/units/feedback_test.rb
@@ -10,7 +10,6 @@ end
def test_get_awaiting_feedback
- random_unitrole = UnitRole.tutors.sample
user = User.first
u... | TEST: Add new test for inbox endpoint
|
diff --git a/test/fog/xml/connection_test.rb b/test/fog/xml/connection_test.rb
index abc1234..def5678 100644
--- a/test/fog/xml/connection_test.rb
+++ b/test/fog/xml/connection_test.rb
@@ -2,7 +2,7 @@ require "fog"
# Note this is going to be part of fog-xml eventually
-class TestFogXMLConnection < Minitest::Test
+cl... | Rename testing class to fit filename
`TestFogXMLConnection` didn't really match with the file name of
`test/fog/xml/connection_test.rb` due to the namespacing and placement
of "Test"
|
diff --git a/Planet.podspec b/Planet.podspec
index abc1234..def5678 100644
--- a/Planet.podspec
+++ b/Planet.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = 'Planet'
- s.version = '0.1.0'
+ s.version = '0.2.0'
s.summary = 'A country picker'
s.description = 'A country picker view... | Update Podspec, bump version to 0.2.0
|
diff --git a/test/unit/router_bridge_test.rb b/test/unit/router_bridge_test.rb
index abc1234..def5678 100644
--- a/test/unit/router_bridge_test.rb
+++ b/test/unit/router_bridge_test.rb
@@ -4,22 +4,22 @@
class MarplesTestDouble
def initialize
- @runers = []
+ @listeners = []
end
def when(application, ... | Remove tests taht are no longer valid
|
diff --git a/test/models/inclusion_test.rb b/test/models/inclusion_test.rb
index abc1234..def5678 100644
--- a/test/models/inclusion_test.rb
+++ b/test/models/inclusion_test.rb
@@ -1,6 +1,7 @@ # Encoding: utf-8
require 'test_helper'
+# Test inclusion model
class InclusionTest < ActiveSupport::TestCase
# test "th... | Add header to inclusion model test
|
diff --git a/core/db/migrate/20100506180619_add_icon_to_taxons.rb b/core/db/migrate/20100506180619_add_icon_to_taxons.rb
index abc1234..def5678 100644
--- a/core/db/migrate/20100506180619_add_icon_to_taxons.rb
+++ b/core/db/migrate/20100506180619_add_icon_to_taxons.rb
@@ -1,11 +1,15 @@ class AddIconToTaxons < ActiveRec... | Add legacy table support ot add icon to taxons migration
|
diff --git a/init.rb b/init.rb
index abc1234..def5678 100644
--- a/init.rb
+++ b/init.rb
@@ -1,7 +1,7 @@ lib_dir = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift lib_dir unless $LOAD_PATH.include?(lib_dir)
-libraries_dir = ENV['LIBRARIES_DIR']
+libraries_dir = ENV['LIBRARIES_HOME']
unless libraries_dir.nil... | Package version set to 0.1.0.0
|
diff --git a/lib/gfspark/app.rb b/lib/gfspark/app.rb
index abc1234..def5678 100644
--- a/lib/gfspark/app.rb
+++ b/lib/gfspark/app.rb
@@ -18,8 +18,13 @@ @options = load_default_settings
try_url(args) || try_path(args) || try_default(args)
- unless @url && @service && @section && @graph
- puts "Invalid... | Improve error message on invalid arguments
|
diff --git a/lib/git_crecord.rb b/lib/git_crecord.rb
index abc1234..def5678 100644
--- a/lib/git_crecord.rb
+++ b/lib/git_crecord.rb
@@ -32,13 +32,13 @@
def self.help
puts <<EOS
-usage: git crecord [<options>]'
+usage: git crecord [<options>]
--no-untracked-files -- ignore untracked files
- --version ... | Remove wrong ' from help output
|
diff --git a/lib/yeb/command.rb b/lib/yeb/command.rb
index abc1234..def5678 100644
--- a/lib/yeb/command.rb
+++ b/lib/yeb/command.rb
@@ -26,7 +26,7 @@ parts << "cd #{cwd}"
end
- parts << command
+ parts << "exec #{command}"
combined = parts.join(" && ")
| Use exec when starting apps
|
diff --git a/app/controllers/projects/compare_controller.rb b/app/controllers/projects/compare_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/projects/compare_controller.rb
+++ b/app/controllers/projects/compare_controller.rb
@@ -14,9 +14,9 @@ compare_result = CompareService.new.execute(
c... | Fix variable order on compare page
Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
|
diff --git a/app/lib/registries/world_locations_registry.rb b/app/lib/registries/world_locations_registry.rb
index abc1234..def5678 100644
--- a/app/lib/registries/world_locations_registry.rb
+++ b/app/lib/registries/world_locations_registry.rb
@@ -43,15 +43,7 @@ end
def fetch_locations_from_worldwide_api
- ... | Revert "Use Internal Worldwide API"
|
diff --git a/ork-encryption.gemspec b/ork-encryption.gemspec
index abc1234..def5678 100644
--- a/ork-encryption.gemspec
+++ b/ork-encryption.gemspec
@@ -0,0 +1,28 @@+Gem::Specification.new do |s|
+ s.name = 'ork-encryption'
+ s.version = '0.0.1'
+ s.date = Time.now.strftime('%Y-%m-%d')
+ s.summary... | Define gem spec. Launch version 0.0.1 |
diff --git a/app/forms/gobierto_admin/gobierto_citizens_charters/charter_form.rb b/app/forms/gobierto_admin/gobierto_citizens_charters/charter_form.rb
index abc1234..def5678 100644
--- a/app/forms/gobierto_admin/gobierto_citizens_charters/charter_form.rb
+++ b/app/forms/gobierto_admin/gobierto_citizens_charters/charter... | Return alphabetically ordered available services in charters form
|
diff --git a/lib/odf/spreadsheet.rb b/lib/odf/spreadsheet.rb
index abc1234..def5678 100644
--- a/lib/odf/spreadsheet.rb
+++ b/lib/odf/spreadsheet.rb
@@ -16,8 +16,7 @@ end
def content
- xml = Builder::XmlMarkup.new
- xml.table:table, 'table:name' => @title do
+ Builder::XmlMarkup.new.table:tabl... | Save a line by inlining builder boilerplate
darcs-hash:20081112183332-49d33-8943f3b695daefb20c783ebfbe4b13bcff1a0ec4.gz
|
diff --git a/lib/opal/nodes/defs.rb b/lib/opal/nodes/defs.rb
index abc1234..def5678 100644
--- a/lib/opal/nodes/defs.rb
+++ b/lib/opal/nodes/defs.rb
@@ -23,6 +23,10 @@ def wrap_with_definition
unshift "Opal.defs(", expr(recvr), ", '$#{mid}', "
push ")"
+
+ if expr?
+ wrap '(', ",... | Return method name from singleton method definition.
|
diff --git a/environment/kernel/beta.rb b/environment/kernel/beta.rb
index abc1234..def5678 100644
--- a/environment/kernel/beta.rb
+++ b/environment/kernel/beta.rb
@@ -20,4 +20,6 @@
load 'beta/comparable.rb'
-load 'beta/regexp.rb'+load 'beta/regexp.rb'
+
+ENV = {} # TODO: Make this not a stub. | Add empty stub for ENV.
|
diff --git a/lib/pg_search/tasks.rb b/lib/pg_search/tasks.rb
index abc1234..def5678 100644
--- a/lib/pg_search/tasks.rb
+++ b/lib/pg_search/tasks.rb
@@ -12,6 +12,7 @@ You must pass a model as an argument.
Example: rake pg_search:multisearch:rebuild[BlogPost]
MESSAGE
+
model_class = args.m... | Add empty line after guard clause. |
diff --git a/lib/rack/serverinfo.rb b/lib/rack/serverinfo.rb
index abc1234..def5678 100644
--- a/lib/rack/serverinfo.rb
+++ b/lib/rack/serverinfo.rb
@@ -1,19 +1,31 @@ require 'rack-plastic'
+require 'etc'
module Rack
class Serverinfo < Plastic
def change_nokogiri_doc(doc)
- h1 = create_node... | Create the information badge proper.
|
diff --git a/lib/snowball/roller.rb b/lib/snowball/roller.rb
index abc1234..def5678 100644
--- a/lib/snowball/roller.rb
+++ b/lib/snowball/roller.rb
@@ -1,4 +1,5 @@ require "open3"
+require 'pathname'
module Snowball
EXECUTABLE = Pathname.new(__FILE__).join("../../../", "bin/roll.js").realpath
| Add missing require for 'pathname'.
|
diff --git a/lib/tasks/package.rake b/lib/tasks/package.rake
index abc1234..def5678 100644
--- a/lib/tasks/package.rake
+++ b/lib/tasks/package.rake
@@ -1,17 +1,21 @@ require 'noosfero'
desc "Generate source tarball"
-task :package do
+task :package => 'package:clobber' do
begin
sh 'test -d .git'
rescue
... | Remove pkg/ directory on `rake clobber`
|
diff --git a/lib/tasks/signers.rake b/lib/tasks/signers.rake
index abc1234..def5678 100644
--- a/lib/tasks/signers.rake
+++ b/lib/tasks/signers.rake
@@ -4,15 +4,15 @@ # Usage: rake signers:export:icla after="#{date after which to find new ICLA signers}"
desc 'Given a date, export as CSV ICLA signatures from us... | Include default start date and chrono sort in CLA export rake tasks
|
diff --git a/lib/zebra/print_job.rb b/lib/zebra/print_job.rb
index abc1234..def5678 100644
--- a/lib/zebra/print_job.rb
+++ b/lib/zebra/print_job.rb
@@ -14,7 +14,8 @@ @printer = printer
end
- def print(label)
+ def print(label, ip)
+ @remote_ip = ip
tempfile = label.persist
send_to... | Send job to requester ip
|
diff --git a/lib/zen/package/all.rb b/lib/zen/package/all.rb
index abc1234..def5678 100644
--- a/lib/zen/package/all.rb
+++ b/lib/zen/package/all.rb
@@ -3,10 +3,10 @@ # foreign keys might not work.
require __DIR__('settings/lib/settings')
require __DIR__('users/lib/users')
+require __DIR__('dashboard/lib/dashboard')
... | Load the dashboard package after the users package
Signed-off-by: Yorick Peterse <82349cb6397bb932b4bf3561b4ea2fad50571f50@gmail.com>
|
diff --git a/rails-footnotes.gemspec b/rails-footnotes.gemspec
index abc1234..def5678 100644
--- a/rails-footnotes.gemspec
+++ b/rails-footnotes.gemspec
@@ -18,7 +18,6 @@
s.add_development_dependency "rspec-rails"
s.add_development_dependency "capybara"
- s.add_development_dependency "pry-byebug"
s.files ... | Remove pry-byebug from gemspec since it's not compatible with all rubies
|
diff --git a/spec/features/manage_volume_price_models_feature_spec.rb b/spec/features/manage_volume_price_models_feature_spec.rb
index abc1234..def5678 100644
--- a/spec/features/manage_volume_price_models_feature_spec.rb
+++ b/spec/features/manage_volume_price_models_feature_spec.rb
@@ -0,0 +1,26 @@+require 'spec_help... | Add feature spec for volume price models
|
diff --git a/desktop.gemspec b/desktop.gemspec
index abc1234..def5678 100644
--- a/desktop.gemspec
+++ b/desktop.gemspec
@@ -23,5 +23,6 @@
spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "minitest", "~> 5.3"
+ spec.add_development_dependency "pry", "~> 0.9.12"
spec.a... | Add pry as development dependency
|
diff --git a/providers/common.rb b/providers/common.rb
index abc1234..def5678 100644
--- a/providers/common.rb
+++ b/providers/common.rb
@@ -1,3 +1,5 @@+include_recipe 'git'
+
action :install do
if new_resource.create_user
| Include git recipe to install git
|
diff --git a/app/controllers/brexit_landing_page_controller.rb b/app/controllers/brexit_landing_page_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/brexit_landing_page_controller.rb
+++ b/app/controllers/brexit_landing_page_controller.rb
@@ -5,6 +5,7 @@ skip_before_action :set_expiry
before_acti... | Fix Explore header being applied to Brexit pages
We should exclude the Brexit pages from the Explore Super Menu AB Test as they need to keep the Sign In link.
|
diff --git a/app/controllers/observer_controller/site_stats.rb b/app/controllers/observer_controller/site_stats.rb
index abc1234..def5678 100644
--- a/app/controllers/observer_controller/site_stats.rb
+++ b/app/controllers/observer_controller/site_stats.rb
@@ -7,12 +7,8 @@ @site_data = SiteData.new.get_site_data
... | Replace SiteStats sql with ActiveRecord queries
|
diff --git a/test/commands/restart_test.rb b/test/commands/restart_test.rb
index abc1234..def5678 100644
--- a/test/commands/restart_test.rb
+++ b/test/commands/restart_test.rb
@@ -1,21 +1,14 @@ module Byebug
- class RestartExample
- def concat_args(a, b, c)
- a.to_s + b.to_s + c.to_s
- end
- end
-
+ #
+ ... | Migrate restart tests to use debug_code method
|
diff --git a/knife-cloudformation.gemspec b/knife-cloudformation.gemspec
index abc1234..def5678 100644
--- a/knife-cloudformation.gemspec
+++ b/knife-cloudformation.gemspec
@@ -10,11 +10,10 @@ s.description = 'Knife tooling for Cloud Formation'
s.require_path = 'lib'
s.add_dependency 'chef'
- s.add_dependency ... | Remove fog dependency. Add miasma dependency.
|
diff --git a/db/samples.rb b/db/samples.rb
index abc1234..def5678 100644
--- a/db/samples.rb
+++ b/db/samples.rb
@@ -12,4 +12,6 @@ fixtures = File.join('db/fixtures', "#{File.basename(file, '.*')}.yml")
FileUtils.touch(fixtures)
ActiveRecord::Fixtures.create_fixtures(*db_args)
+ # Now that ActiveRecord::Fixtur... | Remove build artifact after rake db:sample
|
diff --git a/AXSwift.podspec b/AXSwift.podspec
index abc1234..def5678 100644
--- a/AXSwift.podspec
+++ b/AXSwift.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = 'AXSwift'
- s.version = '0.1.0'
+ s.version = '0.1.3'
s.summary = 'Swift wrapper for Mac accessibility API... | Fix Info.plist issue in podspec, bump version
Fixes #4.
|
diff --git a/lives_resolver.rb b/lives_resolver.rb
index abc1234..def5678 100644
--- a/lives_resolver.rb
+++ b/lives_resolver.rb
@@ -0,0 +1,72 @@+require 'factual'
+require 'mongo'
+require 'pry'
+require 'csv'
+
+class LivesResolver
+
+ include Mongo
+ # Set up (or re-establish connection to) data store
+ @@mongo_c... | Refactor to decent shape, and add CSV creator (new approach to Factual calls untested)
|
diff --git a/rspec-benchmark.gemspec b/rspec-benchmark.gemspec
index abc1234..def5678 100644
--- a/rspec-benchmark.gemspec
+++ b/rspec-benchmark.gemspec
@@ -19,8 +19,8 @@
spec.required_ruby_version = '>= 2.0.0'
- #spec.add_dependency 'benchmark-trend', '~> 0.1.0'
- spec.add_dependency 'benchmark-perf', '~> 0.2.... | Change to update benchmark-perf dependency
|
diff --git a/analyze_job.rb b/analyze_job.rb
index abc1234..def5678 100644
--- a/analyze_job.rb
+++ b/analyze_job.rb
@@ -11,10 +11,11 @@ return {:exit_status => 0}
end
begin
- log_file = File.open(File.join(@base_dir,@sample_id,"logs","#{@sample_id}_full_worker.txt"),"w+")
+ log_file = File.op... | Change to call analyze_.... directly with the local option
|
diff --git a/test/integration/test_add.rb b/test/integration/test_add.rb
index abc1234..def5678 100644
--- a/test/integration/test_add.rb
+++ b/test/integration/test_add.rb
@@ -0,0 +1,28 @@+require_relative '../test_helper'
+
+class TestAddIntegration < LDAPIntegrationTestCase
+ def setup
+ super
+ @ldap.authent... | Add integration test for adding a person entry
|
diff --git a/BHCDatabase/test/models/funder_test.rb b/BHCDatabase/test/models/funder_test.rb
index abc1234..def5678 100644
--- a/BHCDatabase/test/models/funder_test.rb
+++ b/BHCDatabase/test/models/funder_test.rb
@@ -1,5 +1,6 @@ require 'test_helper'
+# FunderTest contains the model tests for a Funder
class FunderTe... | Write model tests for an a funder.
|
diff --git a/ext/leveldb_native/extconf.rb b/ext/leveldb_native/extconf.rb
index abc1234..def5678 100644
--- a/ext/leveldb_native/extconf.rb
+++ b/ext/leveldb_native/extconf.rb
@@ -1,4 +1,6 @@ require 'mkmf'
+
+dir_config('leveldb')
have_library "leveldb" or abort "Can't find leveldb library."
| Allow configuration of lib and include path through 'leveldb' name
|
diff --git a/lib/jekyll-github-metadata/ghp_metadata_generator.rb b/lib/jekyll-github-metadata/ghp_metadata_generator.rb
index abc1234..def5678 100644
--- a/lib/jekyll-github-metadata/ghp_metadata_generator.rb
+++ b/lib/jekyll-github-metadata/ghp_metadata_generator.rb
@@ -12,21 +12,7 @@ Jekyll::GitHubMetadata.l... | Refactor so rubocop is happy
|
diff --git a/lib/smartdown_adapter/previous_question_presenter.rb b/lib/smartdown_adapter/previous_question_presenter.rb
index abc1234..def5678 100644
--- a/lib/smartdown_adapter/previous_question_presenter.rb
+++ b/lib/smartdown_adapter/previous_question_presenter.rb
@@ -18,9 +18,12 @@ when Smartdown::Api::Mul... | Format dates and salaries in previous answers
Temporary fix for upcoming user research until smartdown PreviousQuestion
returns an Answer object on which we call the humanize methods
|
diff --git a/example/config.ru b/example/config.ru
index abc1234..def5678 100644
--- a/example/config.ru
+++ b/example/config.ru
@@ -1,7 +1,6 @@ require File.expand_path("../../lib/rack/jekyll", __FILE__)
# Middleware
-use Rack::ShowStatus # Nice looking 404s and other messages
use Rack::ShowExceptions # Nice... | Remove Rack::ShowStatus middleware from demo site
Testing is easier when responses are not modified.
|
diff --git a/Casks/jabref.rb b/Casks/jabref.rb
index abc1234..def5678 100644
--- a/Casks/jabref.rb
+++ b/Casks/jabref.rb
@@ -1,11 +1,25 @@ cask 'jabref' do
- version '2.10'
- sha256 'c63a49e47a43bdb026dde7fb695210d9a3f8c0e71445af7d6736c5379b23baa2'
+ version '3.2'
+ sha256 'ddde9938c3d5092ffe2ba2ecd127439de4ae304d7... | Update JabRef to version (3.2)
updated jabref (3.2)
Update JabRef (3.2) with comments modification
replace with #{version.dots_to_underscores} to convert version number
comments removed
|
diff --git a/Casks/python.rb b/Casks/python.rb
index abc1234..def5678 100644
--- a/Casks/python.rb
+++ b/Casks/python.rb
@@ -4,7 +4,7 @@
url "https://www.python.org/ftp/python/#{version}/python-#{version}-macosx10.6.pkg"
name 'Python'
- homepage 'http://www.python.org/'
+ homepage 'https://www.python.org/'
... | Fix homepage to use SSL in Python Cask
The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly
makes it more secure and saves a HTTP round-trip.
|
diff --git a/spec/output_web_spec.rb b/spec/output_web_spec.rb
index abc1234..def5678 100644
--- a/spec/output_web_spec.rb
+++ b/spec/output_web_spec.rb
@@ -1,6 +1,6 @@ describe "indexed file" do
let(:output_dir) do
- Pathname.new(File.expand_path(ENV["TMPDIR"] + "/docroot"))
+ Pathname.new(File.expand_path("#... | Fix bug in new test spec for output writing
This class requires the new config system so hasn’t been fully completed
yet—no need for the test to be breaking though.
|
diff --git a/emcee.gemspec b/emcee.gemspec
index abc1234..def5678 100644
--- a/emcee.gemspec
+++ b/emcee.gemspec
@@ -10,8 +10,8 @@ s.authors = ["Andrew Huth"]
s.email = ["andrew@huth.me"]
s.homepage = "https://github.com/ahuth/emcee"
- s.summary = "Add web components to the asset pipeline."
- ... | Make summary and description the same
|
diff --git a/Backchannel.podspec b/Backchannel.podspec
index abc1234..def5678 100644
--- a/Backchannel.podspec
+++ b/Backchannel.podspec
@@ -1,13 +1,14 @@ Pod::Spec.new do |s|
s.name = "Backchannel"
- s.version = "0.0.1"
- s.summary = "A short description of Backchannel."
+ s.version = "1... | Update Podspec in prepration for pushing it to CocoaPods trunk
|
diff --git a/lib/markdown_ruby_documentation/summary.rb b/lib/markdown_ruby_documentation/summary.rb
index abc1234..def5678 100644
--- a/lib/markdown_ruby_documentation/summary.rb
+++ b/lib/markdown_ruby_documentation/summary.rb
@@ -8,23 +8,29 @@ end
def title
- [format_class(subject), *ancestors.map { ... | Fix use of InstanceToClassMethods String match
|
diff --git a/lib/site-inspector/checks/accessibility.rb b/lib/site-inspector/checks/accessibility.rb
index abc1234..def5678 100644
--- a/lib/site-inspector/checks/accessibility.rb
+++ b/lib/site-inspector/checks/accessibility.rb
@@ -1,5 +1,6 @@ require 'json'
require 'open3'
+require 'mkmf'
class SiteInspector
c... | Check if pa11y is installed before running it.
|
diff --git a/lib/stockboy/providers/ftp/sftp_adapter.rb b/lib/stockboy/providers/ftp/sftp_adapter.rb
index abc1234..def5678 100644
--- a/lib/stockboy/providers/ftp/sftp_adapter.rb
+++ b/lib/stockboy/providers/ftp/sftp_adapter.rb
@@ -35,7 +35,7 @@ end
def modification_time(file_name)
- stat(file_name).mt... | Fix mtime returning a raw integer from SFTP adapter
|
diff --git a/lib/tasks/lead_organisation_publisher.rake b/lib/tasks/lead_organisation_publisher.rake
index abc1234..def5678 100644
--- a/lib/tasks/lead_organisation_publisher.rake
+++ b/lib/tasks/lead_organisation_publisher.rake
@@ -0,0 +1,22 @@+namespace :publishing_api do
+ desc "populate publishing api with lead or... | Add rake task to publish orgs to publishing-api
We are migrating this app to use publishing-api's V2 endpoints. This rake task
is for registering the first organisation of each policy as lead organisation in
the publishing api.
We're also taking the opportunity to republish the whole lot of policy
organisations to pu... |
diff --git a/rbx/compiler/ast/identifier.rb b/rbx/compiler/ast/identifier.rb
index abc1234..def5678 100644
--- a/rbx/compiler/ast/identifier.rb
+++ b/rbx/compiler/ast/identifier.rb
@@ -42,10 +42,10 @@ def bytecode(g)
if constant?
Rubinius::AST::ConstantAccess.new(line, name).bytecode(g)
+ ... | Check for class variable access first since otherwise it would probably always default to instance variable access.
|
diff --git a/settings.example.rb b/settings.example.rb
index abc1234..def5678 100644
--- a/settings.example.rb
+++ b/settings.example.rb
@@ -1,9 +1,4 @@ module Settings
- Player = Struct.new(
- 'Player',
- :user_id, :auth_token, :flash_code, :faction_id, :faction_name, :platform
- )
-
TYRANT_VERSION = raise ... | settings: Use a hash instead of a struct
The advantage of this scheme is that every parameter in the PLAYERS
array is given a clear label for its purpose.
The disadvantage is that there is no checking for whether someone typos
factoin_id: rather than faction_id: or similar. The next commit solves
this.
|
diff --git a/Casks/adium-beta.rb b/Casks/adium-beta.rb
index abc1234..def5678 100644
--- a/Casks/adium-beta.rb
+++ b/Casks/adium-beta.rb
@@ -3,8 +3,15 @@ sha256 'e7690718f14defa3bc08cd3949a4eab52e942abd47f7ac2ce7157ed7295658c6'
url "https://adiumx.cachefly.net/Adium_#{version}.dmg"
+ name 'Adium'
homepage 'h... | Add missing stanzas to Adium Beta |
diff --git a/lib/github_api/error/not_acceptable.rb b/lib/github_api/error/not_acceptable.rb
index abc1234..def5678 100644
--- a/lib/github_api/error/not_acceptable.rb
+++ b/lib/github_api/error/not_acceptable.rb
@@ -3,7 +3,7 @@ module Github #:nodoc
# Raised when GitHub returns the HTTP status code 406
module Er... | Change to inherit from service errors.
|
diff --git a/Casks/transporter-desktop.rb b/Casks/transporter-desktop.rb
index abc1234..def5678 100644
--- a/Casks/transporter-desktop.rb
+++ b/Casks/transporter-desktop.rb
@@ -1,11 +1,11 @@ cask :v1 => 'transporter-desktop' do
- version '3.0.21_17012'
- sha256 '48d36d53f6484364b3df93ccd054a30028b0f4fcb169c2d8475ca64... | Update Transporter Desktop version to 3.1.15
This commit updates the version number, the SHA, and the license
type to :commercial.
|
diff --git a/lib/cloud_cost_tracker/extensions/fog_model.rb b/lib/cloud_cost_tracker/extensions/fog_model.rb
index abc1234..def5678 100644
--- a/lib/cloud_cost_tracker/extensions/fog_model.rb
+++ b/lib/cloud_cost_tracker/extensions/fog_model.rb
@@ -0,0 +1,17 @@+module CloudCostTracker
+ module Extensions
+ # Adds c... | Add billing_codes extension to Fog::Model |
diff --git a/lib/atpay_rest/dashboard.rb b/lib/atpay_rest/dashboard.rb
index abc1234..def5678 100644
--- a/lib/atpay_rest/dashboard.rb
+++ b/lib/atpay_rest/dashboard.rb
@@ -20,7 +20,7 @@ end
def self.create_managed_account(session, organization_sid)
- _response = session.conn.post("/api/v4/rest/orga... | Remove unnecessary args in Dashboard.create_managed_account |
diff --git a/actionmailbox/test/unit/test_helper_test.rb b/actionmailbox/test/unit/test_helper_test.rb
index abc1234..def5678 100644
--- a/actionmailbox/test/unit/test_helper_test.rb
+++ b/actionmailbox/test/unit/test_helper_test.rb
@@ -20,21 +20,25 @@
mail = inbound_email.mail
- assert_equal 2, mail.par... | Correct the assertion argument order
|
diff --git a/lib/mill/resources/google_site_verification.rb b/lib/mill/resources/google_site_verification.rb
index abc1234..def5678 100644
--- a/lib/mill/resources/google_site_verification.rb
+++ b/lib/mill/resources/google_site_verification.rb
@@ -13,7 +13,7 @@ end
def load
- @content = "google-s... | Write correct Google site verification key.
|
diff --git a/gemnasium.gemspec b/gemnasium.gemspec
index abc1234..def5678 100644
--- a/gemnasium.gemspec
+++ b/gemnasium.gemspec
@@ -6,6 +6,7 @@ gem.description = "Safely upload your dependency files (Gemfile, Gemfile.lock, *.gemspec, package.json, npm-shrinkwrap.json) on gemnasium.com to track dependencies and get... | Add license information to gemspec
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.