diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/resources/annotation_event.rb b/resources/annotation_event.rb
index abc1234..def5678 100644
--- a/resources/annotation_event.rb
+++ b/resources/annotation_event.rb
@@ -3,7 +3,7 @@ default_action :run
attribute :message, :kind_of => String, :name_attribute => true
-attribute :level, :kind_of => String, :... | Use symbol or string in resource
|
diff --git a/lib/pinch_hitter/service/replay_ws.rb b/lib/pinch_hitter/service/replay_ws.rb
index abc1234..def5678 100644
--- a/lib/pinch_hitter/service/replay_ws.rb
+++ b/lib/pinch_hitter/service/replay_ws.rb
@@ -20,17 +20,17 @@
post '/reset' do
@@responses.reset
- 200
+ status 200
... | Add explicit call to status on sinatra return values
|
diff --git a/lib/qiita/markdown/filters/mention.rb b/lib/qiita/markdown/filters/mention.rb
index abc1234..def5678 100644
--- a/lib/qiita/markdown/filters/mention.rb
+++ b/lib/qiita/markdown/filters/mention.rb
@@ -6,8 +6,6 @@ #
# You can pass :allowed_usernames context to limit mentioned usernames.
c... | Remove wrong comment lines for MentionPattern
|
diff --git a/lib/amazing/config/dsl.rb b/lib/amazing/config/dsl.rb
index abc1234..def5678 100644
--- a/lib/amazing/config/dsl.rb
+++ b/lib/amazing/config/dsl.rb
@@ -8,8 +8,11 @@
def initialize(config=nil, &block)
@awesome_statusbars = []
- @relative_path = File.dirname(config)
- import(co... | Fix issue with loading DSL configs by relative path
|
diff --git a/core/thread/terminate_spec.rb b/core/thread/terminate_spec.rb
index abc1234..def5678 100644
--- a/core/thread/terminate_spec.rb
+++ b/core/thread/terminate_spec.rb
@@ -5,7 +5,3 @@ describe "Thread#terminate" do
it_behaves_like :thread_exit, :terminate
end
-
-describe "Thread#terminate!" do
- it "needs... | Remove spec of non-existing method
|
diff --git a/lib/whitehall/decorators/decorator.rb b/lib/whitehall/decorators/decorator.rb
index abc1234..def5678 100644
--- a/lib/whitehall/decorators/decorator.rb
+++ b/lib/whitehall/decorators/decorator.rb
@@ -10,8 +10,24 @@
methods = model_classes.map { |mc| mc.instance_methods }.flatten.uniq
met... | Add more methods to the list we delegate
Specifically all those helpful methods like .blank? etc that we get from rails. Maybe we should just delegate everything we haven't specifically overridden ourselves. That might be better?
|
diff --git a/resources/config.rb b/resources/config.rb
index abc1234..def5678 100644
--- a/resources/config.rb
+++ b/resources/config.rb
@@ -23,7 +23,7 @@ property :config, Hash, required: true
action :create do
- require 'toml-rb'
+ require 'toml'
file path do
content TOML.dump(config)
| Fix require of toml-rb gem
|
diff --git a/config/initializers/secure_headers.rb b/config/initializers/secure_headers.rb
index abc1234..def5678 100644
--- a/config/initializers/secure_headers.rb
+++ b/config/initializers/secure_headers.rb
@@ -6,7 +6,7 @@ '.global.ssl.fastly.net'
normal_src += [fastly_alternate]
end
- ... | Extend HSTS header (preload and cover subdomains)
Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>
|
diff --git a/lib/exercism/use_cases/updates_user_exercise.rb b/lib/exercism/use_cases/updates_user_exercise.rb
index abc1234..def5678 100644
--- a/lib/exercism/use_cases/updates_user_exercise.rb
+++ b/lib/exercism/use_cases/updates_user_exercise.rb
@@ -21,6 +21,7 @@ exercise.is_nitpicker = true
exercise.it... | Write last iteration timestamp on each attempt
|
diff --git a/lib/custom_field_patch.rb b/lib/custom_field_patch.rb
index abc1234..def5678 100644
--- a/lib/custom_field_patch.rb
+++ b/lib/custom_field_patch.rb
@@ -33,7 +33,3 @@ end
end
end
-
-DefaultCustomQuery::ProjectPatch.tap do |mod|
- Project.send :include, mod unless Project.include?(mod)
-end
| Remove unnecessary dependency on DefaultCustomQuery plugin
|
diff --git a/rs-forklift.gemspec b/rs-forklift.gemspec
index abc1234..def5678 100644
--- a/rs-forklift.gemspec
+++ b/rs-forklift.gemspec
@@ -24,5 +24,6 @@ spec.add_development_dependency('aruba')
spec.add_development_dependency('rake', '~> 0.9.2')
spec.add_dependency('methadone', '~> 1.3.0')
+ spec.add_depende... | Add bundler as dep to gemspec.
|
diff --git a/ruby/space-age/space_age.rb b/ruby/space-age/space_age.rb
index abc1234..def5678 100644
--- a/ruby/space-age/space_age.rb
+++ b/ruby/space-age/space_age.rb
@@ -1,15 +1,14 @@ class SpaceAge
- SECONDS_IN_YEAR = 31557600.0
ORBITAL_PERIODS = {
- 'mercury' => 0.2408467,
- 'venus' => 0.61519726,
- ... | Convert old orbital periods to relative earth periods
|
diff --git a/lib/smart_answer/calculators/arrested_abroad.rb b/lib/smart_answer/calculators/arrested_abroad.rb
index abc1234..def5678 100644
--- a/lib/smart_answer/calculators/arrested_abroad.rb
+++ b/lib/smart_answer/calculators/arrested_abroad.rb
@@ -5,10 +5,6 @@
def initialize
@data = self.class.prisone... | Remove no_prisoner_packs method - now obsolete
|
diff --git a/db/migrate/20100920141223_update_menu_impersonate_revert.rb b/db/migrate/20100920141223_update_menu_impersonate_revert.rb
index abc1234..def5678 100644
--- a/db/migrate/20100920141223_update_menu_impersonate_revert.rb
+++ b/db/migrate/20100920141223_update_menu_impersonate_revert.rb
@@ -0,0 +1,16 @@+class ... | Correct revision so that it works when a user is impersonated
git-svn-id: f67d969b640da65cb7bc1d229e09fd6d2db44ae1@755 392d7b7b-3f31-0410-9dc3-c95a9635ea79
|
diff --git a/spec/features/submission_views_spec.rb b/spec/features/submission_views_spec.rb
index abc1234..def5678 100644
--- a/spec/features/submission_views_spec.rb
+++ b/spec/features/submission_views_spec.rb
@@ -0,0 +1,37 @@+include Warden::Test::Helpers
+Warden.test_mode!
+
+describe "testing submissions views:" ... | Add submission views feature spec
|
diff --git a/app/controllers/application.rb b/app/controllers/application.rb
index abc1234..def5678 100644
--- a/app/controllers/application.rb
+++ b/app/controllers/application.rb
@@ -22,6 +22,6 @@ end
def timezone
- TZInfo::Timezone.get("America/Montreal")
+ TZInfo::Timezone.get("America/New_York")
en... | Use America/New_York instead of America/Montreal for TZ info.
|
diff --git a/app/mailers/comments_mailer.rb b/app/mailers/comments_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/comments_mailer.rb
+++ b/app/mailers/comments_mailer.rb
@@ -1,11 +1,11 @@ # Copyright 2011-2017, The Trustees of Indiana University and Northwestern
# University. Licensed under the Apache Li... | Send repository comments from known account
|
diff --git a/ar_transaction_changes.gemspec b/ar_transaction_changes.gemspec
index abc1234..def5678 100644
--- a/ar_transaction_changes.gemspec
+++ b/ar_transaction_changes.gemspec
@@ -10,7 +10,7 @@ gem.email = ["Dylan.Smith@shopify.com"]
gem.description = %q{Solves the problem of trying to get all the c... | Add github repo as homepage.
|
diff --git a/app/helpers/metadata_helper.rb b/app/helpers/metadata_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/metadata_helper.rb
+++ b/app/helpers/metadata_helper.rb
@@ -1,7 +1,8 @@ # frozen_string_literal: true
+
module MetadataHelper
def logo_image_url
- image_url 'logo.jpg'
+ image_url 'logo... | Fix logo in open graph tags
|
diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/sessions_helper.rb
+++ b/app/helpers/sessions_helper.rb
@@ -22,6 +22,7 @@ remember_token = Session.encrypt(cookies[:remember_token])
current_user.update_attribute(:remember_token,
... | Destroy sessions when signing out
|
diff --git a/app/lib/export_notes_sample.rb b/app/lib/export_notes_sample.rb
index abc1234..def5678 100644
--- a/app/lib/export_notes_sample.rb
+++ b/app/lib/export_notes_sample.rb
@@ -0,0 +1,75 @@+# This is intended for use in a one-off analysis task.
+class ExportNotesSample
+ # This doesn't do any authorization che... | Add rake task to get sample of notes for coding
|
diff --git a/app/models/concerns/wp_post.rb b/app/models/concerns/wp_post.rb
index abc1234..def5678 100644
--- a/app/models/concerns/wp_post.rb
+++ b/app/models/concerns/wp_post.rb
@@ -7,7 +7,7 @@
def update_post(json)
self.class.mappable_wordpress_attributes.each do |wp_attribute|
- send(wp_attribute, js... | Fix incorrect send call for wp post
|
diff --git a/lib/dugway/application.rb b/lib/dugway/application.rb
index abc1234..def5678 100644
--- a/lib/dugway/application.rb
+++ b/lib/dugway/application.rb
@@ -3,7 +3,7 @@ def initialize(options={})
@source_dir = File.join(Dir.pwd, options[:source_dir] || 'source')
@theme = Theme.new(@source_dir,... | Move default store to "dugway"
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,5 +1,5 @@ require "rubygems"
-require "activerecord"
+require "active_record"
require File.expand_path(File.dirname(__FILE__) + "/../lib/url_normalization")
require File.expan... | Use require active_record, not require activerecord
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -23,24 +23,3 @@ PuppetlabsSpec::Files.cleanup
end
end
-
-require 'pathname'
-dir = Pathname.new(__FILE__).parent
-Puppet[:modulepath] = File.join(dir, 'fixtures', 'modules'... | Use modulesync to manage meta files
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,5 +1,7 @@ require 'rspec'
+
require 'webmock/rspec'
+WebMock.disable_net_connect!(:allow => "codeclimate.com")
if ENV["CODECLIMATE_REPO_TOKEN"]
require "codeclimate-test-... | Allow codeclimate to post coverage
|
diff --git a/lib/haml_lint/reporter.rb b/lib/haml_lint/reporter.rb
index abc1234..def5678 100644
--- a/lib/haml_lint/reporter.rb
+++ b/lib/haml_lint/reporter.rb
@@ -1,16 +1,19 @@ module HamlLint
- # @abstract Abstract lint reporter. Subclass and override {#report_lints} to
- # implement a custom lint reporter.
+ #... | Fix documentation for Reporter class
Change-Id: I324caa5900491528ae26cd38b3f382e0ca9b0c28
Reviewed-on: http://gerrit.causes.com/45311
Reviewed-by: Shane da Silva <67fb7bfe39f841b16a1f86d3928acc568d12c716@brigade.com>
Tested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@brigade.com>
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -26,7 +26,11 @@ def setup_cassandra_connection
host = ENV['CASSANDRA_CQL_HOST'] || '127.0.0.1'
port = ENV['CASSANDRA_CQL_PORT'] || 9160
- connection = CassandraCQL::Database... | Use CQL 2.0.0 for specs if using cassandra 1.2 or above.
|
diff --git a/spec/support/vcr.rb b/spec/support/vcr.rb
index abc1234..def5678 100644
--- a/spec/support/vcr.rb
+++ b/spec/support/vcr.rb
@@ -2,4 +2,7 @@ c.cassette_library_dir = Rails.root.join("spec", "vcr")
c.hook_into :webmock
c.configure_rspec_metadata!
+
+ # Allow code coverage report to be sent to Code C... | Fix code coverage report sending
|
diff --git a/lib/http/response_body.rb b/lib/http/response_body.rb
index abc1234..def5678 100644
--- a/lib/http/response_body.rb
+++ b/lib/http/response_body.rb
@@ -46,6 +46,7 @@
@contents
end
+ alias_method :to_str, :to_s
# Assert that the body is actively being streamed
def stream!
| Allow implicit conversion of HTTP::ResponseBody into String
|
diff --git a/bootstrap_form_builder.gemspec b/bootstrap_form_builder.gemspec
index abc1234..def5678 100644
--- a/bootstrap_form_builder.gemspec
+++ b/bootstrap_form_builder.gemspec
@@ -4,7 +4,7 @@ require 'bootstrap_form_builder/version'
Gem::Specification.new do |spec|
- spec.name = "bootstrap_form_builde... | Change gem name to bs_form_builder
|
diff --git a/plugins/commands/plugin/state_file.rb b/plugins/commands/plugin/state_file.rb
index abc1234..def5678 100644
--- a/plugins/commands/plugin/state_file.rb
+++ b/plugins/commands/plugin/state_file.rb
@@ -10,15 +10,17 @@
@data = {}
@data = JSON.parse(@path.read) if @path.exist?
+ @data... | Make sure the state file only contains unique fields
|
diff --git a/features/support/paths.rb b/features/support/paths.rb
index abc1234..def5678 100644
--- a/features/support/paths.rb
+++ b/features/support/paths.rb
@@ -2,7 +2,7 @@ def path_to(page_name)
case page_name
- when /the homepage/i
+ when /the homepage/
root_path
# Add more pa... | Update features for changes in latest cucumber
|
diff --git a/spec/api/v1/bathrooms_spec.rb b/spec/api/v1/bathrooms_spec.rb
index abc1234..def5678 100644
--- a/spec/api/v1/bathrooms_spec.rb
+++ b/spec/api/v1/bathrooms_spec.rb
@@ -1,13 +1,43 @@ require 'spec_helper'
describe 'Bathrooms API' do
- it 'sends a list of bathrooms' do
+ it 'sends a list of bathrooms'
+... | Add assertions for API pagination
|
diff --git a/spec/api/v1/place_messages.rb b/spec/api/v1/place_messages.rb
index abc1234..def5678 100644
--- a/spec/api/v1/place_messages.rb
+++ b/spec/api/v1/place_messages.rb
@@ -5,7 +5,6 @@ let(:url) { "/api/v1" }
it "sends valid place form data" do
- pending "Fix recipient address."
place = create(:p... | Enable spec for sending valid place form data.
|
diff --git a/spec/factories/user_groups.rb b/spec/factories/user_groups.rb
index abc1234..def5678 100644
--- a/spec/factories/user_groups.rb
+++ b/spec/factories/user_groups.rb
@@ -1,6 +1,8 @@+# frozen_string_literal: true
+
FactoryGirl.define do
factory :user_group do
- name { Faker::Team.name }
+ sequence(:... | 9690: Fix user group name uniqueness error
|
diff --git a/spec/ephemeral_response/configuration_spec.rb b/spec/ephemeral_response/configuration_spec.rb
index abc1234..def5678 100644
--- a/spec/ephemeral_response/configuration_spec.rb
+++ b/spec/ephemeral_response/configuration_spec.rb
@@ -2,6 +2,9 @@
describe EphemeralResponse::Configuration do
subject { Eph... | Test resets expiry after changing it
|
diff --git a/spec/chartroom/port_spec.rb b/spec/chartroom/port_spec.rb
index abc1234..def5678 100644
--- a/spec/chartroom/port_spec.rb
+++ b/spec/chartroom/port_spec.rb
@@ -0,0 +1,53 @@+require "spec_helper"
+
+module Chartroom
+ describe Port do
+ let(:private_port) { 80 }
+ let(:public_port) { 80 }
+ let(:... | Add tests for Port class
|
diff --git a/spec/features/login_spec.rb b/spec/features/login_spec.rb
index abc1234..def5678 100644
--- a/spec/features/login_spec.rb
+++ b/spec/features/login_spec.rb
@@ -0,0 +1,9 @@+feature 'Login' do
+ scenario 'invalid login displays an error' do
+ visit '/login'
+ fill_in 'user_name', with: ''
+ fill_in... | Write feature test for invalid login to show error message.
|
diff --git a/spec/requests/songs_spec.rb b/spec/requests/songs_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/songs_spec.rb
+++ b/spec/requests/songs_spec.rb
@@ -0,0 +1,63 @@+require 'rails_helper'
+
+RSpec.describe 'Songs', type: :request do
+ let(:live) { create(:live) }
+ let!(:song) { create(:song, sta... | Add tests for /songs api
|
diff --git a/gem_tasks/yard.rake b/gem_tasks/yard.rake
index abc1234..def5678 100644
--- a/gem_tasks/yard.rake
+++ b/gem_tasks/yard.rake
@@ -2,32 +2,32 @@ require 'yard/rake/yardoc_task'
require File.expand_path(File.dirname(__FILE__) + '/../lib/cucumber/platform')
-SITE_DIR = File.expand_path(File.dirname(__FILE__)... | Fix api:dir rake task so it works on my machine :)
|
diff --git a/git_handler.gemspec b/git_handler.gemspec
index abc1234..def5678 100644
--- a/git_handler.gemspec
+++ b/git_handler.gemspec
@@ -9,11 +9,11 @@ s.authors = ["Dan Sosedoff"]
s.email = ["dan.sosedoff@gmail.com"]
- s.add_development_dependency 'rake', '~> 0.8'
- s.add_development_depen... | Update dev and runtime dependencies
|
diff --git a/recipes/dynatrace_user.rb b/recipes/dynatrace_user.rb
index abc1234..def5678 100644
--- a/recipes/dynatrace_user.rb
+++ b/recipes/dynatrace_user.rb
@@ -10,7 +10,6 @@
user "Create system user '#{dynatrace_owner}'" do
username dynatrace_owner
- system true
action :create
end
| [JLT-173344] Prepare dynasprint environment for Sprint 8
* Fixed cause of exceptions in server logs ("Failed to access preferences node for path") by creating dynatrace user with home directory
|
diff --git a/lib/active_admin/views/components/menu_item.rb b/lib/active_admin/views/components/menu_item.rb
index abc1234..def5678 100644
--- a/lib/active_admin/views/components/menu_item.rb
+++ b/lib/active_admin/views/components/menu_item.rb
@@ -5,20 +5,22 @@ class MenuItem < Component
builder_method :men... | Tidy use of url in MenuItem component.
|
diff --git a/lib/amazon_auth/extensions/common_extension.rb b/lib/amazon_auth/extensions/common_extension.rb
index abc1234..def5678 100644
--- a/lib/amazon_auth/extensions/common_extension.rb
+++ b/lib/amazon_auth/extensions/common_extension.rb
@@ -4,7 +4,7 @@ def log(message)
return unless (@options[:debug]... | Fix a bug with debug flag and nil session
|
diff --git a/db/migrate/20150323172330_add_filename_and_username_to_attachment_recent_activity_parameters.rb b/db/migrate/20150323172330_add_filename_and_username_to_attachment_recent_activity_parameters.rb
index abc1234..def5678 100644
--- a/db/migrate/20150323172330_add_filename_and_username_to_attachment_recent_acti... | Add extra parameters for recent activity of attachments
Conflicts:
db/schema.rb
|
diff --git a/lib/mtgextractor/rails/tasks/mtgextractor.rake b/lib/mtgextractor/rails/tasks/mtgextractor.rake
index abc1234..def5678 100644
--- a/lib/mtgextractor/rails/tasks/mtgextractor.rake
+++ b/lib/mtgextractor/rails/tasks/mtgextractor.rake
@@ -16,7 +16,7 @@ ActiveRecord::Base.establish_connection(database_yaml... | Change call for creating the set to 'find_or_create_by_name'
|
diff --git a/lib/noaa_client/responses/reactive_response.rb b/lib/noaa_client/responses/reactive_response.rb
index abc1234..def5678 100644
--- a/lib/noaa_client/responses/reactive_response.rb
+++ b/lib/noaa_client/responses/reactive_response.rb
@@ -3,7 +3,11 @@ module ReactiveResponse
def method_missing(meth... | Add block modifier for reactive response. |
diff --git a/lib/pdoc/generators/html/syntax_highlighter.rb b/lib/pdoc/generators/html/syntax_highlighter.rb
index abc1234..def5678 100644
--- a/lib/pdoc/generators/html/syntax_highlighter.rb
+++ b/lib/pdoc/generators/html/syntax_highlighter.rb
@@ -6,8 +6,8 @@
attr_reader :highlighter
- ... | Make SyntaxHighlighter _truly_ more resilient this time.
|
diff --git a/lib/conway.rb b/lib/conway.rb
index abc1234..def5678 100644
--- a/lib/conway.rb
+++ b/lib/conway.rb
@@ -12,13 +12,18 @@
def initialize(width, heigth)
@width, @heigth = width, heigth
+ @fields = Array.new(width) do
+ Array.new(heigth) do
+ Cell.new
+ end
+ end
end
end
class Cell
... | Initialize fields to empty cells.
|
diff --git a/activerecord/lib/active_record/relation/predicate_builder.rb b/activerecord/lib/active_record/relation/predicate_builder.rb
index abc1234..def5678 100644
--- a/activerecord/lib/active_record/relation/predicate_builder.rb
+++ b/activerecord/lib/active_record/relation/predicate_builder.rb
@@ -11,7 +11,7 @@
... | Fix the method name for recusion
|
diff --git a/lib/gollum.rb b/lib/gollum.rb
index abc1234..def5678 100644
--- a/lib/gollum.rb
+++ b/lib/gollum.rb
@@ -10,10 +10,6 @@
# internal
require File.expand_path('../gollum/uri_encode_component', __FILE__)
-
-# Set ruby to UTF-8 mode
-# This is required for Ruby 1.8.7 which gollum still supports.
-$KCODE = 'U'... | Remove unicode support on deprecated ruby 1.8
|
diff --git a/Casks/adobe-air.rb b/Casks/adobe-air.rb
index abc1234..def5678 100644
--- a/Casks/adobe-air.rb
+++ b/Casks/adobe-air.rb
@@ -1,5 +1,5 @@ cask :v1 => 'adobe-air' do
- version '18.0'
+ version '19.0'
sha256 :no_check # required as upstream package is updated in-place
url "http://airdownload.adobe.co... | Upgrade Adobe AIR to v19.0
|
diff --git a/app/views/api/records/show.json.jbuilder b/app/views/api/records/show.json.jbuilder
index abc1234..def5678 100644
--- a/app/views/api/records/show.json.jbuilder
+++ b/app/views/api/records/show.json.jbuilder
@@ -22,9 +22,11 @@ end
end
-json.country do
- json.id @record.country.id
- json.name @record... | Fix Api::RecordShow jbuilder view for records without a country
|
diff --git a/webapp/db/migrate/20120221131302_unique_user_name_index.rb b/webapp/db/migrate/20120221131302_unique_user_name_index.rb
index abc1234..def5678 100644
--- a/webapp/db/migrate/20120221131302_unique_user_name_index.rb
+++ b/webapp/db/migrate/20120221131302_unique_user_name_index.rb
@@ -0,0 +1,13 @@+class Uniq... | Add another case-insensitive unqiue indx, this time to user_name
|
diff --git a/lib/apple_system_status/cli.rb b/lib/apple_system_status/cli.rb
index abc1234..def5678 100644
--- a/lib/apple_system_status/cli.rb
+++ b/lib/apple_system_status/cli.rb
@@ -8,7 +8,7 @@ option :title, desc: "If specified, narrow the service title"
option :format, desc: "output format. (ex. plain,... | Use class method instead of instance method
|
diff --git a/lib/arel/engines/sql/engine.rb b/lib/arel/engines/sql/engine.rb
index abc1234..def5678 100644
--- a/lib/arel/engines/sql/engine.rb
+++ b/lib/arel/engines/sql/engine.rb
@@ -20,8 +20,12 @@ end
end
- def method_missing(method, *args, &block)
- @ar.connection.send(method, *args, &b... | Use block_given? instead defining block.
|
diff --git a/lib/childprocess/jruby/pump.rb b/lib/childprocess/jruby/pump.rb
index abc1234..def5678 100644
--- a/lib/childprocess/jruby/pump.rb
+++ b/lib/childprocess/jruby/pump.rb
@@ -30,6 +30,7 @@
while read != -1
avail = [@input.available, 1].max
+ avail = BUFFER_SIZE if avail > B... | Make sure we never try to read more then the max buffer size in JRuby::Pump.
|
diff --git a/lib/discordrb/events/typing.rb b/lib/discordrb/events/typing.rb
index abc1234..def5678 100644
--- a/lib/discordrb/events/typing.rb
+++ b/lib/discordrb/events/typing.rb
@@ -0,0 +1,42 @@+require 'discordrb/events/generic'
+
+module Discordrb::Events
+ class TypingEvent
+ attr_reader :channel, :timestamp
... | Add an event handler for TYPING_START
|
diff --git a/ttygif.rb b/ttygif.rb
index abc1234..def5678 100644
--- a/ttygif.rb
+++ b/ttygif.rb
@@ -5,6 +5,9 @@ url 'https://github.com/icholy/ttygif/archive/1.0.8.zip'
sha1 'f8d0a56af11d3ae8e2d5e64a4f6aceccb8338414'
+ depends_on 'imagemagick'
+ depends_on 'ttyrec'
+
def install
system "... | Add imagemagick and ttyrec as dependencies
|
diff --git a/lib/lending_club/connection.rb b/lib/lending_club/connection.rb
index abc1234..def5678 100644
--- a/lib/lending_club/connection.rb
+++ b/lib/lending_club/connection.rb
@@ -18,6 +18,13 @@ Faraday::Connection.new(options) do |connection|
# connection.use FaradayMiddleware::RaiseHttpException
... | Add response parsing using Faraday JSON parser.
|
diff --git a/Casks/pritunl.rb b/Casks/pritunl.rb
index abc1234..def5678 100644
--- a/Casks/pritunl.rb
+++ b/Casks/pritunl.rb
@@ -0,0 +1,21 @@+cask :v1 => 'pritunl' do
+ version '0.10.14'
+ sha256 'afa302d8e95d1635584673a3c206d370c93846f519735d9898e75af43d9bd3a8'
+
+ # github.com is the official download host per the... | Add Pritunl OpenVPN Client cask
|
diff --git a/Casks/arduino.rb b/Casks/arduino.rb
index abc1234..def5678 100644
--- a/Casks/arduino.rb
+++ b/Casks/arduino.rb
@@ -1,6 +1,6 @@ cask 'arduino' do
version '1.6.7'
- sha256 '20d6ecdd068930d3e74ef5de6ec3115e57b9ad7183fbee51b0d42e52cd5df5aa'
+ sha256 '9ad1a3096904c132e7a0817c9d7afc17a891ded3fb73a50ac1d584... | Fix sha256 on Arduino 1.6.7
|
diff --git a/lib/travis/api/app/endpoint/builds.rb b/lib/travis/api/app/endpoint/builds.rb
index abc1234..def5678 100644
--- a/lib/travis/api/app/endpoint/builds.rb
+++ b/lib/travis/api/app/endpoint/builds.rb
@@ -6,12 +6,11 @@ get '/' do
name = params[:branches] ? :find_branches : :find_builds
p... | Revert my puny changes for now.
Will be fixed in travis-web.
|
diff --git a/cookbooks/krew/recipes/krew.rb b/cookbooks/krew/recipes/krew.rb
index abc1234..def5678 100644
--- a/cookbooks/krew/recipes/krew.rb
+++ b/cookbooks/krew/recipes/krew.rb
@@ -1,10 +1,6 @@ krew 'ctx'
-krew 'iexec'
krew 'images'
krew 'neat'
krew 'ns'
krew 'open-svc'
-krew 'rolesum'
-krew 'status'
-krew 'tre... | Delete kubectl plugins that don't support apple silicon
|
diff --git a/rally_api.gemspec b/rally_api.gemspec
index abc1234..def5678 100644
--- a/rally_api.gemspec
+++ b/rally_api.gemspec
@@ -7,7 +7,7 @@ s.version = RallyAPI::VERSION
s.authors = ["Dave Smith"]
s.email = ["dsmith@rallydev.com"]
- s.homepage = "http://developer.rallydev.com/help"
+ s.h... | Update gem spec homepage to github
|
diff --git a/lib/models/mongomapper_user.rb b/lib/models/mongomapper_user.rb
index abc1234..def5678 100644
--- a/lib/models/mongomapper_user.rb
+++ b/lib/models/mongomapper_user.rb
@@ -4,11 +4,12 @@ key :email, String, :length => (5..40), :unique => true
key :hashed_password, String
key :salt, String
- key :c... | Change timestamp management to mongo-mapper built-in
|
diff --git a/lib/rails_sortable/core_ext.rb b/lib/rails_sortable/core_ext.rb
index abc1234..def5678 100644
--- a/lib/rails_sortable/core_ext.rb
+++ b/lib/rails_sortable/core_ext.rb
@@ -1,3 +1,3 @@-Dir.glob(File.expand_path('core_ext/*.rb', __dir__)).each do |path|
+Dir.glob(File.expand_path('core_ext/*.rb', File.dirnam... | Fix no method error on ruby-1.9.3
|
diff --git a/core/enumerator/lazy/force_spec.rb b/core/enumerator/lazy/force_spec.rb
index abc1234..def5678 100644
--- a/core/enumerator/lazy/force_spec.rb
+++ b/core/enumerator/lazy/force_spec.rb
@@ -24,7 +24,7 @@ (0..Float::INFINITY).lazy.map(&:succ).take(2).force.should == [1, 2]
@eventsmixed.take(1).... | Add missing ".should" and fix subsequent failure
|
diff --git a/core/proc/shared/call_arguments.rb b/core/proc/shared/call_arguments.rb
index abc1234..def5678 100644
--- a/core/proc/shared/call_arguments.rb
+++ b/core/proc/shared/call_arguments.rb
@@ -4,4 +4,26 @@ lambda {|&b| b.send(@method)}.send(@method) {1 + 1}.should == 2
proc {|&b| b.send(@method)}.send(... | Add specs for yielding in procs which take block arguments.
|
diff --git a/spec/controllers/searches_controller_spec.rb b/spec/controllers/searches_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/searches_controller_spec.rb
+++ b/spec/controllers/searches_controller_spec.rb
@@ -0,0 +1,35 @@+require 'rails_helper'
+
+RSpec.describe SearchesController, type:... | Add tests for search controller
|
diff --git a/lib/descendants_loader.rb b/lib/descendants_loader.rb
index abc1234..def5678 100644
--- a/lib/descendants_loader.rb
+++ b/lib/descendants_loader.rb
@@ -29,6 +29,8 @@ classes
end
+ private
+
def load_self_descendants
file = ClassFinder.where_is(self)
path = File.expand_pat... | Load dependencies should be private
|
diff --git a/lib/engineyard/version.rb b/lib/engineyard/version.rb
index abc1234..def5678 100644
--- a/lib/engineyard/version.rb
+++ b/lib/engineyard/version.rb
@@ -1,4 +1,4 @@ module EY
- VERSION = '2.1.1'
+ VERSION = '2.1.2.pre'
ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || '2.1.1'
end... | Add .pre for next release
|
diff --git a/lib/filters/filter_set.rb b/lib/filters/filter_set.rb
index abc1234..def5678 100644
--- a/lib/filters/filter_set.rb
+++ b/lib/filters/filter_set.rb
@@ -2,7 +2,9 @@ class FilterSet
include Enumerable
- attr_reader :name
+ attr_reader :name, :selection_policy, :selected_values
+ private :se... | Use methods instead of variables
|
diff --git a/lib/lifx/transport/tcp.rb b/lib/lifx/transport/tcp.rb
index abc1234..def5678 100644
--- a/lib/lifx/transport/tcp.rb
+++ b/lib/lifx/transport/tcp.rb
@@ -11,7 +11,7 @@ @socket.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_MAXSEG, 512)
end
- HEADER_SIZE = 100
+ HEADER_SIZE = 8
... | Use the correct header size
|
diff --git a/spec/mnemosyne/probes/restify/base_spec.rb b/spec/mnemosyne/probes/restify/base_spec.rb
index abc1234..def5678 100644
--- a/spec/mnemosyne/probes/restify/base_spec.rb
+++ b/spec/mnemosyne/probes/restify/base_spec.rb
@@ -4,20 +4,26 @@ require 'webmock/rspec'
RSpec.describe Mnemosyne::Probes::Restify::Bas... | Restructure tests as was done for Faraday
|
diff --git a/db/migrate/20200327172134_convert_training_modules_to_utf8_mb4.rb b/db/migrate/20200327172134_convert_training_modules_to_utf8_mb4.rb
index abc1234..def5678 100644
--- a/db/migrate/20200327172134_convert_training_modules_to_utf8_mb4.rb
+++ b/db/migrate/20200327172134_convert_training_modules_to_utf8_mb4.rb... | Change ROW_FORMAT for utf8mb4 compatibility
|
diff --git a/bosh-dev/lib/bosh/dev/tasks/rubocop.rake b/bosh-dev/lib/bosh/dev/tasks/rubocop.rake
index abc1234..def5678 100644
--- a/bosh-dev/lib/bosh/dev/tasks/rubocop.rake
+++ b/bosh-dev/lib/bosh/dev/tasks/rubocop.rake
@@ -4,10 +4,13 @@ desc 'Run RuboCop on new git files'
RuboCop::RakeTask.new(:new) do |task|
... | Change Rubocup setting to only run lint and not other checks (including style)
Signed-off-by: Victor Fong <95c00c4b759dfd5c0c9bab0c67fa20ed75fca00d@emc.com>
|
diff --git a/test/unit/blacklist_test.rb b/test/unit/blacklist_test.rb
index abc1234..def5678 100644
--- a/test/unit/blacklist_test.rb
+++ b/test/unit/blacklist_test.rb
@@ -3,6 +3,20 @@
class BlacklistTest < Test::Unit::TestCase
setup do
+ @empty_ncodes = {
+ 'ncodes' => [
+ 'n12345'
+ ]
+ }... | Add merge test for blacklist
|
diff --git a/minc.rb b/minc.rb
index abc1234..def5678 100644
--- a/minc.rb
+++ b/minc.rb
@@ -2,8 +2,8 @@
class Minc < Formula
homepage 'http://en.wikibooks.org/wiki/MINC'
- url 'https://github.com/BIC-MNI/minc/tarball/release-2.2.00'
- sha1 '558300240a67b9f849a98622d0e8ec3aad76c6d1'
+ url 'https://github.com/BI... | Change github /tarball/ URLs to /archive/ for formulae L-Z
This takes care of a `brew audit` complaint.
Closes #18828.
Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
|
diff --git a/wel-osx-apps/recipes/plexserver.rb b/wel-osx-apps/recipes/plexserver.rb
index abc1234..def5678 100644
--- a/wel-osx-apps/recipes/plexserver.rb
+++ b/wel-osx-apps/recipes/plexserver.rb
@@ -1,7 +1,8 @@ dmg_package "Plex Media Server" do
+ volumes_dir "PlexMediaServer"
dmg_name "PlexMediaServer-0.9.7.22.5... | Add volume directory for Plex Server
This commit adds the volume directory for the plex server recipe.
|
diff --git a/files/brews/gh.rb b/files/brews/gh.rb
index abc1234..def5678 100644
--- a/files/brews/gh.rb
+++ b/files/brews/gh.rb
@@ -1,7 +1,7 @@ require "formula"
class Gh < Formula
- VERSION = "0.23.0"
+ VERSION = "0.24.2"
ARCH = if MacOS.prefer_64_bit?
"amd64"
else
| Update upstream to 0.24.2 with two-factor support
`gh` added support for two-factor auth in 0.24.2, see jingweno/gh#85 and https://github.com/jingweno/gh/commit/42e4d021cf5c5854920d386480bbbd9466a2c823
While you can get this update by running `brew upgrade [...]` it's nice to have it by default! |
diff --git a/lib/diameter/u24.rb b/lib/diameter/u24.rb
index abc1234..def5678 100644
--- a/lib/diameter/u24.rb
+++ b/lib/diameter/u24.rb
@@ -0,0 +1,10 @@+def u8_and_u16_to_u24(eightb, sixteenb)
+ (eightb << 16) + sixteenb
+end
+
+def u24_to_u8_and_u16(twentyfourb)
+ top_eight = twentyfourb >> 16
+ bottom_sixteen = t... | Add missing file for uint24 handling
|
diff --git a/lib/facter/users.rb b/lib/facter/users.rb
index abc1234..def5678 100644
--- a/lib/facter/users.rb
+++ b/lib/facter/users.rb
@@ -1,8 +1,16 @@ Facter.add(:have_psql) do
- confine :kernel => %w{Linux OpenBSD SunOS}
setcode do
+ confine :kernel => %w{Linux SunOS}
if Facter::Util::Resolution.exe... | Fix fact have_psql for OpenBSD, the user name of the postgres system
user is different
|
diff --git a/lib/hash_to_json.rb b/lib/hash_to_json.rb
index abc1234..def5678 100644
--- a/lib/hash_to_json.rb
+++ b/lib/hash_to_json.rb
@@ -31,7 +31,7 @@ end
res.write render('templates/home.haml', hash: input , json: json)
end
- res.write render('templates/home.haml', hash: '' , json: '')... | Fix bug which restricted viewing ace editor
|
diff --git a/lib/tasks/data.rake b/lib/tasks/data.rake
index abc1234..def5678 100644
--- a/lib/tasks/data.rake
+++ b/lib/tasks/data.rake
@@ -0,0 +1,10 @@+namespace :data do
+ desc "Create sample Countries in the database"
+ task create_sample_data: :environment do
+ ["United States of America", "Canada", "Mexico"]... | Add rake task to create sample countries
|
diff --git a/Casks/paraview-lion-python27-nightly.rb b/Casks/paraview-lion-python27-nightly.rb
index abc1234..def5678 100644
--- a/Casks/paraview-lion-python27-nightly.rb
+++ b/Casks/paraview-lion-python27-nightly.rb
@@ -1,8 +1,10 @@ class ParaviewLionPython27Nightly < Cask
+ version 'latest'
+ sha256 :no_check
+
... | Format Paraview Lion Python27 Nightly
|
diff --git a/lib/miq_automation_engine/service_models/miq_ae_service_manageiq-providers-amazon-storage_manager-s3.rb b/lib/miq_automation_engine/service_models/miq_ae_service_manageiq-providers-amazon-storage_manager-s3.rb
index abc1234..def5678 100644
--- a/lib/miq_automation_engine/service_models/miq_ae_service_manag... | Add Amazon object storage automation model
Automation service model required for Amazon object storage manager.
(transferred from ManageIQ/manageiq@2937fff24789b3414b60d6879f43108ad723985e)
|
diff --git a/spec/unitwise/unit/expression_spec.rb b/spec/unitwise/unit/expression_spec.rb
index abc1234..def5678 100644
--- a/spec/unitwise/unit/expression_spec.rb
+++ b/spec/unitwise/unit/expression_spec.rb
@@ -26,10 +26,10 @@ end
it "should handle multiple terms" do
- es = Unitwise::Unit::Expression.new("N... | Fix specs to test prefixes for non-base units
|
diff --git a/spec/xclarity_client_discover_spec.rb b/spec/xclarity_client_discover_spec.rb
index abc1234..def5678 100644
--- a/spec/xclarity_client_discover_spec.rb
+++ b/spec/xclarity_client_discover_spec.rb
@@ -10,16 +10,32 @@ end
context 'with the correct appliance IPAddress' do
- before do
- ... | Update test cases for new responses
|
diff --git a/joomla/recipes/gitssh.rb b/joomla/recipes/gitssh.rb
index abc1234..def5678 100644
--- a/joomla/recipes/gitssh.rb
+++ b/joomla/recipes/gitssh.rb
@@ -24,8 +24,8 @@
# Install the key for this repo
-cookbook_file "#{KEYPATH}" do
- source "keys/#{KEYNAME}"
+remote_file "#{KEYPATH}" do
+ source "file:///va... | Move key to /vagrant and install via remote_file
|
diff --git a/app/controllers/omniauth_callbacks_controller.rb b/app/controllers/omniauth_callbacks_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/omniauth_callbacks_controller.rb
+++ b/app/controllers/omniauth_callbacks_controller.rb
@@ -4,6 +4,7 @@ def github
@developer = Authenticator.call(a... | Add remember me for omniauth
|
diff --git a/app/search/form_answer_status/assessor_filter.rb b/app/search/form_answer_status/assessor_filter.rb
index abc1234..def5678 100644
--- a/app/search/form_answer_status/assessor_filter.rb
+++ b/app/search/form_answer_status/assessor_filter.rb
@@ -25,10 +25,6 @@ not_eligible: {
label: "Not Eligible"... | Remove withdrawn from filters for Assessor
|
diff --git a/sli/config/indexes/rmv-nindexes.rb b/sli/config/indexes/rmv-nindexes.rb
index abc1234..def5678 100644
--- a/sli/config/indexes/rmv-nindexes.rb
+++ b/sli/config/indexes/rmv-nindexes.rb
@@ -22,7 +22,7 @@ indexes.keys.each do |index|
crnt_index = indexes[index]["key"]
if crnt_index != SHARD_KEY an... | Add collection name to printout.
|
diff --git a/postcode_software.gemspec b/postcode_software.gemspec
index abc1234..def5678 100644
--- a/postcode_software.gemspec
+++ b/postcode_software.gemspec
@@ -12,6 +12,7 @@
s.add_dependency 'nokogiri', '~> 1.6'
+ s.add_development_dependency 'rake', '~> 12.0', '>= 12.0.0'
s.add_development_dependency 'r... | Add rake as a development dependency
|
diff --git a/spec/lib/extensions/ar_dba_spec.rb b/spec/lib/extensions/ar_dba_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/extensions/ar_dba_spec.rb
+++ b/spec/lib/extensions/ar_dba_spec.rb
@@ -0,0 +1,19 @@+describe "ar_dba extension" do
+ let(:connection) { ApplicationRecord.connection }
+
+ describe "#primar... | Add a spec for ar_dba
https://trello.com/c/bRx6yN0C
|
diff --git a/spec/production/expression_spec.rb b/spec/production/expression_spec.rb
index abc1234..def5678 100644
--- a/spec/production/expression_spec.rb
+++ b/spec/production/expression_spec.rb
@@ -1,10 +1,28 @@ require 'spec_helper'
describe Calyx::Production::Expression do
- specify 'construct string formattin... | Tidy up expression spec to cover multiple cases
|
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -12,9 +12,17 @@ require 'blueprint'
require 'add_query_counting_to_active_record'
-WillPaginate.enable_activerecord if WillPaginate.respond_to?(:enable_activerecord)
+require 'w... | Fix WillPaginate ActiveRecord integration;
Don't fail if the AR logger is nil
|
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -24,10 +24,13 @@ # load seeds
load "#{Rails.root}/db/seeds.rb"
+ # proccess background jobs
+ Delayed::Worker.new.work_off
+
# set system mode to done / to activate
... | Drop not needed bg job after test file has finished.
|
diff --git a/lib/csv_serialization.rb b/lib/csv_serialization.rb
index abc1234..def5678 100644
--- a/lib/csv_serialization.rb
+++ b/lib/csv_serialization.rb
@@ -31,7 +31,7 @@ def to_csv(options = {})
raise "Not all elements respond to to_csv" unless all? { |e| e.respond_to? :to_csv }
names... | Fix bug exporting families as csv file.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.