diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/vendor/plugins/themes/rails/init.rb b/vendor/plugins/themes/rails/init.rb
index abc1234..def5678 100644
--- a/vendor/plugins/themes/rails/init.rb
+++ b/vendor/plugins/themes/rails/init.rb
@@ -1,29 +1,32 @@-# Set up middleware to serve theme files
-config.middleware.use "ThemeServer"
+# Before the applicati... | Fix themes breaking rake db:setup because RefinerySetting.table_exists? is false.
|
diff --git a/app/controllers/albums_controller.rb b/app/controllers/albums_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/albums_controller.rb
+++ b/app/controllers/albums_controller.rb
@@ -1,9 +1,18 @@ class AlbumsController < ApplicationController
expose(:albums) { Album.active }
- expose(:albu... | Handle redirects in albums controller
|
diff --git a/app/controllers/status_controller.rb b/app/controllers/status_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/status_controller.rb
+++ b/app/controllers/status_controller.rb
@@ -11,15 +11,19 @@ @smoke_detector.location = params[:location]
@smoke_detector.is_standby = params[:stan... | Revert "Revert "Save a few bytes on every ping""
This reverts commit 5ef95920039bb38ae7a6bcb1bf228955ba898085.
|
diff --git a/app/importers/attendance_importer.rb b/app/importers/attendance_importer.rb
index abc1234..def5678 100644
--- a/app/importers/attendance_importer.rb
+++ b/app/importers/attendance_importer.rb
@@ -6,8 +6,8 @@ end
def parse_row(row)
- student_state_id = row[1]
- attendance_info = row[3..5]
+ student_... | Update AttendanceImporter for new input data format (we should really get headers in here...)
|
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
@@ -7,8 +7,10 @@ can :manage, :all
elsif user.has_role? :user
can :read, Site, id: Site.with_role(:user, user).pluck(:id)
- can [:read, :update, :assign... | Fix for devices and supplies creation not authorized by users
|
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
@@ -2,10 +2,28 @@ include CanCan::Ability
def initialize(user)
- user ||= User.new # guest user (not logged in)
+ user ||= User.new
+
if user.has_role? :admi... | Define some initial abilities: Users can read everything and manage farms, Admins can manage everything. Anonymous users can only read farms.
|
diff --git a/app/models/journal.rb b/app/models/journal.rb
index abc1234..def5678 100644
--- a/app/models/journal.rb
+++ b/app/models/journal.rb
@@ -1,16 +1,13 @@ class Journal < ActiveRecord::Base
VALID_TASK_TYPES = ["ReviewerReportTask",
"PaperAdminTask",
- "MessageTask"... | Remove tasks which require attributes when initialized
|
diff --git a/spec/classes/openldap_client_spec.rb b/spec/classes/openldap_client_spec.rb
index abc1234..def5678 100644
--- a/spec/classes/openldap_client_spec.rb
+++ b/spec/classes/openldap_client_spec.rb
@@ -0,0 +1,23 @@+require 'spec_helper'
+
+describe 'openldap::client' do
+
+ let(:facts) {{
+ :osfamily => 'Deb... | Add unit tests for openldap::client
|
diff --git a/spec/redshift_extractor/drop_spec.rb b/spec/redshift_extractor/drop_spec.rb
index abc1234..def5678 100644
--- a/spec/redshift_extractor/drop_spec.rb
+++ b/spec/redshift_extractor/drop_spec.rb
@@ -0,0 +1,14 @@+require 'spec_helper'
+
+module RedshiftExtractor; describe Drop do
+
+ context "#drop_sql" do
+ ... | Add specs for the Drop class
|
diff --git a/spec/routing/friends_routing_spec.rb b/spec/routing/friends_routing_spec.rb
index abc1234..def5678 100644
--- a/spec/routing/friends_routing_spec.rb
+++ b/spec/routing/friends_routing_spec.rb
@@ -6,28 +6,8 @@ expect(get: "/friends").to route_to("friends#index")
end
- it "routes to #new" do
... | Fix routing spec for friends
|
diff --git a/features/support/env.rb b/features/support/env.rb
index abc1234..def5678 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -2,7 +2,5 @@ $api_key = "12312312312312312312312312312312"
AfterConfiguration do |_config|
- MazeRunner.config.receive_no_requests_wait = 15
- # TODO: Remove o... | Handle config not being present before MR 3.6.0 |
diff --git a/unchanged_validator.gemspec b/unchanged_validator.gemspec
index abc1234..def5678 100644
--- a/unchanged_validator.gemspec
+++ b/unchanged_validator.gemspec
@@ -20,6 +20,7 @@
spec.add_runtime_dependency "activemodel", ">= 3.1"
+ spec.add_development_dependency "activesupport", ">= 3.1"
spec.add_de... | Add development dependency on activesupport (>= 3.1)
|
diff --git a/features/support/env.rb b/features/support/env.rb
index abc1234..def5678 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -12,6 +12,7 @@ end
def create_file path, content
+ FileUtils.mkdir_p(File.dirname(path))
File.open(path, 'w') do |f|
f.write(content)
end... | Make missing directories automatically to test
|
diff --git a/lib/gollum/auth/user.rb b/lib/gollum/auth/user.rb
index abc1234..def5678 100644
--- a/lib/gollum/auth/user.rb
+++ b/lib/gollum/auth/user.rb
@@ -40,7 +40,7 @@ end
def valid_password?(password)
- password_digest == build_digest(password)
+ Rack::Utils.secure_compare(password_digest, buil... | Use Rack::Utils.secure_compare to verify password.
|
diff --git a/lib/is_it_up/railtie.rb b/lib/is_it_up/railtie.rb
index abc1234..def5678 100644
--- a/lib/is_it_up/railtie.rb
+++ b/lib/is_it_up/railtie.rb
@@ -1,7 +1,7 @@ module IsItUp
class Railtie < Rails::Railtie
- initializer "is_it_up.configure_rails_initialization" do
- Rails.application.middleware.use I... | Use the application object to access the middleware property
|
diff --git a/test/unit/line_test.rb b/test/unit/line_test.rb
index abc1234..def5678 100644
--- a/test/unit/line_test.rb
+++ b/test/unit/line_test.rb
@@ -26,4 +26,10 @@ assert_equal false, line.action?
assert_equal '<foo> bar', line.raw_line
end
+
+ test "trigger parser exception" do
+ assert_raise Exc... | Add parser exception test to LineTest
|
diff --git a/spec/name_checker/net_checker_spec.rb b/spec/name_checker/net_checker_spec.rb
index abc1234..def5678 100644
--- a/spec/name_checker/net_checker_spec.rb
+++ b/spec/name_checker/net_checker_spec.rb
@@ -7,9 +7,9 @@ let(:host_name) { "apple" }
let(:tld) { ".com" }
- # NOTE: This test assumes ther... | Fix broken net checker spec
|
diff --git a/refinerycms-retailers.gemspec b/refinerycms-retailers.gemspec
index abc1234..def5678 100644
--- a/refinerycms-retailers.gemspec
+++ b/refinerycms-retailers.gemspec
@@ -15,12 +15,9 @@ s.files = Dir["{app,config,db,lib}/**/*"] + ["readme.md"]
# Runtime dependencies
- s.add_dependency 'ref... | Allow ['~> 3.0', '>= 3.0.0'] for refinerycms-core
|
diff --git a/test/unit/handshake_request_packet_test.rb b/test/unit/handshake_request_packet_test.rb
index abc1234..def5678 100644
--- a/test/unit/handshake_request_packet_test.rb
+++ b/test/unit/handshake_request_packet_test.rb
@@ -2,10 +2,16 @@
module Digger
class HandshakeRequestPacketTest < TestCase
- test ... | Add test coverage for generating a handshake request with a session ID
|
diff --git a/lib/twitter_listener.rb b/lib/twitter_listener.rb
index abc1234..def5678 100644
--- a/lib/twitter_listener.rb
+++ b/lib/twitter_listener.rb
@@ -6,6 +6,7 @@ @client = Twitter::Client.new(credentials)
@query = query
@queue = queue
+ async.start_listening
end
def start_listening
| Make the twitter listener start itself on initialize
|
diff --git a/publify_core/app/controllers/content_controller.rb b/publify_core/app/controllers/content_controller.rb
index abc1234..def5678 100644
--- a/publify_core/app/controllers/content_controller.rb
+++ b/publify_core/app/controllers/content_controller.rb
@@ -1,21 +1,5 @@ class ContentController < BaseController
-... | Remove unused expiry filter class
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -18,8 +18,8 @@ #
default['nodejs']['install_method'] = 'source'
-default['nodejs']['version'] = '0.8.16'
-default['nodejs']['checksum'] = '2cd09d4227c787d6886be45dc54dad... | Update to latest stable release
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -6,6 +6,7 @@
domain_prefix = ''
domain_prefix = "#{node.chef_environment}-" if node.chef_environment != 'prod'
+domain_prefix = 'stage-' if node.chef_environment == 'sta... | Fix subdomain for stage w/ stage-newvpc
|
diff --git a/spec/acceptance/wanikani_user_spec.rb b/spec/acceptance/wanikani_user_spec.rb
index abc1234..def5678 100644
--- a/spec/acceptance/wanikani_user_spec.rb
+++ b/spec/acceptance/wanikani_user_spec.rb
@@ -3,7 +3,7 @@ describe 'WaniKani User' do
let(:valid_api_key) { 'fe1d61e66c3a8421db3b8fdbff4fa522' } # koi... | Mark acceptance tests as pending since site is under maintainence
|
diff --git a/spec/features/client_features_spec.rb b/spec/features/client_features_spec.rb
index abc1234..def5678 100644
--- a/spec/features/client_features_spec.rb
+++ b/spec/features/client_features_spec.rb
@@ -0,0 +1,35 @@+require 'spec_helper'
+
+describe "Clients" do
+ before :all do
+ load "#{Rails.root}/db/s... | Update client feature specs to run agains sensu api v0.10.2
|
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,9 +1,9 @@ # Be sure to restart your server when you modify this file.
options = if Rails.env.production?
-... | Add spaces to session store initializer
|
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,4 @@-options = { :key => '_alive_session' }
-
# options = { :key => '_alive_{{username}}_session' }
# ... | Remove the (unneded) session store.
|
diff --git a/config/initializers/verify_config.rb b/config/initializers/verify_config.rb
index abc1234..def5678 100644
--- a/config/initializers/verify_config.rb
+++ b/config/initializers/verify_config.rb
@@ -0,0 +1,15 @@+# Check that the app is configured correctly. Raise some helpful errors if something is wrong.
+
+... | Raise an error in production env if host_names is using production.localhost
|
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.17.33"
# Set the default client version
-default[:chef][... | Update chef client to 16.4.38
|
diff --git a/lib/gems/pending/lib/tasks/azure.rake b/lib/gems/pending/lib/tasks/azure.rake
index abc1234..def5678 100644
--- a/lib/gems/pending/lib/tasks/azure.rake
+++ b/lib/gems/pending/lib/tasks/azure.rake
@@ -0,0 +1,52 @@+require 'rake'
+
+# Tasks for regenerating cassettes and running tests for the Azure
+# solid ... | Add tasks for Azure SSA specs.
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -22,6 +22,7 @@ config.to_prepare do
Devise::SessionsController.layout "login"
Devise::PasswordsController.layout "login"
+ Devise::RegistrationsContr... | Make the devise invitable views look normal.
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -32,7 +32,7 @@ end
config.action_mailer.default_url_options = { host: ENV["SMTP_DOMAIN"] }
- config.session_expiration = 15.minutes
+ config.session_expira... | Increase session expiration time to 30 minutes.
|
diff --git a/lib/puppet/parser/functions/type3x.rb b/lib/puppet/parser/functions/type3x.rb
index abc1234..def5678 100644
--- a/lib/puppet/parser/functions/type3x.rb
+++ b/lib/puppet/parser/functions/type3x.rb
@@ -21,7 +21,7 @@
klass = value.class
- unless %w[TrueClass FalseClass Array Bignum Fixnum Float Has... | Revert "get rid of fixnum|bignum deprecation warning"
|
diff --git a/lib/stronglyboards/view_controller.rb b/lib/stronglyboards/view_controller.rb
index abc1234..def5678 100644
--- a/lib/stronglyboards/view_controller.rb
+++ b/lib/stronglyboards/view_controller.rb
@@ -7,6 +7,10 @@ UIVIEWCONTROLLER = 'UIViewController'
UITABLEVIEWCONTROLLER = 'UITableViewController'... | Add more built-in view controller classes
|
diff --git a/spec/lib/core/repositories/categories/fake_spec.rb b/spec/lib/core/repositories/categories/fake_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/core/repositories/categories/fake_spec.rb
+++ b/spec/lib/core/repositories/categories/fake_spec.rb
@@ -2,23 +2,24 @@ require 'core/repositories/categories/fak... | Define the contents of the repository within the tests
|
diff --git a/lib/firebolt/railtie.rb b/lib/firebolt/railtie.rb
index abc1234..def5678 100644
--- a/lib/firebolt/railtie.rb
+++ b/lib/firebolt/railtie.rb
@@ -5,14 +5,14 @@ initializer "firebolt.rails.configuration" do |app|
# Configure Firebolt
::Firebolt.configure do |config|
+ # Set defaults b... | Set the defaults before grabbing the user config.
|
diff --git a/lib/frakup/backupset.rb b/lib/frakup/backupset.rb
index abc1234..def5678 100644
--- a/lib/frakup/backupset.rb
+++ b/lib/frakup/backupset.rb
@@ -36,7 +36,7 @@ backupset.save
$log.info " Backup finished"
- $log.info " - duration: #{Time.at(backupset.finished_at - backupset.start... | Fix broken duration for backup log message.
|
diff --git a/lib/rml/element_args.rb b/lib/rml/element_args.rb
index abc1234..def5678 100644
--- a/lib/rml/element_args.rb
+++ b/lib/rml/element_args.rb
@@ -1,14 +1,28 @@ module RML
class ElementArgs
- attr_reader :attributes, :text
+ def initialize(*args)
+ @args = args
+ end
+
+ def attributes
+ ... | Refactor ElementArgs class
Preserves the original arguments
|
diff --git a/lib/scrivener_errors.rb b/lib/scrivener_errors.rb
index abc1234..def5678 100644
--- a/lib/scrivener_errors.rb
+++ b/lib/scrivener_errors.rb
@@ -22,10 +22,10 @@ end
end
- def to_s
+ def message
messages.join(', ').capitalize
end
- alias :message :to_s
+ alias :to_s :message
def mes... | Swap the message and to_s methods
I think it's more obvious this way.
|
diff --git a/lib/sequel_cascading.rb b/lib/sequel_cascading.rb
index abc1234..def5678 100644
--- a/lib/sequel_cascading.rb
+++ b/lib/sequel_cascading.rb
@@ -3,13 +3,13 @@ module Cascading
def self.apply(model, options = {})
Array(options[:destroy]).each do |assoc|
- model.instance_eval "bef... | Use a before_destroy method instead of the old hook system to avoid deprecation warnings
Signed-off-by: S. Brent Faulkner <fe025f82eb26909ef35ab792eedfa01fd68bfb52@gto.net> |
diff --git a/lib/stations/gtvoice.rb b/lib/stations/gtvoice.rb
index abc1234..def5678 100644
--- a/lib/stations/gtvoice.rb
+++ b/lib/stations/gtvoice.rb
@@ -8,8 +8,7 @@ def process
track = data.at_css("marquee")
artist, song = (track and split(track.text))
- { :song => (song), :artist => (artist)... | Move to new Ruby syntax
|
diff --git a/lib/svgeez/optimizer.rb b/lib/svgeez/optimizer.rb
index abc1234..def5678 100644
--- a/lib/svgeez/optimizer.rb
+++ b/lib/svgeez/optimizer.rb
@@ -8,7 +8,7 @@ raise SVGO_NOT_INSTALLED unless installed?
raise SVGO_MINIMUM_VERSION_MESSAGE unless supported?
- `cat <<EOF | svgo --disable={clea... | Use individual --disable args to svgo
|
diff --git a/lib/tasks/knapsack.rake b/lib/tasks/knapsack.rake
index abc1234..def5678 100644
--- a/lib/tasks/knapsack.rake
+++ b/lib/tasks/knapsack.rake
@@ -4,13 +4,13 @@ task :rspec do
allocator = Knapsack::Allocator.new
- Knapsack.logger.info
- Knapsack.logger.info 'Report specs:'
- Knapsack.logger.... | Use puts in rake task
|
diff --git a/lib/tasks/settings.rake b/lib/tasks/settings.rake
index abc1234..def5678 100644
--- a/lib/tasks/settings.rake
+++ b/lib/tasks/settings.rake
@@ -0,0 +1,11 @@+namespace :settings do
+
+ desc "Changes Setting key per_page_code for per_page_code_head"
+ task per_page_code_migration: :environment do
+ per_... | Create rake task to migrate Setting key from per_page_code to per_page_code_head
|
diff --git a/lib/barebones/builders/app_builder.rb b/lib/barebones/builders/app_builder.rb
index abc1234..def5678 100644
--- a/lib/barebones/builders/app_builder.rb
+++ b/lib/barebones/builders/app_builder.rb
@@ -16,6 +16,9 @@
def app
super
+ keep_file "app/services"
+ keep_file "app/decorators"
... | Add app directories for services, decorators, and workers
|
diff --git a/lib/builderator/util/aws_exception.rb b/lib/builderator/util/aws_exception.rb
index abc1234..def5678 100644
--- a/lib/builderator/util/aws_exception.rb
+++ b/lib/builderator/util/aws_exception.rb
@@ -23,7 +23,7 @@ end
def message
- "An error occured executing performing task #{ task }... | Fix grammar in exception message
|
diff --git a/lib/generators/hook/hook_generator.rb b/lib/generators/hook/hook_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/hook/hook_generator.rb
+++ b/lib/generators/hook/hook_generator.rb
@@ -7,7 +7,7 @@ source_root File.expand_path("../templates", __FILE__)
def create_hook_file
- ... | Add _hook suffix to generated hooks...
|
diff --git a/lib/git_evolution/report_presenter.rb b/lib/git_evolution/report_presenter.rb
index abc1234..def5678 100644
--- a/lib/git_evolution/report_presenter.rb
+++ b/lib/git_evolution/report_presenter.rb
@@ -2,31 +2,48 @@ class ReportPresenter
def initialize(commits)
@commits = commits
- @owners... | Allow the ReportPresenter to print the ownership based on changes
The commit additions/deletions are tallied up as 'changes', and reported
in the output.
|
diff --git a/lib/proxy_rb/drivers/webkit_driver.rb b/lib/proxy_rb/drivers/webkit_driver.rb
index abc1234..def5678 100644
--- a/lib/proxy_rb/drivers/webkit_driver.rb
+++ b/lib/proxy_rb/drivers/webkit_driver.rb
@@ -8,23 +8,18 @@ exit 1
end
+# rubocop:disable Style/SymbolProc
+::Capybara::Webkit.configure do |config|... | Configure webkit only a single time
|
diff --git a/app/overrides/promotions/manage_codes.rb b/app/overrides/promotions/manage_codes.rb
index abc1234..def5678 100644
--- a/app/overrides/promotions/manage_codes.rb
+++ b/app/overrides/promotions/manage_codes.rb
@@ -4,7 +4,7 @@ :name => 'hide_code_in_form',
:replace =... | Fix code input in new promotion code
|
diff --git a/foodspot_friend_sele.rb b/foodspot_friend_sele.rb
index abc1234..def5678 100644
--- a/foodspot_friend_sele.rb
+++ b/foodspot_friend_sele.rb
@@ -0,0 +1,84 @@+#!/usr/bin/env ruby
+
+# This script uses Selenium WebDriver and Safari to scrape the friends and
+# followers lists of the currently logged-in Foodsp... | Add a version of foodspot_friend that uses only Selenium to parse the web page.
|
diff --git a/rails_launcher.gemspec b/rails_launcher.gemspec
index abc1234..def5678 100644
--- a/rails_launcher.gemspec
+++ b/rails_launcher.gemspec
@@ -15,6 +15,6 @@ gem.require_paths = ["lib"]
gem.version = RailsLauncher::VERSION
- gem.add_dependency 'active_support'
+ gem.add_dependency 'activesupport... | Fix gem name for activesupport
active_support loads an old version, which does not have `pluralize` in Inflector
|
diff --git a/recipes/install_kvm.rb b/recipes/install_kvm.rb
index abc1234..def5678 100644
--- a/recipes/install_kvm.rb
+++ b/recipes/install_kvm.rb
@@ -34,7 +34,7 @@ action :permissive
end
-include_recipe "iptables::disabled"
+include_recipe "iptables"
service "rpcbind" do
action [:enable, :start]
| Use a permissive iptables configuration
|
diff --git a/coderwall_api.gemspec b/coderwall_api.gemspec
index abc1234..def5678 100644
--- a/coderwall_api.gemspec
+++ b/coderwall_api.gemspec
@@ -10,7 +10,7 @@ gem.email = ['kachick1+ruby@gmail.com']
gem.summary = 'An API wrapper for the coderwall.com'
gem.description = gem.summary.dup
- gem... | Replace URI of PJ-homepage in gemspec
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -1,7 +1,20 @@ require 'csv'
-csv_text = File.read('./events/2014.csv')
-csv = CSV.parse(csv_text, :headers => true)
-csv.each do |row|
- Event.create!(row.to_hash)
+files = Dir.glob('./events/*.csv')
+
+files.... | Adjust seed file to injest multiple files
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -5,3 +5,13 @@ #
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
+
+# Jobs
+Job.delete_all
+
+Job.create!(
+ company: "Acme Software... | Add seed data to Job table
|
diff --git a/lib/fog/google/examples/eric-fail.rb b/lib/fog/google/examples/eric-fail.rb
index abc1234..def5678 100644
--- a/lib/fog/google/examples/eric-fail.rb
+++ b/lib/fog/google/examples/eric-fail.rb
@@ -12,7 +12,7 @@
disk.wait_for { disk.ready? }
- server = connection.servers.create(defaults = {
+ server ... | [google|compute] Fix spelling errors in example
|
diff --git a/library/socket/udpsocket/new_spec.rb b/library/socket/udpsocket/new_spec.rb
index abc1234..def5678 100644
--- a/library/socket/udpsocket/new_spec.rb
+++ b/library/socket/udpsocket/new_spec.rb
@@ -26,17 +26,7 @@ @socket.should be_an_instance_of(UDPSocket)
end
- platform_is_not :solaris do
- it ... | Revert "Fix UDPSocket.new spec, Solaris reports a different error on unknown protocol family."
This reverts commit 30ae2c38169fd3e317f5336ed9a4a586d36ea448.
UDPSocket.new's argument is address family; if it receive wrong
argument, it raises EAFNOSUPPORT like other platforms.
http://rubyci.org/logs/rubyci.s3.amazonaws... |
diff --git a/activerecord/test/cases/adapters/postgresql/prepared_statements_test.rb b/activerecord/test/cases/adapters/postgresql/prepared_statements_test.rb
index abc1234..def5678 100644
--- a/activerecord/test/cases/adapters/postgresql/prepared_statements_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/pre... | Fix mucking of connection_config leading to issues in prepared_statements
|
diff --git a/hephaestus/lib/resque/task_finder.rb b/hephaestus/lib/resque/task_finder.rb
index abc1234..def5678 100644
--- a/hephaestus/lib/resque/task_finder.rb
+++ b/hephaestus/lib/resque/task_finder.rb
@@ -2,8 +2,7 @@ attr_reader :document
DEFAULT_TASKS = %w(
- normalization_task
- layout_analysis_task
... | [hephaestus] Add new tools to queue
|
diff --git a/app/inputs/array_input.rb b/app/inputs/array_input.rb
index abc1234..def5678 100644
--- a/app/inputs/array_input.rb
+++ b/app/inputs/array_input.rb
@@ -4,7 +4,7 @@
TEXT_FIELD_CLASSES = "text optional array-element"
- def input
+ def input(_wrapper_options)
input_html_options[:type] ||= input_t... | Fix deprecation warning when defining custom input
Since https://github.com/plataformatec/simple_form/pull/997,
custom input adapters must accept a hash of wrapper options
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -18,8 +18,8 @@
config.active_record.observers = :world_record_observer
- # Use dalli(memcache) as default cache store.
- config.cache_store = :dalli_store, {
... | Use :mem_cache_store instead of :dalli_store
|
diff --git a/nikeplus_client.gemspec b/nikeplus_client.gemspec
index abc1234..def5678 100644
--- a/nikeplus_client.gemspec
+++ b/nikeplus_client.gemspec
@@ -8,8 +8,8 @@ spec.version = NikeplusClient::VERSION
spec.authors = ["julien michot"]
spec.email = ["ju.michot@gmail.com"]
- spec.summar... | Update gemspec to remove warnings
|
diff --git a/lib/daimon_skycrawlers/consumer/url.rb b/lib/daimon_skycrawlers/consumer/url.rb
index abc1234..def5678 100644
--- a/lib/daimon_skycrawlers/consumer/url.rb
+++ b/lib/daimon_skycrawlers/consumer/url.rb
@@ -48,7 +48,7 @@
# XXX When several crawlers are registered, how should they behave?
se... | Copy message argument to be used by all crawlers
|
diff --git a/lib/database_bank/database_exchange.rb b/lib/database_bank/database_exchange.rb
index abc1234..def5678 100644
--- a/lib/database_bank/database_exchange.rb
+++ b/lib/database_bank/database_exchange.rb
@@ -4,8 +4,14 @@ module DatabaseBank
class DatabaseExchange < Money::Bank::VariableExchange
- ... | Deal with proper currency object types for get_rate
|
diff --git a/nothing_magical.gemspec b/nothing_magical.gemspec
index abc1234..def5678 100644
--- a/nothing_magical.gemspec
+++ b/nothing_magical.gemspec
@@ -16,6 +16,9 @@ spec.files = `git ls-files`.split($/)
spec.executables =["nothing_magical"]
spec.require_paths = ["lib"]
+ spec.has_rdoc = fa... | Add rake as dev dependency and disable rdoc.
|
diff --git a/lib/fake_elasticache/options/docker.rb b/lib/fake_elasticache/options/docker.rb
index abc1234..def5678 100644
--- a/lib/fake_elasticache/options/docker.rb
+++ b/lib/fake_elasticache/options/docker.rb
@@ -10,7 +10,7 @@ :version => ENV.fetch('MEMCACHED_VERSION', '2.4.14')
}
- EN... | Stop matching all keys that contain MEMCACHE{NUMBER}_PORT
|
diff --git a/lib/cryptoexchange/exchanges/vinex/services/market.rb b/lib/cryptoexchange/exchanges/vinex/services/market.rb
index abc1234..def5678 100644
--- a/lib/cryptoexchange/exchanges/vinex/services/market.rb
+++ b/lib/cryptoexchange/exchanges/vinex/services/market.rb
@@ -38,7 +38,7 @@ ticker.last = ... | Fix Vinex volume by divide
|
diff --git a/lib/kubernetes-deploy/kubernetes_resource/cloudsql.rb b/lib/kubernetes-deploy/kubernetes_resource/cloudsql.rb
index abc1234..def5678 100644
--- a/lib/kubernetes-deploy/kubernetes_resource/cloudsql.rb
+++ b/lib/kubernetes-deploy/kubernetes_resource/cloudsql.rb
@@ -10,15 +10,18 @@ _, st = run_kubectl("... | Add some deploy_succeeded? logic to Cloudsql
|
diff --git a/lib/capistrano/tasks/capistrano-resque-pool.rake b/lib/capistrano/tasks/capistrano-resque-pool.rake
index abc1234..def5678 100644
--- a/lib/capistrano/tasks/capistrano-resque-pool.rake
+++ b/lib/capistrano/tasks/capistrano-resque-pool.rake
@@ -4,7 +4,7 @@ task :start do
on roles(workers) do
... | Use the current environment when lauching the pool manager
|
diff --git a/app/models/euclidean_distance.rb b/app/models/euclidean_distance.rb
index abc1234..def5678 100644
--- a/app/models/euclidean_distance.rb
+++ b/app/models/euclidean_distance.rb
@@ -17,12 +17,13 @@ # Add up the squares of all the differences
squares = []
prefs[person1].each do |k, v|
+ put... | Add log message to show the book
|
diff --git a/test/integration/test_localization.rb b/test/integration/test_localization.rb
index abc1234..def5678 100644
--- a/test/integration/test_localization.rb
+++ b/test/integration/test_localization.rb
@@ -0,0 +1,61 @@+require_relative '../capybara_helper'
+
+context 'Localized frontend' do
+ include Capybara::... | Test localization for some views
In #1853, it was reported that some views are errorring out due to
missing translations. These tests exercise the translations for the
reported views.
|
diff --git a/lib/survey_gizmo/api/campaign.rb b/lib/survey_gizmo/api/campaign.rb
index abc1234..def5678 100644
--- a/lib/survey_gizmo/api/campaign.rb
+++ b/lib/survey_gizmo/api/campaign.rb
@@ -6,6 +6,7 @@ attribute :name, String
attribute :type, String
attribute :_type, Str... | Add missing attribute "subtype" needed when creating Campains
|
diff --git a/core/spec/poltergeist_style_overrides.rb b/core/spec/poltergeist_style_overrides.rb
index abc1234..def5678 100644
--- a/core/spec/poltergeist_style_overrides.rb
+++ b/core/spec/poltergeist_style_overrides.rb
@@ -8,6 +8,7 @@ #real_tos { overflow:hidden !important; }
html.phantom_js body { -... | Use absolute rather than fixed positioning for the NDP screenshots.
This lets then fill the screenshot naturally, rather than be clipped to the (small) phantomjs viewport.
|
diff --git a/VENPromotionsManager.podspec b/VENPromotionsManager.podspec
index abc1234..def5678 100644
--- a/VENPromotionsManager.podspec
+++ b/VENPromotionsManager.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "VENPromotionsManager"
- s.version = "0.1.1"
+ s.version = "0.2.0"
s.summar... | Update podspec to latest version
|
diff --git a/lib/model-visualizer.rb b/lib/model-visualizer.rb
index abc1234..def5678 100644
--- a/lib/model-visualizer.rb
+++ b/lib/model-visualizer.rb
@@ -13,7 +13,13 @@
root = if ARGV.length == 1 then ARGV[0] else '.' end
- models = Parser.parse root
- Visualizer.new(models).create_visualiz... | Fix error with title when path is not given
|
diff --git a/lib/jekyll/converters/coffeescript.rb b/lib/jekyll/converters/coffeescript.rb
index abc1234..def5678 100644
--- a/lib/jekyll/converters/coffeescript.rb
+++ b/lib/jekyll/converters/coffeescript.rb
@@ -5,7 +5,7 @@ priority :low
def matches(ext)
- ext =~ /\A\.coffee\z/
+ ext =~ /^... | Change Matching Regex to use standard symbols
For beginning and end of line, ^ and $.
And added i flag for case insensitivity.
This also more closely matches the sass/scss converters |
diff --git a/lib/capistrano/notifier/statsd.rb b/lib/capistrano/notifier/statsd.rb
index abc1234..def5678 100644
--- a/lib/capistrano/notifier/statsd.rb
+++ b/lib/capistrano/notifier/statsd.rb
@@ -24,8 +24,8 @@ end
end
- def self.get_options(yaml = "", configuration)
- yaml = (YAML.load(yaml) || {}).symbol... | Remove argument default from beginning of parameter list
|
diff --git a/lib/cfssl-trust-store-preamble.rb b/lib/cfssl-trust-store-preamble.rb
index abc1234..def5678 100644
--- a/lib/cfssl-trust-store-preamble.rb
+++ b/lib/cfssl-trust-store-preamble.rb
@@ -6,4 +6,4 @@ ca-bundle.crt.metadata
int-bundle.crt ]
-TRUST_STORE = Redis.con... | Switch from REDISCLOUD_URL to REDIS_URL
|
diff --git a/app/controllers/organizations_controller.rb b/app/controllers/organizations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/organizations_controller.rb
+++ b/app/controllers/organizations_controller.rb
@@ -1,5 +1,4 @@ class OrganizationsController < ApplicationController
-
def index
... | Streamline organization creation under the current user.
|
diff --git a/app/controllers/pdf_converter_controller.rb b/app/controllers/pdf_converter_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/pdf_converter_controller.rb
+++ b/app/controllers/pdf_converter_controller.rb
@@ -13,7 +13,7 @@ end
end
puts "All Images >>>>>>>>>>>>>> #{extractor.i... | Fix for handling empty array of images
|
diff --git a/lib/marples/model_action_broadcast.rb b/lib/marples/model_action_broadcast.rb
index abc1234..def5678 100644
--- a/lib/marples/model_action_broadcast.rb
+++ b/lib/marples/model_action_broadcast.rb
@@ -13,7 +13,7 @@ # If you'd like the actions performed by Marples to be logged, set a
# logge... | Use the NullLogger by default. |
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
@@ -1,5 +1,5 @@ class EventsController < ApplicationController
def feed
- open("http://dl.dropbox.com/s/5r7ht... | Fix event json Dropbox redirect
|
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 @@ # GET /events.rss
# GET /events.ics
def index
- @events = Event.where(['date >= ?', Date... | Use now DateTime in UTC for getting events
|
diff --git a/app/controllers/recipe_controller.rb b/app/controllers/recipe_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/recipe_controller.rb
+++ b/app/controllers/recipe_controller.rb
@@ -1,16 +1,27 @@ require 'rakuten_web_service'
class RecipeController < ApplicationController
+ def pickup
+ ... | Add API call for pickup
|
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/events_helper.rb
+++ b/app/helpers/events_helper.rb
@@ -8,14 +8,17 @@ end
end
- def breadcrumb_link_according_to_user_status
- if current_user && @event.organizer_id == current_user.id
-... | doc: Comment out event helper method
I left this code on purpose, we might be able to use a modified version after more refactoring of the breadcrumbs
|
diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/sessions_helper.rb
+++ b/app/helpers/sessions_helper.rb
@@ -13,16 +13,30 @@ { site: base } )
request_token = consumer.get_request_token(oauth_callback: callback)
- puts requ... | Store twitter access token info to db
|
diff --git a/app/helpers/tiny_mce_helper.rb b/app/helpers/tiny_mce_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/tiny_mce_helper.rb
+++ b/app/helpers/tiny_mce_helper.rb
@@ -7,7 +7,8 @@ mode : 'textareas',
width : '100%',
height : '100%',
- theme_advanced_resizing : false,
+ theme_advance... | Put resizing and cookie remember size back into tiny MCE |
diff --git a/lib/mysql_tools/init_obfuscate.rb b/lib/mysql_tools/init_obfuscate.rb
index abc1234..def5678 100644
--- a/lib/mysql_tools/init_obfuscate.rb
+++ b/lib/mysql_tools/init_obfuscate.rb
@@ -1,5 +1,13 @@ module MysqlTools
class InitObfuscate
+
+# # -*- mode: ruby -*-
+# {
+# :sitaddresses => {
+# ... | Add example obfuscate file. Command still not working.
|
diff --git a/lib/nyanko/unit_proxy_provider.rb b/lib/nyanko/unit_proxy_provider.rb
index abc1234..def5678 100644
--- a/lib/nyanko/unit_proxy_provider.rb
+++ b/lib/nyanko/unit_proxy_provider.rb
@@ -4,7 +4,6 @@
included do
extend UnitProxyProvider
- include Helper
end
# Define #unit method i... | Remove unnecessary inclusion of Helper in UnitProxyProvider
Helper will be included in Railtie.
|
diff --git a/lib/quotes/gateways/quotes_gateway.rb b/lib/quotes/gateways/quotes_gateway.rb
index abc1234..def5678 100644
--- a/lib/quotes/gateways/quotes_gateway.rb
+++ b/lib/quotes/gateways/quotes_gateway.rb
@@ -40,7 +40,9 @@ end
def merge(quotes)
- (load_all + quotes).uniq { |q| q.content }
+ (lo... | Update how uniqueness is determined in gateway
|
diff --git a/lib/swa/ec2/instance.rb b/lib/swa/ec2/instance.rb
index abc1234..def5678 100644
--- a/lib/swa/ec2/instance.rb
+++ b/lib/swa/ec2/instance.rb
@@ -12,19 +12,15 @@ end
def summary
- summary_fields.map { |x| (x || "-") }.join(" ")
- end
-
- def summary_fields
- name = tags... | Align columns in "summary" output.
|
diff --git a/lib/rocket_pants/active_record.rb b/lib/rocket_pants/active_record.rb
index abc1234..def5678 100644
--- a/lib/rocket_pants/active_record.rb
+++ b/lib/rocket_pants/active_record.rb
@@ -7,9 +7,6 @@ map_error! ActiveRecord::RecordNotFound, RocketPants::NotFound
map_error! ActiveRecord::RecordNotU... | Remove RocketPants default handling of AR validations so that exceptions
are thrown normally
|
diff --git a/ruby_tests/tty_read.rb b/ruby_tests/tty_read.rb
index abc1234..def5678 100644
--- a/ruby_tests/tty_read.rb
+++ b/ruby_tests/tty_read.rb
@@ -12,12 +12,21 @@ puts "*** Connecting to RPi on #{host}:#{port}"
@socket = TCPSocket.new(host, port) # a magic Celluloid::IO socket
+ @arduino_buffe... | Add code to buffer the partial socket reads into lines
|
diff --git a/app/policies/comment_policy.rb b/app/policies/comment_policy.rb
index abc1234..def5678 100644
--- a/app/policies/comment_policy.rb
+++ b/app/policies/comment_policy.rb
@@ -1,6 +1,6 @@ class CommentPolicy < ApplicationPolicy
def new?
- record.post.member?(user)
+ record.subject.member?(user)
end... | Use comment subject in policy
|
diff --git a/lib/magento/product_attribute_set.rb b/lib/magento/product_attribute_set.rb
index abc1234..def5678 100644
--- a/lib/magento/product_attribute_set.rb
+++ b/lib/magento/product_attribute_set.rb
@@ -16,6 +16,14 @@ def create(attributes)
commit("create", attributes[:name], attributes[:skeleton_i... | Add group add to attributes set
|
diff --git a/lib/netsuite_config/netsuite_init.rb b/lib/netsuite_config/netsuite_init.rb
index abc1234..def5678 100644
--- a/lib/netsuite_config/netsuite_init.rb
+++ b/lib/netsuite_config/netsuite_init.rb
@@ -1,13 +1,18 @@ NetSuite.configure do
reset!
-
+
+ read_timeout 100_000
+
email ENV['NETSUITE_E... | Allow wsdl_domain to be specified via env vars
|
diff --git a/lib/roo_on_rails/railties/sidekiq.rb b/lib/roo_on_rails/railties/sidekiq.rb
index abc1234..def5678 100644
--- a/lib/roo_on_rails/railties/sidekiq.rb
+++ b/lib/roo_on_rails/railties/sidekiq.rb
@@ -1,5 +1,7 @@ require 'sidekiq'
require 'roo_on_rails/sidekiq/settings'
+require 'roo_on_rails/sidekiq/sla_metri... | HOTFIX: Use correct SLA class name
This could really do with some tests, but I’m not quite sure how to
test it and this is causing errors in production so I’d prefer to patch
it quickly and then work out how to test it later.
@danielcooper maybe you have some thoughts on how to test?
|
diff --git a/lib/rubygems/comparator/dir_utils.rb b/lib/rubygems/comparator/dir_utils.rb
index abc1234..def5678 100644
--- a/lib/rubygems/comparator/dir_utils.rb
+++ b/lib/rubygems/comparator/dir_utils.rb
@@ -1,51 +1,53 @@ require 'pathname'
-module DirUtils
- SHEBANG_REGEX = /\A#!.*/
+class Gem::Comparator
+ modul... | Move DirUtils to proper namespace
|
diff --git a/lib/blimp/web_server.rb b/lib/blimp/web_server.rb
index abc1234..def5678 100644
--- a/lib/blimp/web_server.rb
+++ b/lib/blimp/web_server.rb
@@ -7,10 +7,14 @@ end
before do
- logger.info "Sites defined: #{Site.all}"
+ logger.info "Started GET \"#{request.path_info}\" for #{request.ip} a... | Add a little logging to webserver
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.