diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/controllers/healthcheck_controller.rb b/app/controllers/healthcheck_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/healthcheck_controller.rb
+++ b/app/controllers/healthcheck_controller.rb
@@ -1,4 +1,4 @@-class HealthcheckController < ActionController::Base
+class HealthcheckControll... | Make the health check controller an API controller
This means we won't get warnings about not protecting from a CSRF
attack.
|
diff --git a/language/module_spec.rb b/language/module_spec.rb
index abc1234..def5678 100644
--- a/language/module_spec.rb
+++ b/language/module_spec.rb
@@ -34,6 +34,17 @@ module LangModuleSpec::C2; end
}.should raise_error(TypeError)
end
+
+ it "allows for reopening a module subclass" do
+ class Modu... | Add spec for reopening a sub class of Module
|
diff --git a/lib/tasks/rename_slugs.rake b/lib/tasks/rename_slugs.rake
index abc1234..def5678 100644
--- a/lib/tasks/rename_slugs.rake
+++ b/lib/tasks/rename_slugs.rake
@@ -0,0 +1,30 @@+# This is a one time run script to change the slugs of two categories
+# and update all artefacts that have been tagged with those sec... | Rename two section slugs rake task
Last minute request to change slug for two sections. |
diff --git a/app/models/carto/helpers/billing_cycle.rb b/app/models/carto/helpers/billing_cycle.rb
index abc1234..def5678 100644
--- a/app/models/carto/helpers/billing_cycle.rb
+++ b/app/models/carto/helpers/billing_cycle.rb
@@ -2,8 +2,7 @@ module BillingCycle
def last_billing_cycle
day = period_end_date.... | Make the code a bit more readable
|
diff --git a/app/models/miq_ems_refresh_core_worker.rb b/app/models/miq_ems_refresh_core_worker.rb
index abc1234..def5678 100644
--- a/app/models/miq_ems_refresh_core_worker.rb
+++ b/app/models/miq_ems_refresh_core_worker.rb
@@ -6,7 +6,7 @@ self.required_roles = ["ems_inventory"]
def self.has_required_role?
- ... | Fix Core Refresher if there is no ems_vmware setting
If there is no prototype.ems_refresh setting currently the Ems Refresh
Core worker will raise an exception.
|
diff --git a/features/step_definitions/pagination_step_definitions.rb b/features/step_definitions/pagination_step_definitions.rb
index abc1234..def5678 100644
--- a/features/step_definitions/pagination_step_definitions.rb
+++ b/features/step_definitions/pagination_step_definitions.rb
@@ -4,6 +4,7 @@ end
Then(/^I can... | Include Price Paid information in data stored in the DB
|
diff --git a/lib/lifesaver/indexing/model_additions.rb b/lib/lifesaver/indexing/model_additions.rb
index abc1234..def5678 100644
--- a/lib/lifesaver/indexing/model_additions.rb
+++ b/lib/lifesaver/indexing/model_additions.rb
@@ -42,8 +42,9 @@ private
def enqueue_indexing(options)
+ operation = opt... | Use variable to remove 80 char violation
|
diff --git a/lib/vagrant/provisioners/puppet_server.rb b/lib/vagrant/provisioners/puppet_server.rb
index abc1234..def5678 100644
--- a/lib/vagrant/provisioners/puppet_server.rb
+++ b/lib/vagrant/provisioners/puppet_server.rb
@@ -10,11 +10,8 @@ attr_accessor :puppet_node
attr_accessor :options
- ... | Fix some issues with puppet server config inheritance
|
diff --git a/src/db/migrate/20120507081132_update_state_for_existing_deployments.rb b/src/db/migrate/20120507081132_update_state_for_existing_deployments.rb
index abc1234..def5678 100644
--- a/src/db/migrate/20120507081132_update_state_for_existing_deployments.rb
+++ b/src/db/migrate/20120507081132_update_state_for_exi... | Fix typo in UpdateStateForExistingDeployments migration
|
diff --git a/lib/angular-ui-rails.rb b/lib/angular-ui-rails.rb
index abc1234..def5678 100644
--- a/lib/angular-ui-rails.rb
+++ b/lib/angular-ui-rails.rb
@@ -4,9 +4,9 @@ module Rails
class Engine < ::Rails::Engine
# Enabling assets precompiling under rails 3.1
- if Rails.version >= '3.1'
+ if ::R... | Use the correct Rails module to determine Rails version
|
diff --git a/lib/autotest/fsevent.rb b/lib/autotest/fsevent.rb
index abc1234..def5678 100644
--- a/lib/autotest/fsevent.rb
+++ b/lib/autotest/fsevent.rb
@@ -28,4 +28,15 @@ end
end
+ Autotest.add_hook :initialize do
+ class ::Autotest
+ def wait_for_changes
+ begin
+ hook :waiting
+ ... | Include the waiting hook in the wait for changed files loop.
This fixes the condition where changes to any ignored files caused
fsevent to wake the thread but when autotest ignored the changed file it
went back to using its polling loop. By invoking the waiting hook again
fsevent is able to put the thread back to slee... |
diff --git a/Casks/subler.rb b/Casks/subler.rb
index abc1234..def5678 100644
--- a/Casks/subler.rb
+++ b/Casks/subler.rb
@@ -10,6 +10,8 @@ homepage 'https://subler.org/'
license :gpl
+ auto_updates true
+
app 'Subler.app'
zap delete: [
| Add auto_updates flag to Subler
|
diff --git a/spec/lib/llt/diff/parser/postag_spec.rb b/spec/lib/llt/diff/parser/postag_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/llt/diff/parser/postag_spec.rb
+++ b/spec/lib/llt/diff/parser/postag_spec.rb
@@ -33,22 +33,4 @@ postag.clean_analysis.should == res
end
end
-
- describe "#report" do... | Kill report spec for Postag
|
diff --git a/spec/realworld/parallel_install_spec.rb b/spec/realworld/parallel_install_spec.rb
index abc1234..def5678 100644
--- a/spec/realworld/parallel_install_spec.rb
+++ b/spec/realworld/parallel_install_spec.rb
@@ -9,7 +9,7 @@ G
bundle :install, :jobs => 4, :env => {"DEBUG" => "1"}
- (0..3).each {|i... | Check that at least one parallel worker is running.
The previous check that every worker is used was flaky on Travis.
|
diff --git a/worker/config/pre-daemonize/container.rb b/worker/config/pre-daemonize/container.rb
index abc1234..def5678 100644
--- a/worker/config/pre-daemonize/container.rb
+++ b/worker/config/pre-daemonize/container.rb
@@ -5,6 +5,10 @@ @lets ||= {}
@lets[method] ||= instance_eval(&block)
end
+... | Add media store to AppContainer
|
diff --git a/lib/neo4j/rake_tasks.rb b/lib/neo4j/rake_tasks.rb
index abc1234..def5678 100644
--- a/lib/neo4j/rake_tasks.rb
+++ b/lib/neo4j/rake_tasks.rb
@@ -1,5 +1,6 @@
require 'neo4j/rake_tasks/starnix_server_manager'
require 'neo4j/rake_tasks/windows_server_manager'
+load 'neo4j/rake_tasks/neo4j_server.rake'
re... | Load rake tasks automatically when gem is required
|
diff --git a/lib/scss_lint/engine.rb b/lib/scss_lint/engine.rb
index abc1234..def5678 100644
--- a/lib/scss_lint/engine.rb
+++ b/lib/scss_lint/engine.rb
@@ -4,11 +4,15 @@ class Engine
ENGINE_OPTIONS = { cache: false, syntax: :scss }
+ attr_reader :contents
+
def initialize(scss_or_filename)
if F... | Store actual string contents of SCSS files
This will enable us to write linters that can access the original file
in cases where line number or other such information can be inferred
separately.
Change-Id: I02182d1fdd19f1ce1a4c4e072c7a0655f1732889
Reviewed-on: https://gerrit.causes.com/16557
Reviewed-by: Shane da Sil... |
diff --git a/cookbooks/resolver/recipes/default.rb b/cookbooks/resolver/recipes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/resolver/recipes/default.rb
+++ b/cookbooks/resolver/recipes/default.rb
@@ -19,9 +19,14 @@ # = Requires
# * node[:resolver][:nameservers]
-template "/etc/resolv.conf" do
- source ... | Make the resolver cookbook fail if the nameservers attribute is empty
Former-commit-id: 2ee0b3c63e01aad599982341a14e8d29c130e223 [formerly 56e5c5b7d204c631e026c7e9df7a99352e75f85f] [formerly 1f49a6bdfe85caa9c7bdd096cebe9f942c52c406 [formerly 1af6b2dd61eb5e188db21bfbc652fdcb72211873]]
Former-commit-id: 6d4f842ecd1f15a... |
diff --git a/postcode_software.gemspec b/postcode_software.gemspec
index abc1234..def5678 100644
--- a/postcode_software.gemspec
+++ b/postcode_software.gemspec
@@ -15,5 +15,5 @@
s.add_development_dependency 'rspec', '~> 3.1'
s.add_development_dependency 'sinatra', '~> 1.4'
- s.add_development_dependency 'webmo... | Use newer webmock to work with Ruby 2.4
|
diff --git a/lib/vagrant-docker-compose/cap/linux/docker_compose_set_project_name.rb b/lib/vagrant-docker-compose/cap/linux/docker_compose_set_project_name.rb
index abc1234..def5678 100644
--- a/lib/vagrant-docker-compose/cap/linux/docker_compose_set_project_name.rb
+++ b/lib/vagrant-docker-compose/cap/linux/docker_com... | Set `COMPOSE_PROJECT_NAME` in an isolated file.
What
=
Set `COMPOSE_PROJECT_NAME` in an isolated file, that gets overwritten
each time in full and is loaded by `~/.profile`.
Why
=
This makes the text being added to `~/.profile` consistent and unchanged
regardless of what the `COMPOSE_PROJECT_NAME` is set to, which me... |
diff --git a/tweet_processor.rb b/tweet_processor.rb
index abc1234..def5678 100644
--- a/tweet_processor.rb
+++ b/tweet_processor.rb
@@ -1,43 +1,35 @@ module BBC
- # TweetProcessor contains all twitter text filtering and word tracking
class TweetProcessor
- attr_accessor :total_word_count
- attr_accessor :w... | Refactor for concise var naming
|
diff --git a/app/models/nwmls/member.rb b/app/models/nwmls/member.rb
index abc1234..def5678 100644
--- a/app/models/nwmls/member.rb
+++ b/app/models/nwmls/member.rb
@@ -23,6 +23,10 @@ end
end
+ def listings
+ @listings ||= Nwmls::Listing::TYPE_TO_CLASS_MAP.collect { |type, klass| public_send(klass.demoduli... | ADD listings method for Member |
diff --git a/lib/action_dispatch/exception_wrapper.rb b/lib/action_dispatch/exception_wrapper.rb
index abc1234..def5678 100644
--- a/lib/action_dispatch/exception_wrapper.rb
+++ b/lib/action_dispatch/exception_wrapper.rb
@@ -1,19 +1,15 @@ module ActionDispatch
class ExceptionWrapper
def extract_sources
- r... | Use map instead of each in extract_sources()
|
diff --git a/lib/action_mailroom/mailbox.rb b/lib/action_mailroom/mailbox.rb
index abc1234..def5678 100644
--- a/lib/action_mailroom/mailbox.rb
+++ b/lib/action_mailroom/mailbox.rb
@@ -31,6 +31,8 @@ inbound_email.delivered!
rescue => exception
inbound_email.failed!
+
+ # TODO: Include a reference to ... | Make a note for tying inbound email to exception
Then InboundEmail doesn't need to serialize or track the exception that went with it. The arrow will point the other way.
|
diff --git a/lib/punchblock/command_node.rb b/lib/punchblock/command_node.rb
index abc1234..def5678 100644
--- a/lib/punchblock/command_node.rb
+++ b/lib/punchblock/command_node.rb
@@ -32,6 +32,8 @@ @response.resource = other
execute!
rescue FutureResource::ResourceAlreadySetException
+ pb_logger... | Add some logging when catching these errors
Just for our own edification. The original is just a no-op, but we're concerned we might be missing important information.
|
diff --git a/lib/rails_multisite/railtie.rb b/lib/rails_multisite/railtie.rb
index abc1234..def5678 100644
--- a/lib/rails_multisite/railtie.rb
+++ b/lib/rails_multisite/railtie.rb
@@ -13,7 +13,7 @@ app.middleware.insert_after(ActiveRecord::ConnectionAdapters::ConnectionManagement, RailsMultisite::ConnectionMan... | Revert "Passing string to `ActiveRecord::Base.establish_connection` is deprecated."
This reverts commit f3d17937ddaa5f54d3c06b7cc1ff5dc4e7941123.
|
diff --git a/lib/upstream/tracker/helper.rb b/lib/upstream/tracker/helper.rb
index abc1234..def5678 100644
--- a/lib/upstream/tracker/helper.rb
+++ b/lib/upstream/tracker/helper.rb
@@ -40,6 +40,14 @@ end
end
+ def download_html(url, dest)
+ html = fetch_html(url)
+ FileUtils.mkdir_p(... | Add method to download html
|
diff --git a/pronto-tslint_npm.gemspec b/pronto-tslint_npm.gemspec
index abc1234..def5678 100644
--- a/pronto-tslint_npm.gemspec
+++ b/pronto-tslint_npm.gemspec
@@ -22,7 +22,7 @@ s.require_paths = ['lib']
s.requirements << 'tslint (in PATH)'
- s.add_dependency('pronto', '~> 0.9.1')
+ s.add_dependency('pronto',... | Update pronto to `0.10.0` version
|
diff --git a/cookbooks/cicd_infrastructure/metadata.rb b/cookbooks/cicd_infrastructure/metadata.rb
index abc1234..def5678 100644
--- a/cookbooks/cicd_infrastructure/metadata.rb
+++ b/cookbooks/cicd_infrastructure/metadata.rb
@@ -7,7 +7,5 @@ # long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
ver... | [DMG-319] Remove dependences for other modules
|
diff --git a/cookbooks/geoserver/attributes/default.rb b/cookbooks/geoserver/attributes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/geoserver/attributes/default.rb
+++ b/cookbooks/geoserver/attributes/default.rb
@@ -15,9 +15,7 @@ default['geoserver']['user'] = nil
default['geoserver']['group'] = nil
-#H... | Update the version of geoserver
|
diff --git a/libraries/consul_installation_package.rb b/libraries/consul_installation_package.rb
index abc1234..def5678 100644
--- a/libraries/consul_installation_package.rb
+++ b/libraries/consul_installation_package.rb
@@ -48,7 +48,7 @@ package options[:package_name] do
source options[:package_... | package: Use action ":remove" instead of ":uninstall"
Action ":uninstall" is not available for "package" resource.
|
diff --git a/lib/cb/models/cb_application_external.rb b/lib/cb/models/cb_application_external.rb
index abc1234..def5678 100644
--- a/lib/cb/models/cb_application_external.rb
+++ b/lib/cb/models/cb_application_external.rb
@@ -10,7 +10,7 @@ def initialize(args = {})
@job_did = args[:job_did] || ''
... | Add default SiteID (cbnsv) to external applications if none present
|
diff --git a/lib/ember-dev/documentation_generator.rb b/lib/ember-dev/documentation_generator.rb
index abc1234..def5678 100644
--- a/lib/ember-dev/documentation_generator.rb
+++ b/lib/ember-dev/documentation_generator.rb
@@ -37,7 +37,7 @@ end
def yuidoc_path
- Pathname.new("node_modules/yuidocjs/lib/cli... | Make documentation generation possible on windows.
|
diff --git a/lib/epub/maker/ocf/physical_container.rb b/lib/epub/maker/ocf/physical_container.rb
index abc1234..def5678 100644
--- a/lib/epub/maker/ocf/physical_container.rb
+++ b/lib/epub/maker/ocf/physical_container.rb
@@ -18,7 +18,11 @@ container.write(path_name, content)
}
end
- ... | Add warning for deprecated method
|
diff --git a/lib/globalize/active_record/act_macro.rb b/lib/globalize/active_record/act_macro.rb
index abc1234..def5678 100644
--- a/lib/globalize/active_record/act_macro.rb
+++ b/lib/globalize/active_record/act_macro.rb
@@ -16,7 +16,7 @@
has_many :translations, :class_name => translation_class.name,
... | Use destroy when deleting associated objects.
|
diff --git a/SwiftGenKit.podspec b/SwiftGenKit.podspec
index abc1234..def5678 100644
--- a/SwiftGenKit.podspec
+++ b/SwiftGenKit.podspec
@@ -22,6 +22,6 @@
s.source_files = "Sources/**/*.swift"
- s.dependency 'PathKit', '~> 0.7.0'
+ s.dependency 'PathKit', '~> 0.8.0'
s.framework = "Foundation"
end
| Update PathKit dependency to 0.8.0
|
diff --git a/lib/kosapi_client/oauth2_http_adapter.rb b/lib/kosapi_client/oauth2_http_adapter.rb
index abc1234..def5678 100644
--- a/lib/kosapi_client/oauth2_http_adapter.rb
+++ b/lib/kosapi_client/oauth2_http_adapter.rb
@@ -9,6 +9,7 @@ def initialize(credentials, root_url, opts = {})
auth_url = opts[:auth_u... | Set Ox as default MultiXML parser.
|
diff --git a/lib/license_finder/packages/licensing.rb b/lib/license_finder/packages/licensing.rb
index abc1234..def5678 100644
--- a/lib/license_finder/packages/licensing.rb
+++ b/lib/license_finder/packages/licensing.rb
@@ -7,30 +7,26 @@ # among the various sources of licenses we know about. In order of
# pr... | Make activation algorithm easier to read
|
diff --git a/lib/metrics/trello/idle_hours_average.rb b/lib/metrics/trello/idle_hours_average.rb
index abc1234..def5678 100644
--- a/lib/metrics/trello/idle_hours_average.rb
+++ b/lib/metrics/trello/idle_hours_average.rb
@@ -1,6 +1,6 @@ ProviderRepo.find!(:trello).register_metric :idle_hours_average do |metric|
metr... | Fix idle hous average trello (oeprator precedence bug)w
|
diff --git a/lib/rusic/uploaders/custom_attributes.rb b/lib/rusic/uploaders/custom_attributes.rb
index abc1234..def5678 100644
--- a/lib/rusic/uploaders/custom_attributes.rb
+++ b/lib/rusic/uploaders/custom_attributes.rb
@@ -22,7 +22,8 @@ params_hash['theme']['custom_attributes_attributes'][i] = {
... | Add input_type to attribute uploader |
diff --git a/assignments/assignment1.rb b/assignments/assignment1.rb
index abc1234..def5678 100644
--- a/assignments/assignment1.rb
+++ b/assignments/assignment1.rb
@@ -1,3 +1,5 @@+# Assumes SimpleSynth is installed and running with the desired MIDI instrument
+# https://github.com/notahat/simplesynth
$: << File.dirn... | Add comment about the SimpleSynth assumption to assignment 1.
|
diff --git a/lib/cinch/plugins/pax-timer/paxes.rb b/lib/cinch/plugins/pax-timer/paxes.rb
index abc1234..def5678 100644
--- a/lib/cinch/plugins/pax-timer/paxes.rb
+++ b/lib/cinch/plugins/pax-timer/paxes.rb
@@ -22,8 +22,8 @@ estimated: true },
{ type: 'east',
name: 'PAX East',
- ... | Add expected East 2017 date
From https://web.archive.org/web/20150406071050/http://massconvention.com/events/2017/02 |
diff --git a/spec/controllers/picture_controller_spec.rb b/spec/controllers/picture_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/picture_controller_spec.rb
+++ b/spec/controllers/picture_controller_spec.rb
@@ -14,26 +14,26 @@ end
it 'can serve a picture directly from the database' do
-... | Remove `visit` in controller specs
Using the capybara method `visit` in controller specs is deprecated.
(transferred from ManageIQ/manageiq@b66479e581846461c682db7faee61f91394d9111)
|
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -17,3 +17,7 @@ Then /^the response should have (\d+) items$/ do |size|
@response.size.sho... | Add step to check if response is non empty.
|
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -23,7 +23,12 @@ end
Then /^the response type should be (.*)$/ do |type|
- @response.cont... | Add ability to test for different mime types.
|
diff --git a/test/models/episode_story_handler_test.rb b/test/models/episode_story_handler_test.rb
index abc1234..def5678 100644
--- a/test/models/episode_story_handler_test.rb
+++ b/test/models/episode_story_handler_test.rb
@@ -20,5 +20,6 @@ episode = EpisodeStoryHandler.create_from_story!(story)
episode.wont... | Make sure json attribute names from camel to underscore work
|
diff --git a/lib/montrose/rule/nth_day_matcher.rb b/lib/montrose/rule/nth_day_matcher.rb
index abc1234..def5678 100644
--- a/lib/montrose/rule/nth_day_matcher.rb
+++ b/lib/montrose/rule/nth_day_matcher.rb
@@ -1,3 +1,5 @@+require "forwardable"
+
module Montrose
module Rule
class NthDayMatcher
| Add missing require for forwardable
|
diff --git a/pools.gemspec b/pools.gemspec
index abc1234..def5678 100644
--- a/pools.gemspec
+++ b/pools.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = "pools"
- s.version = "0.1.0"
+ s.version = "0.1.1"
s.date = Time.now.strftime('%Y-%m-%d')
s.su... | Add dependency support for Rails 3.1 |
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb
index abc1234..def5678 100644
--- a/config/initializers/secret_token.rb
+++ b/config/initializers/secret_token.rb
@@ -4,4 +4,4 @@ # If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at lea... | Add a default session store secret token
A session store secret token is alwasy needed, but in development
it's fine to use a random string.
|
diff --git a/config/projects/chef-marketplace.rb b/config/projects/chef-marketplace.rb
index abc1234..def5678 100644
--- a/config/projects/chef-marketplace.rb
+++ b/config/projects/chef-marketplace.rb
@@ -17,10 +17,10 @@ dependency "server-plugin-cookbooks"
dependency "reckoner"
dependency "biscotti"
+dependency "che... | Move chef compile up further to take advantage of omnibus caching
|
diff --git a/app/controllers/article_categories_controller.rb b/app/controllers/article_categories_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/article_categories_controller.rb
+++ b/app/controllers/article_categories_controller.rb
@@ -6,7 +6,7 @@ top_level_article_category_id = @article_catego... | Fix typo in untested code
|
diff --git a/app/helpers/effective_resources_wizard_helper.rb b/app/helpers/effective_resources_wizard_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/effective_resources_wizard_helper.rb
+++ b/app/helpers/effective_resources_wizard_helper.rb
@@ -2,8 +2,10 @@
module EffectiveResourcesWizardHelper
- def r... | Add horizontal: true to render_wizard_sidebar
|
diff --git a/lib/workless/scalers/heroku_cedar.rb b/lib/workless/scalers/heroku_cedar.rb
index abc1234..def5678 100644
--- a/lib/workless/scalers/heroku_cedar.rb
+++ b/lib/workless/scalers/heroku_cedar.rb
@@ -0,0 +1,33 @@+require 'heroku'
+
+module Delayed
+ module Workless
+ module Scaler
+
+ class HerokuCeda... | Add a scaler for the new Cedar stack.
|
diff --git a/app/controllers/api/drawings_controller.rb b/app/controllers/api/drawings_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/drawings_controller.rb
+++ b/app/controllers/api/drawings_controller.rb
@@ -10,12 +10,11 @@ end
def show
- # annoying bug with obfuscate_id, need to deob... | [161] Use more performant find instead of scope and 404 if record invalid |
diff --git a/lib/dimples/post.rb b/lib/dimples/post.rb
index abc1234..def5678 100644
--- a/lib/dimples/post.rb
+++ b/lib/dimples/post.rb
@@ -1,18 +1,32 @@+# frozen_string_literal: true
+
module Dimples
class Post < Page
- FILENAME_DATE = /^(\d{4})-(\d{2})-(\d{2})/
+ POST_FILENAME = /(\d{4})-(\d{2})-(\d{2})-(.... | Rename the name regex constant, switch to the right layout, add the output_directory method
|
diff --git a/lib/link_helpers.rb b/lib/link_helpers.rb
index abc1234..def5678 100644
--- a/lib/link_helpers.rb
+++ b/lib/link_helpers.rb
@@ -16,6 +16,13 @@ cs.map { |c| "<a href='/categories/#{c}'>#{c}</a>" }
end
+ #
+ # link an article
+ #
+ def link_article name
+ link_to name, "/articles/#{name.downc... | Add link helper for linking articles
|
diff --git a/lib/powify/utils.rb b/lib/powify/utils.rb
index abc1234..def5678 100644
--- a/lib/powify/utils.rb
+++ b/lib/powify/utils.rb
@@ -17,7 +17,7 @@ def install
uninstall
$stdout.puts "Cloning powify.dev from github and bundling powify.dev..."
- %x{git clone -q git@github.com:sethva... | Use https url for powify repository
Using the https url allows those of us who are not the owners of the powify project to use `powify utils install` |
diff --git a/lib/secret_santa.rb b/lib/secret_santa.rb
index abc1234..def5678 100644
--- a/lib/secret_santa.rb
+++ b/lib/secret_santa.rb
@@ -1,27 +1,30 @@ class SecretSanta
+ # Create the Secret Santa list
def self.create_list(names)
if names.length <= 2
"ERROR: List too short"
elsif names.length !... | Add better comments and messages
|
diff --git a/settings_on_rails.gemspec b/settings_on_rails.gemspec
index abc1234..def5678 100644
--- a/settings_on_rails.gemspec
+++ b/settings_on_rails.gemspec
@@ -22,7 +22,8 @@ spec.required_ruby_version = '>= 1.9'
spec.add_dependency 'activerecord', '>= 3.1'
- spec.add_development_dependency 'bundler'
- spe... | Add sqlite3 as test db
|
diff --git a/comrad.gemspec b/comrad.gemspec
index abc1234..def5678 100644
--- a/comrad.gemspec
+++ b/comrad.gemspec
@@ -14,7 +14,7 @@ s.required_ruby_version = '>= 1.9.3'
s.add_dependency 'rest-client', '~> 1.7.0'
s.add_dependency 'chef', '>= 11.0'
- s.add_dependency 'slack-post', '~> 0.3'
+ s.add_dependency... | Make sure we're pulling in at least 0.3.1 of slack-post
|
diff --git a/views/instagram.rb b/views/instagram.rb
index abc1234..def5678 100644
--- a/views/instagram.rb
+++ b/views/instagram.rb
@@ -4,13 +4,9 @@ def parse(message)
message_array = message.split(' ')
message_array.map! do |word|
- if word.include?(Views::HASHMARK)
- popul... | Simplify methods of Instagram module
* Use early returns
|
diff --git a/spec/codeclimate_ci/api_requester_spec.rb b/spec/codeclimate_ci/api_requester_spec.rb
index abc1234..def5678 100644
--- a/spec/codeclimate_ci/api_requester_spec.rb
+++ b/spec/codeclimate_ci/api_requester_spec.rb
@@ -0,0 +1,19 @@+require 'spec_helper'
+
+module CodeclimateCi
+ describe ApiRequester do
+ ... | Add test spec for ApiRequester
|
diff --git a/spec/stress/connection_open_close_spec.rb b/spec/stress/connection_open_close_spec.rb
index abc1234..def5678 100644
--- a/spec/stress/connection_open_close_spec.rb
+++ b/spec/stress/connection_open_close_spec.rb
@@ -0,0 +1,17 @@+require "spec_helper"
+
+unless RUBY_ENGINE == "jruby"
+ describe Bunny::Sess... | Move this to stress tests
Excluded on JRuby because aggressive thread creation and shutdown
in a loop is really slow.
|
diff --git a/Sources/Swaggen/templates/Podspec.podspec b/Sources/Swaggen/templates/Podspec.podspec
index abc1234..def5678 100644
--- a/Sources/Swaggen/templates/Podspec.podspec
+++ b/Sources/Swaggen/templates/Podspec.podspec
@@ -2,8 +2,8 @@ s.source_files = '*.swift'
s.name = '{{ options.name }}'
s.author... | Fix podspec generation if spec have empty version or description
Also fixed case when version have 'v' letter
|
diff --git a/lib/active_interaction.rb b/lib/active_interaction.rb
index abc1234..def5678 100644
--- a/lib/active_interaction.rb
+++ b/lib/active_interaction.rb
@@ -21,7 +21,8 @@ require 'active_interaction/base'
I18n.backend.load_translations(
- Dir.glob(File.join(%w(lib active_interaction locale *.yml))))
+ Dir.... | Put parenthesis where it belongs
|
diff --git a/lib/akamai_api/cp_code.rb b/lib/akamai_api/cp_code.rb
index abc1234..def5678 100644
--- a/lib/akamai_api/cp_code.rb
+++ b/lib/akamai_api/cp_code.rb
@@ -13,14 +13,16 @@ end
def self.all
+ result = []
basic_auth *AkamaiApi.config[:auth]
client.request('getCPCodes').body[:multi_r... | Fix CpCode getter. Create a CpCode item for each XML item in the response and return it. (Also fixed tests)
|
diff --git a/lib/bishop/github_hook.rb b/lib/bishop/github_hook.rb
index abc1234..def5678 100644
--- a/lib/bishop/github_hook.rb
+++ b/lib/bishop/github_hook.rb
@@ -5,18 +5,27 @@ module Bishop
# see http://help.github.com/post-receive-hooks/
class GithubHook < Bishop::Base
+
post "/#{ENV["BISHOP_API_KEY"]}" ... | Fix weird issue only present on heroku
|
diff --git a/lib/cch/config/runners.rb b/lib/cch/config/runners.rb
index abc1234..def5678 100644
--- a/lib/cch/config/runners.rb
+++ b/lib/cch/config/runners.rb
@@ -12,8 +12,11 @@
runner.watch(%r{^spec/spec_helper.rb$}, proc { %w(spec) })
runner.watch(%r{^spec/rails_helper.rb$}, proc { %w(spec) })
- runner.watc... | Improve rspec runner to configure request specs
|
diff --git a/app/controllers/ems_middleware_controller.rb b/app/controllers/ems_middleware_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/ems_middleware_controller.rb
+++ b/app/controllers/ems_middleware_controller.rb
@@ -1,5 +1,6 @@ class EmsMiddlewareController < ApplicationController
include Em... | Add EmsCommonAngular mixin to ems_middleware controller
|
diff --git a/app/parameters/lottery_entrant_parameters.rb b/app/parameters/lottery_entrant_parameters.rb
index abc1234..def5678 100644
--- a/app/parameters/lottery_entrant_parameters.rb
+++ b/app/parameters/lottery_entrant_parameters.rb
@@ -12,6 +12,8 @@ state
country
number_of_tickets
+ pre_se... | Add external id to lottery entrant parameters
|
diff --git a/app/presenters/renalware/doctor_presenter.rb b/app/presenters/renalware/doctor_presenter.rb
index abc1234..def5678 100644
--- a/app/presenters/renalware/doctor_presenter.rb
+++ b/app/presenters/renalware/doctor_presenter.rb
@@ -1,9 +1,10 @@ require_dependency "renalware"
+require_dependency "renalware/addr... | Remove namespacing by ensure it's required
|
diff --git a/lib/analytics/scripts/usernames_to_csv.rb b/lib/analytics/scripts/usernames_to_csv.rb
index abc1234..def5678 100644
--- a/lib/analytics/scripts/usernames_to_csv.rb
+++ b/lib/analytics/scripts/usernames_to_csv.rb
@@ -30,3 +30,13 @@ end
end
end
+
+# courses, instructor usernames and ids
+CSV.open("/r... | Add another query to the scripts archive
|
diff --git a/lib/easy_app_helper/logger/initializer.rb b/lib/easy_app_helper/logger/initializer.rb
index abc1234..def5678 100644
--- a/lib/easy_app_helper/logger/initializer.rb
+++ b/lib/easy_app_helper/logger/initializer.rb
@@ -21,7 +21,13 @@ def self.build_logger
log_device = if EasyAppHelper.config[:d... | Fix for blocking log-file when declared in the config file and pointing to a file the user cannot write to...
|
diff --git a/lib/express_templates/template/handler.rb b/lib/express_templates/template/handler.rb
index abc1234..def5678 100644
--- a/lib/express_templates/template/handler.rb
+++ b/lib/express_templates/template/handler.rb
@@ -7,7 +7,7 @@
def call(template)
# returns a string to be eval'd
- Ex... | Mark everything as html_safe for now so we can use express templates within haml layouts
|
diff --git a/yard_extensions.rb b/yard_extensions.rb
index abc1234..def5678 100644
--- a/yard_extensions.rb
+++ b/yard_extensions.rb
@@ -1,9 +1,6 @@-require 'pp'
class MyModuleHandler < YARD::Handlers::Ruby::Base
handles method_call(:property)
-
-
def process
name = statement.parameters.first.jump(:tstr... | Remove white space remove require 'pp'
|
diff --git a/test/integration/round_creation_test.rb b/test/integration/round_creation_test.rb
index abc1234..def5678 100644
--- a/test/integration/round_creation_test.rb
+++ b/test/integration/round_creation_test.rb
@@ -0,0 +1,11 @@+require 'test_helper'
+
+class RoundCreationTest < ActionDispatch::IntegrationTest
+ ... | Test flow of submitting form from home page
|
diff --git a/lib/rubella/input/base.rb b/lib/rubella/input/base.rb
index abc1234..def5678 100644
--- a/lib/rubella/input/base.rb
+++ b/lib/rubella/input/base.rb
@@ -37,6 +37,10 @@ "concrete implementation"
end
+ # Passes each dataset trought the given block.
+ #
+ # @param pointer to b... | Add some docs for each
|
diff --git a/jekyll-theme-type.gemspec b/jekyll-theme-type.gemspec
index abc1234..def5678 100644
--- a/jekyll-theme-type.gemspec
+++ b/jekyll-theme-type.gemspec
@@ -14,9 +14,9 @@ f.match(%r{^(assets|pages|_(includes|layouts|sass)/|(LICENSE|README|tags.html)((\.(txt|md|markdown)|$)))}i)
end
- spec.add_runtime_... | Update dependencies to match versions used by GitHub Pages
|
diff --git a/app/controllers/option_sets_controller.rb b/app/controllers/option_sets_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/option_sets_controller.rb
+++ b/app/controllers/option_sets_controller.rb
@@ -1,9 +1,6 @@ class OptionSetsController < ApplicationController
before_action :decode_has... | Make decode_hashid before callback private
|
diff --git a/app/decorators/meals/formula_decorator.rb b/app/decorators/meals/formula_decorator.rb
index abc1234..def5678 100644
--- a/app/decorators/meals/formula_decorator.rb
+++ b/app/decorators/meals/formula_decorator.rb
@@ -30,16 +30,6 @@ roles.decorate.map(&:title_with_suffix).join(", ")
end
- Sig... | 72: Remove old _nice methods on FormulaDecorator
|
diff --git a/rome.rb b/rome.rb
index abc1234..def5678 100644
--- a/rome.rb
+++ b/rome.rb
@@ -1,10 +1,8 @@ class Rome < Formula
desc "A shared cache tool for Carthage on S3"
homepage "https://github.com/blender/Rome"
- url "https://github.com/blender/Rome/releases/download/v0.13.0.33/rome.zip"
- sha256 "ffc96682... | Update Rome formula to 0.13.1.35.
And remove the redundant version from formula since it can be detected
from the URL.
|
diff --git a/lib/sshkit/coordinator.rb b/lib/sshkit/coordinator.rb
index abc1234..def5678 100644
--- a/lib/sshkit/coordinator.rb
+++ b/lib/sshkit/coordinator.rb
@@ -6,7 +6,7 @@
def initialize(raw_hosts)
@raw_hosts = Array(raw_hosts)
- raise NoValidHosts unless Array(raw_hosts).any?
+ raise SSHKit... | Fix a constant namespacing error
|
diff --git a/lib/tasks/01_support.rake b/lib/tasks/01_support.rake
index abc1234..def5678 100644
--- a/lib/tasks/01_support.rake
+++ b/lib/tasks/01_support.rake
@@ -0,0 +1,18 @@+# from http://metaskills.net/2010/05/26/the-alias_method_chain-of-rake-override-rake-task/
+Rake::TaskManager.class_eval do
+ def alias_task(... | Add missing support file for override_task
|
diff --git a/lib/doorkeeper/oauth/token_request.rb b/lib/doorkeeper/oauth/token_request.rb
index abc1234..def5678 100644
--- a/lib/doorkeeper/oauth/token_request.rb
+++ b/lib/doorkeeper/oauth/token_request.rb
@@ -1,11 +1,10 @@ module Doorkeeper
module OAuth
class TokenRequest
- attr_accessor :pre_auth, :re... | Remove unused `client` instance variable
|
diff --git a/lib/tasks/panopticon.rake b/lib/tasks/panopticon.rake
index abc1234..def5678 100644
--- a/lib/tasks/panopticon.rake
+++ b/lib/tasks/panopticon.rake
@@ -0,0 +1,36 @@+# encoding: utf-8
+
+namespace :panopticon do
+
+ desc "Register application metadata with panopticon"
+ task :register => :environment do
+... | Add task to register calculator with Panopticon
For now this has a hard-coded copy of the text from the landing page.
In future we should refactor this to store this copy somewhere that can
be accessed by the view, and the registerer.
|
diff --git a/lib/flowdock_rails/models/flowdock.rb b/lib/flowdock_rails/models/flowdock.rb
index abc1234..def5678 100644
--- a/lib/flowdock_rails/models/flowdock.rb
+++ b/lib/flowdock_rails/models/flowdock.rb
@@ -14,8 +14,8 @@ end
def post_message(message)
+ return unless FlowdockRails.configuration.val... | Return nil if env is invalid
|
diff --git a/lib/gettext_i18n_rails/haml_parser.rb b/lib/gettext_i18n_rails/haml_parser.rb
index abc1234..def5678 100644
--- a/lib/gettext_i18n_rails/haml_parser.rb
+++ b/lib/gettext_i18n_rails/haml_parser.rb
@@ -19,10 +19,9 @@
text = IO.readlines(file).join
- #first pass with real haml
haml = Ham... | Use RubyGettextExtractor for Haml files
Signed-off-by: Michael Grosser <0de5a769f358d30e797c5fa02faa5d5330048565@gmail.com> |
diff --git a/lib/tasks/operations/update_status.rb b/lib/tasks/operations/update_status.rb
index abc1234..def5678 100644
--- a/lib/tasks/operations/update_status.rb
+++ b/lib/tasks/operations/update_status.rb
@@ -0,0 +1,41 @@+require 'dry/monads/result'
+require 'dry/monads/do'
+
+module Tasks
+ module Operations
+ ... | Create operation for updating task status
|
diff --git a/lib/mindbody-api/services/site_service.rb b/lib/mindbody-api/services/site_service.rb
index abc1234..def5678 100644
--- a/lib/mindbody-api/services/site_service.rb
+++ b/lib/mindbody-api/services/site_service.rb
@@ -4,7 +4,7 @@ service 'SiteService'
operation :get_sites
- operation :get... | Allow locals for get locations |
diff --git a/lib/plugins/commit_msg/trailing_period.rb b/lib/plugins/commit_msg/trailing_period.rb
index abc1234..def5678 100644
--- a/lib/plugins/commit_msg/trailing_period.rb
+++ b/lib/plugins/commit_msg/trailing_period.rb
@@ -0,0 +1,13 @@+module Causes::GitHook
+ class TrailingPeriod < HookSpecificCheck
+ includ... | Add 'trailing period' commit message lint
As suggested by jdunck, this is another common issue we have.
Change-Id: Ibb329726b59fcf43afa22e68abef148de0fc2abe
Reviewed-on: https://gerrit.causes.com/22221
Tested-by: Aiden Scandella <1faf1e8390cdac9204f160c35828cc423b7acd7b@causes.com>
Reviewed-by: Shane da Silva <6f6e68... |
diff --git a/Casks/lytro-desktop.rb b/Casks/lytro-desktop.rb
index abc1234..def5678 100644
--- a/Casks/lytro-desktop.rb
+++ b/Casks/lytro-desktop.rb
@@ -0,0 +1,14 @@+cask :v1 => 'lytro-desktop' do
+ version '4.2.1'
+ sha256 '5ebe2cdd0b80749f3ad97fd319ab6c4cea4045f6705d10ce28b191935bbf561b'
+
+ # amazonaws.com is the... | Create new cask for Lytro Desktop, an app to sync and manipulate light field images from Lytro cameras.
|
diff --git a/lib/tracers/apimonitor.rb b/lib/tracers/apimonitor.rb
index abc1234..def5678 100644
--- a/lib/tracers/apimonitor.rb
+++ b/lib/tracers/apimonitor.rb
@@ -0,0 +1,17 @@+# Copyright (c) 2011, Jon Maken
+# License: 3-clause BSD (see project LICENSE file)
+
+module RCI
+ module Tracers
+ class APIMonitor
+
+ ... | Add stubbed APIMonitor trace provider.
|
diff --git a/lib/typeclass/function.rb b/lib/typeclass/function.rb
index abc1234..def5678 100644
--- a/lib/typeclass/function.rb
+++ b/lib/typeclass/function.rb
@@ -17,13 +17,9 @@
fail NotImplementedError unless instance
- if instance.implements? name
- instance.transmit name, *args
- elsif b... | Improve code style a bit
|
diff --git a/view.rb b/view.rb
index abc1234..def5678 100644
--- a/view.rb
+++ b/view.rb
@@ -1,14 +1,38 @@
class View
-
+ attr_reader :players, :player_name
def initialize
+ @player_name = ''
+ @players =[]
+ initialize_game_render
end
def render_player_names
end
def initialize_game_ren... | Complete user input in View class
|
diff --git a/cookbooks/nagios/recipes/client_package.rb b/cookbooks/nagios/recipes/client_package.rb
index abc1234..def5678 100644
--- a/cookbooks/nagios/recipes/client_package.rb
+++ b/cookbooks/nagios/recipes/client_package.rb
@@ -18,11 +18,21 @@ # limitations under the License.
#
-%w{
- nagios-nrpe-server
- nag... | Add support for install NRPE via package on CentOS and similar systems
Former-commit-id: 2f1bb3bc6475fa16b61a921e0898e18ec515ac40 [formerly 46a219961f40fe59231d731019375814a9c4b867] [formerly 1cedf1c9e07e1703ebb42f7a53e59f990ace7533 [formerly 0ce0555029846c77b64dba610210ef9a7e992aa7]]
Former-commit-id: 882ad1bc0424b7... |
diff --git a/recipes/apt_repository.rb b/recipes/apt_repository.rb
index abc1234..def5678 100644
--- a/recipes/apt_repository.rb
+++ b/recipes/apt_repository.rb
@@ -1,6 +1,8 @@ #
#
#
+
+package 'gnupg'
apt_repository 'cvmfs' do
uri 'http://cvmrepo.web.cern.ch/cvmrepo/apt'
| Install gpg for key management
|
diff --git a/rails-footnotes.gemspec b/rails-footnotes.gemspec
index abc1234..def5678 100644
--- a/rails-footnotes.gemspec
+++ b/rails-footnotes.gemspec
@@ -17,6 +17,7 @@ s.add_dependency "rails", ">= 3.2"
s.add_development_dependency "rspec-rails", '~> 3.3.2'
+ s.add_development_dependency "sprockets-rails", '... | Downgrade sprockets-rails for now, causing issues in test
|
diff --git a/redis-semaphore.gemspec b/redis-semaphore.gemspec
index abc1234..def5678 100644
--- a/redis-semaphore.gemspec
+++ b/redis-semaphore.gemspec
@@ -14,7 +14,7 @@
s.add_dependency 'redis'
s.add_development_dependency 'rake'
- s.add_development_dependency 'rspec'
+ s.add_development_dependency 'rspec', ... | Make sure correct version of Rspec is used in tests
|
diff --git a/ruby/spec/bson/element_spec.rb b/ruby/spec/bson/element_spec.rb
index abc1234..def5678 100644
--- a/ruby/spec/bson/element_spec.rb
+++ b/ruby/spec/bson/element_spec.rb
@@ -19,18 +19,38 @@
describe "#to_bson" do
- let(:element) do
- described_class.new("name", "value")
+ context "when the f... | Add symbol test in element
|
diff --git a/db/migrate/20130729085457_create_financial_report.rb b/db/migrate/20130729085457_create_financial_report.rb
index abc1234..def5678 100644
--- a/db/migrate/20130729085457_create_financial_report.rb
+++ b/db/migrate/20130729085457_create_financial_report.rb
@@ -2,8 +2,8 @@ def change
create_table :fin... | Use correct hash syntax in migration
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.