diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/controllers/projects/badges_controller.rb b/app/controllers/projects/badges_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/projects/badges_controller.rb
+++ b/app/controllers/projects/badges_controller.rb
@@ -4,7 +4,7 @@ before_action :no_cache_headers, except: [:index]
def in... | Use default branch when displaying list of badges
|
diff --git a/lib/blogue/engine.rb b/lib/blogue/engine.rb
index abc1234..def5678 100644
--- a/lib/blogue/engine.rb
+++ b/lib/blogue/engine.rb
@@ -6,6 +6,8 @@ app.config.assets.paths << (
File.expand_path(Blogue.assets_path || "#{Blogue.posts_path}/assets")
)
+
+ app.config.assets.precompile +=... | Add all image formats to precompile array |
diff --git a/ci_environment/kerl/attributes/source.rb b/ci_environment/kerl/attributes/source.rb
index abc1234..def5678 100644
--- a/ci_environment/kerl/attributes/source.rb
+++ b/ci_environment/kerl/attributes/source.rb
@@ -1,2 +1,2 @@-default[:kerl][:releases] = %w(R14B02 R14B03 R14B04 R15B R15B01 R15B02 R15B03 R16B ... | Support Erlang 17.0 with kerl
Also drop support for the previous Erlang 17.0 release candidates. |
diff --git a/lib/rubocop/cop/variable_inspector/reference.rb b/lib/rubocop/cop/variable_inspector/reference.rb
index abc1234..def5678 100644
--- a/lib/rubocop/cop/variable_inspector/reference.rb
+++ b/lib/rubocop/cop/variable_inspector/reference.rb
@@ -7,14 +7,20 @@ class Reference
include Locatable
+ ... | Fix an ad-hoc comment out
|
diff --git a/lib/fakefs/kernel.rb b/lib/fakefs/kernel.rb
index abc1234..def5678 100644
--- a/lib/fakefs/kernel.rb
+++ b/lib/fakefs/kernel.rb
@@ -9,12 +9,14 @@
def self.hijack!
captives[:hijacked].each do |name, prc|
+ ::Kernel.send(:remove_method, name.to_sym)
::Kernel.send(:define_method, ... | Remove methods before re-defining them
This prevents ruby from dumping a ton of "method redefined" warnings to the console. |
diff --git a/lib/filmbuff/imdb.rb b/lib/filmbuff/imdb.rb
index abc1234..def5678 100644
--- a/lib/filmbuff/imdb.rb
+++ b/lib/filmbuff/imdb.rb
@@ -18,7 +18,7 @@ result = self.class.get('/title/maindetails', :query => {
:tconst => imdb_id, :locale => @locale
}).parsed_response
-
+
Title.... | Add newline for increased readability
|
diff --git a/lib/haml/template.rb b/lib/haml/template.rb
index abc1234..def5678 100644
--- a/lib/haml/template.rb
+++ b/lib/haml/template.rb
@@ -33,7 +33,7 @@ end
-Haml::Template.options[:ugly] = defined?(Rails) ? !Rails.env.development? : true
+Haml::Template.options[:ugly] = defined?(Rails.env) ? !Rails.env.devel... | Check for definition of Rails.env rather than Rails
See #842
|
diff --git a/lib/hamlit/parser.rb b/lib/hamlit/parser.rb
index abc1234..def5678 100644
--- a/lib/hamlit/parser.rb
+++ b/lib/hamlit/parser.rb
@@ -26,7 +26,7 @@ end
def call(template)
- template = Haml::Util.check_haml_encoding(template) do |msg, line|
+ template = Hamlit::HamlUtil.check_haml_encodin... | Fix fatal issue that Hamlit depends on Haml
Fix #125
|
diff --git a/app.rb b/app.rb
index abc1234..def5678 100644
--- a/app.rb
+++ b/app.rb
@@ -23,7 +23,7 @@ url: endpoints[endpoint]["url"],
headers: endpoints[endpoint]["headers"].symbolize_keys!,
verify_ssl: OpenSSL::SSL::VERIFY_NONE,
-# If you require basic auth
+# If you require basic auth
# user: ... | Return not working message if endpoint returns invalid JSON
|
diff --git a/week-4/shortest-string/my_solution.rb b/week-4/shortest-string/my_solution.rb
index abc1234..def5678 100644
--- a/week-4/shortest-string/my_solution.rb
+++ b/week-4/shortest-string/my_solution.rb
@@ -0,0 +1,69 @@+# Shortest String
+
+# I worked on this challenge [by myself].
+
+# shortest_string is a metho... | Complete initial solution passing all tests
|
diff --git a/tools/generate-many-segment-data.rb b/tools/generate-many-segment-data.rb
index abc1234..def5678 100644
--- a/tools/generate-many-segment-data.rb
+++ b/tools/generate-many-segment-data.rb
@@ -0,0 +1,86 @@+#!/usr/bin/env ruby
+#
+# Copyright(C) 2019 Kouhei Sutou <kou@clear-code.com>
+#
+# This library is fr... | Add a tool that generates data to use many segments
|
diff --git a/test/mqueue_test.rb b/test/mqueue_test.rb
index abc1234..def5678 100644
--- a/test/mqueue_test.rb
+++ b/test/mqueue_test.rb
@@ -46,7 +46,7 @@ end
def test_timedsendsend_raises_exception_instead_of_blocking
- 10.times { @queue.send "walrus" }
+ 10.times { @queue.timedsend 0, 0, "walrus" }
... | Change nonblocking send test to use timedsend
|
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -15,6 +15,10 @@ File.join(ROOT, *args)
end
+ def setup
+ FileUtils.rm(File.join(ROOT, "test", "tmp", ".monk"))
+ end
+
def monk(args = nil)
sh("env MONK_HOME=... | Reset the .monk config after each test.
|
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -12,3 +12,5 @@
assert_equal message, error.message
end
+
+Streamy.logger = Logger.new("test.log")
| Write test log output to file
|
diff --git a/http-commands.gemspec b/http-commands.gemspec
index abc1234..def5678 100644
--- a/http-commands.gemspec
+++ b/http-commands.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = 'http-commands'
- s.version = '0.2.0'
+ s.version = '0.2.1'
s.summary = 'Convenience abstractions for common HTT... | Package version is incremented from 0.2.0 to 0.2.1
|
diff --git a/config/puma.rb b/config/puma.rb
index abc1234..def5678 100644
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -17,7 +17,7 @@ before_fork do
require 'puma_worker_killer'
- PumaWorkerKiller.enable_rolling_restart(12.hours)
+ PumaWorkerKiller.enable_rolling_restart(3.hours)
end
if %w(development test)... | Revert rolling restarts to 3 hours
|
diff --git a/lib/emcee/document.rb b/lib/emcee/document.rb
index abc1234..def5678 100644
--- a/lib/emcee/document.rb
+++ b/lib/emcee/document.rb
@@ -16,8 +16,7 @@ end
def to_s
- body = @doc.at("body").children
- body.to_s.lstrip
+ body = @doc.at("body").inner_html.lstrip
end
def ht... | Use `inner_html` instead of `children.to_s`
Returns the intended html
|
diff --git a/tzinfo-data.gemspec b/tzinfo-data.gemspec
index abc1234..def5678 100644
--- a/tzinfo-data.gemspec
+++ b/tzinfo-data.gemspec
@@ -1,7 +1,6 @@ Gem::Specification.new do |s|
s.name = 'tzinfo-data'
s.version = '1.2012.9'
- s.date = '2012-10-01'
s.summary = 'Data for the TZInfo library'
s.descriptio... | Remove date property from gemspec. This is set automatically.
|
diff --git a/lib/model_patches.rb b/lib/model_patches.rb
index abc1234..def5678 100644
--- a/lib/model_patches.rb
+++ b/lib/model_patches.rb
@@ -5,11 +5,4 @@ # See http://stackoverflow.com/questions/7072758/plugin-not-reloading-in-development-mode
#
Rails.configuration.to_prepare do
- OutgoingMessage.class_eval do... | Delete OutgoingMessage changes as we don't use these
|
diff --git a/lib/traject/queue.rb b/lib/traject/queue.rb
index abc1234..def5678 100644
--- a/lib/traject/queue.rb
+++ b/lib/traject/queue.rb
@@ -4,11 +4,8 @@ # Extend the normal queue class with some useful methods derived from
# its java counterpart
-
-if defined? JRUBY_VERSION
- Traject::Queue = java.util.concurr... | Remove use of java.util.concurrent.LinkedBlockingQueue because it doesn't buy us anything but complexity
|
diff --git a/lib/tumugi/logger.rb b/lib/tumugi/logger.rb
index abc1234..def5678 100644
--- a/lib/tumugi/logger.rb
+++ b/lib/tumugi/logger.rb
@@ -7,6 +7,10 @@ include Singleton
extend Forwardable
def_delegators :@logger, :debug, :error, :fatal, :info, :warn, :level
+
+ def initialize
+ init
+ en... | Call init first Tumugi::Logger instance access
|
diff --git a/league_of_legends.gemspec b/league_of_legends.gemspec
index abc1234..def5678 100644
--- a/league_of_legends.gemspec
+++ b/league_of_legends.gemspec
@@ -10,6 +10,7 @@ spec.email = ["francisco.orvalho@gmail.com"]
spec.summary = %q{Implementation of the LoL API}
spec.description = %q{T... | Add 'read the README' to the gemspec
|
diff --git a/lib/appointment_ticket.rb b/lib/appointment_ticket.rb
index abc1234..def5678 100644
--- a/lib/appointment_ticket.rb
+++ b/lib/appointment_ticket.rb
@@ -31,8 +31,6 @@
def comment
<<-TEXT.strip_heredoc
- New appointment request
-
Name:
#{@appointment.full_name}
| Remove duplicate subject from appointment ticket |
diff --git a/spec/models/benchmark_schedule_spec.rb b/spec/models/benchmark_schedule_spec.rb
index abc1234..def5678 100644
--- a/spec/models/benchmark_schedule_spec.rb
+++ b/spec/models/benchmark_schedule_spec.rb
@@ -28,4 +28,16 @@ end
end
end
+
+ describe 'filtering schedules' do
+ let(:active_schedu... | Add spec for filtering schedules
|
diff --git a/lib/engineyard/version.rb b/lib/engineyard/version.rb
index abc1234..def5678 100644
--- a/lib/engineyard/version.rb
+++ b/lib/engineyard/version.rb
@@ -1,4 +1,4 @@ module EY
- VERSION = '2.0.11'
+ VERSION = '2.0.12.pre'
ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || '2.0.5'
e... | Add .pre for next release
|
diff --git a/lib/gotcha-bot/factory.rb b/lib/gotcha-bot/factory.rb
index abc1234..def5678 100644
--- a/lib/gotcha-bot/factory.rb
+++ b/lib/gotcha-bot/factory.rb
@@ -14,6 +14,7 @@ end
def shutdown!
+ # TODO: Stop all the teams in the database
EM.add_shutdown_hook { @instance = nil }
... | Add TODO for stopping teams
|
diff --git a/lib/qml/qt_object_base.rb b/lib/qml/qt_object_base.rb
index abc1234..def5678 100644
--- a/lib/qml/qt_object_base.rb
+++ b/lib/qml/qt_object_base.rb
@@ -2,21 +2,16 @@ module QML
class QtObjectBase
- def initialize(ptr)
- self.pointer = ptr
- @_gc_protected = []
- end
+ attr_reader :p... | Add destroy: option to QtObjectBase.new
|
diff --git a/lib/redmine_diff_email.rb b/lib/redmine_diff_email.rb
index abc1234..def5678 100644
--- a/lib/redmine_diff_email.rb
+++ b/lib/redmine_diff_email.rb
@@ -1,9 +1,5 @@ # Set up autoload of patches
-def apply_patch(&block)
- ActionDispatch::Callbacks.to_prepare(&block)
-end
-
-apply_patch do
+Rails.configurati... | Use Rails.configuration.to_prepare to load patches
|
diff --git a/lib/typedown2blog/spec.rb b/lib/typedown2blog/spec.rb
index abc1234..def5678 100644
--- a/lib/typedown2blog/spec.rb
+++ b/lib/typedown2blog/spec.rb
@@ -3,6 +3,22 @@ require 'mail_processor'
module Typedown2Blog
+ def symbolize_keys(hash)
+ hash.inject({}){|result, (key, value)|
+ new_key = ca... | Support yaml format for retriever settings
|
diff --git a/lib/value_caster/event.rb b/lib/value_caster/event.rb
index abc1234..def5678 100644
--- a/lib/value_caster/event.rb
+++ b/lib/value_caster/event.rb
@@ -9,7 +9,7 @@ attr_reader :name, :action, :method
def action_class
- "ValueCaster::Action::#{action.classify}".constantize
+ "ValueCaste... | Add `to_s`. because if action is symbol instance, raises error
|
diff --git a/spec/lib/rspec/examples_spec.rb b/spec/lib/rspec/examples_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/rspec/examples_spec.rb
+++ b/spec/lib/rspec/examples_spec.rb
@@ -1,6 +1,7 @@ describe Rambo::RSpec::Examples do
let(:raml_file) { File.expand_path("../../../support/foobar.raml", __FILE__) }
- ... | Make examples specs all pass
|
diff --git a/thrift_client.gemspec b/thrift_client.gemspec
index abc1234..def5678 100644
--- a/thrift_client.gemspec
+++ b/thrift_client.gemspec
@@ -20,4 +20,6 @@
s.add_development_dependency 'rake'
s.add_development_dependency 'mongrel', '1.2.0.pre2'
+ s.add_development_dependency 'rack'
+ s.add_development_d... | Add undeclared dependencies for thrift
thrift requires rack and thin in its Thrift::ThinHTTPServer but does
not declare them in the gemspec.
|
diff --git a/spec/fizzbuzz_spec.rb b/spec/fizzbuzz_spec.rb
index abc1234..def5678 100644
--- a/spec/fizzbuzz_spec.rb
+++ b/spec/fizzbuzz_spec.rb
@@ -0,0 +1,27 @@+# TODO: For a given number, return the sequence from 1 to that number but with the following sustitutions:
+#
+# * If the number is **not divisible** by **2**... | Add the base for the tests and the TODO list
|
diff --git a/rubyfox-server.gemspec b/rubyfox-server.gemspec
index abc1234..def5678 100644
--- a/rubyfox-server.gemspec
+++ b/rubyfox-server.gemspec
@@ -6,8 +6,8 @@ Gem::Specification.new do |gem|
gem.name = "rubyfox-server"
gem.version = Rubyfox::Server::VERSION
- gem.authors = ["Peter Susc... | Add @wakkowarner as author and rename @splattael's name
|
diff --git a/lib/automobile.rb b/lib/automobile.rb
index abc1234..def5678 100644
--- a/lib/automobile.rb
+++ b/lib/automobile.rb
@@ -3,6 +3,6 @@ module BrighterPlanet
module Automobile
extend BrighterPlanet::Emitter
- scope 'The automobile emission estimate is the total anthropogenic emissions from fuel and ... | Update description of emission calculation scope
|
diff --git a/lib/capistrano.rb b/lib/capistrano.rb
index abc1234..def5678 100644
--- a/lib/capistrano.rb
+++ b/lib/capistrano.rb
@@ -1,5 +1,7 @@ require 'rake'
require 'sshkit'
+
+Rake.application.options.trace = true
require 'capistrano/version'
require 'capistrano/i18n'
| Enable printing of a proper stack trace by Rake when we err out
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -32,5 +32,7 @@ end
end
- resources :discussion_boards, :only => [ :edit, :update ]
+ resources :discussion_boards, :only => [ :edit, :update ] do
+ resources :topics, :only => [ ... | Add new and create Routes for Topics
Update the routing file to include new and create actions for Topics.
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -24,5 +24,11 @@ resources :lessons, :only => [ :create, :update ]
end
- resources :blogs, :only => [ :edit ]
+ resources :blogs, :only => [ :edit, :update ] do
+ member do
+ ... | Add Routes for Blog update and Image Update
Add routing to accommodate updating a Blog, to include changing its
corresponding image.
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -26,6 +26,7 @@ match '/auth/register', to: 'auth#register', via: 'post'
match '/auth/login', to: 'auth#login', via: 'post'
match '/auth/token_status', to: 'auth#token_status', ... | Refactor ratings find route to emit json
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,7 +1,7 @@ Rails.application.routes.draw do
root 'home#index'
- resources 'workspaces', path: 's', format: false do
+ resources 'workspaces', path: 'w', format: false do
resource... | Change the path prefix of workspace actions
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,6 @@ Rails.application.routes.draw do
- root to: redirect('/register')
+ root to: redirect(ENV.fetch('ROOT_REDIRECT', '/register'))
+
get '/register', as: 'new_user_profile', to: ... | Allow environment to configure root redirect |
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -5,6 +5,7 @@ get "/drops/followees" => 'drops#followees'
resources :users, only: [:show] do
resources :follows, only: [:index]
+ resources :drops, only: [:index]
end
resou... | Add nested drops to get json for maps
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -9,10 +9,10 @@
scope '/i', format: true, constraints: { format: 'json' } do
resources :feeds, only: [:index, :create, :show, :destroy] do
- put 'mark_as_read', on: :member
- ... | Use patch as per rails 4
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,6 @@ Rails.application.routes.draw do
get '/.well-known/acme-challenge/:id' => 'pages#letsencrypt'
+ get '/discord' => redirect('https://discord.gg/FYr5g9a')
get "/*action", con... | Add convenience link to redirect to Community Discord server
|
diff --git a/lib/eigenclass.rb b/lib/eigenclass.rb
index abc1234..def5678 100644
--- a/lib/eigenclass.rb
+++ b/lib/eigenclass.rb
@@ -1,6 +1,8 @@ require 'forwardable'
require 'eigenclass/version'
+# Provides access to an object's {eigenclass} and defines
+# some convenient helper methods to interact with it.
module... | Add documentation to the `Eigenclass` module and method
|
diff --git a/lib/guard/less.rb b/lib/guard/less.rb
index abc1234..def5678 100644
--- a/lib/guard/less.rb
+++ b/lib/guard/less.rb
@@ -43,7 +43,7 @@ def run(paths)
last_passed = false
paths.each do |file|
- unless File.basename(file)[0] == "_"
+ unless File.basename(file)[0,1] == "_"
... | Fix partial exclusion for Ruby 1.8
str[Fixnum] in 1.9 returns the `chr` equivalent of the index position,
but 1.8 returned the character code. Using the `[offset, length]` form
should work portably here.
|
diff --git a/lib/hamburglar.rb b/lib/hamburglar.rb
index abc1234..def5678 100644
--- a/lib/hamburglar.rb
+++ b/lib/hamburglar.rb
@@ -5,7 +5,7 @@ autoload :Report, 'hamburglar/report'
autoload :Gateways, 'hamburglar/gateways'
- GATEWAYS = [:max_mind, :fraud_guardian].freeze
+ GATEWAYS = [:max_mind].freeze
... | Make Hamburglar default to MaxMind until FraudGuardian is added |
diff --git a/lib/rocket_job.rb b/lib/rocket_job.rb
index abc1234..def5678 100644
--- a/lib/rocket_job.rb
+++ b/lib/rocket_job.rb
@@ -25,8 +25,9 @@ module Jobs
autoload :PerformanceJob, 'rocket_job/jobs/performance_job'
end
- module Collection
- autoload :Base, 'rocket_job/collection/ba... | Change Collection namespace to Sliced
|
diff --git a/lib/transforms.rb b/lib/transforms.rb
index abc1234..def5678 100644
--- a/lib/transforms.rb
+++ b/lib/transforms.rb
@@ -4,7 +4,7 @@ def to_url
return if self.nil?
- self.downcase.tr("\"'", '').strip.gsub(/\W/, '-').tr(' ', '-').squeeze('-')
+ self.downcase.tr("\"'", '').gsub(/\W/, ' ').strip... | Tweak permalink transformation again so existing tests don't break
git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1014 820eb932-12ee-0310-9ca8-eeb645f39767
|
diff --git a/lib/turbolinks.rb b/lib/turbolinks.rb
index abc1234..def5678 100644
--- a/lib/turbolinks.rb
+++ b/lib/turbolinks.rb
@@ -8,21 +8,27 @@ module Turbolinks
class Engine < ::Rails::Engine
initializer :turbolinks do |config|
- ActionController::Base.class_eval do
- include XHRHeaders, Cookies... | Use AS.on_load in the initializer
without these hooks, `require 'turbolinks'` immediately triggers ActionController, ActionDispatch, and ActionView initializers
|
diff --git a/resources/rubygems/operating_system.rb b/resources/rubygems/operating_system.rb
index abc1234..def5678 100644
--- a/resources/rubygems/operating_system.rb
+++ b/resources/rubygems/operating_system.rb
@@ -1,18 +1,22 @@ # :DK-BEG: missing DevKit/build tool convenience notice
Gem.pre_install do |gem_installe... | Check for installed devkit after upgrade
Closes #151 |
diff --git a/messaging.gemspec b/messaging.gemspec
index abc1234..def5678 100644
--- a/messaging.gemspec
+++ b/messaging.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'evt-messaging'
- s.version = '0.17.0.0'
+ s.version = '0.17.1.0'
s.summary = 'Common primitives for ... | Package version increased from 0.17.0.0 to 0.17.1.0
|
diff --git a/app/controllers/admin/users_controller.rb b/app/controllers/admin/users_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/users_controller.rb
+++ b/app/controllers/admin/users_controller.rb
@@ -2,19 +2,19 @@ cache_sweeper :blog_sweeper
def index
- @users = User.order('login ... | Order users by id instead of login
|
diff --git a/app/controllers/alerts_list_controller.rb b/app/controllers/alerts_list_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/alerts_list_controller.rb
+++ b/app/controllers/alerts_list_controller.rb
@@ -19,6 +19,7 @@ def class_icons
res = {}
[
+ 'ManageIQ::Providers::Kubernete... | Add missing kubernetes icon to alert screens
|
diff --git a/app/controllers/api/motions_controller.rb b/app/controllers/api/motions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/motions_controller.rb
+++ b/app/controllers/api/motions_controller.rb
@@ -3,7 +3,7 @@ @motions = if @@query.empty?
paginate Motion.all.order(change_query_ord... | Fix API Query For Motion To Use Amendment Text
|
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,3 +1,9 @@ class ApplicationController < ActionController::API
include ActionController... | Set global default to make root node false
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -2,4 +2,10 @@ # Prevent CSRF attacks by raising an exception.
# For APIs, you may want ... | Add rescue from record not found clause
This will make the app return 404 when user tries
to act on non-existing id
|
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
@@ -7,7 +7,7 @@
def current_user
return nil if session[:user_id].nil?
- User.find(sessio... | Change current_user to use find_by
|
diff --git a/app/controllers/v1/webhooks_controller.rb b/app/controllers/v1/webhooks_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/v1/webhooks_controller.rb
+++ b/app/controllers/v1/webhooks_controller.rb
@@ -16,12 +16,23 @@ repo = Git.open repo_path
repo.reset_hard 'HEAD'
repo.p... | Add support for a post update script
|
diff --git a/try/13_set_tryouts.rb b/try/13_set_tryouts.rb
index abc1234..def5678 100644
--- a/try/13_set_tryouts.rb
+++ b/try/13_set_tryouts.rb
@@ -0,0 +1,13 @@+require "rye"
+
+## save any raised exceptions
+set = Rye::Set.new("set test", :parallel => true)
+set.add_boxes("localhost", "_")
+set.hostname.last.first.cl... | Add tests for exception saving in parallel Rye::Set results
|
diff --git a/execjs.gemspec b/execjs.gemspec
index abc1234..def5678 100644
--- a/execjs.gemspec
+++ b/execjs.gemspec
@@ -9,7 +9,7 @@ s.summary = "Run JavaScript code from Ruby"
s.description = "ExecJS lets you run JavaScript code from Ruby."
- s.files = Dir["README.md", "LICENSE", "lib/**/*"]
+ s.files = D... | Fix to include license file to gem
This is a fix for 3064d756.
|
diff --git a/control_center.gemspec b/control_center.gemspec
index abc1234..def5678 100644
--- a/control_center.gemspec
+++ b/control_center.gemspec
@@ -13,7 +13,7 @@ s.description = "Control and monitor website."
s.add_development_dependency("compass", "0.10.6")
- s.add_dependency("haml", "~>3.0.24")
+ s.ad... | Update haml version, so it doesn’t include Sass anymore.
|
diff --git a/lib/algoliasearch/utilities.rb b/lib/algoliasearch/utilities.rb
index abc1234..def5678 100644
--- a/lib/algoliasearch/utilities.rb
+++ b/lib/algoliasearch/utilities.rb
@@ -2,7 +2,11 @@ module Utilities
class << self
def get_model_classes
- Rails.application.eager_load! if Rails.applica... | Use Zeitwerk for loading models in Rails 6
In Rails 6, model loading is no longer working. This is because Zeitwerk has
replaced the original code loading. We now use Zeitwerk if it's available.
|
diff --git a/lib/lita/handlers/keepalive.rb b/lib/lita/handlers/keepalive.rb
index abc1234..def5678 100644
--- a/lib/lita/handlers/keepalive.rb
+++ b/lib/lita/handlers/keepalive.rb
@@ -2,6 +2,7 @@ module Handlers
class Keepalive < Handler
config :url, required: true, type: String
+ config :minutes, r... | Make ping time in minutes configurable
|
diff --git a/lib/rock_config/yaml_loader.rb b/lib/rock_config/yaml_loader.rb
index abc1234..def5678 100644
--- a/lib/rock_config/yaml_loader.rb
+++ b/lib/rock_config/yaml_loader.rb
@@ -25,7 +25,7 @@ end
def load_yaml_from(path)
- YAML.load(File.read(path))
+ YAML.load_file(path)
end
end
en... | Use YAML's load_file instead of doing File read and YAML load
|
diff --git a/lib/spontaneous/permissions.rb b/lib/spontaneous/permissions.rb
index abc1234..def5678 100644
--- a/lib/spontaneous/permissions.rb
+++ b/lib/spontaneous/permissions.rb
@@ -45,9 +45,8 @@ protected(:active_user=)
def random_string(length)
- # can't be bothered to work out the real rules... | Correct calculation of number of bytes to generate for a particular length of random string
|
diff --git a/lib/tasks/reset_groups_pg.rake b/lib/tasks/reset_groups_pg.rake
index abc1234..def5678 100644
--- a/lib/tasks/reset_groups_pg.rake
+++ b/lib/tasks/reset_groups_pg.rake
@@ -0,0 +1,5 @@+desc "Reset Group Table, and sets all members' group_id to null"
+task :reset_groups_pg do
+ Member.update_all(group_id: n... | Reset groups task take 1
|
diff --git a/app/models/company_project.rb b/app/models/company_project.rb
index abc1234..def5678 100644
--- a/app/models/company_project.rb
+++ b/app/models/company_project.rb
@@ -1,4 +1,4 @@-class CompanyProjects < ActiveRecord::Base
+class CompanyProject < ActiveRecord::Base
has_paper_trail
belongs_to :proje... | Fix pluralization of CompanyProject model |
diff --git a/app/models/curve_component.rb b/app/models/curve_component.rb
index abc1234..def5678 100644
--- a/app/models/curve_component.rb
+++ b/app/models/curve_component.rb
@@ -1,6 +1,6 @@ module CurveComponent
VALID_CSV_TYPES = ["data:text/csv", "text/csv", "text/plain",
- "application/octet... | Add app/vnd.ms-excel as a valid curve MIME type
Ref #405
|
diff --git a/app/models/frontend_router.rb b/app/models/frontend_router.rb
index abc1234..def5678 100644
--- a/app/models/frontend_router.rb
+++ b/app/models/frontend_router.rb
@@ -28,8 +28,10 @@ [ Variant, :id, ]
when /evidence/, /evidence_items?/
[ EvidenceItem, :id, ]
- when /entrez/
+ when /... | Support gene names in the direct linking
|
diff --git a/app/models/nightlight/page.rb b/app/models/nightlight/page.rb
index abc1234..def5678 100644
--- a/app/models/nightlight/page.rb
+++ b/app/models/nightlight/page.rb
@@ -10,7 +10,11 @@ scope :unassigned, ->{ where assignee_id: nil }
def to_param
- [id, name.gsub("'", "").parameterize].join("-... | Handle to_param case where name is blank
|
diff --git a/app/models/where_you_heard.rb b/app/models/where_you_heard.rb
index abc1234..def5678 100644
--- a/app/models/where_you_heard.rb
+++ b/app/models/where_you_heard.rb
@@ -1,5 +1,9 @@ class WhereYouHeard
OPTIONS = {
+ '19' => 'Media - Pensions Awareness Day',
+ '20' => 'Media - Leaving planning retire... | Add further options for Pension Awareness Week
|
diff --git a/spec/services/invoice_renderer_spec.rb b/spec/services/invoice_renderer_spec.rb
index abc1234..def5678 100644
--- a/spec/services/invoice_renderer_spec.rb
+++ b/spec/services/invoice_renderer_spec.rb
@@ -3,13 +3,18 @@ describe InvoiceRenderer do
let(:service) { described_class.new }
- it "creates a P... | Cover alternative invoice template with specs
|
diff --git a/figaro.gemspec b/figaro.gemspec
index abc1234..def5678 100644
--- a/figaro.gemspec
+++ b/figaro.gemspec
@@ -12,6 +12,7 @@
gem.add_dependency "rails", "~> 3.0"
+ gem.add_development_dependency "cucumber", "~> 1.0"
gem.add_development_dependency "rake", ">= 0.8.7"
gem.add_development_dependency ... | Add the cucumber gem dependency
|
diff --git a/fintop.gemspec b/fintop.gemspec
index abc1234..def5678 100644
--- a/fintop.gemspec
+++ b/fintop.gemspec
@@ -8,8 +8,8 @@ s.version = Fintop::VERSION
s.authors = ['Evan Meagher']
s.email = ['evan.meagher@gmail.com']
- s.summary = %q{A top-like utility for monitoring Finagle... | Fix summary/desc wording in gemspec.
|
diff --git a/app/services/search_orders.rb b/app/services/search_orders.rb
index abc1234..def5678 100644
--- a/app/services/search_orders.rb
+++ b/app/services/search_orders.rb
@@ -32,7 +32,7 @@ def paginated_results
@search.result
.page(params[:page])
- .per(params[:per_page] || Spree::Config[:order... | Remove unnecessary Spree::Config fallback value
|
diff --git a/spec/factories/link_change_hash.rb b/spec/factories/link_change_hash.rb
index abc1234..def5678 100644
--- a/spec/factories/link_change_hash.rb
+++ b/spec/factories/link_change_hash.rb
@@ -12,6 +12,7 @@ base_path: "target/base/path/#{n}",
content_id: SecureRandom.uuid }
end
+ link_t... | Add link_type to the link_change factory
|
diff --git a/spec/importers/import_task_spec.rb b/spec/importers/import_task_spec.rb
index abc1234..def5678 100644
--- a/spec/importers/import_task_spec.rb
+++ b/spec/importers/import_task_spec.rb
@@ -2,29 +2,8 @@
RSpec.describe ImportTask do
- let(:minimum_valid_options) {
- {
- 'district' => 'somerville'... | Remove spec coverage of district option that doesn't make sense anymore
+ We removed district as a configurable option a couple of commits ago (we're trusting ENV as our only source of truth on this), so the specs that were testing required district configuration don't make sense anymore
|
diff --git a/spec/integration/sprockets_spec.rb b/spec/integration/sprockets_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/sprockets_spec.rb
+++ b/spec/integration/sprockets_spec.rb
@@ -0,0 +1,23 @@+# Frozen-string-literal: true
+# Copyright: 2012-2015 - MIT License
+# Encoding: utf-8
+
+require "rspec/h... | Add an integration test for sprockets.
|
diff --git a/spec/support/fake_twilio_client.rb b/spec/support/fake_twilio_client.rb
index abc1234..def5678 100644
--- a/spec/support/fake_twilio_client.rb
+++ b/spec/support/fake_twilio_client.rb
@@ -0,0 +1,17 @@+class FakeTwilioClient
+ Message = Struct.new(:from, :to, :body)
+
+ cattr_accessor :messages
+ self.me... | Add stub FakeTwilioClient for testing Twilio
|
diff --git a/app/views/api/v1/users/show.json.jbuilder b/app/views/api/v1/users/show.json.jbuilder
index abc1234..def5678 100644
--- a/app/views/api/v1/users/show.json.jbuilder
+++ b/app/views/api/v1/users/show.json.jbuilder
@@ -22,10 +22,5 @@ json.name pending.user_name
json.url url_for(pending)
end
... | Revert "Add pending invited friendships to user api endpoint"
This reverts commit 0d73bf621919e17be9f1b5f14083681cf6672268.
|
diff --git a/problem_structure.rb b/problem_structure.rb
index abc1234..def5678 100644
--- a/problem_structure.rb
+++ b/problem_structure.rb
@@ -1,4 +1,4 @@-#!/home/jhonnymoreira/.rbenv/shims/ruby
+#!/usr/bin/env ruby
require 'fileutils'
EXTENSIONS = {
| Change the reference for ruby executable |
diff --git a/app/controllers/bus_stops_controller.rb b/app/controllers/bus_stops_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/bus_stops_controller.rb
+++ b/app/controllers/bus_stops_controller.rb
@@ -10,7 +10,7 @@ end
def show
- bus_stop = BusStop.find_using_slug!(params[:id])
+ bus_st... | Fix issues with finding bus stops
|
diff --git a/app/controllers/feedbacks_controller.rb b/app/controllers/feedbacks_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/feedbacks_controller.rb
+++ b/app/controllers/feedbacks_controller.rb
@@ -1,7 +1,10 @@ class FeedbacksController < ApplicationController
def new
+ @user = current_user... | Fix feedback form after adding React
|
diff --git a/puppet-lint-world_writable_files-check.gemspec b/puppet-lint-world_writable_files-check.gemspec
index abc1234..def5678 100644
--- a/puppet-lint-world_writable_files-check.gemspec
+++ b/puppet-lint-world_writable_files-check.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |spec|
spec.name = 'pup... | Allow puppet-lint 2.0 as a dependency and bump check version
|
diff --git a/week-8/ruby_review.rb b/week-8/ruby_review.rb
index abc1234..def5678 100644
--- a/week-8/ruby_review.rb
+++ b/week-8/ruby_review.rb
@@ -0,0 +1,81 @@+# U2.W6: Testing Assert Statements
+
+# I worked on this challenge by myself.
+
+
+# 1. Review the simple assert statement
+
+def assert
+ raise "Assertion f... | Complete and upload 8.6 Ruby Review
|
diff --git a/rb/lib/selenium/webdriver/common/port_prober.rb b/rb/lib/selenium/webdriver/common/port_prober.rb
index abc1234..def5678 100644
--- a/rb/lib/selenium/webdriver/common/port_prober.rb
+++ b/rb/lib/selenium/webdriver/common/port_prober.rb
@@ -5,21 +5,25 @@ port += 1 until free? port
port
... | JariBakken: Make sure Ruby's PortProber.above checks all network interfaces.
git-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@16769 07704840-8298-11de-bf8c-fd130f914ac9
|
diff --git a/AssistantKit.podspec b/AssistantKit.podspec
index abc1234..def5678 100644
--- a/AssistantKit.podspec
+++ b/AssistantKit.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = 'AssistantKit'
- s.version = '0.3'
+ s.version = '0.4'
s.summary = 'Easy way to detect... | Update podspec to version 0.4
|
diff --git a/convert_waze_data.rb b/convert_waze_data.rb
index abc1234..def5678 100644
--- a/convert_waze_data.rb
+++ b/convert_waze_data.rb
@@ -1,15 +1,27 @@+#!/usr/bin/env ruby
+# encoding: utf-8
+
require 'json'
require 'hashie'
-mercator = IO.read("waze/1396867493_mercator.txt")
+mercator_file = ARGV[0]
+wgs84_... | Use input arguments for the conversion rather than hardcoded file names
|
diff --git a/recipes/sequelpro.rb b/recipes/sequelpro.rb
index abc1234..def5678 100644
--- a/recipes/sequelpro.rb
+++ b/recipes/sequelpro.rb
@@ -1,5 +1,6 @@ dmg_package "Sequel Pro" do
- volumes_dir "Sequel Pro 0.9.9.1"
- source "http://sequel-pro.googlecode.com/files/Sequel_Pro_0.9.9.1.dmg"
+ volumes_dir "Sequel Pr... | Update Sequel Pro to 1.0 RC
|
diff --git a/Casks/diskmaker-x.rb b/Casks/diskmaker-x.rb
index abc1234..def5678 100644
--- a/Casks/diskmaker-x.rb
+++ b/Casks/diskmaker-x.rb
@@ -1,11 +1,13 @@ cask 'diskmaker-x' do
- version :latest
- sha256 :no_check
+ version '5.0.3'
+ sha256 '040a21bdef0c2682c518a9e9572f7547b5f1fb02b8930a8a084ae85b12e70518'
- ... | Update Diskmaker X to v5.0.3
Turns Diskmaker X back into a versioned cask. The author of Diskmaker reached out to us and has re-uploaded the versioned downloads for us to use. Thanks @diskmakerx!
For more information about this commit please check the discussion related to the versioning of Diskmaker in this pull requ... |
diff --git a/Casks/drop-to-gif.rb b/Casks/drop-to-gif.rb
index abc1234..def5678 100644
--- a/Casks/drop-to-gif.rb
+++ b/Casks/drop-to-gif.rb
@@ -0,0 +1,12 @@+cask :v1 => 'drop-to-gif' do
+ version '1.25'
+ sha256 '2d137b0dccde1087d619af41edb48bf4f1b7f7badcc7cafa8ae3f2770d843824'
+
+ url "https://github.com/mortenjus... | Add Drop to GIF.app version 1.25
Zero-click movie to GIF conversion. Select a folder to watch and every movie saved or moved into that folder will be converted to an animated GIF. https://github.com/mortenjust/droptogif
|
diff --git a/scripts/npm_bundles.rb b/scripts/npm_bundles.rb
index abc1234..def5678 100644
--- a/scripts/npm_bundles.rb
+++ b/scripts/npm_bundles.rb
@@ -7,6 +7,8 @@ "coffee-script" => "coffee",
"grunt-cli" => "grunt",
"dalek-cli" => "dalek",
+ "phantomjs" => "",
+ "capserjs" => "",
"gulp" => "",
"gh" =>... | Add phantomjs and casperjs as node modules
|
diff --git a/Casks/ios-console.rb b/Casks/ios-console.rb
index abc1234..def5678 100644
--- a/Casks/ios-console.rb
+++ b/Casks/ios-console.rb
@@ -0,0 +1,11 @@+cask :v1 => 'ios-console' do
+ version :latest
+ sha256 :no_check
+
+ url 'http://downloads.lemonjar.com/iosconsole_latest.zip'
+ name 'iOS Console'
+ homepa... | Add iOS Console (0.9.8) to Cask
I've added this as a :latest version as I can't find a versioned link.
I've also selected the :gratis license as it's free to use, but closed
source.
|
diff --git a/app/controllers/admin/legislation/questions_controller.rb b/app/controllers/admin/legislation/questions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/legislation/questions_controller.rb
+++ b/app/controllers/admin/legislation/questions_controller.rb
@@ -4,6 +4,10 @@
def index
... | Build one option for the questions form when creating a new question
|
diff --git a/app/controllers/atmosphere/api/v1/user_keys_controller.rb b/app/controllers/atmosphere/api/v1/user_keys_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/atmosphere/api/v1/user_keys_controller.rb
+++ b/app/controllers/atmosphere/api/v1/user_keys_controller.rb
@@ -10,7 +10,7 @@ respo... | Add user_keys api index order by name
|
diff --git a/files/lib/terrachef.rb b/files/lib/terrachef.rb
index abc1234..def5678 100644
--- a/files/lib/terrachef.rb
+++ b/files/lib/terrachef.rb
@@ -1,5 +1,5 @@-require "terrachef/version"
-
# TODO: figure out how to do this right.
$: << File.dirname(__FILE__)
-require 'terraform'
+
+require "terrachef/version"
+... | Fix loading error due to modifying $: after the load.
|
diff --git a/docs/analytics_scripts/training_completion.rb b/docs/analytics_scripts/training_completion.rb
index abc1234..def5678 100644
--- a/docs/analytics_scripts/training_completion.rb
+++ b/docs/analytics_scripts/training_completion.rb
@@ -0,0 +1,41 @@+require 'csv'
+
+cohort = Cohort.find_by(slug: 'spring_2016')
... | Add script for getting data about training due dates and completion
|
diff --git a/spec/licensing_spec.rb b/spec/licensing_spec.rb
index abc1234..def5678 100644
--- a/spec/licensing_spec.rb
+++ b/spec/licensing_spec.rb
@@ -3,6 +3,7 @@ describe 'DocumentBuilder licensing' do
it 'running docbuilder create temp license' do
skip if ENV['BUILDER_PLATFORM'] == 'WEB'
+ pending('Build... | Add pending for checking license in builder from develop
Since #205
|
diff --git a/spec/controllers/pd_regimes_controller_spec.rb b/spec/controllers/pd_regimes_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/pd_regimes_controller_spec.rb
+++ b/spec/controllers/pd_regimes_controller_spec.rb
@@ -2,4 +2,27 @@
RSpec.describe PdRegimesController, :type => :controller... | Set up spec tests for pd_regimes controller.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.