diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -13,15 +13,9 @@ .build(sign_up_params)
if resource.save
- if resou... | Remove extra code we won't be using
|
diff --git a/test/integration/default/serverspec/localhost/lumenvox_spec.rb b/test/integration/default/serverspec/localhost/lumenvox_spec.rb
index abc1234..def5678 100644
--- a/test/integration/default/serverspec/localhost/lumenvox_spec.rb
+++ b/test/integration/default/serverspec/localhost/lumenvox_spec.rb
@@ -1,4 +1,... | Add some basic tests to ensure all services get started
|
diff --git a/base/db/migrate/20120403175913_create_activity_object_audiences.rb b/base/db/migrate/20120403175913_create_activity_object_audiences.rb
index abc1234..def5678 100644
--- a/base/db/migrate/20120403175913_create_activity_object_audiences.rb
+++ b/base/db/migrate/20120403175913_create_activity_object_audience... | Fix ActivityObject obsolete column info
|
diff --git a/spec/acceptance/init_task_spec.rb b/spec/acceptance/init_task_spec.rb
index abc1234..def5678 100644
--- a/spec/acceptance/init_task_spec.rb
+++ b/spec/acceptance/init_task_spec.rb
@@ -1,11 +1,29 @@ # run a test task
require 'spec_helper_acceptance'
-describe 'apt tasks' do
- describe 'update and upgrad... | Add tests for new apt actions
|
diff --git a/spec/features/admin/order_spec.rb b/spec/features/admin/order_spec.rb
index abc1234..def5678 100644
--- a/spec/features/admin/order_spec.rb
+++ b/spec/features/admin/order_spec.rb
@@ -15,8 +15,6 @@ create :check_payment, order: @order, amount: @order.amount
# ensure order shows up as completed
-... | Clean up comments and use admin_orders_path for checking current page
|
diff --git a/Library/Homebrew/test/test_sandbox.rb b/Library/Homebrew/test/test_sandbox.rb
index abc1234..def5678 100644
--- a/Library/Homebrew/test/test_sandbox.rb
+++ b/Library/Homebrew/test/test_sandbox.rb
@@ -4,25 +4,25 @@ class SandboxTest < Homebrew::TestCase
def setup
skip "sandbox not implemented" unles... | Manage sandbox test resources in setup/teardown
|
diff --git a/spec/features/tinymce_input_spec.rb b/spec/features/tinymce_input_spec.rb
index abc1234..def5678 100644
--- a/spec/features/tinymce_input_spec.rb
+++ b/spec/features/tinymce_input_spec.rb
@@ -0,0 +1,24 @@+# frozen_string_literal: true
+
+require 'rails_helper'
+
+describe 'Text area input that uses TinyMCE... | Add spec for TinyMCE integration
This spec would have caught the problem recently introduced by a TinyMCE version change and fixed in ec431bc761aadaaf3e45e13b5b9898b19e6b27da
|
diff --git a/spec/helpers/users_helper_spec.rb b/spec/helpers/users_helper_spec.rb
index abc1234..def5678 100644
--- a/spec/helpers/users_helper_spec.rb
+++ b/spec/helpers/users_helper_spec.rb
@@ -35,6 +35,7 @@
context "following them" do
before { us.stub(:following?) { true } }
+ before { us.st... | Fix for broken user helper spec
|
diff --git a/spec/requests/compression_spec.rb b/spec/requests/compression_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/compression_spec.rb
+++ b/spec/requests/compression_spec.rb
@@ -2,15 +2,19 @@
describe 'response compression', type: :request do
it 'compresses html' do
- get('/', nil, 'Accept-En... | Fix deprecation warnings in compression spec
|
diff --git a/spec/unit/recipes/default_spec.rb b/spec/unit/recipes/default_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/recipes/default_spec.rb
+++ b/spec/unit/recipes/default_spec.rb
@@ -2,7 +2,13 @@
describe 'default recipe' do
cached(:chef_run) do
- runner = ChefSpec::ServerRunner.new(platform: 'ubu... | Verify install_ark resource is correctly called
Add tests to ensure that the correct parameters are passed into the
`install_ark` resource.
Note that we've overridden the default value of attributes for our Rspec
test, in order to ensure that we're correctly passing in the attributes.
As part of #82.
Signed-off-by:... |
diff --git a/spec/unit/recipes/default_spec.rb b/spec/unit/recipes/default_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/recipes/default_spec.rb
+++ b/spec/unit/recipes/default_spec.rb
@@ -5,6 +5,14 @@ # Copyright (c) 2016 The Authors, All Rights Reserved.
require 'spec_helper'
+
+module Kernel
+ alias :old... | Fix chefspec by stubbing Kernel.require method.
|
diff --git a/spec/unit/templates/users_spec.rb b/spec/unit/templates/users_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/templates/users_spec.rb
+++ b/spec/unit/templates/users_spec.rb
@@ -0,0 +1,27 @@+require 'spec_helper'
+require 'bosh/template/renderer'
+
+RSpec.describe 'Users credentials file', template: ... | Test against Shell injection in users template
[#139274045]
|
diff --git a/spec/features/schedules/cannot_delete_a_job_when_the_schedule_is_static.rb b/spec/features/schedules/cannot_delete_a_job_when_the_schedule_is_static.rb
index abc1234..def5678 100644
--- a/spec/features/schedules/cannot_delete_a_job_when_the_schedule_is_static.rb
+++ b/spec/features/schedules/cannot_delete_... | Test that the delete button is not present when the schedule is not dynamic
|
diff --git a/spec/config/lint_data_files_spec.rb b/spec/config/lint_data_files_spec.rb
index abc1234..def5678 100644
--- a/spec/config/lint_data_files_spec.rb
+++ b/spec/config/lint_data_files_spec.rb
@@ -0,0 +1,22 @@+# frozen_string_literal: true
+
+require "rails_helper"
+require "yaml"
+require "json"
+require "path... | Add test to never break the app.json file again.
|
diff --git a/spec/dummy/spec/models/post_spec.rb b/spec/dummy/spec/models/post_spec.rb
index abc1234..def5678 100644
--- a/spec/dummy/spec/models/post_spec.rb
+++ b/spec/dummy/spec/models/post_spec.rb
@@ -6,7 +6,6 @@ subject { Post.first }
it "is true for other instances' decorators" do
- pending if Rai... | Remove pending spec on Rails 3.0
|
diff --git a/lib/ami_spec/server_spec.rb b/lib/ami_spec/server_spec.rb
index abc1234..def5678 100644
--- a/lib/ami_spec/server_spec.rb
+++ b/lib/ami_spec/server_spec.rb
@@ -2,6 +2,13 @@ # Requiring rspec first fixes that *shrug*
require 'rspec'
require 'serverspec'
+
+# I hate Monkeys
+class Specinfra::Backend::Base
... | Reset the backend connection after each run
To prevent ServerSpec from using the existing SSH connection for each
test run. The Monkey Patch can be removed once
https://github.com/mizzy/specinfra/pull/504 is merged
|
diff --git a/lib/custom_error_message.rb b/lib/custom_error_message.rb
index abc1234..def5678 100644
--- a/lib/custom_error_message.rb
+++ b/lib/custom_error_message.rb
@@ -16,7 +16,7 @@ if attr == "base"
full_messages << msg
elsif msg =~ /^\^/
- full_messages << msg.sub(... | Mark Wiens kindly suggested a neater way to strip the '^' character
|
diff --git a/lib/danthes/view_helpers.rb b/lib/danthes/view_helpers.rb
index abc1234..def5678 100644
--- a/lib/danthes/view_helpers.rb
+++ b/lib/danthes/view_helpers.rb
@@ -12,11 +12,11 @@ # Subscribe the client to the given channel. This generates
# some JavaScript calling Danthes.sign with the subscription
... | Add an option to not include <script> tag (useful when rendering in JS views)
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -13,6 +13,9 @@
$rubygems_config = YAML.load_file("config/rubygems.yml")[Rails.env].symbolize_keys
HOST = $rubygems_config[:host]
+
+# DO NOT EDIT THIS LINE D... | Add a warning not to manually edit RUBYGEMS_VERSION
|
diff --git a/config/environment.rb b/config/environment.rb
index abc1234..def5678 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -4,3 +4,5 @@ # Initialize the Rails application.
Rails.application.initialize!
ENV['HOST_PORT'] ||= ":80"
+mylog = Logger.new(STDERR)
+mylog.info("environment.rb: The Exe... | Print a message saying what the ExecJS runtime is.
|
diff --git a/acronym/acronym_test.rb b/acronym/acronym_test.rb
index abc1234..def5678 100644
--- a/acronym/acronym_test.rb
+++ b/acronym/acronym_test.rb
@@ -23,8 +23,14 @@ gem 'minitest', '>= 5.0.0'
end
- # This is some simple book-keeping to let people who are
- # giving feedback know which version of the e... | Update acronym version test comments to be more clear for user
Found that users were getting confused by the version test and it's purpose (see ticket https://github.com/exercism/xruby/issues/188). Goal is to make it clear to users that there only need to return the number that is asked. They do not need to bump the v... |
diff --git a/lib/docs/scrapers/react_native.rb b/lib/docs/scrapers/react_native.rb
index abc1234..def5678 100644
--- a/lib/docs/scrapers/react_native.rb
+++ b/lib/docs/scrapers/react_native.rb
@@ -3,7 +3,7 @@ self.name = 'React Native'
self.slug = 'react_native'
self.type = 'react'
- self.version = '0.... | Update React Native documentation (0.12.0)
|
diff --git a/lib/emony/tag_matching/matcher.rb b/lib/emony/tag_matching/matcher.rb
index abc1234..def5678 100644
--- a/lib/emony/tag_matching/matcher.rb
+++ b/lib/emony/tag_matching/matcher.rb
@@ -1,5 +1,6 @@ require 'emony/tag_matching/rules'
require 'emony/tag_matching/cache'
+require 'emony/tag_parser'
module Em... | Use TagParser to earn tag part from label (or tag)
|
diff --git a/sql/postgresql/reset_id_sequence.rb b/sql/postgresql/reset_id_sequence.rb
index abc1234..def5678 100644
--- a/sql/postgresql/reset_id_sequence.rb
+++ b/sql/postgresql/reset_id_sequence.rb
@@ -0,0 +1,25 @@+# Script to reset id sequences
+# Written specifically for elixir/phoenix, but should be applicable fo... | Add script to reset postgres id sequences
|
diff --git a/lib/lims-laboratory-app/laboratory/sample/swap_samples_resource.rb b/lib/lims-laboratory-app/laboratory/sample/swap_samples_resource.rb
index abc1234..def5678 100644
--- a/lib/lims-laboratory-app/laboratory/sample/swap_samples_resource.rb
+++ b/lib/lims-laboratory-app/laboratory/sample/swap_samples_resourc... | Swap sample resource to display correctly the parameters in the json
|
diff --git a/middleman-core/lib/middleman-more/extensions/automatic-alt-tags.rb b/middleman-core/lib/middleman-more/extensions/automatic-alt-tags.rb
index abc1234..def5678 100644
--- a/middleman-core/lib/middleman-more/extensions/automatic-alt-tags.rb
+++ b/middleman-core/lib/middleman-more/extensions/automatic-alt-tag... | Create automated alt tag addition, based on image name.
Needs documentation. |
diff --git a/db/migrate/20151216111502_add_artifacts_metadata_to_ci_build.rb b/db/migrate/20151216111502_add_artifacts_metadata_to_ci_build.rb
index abc1234..def5678 100644
--- a/db/migrate/20151216111502_add_artifacts_metadata_to_ci_build.rb
+++ b/db/migrate/20151216111502_add_artifacts_metadata_to_ci_build.rb
@@ -0,0... | Add artifacts metadata field to `ci_builds`
|
diff --git a/Formula/kdebase-runtime.rb b/Formula/kdebase-runtime.rb
index abc1234..def5678 100644
--- a/Formula/kdebase-runtime.rb
+++ b/Formula/kdebase-runtime.rb
@@ -1,9 +1,9 @@ require 'formula'
class KdebaseRuntime <Formula
- url 'ftp://ftp.kde.org/pub/kde/stable/4.4.2/src/kdebase-runtime-4.4.2.tar.bz2'
- hom... | Update KDEBase Runtime to 1.4.0 and fix homepage.
|
diff --git a/lib/heroku_backup_orchestrator/error_reporter.rb b/lib/heroku_backup_orchestrator/error_reporter.rb
index abc1234..def5678 100644
--- a/lib/heroku_backup_orchestrator/error_reporter.rb
+++ b/lib/heroku_backup_orchestrator/error_reporter.rb
@@ -15,18 +15,20 @@ end
end
- class EmailErrorReporter ... | Move Pony configuration to initializer in EmailErrorReporter class
Pony configuration would have blown up on application startup if
SendGrid not configured in config.yaml
|
diff --git a/lib/vagrant-libvirt/action/set_name_of_domain.rb b/lib/vagrant-libvirt/action/set_name_of_domain.rb
index abc1234..def5678 100644
--- a/lib/vagrant-libvirt/action/set_name_of_domain.rb
+++ b/lib/vagrant-libvirt/action/set_name_of_domain.rb
@@ -9,9 +9,10 @@ end
def call(env)
+ re... | Use random string in name of domain
|
diff --git a/lib/yard/mruby/handlers/c/source/init_handler.rb b/lib/yard/mruby/handlers/c/source/init_handler.rb
index abc1234..def5678 100644
--- a/lib/yard/mruby/handlers/c/source/init_handler.rb
+++ b/lib/yard/mruby/handlers/c/source/init_handler.rb
@@ -1,7 +1,7 @@ module YARD::MRuby::Handlers::C::Source
class In... | Fix init for mruby core
|
diff --git a/config/initializers/bookable_slots.rb b/config/initializers/bookable_slots.rb
index abc1234..def5678 100644
--- a/config/initializers/bookable_slots.rb
+++ b/config/initializers/bookable_slots.rb
@@ -2,6 +2,8 @@ EXCLUSIONS = [
Date.parse('29/05/2017'),
Date.parse('28/08/2017'),
+ Date.parse('03/10/2... | Exclude guider days from bookable slots
There is a two day guider event occurring on these newly added days so
we must ensure we display no booking availability during this time.
|
diff --git a/config/initializers/swagger_blocks.rb b/config/initializers/swagger_blocks.rb
index abc1234..def5678 100644
--- a/config/initializers/swagger_blocks.rb
+++ b/config/initializers/swagger_blocks.rb
@@ -2,6 +2,11 @@
module ApiFlashcards
include Swagger::Blocks
+ host = if ENV['RAILS_ENV'] == "production... | Add base hostname configuration for swagger initializer
|
diff --git a/minitest-stub-const.gemspec b/minitest-stub-const.gemspec
index abc1234..def5678 100644
--- a/minitest-stub-const.gemspec
+++ b/minitest-stub-const.gemspec
@@ -1,13 +1,14 @@ Gem::Specification.new do |s|
s.name = "minitest-stub-const"
- s.version = 0.1
+ s.version = 0.2
s.authors ... | Add LICENSE and README to gem
|
diff --git a/lib/email/mboxrd/message.rb b/lib/email/mboxrd/message.rb
index abc1234..def5678 100644
--- a/lib/email/mboxrd/message.rb
+++ b/lib/email/mboxrd/message.rb
@@ -21,8 +21,26 @@ @parsed ||= Mail.new(supplied_body)
end
+ def best_from
+ if parsed.from.is_a? Enumerable
+ parsed.from.... | Choose 'from' field from available headers.
Fixes #46.
If as single invalid 'from' address is given, Mail::from[0] is nil.
|
diff --git a/db/migrate/20151028235216_create_notes.rb b/db/migrate/20151028235216_create_notes.rb
index abc1234..def5678 100644
--- a/db/migrate/20151028235216_create_notes.rb
+++ b/db/migrate/20151028235216_create_notes.rb
@@ -4,7 +4,7 @@ t.string :title
t.text :body_html
t.text :body_text
- ... | Fix timestamp columns in notes.
|
diff --git a/app/helpers/photos_helper.rb b/app/helpers/photos_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/photos_helper.rb
+++ b/app/helpers/photos_helper.rb
@@ -1,55 +1,38 @@ module PhotosHelper
def crop_image_path(crop, full_size: false)
- if crop.default_photo.present?
- photo = crop.defaul... | Revert "Revert "DRY the photos helper""
This reverts commit 7f7f2cae47f3956d797456b626418e6fff49da14.
|
diff --git a/lib/bootstrap_haml_helpers/spec_view_helpers.rb b/lib/bootstrap_haml_helpers/spec_view_helpers.rb
index abc1234..def5678 100644
--- a/lib/bootstrap_haml_helpers/spec_view_helpers.rb
+++ b/lib/bootstrap_haml_helpers/spec_view_helpers.rb
@@ -0,0 +1,21 @@+module BootstrapHamlHelpers
+ module SpecViewHelpers
... | Add a library that can automatically add view helpers to view specs.
|
diff --git a/app/models/applicant_link.rb b/app/models/applicant_link.rb
index abc1234..def5678 100644
--- a/app/models/applicant_link.rb
+++ b/app/models/applicant_link.rb
@@ -3,10 +3,15 @@
embedded_in :tax_household
embedded_in :hbx_enrollment
- embedded_in :eligibility_determinations
+ embedded_in :hbx_enro... | Add insurance assistance eligibility attributes. Add HbxEnrollmentExemption as embedded parent.
|
diff --git a/lib/rabl/digestor/rails5.rb b/lib/rabl/digestor/rails5.rb
index abc1234..def5678 100644
--- a/lib/rabl/digestor/rails5.rb
+++ b/lib/rabl/digestor/rails5.rb
@@ -1,31 +1,4 @@ module Rabl
class Digestor < ActionView::Digestor
- @@digest_monitor = Mutex.new
-
- def self.digest(name:, finder:, **option... | Revert "Revert "Fix problem of usage rabl 0.13.0 with Rails 5 and active cache""
|
diff --git a/lib/rails-html-sanitizer.rb b/lib/rails-html-sanitizer.rb
index abc1234..def5678 100644
--- a/lib/rails-html-sanitizer.rb
+++ b/lib/rails-html-sanitizer.rb
@@ -34,6 +34,34 @@ def sanitizer_vendor
Rails::Html::Sanitizer
end
+
+ if method_defined?(:sanitized_allowed_tags=) ... | Move default implementation to this gem
|
diff --git a/lib/rakuten_web_service/travel/search_result.rb b/lib/rakuten_web_service/travel/search_result.rb
index abc1234..def5678 100644
--- a/lib/rakuten_web_service/travel/search_result.rb
+++ b/lib/rakuten_web_service/travel/search_result.rb
@@ -3,11 +3,6 @@ module RakutenWebService
module Travel
class S... | Remove duplicated definition of has_next_page?
|
diff --git a/lib/sinatra/activerecord.rb b/lib/sinatra/activerecord.rb
index abc1234..def5678 100644
--- a/lib/sinatra/activerecord.rb
+++ b/lib/sinatra/activerecord.rb
@@ -59,6 +59,10 @@ # re-connect if database connection dropped
ActiveRecord::Base.verify_active_connections!
end
+
+ app.a... | Clear active connections after each request
|
diff --git a/lib/stockboy/readers/csv.rb b/lib/stockboy/readers/csv.rb
index abc1234..def5678 100644
--- a/lib/stockboy/readers/csv.rb
+++ b/lib/stockboy/readers/csv.rb
@@ -5,7 +5,7 @@ module Stockboy::Readers
class CSV < Stockboy::Reader
- dsl_attrs :skip_header_rows
+ dsl_attrs :skip_header_rows, :skip_foo... | Add option for CSV skip_footer_rows
|
diff --git a/lib/vmdb/console_methods.rb b/lib/vmdb/console_methods.rb
index abc1234..def5678 100644
--- a/lib/vmdb/console_methods.rb
+++ b/lib/vmdb/console_methods.rb
@@ -12,16 +12,27 @@ ActiveRecord::Base.logger.level == 0 ? disable_console_sql_logging : enable_console_sql_logging
end
+ def with_cons... | Change simulate_queue_worker for quiet polling
|
diff --git a/test/integration/default/default_test.rb b/test/integration/default/default_test.rb
index abc1234..def5678 100644
--- a/test/integration/default/default_test.rb
+++ b/test/integration/default/default_test.rb
@@ -5,6 +5,6 @@ # The Inspec reference, with examples and extensive documentation, can be
# found ... | Update InSpec test to new exe location
|
diff --git a/config/software/berkshelf-no-depselector.rb b/config/software/berkshelf-no-depselector.rb
index abc1234..def5678 100644
--- a/config/software/berkshelf-no-depselector.rb
+++ b/config/software/berkshelf-no-depselector.rb
@@ -37,7 +37,7 @@
bundle "install" \
" --jobs #{workers}" \
- " -... | Update berks gemfile groups to match reality
Add docs
Remove guardfile / test which aren't there
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/Casks/intellij-idea-community-eap.rb b/Casks/intellij-idea-community-eap.rb
index abc1234..def5678 100644
--- a/Casks/intellij-idea-community-eap.rb
+++ b/Casks/intellij-idea-community-eap.rb
@@ -1,7 +1,7 @@ class IntellijIdeaCommunityEap < Cask
- url 'http://download.jetbrains.com/idea/ideaIC-135.863.dmg... | Upgrade IntelliJ CE EAP to version 14 (build 138.777).
The version was `135.863`.
http://confluence.jetbrains.com/display/IDEADEV/IDEA+14+EAP
http://blog.jetbrains.com/idea/2014/06/intellij-idea-14-early-preview-is-available/
|
diff --git a/plugins/cats.rb b/plugins/cats.rb
index abc1234..def5678 100644
--- a/plugins/cats.rb
+++ b/plugins/cats.rb
@@ -6,13 +6,9 @@ )
def self.on_message(message, matches)
- reddit = "http://www.reddit.com/r/cats.json"
catstreamer = "http://catstreamer.herokuapp.com/cats.json"
doc = ActiveSupp... | Remove lines of test code
|
diff --git a/app/sweepers/person_sweeper.rb b/app/sweepers/person_sweeper.rb
index abc1234..def5678 100644
--- a/app/sweepers/person_sweeper.rb
+++ b/app/sweepers/person_sweeper.rb
@@ -9,7 +9,9 @@
def expire_stream_items(record)
record.stream_items.all.each do |stream_item|
- stream_item.expire_caches
+ ... | Expire stream item caches more quickly.
This expires all stream item fragments rather than targeted ones, but
gets the user on with their task more quickly. Expiring individual
stream item caches was taking too long.
|
diff --git a/app/models/category.rb b/app/models/category.rb
index abc1234..def5678 100644
--- a/app/models/category.rb
+++ b/app/models/category.rb
@@ -31,11 +31,11 @@ scope :by_position, -> { order(position: :asc) }
def self.models_name
- [:Home, :About, :Contact]
+ [:Home, :About, :Contact, :Search]
... | Add Search option for categories
|
diff --git a/app/models/api_query.rb b/app/models/api_query.rb
index abc1234..def5678 100644
--- a/app/models/api_query.rb
+++ b/app/models/api_query.rb
@@ -16,16 +16,7 @@ # disable STI
self.inheritance_column = :_type_disabled
- def self.log!(options)
- query = options.delete(:query)
- scraper = options.... | Use keyword arguments to simplify code
|
diff --git a/app/models/interface.rb b/app/models/interface.rb
index abc1234..def5678 100644
--- a/app/models/interface.rb
+++ b/app/models/interface.rb
@@ -25,7 +25,8 @@ end
def slides
- current_sidebar_item.slides.includes(:description).ordered
+ current_sidebar_item.slides.includes(:area_dependency).
+ ... | Hide slides which have an area-dependency
Closes #1508
|
diff --git a/load_puzzle.rb b/load_puzzle.rb
index abc1234..def5678 100644
--- a/load_puzzle.rb
+++ b/load_puzzle.rb
@@ -1,6 +1,17 @@ #! /usr/bin/env ruby -I.
require 'puzloader'
+require 'grid'
+
+def debug_loader(loader)
+ puts "Texts:\n #{loader.title}\n #{loader.author}\n #{loader.copyright}"
+ puts "\nDime... | Add debugging function to show loaded values.
|
diff --git a/event_store-client-http.gemspec b/event_store-client-http.gemspec
index abc1234..def5678 100644
--- a/event_store-client-http.gemspec
+++ b/event_store-client-http.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'event_store-client-http'
- s.version = '0.1.0.0'... | Package version is increased from 0.1.0.0 to 0.1.1.0
|
diff --git a/app/mailers/protected_record_manager/change_request_mailer.rb b/app/mailers/protected_record_manager/change_request_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/protected_record_manager/change_request_mailer.rb
+++ b/app/mailers/protected_record_manager/change_request_mailer.rb
@@ -2,11 +2,10 ... | Send one email to all users (not indiv. email to each user)
|
diff --git a/lib/queri/realtime/calls.rb b/lib/queri/realtime/calls.rb
index abc1234..def5678 100644
--- a/lib/queri/realtime/calls.rb
+++ b/lib/queri/realtime/calls.rb
@@ -14,12 +14,13 @@ :queue, "Queue ",
:clid, "Caller ",
:time_call_entered_queue, "Entered ",
+... | Add missing key to Realtime::Call class
|
diff --git a/lib/rack/adapter/camping.rb b/lib/rack/adapter/camping.rb
index abc1234..def5678 100644
--- a/lib/rack/adapter/camping.rb
+++ b/lib/rack/adapter/camping.rb
@@ -9,6 +9,12 @@ env["PATH_INFO"] ||= ""
env["SCRIPT_NAME"] ||= ""
controller = @app.run(env['rack.input'], env)
+ h =... | Fix Camping redirects into Strings when they're URIs
darcs-hash:20070304022942-92d64-8ba8f4966041c11d53bfdd2fd356d2435808e914.gz
|
diff --git a/lib/radbeacon/le_scanner.rb b/lib/radbeacon/le_scanner.rb
index abc1234..def5678 100644
--- a/lib/radbeacon/le_scanner.rb
+++ b/lib/radbeacon/le_scanner.rb
@@ -7,9 +7,27 @@ @duration = duration
end
+ def scan_command
+ rout, wout = IO.pipe
+ scan_command_str = "sudo hcitool lescan... | Monitor lescan process and kill it after timeout
|
diff --git a/lib/redisse/server/redis.rb b/lib/redisse/server/redis.rb
index abc1234..def5678 100644
--- a/lib/redisse/server/redis.rb
+++ b/lib/redisse/server/redis.rb
@@ -12,7 +12,7 @@ end
def ensure_pubsub
- return if @pubsub
+ return if defined? @pubsub
@pubsub = redis.pubsub
@pub... | Remove warning "instance variable not initialized"
|
diff --git a/lib/relish/commands/push.rb b/lib/relish/commands/push.rb
index abc1234..def5678 100644
--- a/lib/relish/commands/push.rb
+++ b/lib/relish/commands/push.rb
@@ -20,10 +20,7 @@ resource = RestClient::Resource.new(url)
resource.post(tar_gz_data, :content_type => 'application/x-gzip')
... | Simplify error handling so we catch every bad response
|
diff --git a/lib/roar/rails/test_case.rb b/lib/roar/rails/test_case.rb
index abc1234..def5678 100644
--- a/lib/roar/rails/test_case.rb
+++ b/lib/roar/rails/test_case.rb
@@ -1,8 +1,4 @@-if ::ActionPack::VERSION::MAJOR == 4
- require 'test_xml/mini_test'
-else
- require 'test_xml/test_unit'
-end
+require 'minitest'
... | Make Roar::Rails::TestCase always require minitest
Signed-off-by: Alex Coles <60c6d277a8bd81de7fdde19201bf9c58a3df08f4@alexbcoles.com>
|
diff --git a/lib/ropian/meter/raritan.rb b/lib/ropian/meter/raritan.rb
index abc1234..def5678 100644
--- a/lib/ropian/meter/raritan.rb
+++ b/lib/ropian/meter/raritan.rb
@@ -0,0 +1,27 @@+module Ropian
+ module Meter
+ class Raritan
+ def inspect
+ "#<#{self.class} #{@manager.host}@#{@manager.community}>"... | Add Raritan power metering module
|
diff --git a/spec/scanny/checks/http_basic_auth_check_spec.rb b/spec/scanny/checks/http_basic_auth_check_spec.rb
index abc1234..def5678 100644
--- a/spec/scanny/checks/http_basic_auth_check_spec.rb
+++ b/spec/scanny/checks/http_basic_auth_check_spec.rb
@@ -0,0 +1,20 @@+require "spec_helper"
+
+module Scanny::Checks
+ ... | Add specs for HTTP basic auth
|
diff --git a/db/migrate/20120913135745_add_updated_at_index_to_public_body_versions.rb b/db/migrate/20120913135745_add_updated_at_index_to_public_body_versions.rb
index abc1234..def5678 100644
--- a/db/migrate/20120913135745_add_updated_at_index_to_public_body_versions.rb
+++ b/db/migrate/20120913135745_add_updated_at_... | Add index on updated_at to public body versions as this is how they are retrieved in the admin timeline view.
|
diff --git a/spec/peg_spec.rb b/spec/peg_spec.rb
index abc1234..def5678 100644
--- a/spec/peg_spec.rb
+++ b/spec/peg_spec.rb
@@ -20,4 +20,12 @@ expect(peg1 == peg2).to be true
end
end
+
+ describe 'arrays of pegs' do
+ let(:array1) {[Peg.new("red"), Peg.new("orange"), Peg.new("yellow")]}
+ let(:arr... | Add test for intersection of arrays of Pegs
|
diff --git a/lib/encapsulate_as_money.rb b/lib/encapsulate_as_money.rb
index abc1234..def5678 100644
--- a/lib/encapsulate_as_money.rb
+++ b/lib/encapsulate_as_money.rb
@@ -3,7 +3,12 @@ require 'active_support/core_ext/array/extract_options'
def Money(cents)
- cents.is_a?(String) ? cents.gsub(',', '').to_money : Mo... | Add a deprecation warning to Money(String)
|
diff --git a/lib/faraday/raise_errors.rb b/lib/faraday/raise_errors.rb
index abc1234..def5678 100644
--- a/lib/faraday/raise_errors.rb
+++ b/lib/faraday/raise_errors.rb
@@ -4,17 +4,17 @@ env[:response].on_complete do |response|
case response[:status].to_i
when 400
- raise Twitter::RateL... | Standardize format of error messages
|
diff --git a/lib/fourchette/pgbackups.rb b/lib/fourchette/pgbackups.rb
index abc1234..def5678 100644
--- a/lib/fourchette/pgbackups.rb
+++ b/lib/fourchette/pgbackups.rb
@@ -20,13 +20,13 @@ private
def ensure_pgbackups_is_present(heroku_app_name)
- unless existing_backups?
+ unless existing_backups?(heroku_... | Fix undefined method heroku_app_name issue
|
diff --git a/app/views/course/assessment/submission/submissions/_submission.json.jbuilder b/app/views/course/assessment/submission/submissions/_submission.json.jbuilder
index abc1234..def5678 100644
--- a/app/views/course/assessment/submission/submissions/_submission.json.jbuilder
+++ b/app/views/course/assessment/subm... | Return questions length as the maxStep if student have answered all questions
* Fixes a bug that navigation buttons greyed out in student view
|
diff --git a/lib/rove/vagrant_setting.rb b/lib/rove/vagrant_setting.rb
index abc1234..def5678 100644
--- a/lib/rove/vagrant_setting.rb
+++ b/lib/rove/vagrant_setting.rb
@@ -32,7 +32,7 @@ def configure(values)
@output = "" unless @config
- @output = @config.call *values
+ @output = @config.call *v... | Save calling method on nil if no config set
|
diff --git a/app/controllers/assets_controller.rb b/app/controllers/assets_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/assets_controller.rb
+++ b/app/controllers/assets_controller.rb
@@ -10,8 +10,13 @@
def create
p params
- # user = User.find(params[:user_id])
- # @asset = user.asse... | Add functionality to persist asset to the database
|
diff --git a/templates/root_controller_spec.rb b/templates/root_controller_spec.rb
index abc1234..def5678 100644
--- a/templates/root_controller_spec.rb
+++ b/templates/root_controller_spec.rb
@@ -1,6 +1,6 @@ require 'spec_helper'
-describe RootController do
+describe RootController, :type => :controller do
desc... | [FIX] Test for root controller in generated new app |
diff --git a/test/functional/test_starscope.rb b/test/functional/test_starscope.rb
index abc1234..def5678 100644
--- a/test/functional/test_starscope.rb
+++ b/test/functional/test_starscope.rb
@@ -12,22 +12,23 @@ end
def test_version
- assert `#{BASE} -v`.chomp == StarScope::VERSION
+ assert_equal StarScop... | Make test_summary actually test something
Also use better assertions, generally
|
diff --git a/Casks/join-together.rb b/Casks/join-together.rb
index abc1234..def5678 100644
--- a/Casks/join-together.rb
+++ b/Casks/join-together.rb
@@ -1,11 +1,11 @@ cask :v1 => 'join-together' do
- version '7.5.0'
- sha256 'a6661c05b73fff78e1fcfc4e474e95f732ccc996a5bbae56f390e51a414e6867'
+ version '7.5.1'
+ sha2... | Update Join Together to 7.5.1
|
diff --git a/app/models/actions/merge_diseases.rb b/app/models/actions/merge_diseases.rb
index abc1234..def5678 100644
--- a/app/models/actions/merge_diseases.rb
+++ b/app/models/actions/merge_diseases.rb
@@ -11,14 +11,30 @@ private
def execute
move_evidence_items
+ move_assertions
+ update_so... | Fix merge diseases utility to also update assertions and source suggestions
|
diff --git a/lib/vagrant/hosts/fedora.rb b/lib/vagrant/hosts/fedora.rb
index abc1234..def5678 100644
--- a/lib/vagrant/hosts/fedora.rb
+++ b/lib/vagrant/hosts/fedora.rb
@@ -23,7 +23,21 @@ def initialize(*args)
super
+ release_file = Pathname.new("/etc/redhat-release")
+
@nfs_server_bina... | Add Fedora 17+ NFS support.
|
diff --git a/test/test_browse_node_resource.rb b/test/test_browse_node_resource.rb
index abc1234..def5678 100644
--- a/test/test_browse_node_resource.rb
+++ b/test/test_browse_node_resource.rb
@@ -4,7 +4,7 @@ require "petitest/spec"
require "rapa"
-class TestItemResource < Petitest::Test
+class TestBrowseNodeResourc... | Fix wrong test class name
|
diff --git a/app/views/api/v1/statuses/_show.rabl b/app/views/api/v1/statuses/_show.rabl
index abc1234..def5678 100644
--- a/app/views/api/v1/statuses/_show.rabl
+++ b/app/views/api/v1/statuses/_show.rabl
@@ -1,4 +1,3 @@-cache
attributes :id, :created_at, :in_reply_to_id
node(:uri) { |status| TagManage... | Disable caching of statuses (maybe this will help with the weird bug)
|
diff --git a/lib/elastic_record/relation/delegation.rb b/lib/elastic_record/relation/delegation.rb
index abc1234..def5678 100644
--- a/lib/elastic_record/relation/delegation.rb
+++ b/lib/elastic_record/relation/delegation.rb
@@ -15,10 +15,10 @@ end
def method_missing(method, *args, &block)
- ... | Choose array methods before class methods
|
diff --git a/lib/generators/pinkman/model_generator.rb b/lib/generators/pinkman/model_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/pinkman/model_generator.rb
+++ b/lib/generators/pinkman/model_generator.rb
@@ -38,15 +38,15 @@ end
def app_name
- Rails.application.class.parent_name
+ ... | Change "If" method and change class name of generators
|
diff --git a/recipes/windows_service.rb b/recipes/windows_service.rb
index abc1234..def5678 100644
--- a/recipes/windows_service.rb
+++ b/recipes/windows_service.rb
@@ -21,5 +21,6 @@ return unless platform? 'windows'
service 'WinRM' do
+ run_as_user 'NT AUTHORITY\NetworkService'
action [:enable, :start]
end
| Add run_as_user to service resource to work on Chef 14
On Chef 14 windows_service resource defaults to LocalSystem as a user account. So explicitly set user parameter as WinRM uses NetworkService account.
Signed-off-by: d0be23622f2c81b0b5520bcd644f49a9b7446587@gmail.com
|
diff --git a/Formula/berkeley-db.rb b/Formula/berkeley-db.rb
index abc1234..def5678 100644
--- a/Formula/berkeley-db.rb
+++ b/Formula/berkeley-db.rb
@@ -21,6 +21,10 @@ "--enable-java"
system "make install"
+
+ # use the standard docs location
+ doc.... | Install bdb docs to correct location
|
diff --git a/lib/jess/http_client/logging_decorator.rb b/lib/jess/http_client/logging_decorator.rb
index abc1234..def5678 100644
--- a/lib/jess/http_client/logging_decorator.rb
+++ b/lib/jess/http_client/logging_decorator.rb
@@ -17,22 +17,13 @@ log_response(response, req.uri)
response
rescue Err... | Revert "More detailed error logging"
This reverts commit ea07e3b33312a17f6fd0f8e0ff54b358dd45278f.
|
diff --git a/indexer/lib/patches/patch_loyalty_symbol.rb b/indexer/lib/patches/patch_loyalty_symbol.rb
index abc1234..def5678 100644
--- a/indexer/lib/patches/patch_loyalty_symbol.rb
+++ b/indexer/lib/patches/patch_loyalty_symbol.rb
@@ -3,8 +3,10 @@ def call
each_printing do |card|
next unless (card["type... | Fix PatchLoyaltySymbol for planeswalkers without originalText
|
diff --git a/GTHRectHelpers.podspec b/GTHRectHelpers.podspec
index abc1234..def5678 100644
--- a/GTHRectHelpers.podspec
+++ b/GTHRectHelpers.podspec
@@ -12,7 +12,7 @@ s.summary = "Utility macros for working with CGRect, CGSize, CGPoint etc..."
s.homepage = "http://github.com/goodtohear/GTHRectHelpers"
-... | Update license to make it work again |
diff --git a/lib/staff_plan/staff_plan_form_builder.rb b/lib/staff_plan/staff_plan_form_builder.rb
index abc1234..def5678 100644
--- a/lib/staff_plan/staff_plan_form_builder.rb
+++ b/lib/staff_plan/staff_plan_form_builder.rb
@@ -1,6 +1,6 @@ class StaffPlanFormBuilder < ActionView::Helpers::FormBuilder
- %w[text_fiel... | update: Add select to form builder
|
diff --git a/puppy_play_date/app/models/dog.rb b/puppy_play_date/app/models/dog.rb
index abc1234..def5678 100644
--- a/puppy_play_date/app/models/dog.rb
+++ b/puppy_play_date/app/models/dog.rb
@@ -5,4 +5,12 @@ has_one :photo
validates :name, :breed, :age, presence: true
+
+ def avatar
+ self.photo.url
+ end... | Add avatar method to Dog model to return the Dog photo's url
|
diff --git a/lib/active_record/typed_store/typed_hash.rb b/lib/active_record/typed_store/typed_hash.rb
index abc1234..def5678 100644
--- a/lib/active_record/typed_store/typed_hash.rb
+++ b/lib/active_record/typed_store/typed_hash.rb
@@ -47,7 +47,7 @@ def cast_value(key, value)
key = convert_key(key)
c... | Fix typo on return value
|
diff --git a/recipes/replication.rb b/recipes/replication.rb
index abc1234..def5678 100644
--- a/recipes/replication.rb
+++ b/recipes/replication.rb
@@ -1,3 +1,5 @@+require 'shellwords'
+
passwords = EncryptedPasswords.new(node, node["percona"]["encrypted_data_bag"])
replication_sql = "/etc/mysql/replication.sql"
se... | Simplify password usage for mysql client
|
diff --git a/rails_translation_manager.gemspec b/rails_translation_manager.gemspec
index abc1234..def5678 100644
--- a/rails_translation_manager.gemspec
+++ b/rails_translation_manager.gemspec
@@ -18,9 +18,10 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
+ spec... | Define version of CSV gem
Without this defined, Jenkins was using the CSV version stored on the CI
machine (3.0.9), which is incompatible with the changes made to remove
byte order marks in earlier commits. Defining the version (3.2 -> 4.0)
means we can ensure the CSV version is compatible with the code across
our env... |
diff --git a/cmd/brew-squash-bottle-pr.rb b/cmd/brew-squash-bottle-pr.rb
index abc1234..def5678 100644
--- a/cmd/brew-squash-bottle-pr.rb
+++ b/cmd/brew-squash-bottle-pr.rb
@@ -22,7 +22,7 @@ safe_system "git", "commit", file
ENV["GIT_EDITOR"] = git_editor
- safe_system "git", "show"
+ safe_system "git"... | squash-bottle-pr: Call git show if verbose
|
diff --git a/db/migrate/20151113171020_replace_tags_with_signup_tags_on_email_alerts.rb b/db/migrate/20151113171020_replace_tags_with_signup_tags_on_email_alerts.rb
index abc1234..def5678 100644
--- a/db/migrate/20151113171020_replace_tags_with_signup_tags_on_email_alerts.rb
+++ b/db/migrate/20151113171020_replace_tags... | Change tagging of email alert signup content items
Existing email_alert_signup items currently only relate to policy alerts.
These items should be tagged with some kind of reference to the policy
they handle signups for. Currently, this reference is stored as
"details" => { "tags" => "some-policy" }. 'Tags' is not a g... |
diff --git a/lib/overcommit/hook/pre_commit/slim_lint.rb b/lib/overcommit/hook/pre_commit/slim_lint.rb
index abc1234..def5678 100644
--- a/lib/overcommit/hook/pre_commit/slim_lint.rb
+++ b/lib/overcommit/hook/pre_commit/slim_lint.rb
@@ -1,5 +1,5 @@ module Overcommit::Hook::PreCommit
- # Runs `slim-lint` against any mo... | Fix comment in SlimLint hook
|
diff --git a/db/migrate/20160901131628_add_pinfirmable_columns_to_resource.rb b/db/migrate/20160901131628_add_pinfirmable_columns_to_resource.rb
index abc1234..def5678 100644
--- a/db/migrate/20160901131628_add_pinfirmable_columns_to_resource.rb
+++ b/db/migrate/20160901131628_add_pinfirmable_columns_to_resource.rb
@@ ... | Add columns if they don't already exist
|
diff --git a/lib/skroutz_api/paginated_collection.rb b/lib/skroutz_api/paginated_collection.rb
index abc1234..def5678 100644
--- a/lib/skroutz_api/paginated_collection.rb
+++ b/lib/skroutz_api/paginated_collection.rb
@@ -5,10 +5,11 @@
attr_reader :response, :context
- def initialize(context, response)
+ def ini... | Initialize SkroutzApi::PaginatedCollection with parsed collection
|
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/users_controller.rb
+++ b/app/controllers/admin/users_controller.rb
@@ -27,8 +27,8 @@ return
end
- @users = User.where(github_handle: params[:q])
-... | Update the Admin user listing.
Also updated search using regex.
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -2,9 +2,4 @@ protect_from_forgery
include GDS::SSO::ControllerMethods
-
- def defa... | Revert "make URLs https by default"
This reverts commit 227a95932266038ca2e1c9cc4f580adf6f24a195.
|
diff --git a/app/controllers/invitations_controller.rb b/app/controllers/invitations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/invitations_controller.rb
+++ b/app/controllers/invitations_controller.rb
@@ -1,6 +1,7 @@ class InvitationsController < ApplicationController
before_action :authentic... | Set user variable in invitations controller too
|
diff --git a/config/initializers/raven.rb b/config/initializers/raven.rb
index abc1234..def5678 100644
--- a/config/initializers/raven.rb
+++ b/config/initializers/raven.rb
@@ -1,6 +1,6 @@ Raven.configure do |config|
config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)
config.environmen... | Add frequent exceptions to excluded exceptions
Co-Authored-By: hieki <0be209aaf3c42870c0f050d1c2cc8d5026e3dbe2@gmail.com> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.