diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/recycling-helper/config/routes.rb b/recycling-helper/config/routes.rb
index abc1234..def5678 100644
--- a/recycling-helper/config/routes.rb
+++ b/recycling-helper/config/routes.rb
@@ -29,5 +29,5 @@ resources :cities
#get to 'cities#itemLookupResult'
- root 'categories#index'
+ root 'cities#index'
... | Update the root to cities/index
|
diff --git a/lib/regexp_parser/expression/classes/conditional.rb b/lib/regexp_parser/expression/classes/conditional.rb
index abc1234..def5678 100644
--- a/lib/regexp_parser/expression/classes/conditional.rb
+++ b/lib/regexp_parser/expression/classes/conditional.rb
@@ -27,13 +27,13 @@ expressions.last << exp
... | Remove unused argument and array indirection
|
diff --git a/lib/vagrant-proxyconf/action/configure_npm_proxy.rb b/lib/vagrant-proxyconf/action/configure_npm_proxy.rb
index abc1234..def5678 100644
--- a/lib/vagrant-proxyconf/action/configure_npm_proxy.rb
+++ b/lib/vagrant-proxyconf/action/configure_npm_proxy.rb
@@ -24,7 +24,7 @@
def set_or_delete_proxy(key... | Fix npm HTTPS proxy value
The `https-proxy` npm config was defined using `config.http` proxyconf value (missing the `s`), which is wrong. |
diff --git a/config/initializers/formats_filter.rb b/config/initializers/formats_filter.rb
index abc1234..def5678 100644
--- a/config/initializers/formats_filter.rb
+++ b/config/initializers/formats_filter.rb
@@ -0,0 +1,11 @@+# frozen_string_literal: true
+
+# Patch for rails vulnerability CVE-2019-5418 and CVE-2019-54... | Patch for rails vulnerabilities CVE-2019-5418 and CVE-2019-5419
|
diff --git a/config/initializers/show_constants.rb b/config/initializers/show_constants.rb
index abc1234..def5678 100644
--- a/config/initializers/show_constants.rb
+++ b/config/initializers/show_constants.rb
@@ -1,12 +1,12 @@ CURRENT_TOP_ROW_VALUES = [200, 400].freeze
PLAY_TYPES = {
+ "toc" => "Tour... | Reorder play-types list in preparation for ToC |
diff --git a/lib/analysis/analyze_star_file_dates.rb b/lib/analysis/analyze_star_file_dates.rb
index abc1234..def5678 100644
--- a/lib/analysis/analyze_star_file_dates.rb
+++ b/lib/analysis/analyze_star_file_dates.rb
@@ -0,0 +1,23 @@+require 'csv'
+require 'date'
+
+path_to_file = ARGV[0]
+
+csv = CSV.read(path_to_file... | Add script for looking at STAR dates
|
diff --git a/Auk.podspec b/Auk.podspec
index abc1234..def5678 100644
--- a/Auk.podspec
+++ b/Auk.podspec
@@ -18,4 +18,5 @@ s.screenshots = "https://raw.githubusercontent.com/evgenyneu/Auk/master/Graphics/Screenshots/auk_paged_image_scroller_ios.jpg"
s.source_files = "Auk/**/*.swift"
s.ios.deployment_target = "... | Update to Xcode 8 beta 5
|
diff --git a/app/helpers/application_helper/button/miq_ae_namespace_edit.rb b/app/helpers/application_helper/button/miq_ae_namespace_edit.rb
index abc1234..def5678 100644
--- a/app/helpers/application_helper/button/miq_ae_namespace_edit.rb
+++ b/app/helpers/application_helper/button/miq_ae_namespace_edit.rb
@@ -1,5 +1,... | Fix the found error by modifying the inheritance hierarchy
|
diff --git a/spec/moshimoshi_rails_helper_spec.rb b/spec/moshimoshi_rails_helper_spec.rb
index abc1234..def5678 100644
--- a/spec/moshimoshi_rails_helper_spec.rb
+++ b/spec/moshimoshi_rails_helper_spec.rb
@@ -6,7 +6,7 @@ end
it "should return a greeting" do
- email = "kristian@kristianfreeman.com"
- @stub.... | Update spec for foobar user
|
diff --git a/spec/request/api_key/api_key_spec.rb b/spec/request/api_key/api_key_spec.rb
index abc1234..def5678 100644
--- a/spec/request/api_key/api_key_spec.rb
+++ b/spec/request/api_key/api_key_spec.rb
@@ -3,11 +3,17 @@ describe '/api_key' do
it 'should return 401 with invalid credentials' do
- create_user '... | Add spec if user provide user but not password
|
diff --git a/plugin/skype_logger.rb b/plugin/skype_logger.rb
index abc1234..def5678 100644
--- a/plugin/skype_logger.rb
+++ b/plugin/skype_logger.rb
@@ -48,6 +48,8 @@ OSX::SkypeAPI.disconnect
end
+ sleep(3);
+
OSX::SkypeAPI.setSkypeDelegate client
OSX::SkypeAPI.connect
rescue Object => e
| Add sleep to avoid error on Skype 5.0.
|
diff --git a/spec/unit/contextio/api/lazy_attributes_spec.rb b/spec/unit/contextio/api/lazy_attributes_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/contextio/api/lazy_attributes_spec.rb
+++ b/spec/unit/contextio/api/lazy_attributes_spec.rb
@@ -0,0 +1,50 @@+require 'spec_helper'
+require 'contextio/api/lazy_att... | Test the lazy attribute thing.
|
diff --git a/_plugins/monthly_archive_generator.rb b/_plugins/monthly_archive_generator.rb
index abc1234..def5678 100644
--- a/_plugins/monthly_archive_generator.rb
+++ b/_plugins/monthly_archive_generator.rb
@@ -34,8 +34,8 @@
def add_to_bucket(post)
@bucket[post.date.year] ||= default_bucket
- @bucke... | Fix a silly bug (Thanks mat813)
|
diff --git a/app/models/question.rb b/app/models/question.rb
index abc1234..def5678 100644
--- a/app/models/question.rb
+++ b/app/models/question.rb
@@ -7,9 +7,36 @@ validates_presence_of :title
validates_uniqueness_of :title
+ scope :last_seven_days, -> (num) { where(created_at: (Time.now - num.day)..Time.now)... | Create methods to return stats on boolean integer and text responses
|
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
@@ -14,8 +14,9 @@
def create
@question = Question.new(question_params)
+ p params
if @... | Change redirect to root path for update and create
|
diff --git a/spec/basic_parser_spec.rb b/spec/basic_parser_spec.rb
index abc1234..def5678 100644
--- a/spec/basic_parser_spec.rb
+++ b/spec/basic_parser_spec.rb
@@ -0,0 +1,7 @@+require 'spec_helper'
+
+describe "BasicParser" do
+ it "should include Pidgin2Adium" do
+ Pidgin2Adium::BasicParser.included_modules.inclu... | Add very basic spec for BasicParser
|
diff --git a/spec/models/topic_spec.rb b/spec/models/topic_spec.rb
index abc1234..def5678 100644
--- a/spec/models/topic_spec.rb
+++ b/spec/models/topic_spec.rb
@@ -1,14 +1,15 @@ require 'rails_helper'
RSpec.describe Topic do
- it "allows setting the topic initially" do
- topic = Topic.new(path: "/service-manual... | Use the new generator in topic specs
Use valid topic generator in topic specs and improve test descriptions
|
diff --git a/test/integration/users_login_test.rb b/test/integration/users_login_test.rb
index abc1234..def5678 100644
--- a/test/integration/users_login_test.rb
+++ b/test/integration/users_login_test.rb
@@ -34,6 +34,7 @@ password: ENV["SCRIVITO_PASSWORD"] }
assert_redirected_to "/sotechs... | Change test by assert_template to aseert_equal path
|
diff --git a/lib/analytical/modules/chartbeat.rb b/lib/analytical/modules/chartbeat.rb
index abc1234..def5678 100644
--- a/lib/analytical/modules/chartbeat.rb
+++ b/lib/analytical/modules/chartbeat.rb
@@ -21,16 +21,18 @@ js = <<-HTML
<!-- Analytical Body Init: Chartbeat -->
<script... | Update Chartbeat script to latest version
https://chartbeat.com/docs/adding_the_code/
|
diff --git a/lib/rrimm/feed_config_extensions.rb b/lib/rrimm/feed_config_extensions.rb
index abc1234..def5678 100644
--- a/lib/rrimm/feed_config_extensions.rb
+++ b/lib/rrimm/feed_config_extensions.rb
@@ -4,8 +4,12 @@ module RRImm
module FeedConfigExtensions
- def select(&block)
- @massages << { select: bl... | Add all Enumerable methods in FeedConfigExtensions
|
diff --git a/lib/yard/handlers/method_handler.rb b/lib/yard/handlers/method_handler.rb
index abc1234..def5678 100644
--- a/lib/yard/handlers/method_handler.rb
+++ b/lib/yard/handlers/method_handler.rb
@@ -4,7 +4,12 @@ def process
nobj = namespace
mscope = scope
- meth = statement.tokens.to_s[/^def\s+(#{M... | Improve error handling / message for invalid methods
|
diff --git a/app/models/assertion_id_request_service.rb b/app/models/assertion_id_request_service.rb
index abc1234..def5678 100644
--- a/app/models/assertion_id_request_service.rb
+++ b/app/models/assertion_id_request_service.rb
@@ -10,10 +10,10 @@
return if owners.one?
errors.add(:ownership,
- ... | Correct concatination in error message
|
diff --git a/lib/llt/diff/parser/nokogiri_handler.rb b/lib/llt/diff/parser/nokogiri_handler.rb
index abc1234..def5678 100644
--- a/lib/llt/diff/parser/nokogiri_handler.rb
+++ b/lib/llt/diff/parser/nokogiri_handler.rb
@@ -0,0 +1,30 @@+require 'nokogiri'
+
+module LLT
+ class Diff::Parser
+ class NokogiriHandler < No... | Add NokogiriHandler for Sax parsing
In theory this should solve #3 - it does so in fact, however jruby seems
to contain a bug in regards to multi-threading. Still investigating if
that assertion is true and how it can be fixed.
|
diff --git a/lib/transition/import/whitehall_orgs.rb b/lib/transition/import/whitehall_orgs.rb
index abc1234..def5678 100644
--- a/lib/transition/import/whitehall_orgs.rb
+++ b/lib/transition/import/whitehall_orgs.rb
@@ -4,7 +4,9 @@ module Import
class WhitehallOrgs
##
- # Place to put complete cache... | Comment on cache TTL for Whitehall responses
|
diff --git a/app/workers/unauthorized_user_worker.rb b/app/workers/unauthorized_user_worker.rb
index abc1234..def5678 100644
--- a/app/workers/unauthorized_user_worker.rb
+++ b/app/workers/unauthorized_user_worker.rb
@@ -3,7 +3,7 @@ class UnauthorizedUserWorker
include Sidekiq::Worker
- REVOKED_MESSAGES = ["O tok... | Add more strings of revoked messages
|
diff --git a/app/controllers/graphql_controller.rb b/app/controllers/graphql_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/graphql_controller.rb
+++ b/app/controllers/graphql_controller.rb
@@ -1,4 +1,6 @@ class GraphqlController < ApplicationController
+ protect_from_forgery with: :null_session
+
... | Make CSRF token unnessesary for GraphQL API
|
diff --git a/app/presenters/lifecycle_presenter.rb b/app/presenters/lifecycle_presenter.rb
index abc1234..def5678 100644
--- a/app/presenters/lifecycle_presenter.rb
+++ b/app/presenters/lifecycle_presenter.rb
@@ -13,10 +13,15 @@ else
event.user
end
+ organization ... | Handle lifecycle events without an organization
|
diff --git a/spec/hello_sign/api/embedded_spec.rb b/spec/hello_sign/api/embedded_spec.rb
index abc1234..def5678 100644
--- a/spec/hello_sign/api/embedded_spec.rb
+++ b/spec/hello_sign/api/embedded_spec.rb
@@ -12,6 +12,10 @@ expect(a_get("/embedded/sign_url/#{signature_id}")).to have_been_made
end
+ it '... | Add response header test for Get Embedded Sign URL
|
diff --git a/spec/weather_reporter/config_spec.rb b/spec/weather_reporter/config_spec.rb
index abc1234..def5678 100644
--- a/spec/weather_reporter/config_spec.rb
+++ b/spec/weather_reporter/config_spec.rb
@@ -27,8 +27,8 @@
describe '#read_file' do
it 'gets file object as hash' do
- expect(conf... | Set key value of a hash as yaml file
|
diff --git a/publify_textfilter_code.gemspec b/publify_textfilter_code.gemspec
index abc1234..def5678 100644
--- a/publify_textfilter_code.gemspec
+++ b/publify_textfilter_code.gemspec
@@ -9,7 +9,7 @@ s.version = PublifyTextfilterCode::VERSION
s.authors = ['Matijs van Zuijlen']
s.email = ['matijs@... | Replace references to expired publify.co domain
|
diff --git a/ci_environment/haskell/attributes/multi.rb b/ci_environment/haskell/attributes/multi.rb
index abc1234..def5678 100644
--- a/ci_environment/haskell/attributes/multi.rb
+++ b/ci_environment/haskell/attributes/multi.rb
@@ -1,4 +1,4 @@ default[:haskell][:multi] = {
- :ghcs => ["7.8.1","7.6.3","7.4.2","7.0.4"]... | Use ghc-7.8.2 instead of 7.8.1
|
diff --git a/mongoid_magic_counter_cache.gemspec b/mongoid_magic_counter_cache.gemspec
index abc1234..def5678 100644
--- a/mongoid_magic_counter_cache.gemspec
+++ b/mongoid_magic_counter_cache.gemspec
@@ -19,7 +19,7 @@ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_path... | Allow mongoid versions up to 3.0.X
|
diff --git a/db/migrate/20100624151555_allow_null_for_association_fields.rb b/db/migrate/20100624151555_allow_null_for_association_fields.rb
index abc1234..def5678 100644
--- a/db/migrate/20100624151555_allow_null_for_association_fields.rb
+++ b/db/migrate/20100624151555_allow_null_for_association_fields.rb
@@ -0,0 +1,... | Allow null for association fields (needed to prevent factory_girl from dying on build callbacks)
|
diff --git a/spec/integration/contract_spec.rb b/spec/integration/contract_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/contract_spec.rb
+++ b/spec/integration/contract_spec.rb
@@ -22,7 +22,7 @@ describe '#inspect' do
it 'returns a string representation' do
expect(contract.inspect).to eql(... | Update spec to reflect changes in dry-schema
|
diff --git a/spec/ruby/language/module_spec.rb b/spec/ruby/language/module_spec.rb
index abc1234..def5678 100644
--- a/spec/ruby/language/module_spec.rb
+++ b/spec/ruby/language/module_spec.rb
@@ -34,6 +34,17 @@ module LangModuleSpec::C2; end
}.should raise_error(TypeError)
end
+
+ it "allows for reopeni... | Add spec for reopening a sub class of Module
|
diff --git a/spec/unit/recipes/install_spec.rb b/spec/unit/recipes/install_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/recipes/install_spec.rb
+++ b/spec/unit/recipes/install_spec.rb
@@ -38,6 +38,13 @@ "execute[install-dokku-plugin-core-dependencies]").to(:run).immediately
end
+ it "removes ... | Test default configuration is removed on install.
This is added when the core dependencies task is executed, and we should test
that it is there.
|
diff --git a/app/serializers/payment_serializer.rb b/app/serializers/payment_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/payment_serializer.rb
+++ b/app/serializers/payment_serializer.rb
@@ -1,8 +1,37 @@ class PaymentSerializer < ActiveModel::Serializer
attributes :id, :name, :amount, :category... | Add `repeat`, `repeat_interval` , `repeat_period` and `date` to payment json.
|
diff --git a/app/services/remove_status_service.rb b/app/services/remove_status_service.rb
index abc1234..def5678 100644
--- a/app/services/remove_status_service.rb
+++ b/app/services/remove_status_service.rb
@@ -34,6 +34,7 @@ end
def send_delete_salmon(account, status)
+ return unless status.local?
Noti... | Fix RemoveStatusService trying to send delete salmons on behalf of remote statuses
|
diff --git a/lib/game.rb b/lib/game.rb
index abc1234..def5678 100644
--- a/lib/game.rb
+++ b/lib/game.rb
@@ -12,29 +12,29 @@ end
def run()
+ # Loop until @hangman.won or @hangman.lost, guessing, or potentially quitting
until @hangman.finished?
guess = get_guess
break unless guess
- @ha... | Add parens round stuff, clean up comments
|
diff --git a/lib/loaf.rb b/lib/loaf.rb
index abc1234..def5678 100644
--- a/lib/loaf.rb
+++ b/lib/loaf.rb
@@ -6,6 +6,9 @@ require 'loaf/controller_extensions'
require 'loaf/view_extensions'
require 'loaf/crumb_formatter'
+
+# Add English load path by default
+I18n.load_path << File.join(File.dirname(__FILE__), 'config... | Include locales during lib load.
|
diff --git a/lib/concurrent/thread_safe/util/array_hash_rbx.rb b/lib/concurrent/thread_safe/util/array_hash_rbx.rb
index abc1234..def5678 100644
--- a/lib/concurrent/thread_safe/util/array_hash_rbx.rb
+++ b/lib/concurrent/thread_safe/util/array_hash_rbx.rb
@@ -13,6 +13,12 @@ def initialize(*args)
... | Fix Array/Hash monitor not being initialized
Fixes several broken testcases in the Array and Hash specs.
|
diff --git a/config/initializers/loofah_configure.rb b/config/initializers/loofah_configure.rb
index abc1234..def5678 100644
--- a/config/initializers/loofah_configure.rb
+++ b/config/initializers/loofah_configure.rb
@@ -8,6 +8,6 @@ if ENV["WLTAGS"]
tag_list = Loofah::HTML5::WhiteList::ALLOWED_ELEMENTS_WITH_LIBXML2
... | Use dot for method call
|
diff --git a/brew/cromer_template.rb b/brew/cromer_template.rb
index abc1234..def5678 100644
--- a/brew/cromer_template.rb
+++ b/brew/cromer_template.rb
@@ -4,6 +4,8 @@ url "https://github.com/andrewferrier/cromer/archive/X.Y.zip"
version "X.Y"
+ depends_on :python3
+
def install
bin.install "cromer"
... | Add dependency on Python 3 in brewfile.
|
diff --git a/gems/pending/spec/coverage_helper.rb b/gems/pending/spec/coverage_helper.rb
index abc1234..def5678 100644
--- a/gems/pending/spec/coverage_helper.rb
+++ b/gems/pending/spec/coverage_helper.rb
@@ -1,7 +1,7 @@ require 'active_support/core_ext/kernel/reporting'
# Require all ruby files for accuracte test c... | Exclude the vim wsdl41 mapping registry from test code coverage
The vim wsdl mapping registry translated to ruby will never be covered.
Their library's wsdl should be tested by them, not us.
Having it in the coverage_helper provides us no benefit since we won't
be adding code coverage in our test suite for this.
|
diff --git a/smart_properties.gemspec b/smart_properties.gemspec
index abc1234..def5678 100644
--- a/smart_properties.gemspec
+++ b/smart_properties.gemspec
@@ -24,6 +24,6 @@ gem.version = SmartProperties::VERSION
gem.add_development_dependency "rspec", "~> 3.0"
- gem.add_development_dependency "rake", "~... | Update rake from Version 12 to Version 13
|
diff --git a/spec/factories/operating_systems.rb b/spec/factories/operating_systems.rb
index abc1234..def5678 100644
--- a/spec/factories/operating_systems.rb
+++ b/spec/factories/operating_systems.rb
@@ -19,9 +19,11 @@
factory :centos, class: OperatingSystem do
sequence(:name) { |n| "centos_#{n}" }
+ versi... | Add version to factory for OperatingSystem
|
diff --git a/spec/henson/friendly_errors_spec.rb b/spec/henson/friendly_errors_spec.rb
index abc1234..def5678 100644
--- a/spec/henson/friendly_errors_spec.rb
+++ b/spec/henson/friendly_errors_spec.rb
@@ -0,0 +1,12 @@+require 'spec_helper'
+require 'henson/friendly_errors'
+
+describe "Henson.friendly_errors" do
+ it ... | Fix coverage by adding specs for friendly errors
|
diff --git a/rails/script/update.rb b/rails/script/update.rb
index abc1234..def5678 100644
--- a/rails/script/update.rb
+++ b/rails/script/update.rb
@@ -4,9 +4,9 @@ puts "Fetching latest Rails locale files to #{rails_locale_dir}"
exec %(
- curl -Lo '#{rails_locale_dir}/action_view.yml' http://github.com/rails/rails... | Update urls of rails' :en locale files in Rails locale fetch script
|
diff --git a/spec/requests/idea_requests_spec.rb b/spec/requests/idea_requests_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/idea_requests_spec.rb
+++ b/spec/requests/idea_requests_spec.rb
@@ -7,7 +7,7 @@ end
describe "GET /ideas" do
- it "return http success" do
+ it "should return http succes... | Add 'should' to idea request expectation message
Make expectations of tests a little more clear.
|
diff --git a/spec/shared/hash_method_behavior.rb b/spec/shared/hash_method_behavior.rb
index abc1234..def5678 100644
--- a/spec/shared/hash_method_behavior.rb
+++ b/spec/shared/hash_method_behavior.rb
@@ -3,11 +3,16 @@ shared_examples_for 'a hash method' do
it_should_behave_like 'an idempotent method'
- # TOOD: f... | Change spec to be pending in rbx rather than just skipping it
|
diff --git a/docs/analytics_scripts/ticket_open_time.rb b/docs/analytics_scripts/ticket_open_time.rb
index abc1234..def5678 100644
--- a/docs/analytics_scripts/ticket_open_time.rb
+++ b/docs/analytics_scripts/ticket_open_time.rb
@@ -0,0 +1,7 @@+CSV.open("/home/sage/ticket_status.csv", 'wb') do |csv|
+ csv << ['opened'... | Add script for getting data on ticket open-to-closed time
|
diff --git a/event_store-entity_projection.gemspec b/event_store-entity_projection.gemspec
index abc1234..def5678 100644
--- a/event_store-entity_projection.gemspec
+++ b/event_store-entity_projection.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'event_store-entity_projec... | Package version was increased from 0.1.2 to 0.2.0
|
diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/comments_controller.rb
+++ b/app/controllers/comments_controller.rb
@@ -3,7 +3,8 @@ # comments for posts controller
class CommentsController < ApplicationController
before... | Allow only comment owner to delete or edit their comment
|
diff --git a/app/controllers/loaderio_controller.rb b/app/controllers/loaderio_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/loaderio_controller.rb
+++ b/app/controllers/loaderio_controller.rb
@@ -10,6 +10,6 @@ private
def token
- "loaderio-#{ENV['LOADERIO_VERIFICATION_TOKEN']}"
+ ENV['... | Remove extra prefix for token
|
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/messages_controller.rb
+++ b/app/controllers/messages_controller.rb
@@ -4,7 +4,7 @@ def create
@message = Message.new(message_params.merge(sender_id: current_user.id))
... | Remove bang, should not raise exception when invalid |
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
@@ -1,8 +1,28 @@ class SessionsController < Devise::SessionsController
-
+ # Require our abstraction for... | Update session controller to return jwt token upon login
|
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
@@ -1,3 +1,23 @@ class SessionsController < ApplicationController
+ def new
+ end
+
+ def create
+ ... | Add new, create, and logout routes to sessions controller
|
diff --git a/app/controllers/orders_controller.rb b/app/controllers/orders_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/orders_controller.rb
+++ b/app/controllers/orders_controller.rb
@@ -1,6 +1,7 @@ class OrdersController < ApplicationController
def index
@orders = Order.all
+ @cart ||=... | Create instance variable @cart ||= []
|
diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/static_controller.rb
+++ b/app/controllers/static_controller.rb
@@ -1,6 +1,9 @@ # used to serve static angular templates from under app/views/static/
class StaticController < A... | Add `protect_from_forgery` to satisfy Brakeman |
diff --git a/app/serializers/serial_serializer.rb b/app/serializers/serial_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/serial_serializer.rb
+++ b/app/serializers/serial_serializer.rb
@@ -1,5 +1,10 @@ class SerialSerializer < ActiveModel::Serializer
attributes :id, :title, :description, :thumbna... | Add posts_count as meta for serials page
|
diff --git a/sensu/plugins/check-os-api.rb b/sensu/plugins/check-os-api.rb
index abc1234..def5678 100644
--- a/sensu/plugins/check-os-api.rb
+++ b/sensu/plugins/check-os-api.rb
@@ -29,7 +29,7 @@ when "glance"
"glance image-list"
when "keystone"
- "keystone endpoint-list"
+ "openstack endpoint ... | Replace keystone client usage w/ openstack client
With the most recent keystoneclient releases, the `keystone` client is
removed in favor of the `openstack` client. Change this check as such.
|
diff --git a/spec/plugin/go_spec.rb b/spec/plugin/go_spec.rb
index abc1234..def5678 100644
--- a/spec/plugin/go_spec.rb
+++ b/spec/plugin/go_spec.rb
@@ -3,15 +3,18 @@ describe "go" do
let(:filename) { 'test.go' }
- before :each do
- vim.set 'expandtab'
- vim.set 'shiftwidth', 4
+ # Go is not built-in, so l... | Make go spec independent of filetype detection
|
diff --git a/week-4/basic-math.rb b/week-4/basic-math.rb
index abc1234..def5678 100644
--- a/week-4/basic-math.rb
+++ b/week-4/basic-math.rb
@@ -0,0 +1,83 @@+# Solution Below
+
+num1 = 42
+num2 = 37
+
+sum = num1+num2
+difference = num1-num2
+quotient=num1/num2.to_f
+product = num1*num2
+modulus = num1%num2
+
+# RSpec ... | Complete 4.2.3 - Basic Math
|
diff --git a/recipes/server-monitor.rb b/recipes/server-monitor.rb
index abc1234..def5678 100644
--- a/recipes/server-monitor.rb
+++ b/recipes/server-monitor.rb
@@ -13,10 +13,7 @@ owner "root"
group "root"
mode "644"
- variables(
- :sd_url => node[:serverdensity][:sd_url],
- :agent_key => node[:serverden... | Use ALL THE ATTRIBUTES! (in the template)
|
diff --git a/week-4/longest-string/my_solution.rb b/week-4/longest-string/my_solution.rb
index abc1234..def5678 100644
--- a/week-4/longest-string/my_solution.rb
+++ b/week-4/longest-string/my_solution.rb
@@ -13,6 +13,5 @@
# Your Solution Below
def longest_string(list_of_words)
- list_of_words.sort_by { |string| st... | Complete solution and spec files for longest string
|
diff --git a/spec/api_classes/artist_spec.rb b/spec/api_classes/artist_spec.rb
index abc1234..def5678 100644
--- a/spec/api_classes/artist_spec.rb
+++ b/spec/api_classes/artist_spec.rb
@@ -2,10 +2,14 @@
describe LastFM::Artist do
it "should define unrestricted methods" do
- LastFM::Artist.unrestricted_methods.s... | Check restricted method definitions in Artist
|
diff --git a/code/black_jack_test.rb b/code/black_jack_test.rb
index abc1234..def5678 100644
--- a/code/black_jack_test.rb
+++ b/code/black_jack_test.rb
@@ -0,0 +1,25 @@+require 'minitest/autorun'
+#require 'minitest/pride'
+require './black_jack'
+
+class TestBlackJack < MiniTest::Unit::TestCase
+
+ def setup #this r... | Create test class, TestBlackJack which inherits from MiniTest::Unit::TestCase. Define methods for: setup, test_black_jack_exists, test_deck_exists
|
diff --git a/spec/lib/tinymce_spec.rb b/spec/lib/tinymce_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/tinymce_spec.rb
+++ b/spec/lib/tinymce_spec.rb
@@ -1,7 +1,22 @@ require 'spec_helper'
describe TinyMCE do
+ before(:each) do
+ Rails.application.config.action_controller.asset_host = nil
+ ActionContr... | Add specs for asset hosts and relative url root
|
diff --git a/spec/models/role_spec.rb b/spec/models/role_spec.rb
index abc1234..def5678 100644
--- a/spec/models/role_spec.rb
+++ b/spec/models/role_spec.rb
@@ -20,14 +20,14 @@ describe '.crop_wranglers' do
let!(:crop_wranglers) { FactoryGirl.create_list(:crop_wrangling_member, 3) }
it 'return the crop wran... | Switch to match_array to get around spuriously failing tests
|
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index abc1234..def5678 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -1,13 +1,13 @@ require 'rails_helper'
RSpec.describe User, type: :model do
- pending "add some examples to (or delete) #{__FILE__}"
+ #pending "add some ex... | Add test for new User
|
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index abc1234..def5678 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -1,5 +1,17 @@ require 'spec_helper'
describe User do
- pending "add some examples to (or delete) #{__FILE__}"
+
+ it "is valid with a username and password... | Test stubs for user model
|
diff --git a/app/controllers/assets_controller.rb b/app/controllers/assets_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/assets_controller.rb
+++ b/app/controllers/assets_controller.rb
@@ -12,8 +12,8 @@ }
# Load and assign parent invoice
- invoice = Invoice.find(params[:invoice_id])
- ... | Fix Asset creation with no invoice.
|
diff --git a/app/controllers/events_controller.rb b/app/controllers/events_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/events_controller.rb
+++ b/app/controllers/events_controller.rb
@@ -6,7 +6,7 @@
# Only if logged in
def create
- @event = Event.new(params[:event])
+ @event = Event.new... | Add strong parameters in the events controller
|
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -6,7 +6,6 @@ else
@keyword = params[:keyword]
@results = Search.for(params[:keyword])
- @... | Fix search controller remove favorite
|
diff --git a/Rakefile.rb b/Rakefile.rb
index abc1234..def5678 100644
--- a/Rakefile.rb
+++ b/Rakefile.rb
@@ -25,6 +25,7 @@ nugets_pack :create_nugets => [package_dir, :versioning, :build] do |p|
p.files = FileList['src/**/MiniWebDeploy.csproj']
p.out = package_dir
+ p.configuration = 'Release'
p.exe ... | Use the Release configuration when creating the nuget package
|
diff --git a/features/support/diff_lcs_versions.rb b/features/support/diff_lcs_versions.rb
index abc1234..def5678 100644
--- a/features/support/diff_lcs_versions.rb
+++ b/features/support/diff_lcs_versions.rb
@@ -1,6 +1,8 @@+require 'diff-lcs'
+
Around "@skip-when-diff-lcs-1.4" do |scenario, block|
if Diff::LCS::VE... | Improve diff-lcs flags for cucumber
|
diff --git a/spec/classes/watchdog_spec.rb b/spec/classes/watchdog_spec.rb
index abc1234..def5678 100644
--- a/spec/classes/watchdog_spec.rb
+++ b/spec/classes/watchdog_spec.rb
@@ -9,50 +9,36 @@ }
end
- it do
- expect { subject }.to raise_error(/not supported on an Unsupported/)
- end
+ it { ... | Update tests to use rspec-puppet-facts
|
diff --git a/SPTPersistentCache.podspec b/SPTPersistentCache.podspec
index abc1234..def5678 100644
--- a/SPTPersistentCache.podspec
+++ b/SPTPersistentCache.podspec
@@ -13,10 +13,10 @@ s.ios.deployment_target = "7.0"
s.osx.deployment_target = "10.8"
- s.homepage = "https://github.com/spotify/SPTPersis... | Fix podspec referencing name with Data infix
|
diff --git a/guard_against_physical_delete.gemspec b/guard_against_physical_delete.gemspec
index abc1234..def5678 100644
--- a/guard_against_physical_delete.gemspec
+++ b/guard_against_physical_delete.gemspec
@@ -18,7 +18,7 @@ s.rubygems_version = "1.8.15"
s.summary = "Guard against physical delete"
- s.add_run... | Drop support for activerecord <5.0
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -4,7 +4,7 @@ license 'Apache 2.0'
description 'Installs and configures Salt'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version '0.1.2'
+version ... | Increment version to 0.2.0 in development
|
diff --git a/test/form/simple_form.rb b/test/form/simple_form.rb
index abc1234..def5678 100644
--- a/test/form/simple_form.rb
+++ b/test/form/simple_form.rb
@@ -18,7 +18,7 @@ form.add(last_name)
form.add(age)
form.add(gender)
-
+ form.add( PPCurses::ButtonPair.new('Submit', 'Cancel') )
app = PPCurses::App... | Create a button pair in the test.
|
diff --git a/test/html5/test_scrub.rb b/test/html5/test_scrub.rb
index abc1234..def5678 100644
--- a/test/html5/test_scrub.rb
+++ b/test/html5/test_scrub.rb
@@ -0,0 +1,10 @@+require "helper"
+
+class UnitHTML5Scrub < Loofah::TestCase
+ include Loofah
+
+ def test_scrub_css
+ assert Loofah::HTML5::Scrub.scrub_css("... | Add a test for testing style attribute scrubbing
|
diff --git a/railties/lib/tasks/tmp.rake b/railties/lib/tasks/tmp.rake
index abc1234..def5678 100644
--- a/railties/lib/tasks/tmp.rake
+++ b/railties/lib/tasks/tmp.rake
@@ -10,18 +10,24 @@ FileUtils.mkdir "tmp/sockets"
end
- desc "Clears all files in tmp/sessions"
- task :clear_sessions do
- FileUtils.rm(... | Make clearing follow the object:action naming of the rest of the tasks
git-svn-id: afc9fed30c1a09d8801d1e4fbe6e01c29c67d11f@3698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
diff --git a/recipes/update_tabula_rasa_cookbooks.rb b/recipes/update_tabula_rasa_cookbooks.rb
index abc1234..def5678 100644
--- a/recipes/update_tabula_rasa_cookbooks.rb
+++ b/recipes/update_tabula_rasa_cookbooks.rb
@@ -9,4 +9,4 @@ end
end
-include_recipe "tabula_rasa::prapare_cookbooks"
+include_recipe "tabula_r... | Fix typo in recipe name |
diff --git a/lib/docs/scrapers/nginx_lua_module.rb b/lib/docs/scrapers/nginx_lua_module.rb
index abc1234..def5678 100644
--- a/lib/docs/scrapers/nginx_lua_module.rb
+++ b/lib/docs/scrapers/nginx_lua_module.rb
@@ -2,8 +2,8 @@ class NginxLuaModule < Github
self.name = 'nginx / Lua Module'
self.slug = 'nginx_l... | Update nginx / Lua Module documentation (0.10.6)
|
diff --git a/lib/font_awesome/sass/rails/engine.rb b/lib/font_awesome/sass/rails/engine.rb
index abc1234..def5678 100644
--- a/lib/font_awesome/sass/rails/engine.rb
+++ b/lib/font_awesome/sass/rails/engine.rb
@@ -7,7 +7,7 @@ app.config.assets.paths << root.join('assets', sub)
end
- con... | Fix for missing app, for precompile
|
diff --git a/lib/lita/github_pr_list/check_list.rb b/lib/lita/github_pr_list/check_list.rb
index abc1234..def5678 100644
--- a/lib/lita/github_pr_list/check_list.rb
+++ b/lib/lita/github_pr_list/check_list.rb
@@ -2,19 +2,18 @@ module GithubPrList
class CheckList
attr_accessor :request, :response, :payload... | Change the list to be an attribute
|
diff --git a/govuk_message_queue_consumer.gemspec b/govuk_message_queue_consumer.gemspec
index abc1234..def5678 100644
--- a/govuk_message_queue_consumer.gemspec
+++ b/govuk_message_queue_consumer.gemspec
@@ -19,7 +19,7 @@ s.add_dependency 'bunny', '~> 2.11'
s.add_development_dependency 'rspec', '~> 3.8.0'
- s.... | Update rake requirement from ~> 10.4.2 to ~> 12.3.2
Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rake/compa... |
diff --git a/Casks/neteasemusic.rb b/Casks/neteasemusic.rb
index abc1234..def5678 100644
--- a/Casks/neteasemusic.rb
+++ b/Casks/neteasemusic.rb
@@ -1,9 +1,9 @@ cask :v1 => 'neteasemusic' do
- version '1.3.1'
- sha256 '1a850e6c624d05e72d25caf6d449613713294ffd5fe4ddad4287684118a10fd6'
+ version '1.4.0'
+ sha256 'e61... | Upgrade Netease Music to v1.4.0
|
diff --git a/lib/test_launcher/cli/input_parser.rb b/lib/test_launcher/cli/input_parser.rb
index abc1234..def5678 100644
--- a/lib/test_launcher/cli/input_parser.rb
+++ b/lib/test_launcher/cli/input_parser.rb
@@ -1,3 +1,4 @@+require "test_launcher/version"
require "optparse"
# This could use some love
@@ -10,6 +11,... | Add version info to test_launcher
|
diff --git a/Casks/adobe-reader.rb b/Casks/adobe-reader.rb
index abc1234..def5678 100644
--- a/Casks/adobe-reader.rb
+++ b/Casks/adobe-reader.rb
@@ -1,10 +1,10 @@ cask :v1 => 'adobe-reader' do
- version '11.0.09'
- sha256 '259957f1434bcdf47dc6a7c12affc40dd3c17288009dc229aa51f20ec4e8b1c5'
+ version '11.0.10'
+ sha25... | Update Adobe Reader to 11.0.10
|
diff --git a/test/integration/contract_test.rb b/test/integration/contract_test.rb
index abc1234..def5678 100644
--- a/test/integration/contract_test.rb
+++ b/test/integration/contract_test.rb
@@ -0,0 +1,14 @@+# -*- coding: utf-8 -*-
+require 'test_helper'
+
+class ContractTest < ActionDispatch::IntegrationTest
+ test... | Add test to index/show pages in Contract
|
diff --git a/Library/Formula/midnight-commander.rb b/Library/Formula/midnight-commander.rb
index abc1234..def5678 100644
--- a/Library/Formula/midnight-commander.rb
+++ b/Library/Formula/midnight-commander.rb
@@ -1,26 +1,15 @@ require 'formula'
class MidnightCommander <Formula
-
url 'http://www.midnight-commander... | Revert "Modified formula for MC, it now supports --HEAD opt"
This reverts commit 50bd66af99cfaec4501bd37b0938e18c93198a83.
|
diff --git a/ConventionalC.podspec b/ConventionalC.podspec
index abc1234..def5678 100644
--- a/ConventionalC.podspec
+++ b/ConventionalC.podspec
@@ -5,8 +5,8 @@ s.homepage = "http://github.com/ConventionalC/ConventionalC"
s.license = 'MIT'
s.author = { "Peter DeWeese" => "peter@dewee.se" }
- s.s... | Set podspec for development mode.
|
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb
index abc1234..def5678 100644
--- a/config/initializers/session_store.rb
+++ b/config/initializers/session_store.rb
@@ -1,3 +1,6 @@ # Be sure to restart your server when you modify this file.
-FinderFrontend::Application.config.s... | Set 'secure' flag for session cookie in production
This ensures that the session cookie isn't sent over HTTP. GOV.UK
upgrades requests to HTTPS, so that won't happen normally.
|
diff --git a/db/migrate/20150827121444_add_fast_forward_option_to_project.rb b/db/migrate/20150827121444_add_fast_forward_option_to_project.rb
index abc1234..def5678 100644
--- a/db/migrate/20150827121444_add_fast_forward_option_to_project.rb
+++ b/db/migrate/20150827121444_add_fast_forward_option_to_project.rb
@@ -8,7... | Put a condition to old migration that adds fast_forward column to MRs
|
diff --git a/db/migrate/20190222204716_remove_ip_tracking_from_publishers.rb b/db/migrate/20190222204716_remove_ip_tracking_from_publishers.rb
index abc1234..def5678 100644
--- a/db/migrate/20190222204716_remove_ip_tracking_from_publishers.rb
+++ b/db/migrate/20190222204716_remove_ip_tracking_from_publishers.rb
@@ -1,6... | Add type to allow reverse of 20190222204716
|
diff --git a/webapp/spec/controllers/search_controller_spec.rb b/webapp/spec/controllers/search_controller_spec.rb
index abc1234..def5678 100644
--- a/webapp/spec/controllers/search_controller_spec.rb
+++ b/webapp/spec/controllers/search_controller_spec.rb
@@ -21,13 +21,13 @@ end
it "does not return sensitiv... | Revise commit f51bd10, fixes references to search/cmrs (again)
|
diff --git a/rswag-ui/lib/rswag/ui/basic_auth.rb b/rswag-ui/lib/rswag/ui/basic_auth.rb
index abc1234..def5678 100644
--- a/rswag-ui/lib/rswag/ui/basic_auth.rb
+++ b/rswag-ui/lib/rswag/ui/basic_auth.rb
@@ -1,25 +1,34 @@+# frozen_string_literal: true
+
require 'rack/auth/basic'
-class BasicAuth < ::Rack::Auth::Basic
-... | fix(rswag-ui): Define BasicAuth in Rswag::Ui module
|
diff --git a/my_cookbooks/utils/recipes/default.rb b/my_cookbooks/utils/recipes/default.rb
index abc1234..def5678 100644
--- a/my_cookbooks/utils/recipes/default.rb
+++ b/my_cookbooks/utils/recipes/default.rb
@@ -8,15 +8,21 @@ package 'tree'
# Install MongoDB plugin for dstat
-execute "wget -P /usr/share/dstat/ http... | Install dstat and MongoHacker only if not already present
Just a small optimization when working iteratively on the cookbooks to
make each `vagrant provision` run a bit faster.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.