diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -25,7 +25,7 @@ end
case node['platform_family']
-when 'windows', 'debian', 'rhel', 'suse'
+when 'windows', 'debian', 'rhel', 'suse', 'amazon'
include_recipe 'push-jobs::install'
... | Add back amazon Linux support
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/spec/requests/virus_scanning_spec.rb b/spec/requests/virus_scanning_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/virus_scanning_spec.rb
+++ b/spec/requests/virus_scanning_spec.rb
@@ -17,6 +17,7 @@ get download_media_path(id: asset, filename: "lorem.txt")
expect(response).to have_http_... | Fix virus scanning test on local docker instance
We had one consistent failing test:
```
Virus scanning of uploaded images a clean asset is available after virus scanning & uploading to cloud storage
Failure/Error: raise Error, out_str
VirusScanner::Error:
LibClamAV Error: cli_loaddbdir(): No supported database fi... |
diff --git a/config/environments/production.rb b/config/environments/production.rb
index abc1234..def5678 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -18,4 +18,5 @@ # config.action_mailer.raise_delivery_errors = false
config.action_mailer.delivery_method = :sendmail # so i... | Fix for incoming mailer failing with undefined method `new' for "Rack::SSL":String
|
diff --git a/roles/draco.rb b/roles/draco.rb
index abc1234..def5678 100644
--- a/roles/draco.rb
+++ b/roles/draco.rb
@@ -22,7 +22,7 @@ :tune_cpu_scheduler => {
:comment => "Tune CPU scheduler for server scheduling",
:parameters => {
- "kernel.sched_migration_cost" => 50000000,
+ "kernel.... | Correct name of sysctl variable
|
diff --git a/app/models/ability.rb b/app/models/ability.rb
index abc1234..def5678 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -16,6 +16,9 @@ can :read, Comment, :status => ['neutral', 'approved', 'flagged']
can :opinions, Comment, :status => ['neutral', 'approved', 'flagged']
can :re... | Fix abilities to allow reading users contributions, likes and dislikes
|
diff --git a/spec/scanny/checks/ssl/verify_check_spec.rb b/spec/scanny/checks/ssl/verify_check_spec.rb
index abc1234..def5678 100644
--- a/spec/scanny/checks/ssl/verify_check_spec.rb
+++ b/spec/scanny/checks/ssl/verify_check_spec.rb
@@ -4,7 +4,7 @@ describe VerifyCheck do
before do
@runner = Scanny::Runne... | Update check message. Add space.
|
diff --git a/db/data_migration/20210302154339_reslug_list_of_countries_accepted_towards_issuing_a_uk_cec.rb b/db/data_migration/20210302154339_reslug_list_of_countries_accepted_towards_issuing_a_uk_cec.rb
index abc1234..def5678 100644
--- a/db/data_migration/20210302154339_reslug_list_of_countries_accepted_towards_issu... | Create manual reslugging db migration
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -6,7 +6,7 @@ long_description 'Upgrades chef-client to specified releases'
version '1.0.2'
-%w(amazon centos debian mac_os_x opensuse opensuseleap oracle redhat scientific solaris suse ubuntu windows aix).each... | Fix the solaris platform name
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/0_code_wars/remove_first_and_last_char.rb b/0_code_wars/remove_first_and_last_char.rb
index abc1234..def5678 100644
--- a/0_code_wars/remove_first_and_last_char.rb
+++ b/0_code_wars/remove_first_and_last_char.rb
@@ -0,0 +1,8 @@+# http://www.codewars.com/kata/570597e258b58f6edc00230d
+# --- iteration 1 ---
... | Add code wars (8) - remove first and last char
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -5,10 +5,15 @@ description 'Installs/Configures ambari'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.3.3'
+
supports 'redhat', '>= 5.0'
supports 'centos', ... | Add issues_url and source_url for foodcritic
|
diff --git a/sirius.gemspec b/sirius.gemspec
index abc1234..def5678 100644
--- a/sirius.gemspec
+++ b/sirius.gemspec
@@ -24,5 +24,6 @@ spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
+ spec.add_development_dependency "pry"
en... | Add pry as development dependency
|
diff --git a/spec/helper.rb b/spec/helper.rb
index abc1234..def5678 100644
--- a/spec/helper.rb
+++ b/spec/helper.rb
@@ -2,6 +2,8 @@ require "pry"
RSpec.configure do |config|
+
+ config.filter_run_excluding slow: true
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom... | Support tagging specs as slow
|
diff --git a/moviebot.rb b/moviebot.rb
index abc1234..def5678 100644
--- a/moviebot.rb
+++ b/moviebot.rb
@@ -11,6 +11,7 @@ require 'net/http'
require 'json'
require 'openssl'
+require 'fileutils'
require 'websocket/driver'
require 'concurrent'
@@ -33,6 +34,8 @@
SLACK = Slack.new
+FileUtils.mkdir([ RIPPING_ROO... | Create base directories on start.
|
diff --git a/spec/libraries/windows_spec.rb b/spec/libraries/windows_spec.rb
index abc1234..def5678 100644
--- a/spec/libraries/windows_spec.rb
+++ b/spec/libraries/windows_spec.rb
@@ -0,0 +1,26 @@+require_relative '../../libraries/windows.rb'
+
+describe ::PCI::Windows do
+ describe 'the method #pnp_info' do
+ it ... | Add minor test for windows helpers method
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -1,6 +1,24 @@+#
+# Cookbook Name:: memcached
+# Attributes:: default
+#
+# Copyright 2009, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"... | Add header to the attributes file
|
diff --git a/spec/models/riews/view_spec.rb b/spec/models/riews/view_spec.rb
index abc1234..def5678 100644
--- a/spec/models/riews/view_spec.rb
+++ b/spec/models/riews/view_spec.rb
@@ -7,5 +7,13 @@ it { should validate_presence_of(:code) }
it { should validate_uniqueness_of(:code) }
end
+ describe ... | Add tests for ActiveRecord features on View model
|
diff --git a/core/spec/acceptance/feedback_spec.rb b/core/spec/acceptance/feedback_spec.rb
index abc1234..def5678 100644
--- a/core/spec/acceptance/feedback_spec.rb
+++ b/core/spec/acceptance/feedback_spec.rb
@@ -10,12 +10,9 @@ end
it "the form shows after clicking Feedback" do
- find('#feedback_frame')... | Fix selectors for invisible things (these now need to be explicit for capybara)
|
diff --git a/3-etl/emr-etl-runner/snowplow-emr-etl-runner.gemspec b/3-etl/emr-etl-runner/snowplow-emr-etl-runner.gemspec
index abc1234..def5678 100644
--- a/3-etl/emr-etl-runner/snowplow-emr-etl-runner.gemspec
+++ b/3-etl/emr-etl-runner/snowplow-emr-etl-runner.gemspec
@@ -19,5 +19,6 @@ gem.add_dependency 'elasticity'... | Add aws-s3 dependency to gemsepec
|
diff --git a/cookbooks/php7/recipes/default.rb b/cookbooks/php7/recipes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/php7/recipes/default.rb
+++ b/cookbooks/php7/recipes/default.rb
@@ -15,7 +15,7 @@ action :add
end
-apt_package "php7.1" do
+apt_package ["php7.1", "php7.1-xml", "php7.1-curl", "php... | Add Extension for PHP7.1 so basic stuff works.
|
diff --git a/ar-ondemand.gemspec b/ar-ondemand.gemspec
index abc1234..def5678 100644
--- a/ar-ondemand.gemspec
+++ b/ar-ondemand.gemspec
@@ -5,7 +5,6 @@ Gem::Specification.new do |s|
s.name = 'ar-ondemand'
s.version = ::ArOnDemand::VERSION
- s.date = Date.today.to_s
s.summary = 'ActiveRe... | Remove explicit date from gemspec
This seems unnecessary. Having one causes wrong dates to be set on Rubygems, and setting `Date.today` fails on Solano.
|
diff --git a/artifactory.gemspec b/artifactory.gemspec
index abc1234..def5678 100644
--- a/artifactory.gemspec
+++ b/artifactory.gemspec
@@ -21,5 +21,6 @@ spec.add_dependency 'httpclient', '~> 2.3'
spec.add_dependency 'i18n', '~> 0.5'
+ spec.add_development_dependency 'pry'
spec.add_development_depende... | Add pry as a development dependency
|
diff --git a/tools/check_interreplay_violations.rb b/tools/check_interreplay_violations.rb
index abc1234..def5678 100644
--- a/tools/check_interreplay_violations.rb
+++ b/tools/check_interreplay_violations.rb
@@ -6,6 +6,8 @@ # It only exists because old STS versions didn't store this information in an
# easily accessi... | Print JSON rather than plain text
|
diff --git a/racket.gemspec b/racket.gemspec
index abc1234..def5678 100644
--- a/racket.gemspec
+++ b/racket.gemspec
@@ -3,7 +3,7 @@ require 'rubygems'
SPEC = Gem::Specification.new do |s|
s.name = "racket"
- s.version = "1.0.9"
+ s.version = "1.0.10"
s.author = "Jon Hart"
s.email = "jhart@spoofed.org"
s... | Add pcaprub and bit-struct as dependencies
git-svn-id: b3d365f95d627ddffb8722c756fee9dc0a59d335@182 64fbf49a-8b99-41c6-b593-eb2128c2192d
|
diff --git a/app/controllers/api/v1/api_application_controller.rb b/app/controllers/api/v1/api_application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/api_application_controller.rb
+++ b/app/controllers/api/v1/api_application_controller.rb
@@ -5,16 +5,17 @@ before_filter :authen... | Verify if access_token is correct
|
diff --git a/lib/languages/norsk/present_tense.rb b/lib/languages/norsk/present_tense.rb
index abc1234..def5678 100644
--- a/lib/languages/norsk/present_tense.rb
+++ b/lib/languages/norsk/present_tense.rb
@@ -6,6 +6,9 @@ def self.regular_conjugation verb
if verb.infinitive.end_with? "s"
"#{verb.infinitive... | Work around the "(transitive)" and "(intransitive)" labeling when conjugating in the present tense.
|
diff --git a/test/integration/api_authentication_test.rb b/test/integration/api_authentication_test.rb
index abc1234..def5678 100644
--- a/test/integration/api_authentication_test.rb
+++ b/test/integration/api_authentication_test.rb
@@ -0,0 +1,25 @@+require 'test_helper'
+
+class ApiAuthenticationTest < ActionDispatch:... | Test stubs for API authentication
|
diff --git a/app/controllers/admin/posts_controller.rb b/app/controllers/admin/posts_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/posts_controller.rb
+++ b/app/controllers/admin/posts_controller.rb
@@ -53,6 +53,6 @@
# Only allow a trusted parameter "white list" through.
def post_pa... | Add published and published_at to white list
|
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
@@ -22,6 +22,8 @@ def finders_excluded_from_robots
[
'aaib-reports',
+ 'drug... | Revert "Allow robots to crawl MHRA"
|
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
@@ -15,4 +15,14 @@ erb :index
end
+ helpers do
+ def is_logged_in?
+ !!sessio... | Add view helper methods in ApplicationController
|
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
@@ -3,6 +3,7 @@ # Prevent CSRF attacks by raising an exception.
# For APIs, you may want t... | Allow mobile variant to be set
|
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,7 +1,4 @@ class ApplicationController < ActionController::Base
- # Prevent CSRF attacks ... | Remove CSRF protection from ApplicationController
|
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
@@ -11,9 +11,8 @@ end
end
- def check_ownership(user_id)
- login_needed
- ... | Fix error in check_ownership when user isn't signed in
|
diff --git a/app/presenters/calculator_content_item.rb b/app/presenters/calculator_content_item.rb
index abc1234..def5678 100644
--- a/app/presenters/calculator_content_item.rb
+++ b/app/presenters/calculator_content_item.rb
@@ -23,6 +23,7 @@ title: calculator.title,
base_path: base_path,
format: 'p... | Add empty `details` to content item payload sent to publishing api
The govuk-content-schemas have changed since the last time this
application was updated. The govuk-content-schemas now expects all
content payloads pushed to it to contain a `details` item.
This problem also occurred in the smart-answers repo.
See PR:... |
diff --git a/app/views/categories/rss_feed.rss.builder b/app/views/categories/rss_feed.rss.builder
index abc1234..def5678 100644
--- a/app/views/categories/rss_feed.rss.builder
+++ b/app/views/categories/rss_feed.rss.builder
@@ -6,7 +6,7 @@ xml.name "#{SiteSetting['SiteName']} - Codidact"
end
xml.link nil, re... | Fix no-posts case for RSS feeds
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -25,14 +25,9 @@
case node['platform_family']
when 'rhel'
- package_list = ['heartbeat', 'heartbeat-devel']
+ package %w(heartbeat heartbeat-devel)
when 'debian'
- package_list =... | Speed up intstalls with multipackage
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/lib/hdo/stats/vote_exporter.rb b/lib/hdo/stats/vote_exporter.rb
index abc1234..def5678 100644
--- a/lib/hdo/stats/vote_exporter.rb
+++ b/lib/hdo/stats/vote_exporter.rb
@@ -0,0 +1,28 @@+require 'csv'
+
+module Hdo
+ module Stats
+ class VoteExporter
+ def initialize(votes = Vote.all)
+ @vote... | Add script to CSV export votes + handle an exact party split in VoteCounts
|
diff --git a/lib/moonshine/msttcorefonts.rb b/lib/moonshine/msttcorefonts.rb
index abc1234..def5678 100644
--- a/lib/moonshine/msttcorefonts.rb
+++ b/lib/moonshine/msttcorefonts.rb
@@ -26,7 +26,7 @@
file '/var/cache/preseeding/msttcorefonts.seed',
:ensure => :present,
- :content => template('mst... | Update path to template file
|
diff --git a/db/data_migration/20130926091146_fix_broken_first_published_at_timestamps.rb b/db/data_migration/20130926091146_fix_broken_first_published_at_timestamps.rb
index abc1234..def5678 100644
--- a/db/data_migration/20130926091146_fix_broken_first_published_at_timestamps.rb
+++ b/db/data_migration/20130926091146... | Fix editions with broken first_published_at
There are a dozen or so editions with a first_published_at timestamp
that is broken (e.g. 0001-01-01). This fixes them, using the edition's
public_timestamp if that is a sensible value, otherwise falling back
to the latest edition's first_published_at
|
diff --git a/lib/smoke_monster/array_to_object.rb b/lib/smoke_monster/array_to_object.rb
index abc1234..def5678 100644
--- a/lib/smoke_monster/array_to_object.rb
+++ b/lib/smoke_monster/array_to_object.rb
@@ -4,13 +4,12 @@ return [] if data.empty?
result = Object.new
- def result.name
- @name
- ... | Make the failing test pass.
|
diff --git a/lib/tweets/media_status_persister.rb b/lib/tweets/media_status_persister.rb
index abc1234..def5678 100644
--- a/lib/tweets/media_status_persister.rb
+++ b/lib/tweets/media_status_persister.rb
@@ -17,7 +17,7 @@ LAYOUT
def initialize(image_path)
- @image_path = image_path
+ @image_paths = [image_p... | Make MediaStatusPersister handle no images
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -13,7 +13,7 @@ # Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initialize... | Use UTC as the default time zone
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -19,7 +19,6 @@
config.active_record.whitelist_attributes = false
config.assets.enabled = true
- config.assets.initialize_on_precompile = false
config.ass... | Load rails environment when precompiling assets
* Setting config.assets.initialize_on_precompile to false does not load Rails
environment when precompiling assets
* Use of named routes in js.erb files requires Rails environment
* Heroku suggests setting to false in Rails 3, but this config option is not
available ... |
diff --git a/spec/unit/pty_spec.rb b/spec/unit/pty_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/pty_spec.rb
+++ b/spec/unit/pty_spec.rb
@@ -2,7 +2,7 @@ it "executes command in pseudo terminal mode as global option", unless: RSpec::Support::OS.windows? do
color_cli = fixtures_path('color')
output = ... | Change to silence test output
|
diff --git a/library/zlib/gzipwriter/write_spec.rb b/library/zlib/gzipwriter/write_spec.rb
index abc1234..def5678 100644
--- a/library/zlib/gzipwriter/write_spec.rb
+++ b/library/zlib/gzipwriter/write_spec.rb
@@ -1,3 +1,4 @@+#coding:ASCII-8BIT
require File.dirname(__FILE__) + '/../../../spec_helper'
require 'stringio... | Add magic comment and give initial string to set its encoding.
|
diff --git a/test/models/campus_test.rb b/test/models/campus_test.rb
index abc1234..def5678 100644
--- a/test/models/campus_test.rb
+++ b/test/models/campus_test.rb
@@ -1,14 +1,12 @@ require "test_helper"
class CampusTest < ActiveSupport::TestCase
- def test_create_campus
- data = {
- name: 'Sydney',
- ... | TEST: Use factory girl default create in test create campus
|
diff --git a/test/unit/resource_test.rb b/test/unit/resource_test.rb
index abc1234..def5678 100644
--- a/test/unit/resource_test.rb
+++ b/test/unit/resource_test.rb
@@ -0,0 +1,9 @@+require "test_helper"
+
+class Colppy::ResourceTest < Minitest::Test
+
+ def test_valid_invoices_types
+ assert_equal %w(A B C E Z I M ... | Add a test to push to travis
|
diff --git a/test/dummy_test.rb b/test/dummy_test.rb
index abc1234..def5678 100644
--- a/test/dummy_test.rb
+++ b/test/dummy_test.rb
@@ -21,20 +21,20 @@ end
end
-# describe "Dummy Spec" do
-# before do
-# @dummy = Dummy.new
-# end
+describe "Dummy Spec" do
+ before do
+ @dummy = Dummy.new
+ end
-#... | Enable spec style, let later to remove one of them
|
diff --git a/text_message_rails.gemspec b/text_message_rails.gemspec
index abc1234..def5678 100644
--- a/text_message_rails.gemspec
+++ b/text_message_rails.gemspec
@@ -25,5 +25,5 @@ spec.add_development_dependency "bundler", "~> 1.11"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_depen... | Make Rails a runtime dependency
|
diff --git a/Expecta.podspec b/Expecta.podspec
index abc1234..def5678 100644
--- a/Expecta.podspec
+++ b/Expecta.podspec
@@ -23,4 +23,5 @@ s.osx.deployment_target = '10.7'
s.frameworks = 'Foundation', 'XCTest'
+ s.pod_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' }
end
| Fix deployment to hardware device.
|
diff --git a/Formula/glpk.rb b/Formula/glpk.rb
index abc1234..def5678 100644
--- a/Formula/glpk.rb
+++ b/Formula/glpk.rb
@@ -0,0 +1,12 @@+require 'brewkit'
+
+class Glpk <Formula
+ url 'http://ftp.gnu.org/gnu/glpk/glpk-4.39.tar.gz'
+ homepage 'http://www.gnu.org/software/glpk/'
+ md5 '95f276ef6c94c6de1eb689f161f525f... | Add formula for GNU Linear Programming Kit
Provides a library and stand-alone tool for solving linear programs (LPs) and
integer linear programs (ILPs). Doesn't depend on anything else.
|
diff --git a/db/migrate/20141105111536_create_users.rb b/db/migrate/20141105111536_create_users.rb
index abc1234..def5678 100644
--- a/db/migrate/20141105111536_create_users.rb
+++ b/db/migrate/20141105111536_create_users.rb
@@ -4,8 +4,8 @@ t.string :username
t.string :email
t.string :password_diges... | Add User References to Session Migration
|
diff --git a/GeoFire.podspec b/GeoFire.podspec
index abc1234..def5678 100644
--- a/GeoFire.podspec
+++ b/GeoFire.podspec
@@ -11,7 +11,7 @@ s.default_subspec = 'Database'
s.subspec 'Database' do |db|
- db.ios.dependency 'Firebase/Database', '~> 7.0.0'
+ db.ios.dependency 'Firebase/Database', '> 7.0.0', '< 9... | Add compatibility with all Firebase 7 and 8 versions
|
diff --git a/app/controller/ember_cli/ember_controller.rb b/app/controller/ember_cli/ember_controller.rb
index abc1234..def5678 100644
--- a/app/controller/ember_cli/ember_controller.rb
+++ b/app/controller/ember_cli/ember_controller.rb
@@ -1,5 +1,16 @@ module EmberCli
class EmberController < ::ApplicationController... | Add modules to `ember_cli/ember` controller
Closes [#480].
When the `ApplicationController` extends `ActionController::API`, HTML
rendering modules and logic are omitted.
To make the `EmberCli::EmberController` capable of rendering the Ember
application's HTML, this commit ensures those modules are included when
nec... |
diff --git a/week-6/attr/my_solution.rb b/week-6/attr/my_solution.rb
index abc1234..def5678 100644
--- a/week-6/attr/my_solution.rb
+++ b/week-6/attr/my_solution.rb
@@ -0,0 +1,82 @@+#Attr Methods
+
+# I worked on this challenge by myself
+
+# I spent 2.5 hours on this challenge.
+
+# Pseudocode
+
+# Input:a name
+# Out... | Add file for the attribute exercise
|
diff --git a/lib/swingset/framework_directory.rb b/lib/swingset/framework_directory.rb
index abc1234..def5678 100644
--- a/lib/swingset/framework_directory.rb
+++ b/lib/swingset/framework_directory.rb
@@ -0,0 +1,34 @@+#
+module SwingSet
+ # Will add frameworks to a given swingset
+ class FrameworkDirectory
+ def i... | Create a class which can prepare a swingset with frameworks in a directory
|
diff --git a/lib/tasks/notify_trending_maps.rake b/lib/tasks/notify_trending_maps.rake
index abc1234..def5678 100644
--- a/lib/tasks/notify_trending_maps.rake
+++ b/lib/tasks/notify_trending_maps.rake
@@ -24,7 +24,7 @@ unless simulation
trending_maps_lib.notify_trending_map(visualization_id, views, p... | Fix trending maps after refactor
|
diff --git a/app/controllers/landing_controller.rb b/app/controllers/landing_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/landing_controller.rb
+++ b/app/controllers/landing_controller.rb
@@ -33,5 +33,7 @@ index.sub!("/ember-cli-live-reload",
"http://localhost:4200/ember-cli... | Return index after patching it
|
diff --git a/app/controllers/axioms_controller.rb b/app/controllers/axioms_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/axioms_controller.rb
+++ b/app/controllers/axioms_controller.rb
@@ -27,9 +27,9 @@ else
parent.translated_axioms
end
- Kaminari.paginate_ar... | Add per_page support for axioms index.
|
diff --git a/app/controllers/manage_controller.rb b/app/controllers/manage_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/manage_controller.rb
+++ b/app/controllers/manage_controller.rb
@@ -24,7 +24,7 @@ register Sinatra::Twitter::Bootstrap::Assets
get '/jobs' do
- @jobs = Submi... | [manage] Order jobs by ID desc.
|
diff --git a/app/helpers/blog/pagination_helper.rb b/app/helpers/blog/pagination_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/blog/pagination_helper.rb
+++ b/app/helpers/blog/pagination_helper.rb
@@ -13,7 +13,7 @@
protected
def url(page)
- path = @template.request.path
+ path = curre... | Fix pagination paths in Rails 4.2
|
diff --git a/app/models/concerns/account_scoped.rb b/app/models/concerns/account_scoped.rb
index abc1234..def5678 100644
--- a/app/models/concerns/account_scoped.rb
+++ b/app/models/concerns/account_scoped.rb
@@ -29,7 +29,7 @@ end
def with(options)
- if (account = options).is_a?(Account) ||
+ if ((... | Fix account scoped persist options for account option
|
diff --git a/app/models/spree/payment_decorator.rb b/app/models/spree/payment_decorator.rb
index abc1234..def5678 100644
--- a/app/models/spree/payment_decorator.rb
+++ b/app/models/spree/payment_decorator.rb
@@ -0,0 +1,29 @@+module Spree
+ module PaymentDecorator
+ def verify!(**options)
+ process_verificatio... | Allow ACH bank transfer spree payments to be verified from model level
|
diff --git a/app/models/spree/product_decorator.rb b/app/models/spree/product_decorator.rb
index abc1234..def5678 100644
--- a/app/models/spree/product_decorator.rb
+++ b/app/models/spree/product_decorator.rb
@@ -1,6 +1,8 @@ # Add access to reviews/ratings to the product model
Spree::Product.class_eval do
has_many ... | Fix for Rails security update. Need to make those attributes accessible
|
diff --git a/app/resources/application_resource.rb b/app/resources/application_resource.rb
index abc1234..def5678 100644
--- a/app/resources/application_resource.rb
+++ b/app/resources/application_resource.rb
@@ -27,7 +27,7 @@ when JSONAPI::Relationship::ToOne
record_or_records
when JSONAPI::Relationshi... | Fix Pundit not receiving context
|
diff --git a/app/models/webhook/event_register.rb b/app/models/webhook/event_register.rb
index abc1234..def5678 100644
--- a/app/models/webhook/event_register.rb
+++ b/app/models/webhook/event_register.rb
@@ -4,10 +4,12 @@ end
class EventRegister
+ attr_accessor :event
+
def initialize(record, created: f... | Add event attr on event register model
|
diff --git a/week-4/calulate-grade/my_solution.rb b/week-4/calulate-grade/my_solution.rb
index abc1234..def5678 100644
--- a/week-4/calulate-grade/my_solution.rb
+++ b/week-4/calulate-grade/my_solution.rb
@@ -1,6 +1,20 @@ # Calculate a Grade
-# I worked on this challenge [by myself, with: ].
+# I worked on this chall... | Add solution for calulate grade
|
diff --git a/hash_attribute_assignment.gemspec b/hash_attribute_assignment.gemspec
index abc1234..def5678 100644
--- a/hash_attribute_assignment.gemspec
+++ b/hash_attribute_assignment.gemspec
@@ -19,4 +19,5 @@ s.add_development_dependency 'rake'
s.add_development_dependency 'rspec'
s.add_development_dependency... | Add the rubocop junit formatter
|
diff --git a/lib/models/character/character_wcl.rb b/lib/models/character/character_wcl.rb
index abc1234..def5678 100644
--- a/lib/models/character/character_wcl.rb
+++ b/lib/models/character/character_wcl.rb
@@ -24,7 +24,8 @@
percentiles.each do |difficulty, encounters|
WCL_IDS.each do |encounter_id|
... | Fix a bug where tracking multiple raids at the same time caused data to be overwritten.
|
diff --git a/lib/resume/cli/resume_data_fetcher.rb b/lib/resume/cli/resume_data_fetcher.rb
index abc1234..def5678 100644
--- a/lib/resume/cli/resume_data_fetcher.rb
+++ b/lib/resume/cli/resume_data_fetcher.rb
@@ -1,29 +1,21 @@ require 'json'
+require_relative '../output'
require_relative '../file_fetcher'
-require_rel... | Refactor resume data fetcher to just inherit most of its functionality from file fetcher and only differentiate itself by parsing JSON
|
diff --git a/dynamodb-mutex.gemspec b/dynamodb-mutex.gemspec
index abc1234..def5678 100644
--- a/dynamodb-mutex.gemspec
+++ b/dynamodb-mutex.gemspec
@@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*-
+require 'date'
require File.expand_path("../lib/dynamodb_mutex/version", __FILE__)
Gem::Specification.new do |gem|
@@ -9,7... | Add missing require date, fix string concat.
|
diff --git a/test/setup_test.rb b/test/setup_test.rb
index abc1234..def5678 100644
--- a/test/setup_test.rb
+++ b/test/setup_test.rb
@@ -13,5 +13,4 @@ require File.join(File.dirname(__FILE__), 'models/entry')
require File.join(File.dirname(__FILE__), 'models/comment')
require File.join(File.dirname(__FILE__), 'models... | Remove a dumb xss_terminate warning during bundle install.
|
diff --git a/test/tunit_test.rb b/test/tunit_test.rb
index abc1234..def5678 100644
--- a/test/tunit_test.rb
+++ b/test/tunit_test.rb
@@ -3,12 +3,21 @@
class TunitTest < Tunit::TestCase
def setup
- Tunit.io = io
Tunit::Runnable.runnables = [PassingTest]
+ Tunit.io = io
+ end
+
+ def te... | Test how Tunit sets arguments |
diff --git a/cookbooks/chef/attributes/default.rb b/cookbooks/chef/attributes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/chef/attributes/default.rb
+++ b/cookbooks/chef/attributes/default.rb
@@ -5,4 +5,4 @@ default[:chef][:server][:version] = "12.0.8-1"
# Set the default client version
-default[:chef][... | Update chef client to 12.10.24
|
diff --git a/lib/services.rb b/lib/services.rb
index abc1234..def5678 100644
--- a/lib/services.rb
+++ b/lib/services.rb
@@ -1,8 +1,8 @@ require "statsd"
+require "gds_api"
require "gds_api/publishing_api_v2"
require "gds_api/content_store"
require "gds_api/imminence"
-require "gds_api/worldwide"
module Services
... | Access Worldwide API via whitehall-frontend
To simplify the migration of Whitehall to AWS, calls to the Worldwide
API should be directed to whitehall-frontend, not whitehall-admin.
Co-authored-by: Christopher Baines <c14e4e2094dd20d1d0dcfc7ec4547168bcc89be2@digital.cabinet-office.gov.uk>
|
diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/base_controller.rb
+++ b/app/controllers/api/base_controller.rb
@@ -33,7 +33,7 @@
def find_collection
collection = default_scope(self.class.resource_class.scoped)... | Remove respond_to? :apply_scopes as it returns false on Ruby 2.0.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
@@ -7,7 +7,11 @@ @comment.chef = current_chef
if @comment.save
- ActionCable.server.broadca... | Fix insertion of first comment
|
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
@@ -9,6 +9,8 @@ end
def destroy
+ reset_session
+ redirect_to root_path
end
private
| Update destroy action in sessions controller
|
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -5,11 +5,15 @@ redirect_to '/auth/github'
end
+
def create
client = Octokit::Client.new... | Add comments/comment out logic for checking if member of DBC github org
|
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -5,10 +5,10 @@ end
def create
+ p params[:password]
@user = User.find_by_username(param... | Check if passwords will go
|
diff --git a/lib/activerecord-postgres-json.rb b/lib/activerecord-postgres-json.rb
index abc1234..def5678 100644
--- a/lib/activerecord-postgres-json.rb
+++ b/lib/activerecord-postgres-json.rb
@@ -1,2 +1,4 @@-require 'activerecord-postgres-json/activerecord'
+ActiveSupport.on_load :active_record do
+ require 'activere... | Load the patch after the ActiveRecord is loaded
|
diff --git a/app/jobs/update_allele_registry_ids.rb b/app/jobs/update_allele_registry_ids.rb
index abc1234..def5678 100644
--- a/app/jobs/update_allele_registry_ids.rb
+++ b/app/jobs/update_allele_registry_ids.rb
@@ -11,13 +11,11 @@ end
def reschedule
- self.class.set(wait_until: next_week).perform_later
+ ... | Change UpdateAlleleRegistry to run nightly
|
diff --git a/lib/electric_sheep/sheepfile/evaluator.rb b/lib/electric_sheep/sheepfile/evaluator.rb
index abc1234..def5678 100644
--- a/lib/electric_sheep/sheepfile/evaluator.rb
+++ b/lib/electric_sheep/sheepfile/evaluator.rb
@@ -15,7 +15,7 @@ def evaluate_file(config)
config.tap do |config|
be... | Add path name to instance_eval
|
diff --git a/lib/facter/vmwaretools_version.rb b/lib/facter/vmwaretools_version.rb
index abc1234..def5678 100644
--- a/lib/facter/vmwaretools_version.rb
+++ b/lib/facter/vmwaretools_version.rb
@@ -9,7 +9,12 @@ if File::executable?("/usr/bin/vmware-toolbox-cmd")
result = Facter::Util::Resolution.exec("/usr/bi... | Fix version detection for wrecked vmware-tools install
I found a broken version of vmware-tools, basically the vmware-toolbox-cmd
returned nothing. Not for -v or --help.
The change allows the fact to say that a version is installed, but its unknown
which.
This should trigger a clean update (or reinstall).
|
diff --git a/app/models/ontology_version/parsing.rb b/app/models/ontology_version/parsing.rb
index abc1234..def5678 100644
--- a/app/models/ontology_version/parsing.rb
+++ b/app/models/ontology_version/parsing.rb
@@ -11,14 +11,14 @@ @deactivate_parsing = true
end
- def async_parse
+ def async_parse(*args)
... | Use cached output from hets, if possible.
solves #629 |
diff --git a/app/models/repository_tree_resolver.rb b/app/models/repository_tree_resolver.rb
index abc1234..def5678 100644
--- a/app/models/repository_tree_resolver.rb
+++ b/app/models/repository_tree_resolver.rb
@@ -0,0 +1,95 @@+class RepositoryTreeResolver
+ attr_accessor :project_names
+ attr_accessor :license_nam... | Add repository tree resolver class
|
diff --git a/lib/json_test_data/json_schema.rb b/lib/json_test_data/json_schema.rb
index abc1234..def5678 100644
--- a/lib/json_test_data/json_schema.rb
+++ b/lib/json_test_data/json_schema.rb
@@ -51,14 +51,14 @@ end
def generate_array(object)
- return [] unless object.fetch(:items).has_key?(:type... | Use local variable instead of method chain
|
diff --git a/lib/spree_store_credits/engine.rb b/lib/spree_store_credits/engine.rb
index abc1234..def5678 100644
--- a/lib/spree_store_credits/engine.rb
+++ b/lib/spree_store_credits/engine.rb
@@ -16,5 +16,9 @@ end
config.to_prepare &method(:activate).to_proc
+
+ initializer "spree.gateway.payment_methods... | Add store credit to list of payment_methods.
This will currently cause issues if you attempt to save the store credit
payment method in the Spree admin interface because the gateway is not
in the list of available payment methods.
It will default the store credit payment method to the first payment
method in the list... |
diff --git a/lib/netzke/communitypack/action_column.rb b/lib/netzke/communitypack/action_column.rb
index abc1234..def5678 100644
--- a/lib/netzke/communitypack/action_column.rb
+++ b/lib/netzke/communitypack/action_column.rb
@@ -13,22 +13,27 @@ def augment_column_config(c)
if c[:type] == :action
... | Update ActionColumn to work with latest Core
|
diff --git a/CoreData-Views-Collection-ios.podspec b/CoreData-Views-Collection-ios.podspec
index abc1234..def5678 100644
--- a/CoreData-Views-Collection-ios.podspec
+++ b/CoreData-Views-Collection-ios.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "CoreData-Views-Collection-ios"
- s.version = "0... | Change podspec version to 0.0.26
|
diff --git a/samples/04-encode-job-with-status.rb b/samples/04-encode-job-with-status.rb
index abc1234..def5678 100644
--- a/samples/04-encode-job-with-status.rb
+++ b/samples/04-encode-job-with-status.rb
@@ -0,0 +1,46 @@+#!/usr/bin/env ruby
+require 'azure_media_service'
+
+# initialize
+AzureMediaService.configure do... | Create a sample that encodes a job and checks for status.
|
diff --git a/lib/discordrb/events/message.rb b/lib/discordrb/events/message.rb
index abc1234..def5678 100644
--- a/lib/discordrb/events/message.rb
+++ b/lib/discordrb/events/message.rb
@@ -20,6 +20,33 @@ end
def match(event)
+ # Check for the proper event type
+ return false unless event.is_a? Mess... | Add matching logic for MessageEventHandler
|
diff --git a/has_breadcrumb.gemspec b/has_breadcrumb.gemspec
index abc1234..def5678 100644
--- a/has_breadcrumb.gemspec
+++ b/has_breadcrumb.gemspec
@@ -12,6 +12,8 @@ gem.summary = %q{Provide links for the current page in a breadcrumb format.}
gem.homepage = ""
+ gem.add_development_dependency "rake"... | Add development dependency for 'rake'
|
diff --git a/spec/github_cli/api/configure_spec.rb b/spec/github_cli/api/configure_spec.rb
index abc1234..def5678 100644
--- a/spec/github_cli/api/configure_spec.rb
+++ b/spec/github_cli/api/configure_spec.rb
@@ -13,7 +13,7 @@
it { expect(subject.adapter).to eql(:net_http) }
- it { expect(subject.ssl).to eql... | Change to fix config option
|
diff --git a/week-6/nested_data_solution.rb b/week-6/nested_data_solution.rb
index abc1234..def5678 100644
--- a/week-6/nested_data_solution.rb
+++ b/week-6/nested_data_solution.rb
@@ -0,0 +1,99 @@+# RELEASE 2: NESTED STRUCTURE GOLF
+# Hole 1
+# Target element: "FORE"
+
+array = [[1,2], ["inner", ["eagle", "par", ["FOR... | Complete 6.5 code, need to do reflection
|
diff --git a/Casks/anvil.rb b/Casks/anvil.rb
index abc1234..def5678 100644
--- a/Casks/anvil.rb
+++ b/Casks/anvil.rb
@@ -2,7 +2,7 @@ version '2016-02-24_11-50-56'
sha256 'a4ddaa21b8c5b52b2a21620253aba64546f565e944b76e43c052c7a022007749'
- # amazonaws.com is the official download host as per the vendor homepage
... | Fix `url` stanza comment for Anvil.
|
diff --git a/test/helper.rb b/test/helper.rb
index abc1234..def5678 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -14,7 +14,9 @@
if ENV[ 'COVERAGE' ]
require 'simplecov'
- SimpleCov.start
+ SimpleCov.start do
+ add_filter 'bundler'
+ end
end
# Setup helpers.
| Exclude bundled gems from coverage reports.
|
diff --git a/test/helper.rb b/test/helper.rb
index abc1234..def5678 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -7,11 +7,6 @@ require 'active_support/test_case'
require 'webmock'
require 'rr'
-
-begin
- require 'redgreen'
-rescue LoadError
-end
WebMock.disable_net_connect!
| Remove redgreen for Ruby 1.9 compatibility
http://isitruby19.com/redgreen
|
diff --git a/ci_environment/riak/attributes/dpkg.rb b/ci_environment/riak/attributes/dpkg.rb
index abc1234..def5678 100644
--- a/ci_environment/riak/attributes/dpkg.rb
+++ b/ci_environment/riak/attributes/dpkg.rb
@@ -1,4 +1,4 @@ default["riak"]["package"]["name"] = "riak"
-default["riak"]["package"]["version"] = "2.0.0... | Update Riak to 2.0.0 release
|
diff --git a/test/asciidoc_test.rb b/test/asciidoc_test.rb
index abc1234..def5678 100644
--- a/test/asciidoc_test.rb
+++ b/test/asciidoc_test.rb
@@ -12,5 +12,7 @@
def test_is_section_heading
assert @doc.send(:is_section_heading?, "AsciiDoc Home Page", "==================")
+ assert @doc.send(:is_section_hea... | Add test for other form of section heading
|
diff --git a/config/initializers/search_callback.rb b/config/initializers/search_callback.rb
index abc1234..def5678 100644
--- a/config/initializers/search_callback.rb
+++ b/config/initializers/search_callback.rb
@@ -8,7 +8,11 @@
if update_search
Rails.logger.info "Registering search observer for artefacts"
- Pan... | Fix the observer initialiser for development mode.
As models get reloaded on every request in development mode, these
callbacks were running unpredictably, depending on how many requests had
been made.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.