diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/rails-settings/base.rb b/lib/rails-settings/base.rb
index abc1234..def5678 100644
--- a/lib/rails-settings/base.rb
+++ b/lib/rails-settings/base.rb
@@ -2,7 +2,7 @@ module Base
def self.included(base)
base.class_eval do
- has_one :setting_object, :as => :target, :dependent => :delet... | has_one: Use "autosave" option and "mark_for_destruction"
|
diff --git a/lib/restforce/file_part.rb b/lib/restforce/file_part.rb
index abc1234..def5678 100644
--- a/lib/restforce/file_part.rb
+++ b/lib/restforce/file_part.rb
@@ -3,15 +3,15 @@ case Faraday::VERSION
when /\A0\./
require 'faraday/upload_io'
-when /\A1\.9/
- # Faraday v1.9 automatically includes the `faraday-m... | Load the right code for multipart support with Faraday v1.10.x
|
diff --git a/lib/riddle/auto_version.rb b/lib/riddle/auto_version.rb
index abc1234..def5678 100644
--- a/lib/riddle/auto_version.rb
+++ b/lib/riddle/auto_version.rb
@@ -6,13 +6,12 @@ case version
when '0.9.8', '0.9.9'
require "riddle/#{version}"
- when '1.10-beta', '1.10-id64-beta', '1.10-dev'
+ w... | Remove forced exit, and replacing repetition with regex.
|
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake
index abc1234..def5678 100644
--- a/lib/tasks/testing.rake
+++ b/lib/tasks/testing.rake
@@ -0,0 +1,5 @@+
+Rake::TestTask.new("test:integration:flows") do |t|
+ t.libs << "test"
+ t.test_files = Dir["test/integration/flows/**/*_test.rb"]
+end
| Add rake task for running all flow integration tests.
|
diff --git a/lib/tictactoe_rules.rb b/lib/tictactoe_rules.rb
index abc1234..def5678 100644
--- a/lib/tictactoe_rules.rb
+++ b/lib/tictactoe_rules.rb
@@ -29,4 +29,14 @@ board.valid_slots == [] || winning_indices(board, "X") || winning_indices(board, "O") ? true : false
end
+ def winner(ttt_board, turn)
+ if... | Add logic to tell who won
|
diff --git a/lib/sov/utils/constants.rb b/lib/sov/utils/constants.rb
index abc1234..def5678 100644
--- a/lib/sov/utils/constants.rb
+++ b/lib/sov/utils/constants.rb
@@ -3,7 +3,7 @@ module Utils
VERSION = '0.2.1'
PACKAGE_NAME = 'sov-utils'
- PSQL_VERSION = '9.4.12'
+ PSQL_VERSION = '9.6.6'
BUNDLER... | Upgrade psql to version 9.6.6
|
diff --git a/lib/specjour/quiet_fork.rb b/lib/specjour/quiet_fork.rb
index abc1234..def5678 100644
--- a/lib/specjour/quiet_fork.rb
+++ b/lib/specjour/quiet_fork.rb
@@ -4,9 +4,9 @@
def self.fork(&block)
@pid = Kernel.fork do
+ at_exit { exit! }
$stdout = StringIO.new
block.call
- exit!
... | Fix another inheriting exit handler
|
diff --git a/lib/spree_komoju/engine.rb b/lib/spree_komoju/engine.rb
index abc1234..def5678 100644
--- a/lib/spree_komoju/engine.rb
+++ b/lib/spree_komoju/engine.rb
@@ -11,6 +11,7 @@ app.config.spree.payment_methods << Spree::Gateway::KomojuCreditCard
app.config.spree.payment_methods << Spree::Gateway::Kom... | Add Spree::Gateway::KomojuPayEasy to spree payment methods
|
diff --git a/config/initializers/delayed_job_config.rb b/config/initializers/delayed_job_config.rb
index abc1234..def5678 100644
--- a/config/initializers/delayed_job_config.rb
+++ b/config/initializers/delayed_job_config.rb
@@ -1,5 +1,5 @@-Delayed::Worker.max_attempts = 100
-Delayed::Worker.max_run_time = 1.week
+Dela... | Adjust delayed_job config to something more sane
The configured max runtime and max attempts were left as set in the initial
code dump fron the first version of the website. The rationale for the
chosen figures is lost in the mists of time but seem somewhat large.
The 1 week max runtime may have been to send out the ... |
diff --git a/lib/tasks/sample_data.rake b/lib/tasks/sample_data.rake
index abc1234..def5678 100644
--- a/lib/tasks/sample_data.rake
+++ b/lib/tasks/sample_data.rake
@@ -2,6 +2,7 @@ desc "Fill database with sample data"
task :populate => :environment do
make_users
+ make_jobs
end
end
@@ -22,4 +23,24 @... | Create jobs with other sample data
|
diff --git a/lib/zopim_rails/chatbox.rb b/lib/zopim_rails/chatbox.rb
index abc1234..def5678 100644
--- a/lib/zopim_rails/chatbox.rb
+++ b/lib/zopim_rails/chatbox.rb
@@ -4,7 +4,7 @@ class Chatbox
def render_script
<<-JAVASCRIPT
- <script type="text/javascript">function zopim_chat(){$('[__jx__id]').rem... | Fix script for Chatbox to work with Turbolinks 5
|
diff --git a/lib/rubrics/smoking_status.rb b/lib/rubrics/smoking_status.rb
index abc1234..def5678 100644
--- a/lib/rubrics/smoking_status.rb
+++ b/lib/rubrics/smoking_status.rb
@@ -0,0 +1,48 @@+module FHIR
+ class SmokingStatus < FHIR::Rubrics
+
+ SMOKING_CODES = [
+ '449868002', #Current every day smoker
+ ... | Add rubric for smoking status.
|
diff --git a/lib/sprockets/webp/railtie.rb b/lib/sprockets/webp/railtie.rb
index abc1234..def5678 100644
--- a/lib/sprockets/webp/railtie.rb
+++ b/lib/sprockets/webp/railtie.rb
@@ -2,7 +2,7 @@
module Sprockets
module WebP
- class Railtie < (::Rails::VERSION::MAJOR < 4 ? ::Rails::Engine : ::Rails::Railtie)
+ ... | Drop support of Rails 3
|
diff --git a/db_backup.rb b/db_backup.rb
index abc1234..def5678 100644
--- a/db_backup.rb
+++ b/db_backup.rb
@@ -3,28 +3,30 @@ require 'yaml'
config = YAML.load_file(File.expand_path("../config.yml", __FILE__))
-project_config, amazon_config = config["project"], config["amazon"]
+project, amazon = config["project"],... | Clean up variable names and file paths
|
diff --git a/mithril_rails.gemspec b/mithril_rails.gemspec
index abc1234..def5678 100644
--- a/mithril_rails.gemspec
+++ b/mithril_rails.gemspec
@@ -17,8 +17,8 @@ s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
s.test_files = Dir["test/**/*"]
- s.add_dependency 'execjs'
- s.... | Set execjs version dependency, lower Rails dependency to 3.2.
|
diff --git a/app/controllers/users/sessions_controller.rb b/app/controllers/users/sessions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/users/sessions_controller.rb
+++ b/app/controllers/users/sessions_controller.rb
@@ -6,15 +6,18 @@ # super
# end
- # POST /resource/sign_in
- # def creat... | Add new actions to toggle user status (offline or online)
This occurs when the user is logged or logged out |
diff --git a/lib/openlogi/base_object.rb b/lib/openlogi/base_object.rb
index abc1234..def5678 100644
--- a/lib/openlogi/base_object.rb
+++ b/lib/openlogi/base_object.rb
@@ -14,7 +14,9 @@ super
end
+ property :error
property :errors
+ property :error_description
def valid?
errors.em... | Add error/error_description back to BaseObject
Otherwise these will raise warnings when creating an object from the
response.
|
diff --git a/lib/serverspec/type/base.rb b/lib/serverspec/type/base.rb
index abc1234..def5678 100644
--- a/lib/serverspec/type/base.rb
+++ b/lib/serverspec/type/base.rb
@@ -6,7 +6,9 @@ end
def to_s
- type = self.class.name.split(':')[-1]
+ type = self.class.name.split(':')[-1]
+ type.... | Fix to display "KenrlModule" as "Kernel module"
|
diff --git a/lib/story_branch/version.rb b/lib/story_branch/version.rb
index abc1234..def5678 100644
--- a/lib/story_branch/version.rb
+++ b/lib/story_branch/version.rb
@@ -1,5 +1,5 @@ # frozen_string_literal: true
module StoryBranch
- VERSION = '0.3.1'
+ VERSION = '0.3.2'
end
| Bump to 0.3.2 to test CI/CD
|
diff --git a/down.gemspec b/down.gemspec
index abc1234..def5678 100644
--- a/down.gemspec
+++ b/down.gemspec
@@ -16,5 +16,6 @@ spec.add_development_dependency "rake"
spec.add_development_dependency "minitest", "~> 5.8"
spec.add_development_dependency "webmock"
+ spec.add_development_dependency "addressable", "... | Fix tests for Ruby 1.9.3
Addressable >= 2.5.0 comes with public_suffix dependency, which requires
Ruby >= 2.0.
|
diff --git a/deploy/before_symlink.rb b/deploy/before_symlink.rb
index abc1234..def5678 100644
--- a/deploy/before_symlink.rb
+++ b/deploy/before_symlink.rb
@@ -1 +1 @@-run "cd #{release_path} && RAILS_ENV=production bundle exec rake assets:precompile"
+run "cd #{release_path} && RAILS_ENV=production bundle exec rake a... | Add trace output for assets:precompile
|
diff --git a/Formula/haskell-platform.rb b/Formula/haskell-platform.rb
index abc1234..def5678 100644
--- a/Formula/haskell-platform.rb
+++ b/Formula/haskell-platform.rb
@@ -1,16 +1,16 @@ require 'formula'
class HaskellPlatform < Formula
- url 'http://hackage.haskell.org/platform/2010.2.0.0/haskell-platform-2010.2.0... | Update Haskell Platform to 2011.2.0.0.
Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
|
diff --git a/config/deploy.rb b/config/deploy.rb
index abc1234..def5678 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -15,6 +15,8 @@ config/redis.yml
config/secrets.yml
}
+
+set :log_level, :info
namespace :deploy do
| Reduce the level of detail in the output
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -3,7 +3,7 @@ get "fixtures/*filename", :action => :fixtures
end
match "fixtures/*filename", :to => "spec#fixtures"
- match "/(:suite)", :to => "spec#index", defaults: { suite: false... | Replace default suite param value with nil
False will throw NoMethodError.
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,5 @@ Rails.application.routes.draw do
- devise_for :users, :controllers => { registrations: 'registrations' }
+ devise_for :users, :controllers => { registrations: 'registrations', s... | Add route for child sessions controller
|
diff --git a/config/deploy.rb b/config/deploy.rb
index abc1234..def5678 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -13,3 +13,5 @@ set :keep_releases, 5
set :bundle_without, %w{development test deployment}.join(' ')
+
+set :puma_workers, 1
| Set the number of puma workers to 1
The machine only have 1 CPU so it is better to only have 1 worker
otherwise the two workers would be fighting against each other and may
cause timeout on boot.
|
diff --git a/test/pass_manager_builder_test.rb b/test/pass_manager_builder_test.rb
index abc1234..def5678 100644
--- a/test/pass_manager_builder_test.rb
+++ b/test/pass_manager_builder_test.rb
@@ -0,0 +1,33 @@+require 'test_helper'
+require 'llvm/transforms/builder'
+
+class PassManagerBuilderTest < Test::Unit::TestCas... | Add some pass manager builder tests
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -40,4 +40,6 @@ resources :challenges, only: [:new, :create, :index]
root :to => 'home#index'
+ match '/about' => 'high_voltage/pages#show', :id => 'about'
+
end
| Add route for legacy about URL
|
diff --git a/app/decorators/goal_decorator.rb b/app/decorators/goal_decorator.rb
index abc1234..def5678 100644
--- a/app/decorators/goal_decorator.rb
+++ b/app/decorators/goal_decorator.rb
@@ -1,17 +1,28 @@ class GoalDecorator < Draper::Decorator
delegate_all
+ def strftime_for_depth
+ case model.depth
+ wh... | Customize date range display based on depth.
|
diff --git a/app/device/connection_handler.rb b/app/device/connection_handler.rb
index abc1234..def5678 100644
--- a/app/device/connection_handler.rb
+++ b/app/device/connection_handler.rb
@@ -24,7 +24,7 @@ Rails.logger.info [:close, socket_id(socket), event.code, event.reason]
connection = DeviceConnection.... | Check if the connection is valid before deleting it.
|
diff --git a/app/helpers/supporters_helper.rb b/app/helpers/supporters_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/supporters_helper.rb
+++ b/app/helpers/supporters_helper.rb
@@ -35,10 +35,11 @@ def joy_or_disappointment(from_plan, to_plan)
change_direction = plan_change_word(from_plan, to_plan).do... | Refactor to remove local variable assignment
|
diff --git a/config/deploy.rb b/config/deploy.rb
index abc1234..def5678 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -17,8 +17,8 @@ task :restart do
on roles(:app) do
within release_path do
- # execute "kill -USR2 $(cat #{release_path}/tmp/pids/unicorn.pid)"
- # execute "kill -WIN... | Revert "Deactivate server restarts once more (for production)"
This reverts commit 18c77f794e043cd3db9f196ae41032e15252a6e4.
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,6 +1,5 @@
Notifiable::Engine.routes.draw do
-
resources :device_tokens, :only => [:create, :destroy]
-
+ put 'notification_statuses/:uuid/opened', :to => "notification_statuses#opened... | Add route to mark notification as opened
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -6,7 +6,6 @@ resources :comments
end
- get '/languages/:language_id/queries/bing/new' => "queries#bing_new"
post '/languages/:language_id/queries/bing' => "queries#bing_create"
... | Remove route for new bing form page because added modal
|
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/dashboard_controller.rb
+++ b/app/controllers/dashboard_controller.rb
@@ -9,6 +9,7 @@ end
def inbox
- @conversations = current_user.conversations.sort{ |c| c.messa... | Sort conversations according to the latest one first
|
diff --git a/app/controllers/edit_tree_controller.rb b/app/controllers/edit_tree_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/edit_tree_controller.rb
+++ b/app/controllers/edit_tree_controller.rb
@@ -25,7 +25,7 @@ redirect_to project_blob_path(@project, @id), notice: "Your changes have been s... | Fix 500 error on edit with ui |
diff --git a/app/controllers/responses_controller.rb b/app/controllers/responses_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/responses_controller.rb
+++ b/app/controllers/responses_controller.rb
@@ -37,6 +37,7 @@ end
def up_vote
+ response = Response.find(params[:id])
end
| Set response to the current response.
|
diff --git a/app/helpers/hackathon_manager_helper.rb b/app/helpers/hackathon_manager_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/hackathon_manager_helper.rb
+++ b/app/helpers/hackathon_manager_helper.rb
@@ -1,5 +1,6 @@ module HackathonManagerHelper
def title(page_title)
+ content_for(:page_title) { ... | Save raw page title to content_for variable
|
diff --git a/spec/lib/guard/rspec/formatter_spec.rb b/spec/lib/guard/rspec/formatter_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/guard/rspec/formatter_spec.rb
+++ b/spec/lib/guard/rspec/formatter_spec.rb
@@ -9,13 +9,13 @@ after { File.delete('./tmp/rspec_guard_result') }
context 'with failures' do
-... | Rename example to failed_example to avoid confusion with implicit
example object.
|
diff --git a/spec/unit/rom/support/registry_spec.rb b/spec/unit/rom/support/registry_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/rom/support/registry_spec.rb
+++ b/spec/unit/rom/support/registry_spec.rb
@@ -0,0 +1,39 @@+require 'spec_helper'
+require 'rom/support/registry'
+
+describe ROM::Registry do
+ subj... | Move ROM::Registry tests from main "rom" repo
These tests were previously in the "rom" repository, although the code
is in this repository.
|
diff --git a/test/functional/taverna_player/workflows_controller_test.rb b/test/functional/taverna_player/workflows_controller_test.rb
index abc1234..def5678 100644
--- a/test/functional/taverna_player/workflows_controller_test.rb
+++ b/test/functional/taverna_player/workflows_controller_test.rb
@@ -18,6 +18,12 @@ ... | Add a routing test for the workflows controller.
|
diff --git a/lib/fakefs/io.rb b/lib/fakefs/io.rb
index abc1234..def5678 100644
--- a/lib/fakefs/io.rb
+++ b/lib/fakefs/io.rb
@@ -2,19 +2,19 @@ # FakeFS IO class inherit root IO
# Only minimal mocks are provided as IO may be used by ruby's internals
class IO < ::IO
- # Redirects ::IO.binread to ::FakeFS::File... | Simplify params forwarding for IO mocks
There is no keyword parameters on read, binread & write methods.
Let's just pass the *args, especially since the double splat operator
changed a bit between ruby 2.6 and 2.7.
|
diff --git a/db/migrate/20170703102400_add_stage_id_foreign_key_to_builds.rb b/db/migrate/20170703102400_add_stage_id_foreign_key_to_builds.rb
index abc1234..def5678 100644
--- a/db/migrate/20170703102400_add_stage_id_foreign_key_to_builds.rb
+++ b/db/migrate/20170703102400_add_stage_id_foreign_key_to_builds.rb
@@ -8,1... | Check foreign keys in migration in separate conditional
|
diff --git a/features/step_definitions/gt_scp_steps.rb b/features/step_definitions/gt_scp_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/gt_scp_steps.rb
+++ b/features/step_definitions/gt_scp_steps.rb
@@ -25,13 +25,17 @@ @output ||= Output.new
end
-Given /^I have an available server "([^"]*... | Update step definitions to support new 'user@sever' feature
Refs #2
|
diff --git a/SIGS/app/controllers/administrative_assistants_controller.rb b/SIGS/app/controllers/administrative_assistants_controller.rb
index abc1234..def5678 100644
--- a/SIGS/app/controllers/administrative_assistants_controller.rb
+++ b/SIGS/app/controllers/administrative_assistants_controller.rb
@@ -24,6 +24,13 @@ ... | Add method destroy_users in Administrative Assistant controller
|
diff --git a/actionpack/lib/action_controller/dispatch/dispatcher.rb b/actionpack/lib/action_controller/dispatch/dispatcher.rb
index abc1234..def5678 100644
--- a/actionpack/lib/action_controller/dispatch/dispatcher.rb
+++ b/actionpack/lib/action_controller/dispatch/dispatcher.rb
@@ -50,7 +50,7 @@
def new
... | Fix Dispatch.new so passenger works
|
diff --git a/spec/views/home/_crops.html.haml_spec.rb b/spec/views/home/_crops.html.haml_spec.rb
index abc1234..def5678 100644
--- a/spec/views/home/_crops.html.haml_spec.rb
+++ b/spec/views/home/_crops.html.haml_spec.rb
@@ -1,27 +1,18 @@ require 'rails_helper'
describe 'home/_crops.html.haml', type: "view" do
- be... | Tidy up home/crops partial view
|
diff --git a/lib/data_mapper/relation_registry/relation_connector/builder.rb b/lib/data_mapper/relation_registry/relation_connector/builder.rb
index abc1234..def5678 100644
--- a/lib/data_mapper/relation_registry/relation_connector/builder.rb
+++ b/lib/data_mapper/relation_registry/relation_connector/builder.rb
@@ -39,... | Use existing edges instead of creating duplicates
|
diff --git a/app/models/coronavirus_timeline_nations_content_item.rb b/app/models/coronavirus_timeline_nations_content_item.rb
index abc1234..def5678 100644
--- a/app/models/coronavirus_timeline_nations_content_item.rb
+++ b/app/models/coronavirus_timeline_nations_content_item.rb
@@ -0,0 +1,10 @@+class CoronavirusTimel... | Add a new class that extends ContentItem
This class loads the content item from a json file rather than
content-store.
Uses inheritance so that we can add a new load method, but keep all of
the other properties of the ContentItem model, and so that the code is
easy to remove.
The landing page controller will decide ... |
diff --git a/app/controllers/admin/repository_organisations_controller.rb b/app/controllers/admin/repository_organisations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/repository_organisations_controller.rb
+++ b/app/controllers/admin/repository_organisations_controller.rb
@@ -1,6 +1,6 @@ cla... | Load admin orgs from correct host
|
diff --git a/Ruby-programming/Basic-ruby/substrings.rb b/Ruby-programming/Basic-ruby/substrings.rb
index abc1234..def5678 100644
--- a/Ruby-programming/Basic-ruby/substrings.rb
+++ b/Ruby-programming/Basic-ruby/substrings.rb
@@ -4,7 +4,8 @@ dictionary.each do |substr|
hystogram[substr] = str.scan(substr.downcase... | Order substring hash by occurences
|
diff --git a/app/views/revision_analytics/dyk_eligible.json.jbuilder b/app/views/revision_analytics/dyk_eligible.json.jbuilder
index abc1234..def5678 100644
--- a/app/views/revision_analytics/dyk_eligible.json.jbuilder
+++ b/app/views/revision_analytics/dyk_eligible.json.jbuilder
@@ -2,7 +2,7 @@ json.array! @articles... | Use full_title for page titles in DYK list
|
diff --git a/db/migrate/20111007102708_change_leg_checkins_to_integers.rb b/db/migrate/20111007102708_change_leg_checkins_to_integers.rb
index abc1234..def5678 100644
--- a/db/migrate/20111007102708_change_leg_checkins_to_integers.rb
+++ b/db/migrate/20111007102708_change_leg_checkins_to_integers.rb
@@ -1,14 +1,16 @@ c... | Make sure foreign keys are ints, not strings |
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,5 +1,6 @@ class ApplicationController < ActionController::API
include ActionController... | Add MimeResponds module for Devise
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -2,4 +2,12 @@ # Prevent CSRF attacks by raising an exception.
# For APIs, you may want ... | Allow real_name to be set on sign up
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -4,7 +4,7 @@ before_filter :fuck_off_lisa
def fuck_off_lisa
if user_signed_in? and... | Make the site even slower for Lisa.
|
diff --git a/app/controllers/councillors_controller.rb b/app/controllers/councillors_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/councillors_controller.rb
+++ b/app/controllers/councillors_controller.rb
@@ -7,6 +7,13 @@ @councillor = Councillor.find params[:id]
@votes = @councillor.councillor... | Add Method To Calculated Absences In Percentage
|
diff --git a/lib/checkout/pricing_strategy.rb b/lib/checkout/pricing_strategy.rb
index abc1234..def5678 100644
--- a/lib/checkout/pricing_strategy.rb
+++ b/lib/checkout/pricing_strategy.rb
@@ -1,4 +1,30 @@ module Checkout
+
+ class PricingRuleResolver
+ ProductOffer = Struct.new(:price, :quantity)
+
+ def self.f... | Add object that is responsible for extracting the pricing rule for a product
|
diff --git a/lib/private_address_check/tcpsocket_ext.rb b/lib/private_address_check/tcpsocket_ext.rb
index abc1234..def5678 100644
--- a/lib/private_address_check/tcpsocket_ext.rb
+++ b/lib/private_address_check/tcpsocket_ext.rb
@@ -12,15 +12,11 @@
module TCPSocketExt
def initialize(remote_host, remote_port, l... | Simplify TCP socket extension initializer
|
diff --git a/lib/atlas/runner/zero_disabled_sectors.rb b/lib/atlas/runner/zero_disabled_sectors.rb
index abc1234..def5678 100644
--- a/lib/atlas/runner/zero_disabled_sectors.rb
+++ b/lib/atlas/runner/zero_disabled_sectors.rb
@@ -19,15 +19,34 @@ end.map(&:last)
lambda do |refinery|
- refinery... | Disable edges and slots belonging to disabled nodes
|
diff --git a/lib/generators/classy_enum/templates/enum.rb b/lib/generators/classy_enum/templates/enum.rb
index abc1234..def5678 100644
--- a/lib/generators/classy_enum/templates/enum.rb
+++ b/lib/generators/classy_enum/templates/enum.rb
@@ -1,6 +1,6 @@ class <%= class_name %> < ClassyEnum::Base
end
<% values.each do ... | Update generator to produce classes with new namespacing
|
diff --git a/lib/crystal_gaze/email_spirit.rb b/lib/crystal_gaze/email_spirit.rb
index abc1234..def5678 100644
--- a/lib/crystal_gaze/email_spirit.rb
+++ b/lib/crystal_gaze/email_spirit.rb
@@ -10,7 +10,7 @@ end
def manifest
- manifest_as(name, domain = domain)
+ manifest_as(name, domain)
end
... | Fix anomaly in the spirit world
|
diff --git a/lib/dm-sqlite-adapter/adapter.rb b/lib/dm-sqlite-adapter/adapter.rb
index abc1234..def5678 100644
--- a/lib/dm-sqlite-adapter/adapter.rb
+++ b/lib/dm-sqlite-adapter/adapter.rb
@@ -25,12 +25,13 @@ path = nil
[:path, 'path', :database, 'database'].each do |key|
db = options.delete... | Fix spec failures on 1.8.7(ish) rubies
There is no Symbol#empty? method in 1.8.7 and thus
current jruby and rbx. |
diff --git a/lib/command-t/scanner/find.rb b/lib/command-t/scanner/find.rb
index abc1234..def5678 100644
--- a/lib/command-t/scanner/find.rb
+++ b/lib/command-t/scanner/find.rb
@@ -2,8 +2,10 @@ module Scanner
# Simplistic scanner that wraps 'find . -type f'.
class Find
- def initialize path = Dir.pwd
+... | Add max_depth option to Find class
This matches some but not all functionality in the Ruby scanner.
Signed-off-by: Wincent Colaiuta <c76ac2e9cd86441713c7dfae92c451f3e6d17fdc@wincent.com>
|
diff --git a/lib/fog/openstack/compute/models/image.rb b/lib/fog/openstack/compute/models/image.rb
index abc1234..def5678 100644
--- a/lib/fog/openstack/compute/models/image.rb
+++ b/lib/fog/openstack/compute/models/image.rb
@@ -28,7 +28,7 @@
def metadata=(new_metadata = {})
metas = []
- n... | Revert "Fix hash bug in Image model"
This reverts commit aa7c56d0734f79f99d1d5f35500255e7fa943e17.
|
diff --git a/lib/cucumber/rspec/doubles.rb b/lib/cucumber/rspec/doubles.rb
index abc1234..def5678 100644
--- a/lib/cucumber/rspec/doubles.rb
+++ b/lib/cucumber/rspec/doubles.rb
@@ -4,16 +4,16 @@
Before do
if RSpec::Mocks::Version::STRING.split('.').first.to_i > 2
- RSpec::Mocks::setup
+ RSpec::Mocks.setup
... | Change :: to . for method calls.
I did this because it is clearer in terms of identifying them as method calls
and not classes.
|
diff --git a/postmark-rails.gemspec b/postmark-rails.gemspec
index abc1234..def5678 100644
--- a/postmark-rails.gemspec
+++ b/postmark-rails.gemspec
@@ -23,7 +23,7 @@ ]
s.rdoc_options = ["--charset=UTF-8"]
- s.add_dependency('actionmailer')
+ s.add_dependency('actionmailer', ">= 3.0.0")
s.add_dependency('po... | Add actionmailer version number to gemspec |
diff --git a/spec/features/employee_search_spec.rb b/spec/features/employee_search_spec.rb
index abc1234..def5678 100644
--- a/spec/features/employee_search_spec.rb
+++ b/spec/features/employee_search_spec.rb
@@ -0,0 +1,27 @@+# -*- coding: utf-8 -*-
+require 'spec_helper'
+
+describe "EmployeeSearch" do
+ it "should r... | Test case for employee search
|
diff --git a/spec/lib/task_helpers/imports_spec.rb b/spec/lib/task_helpers/imports_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/task_helpers/imports_spec.rb
+++ b/spec/lib/task_helpers/imports_spec.rb
@@ -0,0 +1,39 @@+describe TaskHelpers::Exports do
+ describe '.validate_source' do
+ before(:each) do
+ ... | Add tests for import source validation
|
diff --git a/spec/lib/timestamp_api/errors_spec.rb b/spec/lib/timestamp_api/errors_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/timestamp_api/errors_spec.rb
+++ b/spec/lib/timestamp_api/errors_spec.rb
@@ -0,0 +1,13 @@+require "spec_helper"
+
+describe TimestampAPI::MissingAPIKey do
+ it "defines a custom messa... | Add tests for error classes
|
diff --git a/archloot.gemspec b/archloot.gemspec
index abc1234..def5678 100644
--- a/archloot.gemspec
+++ b/archloot.gemspec
@@ -3,17 +3,16 @@ require "archloot/version"
Gem::Specification.new do |s|
- s.name = 'archloot'
+ s.name = "archloot"
s.version = Archloot::VERSION
- s.date = '... | Clean up the .gemspec file
|
diff --git a/argumentative.rb b/argumentative.rb
index abc1234..def5678 100644
--- a/argumentative.rb
+++ b/argumentative.rb
@@ -58,8 +58,20 @@ end
private
+ def contain_matchers?(types)
+ types.any? { |type| type.is_a?(ParameterMatchers::Base) }
+ end
+
+ def fuzzy_match?(types)
+ true
+ ... | Make fuzzy matcher test pass with stub
|
diff --git a/lib/tasks/larp_library/elasticsearch.rake b/lib/tasks/larp_library/elasticsearch.rake
index abc1234..def5678 100644
--- a/lib/tasks/larp_library/elasticsearch.rake
+++ b/lib/tasks/larp_library/elasticsearch.rake
@@ -6,7 +6,11 @@
[Project, Tag].each do |klass|
puts "Importing #{klass.count}... | Put mapping rather than create index
|
diff --git a/core/db/migrate/20120509055454_create_tokenized_permissions_table.rb b/core/db/migrate/20120509055454_create_tokenized_permissions_table.rb
index abc1234..def5678 100644
--- a/core/db/migrate/20120509055454_create_tokenized_permissions_table.rb
+++ b/core/db/migrate/20120509055454_create_tokenized_permissi... | Correct prefix tokenized_permissions table with spree_
|
diff --git a/test/controllers/maps_controller_test.rb b/test/controllers/maps_controller_test.rb
index abc1234..def5678 100644
--- a/test/controllers/maps_controller_test.rb
+++ b/test/controllers/maps_controller_test.rb
@@ -1,8 +1,16 @@ require 'test_helper'
class MapsControllerTest < ActionDispatch::IntegrationTes... | Add checks to test about map data in response
|
diff --git a/lib/mathjax/rails/controllers.rb b/lib/mathjax/rails/controllers.rb
index abc1234..def5678 100644
--- a/lib/mathjax/rails/controllers.rb
+++ b/lib/mathjax/rails/controllers.rb
@@ -10,6 +10,11 @@ options = Hash.new
options[:type] = mime_type.to_s unless mime_type.nil?
options[:disposition] = ... | Check if static file exist before sending it
|
diff --git a/test/integration/feature_disable_test.rb b/test/integration/feature_disable_test.rb
index abc1234..def5678 100644
--- a/test/integration/feature_disable_test.rb
+++ b/test/integration/feature_disable_test.rb
@@ -2,7 +2,7 @@
include Warden::Test::Helpers
-class BrowsingUserTicketFlowsTest < ActionDispat... | Rename the class to match file name |
diff --git a/lib/html_mockup/mockupfile.rb b/lib/html_mockup/mockupfile.rb
index abc1234..def5678 100644
--- a/lib/html_mockup/mockupfile.rb
+++ b/lib/html_mockup/mockupfile.rb
@@ -1,6 +1,24 @@ module HtmlMockup
# Loader for mockupfile
class Mockupfile
+
+ # This is the context for the mockupfile evaluatio... | Use a cleaner context for Mockupfile evaluation |
diff --git a/lib/html_mockup/rack/sleep.rb b/lib/html_mockup/rack/sleep.rb
index abc1234..def5678 100644
--- a/lib/html_mockup/rack/sleep.rb
+++ b/lib/html_mockup/rack/sleep.rb
@@ -0,0 +1,21 @@+module HtmlMockup
+ module Rack
+ # Listens to the "sleep" parameter and sleeps the amount of seconds specified by the par... | Add Rack::Sleep to simulate "slow" requests |
diff --git a/lib/indexable_support_page.rb b/lib/indexable_support_page.rb
index abc1234..def5678 100644
--- a/lib/indexable_support_page.rb
+++ b/lib/indexable_support_page.rb
@@ -5,7 +5,7 @@
def initialize(filename)
@filename = filename
- @io = File.read(filename)
+ @file_contents = File.read(filename)... | Change variable name to reflect reality
|
diff --git a/lib/trysail_blog_notification.rb b/lib/trysail_blog_notification.rb
index abc1234..def5678 100644
--- a/lib/trysail_blog_notification.rb
+++ b/lib/trysail_blog_notification.rb
@@ -1,6 +1,10 @@ module TrySailBlogNotification
end
+require File.join(File.dirname(__FILE__), '/trysail_blog_notification/appli... | Load application and util in base file
|
diff --git a/lib/yt/collections/references.rb b/lib/yt/collections/references.rb
index abc1234..def5678 100644
--- a/lib/yt/collections/references.rb
+++ b/lib/yt/collections/references.rb
@@ -9,7 +9,7 @@ class References < Base
def insert(attributes = {})
underscore_keys! attributes
- body =... | Add optional reference insert params
|
diff --git a/api/ruby/building-a-ci-server/server.rb b/api/ruby/building-a-ci-server/server.rb
index abc1234..def5678 100644
--- a/api/ruby/building-a-ci-server/server.rb
+++ b/api/ruby/building-a-ci-server/server.rb
@@ -26,9 +26,9 @@ helpers do
def process_pull_request(pull_request)
puts "Processing pull... | Set this to use `base`, not `head` |
diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/questions_controller.rb
+++ b/app/controllers/questions_controller.rb
@@ -5,6 +5,7 @@ def new
if logged_in?
@question = Question.new
+ @tag = Tag.new
... | Add initial logic to questions controller for implementing tags; need to create show template
|
diff --git a/app/controllers/wishlists_controller.rb b/app/controllers/wishlists_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/wishlists_controller.rb
+++ b/app/controllers/wishlists_controller.rb
@@ -1,5 +1,6 @@ class WishlistsController < ApplicationController
before_action :set_wishlist, only:... | Allow wishlist controller to respond in json
|
diff --git a/app/jobs/scheduled/leader_promotions.rb b/app/jobs/scheduled/leader_promotions.rb
index abc1234..def5678 100644
--- a/app/jobs/scheduled/leader_promotions.rb
+++ b/app/jobs/scheduled/leader_promotions.rb
@@ -4,8 +4,6 @@ daily at: 4.hours
def execute(args)
- return unless Rails.env.test? # d... | Enable trust level 3 promotion/demotion job
|
diff --git a/plugins/ctf/fetcher.rb b/plugins/ctf/fetcher.rb
index abc1234..def5678 100644
--- a/plugins/ctf/fetcher.rb
+++ b/plugins/ctf/fetcher.rb
@@ -15,7 +15,8 @@ end
def update
- start = Time.now.strftime('%s')
+ # TODO find a proper fix for fetching already running events
+ start = (Time... | Fix reports of current events
|
diff --git a/TLRadioButton.podspec b/TLRadioButton.podspec
index abc1234..def5678 100644
--- a/TLRadioButton.podspec
+++ b/TLRadioButton.podspec
@@ -4,7 +4,7 @@
Pod::Spec.new do |s|
s.name = 'TLRadioButton'
- s.version = '0.1.0'
+ s.version = '0.1.1'
s.summary = 'Animate... | Add screenshots to pod configure
|
diff --git a/app/controllers/question.rb b/app/controllers/question.rb
index abc1234..def5678 100644
--- a/app/controllers/question.rb
+++ b/app/controllers/question.rb
@@ -1,5 +1,9 @@ get '/questions/index' do
- json questions: @user.questions
+ if @user.access == 'student'
+ json questions: @user.questions
+ el... | Set Paths to Return All Questions to Coach View
|
diff --git a/spec/factories/policies.rb b/spec/factories/policies.rb
index abc1234..def5678 100644
--- a/spec/factories/policies.rb
+++ b/spec/factories/policies.rb
@@ -37,7 +37,11 @@ AssetType.all.each do |type|
create(:policy_asset_type_rule, policy: policy, asset_type: type)
end
- create(:... | Change policy instantiation in tests to get travis passing.
|
diff --git a/spec/nc_first_fail_spec.rb b/spec/nc_first_fail_spec.rb
index abc1234..def5678 100644
--- a/spec/nc_first_fail_spec.rb
+++ b/spec/nc_first_fail_spec.rb
@@ -10,12 +10,10 @@ let(:exception) { 'exception' }
let(:description) { 'description' }
- before do
- example.should_receive(:metadata).any_numb... | Replace `any_number_of_times` usages with `stub`s
|
diff --git a/acceptance/provider/synced_folder_spec.rb b/acceptance/provider/synced_folder_spec.rb
index abc1234..def5678 100644
--- a/acceptance/provider/synced_folder_spec.rb
+++ b/acceptance/provider/synced_folder_spec.rb
@@ -29,5 +29,12 @@ status("Test: doesn't mount a disabled folder")
result = execute("v... | Test synced folder persists after guest reboot
This test checks to see that a VirtualBox synced folder persists outside
of a `vagrant reload`, such as when a machine is manually rebooted or
restarted by the provider directly.
|
diff --git a/redis_timeline.gemspec b/redis_timeline.gemspec
index abc1234..def5678 100644
--- a/redis_timeline.gemspec
+++ b/redis_timeline.gemspec
@@ -5,7 +5,7 @@
# Describe your gem and declare its dependencies:
Gem::Specification.new do |s|
- s.name = "redis-timeline"
+ s.name = "redis_timeline"
... | Use the original gem name
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -5,9 +5,9 @@ # For APIs, you may want to use :null_session instead.
protect_from_forger... | Use require_dependency instead of require
|
diff --git a/app/models/renalware/letters/recipient.rb b/app/models/renalware/letters/recipient.rb
index abc1234..def5678 100644
--- a/app/models/renalware/letters/recipient.rb
+++ b/app/models/renalware/letters/recipient.rb
@@ -32,11 +32,10 @@ end
def current_address
- case
- when patient?... | Tidy up letter address fn
|
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -2,6 +2,14 @@
def create
@user = User.new(params[:user])
+
+ client=Clie... | Create client in front registration?
|
diff --git a/app/models/validators/cma_case_validator.rb b/app/models/validators/cma_case_validator.rb
index abc1234..def5678 100644
--- a/app/models/validators/cma_case_validator.rb
+++ b/app/models/validators/cma_case_validator.rb
@@ -9,7 +9,7 @@ validates :summary, presence: true
validates :body, presence: true... | Allow blank opened dates for CMA cases
The CMA have some old cases that they don't know the dates for. Allow
blank opened dates to let them edit and publish these documents, and
make the checking of opened dates a content responsibility.
|
diff --git a/deployment/puppet/osnailyfacter/lib/facter/libvirt_package_version.rb b/deployment/puppet/osnailyfacter/lib/facter/libvirt_package_version.rb
index abc1234..def5678 100644
--- a/deployment/puppet/osnailyfacter/lib/facter/libvirt_package_version.rb
+++ b/deployment/puppet/osnailyfacter/lib/facter/libvirt_pa... | Handle libvirt version correctly when missing
Since 7.0 did not include a centos version of the libvirt package, the
libvirt_package_version fact caused puppet to spit errors. This change
updates the logic under RedHat based operating systems to ensure that
the output from the yum command is properly parsed.
Change-I... |
diff --git a/backend/spec/support/shared_examples/rake.rb b/backend/spec/support/shared_examples/rake.rb
index abc1234..def5678 100644
--- a/backend/spec/support/shared_examples/rake.rb
+++ b/backend/spec/support/shared_examples/rake.rb
@@ -1,7 +1,7 @@ require 'rake'
shared_context 'rake' do
- let(:rake) { Ra... | Remove the Unnecessary spacing detected
|
diff --git a/schema.gemspec b/schema.gemspec
index abc1234..def5678 100644
--- a/schema.gemspec
+++ b/schema.gemspec
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
s.name = 'evt-schema'
s.summary = "Primitives for schema and data structure"
- s.version = '2.2.4.4'
+ s.version = '2.2.5.0'
s.description = ' '
... | Package version is increased from 2.2.4.4 to 2.2.5.0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.