diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/Casks/zendstudio.rb b/Casks/zendstudio.rb
index abc1234..def5678 100644
--- a/Casks/zendstudio.rb
+++ b/Casks/zendstudio.rb
@@ -3,5 +3,5 @@ homepage 'http://www.zend.com/en/products/studio/'
version '10.6.0'
sha256 '391c77f62e281f7d6dc8039962d4fcb03b66e8c1a28267840b9f3af3f9cc30e7'
- link 'Zend Stu... | Fix symlink path error in ZendStudio.app Cask
|
diff --git a/spec/get_events_spec.rb b/spec/get_events_spec.rb
index abc1234..def5678 100644
--- a/spec/get_events_spec.rb
+++ b/spec/get_events_spec.rb
@@ -4,12 +4,70 @@ include Sandthorn::AggregateRoot
end
+class AnotherAggregate
+ include Sandthorn::AggregateRoot
+ event_store :other
+end
+
describe Sandthorn... | Add specs for get_events with named event stores
|
diff --git a/server/lib/tasks/idleserver.rake b/server/lib/tasks/idleserver.rake
index abc1234..def5678 100644
--- a/server/lib/tasks/idleserver.rake
+++ b/server/lib/tasks/idleserver.rake
@@ -0,0 +1,12 @@+namespace :idleserver do
+ desc 'Clean stale clients out of database'
+ task :dbclean, [:hours] => [:environment... | Add a rake task to simplify removing old entries from the database.
|
diff --git a/Casks/noun-project.rb b/Casks/noun-project.rb
index abc1234..def5678 100644
--- a/Casks/noun-project.rb
+++ b/Casks/noun-project.rb
@@ -0,0 +1,14 @@+cask :v1 => 'noun-project' do
+ version '1.0.2'
+ sha256 '3063a23c568254053513fbadbdd9087f3cb6f87fd1a749e61e7452e36772a28b'
+
+ # amazonaws.com is the offi... | Add Noun Project.app version 1.0.2
Search over 100,000 icons. The Mac App constantly updates, giving you fresh content every day. https://thenounproject.com
|
diff --git a/Casks/phpstorm-eap.rb b/Casks/phpstorm-eap.rb
index abc1234..def5678 100644
--- a/Casks/phpstorm-eap.rb
+++ b/Casks/phpstorm-eap.rb
@@ -1,7 +1,7 @@ class PhpstormEap < Cask
- url 'http://download.jetbrains.com/webide/PhpStorm-EAP-138.38.dmg'
+ url 'http://download.jetbrains.com/webide/PhpStorm-EAP-138.84... | Update PHPStorm-EAP to latest build 138.84 |
diff --git a/recipes/wheneverize.rb b/recipes/wheneverize.rb
index abc1234..def5678 100644
--- a/recipes/wheneverize.rb
+++ b/recipes/wheneverize.rb
@@ -7,6 +7,10 @@
execute 'whenever' do
cwd "#{node[:whenever][:whenever_path]}"
- command "whenever --update-crontab '#{node[:application]}_#{node[:rails_env]}'"
+ ... | Add comment to whenever --update-crontab
|
diff --git a/convert_church_directory_for_mapalist_spreadsheet.rb b/convert_church_directory_for_mapalist_spreadsheet.rb
index abc1234..def5678 100644
--- a/convert_church_directory_for_mapalist_spreadsheet.rb
+++ b/convert_church_directory_for_mapalist_spreadsheet.rb
@@ -0,0 +1,64 @@+require 'csv'
+
+Record = Struct.n... | Add proof-of-concept ruby script for posterity's sake.
|
diff --git a/dm-types/lib/dm-types/flag.rb b/dm-types/lib/dm-types/flag.rb
index abc1234..def5678 100644
--- a/dm-types/lib/dm-types/flag.rb
+++ b/dm-types/lib/dm-types/flag.rb
@@ -52,6 +52,7 @@
def self.typecast(value, property)
case value
+ when nil then nil
when Array then value.ma... | Allow Flag property to be nullable.
Signed-off-by: Michael S. Klishin <17b9e1c64588c7fa6419b4d29dc1f4426279ba01@novemberain.com>
|
diff --git a/features/support/env.rb b/features/support/env.rb
index abc1234..def5678 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -10,6 +10,7 @@ Before do
@__aruba_original_paths = (ENV['PATH'] || '').split(File::PATH_SEPARATOR)
ENV['PATH'] = ([File.expand_path('bin')] + @__aruba_origina... | Increase Aruba timeout to 5 seconds
|
diff --git a/lib/rack/dev-mark/theme/github_fork_ribbon.rb b/lib/rack/dev-mark/theme/github_fork_ribbon.rb
index abc1234..def5678 100644
--- a/lib/rack/dev-mark/theme/github_fork_ribbon.rb
+++ b/lib/rack/dev-mark/theme/github_fork_ribbon.rb
@@ -27,9 +27,9 @@ div_tag_str = <<-EOS
<div class="github-fork-ribbo... | Fix method chain and quotations
|
diff --git a/config/initializers/attachment_fu_file_mime_type.rb b/config/initializers/attachment_fu_file_mime_type.rb
index abc1234..def5678 100644
--- a/config/initializers/attachment_fu_file_mime_type.rb
+++ b/config/initializers/attachment_fu_file_mime_type.rb
@@ -7,7 +7,16 @@ tmp_file = self.uploaded_data_with... | Make unix_file_mime_type compatible with file versions < 5
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -20,6 +20,7 @@ include_recipe 'omnibus::_bash'
include_recipe 'omnibus::_ccache'
include_recipe 'omnibus::_common'
+include_recipe 'omnibus::_chruby'
include_recipe 'omnibus::_compi... | Make chruby part of the base recipe
|
diff --git a/saga.gemspec b/saga.gemspec
index abc1234..def5678 100644
--- a/saga.gemspec
+++ b/saga.gemspec
@@ -6,7 +6,7 @@ spec.date = "2012-07-10"
spec.authors = ["Manfred Stienstra"]
- spec.email = "manfred@fngtpspec.com"
+ spec.email = "manfred@fngtps.com"
spec.description = "Saga is a tool to co... | Fix my e-mail address in the gemspec.
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -20,8 +20,8 @@ include_recipe "apt"
template "/etc/apt/sources.list" do
- mode 0644
- variables :code_name => node[:lsb][:codename]
+ mode 00644
+ variables :code_name => node['... | Use 5 character mode def and strings not symbols for the node attributes
|
diff --git a/spec/event_spec.rb b/spec/event_spec.rb
index abc1234..def5678 100644
--- a/spec/event_spec.rb
+++ b/spec/event_spec.rb
@@ -1,7 +1,7 @@ require "spec_helper"
describe React::Event do
- it "should bridge attributes of native SyntheticEvent" do
+ it "should bridge attributes of native SyntheticEvent (se... | Add reference to React.js doc
|
diff --git a/spec/test_app_templates/lib/generators/test_app_generator.rb b/spec/test_app_templates/lib/generators/test_app_generator.rb
index abc1234..def5678 100644
--- a/spec/test_app_templates/lib/generators/test_app_generator.rb
+++ b/spec/test_app_templates/lib/generators/test_app_generator.rb
@@ -24,4 +24,11 @@ ... | Test suite should fail when there are missing translations
|
diff --git a/spec/util.rb b/spec/util.rb
index abc1234..def5678 100644
--- a/spec/util.rb
+++ b/spec/util.rb
@@ -7,7 +7,10 @@
describe Daniel::Util do
it "converts hex to binary as expected" do
- expected = "\x00A7\x80".force_encoding("BINARY")
+ expected = "\x00A7\x80"
+ if ::RUBY_VERSION.to_f > 1.8
+ ... | Fix additional Ruby 1.8 incompatibility.
Signed-off-by: brian m. carlson <738bdd359be778fee9f0fc4e2934ad72f436ceda@crustytoothpaste.net>
|
diff --git a/test/api_helper.rb b/test/api_helper.rb
index abc1234..def5678 100644
--- a/test/api_helper.rb
+++ b/test/api_helper.rb
@@ -1,4 +1,5 @@ require './test/integration_helper'
+require 'gravatarify'
require 'sinatra/base'
require 'rack/test'
| Add missing requirement to tests
Gravatarify was an unknown constant so the tests blew up.
|
diff --git a/spec/dmm-crawler/ranking_spec.rb b/spec/dmm-crawler/ranking_spec.rb
index abc1234..def5678 100644
--- a/spec/dmm-crawler/ranking_spec.rb
+++ b/spec/dmm-crawler/ranking_spec.rb
@@ -22,6 +22,7 @@ let(:term) { '24' }
it { is_expected.to all(include(:title, :title_link, :image_url, :submedia, :a... | Add examples that needed for checking crawled value is not empty
|
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index abc1234..def5678 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -7,6 +7,7 @@
# Checks for pending migration and applies them before tests are run.
# ActiveRecord::Migration.maintain_test_schema!
+system("cd spec/test_app; bin/rake db:cre... | Introduce a hacky way to run migrations from code across rails versions
|
diff --git a/spec/regexes_spec.rb b/spec/regexes_spec.rb
index abc1234..def5678 100644
--- a/spec/regexes_spec.rb
+++ b/spec/regexes_spec.rb
@@ -0,0 +1,84 @@+require 'spec_helper'
+require 'strscan'
+
+def ScanShortcutFor(regex)
+ Module.new { define_method :scan do |text|
+ StringScanner.new(text).scan(Wptemplates... | Add specs for some of the regexes
|
diff --git a/lib/byebug/commands/restart.rb b/lib/byebug/commands/restart.rb
index abc1234..def5678 100644
--- a/lib/byebug/commands/restart.rb
+++ b/lib/byebug/commands/restart.rb
@@ -41,7 +41,7 @@ argv = prepend_byebug_bin(argv)
argv = prepend_ruby_bin(argv)
- argv += (@match[:args] ? @match[:args... | Remove unnecessary call to `compact`
|
diff --git a/EPSReactiveTableViewController.podspec b/EPSReactiveTableViewController.podspec
index abc1234..def5678 100644
--- a/EPSReactiveTableViewController.podspec
+++ b/EPSReactiveTableViewController.podspec
@@ -14,7 +14,6 @@ s.requires_arc = true
s.source_files = 'Classes'
- s.resources = 'Assets'
s.... | Remove unnecessary resources line from podspec.
|
diff --git a/spec/common/install_chef_spec.rb b/spec/common/install_chef_spec.rb
index abc1234..def5678 100644
--- a/spec/common/install_chef_spec.rb
+++ b/spec/common/install_chef_spec.rb
@@ -0,0 +1,8 @@+require 'spec_helper'
+
+# Make sure Chef installs
+
+describe command('curl -kL https://www.chef.io/chef/install.s... | Test to ensure Chef can successfully install
|
diff --git a/spec/fuzz/consumer_group_spec.rb b/spec/fuzz/consumer_group_spec.rb
index abc1234..def5678 100644
--- a/spec/fuzz/consumer_group_spec.rb
+++ b/spec/fuzz/consumer_group_spec.rb
@@ -0,0 +1,49 @@+describe "Consumer groups", fuzz: true do
+ let(:logger) { Logger.new(LOG) }
+ let(:num_messages) { 750_000 }
+ ... | Add a fuzz test for consumer groups
|
diff --git a/app/controllers/category_tree/api/categories_controller.rb b/app/controllers/category_tree/api/categories_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/category_tree/api/categories_controller.rb
+++ b/app/controllers/category_tree/api/categories_controller.rb
@@ -3,7 +3,6 @@ def ind... | Clean up unnecessary puts lines
Signed-off-by: Joan Tiffany Siy <e0397393f2258e8c6ee68e35ceb46d86a4ac5382@teamcodeflux.com>
|
diff --git a/lib/data_kitten/origins/git.rb b/lib/data_kitten/origins/git.rb
index abc1234..def5678 100644
--- a/lib/data_kitten/origins/git.rb
+++ b/lib/data_kitten/origins/git.rb
@@ -44,9 +44,9 @@
def working_copy_path
# Create holding directory
- FileUtils.mkdir_p(File.join(File.dirname(__F... | Make tmp folder in gem root
|
diff --git a/spec/factories/subjects.rb b/spec/factories/subjects.rb
index abc1234..def5678 100644
--- a/spec/factories/subjects.rb
+++ b/spec/factories/subjects.rb
@@ -23,10 +23,5 @@ create_list(:set_member_subject, 2, subject: s)
end
end
-
- #factory :migrated_project_subject do
- #locatio... | Remove unused migrated subject factory
|
diff --git a/spec/spec_helper_models.rb b/spec/spec_helper_models.rb
index abc1234..def5678 100644
--- a/spec/spec_helper_models.rb
+++ b/spec/spec_helper_models.rb
@@ -19,12 +19,10 @@
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
-silence_stream(STDOUT) do
- ActiveRecord::Schema... | Remove use of silence_stream, now gone from Rails
Rails 5 removed it. It doesn't suppress a lot of noise anyway, so it's no big deal. Might even be nicer to see this output (from migrating the DB) to know what is going on.
|
diff --git a/spec/ssdp/listener_spec.rb b/spec/ssdp/listener_spec.rb
index abc1234..def5678 100644
--- a/spec/ssdp/listener_spec.rb
+++ b/spec/ssdp/listener_spec.rb
@@ -8,7 +8,35 @@
it "should receive alive and byebye notifications"
it "should ignore M-SEARCH requests"
- it "should ignore and log un... | Make RUPNP::SSDP::Listener should ignore and log unknown requests pass.
|
diff --git a/lib/rails/patch/json/encode.rb b/lib/rails/patch/json/encode.rb
index abc1234..def5678 100644
--- a/lib/rails/patch/json/encode.rb
+++ b/lib/rails/patch/json/encode.rb
@@ -5,7 +5,7 @@ [Object, Array, FalseClass, Float, Hash, Integer, NilClass, String, TrueClass].each do |klass|
klass.class_eval do
... | Fix compatibility with Rails' own options like :root, :except and :only
|
diff --git a/lib/requirejs/rails/builder.rb b/lib/requirejs/rails/builder.rb
index abc1234..def5678 100644
--- a/lib/requirejs/rails/builder.rb
+++ b/lib/requirejs/rails/builder.rb
@@ -16,7 +16,11 @@ end
def digest_for(path)
- Rails.application.assets.file_digest(path).hexdigest
+ if !Rails.applica... | Make explicit warnings when an asset is not found
|
diff --git a/test/integration/site_layout_test.rb b/test/integration/site_layout_test.rb
index abc1234..def5678 100644
--- a/test/integration/site_layout_test.rb
+++ b/test/integration/site_layout_test.rb
@@ -11,4 +11,12 @@ assert_select 'a[href=?]', contact_path
end
+ test 'should get signup' do
+ get sig... | Add signup template integration test
|
diff --git a/test/server/run_clang_ptrace_test.rb b/test/server/run_clang_ptrace_test.rb
index abc1234..def5678 100644
--- a/test/server/run_clang_ptrace_test.rb
+++ b/test/server/run_clang_ptrace_test.rb
@@ -0,0 +1,34 @@+# frozen_string_literal: true
+require_relative '../test_base'
+
+module Dual
+ class RunClangPtr... | Add server-side clang ptrace test
|
diff --git a/lib/activo-rails.rb b/lib/activo-rails.rb
index abc1234..def5678 100644
--- a/lib/activo-rails.rb
+++ b/lib/activo-rails.rb
@@ -1,6 +1,7 @@ module ActivoRails
class Engine < Rails::Engine
- puts "Loaded engine"
- config.asset_path = "/activo/%s"
+ initializer "static assets" do |app|
+ app... | Make sure static content is loaded
|
diff --git a/db/migrate/20201112155002_set_other_utilisation_to_zero.rb b/db/migrate/20201112155002_set_other_utilisation_to_zero.rb
index abc1234..def5678 100644
--- a/db/migrate/20201112155002_set_other_utilisation_to_zero.rb
+++ b/db/migrate/20201112155002_set_other_utilisation_to_zero.rb
@@ -0,0 +1,14 @@+require 'e... | Add migration to set 'other utilisation' demand to zero
Set other utilisation to zero. This is a new input. In some areas it has a non-zero default value. This could result in unintended 'other use' of captured CO2 in the future.
|
diff --git a/Library/Homebrew/test/cmd/help_spec.rb b/Library/Homebrew/test/cmd/help_spec.rb
index abc1234..def5678 100644
--- a/Library/Homebrew/test/cmd/help_spec.rb
+++ b/Library/Homebrew/test/cmd/help_spec.rb
@@ -6,6 +6,7 @@ it "prints help for a documented Ruby command" do
expect { brew "help", "cat" }
... | Make `brew help cat` test stricter.
|
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -6,7 +6,7 @@ @latest_reviews = Review.order('created_at DESC').limit(2)
@recent_anime_users = User.joins(:wat... | Hide hentai on the home page.:
|
diff --git a/app/jobs/update_clinical_trials.rb b/app/jobs/update_clinical_trials.rb
index abc1234..def5678 100644
--- a/app/jobs/update_clinical_trials.rb
+++ b/app/jobs/update_clinical_trials.rb
@@ -12,5 +12,8 @@ end
sleep 1
end
+ orphaned_clinical_trials = ClinicalTrial.joins("LEFT JOIN clinical... | Delete orphaned/unused clinical trial records
|
diff --git a/app/models/trigger/set_due_date.rb b/app/models/trigger/set_due_date.rb
index abc1234..def5678 100644
--- a/app/models/trigger/set_due_date.rb
+++ b/app/models/trigger/set_due_date.rb
@@ -2,11 +2,11 @@ class Trigger::SetDueDate < Trigger::Action
def days=(a)
- @argument=a
+ self.argument=a
en... | Fix argument setter/getter in Trigger::SetDueDate.
|
diff --git a/lib/feedcellar.rb b/lib/feedcellar.rb
index abc1234..def5678 100644
--- a/lib/feedcellar.rb
+++ b/lib/feedcellar.rb
@@ -1,5 +1,7 @@ require "feedcellar/version"
+require "feedcellar/groonga_database"
+require "feedcellar/opml"
+require "feedcellar/command"
module Feedcellar
- # Your code goes here...
... | Add require because when use for API
|
diff --git a/lib/hiera/util.rb b/lib/hiera/util.rb
index abc1234..def5678 100644
--- a/lib/hiera/util.rb
+++ b/lib/hiera/util.rb
@@ -8,7 +8,7 @@ end
def microsoft_windows?
- return false if posix?
+ return false unless File::ALT_SEPARATOR
begin
require 'win32/dir'
| Use File::ALT_SEPARATOR to test platform
|
diff --git a/lib/pronto/cli.rb b/lib/pronto/cli.rb
index abc1234..def5678 100644
--- a/lib/pronto/cli.rb
+++ b/lib/pronto/cli.rb
@@ -9,9 +9,9 @@
method_option :commit,
type: :string,
- default: nil,
+ default: 'master',
aliases: '-c',
- ... | Use Thor default parameter, instead of writing it down manually
|
diff --git a/spec/IMF/image/open_spec.rb b/spec/IMF/image/open_spec.rb
index abc1234..def5678 100644
--- a/spec/IMF/image/open_spec.rb
+++ b/spec/IMF/image/open_spec.rb
@@ -0,0 +1,59 @@+require 'spec_helper'
+
+RSpec.xdescribe IMF::Image, '.open' do
+ describe 'Abnormal conditions' do
+ context 'Given a non-existin... | :white_check_mark: Add a placeholder spec file for IMF::Image.open
|
diff --git a/app/services/document_publisher.rb b/app/services/document_publisher.rb
index abc1234..def5678 100644
--- a/app/services/document_publisher.rb
+++ b/app/services/document_publisher.rb
@@ -9,9 +9,11 @@ end
Services.publishing_api.publish(document.content_id)
+ # Refresh the document from the p... | Send the published document to email-alert-api
This commit changes the document publisher to send the published document (rather than the in-memory instance before it is published) to email-alert-api and other classes. This means that fields that are populated by publishing-api (such as `public_updated_at`) are availa... |
diff --git a/spec/semvergen/bump_spec.rb b/spec/semvergen/bump_spec.rb
index abc1234..def5678 100644
--- a/spec/semvergen/bump_spec.rb
+++ b/spec/semvergen/bump_spec.rb
@@ -1,5 +1,5 @@ describe Semvergen::Bump do
- let(:semvergen) { Semvergen::Bump.new nil, nil, nil, nil, nil, nil, nil }
+ let(:semvergen) { Semvergen... | Fix spec broken by removing default arg
|
diff --git a/spec/unit/account_helper.rb b/spec/unit/account_helper.rb
index abc1234..def5678 100644
--- a/spec/unit/account_helper.rb
+++ b/spec/unit/account_helper.rb
@@ -0,0 +1,21 @@+# spec/unit/account.rb
+
+require_relative '../spec_helper'
+
+describe 'Character', :unit do
+ before do
+ Account.all.destroy
+ ... | Add unit tests for the account model
|
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
@@ -1,9 +1,4 @@ module SessionsHelper
-
- def current_user=(user)
- # set the current user object
- @current_user = user
- end
... | Make current user assignment private
|
diff --git a/test/graph_test.rb b/test/graph_test.rb
index abc1234..def5678 100644
--- a/test/graph_test.rb
+++ b/test/graph_test.rb
@@ -0,0 +1,19 @@+require 'test_helper'
+
+describe Funk::Graph do
+ it "orders functions in dependency order" do
+ graph = Funk::Graph.new(
+ a: -> (b, d) { "#{b}, #{d}" },
+ ... | Add a quick test for the graph
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -6,8 +6,7 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version IO.read(File.join(File.dirname(__FILE__), 'VERSION')) rescue "0.0.1"
-supports 'ubuntu', '= 14.04'
-suppor... | Change supported platforms to 12.04+
|
diff --git a/app/helpers/appearances_helper.rb b/app/helpers/appearances_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/appearances_helper.rb
+++ b/app/helpers/appearances_helper.rb
@@ -2,7 +2,12 @@
module AppearancesHelper
def brand_title
- current_appearance&.title.presence || 'GitLab Community Edi... | Move default brand title to a method
This moves the default brand title in AppearancesHelper#brand_title to a
separate method, allowing EE to redefine it without having to redefine
the entire #brand_title method.
|
diff --git a/lib/interactive_bitmap_editor/command_interpreter.rb b/lib/interactive_bitmap_editor/command_interpreter.rb
index abc1234..def5678 100644
--- a/lib/interactive_bitmap_editor/command_interpreter.rb
+++ b/lib/interactive_bitmap_editor/command_interpreter.rb
@@ -1,4 +1,5 @@ require 'interactive_bitmap_editor/... | Support program exit and raise on unsupported command request.
|
diff --git a/fluent-plugin-logsene.gemspec b/fluent-plugin-logsene.gemspec
index abc1234..def5678 100644
--- a/fluent-plugin-logsene.gemspec
+++ b/fluent-plugin-logsene.gemspec
@@ -4,7 +4,7 @@
Gem::Specification.new do |spec|
spec.name = "fluent-plugin-logsene"
- spec.version = "0.0.2"
+ spec.ver... | Bump spec version to 0.0.3 |
diff --git a/lib/flame/static.rb b/lib/flame/static.rb
index abc1234..def5678 100644
--- a/lib/flame/static.rb
+++ b/lib/flame/static.rb
@@ -2,6 +2,8 @@ class Dispatcher
## Module for working with static files
module Static
+ private
+
## Find static files and try return it
def try_static(dir = config[... | Make Static method for Dispatcher private
|
diff --git a/lib/forem/engine.rb b/lib/forem/engine.rb
index abc1234..def5678 100644
--- a/lib/forem/engine.rb
+++ b/lib/forem/engine.rb
@@ -5,7 +5,7 @@ class << self
attr_accessor :root
def root
- @root ||= Pathname.new(File.expand_path('../../', __FILE__))
+ @root ||= Pathname.new(File... | Change Engine.root to match the actual root of Forem and not the lib directory.
Fixes #366
|
diff --git a/common/src/rb/lib/selenium/webdriver/driver_extensions/takes_screenshot.rb b/common/src/rb/lib/selenium/webdriver/driver_extensions/takes_screenshot.rb
index abc1234..def5678 100644
--- a/common/src/rb/lib/selenium/webdriver/driver_extensions/takes_screenshot.rb
+++ b/common/src/rb/lib/selenium/webdriver/d... | JariBakken: Use "wb" mode string when saving screenshots (needed on Windows).
git-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@9686 07704840-8298-11de-bf8c-fd130f914ac9
|
diff --git a/app/solidus_decorators/spree/variant_decorator.rb b/app/solidus_decorators/spree/variant_decorator.rb
index abc1234..def5678 100644
--- a/app/solidus_decorators/spree/variant_decorator.rb
+++ b/app/solidus_decorators/spree/variant_decorator.rb
@@ -3,7 +3,7 @@
private
def mailchimp_sync
- if produ... | Fix product delete logic on variant decorator
|
diff --git a/scripts/mock_sieste.rb b/scripts/mock_sieste.rb
index abc1234..def5678 100644
--- a/scripts/mock_sieste.rb
+++ b/scripts/mock_sieste.rb
@@ -0,0 +1,69 @@+require 'sinatra'
+require 'json'
+
+require 'sinatra/reloader' if development?
+set :port, 1234
+
+
+simple = ["JISPVTWX", "EVVDPKOX", "FASXEOMD", "FWNDT... | Add very basic sieste v2 mock instance
|
diff --git a/spec/redis_spec.rb b/spec/redis_spec.rb
index abc1234..def5678 100644
--- a/spec/redis_spec.rb
+++ b/spec/redis_spec.rb
@@ -22,9 +22,9 @@ include_context 'session_helper'
include_context 'tomcat_helper'
- xit 'stores session data from Tomcat',
- fixture: 'default' do
- expect(redis.get(sess... | Enable basic test for storing session data in Redis
This change enables the test for storing session data in Redis (rather
than in Tomcat's native session data store).
[#64605932] |
diff --git a/lib/mws-rb/api/base.rb b/lib/mws-rb/api/base.rb
index abc1234..def5678 100644
--- a/lib/mws-rb/api/base.rb
+++ b/lib/mws-rb/api/base.rb
@@ -2,7 +2,6 @@ module API
class Base
attr_reader :connection, :uri, :version, :verb
- @verb = :get
def initialize(connection)
@verb |... | Send body params (format, body) to post requests
|
diff --git a/lib/hmote/render.rb b/lib/hmote/render.rb
index abc1234..def5678 100644
--- a/lib/hmote/render.rb
+++ b/lib/hmote/render.rb
@@ -8,8 +8,9 @@
def self.setup(app)
app.settings[:hmote] ||= {}
- app.settings[:hmote][:views] ||= File.expand_path("views", Dir.pwd)
- app.settings[:hmote][:layout] ||... | Add class methods to set layout and view path.
|
diff --git a/app/concerns/viewable.rb b/app/concerns/viewable.rb
index abc1234..def5678 100644
--- a/app/concerns/viewable.rb
+++ b/app/concerns/viewable.rb
@@ -7,12 +7,14 @@ def mark_read(user, at_time=nil)
view = view_for(user)
return true if view.ignored
- if at_time.present? && !view.new_reco... | Refactor to respect at_time for new view records
|
diff --git a/SafeUINavigationController.podspec b/SafeUINavigationController.podspec
index abc1234..def5678 100644
--- a/SafeUINavigationController.podspec
+++ b/SafeUINavigationController.podspec
@@ -0,0 +1,28 @@+#
+# Be sure to run `pod lib lint SafeUINavigationController.podspec' to ensure this is a
+# valid spec an... | Add a podspec file to make this into a CocoaPod.
|
diff --git a/lib/slippery/assets.rb b/lib/slippery/assets.rb
index abc1234..def5678 100644
--- a/lib/slippery/assets.rb
+++ b/lib/slippery/assets.rb
@@ -1,13 +1,17 @@ require 'fileutils'
+# Manage the assets and their URI/path
module Slippery
module Assets
ASSETS_PATH = '../../../assets/'
+ # Copies the... | Add documentation to Assets module
|
diff --git a/lib/travis/api/app/schedulers/schedule_cron_jobs.rb b/lib/travis/api/app/schedulers/schedule_cron_jobs.rb
index abc1234..def5678 100644
--- a/lib/travis/api/app/schedulers/schedule_cron_jobs.rb
+++ b/lib/travis/api/app/schedulers/schedule_cron_jobs.rb
@@ -32,8 +32,12 @@ scheduled = Travis::API::V3:... | Make cron enqueue messages debug only in enterprise
|
diff --git a/lib/multi_logger.rb b/lib/multi_logger.rb
index abc1234..def5678 100644
--- a/lib/multi_logger.rb
+++ b/lib/multi_logger.rb
@@ -7,7 +7,7 @@ rails_logger_class = get_rails_logger_class()
if rails_logger_class.method_defined?(name)
- raise "'#{name}' is reserved in #{rails_logger_class}... | Update message for name collision
|
diff --git a/lib/plugins/cafe.rb b/lib/plugins/cafe.rb
index abc1234..def5678 100644
--- a/lib/plugins/cafe.rb
+++ b/lib/plugins/cafe.rb
@@ -15,17 +15,14 @@ cafe_hash = {}
return m.reply 'no results bru' if response.body['channel']['result'] == '0'
response.body['channel']['item'].each do |caf... | Refactor and clarify help method response
|
diff --git a/lib/rmega/crypto.rb b/lib/rmega/crypto.rb
index abc1234..def5678 100644
--- a/lib/rmega/crypto.rb
+++ b/lib/rmega/crypto.rb
@@ -9,5 +9,12 @@ include AesEcb
include AesCtr
include Rsa
+
+ # Check if all the used ciphers are supported
+ ciphers = OpenSSL::Cipher.ciphers.map(&:upcase)
+ ... | Check if all the used ciphers are supported
|
diff --git a/api/notifications_and_subscriptions.rb b/api/notifications_and_subscriptions.rb
index abc1234..def5678 100644
--- a/api/notifications_and_subscriptions.rb
+++ b/api/notifications_and_subscriptions.rb
@@ -3,7 +3,7 @@ end
get "#{APIPREFIX}/users/:user_id/subscribed_threads" do |user_id|
- handle_threads_... | Make sure to scope followed threads by course.
|
diff --git a/handy_feature_helpers.gemspec b/handy_feature_helpers.gemspec
index abc1234..def5678 100644
--- a/handy_feature_helpers.gemspec
+++ b/handy_feature_helpers.gemspec
@@ -18,6 +18,9 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
+ spec.add_dependency '... | [gemspec] Add dependencies to capybara and rspec
|
diff --git a/compath.gemspec b/compath.gemspec
index abc1234..def5678 100644
--- a/compath.gemspec
+++ b/compath.gemspec
@@ -24,4 +24,5 @@ spec.add_development_dependency "bundler", "~> 1.15"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
+ spec.add_developm... | Add pry as development dependency
|
diff --git a/test/new/test_helper.rb b/test/new/test_helper.rb
index abc1234..def5678 100644
--- a/test/new/test_helper.rb
+++ b/test/new/test_helper.rb
@@ -1,5 +1,6 @@ require 'pathname'
require 'rubygems'
+require 'bundler/setup'
require 'minitest/autorun'
require 'mocha/setup'
| Add bundler initialization to test helper
|
diff --git a/middleman-neat.gemspec b/middleman-neat.gemspec
index abc1234..def5678 100644
--- a/middleman-neat.gemspec
+++ b/middleman-neat.gemspec
@@ -16,5 +16,5 @@ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.requ... | Add neat as dependency, not sinatra..
|
diff --git a/files/default/ohai_plugins/pci.rb b/files/default/ohai_plugins/pci.rb
index abc1234..def5678 100644
--- a/files/default/ohai_plugins/pci.rb
+++ b/files/default/ohai_plugins/pci.rb
@@ -21,10 +21,13 @@ pci2 Mash.new
# use the more verbose lspci output:
# devices are split by double newlines
- ... | Extend collected information and fix regex for scan
|
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -5,12 +5,18 @@ end
def create
- user = User.find_by(name: params[:name])
- if user and user... | Create a new user, if there is none
|
diff --git a/lib/analytics-client.rb b/lib/analytics-client.rb
index abc1234..def5678 100644
--- a/lib/analytics-client.rb
+++ b/lib/analytics-client.rb
@@ -0,0 +1,44 @@+#!/usr/bin/env ruby -w
+require 'optparse'
+require 'yaml'
+
+puts 'Fetching all data'
+
+#grab config
+options = {}
+
+OptionParser.new do |opts|
+ o... | Allow for passing -c for config path and -j for job names
|
diff --git a/lib/sass/plugin/merb.rb b/lib/sass/plugin/merb.rb
index abc1234..def5678 100644
--- a/lib/sass/plugin/merb.rb
+++ b/lib/sass/plugin/merb.rb
@@ -1,10 +1,19 @@ unless defined?(Sass::MERB_LOADED)
Sass::MERB_LOADED = true
- Sass::Plugin.options.merge!(:template_location => MERB_ROOT + '/public/styleshee... | Use the proper Merb root and environment constants. Thanks to Dan Gilkerson.
git-svn-id: 93069e0dc7225fbffdaa34e2b50be2112296e79e@727 7063305b-7217-0410-af8c-cdc13e5119b9
|
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,7 +52,7 @@ rescue SystemExit => e
exit e.status
rescue Exception => e
- self.new.critical "Check failed to run: #{e}"
+ ... | Include backtrace in failure message
|
diff --git a/merging/binary.rb b/merging/binary.rb
index abc1234..def5678 100644
--- a/merging/binary.rb
+++ b/merging/binary.rb
@@ -0,0 +1,58 @@+module Merging
+ # @abstract A Service for taking two sorted list, and merging them into a
+ # single sorted list. Each item in the lists must be comparable, ie. It must
... | Change module / class naming and add documentation |
diff --git a/app/models/gitosis_observer.rb b/app/models/gitosis_observer.rb
index abc1234..def5678 100644
--- a/app/models/gitosis_observer.rb
+++ b/app/models/gitosis_observer.rb
@@ -17,13 +17,13 @@
def update_repositories(object)
case object
- when Project: Gitosis::update_repositories(object)
- ... | Fix cases for ruby 1.9
|
diff --git a/app/models/renalware/hd/session/dna.rb b/app/models/renalware/hd/session/dna.rb
index abc1234..def5678 100644
--- a/app/models/renalware/hd/session/dna.rb
+++ b/app/models/renalware/hd/session/dna.rb
@@ -16,14 +16,6 @@ delay = Renalware.config.delay_after_which_a_finished_session_becomes_immutable
... | Remove DNA null session document
Its causing issues elsewhere. Reinstate later,
|
diff --git a/config/environments/production.rb b/config/environments/production.rb
index abc1234..def5678 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -21,5 +21,5 @@ # SOFTWARE.
Yeah.application.configure :production do
- log_folder File.join(ENV['ORBIT_HOME'], 'logs'), ... | Use same folder for log file if ORBIT_HOME is not set
|
diff --git a/tests/clippy.rb b/tests/clippy.rb
index abc1234..def5678 100644
--- a/tests/clippy.rb
+++ b/tests/clippy.rb
@@ -1,4 +1,4 @@-$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '../lib')))
+$:.unshift(File.expand_path("../../lib", __FILE__))
unless defined?(Gem) then require 'rubygems' end
requi... | Clean up the $:.unshift expand_path a bit. |
diff --git a/test/compiler_compile_test.rb b/test/compiler_compile_test.rb
index abc1234..def5678 100644
--- a/test/compiler_compile_test.rb
+++ b/test/compiler_compile_test.rb
@@ -2,20 +2,27 @@
class CompilerCompileTest < Test::Unit::TestCase
include IronRubyInline
-
+
context "when no output is specifi... | Add when output is specified test.
|
diff --git a/coursemology2/db/transforms/models/file_upload.rb b/coursemology2/db/transforms/models/file_upload.rb
index abc1234..def5678 100644
--- a/coursemology2/db/transforms/models/file_upload.rb
+++ b/coursemology2/db/transforms/models/file_upload.rb
@@ -9,17 +9,22 @@ # Return the attachment reference or nil
... | Create attachment first before build the reference
|
diff --git a/db/migrate/20140621230121_change_suburb_postcode_to_string.rb b/db/migrate/20140621230121_change_suburb_postcode_to_string.rb
index abc1234..def5678 100644
--- a/db/migrate/20140621230121_change_suburb_postcode_to_string.rb
+++ b/db/migrate/20140621230121_change_suburb_postcode_to_string.rb
@@ -4,6 +4,6 @@... | Fix down migration - need explicit cast for string -> integer
|
diff --git a/spec/photomosaic/image_spec.rb b/spec/photomosaic/image_spec.rb
index abc1234..def5678 100644
--- a/spec/photomosaic/image_spec.rb
+++ b/spec/photomosaic/image_spec.rb
@@ -12,10 +12,10 @@
describe "#calculate_color_distance" do
it "should calculate color distance" do
- color_a = { red: ... | Fix test data to be suitable for RGB range
|
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb
index abc1234..def5678 100644
--- a/spec/spec_helper_acceptance.rb
+++ b/spec/spec_helper_acceptance.rb
@@ -1,23 +1,18 @@-require 'beaker-rspec/spec_helper'
-require 'beaker-rspec/helpers/serverspec'
+require 'beaker-rspec'
+require 'beaker-pu... | Clean up acceptance spec helper
|
diff --git a/spec/support/validator_spec.rb b/spec/support/validator_spec.rb
index abc1234..def5678 100644
--- a/spec/support/validator_spec.rb
+++ b/spec/support/validator_spec.rb
@@ -1,7 +1,7 @@ RSpec.shared_examples "validate valid parameter" do |validator_class, parameter|
subject(:valid_parameter_validator) { v... | Use positive language for specs
|
diff --git a/spec/tty/table/options_spec.rb b/spec/tty/table/options_spec.rb
index abc1234..def5678 100644
--- a/spec/tty/table/options_spec.rb
+++ b/spec/tty/table/options_spec.rb
@@ -0,0 +1,30 @@+# -*- encoding: utf-8 -*-
+
+require 'spec_helper'
+
+describe TTY::Table, 'options' do
+ let(:rows) { [['a1', 'a2'], [... | Add integration tests between table and basic renderer.
|
diff --git a/spec/views/dataservice/blobs/index.html.haml_spec.rb b/spec/views/dataservice/blobs/index.html.haml_spec.rb
index abc1234..def5678 100644
--- a/spec/views/dataservice/blobs/index.html.haml_spec.rb
+++ b/spec/views/dataservice/blobs/index.html.haml_spec.rb
@@ -8,7 +8,7 @@ allow(view).to receive(:show_me... | Change current_visitor to current_user for policy check.
|
diff --git a/traffiq.gemspec b/traffiq.gemspec
index abc1234..def5678 100644
--- a/traffiq.gemspec
+++ b/traffiq.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependency 'bunny', '~> 1.5.1'
+ spec.add_dependency 'bunny', '>= 1... | Update bunny dependency to allow bunny 1.x.x
Bunny is now on version 1.6.1 without braking API changes. We should
allow that.
|
diff --git a/tasks/bnd-ext.rake b/tasks/bnd-ext.rake
index abc1234..def5678 100644
--- a/tasks/bnd-ext.rake
+++ b/tasks/bnd-ext.rake
@@ -17,9 +17,13 @@ "gov.nih.nci.*, *;resolution:=optional"
end
- def configure_bundle(bundle)
+ def configure_bundle(bundle, options = {})
+ unless options.has_key?(:resourc... | Use a more sensible mechanism to determine whether to bundle resources.
(The previous one only worked by accident.)
SVN-Revision: 343
|
diff --git a/lib/idcf/ilb/resources/l7route.rb b/lib/idcf/ilb/resources/l7route.rb
index abc1234..def5678 100644
--- a/lib/idcf/ilb/resources/l7route.rb
+++ b/lib/idcf/ilb/resources/l7route.rb
@@ -5,7 +5,7 @@ class L7route < Base
def inspect
o_id = object_id
- "#<#{self.class}:0x%014x... | :wrench: Change name to pattern in resouce module
|
diff --git a/lib/pronto/credo/output_parser.rb b/lib/pronto/credo/output_parser.rb
index abc1234..def5678 100644
--- a/lib/pronto/credo/output_parser.rb
+++ b/lib/pronto/credo/output_parser.rb
@@ -17,8 +17,8 @@
def parse
output.lines.map do |line|
- next unless line.start_with?(file)
... | Fix bug with path matching
|
diff --git a/lib/rss/atom/feed_history/atom.rb b/lib/rss/atom/feed_history/atom.rb
index abc1234..def5678 100644
--- a/lib/rss/atom/feed_history/atom.rb
+++ b/lib/rss/atom/feed_history/atom.rb
@@ -1,5 +1,3 @@-require 'rss/atom/feed_history'
-
module RSS
module Atom
class Feed
| Remove `require` to avoide circular requirement
|
diff --git a/lib/aws_sns_manager/client.rb b/lib/aws_sns_manager/client.rb
index abc1234..def5678 100644
--- a/lib/aws_sns_manager/client.rb
+++ b/lib/aws_sns_manager/client.rb
@@ -35,7 +35,8 @@ aps: {
alert: text,
sound: 'default',
- badge: 1
+ badge: 1,
+ 'cont... | Add content-available key to notification json
|
diff --git a/lib/cheffish/merged_config.rb b/lib/cheffish/merged_config.rb
index abc1234..def5678 100644
--- a/lib/cheffish/merged_config.rb
+++ b/lib/cheffish/merged_config.rb
@@ -2,30 +2,40 @@ class MergedConfig
def initialize(*configs)
@configs = configs
+ @merge_arrays = {}
end
attr_r... | Add ability to merge arrays
|
diff --git a/db/pending_migration_cleanups/20130917161734_drop_attachment_join_models.rb b/db/pending_migration_cleanups/20130917161734_drop_attachment_join_models.rb
index abc1234..def5678 100644
--- a/db/pending_migration_cleanups/20130917161734_drop_attachment_join_models.rb
+++ b/db/pending_migration_cleanups/20130... | Add pending migration to drop attachment join model tables
|
diff --git a/app/controllers/china_region_fu/fetch_options_controller.rb b/app/controllers/china_region_fu/fetch_options_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/china_region_fu/fetch_options_controller.rb
+++ b/app/controllers/china_region_fu/fetch_options_controller.rb
@@ -5,6 +5,11 @@ ... | Order the drop down options
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.