diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/features/step_definitions/repository_steps.rb b/features/step_definitions/repository_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/repository_steps.rb
+++ b/features/step_definitions/repository_steps.rb
@@ -1,3 +1,15 @@+require 'rugged'
+
+Given(/^a public repository hosted by GitB... | Add step for creating a repository
|
diff --git a/Casks/sound-control.rb b/Casks/sound-control.rb
index abc1234..def5678 100644
--- a/Casks/sound-control.rb
+++ b/Casks/sound-control.rb
@@ -1,8 +1,9 @@ cask 'sound-control' do
- version '2.1.6,4297'
- sha256 '33feccad185a1cc53ac5e8e89202484254ca2f737ebf3ea86a988296f93c44a9'
+ version '2.2.0'
+ sha256 '... | Update Sound Control to 2.2.0
|
diff --git a/app/serializers/page_serializer.rb b/app/serializers/page_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/page_serializer.rb
+++ b/app/serializers/page_serializer.rb
@@ -5,5 +5,5 @@ :meta_description, :meta_title, :category_names,
:layout_identifier
- has_man... | Fix typo in serializer option on page serializer
|
diff --git a/rack-protection/lib/rack/protection/authenticity_token.rb b/rack-protection/lib/rack/protection/authenticity_token.rb
index abc1234..def5678 100644
--- a/rack-protection/lib/rack/protection/authenticity_token.rb
+++ b/rack-protection/lib/rack/protection/authenticity_token.rb
@@ -17,14 +17,17 @@ # authe... | Add allow_if to authenticity token
|
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
@@ -0,0 +1,58 @@+class CommentsController < ApplicationController
+ before_action :set_comment, only: [:sh... | Create comments controller with some notes
|
diff --git a/app/controllers/exercise_controller.rb b/app/controllers/exercise_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/exercise_controller.rb
+++ b/app/controllers/exercise_controller.rb
@@ -6,12 +6,7 @@ def index
@exercises = Exercise.all
- success_response = {
- logged: true... | Fix bug in exercise controller
|
diff --git a/spec/container_spec.rb b/spec/container_spec.rb
index abc1234..def5678 100644
--- a/spec/container_spec.rb
+++ b/spec/container_spec.rb
@@ -20,10 +20,35 @@ expect(chef_run).to run_docker_container('drone')
end
- it 'sets drone container hosts' do
- drone_container_resource = chef_run.d... | Add ENV values we expect in drone container
|
diff --git a/app/controllers/services_controller.rb b/app/controllers/services_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/services_controller.rb
+++ b/app/controllers/services_controller.rb
@@ -1,4 +1,5 @@ class ServicesController < ApplicationController
+ before_action :authenticate_user!, only... | Add authentication check to services
|
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
@@ -35,7 +35,7 @@ cookies[:cookies_policy] = cookies_policy.merge(usage: true).to_json
end
- ... | Fix default redirect if already logged in
|
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
@@ -7,12 +7,22 @@ user = Session.login_by_username_or_email(params[:user_input])
if user && user... | Add API handling to session login
|
diff --git a/config/initializers/bootstrap_errors.rb b/config/initializers/bootstrap_errors.rb
index abc1234..def5678 100644
--- a/config/initializers/bootstrap_errors.rb
+++ b/config/initializers/bootstrap_errors.rb
@@ -0,0 +1,27 @@+# From: https://gist.github.com/bogdanconstantinescu/2645498
+
+ActionView::Base.field... | Add gist to render bootstrap-style errors on forms
|
diff --git a/test/test_fuzzy_io.rb b/test/test_fuzzy_io.rb
index abc1234..def5678 100644
--- a/test/test_fuzzy_io.rb
+++ b/test/test_fuzzy_io.rb
@@ -3,8 +3,8 @@ require 'fuzzy_io'
require 'fuzzy_io/version'
-API_KEY = "AAAABBBBB"
-AGENT_ID = "CCCCDDDD"
+API_KEY = ENV["FUZZY_IO_API_KEY"]
+AGENT_ID = ENV["FUZZY_IO_AGE... | Use API key from ENV
|
diff --git a/cookbooks/wt_haproxy/recipes/default.rb b/cookbooks/wt_haproxy/recipes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/wt_haproxy/recipes/default.rb
+++ b/cookbooks/wt_haproxy/recipes/default.rb
@@ -19,8 +19,8 @@
include_recipe "haproxy::install_#{node['haproxy']['install_method']}"
-cookbook_... | Use wt_haproxy as cookbook name instead of haproxy
Former-commit-id: 88afa05ed72046d35b251a7a14887b91b8790235 [formerly 4d5596a4cbe4bb5af10cb24205a9b2d0d9b3c07c] [formerly bc7f30c4c916a3d7b31498cb0e9505dbd37e12c1 [formerly 2f80096a9841f987de90caf9331fb92419edde55]]
Former-commit-id: 380e269a00f59955c50acfe6b3cadf6df7... |
diff --git a/split-export.gemspec b/split-export.gemspec
index abc1234..def5678 100644
--- a/split-export.gemspec
+++ b/split-export.gemspec
@@ -8,7 +8,6 @@ s.authors = ["Andrew Nesbitt"]
s.email = ["andrewnez@gmail.com"]
s.homepage = "https://github.com/splitrb/split-export"
- s.bug_tracker_uri ... | Remove bug tracker from gemspec
|
diff --git a/app/controllers/alumni_controller.rb b/app/controllers/alumni_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/alumni_controller.rb
+++ b/app/controllers/alumni_controller.rb
@@ -13,7 +13,7 @@
if @tie = TieAlumniWithStudentMember.find_by_Alumni_id(@thisID)
@assignedtoid = @tie... | Fix bug in the rendering of the student profile
Signed-off-by: Siddharth Kannan <805f056820c7a1cecc4ab591b8a0a604b501a0b7@gmail.com> |
diff --git a/lib/antir/engine/hypervisor/domain_handler.rb b/lib/antir/engine/hypervisor/domain_handler.rb
index abc1234..def5678 100644
--- a/lib/antir/engine/hypervisor/domain_handler.rb
+++ b/lib/antir/engine/hypervisor/domain_handler.rb
@@ -26,10 +26,12 @@ end
def find(id)
+ id = id.to... | Fix bug on destroying VPS
|
diff --git a/lib/calyx/production/weighted_choices.rb b/lib/calyx/production/weighted_choices.rb
index abc1234..def5678 100644
--- a/lib/calyx/production/weighted_choices.rb
+++ b/lib/calyx/production/weighted_choices.rb
@@ -1,6 +1,11 @@ module Calyx
module Production
class WeightedChoices
+ # Parse a give... | Add method comments to `Production::WeightedChoices`
|
diff --git a/lib/devise_cas_authenticatable/routes.rb b/lib/devise_cas_authenticatable/routes.rb
index abc1234..def5678 100644
--- a/lib/devise_cas_authenticatable/routes.rb
+++ b/lib/devise_cas_authenticatable/routes.rb
@@ -8,11 +8,9 @@ # service endpoint for CAS server
get mapping.fullpath, :to => "#{con... | Update to Devise 1.1 stable route generation
|
diff --git a/app/models/renalware/address.rb b/app/models/renalware/address.rb
index abc1234..def5678 100644
--- a/app/models/renalware/address.rb
+++ b/app/models/renalware/address.rb
@@ -17,7 +17,7 @@
def to_s(*fields)
if fields.any?
- fields.map { |f| send(f) }.compact.join(', ')
+ fields.... | Remove empty strings as well
|
diff --git a/lib/migrate.rb b/lib/migrate.rb
index abc1234..def5678 100644
--- a/lib/migrate.rb
+++ b/lib/migrate.rb
@@ -2,6 +2,17 @@ # the pods table, but be independent of each other, we can
# run all trunk migrations first, then all others.
#
+
+# Helper method
+#
+def foreign_key_delete_cascade source_table, targ... | Add helper method for replacing the old foreign_keys with cascading deletes.
|
diff --git a/attributes/package_repo.rb b/attributes/package_repo.rb
index abc1234..def5678 100644
--- a/attributes/package_repo.rb
+++ b/attributes/package_repo.rb
@@ -11,7 +11,7 @@ "default" => node["platform_version"].to_i
)
-default["percona"]["apt"]["key"] = "0x1C4CBDCDCD2EFD2A"
+default["percona"]["apt"]["ke... | Update the Signing Key for Percona Debian and Ubuntu Packages
See: https://www.percona.com/blog/2016/10/13/new-signing-key-for-percona-debian-and-ubuntu-packages/
|
diff --git a/subversion/bindings/swig/ruby/test/run-test.rb b/subversion/bindings/swig/ruby/test/run-test.rb
index abc1234..def5678 100644
--- a/subversion/bindings/swig/ruby/test/run-test.rb
+++ b/subversion/bindings/swig/ruby/test/run-test.rb
@@ -13,4 +13,8 @@ $LOAD_PATH.unshift(ext_dir)
$LOAD_PATH.unshift(Dir.pwd)
... | Support Test::Unit distributed in ruby 1.8.3.
* subversion/bindings/swig/ruby/test/run-test.rb: Pass $0 instead of false
as the first argument of Test::Unit::AutoRunner.run when using Test::Unit
is the one that distributed in ruby 1.8.3.
git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@855141 13f79535-47bb-0... |
diff --git a/tasks/check-for-new-rootfs-cves/run.rb b/tasks/check-for-new-rootfs-cves/run.rb
index abc1234..def5678 100644
--- a/tasks/check-for-new-rootfs-cves/run.rb
+++ b/tasks/check-for-new-rootfs-cves/run.rb
@@ -6,7 +6,7 @@ buildpacks_ci_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
stacks... | Fix directory for tiny stack
[#168707057]
|
diff --git a/lib/active_esp/rfc822.rb b/lib/active_esp/rfc822.rb
index abc1234..def5678 100644
--- a/lib/active_esp/rfc822.rb
+++ b/lib/active_esp/rfc822.rb
@@ -0,0 +1,36 @@+# encoding: binary
+#
+# RFC822 Email Address Regex
+# --------------------------
+#
+# Originally written by Cal Henderson
+# c.f. http://iamcal... | Add RFC822 specification for validating an email address.
|
diff --git a/lib/gds_api/publisher.rb b/lib/gds_api/publisher.rb
index abc1234..def5678 100644
--- a/lib/gds_api/publisher.rb
+++ b/lib/gds_api/publisher.rb
@@ -26,7 +26,7 @@ end
def licences_for_ids(ids)
- response = get_json("#{@endpoint}/licences.json?ids=#{ids.join(',')}")
+ response = get_json("#{@end... | Sort id's in licence query for cache efficiency.
|
diff --git a/lib/hooks/kibela/hook.rb b/lib/hooks/kibela/hook.rb
index abc1234..def5678 100644
--- a/lib/hooks/kibela/hook.rb
+++ b/lib/hooks/kibela/hook.rb
@@ -4,10 +4,14 @@ icon_url hook_image_url('icon.png')
template_name { "#{action}.html.haml" }
before_render do
- skip_processing! if payload.act... | Fix skip check at comment update for kibela
|
diff --git a/test/integration/test_toy_robot.rb b/test/integration/test_toy_robot.rb
index abc1234..def5678 100644
--- a/test/integration/test_toy_robot.rb
+++ b/test/integration/test_toy_robot.rb
@@ -3,7 +3,7 @@ module ToyRobot
class ToyRobotTest < MiniTest::Unit::TestCase
def test_that_it_is_executable
- ... | Fix executable assertion in ToyRobotTest
|
diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb
index abc1234..def5678 100644
--- a/app/controllers/spree/checkout_controller_decorator.rb
+++ b/app/controllers/spree/checkout_controller_decorator.rb
@@ -3,7 +3,8 @@ super.push(permitted_ko... | Add permitted attributes for webmoney
|
diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb
index abc1234..def5678 100644
--- a/config/initializers/assets.rb
+++ b/config/initializers/assets.rb
@@ -2,6 +2,8 @@
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'... | Disable connecting to a database on precompile
|
diff --git a/lib/jmespath/nodes/or.rb b/lib/jmespath/nodes/or.rb
index abc1234..def5678 100644
--- a/lib/jmespath/nodes/or.rb
+++ b/lib/jmespath/nodes/or.rb
@@ -9,7 +9,7 @@
def visit(value)
result = @left.visit(value)
- if result == false || result.nil? || result.empty?
+ if result == fal... | Fix OR expressions where the left side is true
TrueClass does not respond to `#empty?`, which makes `foo || bar` where foo resolves to true fail. |
diff --git a/lib/curator/railtie.rb b/lib/curator/railtie.rb
index abc1234..def5678 100644
--- a/lib/curator/railtie.rb
+++ b/lib/curator/railtie.rb
@@ -5,7 +5,7 @@ config.bucket_prefix = app.class.name.split("::").first.underscore
config.environment = Rails.env
config.migrations_path = Rails.... | Revert breaking change that renames default config file name
|
diff --git a/lib/god/diagnostics.rb b/lib/god/diagnostics.rb
index abc1234..def5678 100644
--- a/lib/god/diagnostics.rb
+++ b/lib/god/diagnostics.rb
@@ -12,26 +12,26 @@ class BleakHouseDiagnostic
LOG_FILE = File.join(File.dirname(__FILE__), *%w[.. .. logs bleak.log])
- class << self
- attr_accessor :logger
+... | Update to work with latest bleak-house.
|
diff --git a/lib/mnemosyne/railtie.rb b/lib/mnemosyne/railtie.rb
index abc1234..def5678 100644
--- a/lib/mnemosyne/railtie.rb
+++ b/lib/mnemosyne/railtie.rb
@@ -8,8 +8,10 @@
config['application'] ||= app.class.name.underscore.titleize
- config['logger'] ||= Rails.logger
- config['enabled'] ||= conf... | Fix falsy "enabled" flag being ignored
Because of using the `||=` operator, falsy values for `enabled` were
being ignored and overwritten when the `server` flag existed.
For mnemosyne.yml files like the following:
common: &common
server: amqp://localhost
development:
<<: *common
... |
diff --git a/spec/dummy/config/initializers/i18n.rb b/spec/dummy/config/initializers/i18n.rb
index abc1234..def5678 100644
--- a/spec/dummy/config/initializers/i18n.rb
+++ b/spec/dummy/config/initializers/i18n.rb
@@ -1 +1,10 @@ I18n.enforce_available_locales = true
+
+# raise exceptions when there is an incorrect or mi... | Raise exceptions in dev/test if incorrect or missing translation keys are encountered
|
diff --git a/spec/fixtures/plugins/request_times.rb b/spec/fixtures/plugins/request_times.rb
index abc1234..def5678 100644
--- a/spec/fixtures/plugins/request_times.rb
+++ b/spec/fixtures/plugins/request_times.rb
@@ -0,0 +1,11 @@+Nark::Plugin.define :request_times do |plugin|
+ plugin.variables :last_request_time => n... | Add a plugin fixture for testing
|
diff --git a/spec/support/shared/shopify_request.rb b/spec/support/shared/shopify_request.rb
index abc1234..def5678 100644
--- a/spec/support/shared/shopify_request.rb
+++ b/spec/support/shared/shopify_request.rb
@@ -4,11 +4,8 @@ before :each do
ActiveResource::Base.format = :json
ShopifyAPI.constants.each ... | Remove Useless Rescue In Shared Context
These style of rescues are relatively useless and they make Rubocop a
very unhappy customer. Cleaned up for code cleanliness and to make all
the Cops happy.
|
diff --git a/lib/minimal_logging.rb b/lib/minimal_logging.rb
index abc1234..def5678 100644
--- a/lib/minimal_logging.rb
+++ b/lib/minimal_logging.rb
@@ -39,13 +39,9 @@ end
def make_color_codes
- color_hash = {}
- color_hash[1] = color_hash[2] = :green
- color_hash[3] = :yellow
- color_has... | Refactor color code hash creation.
|
diff --git a/lib/pry-vterm_aliases.rb b/lib/pry-vterm_aliases.rb
index abc1234..def5678 100644
--- a/lib/pry-vterm_aliases.rb
+++ b/lib/pry-vterm_aliases.rb
@@ -8,8 +8,8 @@ def create_aliases
aliases.each { |k, v|
::Pry::Commands.create_command(/^\.(#{k})(.*)/) {
- descripti... | Make the help output prettier; highlight the cmd.
|
diff --git a/app/controllers/crowdblog_core/posts_controller.rb b/app/controllers/crowdblog_core/posts_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/crowdblog_core/posts_controller.rb
+++ b/app/controllers/crowdblog_core/posts_controller.rb
@@ -16,7 +16,7 @@ @post.author = current_user
... | Fix redirection after creating the Post
|
diff --git a/lib/plugins/kpoppin.rb b/lib/plugins/kpoppin.rb
index abc1234..def5678 100644
--- a/lib/plugins/kpoppin.rb
+++ b/lib/plugins/kpoppin.rb
@@ -10,15 +10,14 @@ match /(help kpoppin)$/, method: :help
def execute(m)
- page = Nokogiri::HTML(open('http://www.arirang.co.kr/Radio/Radio_MessageB... | Update Kpoppin plugin (new source url)
|
diff --git a/immortal.gemspec b/immortal.gemspec
index abc1234..def5678 100644
--- a/immortal.gemspec
+++ b/immortal.gemspec
@@ -3,8 +3,11 @@
Gem::Specification.new do |s|
s.name = 'immortal'
- s.version = '1.0.5'
- s.authors = ['Jordi Romero', 'Saimon Moore']
+ s.version = '2.0.0'
+ s.autho... | Prepare 2.0.0 release with Rails 4 support
|
diff --git a/lib/tasks/base_path.rake b/lib/tasks/base_path.rake
index abc1234..def5678 100644
--- a/lib/tasks/base_path.rake
+++ b/lib/tasks/base_path.rake
@@ -1,24 +1,13 @@ namespace :base_path do
desc "Edits the base_path of a document, given its content_id and the new base_path"
- task :edit, [:content_id, :bas... | Remove rescue and let it fail
Letting it fail, we get a useful stack trace that will point us to the
right direction.
|
diff --git a/lib/tasks/metric_fu.rake b/lib/tasks/metric_fu.rake
index abc1234..def5678 100644
--- a/lib/tasks/metric_fu.rake
+++ b/lib/tasks/metric_fu.rake
@@ -2,6 +2,7 @@ require 'metric_fu'
MetricFu::Configuration.run do |config|
config.rcov[:test_files] = 'spec/**/*_spec.rb'
+ config.rcov[:rcov_opts] <... | Include spec/ when calling rcov.
This is needed because spec_helper is required without the full path now.
|
diff --git a/lib/saves/game_list.rb b/lib/saves/game_list.rb
index abc1234..def5678 100644
--- a/lib/saves/game_list.rb
+++ b/lib/saves/game_list.rb
@@ -0,0 +1,37 @@+module Saves
+ class GameList
+ include Enumerable
+
+ attr_reader :games
+ attr_reader :games_data
+
+ def initialize(games_data = [])
+ ... | Add a Game List model for parsing the config file
|
diff --git a/helpers/graphite.rb b/helpers/graphite.rb
index abc1234..def5678 100644
--- a/helpers/graphite.rb
+++ b/helpers/graphite.rb
@@ -3,7 +3,7 @@ require 'socket'
def graphite_plot(logString)
if Deployinator.graphite_host
- s = TCPSocket.new(Deployinator.graphite_host,Deployinator.graphite_p... | Fix copy and paste error
|
diff --git a/db/migrate/20131023143833_add_discount_type_and_discount_percent_to_coupons.rb b/db/migrate/20131023143833_add_discount_type_and_discount_percent_to_coupons.rb
index abc1234..def5678 100644
--- a/db/migrate/20131023143833_add_discount_type_and_discount_percent_to_coupons.rb
+++ b/db/migrate/20131023143833_... | Add migration to support percentage coupon.
|
diff --git a/test/integration/chocolatey/default.rb b/test/integration/chocolatey/default.rb
index abc1234..def5678 100644
--- a/test/integration/chocolatey/default.rb
+++ b/test/integration/chocolatey/default.rb
@@ -0,0 +1,16 @@+control 'commands should exist' do
+ describe command('node -v') do
+ its('exit_status... | Add a test for the windows install
|
diff --git a/diameter.gemspec b/diameter.gemspec
index abc1234..def5678 100644
--- a/diameter.gemspec
+++ b/diameter.gemspec
@@ -8,7 +8,7 @@ s.files = Dir["lib/diameter/*.rb", "lib/diameter.rb"]
s.homepage = 'http://rkday.github.io/ruby-diameter/api-docs/master/'
- s.add_runtime_dependency 'concurrent-... | Document proper concurrent-ruby version dependency
|
diff --git a/crawlers/lib/short_crawler.rb b/crawlers/lib/short_crawler.rb
index abc1234..def5678 100644
--- a/crawlers/lib/short_crawler.rb
+++ b/crawlers/lib/short_crawler.rb
@@ -8,7 +8,7 @@ def_delegators :@extractor,
:initial_urls, :next_page, :blocks, :news, :comments
- PAGES_LIMIT = 2
+ PAGES_LIMIT = 5... | Increase request cap for facebook scraper
|
diff --git a/lib/autobots/runner.rb b/lib/autobots/runner.rb
index abc1234..def5678 100644
--- a/lib/autobots/runner.rb
+++ b/lib/autobots/runner.rb
@@ -40,6 +40,28 @@ # before hook where you have parsed @options when loading tests
def self.before_run
host_env = @options[:env]
+ if host_env.nil?
+ ... | [PH][99263050] OnePlatform: Load tests under certain host dir in before_run hook
|
diff --git a/lib/cave/model_form.rb b/lib/cave/model_form.rb
index abc1234..def5678 100644
--- a/lib/cave/model_form.rb
+++ b/lib/cave/model_form.rb
@@ -30,8 +30,8 @@ private #-----------
def check_instance_model
+ model = self.class.model
if @instance
- model = self.class.model
#... | Fix regression in model class checking
|
diff --git a/lib/lims-laboratory-app/laboratory/tube/bulk_create_tube.rb b/lib/lims-laboratory-app/laboratory/tube/bulk_create_tube.rb
index abc1234..def5678 100644
--- a/lib/lims-laboratory-app/laboratory/tube/bulk_create_tube.rb
+++ b/lib/lims-laboratory-app/laboratory/tube/bulk_create_tube.rb
@@ -1,23 +1,13 @@-requi... | Refactor BulkCreateTube to use BulkAction.
|
diff --git a/config.rb b/config.rb
index abc1234..def5678 100644
--- a/config.rb
+++ b/config.rb
@@ -34,8 +34,8 @@
activate :gzip
- ignore "javascripts/all.js"
- ignore "stylesheets/site"
+ ignore "assets/javascripts/all.js"
+ ignore "assets/stylesheets/site"
activate :minify_html do |html|
html.rem... | Add directory to Gzip ignores
Without "assets/", mm build would error and complain that the @bourbon import in site.css could not be found
|
diff --git a/_plugins/_tag_gen.rb b/_plugins/_tag_gen.rb
index abc1234..def5678 100644
--- a/_plugins/_tag_gen.rb
+++ b/_plugins/_tag_gen.rb
@@ -8,7 +8,7 @@ @dir = dir
@name = 'index.html'
self.process(@name)
- self.read_yaml(File.join(base, '_layouts'), 'tag_index.html')
+ self.read_yaml(... | Rename file to execute in.
|
diff --git a/fair_dice_roll.gemspec b/fair_dice_roll.gemspec
index abc1234..def5678 100644
--- a/fair_dice_roll.gemspec
+++ b/fair_dice_roll.gemspec
@@ -14,6 +14,6 @@ spec.files = `git ls-files -z`.split("\x0")
spec.test_files = spec.files.grep(/^spec/)
- spec.add_development_dependency "bundler", "~> 1.8"... | Update the bundler development gem dependency
|
diff --git a/lib/vagrant-libvirt/action/halt_domain.rb b/lib/vagrant-libvirt/action/halt_domain.rb
index abc1234..def5678 100644
--- a/lib/vagrant-libvirt/action/halt_domain.rb
+++ b/lib/vagrant-libvirt/action/halt_domain.rb
@@ -13,41 +13,9 @@ end
def call(env)
- env[:ui].info(I18n.t('vagran... | Update HaltDomain action to only forcibly halt domain
|
diff --git a/config/environments/development.rb b/config/environments/development.rb
index abc1234..def5678 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -19,7 +19,7 @@ # Print deprecation notices to the Rails logger
config.active_support.deprecation = :log
- config... | Allow overriding of asset host using ENV var.
|
diff --git a/config/initializers/paper_trail.rb b/config/initializers/paper_trail.rb
index abc1234..def5678 100644
--- a/config/initializers/paper_trail.rb
+++ b/config/initializers/paper_trail.rb
@@ -2,9 +2,9 @@
module PaperTrail
def self.with_actor(actor)
- current_actor = self.actor
+ original_actor = sel... | Use better name when pulling switcheroo
|
diff --git a/hangman.old.rb b/hangman.old.rb
index abc1234..def5678 100644
--- a/hangman.old.rb
+++ b/hangman.old.rb
@@ -0,0 +1,78 @@+# HangMan that I first wrote in my interview
+
+class HangMan
+ require 'SecureRandom'
+
+ def initialize
+ @lives = 8
+ @wrong_letters = []
+
+ all_words = File.new('words.tx... | Add my original hangman written during interview
|
diff --git a/test/integration_test_helper.rb b/test/integration_test_helper.rb
index abc1234..def5678 100644
--- a/test/integration_test_helper.rb
+++ b/test/integration_test_helper.rb
@@ -3,7 +3,7 @@ require 'webmock'
Capybara.javascript_driver = :webkit
-DatabaseCleaner.strategy = :transaction
+DatabaseCleaner.str... | Disable transactions for integration tests.
Capybara/webkit tests don't play well with transactional fixtures since
they run in a separate process and therefore don't see db writes that
are in a different transaction. Set use_transactional_fixtures to false
and use the truncation strategy in DatabaseCleaner.
|
diff --git a/test/support/vagrant_wrapper.rb b/test/support/vagrant_wrapper.rb
index abc1234..def5678 100644
--- a/test/support/vagrant_wrapper.rb
+++ b/test/support/vagrant_wrapper.rb
@@ -45,7 +45,8 @@ host_options = {
user: vm['user'] || 'vagrant',
hostname: vm['hostname'] || 'localhost',
... | Fix running functional tests with vagrant
The tests were unable to SSH to the vagrant boxes without the password
|
diff --git a/lib/chronicle.rb b/lib/chronicle.rb
index abc1234..def5678 100644
--- a/lib/chronicle.rb
+++ b/lib/chronicle.rb
@@ -32,7 +32,7 @@ is_valid = Proc.new {|msg| msg.include?(@char)}
commits = @log.map {|hash| @git.gcommit(hash).message}.select(&is_valid)
- lines = commits.map {|msg| m... | Use dashes for new lines
<*> replace the filter character with a delimiter
|
diff --git a/spec/convection/model/template/resource/events_rule_spec.rb b/spec/convection/model/template/resource/events_rule_spec.rb
index abc1234..def5678 100644
--- a/spec/convection/model/template/resource/events_rule_spec.rb
+++ b/spec/convection/model/template/resource/events_rule_spec.rb
@@ -9,7 +9,9 @@ ... | Use a more realistic event pattern
This is an anonymised version (don't want anyone having out instance ID
right?) of one of our patterns.
|
diff --git a/src/api-umbrella/web-app/config/initializers/delayed_job.rb b/src/api-umbrella/web-app/config/initializers/delayed_job.rb
index abc1234..def5678 100644
--- a/src/api-umbrella/web-app/config/initializers/delayed_job.rb
+++ b/src/api-umbrella/web-app/config/initializers/delayed_job.rb
@@ -1,3 +1,13 @@+# Exit... | Fix api-umbrella process stop sometimes taking a long time.
|
diff --git a/lib/tty.rb b/lib/tty.rb
index abc1234..def5678 100644
--- a/lib/tty.rb
+++ b/lib/tty.rb
@@ -18,7 +18,6 @@
require 'tty/version'
require 'tty/terminal'
-require 'tty/vector'
require 'tty/logger'
require 'tty/plugins'
require 'tty/plugins/plugin'
| Change to stop loading vector.
|
diff --git a/lib/zmb.rb b/lib/zmb.rb
index abc1234..def5678 100644
--- a/lib/zmb.rb
+++ b/lib/zmb.rb
@@ -0,0 +1,51 @@+class Zmb
+ require 'socket'
+
+ def initialize
+ @plugins = {'core/zmb' => self}
+ @sockets = Hash.new
+ end
+
+ def run
+ begin
+ while 1
+ socket_select(timeout)
+ e... | Add Zmb class and socket manager system
|
diff --git a/lib/hash_to_json.rb b/lib/hash_to_json.rb
index abc1234..def5678 100644
--- a/lib/hash_to_json.rb
+++ b/lib/hash_to_json.rb
@@ -12,21 +12,23 @@ on param('q') do | hash |
input = hash
old = hash[ /=>/ ]
- # hash = hash.to_s.stringify_keys
- # if old
- # hash = ... | Support for new hash syntax
* support for json as well
|
diff --git a/lib/katex/engine.rb b/lib/katex/engine.rb
index abc1234..def5678 100644
--- a/lib/katex/engine.rb
+++ b/lib/katex/engine.rb
@@ -6,7 +6,7 @@ # We deliberately do not place the assets in vendor/assets but in
# vendor/katex instead, as vendor/assets is added to asset paths
# by default but... | Add vendor/images to asset lookup path
|
diff --git a/lib/nyaplot/plot.rb b/lib/nyaplot/plot.rb
index abc1234..def5678 100644
--- a/lib/nyaplot/plot.rb
+++ b/lib/nyaplot/plot.rb
@@ -7,6 +7,7 @@
def initialize
set_property(:diagrams, [])
+ set_property(:options, {})
end
def add(type, *data)
@@ -27,7 +28,7 @@ diagrams = get_p... | Enable xrange and yrange options
|
diff --git a/config/deploy.rb b/config/deploy.rb
index abc1234..def5678 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -12,6 +12,8 @@
set :linked_files, fetch(:linked_files, []).push(
'cached_departures.json',
+ 'cached_stops.json',
+ 'error_messages.json',
'config.json',
'route_mappings.json'
)
| Add cached stops and error messages to shared files
|
diff --git a/app/controllers/channels/channels_subscribers_controller.rb b/app/controllers/channels/channels_subscribers_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/channels/channels_subscribers_controller.rb
+++ b/app/controllers/channels/channels_subscribers_controller.rb
@@ -12,8 +12,8 @@ ... | Remove rescue from channels subscribers
|
diff --git a/ndb-ruby.gemspec b/ndb-ruby.gemspec
index abc1234..def5678 100644
--- a/ndb-ruby.gemspec
+++ b/ndb-ruby.gemspec
@@ -9,8 +9,7 @@ spec.authors = ["Alex Stophel"]
spec.email = ["alexstophel@gmail.com"]
- spec.summary = "Gem to wrap NDB API"
- spec.description = "Gem to wrap NDB API"
+ spec.summary =... | Add version constraints to gemspec.
RubyGems was whining when I went to build the gem because of the limited
version constrains on the various development dependencies. Also I've
updated the description in the gemspec.
|
diff --git a/lib/tasks/untied.rb b/lib/tasks/untied.rb
index abc1234..def5678 100644
--- a/lib/tasks/untied.rb
+++ b/lib/tasks/untied.rb
@@ -0,0 +1,14 @@+require "untied"
+require "untied/worker"
+
+namespace :untied do
+ desc "Starts untied's worker"
+ task :work do
+ AMQP.start do |connection|
+ channel = ... | Define rake task wich starts Untied::Worker
|
diff --git a/lib/test/autorun.rb b/lib/test/autorun.rb
index abc1234..def5678 100644
--- a/lib/test/autorun.rb
+++ b/lib/test/autorun.rb
@@ -0,0 +1,18 @@+$TEST_SUITE = [] unless defined?($TEST_SUITE)
+
+at_exit {
+ if RUBY_VERSION < '1.9'
+ require 'test/runner'
+ else
+ require_relative 'runner'
+ end
+
+ su... | Add autrun.rb which test.rb loads.
|
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
@@ -9,7 +9,7 @@ @scrapers = Scraper.search @q, fields: [{full_name: :word_middle}, :description, {scraped_dom... | Fix bug in search 'where' query by using indexed method
The query was not returning correct results because the target
data was not in the index.
|
diff --git a/config/router.rb b/config/router.rb
index abc1234..def5678 100644
--- a/config/router.rb
+++ b/config/router.rb
@@ -15,8 +15,8 @@ match('/feed/:action(.xml)').to(:controller=> 'feed_controller').name(:feeds)
match('/',:query_string=>/feed=rss2/).to(:controller => 'feed_controller', :action =>'rss') #o... | Allow messages through so login isn't broken
|
diff --git a/sinatra_asset_packager.gemspec b/sinatra_asset_packager.gemspec
index abc1234..def5678 100644
--- a/sinatra_asset_packager.gemspec
+++ b/sinatra_asset_packager.gemspec
@@ -17,6 +17,7 @@ gem.add_dependency "sprockets"
gem.add_dependency "uglifier"
gem.add_dependency "yui-compressor"
+ gem.add_depen... | Update json to disable warning to those using the packager
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,3 +1,5 @@ AssetManager::Application.routes.draw do
+ # Temporary dummy route to keep healthcheck happy
+ root :to => lambda {|*args| [200, {}, ["Hello"]]}
end
| Add a dummy route to keep the healthcheck happy
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,11 +1,14 @@ Rails.application.routes.draw do
-
devise_for :users
get 'login/index'
+ resources :transactions
+
+ authenticated :user do
+ root 'transactions#index', as: "authenti... | Change root based on whether or not the user is signed in
|
diff --git a/spec/defines/mc/ostype_spec.rb b/spec/defines/mc/ostype_spec.rb
index abc1234..def5678 100644
--- a/spec/defines/mc/ostype_spec.rb
+++ b/spec/defines/mc/ostype_spec.rb
@@ -22,4 +22,15 @@ .that_notifies('Class[sendmail::makeall]')
}
end
+
+ context 'on FreeBSD' do
+ let(:title) { '... | Add test for OSTYPE macro on FreeBSD
|
diff --git a/spec/features/playback_spec.rb b/spec/features/playback_spec.rb
index abc1234..def5678 100644
--- a/spec/features/playback_spec.rb
+++ b/spec/features/playback_spec.rb
@@ -17,7 +17,7 @@ it "is successful" do
visit asciicast_path(asciicast, speed: 5)
find(".start-prompt .play-button").clic... | Fix playback spec - use "expect" syntax
|
diff --git a/spec/node/node_version_spec.rb b/spec/node/node_version_spec.rb
index abc1234..def5678 100644
--- a/spec/node/node_version_spec.rb
+++ b/spec/node/node_version_spec.rb
@@ -3,13 +3,13 @@ # Node 4.x
if property[:name] =~ /v4./
describe command('node -v') do
- its(:stdout) { should contain('v4.8.0') }
... | Update for Node v4.8.1 and v6.10.1
|
diff --git a/spec/support/validator_spec.rb b/spec/support/validator_spec.rb
index abc1234..def5678 100644
--- a/spec/support/validator_spec.rb
+++ b/spec/support/validator_spec.rb
@@ -1,5 +1,5 @@ RSpec.shared_examples "validate valid parameter" do |validator_class, parameter|
- context parameter.to_s do
+ context "w... | Make output a little purtier
|
diff --git a/app/controllers/api/consultations_controller.rb b/app/controllers/api/consultations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/consultations_controller.rb
+++ b/app/controllers/api/consultations_controller.rb
@@ -1,7 +1,7 @@ module API
class ConsultationsController < BaseContr... | Refactor: Use `most_recent` instead of `last` on consultations
|
diff --git a/app/controllers/concerns/comments_controller.rb b/app/controllers/concerns/comments_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/concerns/comments_controller.rb
+++ b/app/controllers/concerns/comments_controller.rb
@@ -0,0 +1,9 @@+class CommentsController < ApplicationController
+ inc... | Add comments controller and index method.
|
diff --git a/app/controllers/mixins/generic_session_mixin.rb b/app/controllers/mixins/generic_session_mixin.rb
index abc1234..def5678 100644
--- a/app/controllers/mixins/generic_session_mixin.rb
+++ b/app/controllers/mixins/generic_session_mixin.rb
@@ -1,6 +1,5 @@ module Mixins
module GenericSessionMixin
-
priv... | Fix rubocop warnings in GenericSessionMixin
|
diff --git a/db/data_migration/20130423122400_mainstream_category_for_uk_export_finance.rb b/db/data_migration/20130423122400_mainstream_category_for_uk_export_finance.rb
index abc1234..def5678 100644
--- a/db/data_migration/20130423122400_mainstream_category_for_uk_export_finance.rb
+++ b/db/data_migration/20130423122... | Add new MainstreamCategory for UK Export Finance
|
diff --git a/cookbooks/lib/features/neo4j_spec.rb b/cookbooks/lib/features/neo4j_spec.rb
index abc1234..def5678 100644
--- a/cookbooks/lib/features/neo4j_spec.rb
+++ b/cookbooks/lib/features/neo4j_spec.rb
@@ -1,11 +1,13 @@+def furbies
+ @furbies ||= rand(200..299)
+end
+
describe 'neo4j installation' do
describe c... | Move furbies from let block to method
|
diff --git a/lib/heroclix/hero.rb b/lib/heroclix/hero.rb
index abc1234..def5678 100644
--- a/lib/heroclix/hero.rb
+++ b/lib/heroclix/hero.rb
@@ -1,35 +1,39 @@-module Heroclix
- class Hero
- attr_reader :name, :description, :clicks
-
- def initialize(name, combat_values, description = nil)
- @name, ... | Add reset method to Hero to completely heal after a game or test. |
diff --git a/lib/nyaplot/scale.rb b/lib/nyaplot/scale.rb
index abc1234..def5678 100644
--- a/lib/nyaplot/scale.rb
+++ b/lib/nyaplot/scale.rb
@@ -3,6 +3,7 @@ include Nyaplot::Base
type :row_scale
required_args :data, :column, :range
+ optional_args :domain
end
class DataFrameScale
| Add :domain options to RowScale
|
diff --git a/lib/rack/revision.rb b/lib/rack/revision.rb
index abc1234..def5678 100644
--- a/lib/rack/revision.rb
+++ b/lib/rack/revision.rb
@@ -6,12 +6,7 @@ @@revision = nil
def initialize(app, options={})
- @options = {
- :header => options[:header].nil? ? 'X-Revision' : options[:header],
- ... | Move options initialization to a separate method
|
diff --git a/lib/json_expressions/rspec/matchers/match_json_expression.rb b/lib/json_expressions/rspec/matchers/match_json_expression.rb
index abc1234..def5678 100644
--- a/lib/json_expressions/rspec/matchers/match_json_expression.rb
+++ b/lib/json_expressions/rspec/matchers/match_json_expression.rb
@@ -22,10 +22,12 @@... | Add support for rspec 3+
Alias new rspec matcher protocol names (rspec 3+) to the old (rspec 2). From https://www.relishapp.com/rspec/rspec-expectations/docs/changelog:
Update matcher protocol and custom matcher DSL to better align with the newer expect syntax. If you want your matchers to maintain compatibility with... |
diff --git a/spec/controllers/ansible_playbook_controller_spec.rb b/spec/controllers/ansible_playbook_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/ansible_playbook_controller_spec.rb
+++ b/spec/controllers/ansible_playbook_controller_spec.rb
@@ -18,6 +18,11 @@ it "renders correct template... | Add spec for tags removal from Ansible Playbook summary page
|
diff --git a/spec/features/consumer/caching/shops_caching_spec.rb b/spec/features/consumer/caching/shops_caching_spec.rb
index abc1234..def5678 100644
--- a/spec/features/consumer/caching/shops_caching_spec.rb
+++ b/spec/features/consumer/caching/shops_caching_spec.rb
@@ -0,0 +1,68 @@+# frozen_string_literal: true
+
+r... | Add feature spec for action caching of taxon and properties endpoints
|
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,6 +1,6 @@ # Be sure to restart your server when you modify this file.
-Cyclescape::Application.config.sessi... | Add magical incantation to session store config for subdomain cookies.
|
diff --git a/app/models/import.rb b/app/models/import.rb
index abc1234..def5678 100644
--- a/app/models/import.rb
+++ b/app/models/import.rb
@@ -1,13 +1,15 @@ # frozen_string_literal: true
class Import < ApplicationRecord
+ FILE_TYPES = ['text/plain', 'text/csv'].freeze
+
self.inheritance_column = false
+
+ bel... | Add presence validation to Import
```
*An* `ActiveRecord::StatementInvalid` *occurred while* `POST </settings/import>` *was processed by* `imports#create`
Exception
----------------
PG::NotNullViolation: ERROR: null value in column "type" violates not-null constraint
```
|
diff --git a/app/models/season.rb b/app/models/season.rb
index abc1234..def5678 100644
--- a/app/models/season.rb
+++ b/app/models/season.rb
@@ -1,4 +1,6 @@ class Season < ActiveRecord::Base
+ has_many :musics
+
validates :name, presence: true
validates :start, presence: true
validates :expiry, presence: true... | Add association to music for Season
|
diff --git a/infopen-docker.gemspec b/infopen-docker.gemspec
index abc1234..def5678 100644
--- a/infopen-docker.gemspec
+++ b/infopen-docker.gemspec
@@ -12,7 +12,7 @@ 'lib/docker/lifecycle.rb',
'lib/errors/errors.rb'
]
- spec.homepage = 'h... | Change gem homepage to github repository
|
diff --git a/omnibus.rb b/omnibus.rb
index abc1234..def5678 100644
--- a/omnibus.rb
+++ b/omnibus.rb
@@ -11,7 +11,6 @@
# Customize compiler bits
# ------------------------------
-solaris_compiler 'gcc'
build_retries 3
fetcher_read_timeout 120
| Remove deprecated solaris compiler config.
|
diff --git a/lib/vagrant-vmware-freebsd/cap/mount_vmware_shared_folder.rb b/lib/vagrant-vmware-freebsd/cap/mount_vmware_shared_folder.rb
index abc1234..def5678 100644
--- a/lib/vagrant-vmware-freebsd/cap/mount_vmware_shared_folder.rb
+++ b/lib/vagrant-vmware-freebsd/cap/mount_vmware_shared_folder.rb
@@ -6,9 +6,16 @@ ... | Change MountVmwareSharedFolder to use symlinks.
The vmhgfs mount only ever seems to mount the virtual directory and
never any of its subdirectories. So instead of trying to mount them in
the desired path we instead mount on /mnt/hgfs and then symlink the
named directories to the guest paths.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.