diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/log.gemspec b/log.gemspec
index abc1234..def5678 100644
--- a/log.gemspec
+++ b/log.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'evt-log'
- s.version = '2.1.1.0'
+ s.version = '2.1.1.1'
s.summary = 'Logging to STD IO with levels, tagging, and coloring'
... | Package version is increased from 2.1.1.0 to 2.1.1.1
|
diff --git a/tool/find.rb b/tool/find.rb
index abc1234..def5678 100644
--- a/tool/find.rb
+++ b/tool/find.rb
@@ -0,0 +1,10 @@+#!/usr/bin/env ruby
+Dir.chdir('../rubyspec') do
+ regexp = Regexp.new(ARGV[0])
+ Dir.glob('**/*.rb') do |file|
+ contents = File.read(file)
+ if regexp =~ contents
+ puts file
+ ... | Add a small script to search for multi-line regexp patterns
|
diff --git a/lib/rulers.rb b/lib/rulers.rb
index abc1234..def5678 100644
--- a/lib/rulers.rb
+++ b/lib/rulers.rb
@@ -9,10 +9,15 @@ return [404, {'Content-Type' => 'text/html'}, []]
end
- klass, action = get_controller_and_action(env)
- controller = klass.new(env)
- text = controller.send... | Add exception rescue for call
|
diff --git a/lib/rumoji.rb b/lib/rumoji.rb
index abc1234..def5678 100644
--- a/lib/rumoji.rb
+++ b/lib/rumoji.rb
@@ -8,7 +8,15 @@
# Transform emoji into its cheat-sheet code
def encode(str)
- str.gsub(Emoji::ALL_REGEXP) { |match| (emoji = Emoji.find_by_string(match)) && emoji.code || match }
+ str.gsub(Emo... | Implement the ability to pass a block to encode_io and encode
This allows a library user to easily customize the representation of an
emoji (mapping it to a custom image for example)
|
diff --git a/lib/aerosol/connection.rb b/lib/aerosol/connection.rb
index abc1234..def5678 100644
--- a/lib/aerosol/connection.rb
+++ b/lib/aerosol/connection.rb
@@ -6,7 +6,8 @@ include Dockly::Util::Logger::Mixin
logger_prefix '[aerosol connection]'
- dsl_attribute :user, :host, :jump
+ dsl_attribute :user, :h... | Use public_hostname by default unless overridden.
|
diff --git a/lib/chef-notifier/mail.rb b/lib/chef-notifier/mail.rb
index abc1234..def5678 100644
--- a/lib/chef-notifier/mail.rb
+++ b/lib/chef-notifier/mail.rb
@@ -34,7 +34,7 @@ private
def send_mail(message, subject=nil)
- if(@args[:recipients])
+ if(@args.respond_to?(:[]) && @args[:recipients])
... | Check that args are properly initialized before proceeding
|
diff --git a/dolphy.gemspec b/dolphy.gemspec
index abc1234..def5678 100644
--- a/dolphy.gemspec
+++ b/dolphy.gemspec
@@ -3,7 +3,7 @@ require 'dolphy/version'
Gem::Specification.new do |s|
- s.name = "Dolphy"
+ s.name = "dolphy"
s.version = Dolphy::VERSION
s.date = "2014-08-14"
s.s... | Use lowercase for gem name.
|
diff --git a/puppet-lint-no_cron_resources-check.gemspec b/puppet-lint-no_cron_resources-check.gemspec
index abc1234..def5678 100644
--- a/puppet-lint-no_cron_resources-check.gemspec
+++ b/puppet-lint-no_cron_resources-check.gemspec
@@ -21,7 +21,7 @@ spec.add_development_dependency 'rspec', '~> 3.9.0'
spec.add_dev... | Update rubocop requirement from ~> 0.79.0 to ~> 0.80.0
Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](h... |
diff --git a/dd-agent/recipes/default.rb b/dd-agent/recipes/default.rb
index abc1234..def5678 100644
--- a/dd-agent/recipes/default.rb
+++ b/dd-agent/recipes/default.rb
@@ -13,7 +13,7 @@ apt_repository 'datadog' do
keyserver 'keyserver.ubuntu.com'
key 'C7A7DA52'
- uri 'http://apt.datadoghq.com'
+ uri ... | Allow a different apt-repo for dd-agent
|
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 = '3.0.0'
+ VERSION = '3.0.1.pre'
ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || '2.4.2'
end... | Add .pre for next release
|
diff --git a/envryo.gemspec b/envryo.gemspec
index abc1234..def5678 100644
--- a/envryo.gemspec
+++ b/envryo.gemspec
@@ -24,4 +24,5 @@ spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
+ spec.add_development_dependency "pry"
end
| Add pry as development dependency
|
diff --git a/spec/factories/tasks.rb b/spec/factories/tasks.rb
index abc1234..def5678 100644
--- a/spec/factories/tasks.rb
+++ b/spec/factories/tasks.rb
@@ -12,17 +12,19 @@ # use it like this to create a task with an organizer:
# create(:task_with_organizer, organizer: a_user_instance)
#
- factory :t... | Simplify general task factory (can always set an organizer now), and add an urgent_task factory. |
diff --git a/spec/view/index_spec.rb b/spec/view/index_spec.rb
index abc1234..def5678 100644
--- a/spec/view/index_spec.rb
+++ b/spec/view/index_spec.rb
@@ -6,15 +6,14 @@ before(:each) do
view.stub(:user_signed_in).and_return(false)
view.stub(:current_user).and_return(nil)
+ render
end
... | Unify calls to "render" in spec tests.
|
diff --git a/app/models/jobs/base.rb b/app/models/jobs/base.rb
index abc1234..def5678 100644
--- a/app/models/jobs/base.rb
+++ b/app/models/jobs/base.rb
@@ -5,6 +5,6 @@ module Jobs
class Base
Dir["#{Rails.root}/app/models/jobs/mail/*.rb"].each {|file| require file }
- #extend ResqueJobLogging
+ extend Res... | Revert "trying removing extending of empty module"
This reverts commit aaafeb27e49d45015a8bdc01ce55d36ed0318964.
|
diff --git a/lib/mina/unicorn/tasks.rb b/lib/mina/unicorn/tasks.rb
index abc1234..def5678 100644
--- a/lib/mina/unicorn/tasks.rb
+++ b/lib/mina/unicorn/tasks.rb
@@ -5,8 +5,7 @@ namespace :unicorn do
include Mina::Unicorn::Utility
- # Following recommendations from http://unicorn.bogomips.org/unicorn_1.html#rack-e... | Change unicorn_env to pass any rails_env or rack_env values
Why:
Unicorn -E flag overwrites RACK_ENV variable, making it impossible to
set RACK_ENV without modifying unicorn_env config.
|
diff --git a/spec/factories/users.rb b/spec/factories/users.rb
index abc1234..def5678 100644
--- a/spec/factories/users.rb
+++ b/spec/factories/users.rb
@@ -1,6 +1,7 @@ FactoryGirl.define do
factory :user do
email { Faker::Internet.email }
+ username {Faker::Internet.user_name}
password "password"
... | Improve user factory to create usernames too
|
diff --git a/spec/factories/users.rb b/spec/factories/users.rb
index abc1234..def5678 100644
--- a/spec/factories/users.rb
+++ b/spec/factories/users.rb
@@ -2,7 +2,7 @@
FactoryGirl.define do
factory :user do
- username { Faker::Internet.user_name }
+ sequence(:username) { |n| "user_#{n}" }
first_name { ... | Stabilize tests - generate unique usernames
Some tests are failing because Faker::Internet.user_name
doesn't have enough entropy in order to generate only unique
usernames for within a full test runs which leads to failing
tests since a user object cannot be created.
|
diff --git a/spec/models/qua_spec.rb b/spec/models/qua_spec.rb
index abc1234..def5678 100644
--- a/spec/models/qua_spec.rb
+++ b/spec/models/qua_spec.rb
@@ -5,7 +5,7 @@ before do
FactoryGirl.create(:qua1)
end
- context "Qua.center" do
+ context "Qua#center" do
before do
@q = Qua.center
end
| Modify test code for qua spec
|
diff --git a/lib/nyny/request_scope.rb b/lib/nyny/request_scope.rb
index abc1234..def5678 100644
--- a/lib/nyny/request_scope.rb
+++ b/lib/nyny/request_scope.rb
@@ -36,9 +36,10 @@ @halt_response = Response.new body, status, @headers.merge(headers)
end
- def redirect_to path
- @redirect = path
+ ... | Allow to set status in redirect, add alias for sinatra interop
|
diff --git a/lib/raml_models/method.rb b/lib/raml_models/method.rb
index abc1234..def5678 100644
--- a/lib/raml_models/method.rb
+++ b/lib/raml_models/method.rb
@@ -12,7 +12,7 @@ end
def request_body
- Rambo::RamlModels::Body.new(schema.bodies.first)
+ Rambo::RamlModels::Body.new(schema.bod... | Add conditional to prevent NoMethodError
|
diff --git a/lib/rrj/rabbit/connect.rb b/lib/rrj/rabbit/connect.rb
index abc1234..def5678 100644
--- a/lib/rrj/rabbit/connect.rb
+++ b/lib/rrj/rabbit/connect.rb
@@ -56,7 +56,8 @@ def bunny_conf_static
{
connection_timeout: 5,
- connection_name: "[#{rand(999)}] backend"
+ conn... | Disable option auto recover from close
|
diff --git a/lib/voight_kampff/test.rb b/lib/voight_kampff/test.rb
index abc1234..def5678 100644
--- a/lib/voight_kampff/test.rb
+++ b/lib/voight_kampff/test.rb
@@ -12,7 +12,7 @@ load_crawlers
@agent ||= @@crawlers.find do |crawler|
- user_agent_string =~ Regexp.new(crawler['pattern'], Regexp::IGN... | Fix bug where are user agents were seen as humans
Not sure why this is affecting some people and not others but apparently
user_agent_string is nil for some of them. Using self.user_agent_string
fixes the issue.
|
diff --git a/gemrat.gemspec b/gemrat.gemspec
index abc1234..def5678 100644
--- a/gemrat.gemspec
+++ b/gemrat.gemspec
@@ -20,7 +20,7 @@
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
- spec.add_development_dependency "rspec", "2.13.0"
- spec.add_development_dependency... | Change dev to runtime dependencies
|
diff --git a/config/unicorn.rb b/config/unicorn.rb
index abc1234..def5678 100644
--- a/config/unicorn.rb
+++ b/config/unicorn.rb
@@ -17,5 +17,5 @@ puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT'
end
- Sequel::Model.db = Sequel.connect(Evercam::Config[:database])
-end+ ... | Set database max connections to 20
|
diff --git a/liquid-autoescape.gemspec b/liquid-autoescape.gemspec
index abc1234..def5678 100644
--- a/liquid-autoescape.gemspec
+++ b/liquid-autoescape.gemspec
@@ -21,8 +21,8 @@ s.add_dependency "liquid", ">= 2.0", "< 4.0"
s.add_development_dependency "appraisal", "~> 2.0"
- s.add_development_dependency "rake"... | Use more precise version restrictions on dev dependencies |
diff --git a/spec/unit/puppet/provider/ip6tables_spec.rb b/spec/unit/puppet/provider/ip6tables_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/puppet/provider/ip6tables_spec.rb
+++ b/spec/unit/puppet/provider/ip6tables_spec.rb
@@ -0,0 +1,61 @@+#!/usr/bin/env rspec
+
+require 'spec_helper'
+if Puppet.version < '3.... | Add unit test for ip6tables provider against version 1.3.10
|
diff --git a/unidata.gemspec b/unidata.gemspec
index abc1234..def5678 100644
--- a/unidata.gemspec
+++ b/unidata.gemspec
@@ -20,4 +20,5 @@ gem.add_development_dependency 'rspec', '~> 2.10'
gem.add_development_dependency 'simplecov', '~> 0.7'
gem.add_development_dependency 'coveralls', '~> 0.6'
+ gem.add_de... | Fix for travis ci build failing in 1.8 mode
|
diff --git a/railties/test/application/rackup_test.rb b/railties/test/application/rackup_test.rb
index abc1234..def5678 100644
--- a/railties/test/application/rackup_test.rb
+++ b/railties/test/application/rackup_test.rb
@@ -35,7 +35,7 @@ # keep it working for now
test "deprecated ActionController::Dispatcher ... | Fix typo on rackup test (ht: pleax) |
diff --git a/app/controllers/node_types_controller.rb b/app/controllers/node_types_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/node_types_controller.rb
+++ b/app/controllers/node_types_controller.rb
@@ -1,15 +1,16 @@ class NodeTypesController < ApplicationController
def index
if params[:id... | Make node_types accessible as instance variables & add format.html for view
|
diff --git a/app/controllers/workspaces_controller.rb b/app/controllers/workspaces_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/workspaces_controller.rb
+++ b/app/controllers/workspaces_controller.rb
@@ -1,11 +1,36 @@ class WorkspacesController < ActionController::Base
+
+ before_filter :initializ... | Save to workspace: Add/remove items from session when boxes are checked or unchecked
Debug: log session contents on every workspace request
|
diff --git a/app/models/competitions/tabor_overall.rb b/app/models/competitions/tabor_overall.rb
index abc1234..def5678 100644
--- a/app/models/competitions/tabor_overall.rb
+++ b/app/models/competitions/tabor_overall.rb
@@ -11,7 +11,7 @@ "Category 4 Men",
"Category 4 Women",
"Category 5 Men",... | Update Tabor competition for 2015
|
diff --git a/app/serializers/assessment_serializer.rb b/app/serializers/assessment_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/assessment_serializer.rb
+++ b/app/serializers/assessment_serializer.rb
@@ -1,6 +1,6 @@ class AssessmentSerializer < ActiveModel::Serializer
embed :ids, include: true
-... | Add updated_at field to serializer.
|
diff --git a/app/serializers/discussion_serializer.rb b/app/serializers/discussion_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/discussion_serializer.rb
+++ b/app/serializers/discussion_serializer.rb
@@ -13,6 +13,6 @@ end
def description_html
- product_markdown(product, object.comments.fi... | Fix 500 errors with some discussions
|
diff --git a/spec/bundler/vendored_persistent_spec.rb b/spec/bundler/vendored_persistent_spec.rb
index abc1234..def5678 100644
--- a/spec/bundler/vendored_persistent_spec.rb
+++ b/spec/bundler/vendored_persistent_spec.rb
@@ -0,0 +1,68 @@+# frozen_string_literal: true
+require "spec_helper"
+require "bundler/vendored_pe... | Add specs for warning for old TLS versions
|
diff --git a/bin/install_git_submodules.rb b/bin/install_git_submodules.rb
index abc1234..def5678 100644
--- a/bin/install_git_submodules.rb
+++ b/bin/install_git_submodules.rb
@@ -11,10 +11,11 @@
puts "-----> Installing submodule #{c["path"]} #{c["branch"]}"
branch_flag = c["branch"] ? "-b #{c['branch']}" : ""
... | Update chdir to correct build path.
|
diff --git a/worker/config/pre-daemonize/container.rb b/worker/config/pre-daemonize/container.rb
index abc1234..def5678 100644
--- a/worker/config/pre-daemonize/container.rb
+++ b/worker/config/pre-daemonize/container.rb
@@ -50,5 +50,9 @@ let(:from_address) do
"dev@smartlogic.io"
end
+
+ let(:notific... | Add notification service to AppContainer
|
diff --git a/LeetCode/remove_duplicates_sorted_list.rb b/LeetCode/remove_duplicates_sorted_list.rb
index abc1234..def5678 100644
--- a/LeetCode/remove_duplicates_sorted_list.rb
+++ b/LeetCode/remove_duplicates_sorted_list.rb
@@ -0,0 +1,53 @@+# Given a sorted linked list, delete all duplicates such that each element ap... | Remove duplicates from sorted list
|
diff --git a/Rakefile.rb b/Rakefile.rb
index abc1234..def5678 100644
--- a/Rakefile.rb
+++ b/Rakefile.rb
@@ -2,4 +2,10 @@ desc "Minify files"
task :minify do
system "java -jar _build/htmlcompressor.jar -r --type html --compress-js -o _site _site"
-end # task :minify+end # task :minify
+
+# Usage: rake drafts
+desc ... | Add rake task for building Jekyll _drafts posts
|
diff --git a/api/app/views/spree/api/orders/show.v1.rabl b/api/app/views/spree/api/orders/show.v1.rabl
index abc1234..def5678 100644
--- a/api/app/views/spree/api/orders/show.v1.rabl
+++ b/api/app/views/spree/api/orders/show.v1.rabl
@@ -18,7 +18,7 @@ end
child :payments => :payments do
- attributes :id, :amount, :s... | [api] Return *all* the payment attributes in the order payload
|
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
@@ -6,7 +6,7 @@ before_filter :configure_permitted_parameters, if: :devise_controller?
... | Allow gift code to be passed through when signing up
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -3,6 +3,6 @@
protect_from_forgery
- before_filter :authenticate_user!
+ prepend_befo... | Make sure user authentication is executed first
|
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
@@ -5,7 +5,7 @@
protect_from_forgery
- include AuthHelper
+ include AMEE::Authentic... | Use explicit scope for auth helper. AC-159
|
diff --git a/app/controllers/github_hook_controller.rb b/app/controllers/github_hook_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/github_hook_controller.rb
+++ b/app/controllers/github_hook_controller.rb
@@ -1,7 +1,7 @@ require "json"
class GithubHookController < ApplicationController
- skip_be... | Fix for Redmine version => 4.0.3
Rename `skip_before_filter` to `skip_before_action` because `skip_before_filter` was deprecated in Ruby on Rails 5
|
diff --git a/app/controllers/host_status_controller.rb b/app/controllers/host_status_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/host_status_controller.rb
+++ b/app/controllers/host_status_controller.rb
@@ -35,13 +35,17 @@ end
def state
- normal.map { |x|
- x.slice("host_nam... | Fix data format for state and normal -> Hash
|
diff --git a/app/controllers/newsletters_controller.rb b/app/controllers/newsletters_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/newsletters_controller.rb
+++ b/app/controllers/newsletters_controller.rb
@@ -14,6 +14,12 @@
if @newsletter.save
redirect_to '/newsletter'
+ else
+ ... | Set up error message for invalid newsletters
|
diff --git a/app/models/default_signature_threshold.rb b/app/models/default_signature_threshold.rb
index abc1234..def5678 100644
--- a/app/models/default_signature_threshold.rb
+++ b/app/models/default_signature_threshold.rb
@@ -1,7 +1,7 @@ class DefaultSignatureThreshold
- DEFAULT_VALUES = { unspecified_person: 15,
+... | Return unspecified signature to 100
Related to opengovernment/product#113
|
diff --git a/lib/action-gmailer.rb b/lib/action-gmailer.rb
index abc1234..def5678 100644
--- a/lib/action-gmailer.rb
+++ b/lib/action-gmailer.rb
@@ -0,0 +1,45 @@+require "action_mailer"
+require "active_support"
+
+module ActionGmailer
+
+ class DeliveryError < StandardError
+ end
+
+ class DeliveryMethod
+
+ att... | Add delivery plug stub for ActionMailer
|
diff --git a/app/models/application_record.rb b/app/models/application_record.rb
index abc1234..def5678 100644
--- a/app/models/application_record.rb
+++ b/app/models/application_record.rb
@@ -11,6 +11,12 @@ # activate this line:
# "updated_at",
"current_... | Fix auto_sync bug with generic points
|
diff --git a/app/models/application_record.rb b/app/models/application_record.rb
index abc1234..def5678 100644
--- a/app/models/application_record.rb
+++ b/app/models/application_record.rb
@@ -4,7 +4,7 @@ def audited_user_id
user = ::Audited.store[:audited_user] # from as_user
user ||= ::Audited.store[:curr... | Use Rails.env.test? rather than Rails.env == 'test'
|
diff --git a/query/spec/appointments/model_spec.rb b/query/spec/appointments/model_spec.rb
index abc1234..def5678 100644
--- a/query/spec/appointments/model_spec.rb
+++ b/query/spec/appointments/model_spec.rb
@@ -2,12 +2,57 @@
describe CQalendaRS::Query::Appointments::Model do
+ let(:appointment1) { { start_time: ... | Add more tests for the appointments Model.all method
|
diff --git a/week-4/basic-math.rb b/week-4/basic-math.rb
index abc1234..def5678 100644
--- a/week-4/basic-math.rb
+++ b/week-4/basic-math.rb
@@ -0,0 +1,87 @@+# Solution Below
+
+
+
+
+
+
+# RSpec Tests. They are included in this file because the local variables you are creating are not accessible across files. If we tr... | Add file for basic math
|
diff --git a/app/views/tags/show.atom.builder b/app/views/tags/show.atom.builder
index abc1234..def5678 100644
--- a/app/views/tags/show.atom.builder
+++ b/app/views/tags/show.atom.builder
@@ -1,4 +1,4 @@-atom_feed do |feed|
+atom_feed(:root_url => polymorphic_url(@tag)) do |feed|
feed.title("Latest activity for #{@... | Set a more natural root url and always include author for the feed entries.
|
diff --git a/worker/config/environments/production.rb b/worker/config/environments/production.rb
index abc1234..def5678 100644
--- a/worker/config/environments/production.rb
+++ b/worker/config/environments/production.rb
@@ -3,3 +3,6 @@
# Change the production log level to debug
#config.log_level = :debug
+
+require... | Set syslog logger for daemon kit workers
|
diff --git a/rakefile.rb b/rakefile.rb
index abc1234..def5678 100644
--- a/rakefile.rb
+++ b/rakefile.rb
@@ -25,7 +25,7 @@ desc 'Uninstalls the gem'
task :uninstall do
puts "Uninstalling gem #{NAME}"
- puts %x[gem uninstall #{NAME}]
+ puts %x[gem uninstall #{NAME} --all]
end
desc 'Installs the ge... | Uninstall all versions to avoid an interactive question, especially on automated build machines.
|
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
@@ -1,3 +1,4 @@+require 'fileutils'
require 'vim-flavor'
class FakeUserEnvironment
@@ -5,6 +6,10 @@ File.open(expand(virtual_path), 'w') do |f|
f.write(... | Add a helper method - delete_path
|
diff --git a/test/controllers/updates_controller_test.rb b/test/controllers/updates_controller_test.rb
index abc1234..def5678 100644
--- a/test/controllers/updates_controller_test.rb
+++ b/test/controllers/updates_controller_test.rb
@@ -2,19 +2,19 @@
class UpdatesControllerTest < ActionController::TestCase
test 'r... | Update controller test, does it work in Rails 3?
|
diff --git a/hive-runner-android.gemspec b/hive-runner-android.gemspec
index abc1234..def5678 100644
--- a/hive-runner-android.gemspec
+++ b/hive-runner-android.gemspec
@@ -1,7 +1,7 @@ Gem::Specification.new do |s|
s.name = 'hive-runner-android'
s.version = '1.1.3'
- s.date = '2015-02-26'
+ s.da... | Set date to always be today
|
diff --git a/lib/klarna_gateway.rb b/lib/klarna_gateway.rb
index abc1234..def5678 100644
--- a/lib/klarna_gateway.rb
+++ b/lib/klarna_gateway.rb
@@ -3,15 +3,27 @@ require "klarna_gateway/version"
require "active_merchant/billing/gateways/klarna_gateway"
require "klarna_gateway/engine"
+require "byebug"
module Klar... | Save token for 60 minutes
|
diff --git a/app/serializers/slack/ephemeral/poll_closed_serializer.rb b/app/serializers/slack/ephemeral/poll_closed_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/slack/ephemeral/poll_closed_serializer.rb
+++ b/app/serializers/slack/ephemeral/poll_closed_serializer.rb
@@ -2,6 +2,6 @@ include Slack... | Fix ephemeral poll closed serializer
|
diff --git a/app/controllers/renalware/hd/dashboards_controller.rb b/app/controllers/renalware/hd/dashboards_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/renalware/hd/dashboards_controller.rb
+++ b/app/controllers/renalware/hd/dashboards_controller.rb
@@ -10,7 +10,7 @@ preference_set = Pref... | Remove N+1 query in HD Dashboard
|
diff --git a/app/boot.rb b/app/boot.rb
index abc1234..def5678 100644
--- a/app/boot.rb
+++ b/app/boot.rb
@@ -19,4 +19,4 @@
# Heroku's ruby buildpack freezes the Gemfile to prevent accidental damage
# However, we actually *want* to manipulate Gemfiles for other repos.
-Bundler.settings[:frozen] = "0"
+Bundler.setting... | Fix the specs by manipulating Bundler's settings differently
In `app/boot.rb`, we try to set Bundler's settings to "unfreeze"
the bundle for the purposes of our tests. This has been broken
for a little while due to a changed API in Bundler since v1.16.0,
resulting in
[errors when running the tests][circle-gocardless-b... |
diff --git a/abfab.gemspec b/abfab.gemspec
index abc1234..def5678 100644
--- a/abfab.gemspec
+++ b/abfab.gemspec
@@ -6,7 +6,7 @@ gem.email = ['christopher.m.hanks@gmail.com']
gem.description = %q{A/B testing with Redis.}
gem.summary = %q{Fabulous A/B testing with persistence to Redis.}
- gem.ho... | Set github repository as gem homepage.
|
diff --git a/Casks/apimac-timer.rb b/Casks/apimac-timer.rb
index abc1234..def5678 100644
--- a/Casks/apimac-timer.rb
+++ b/Casks/apimac-timer.rb
@@ -0,0 +1,14 @@+class ApimacTimer < Cask
+ version :latest
+ sha256 :no_check
+
+ url 'http://www.apimac.com/download/timer.dmg'
+ homepage 'http://www.apimac.com/mac/tim... | Add Apimac Timer.app, last 7.0.0 version
|
diff --git a/money.gemspec b/money.gemspec
index abc1234..def5678 100644
--- a/money.gemspec
+++ b/money.gemspec
@@ -7,7 +7,7 @@ s.description = "Money and currency exchange support library."
s.has_rdoc = true
s.rubyforge_project = "money"
- s.authors = ["Tobias Luetke", "Hongli Lai", "Jeremy McNevin"]
+ s.au... | Add myself (Shane Emmons) to authors
|
diff --git a/month.gemspec b/month.gemspec
index abc1234..def5678 100644
--- a/month.gemspec
+++ b/month.gemspec
@@ -8,9 +8,9 @@ gem.version = Month::VERSION
gem.authors = ["Matt Royal"]
gem.email = ["mroyal@gmail.com"]
- gem.description = %q{TODO: Write a gem description}
- gem.summary ... | Add basic info to gemspec
|
diff --git a/core/range/size_spec.rb b/core/range/size_spec.rb
index abc1234..def5678 100644
--- a/core/range/size_spec.rb
+++ b/core/range/size_spec.rb
@@ -11,10 +11,6 @@ (1.0..15.9).size.should == 15
(1.1..16.0).size.should == 15
(1.1..15.9).size.should == 15
-
- (0..Float::INFINITY).size.sho... | Move infinite range expectations to their own example
|
diff --git a/steam-condenser.gemspec b/steam-condenser.gemspec
index abc1234..def5678 100644
--- a/steam-condenser.gemspec
+++ b/steam-condenser.gemspec
@@ -17,7 +17,7 @@
s.add_development_dependency 'mocha', '~> 0.13.0'
s.add_development_dependency 'rake', '~> 10.0.1'
- s.add_development_dependency 'shoulda-co... | Update shoulda-context dependency to 1.1.1
|
diff --git a/support/publish-gems.rb b/support/publish-gems.rb
index abc1234..def5678 100644
--- a/support/publish-gems.rb
+++ b/support/publish-gems.rb
@@ -11,17 +11,20 @@ end
gem_order = %w{
+ torquebox-core
torquebox-vfs
- torquebox-base
torquebox-capistrano-support
torquebox-rake-support
- ... | Adjust the gem-publisher for 2.x gems
|
diff --git a/jquery_mobile_rails.gemspec b/jquery_mobile_rails.gemspec
index abc1234..def5678 100644
--- a/jquery_mobile_rails.gemspec
+++ b/jquery_mobile_rails.gemspec
@@ -16,7 +16,7 @@ s.files = Dir["{app,config,db,lib,vendor}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
s.test_files = Dir["test/**/*"]
... | Replace 'rails' with 'railties', to not require extra gems when not needed.
|
diff --git a/app/importers/data_transformers/json_transformer.rb b/app/importers/data_transformers/json_transformer.rb
index abc1234..def5678 100644
--- a/app/importers/data_transformers/json_transformer.rb
+++ b/app/importers/data_transformers/json_transformer.rb
@@ -8,26 +8,31 @@ end
end
+ def date_rows
+ ... | Add assessment_dateto json date fields for parsing
|
diff --git a/app/models/services/doc_collections/upload_files.rb b/app/models/services/doc_collections/upload_files.rb
index abc1234..def5678 100644
--- a/app/models/services/doc_collections/upload_files.rb
+++ b/app/models/services/doc_collections/upload_files.rb
@@ -12,19 +12,18 @@
# Check which files are a... | Fix uploading doc collection files
|
diff --git a/app/presenters/tree_builder_report_saved_reports.rb b/app/presenters/tree_builder_report_saved_reports.rb
index abc1234..def5678 100644
--- a/app/presenters/tree_builder_report_saved_reports.rb
+++ b/app/presenters/tree_builder_report_saved_reports.rb
@@ -20,7 +20,7 @@ def x_get_tree_roots(count_only, _o... | Change condition for report tree
|
diff --git a/bud.gemspec b/bud.gemspec
index abc1234..def5678 100644
--- a/bud.gemspec
+++ b/bud.gemspec
@@ -22,4 +22,5 @@ s.add_dependency 'backports'
s.add_dependency 'tokyocabinet'
s.add_dependency 'syntax'
+ s.add_dependency 'zookeeper'
end
| Add dependency on "zookeeper" gem.
|
diff --git a/core/file/owned_spec.rb b/core/file/owned_spec.rb
index abc1234..def5678 100644
--- a/core/file/owned_spec.rb
+++ b/core/file/owned_spec.rb
@@ -6,5 +6,28 @@ end
describe "File.owned?" do
- it "needs to be reviewed for spec completeness"
+ before(:each) do
+ @filename = tmp("i_exist")
+ touch(@fi... | Add spec for File.owned? and fix a bug
Add spec for File.owned?, plus fix an error inside of rubinius
implementation: when a file was missing an exception was raised
instead of returning false.
Delete a duplicated definition of File.owned? inside of¬
kernel/common/file.rb
|
diff --git a/test/config_spec.rb b/test/config_spec.rb
index abc1234..def5678 100644
--- a/test/config_spec.rb
+++ b/test/config_spec.rb
@@ -14,6 +14,13 @@ describe "#admin_password" do
it "is the admin password defined in the config file" do
subject.admin_password.should == "test-changethispassword"
+ ... | Add a test covering the default value of image_upload_path.
|
diff --git a/ced.gemspec b/ced.gemspec
index abc1234..def5678 100644
--- a/ced.gemspec
+++ b/ced.gemspec
@@ -11,7 +11,7 @@ gem.description = %q{Ruby interface for CED's email verification service.}
gem.summary = %q{The Central Email Database is an email verification service. You pass it an email address an... | Fix license typo in gemspec |
diff --git a/test/paid/alias_test.rb b/test/paid/alias_test.rb
index abc1234..def5678 100644
--- a/test/paid/alias_test.rb
+++ b/test/paid/alias_test.rb
@@ -2,18 +2,9 @@
module Paid
class AliasTest < Test::Unit::TestCase
- should "aliases should be listable" do
- @mock.expects(:get).once.returns(test_respo... | Remove old tests for listable aliases.
|
diff --git a/lib/action_flow/workflow.rb b/lib/action_flow/workflow.rb
index abc1234..def5678 100644
--- a/lib/action_flow/workflow.rb
+++ b/lib/action_flow/workflow.rb
@@ -11,6 +11,7 @@ @steps << new_step
else
step = "#{new_step}_step".classify.constantize
+ step.module_eval { define_met... | Allow add_step to take a block again
execute checks to see if the controller responds to max_step_reached= before just calling it
git-svn-id: bbecf9db08a75a77aa31d13d235dbc25c5353c8b@21 82013aef-fb27-0410-99a1-c1893322ecab
|
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
@@ -10,7 +10,6 @@ rescue_from Exception, :with => :render_error
rescue_from ActionCont... | Remove error catching for UnknownError
|
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,7 +2,6 @@ # Prevent CSRF attacks by raising an exception.
# For APIs, you may want t... | Remove headers cache only on logout
|
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
@@ -4,7 +4,7 @@ protect_from_forgery with: :exception
# TODO : Remove this basic HTTP au... | Remove basic http auth on prod
|
diff --git a/app/documents/renalware/blood_pressure.rb b/app/documents/renalware/blood_pressure.rb
index abc1234..def5678 100644
--- a/app/documents/renalware/blood_pressure.rb
+++ b/app/documents/renalware/blood_pressure.rb
@@ -18,5 +18,21 @@ def blank?
systolic.blank? && diastolic.blank?
end
+
+ # ... | Add comparison operator to BloodPressure
|
diff --git a/app/models/visualization/table_blender.rb b/app/models/visualization/table_blender.rb
index abc1234..def5678 100644
--- a/app/models/visualization/table_blender.rb
+++ b/app/models/visualization/table_blender.rb
@@ -1,4 +1,6 @@ # encoding: utf-8
+
+require_dependency 'map/copier'
module CartoDB
modul... | Add map copier dependency
Before it was taken implicitly from the controllers
|
diff --git a/lib/extensions/require_nested.rb b/lib/extensions/require_nested.rb
index abc1234..def5678 100644
--- a/lib/extensions/require_nested.rb
+++ b/lib/extensions/require_nested.rb
@@ -11,6 +11,27 @@ require_dependency filename
end
+ # If the nested constant has a top-level constant with the sam... | Add comment to clarify intent
|
diff --git a/Casks/xoctave.rb b/Casks/xoctave.rb
index abc1234..def5678 100644
--- a/Casks/xoctave.rb
+++ b/Casks/xoctave.rb
@@ -0,0 +1,15 @@+cask :v1 => 'xoctave' do
+ version :latest
+ sha256 :no_check
+
+ url 'http://www.xoctave.com/demo/xoctave%20demo.dmg'
+ name 'Xoctave'
+ homepage 'http://www.xoctave.com/'
... | Add Xoctave, a commercial IDE for GNU Octave
|
diff --git a/sudokuru.rb b/sudokuru.rb
index abc1234..def5678 100644
--- a/sudokuru.rb
+++ b/sudokuru.rb
@@ -5,18 +5,18 @@ puts "Let's solve some Sudoku!"
if ARGV[0] != nil
- @input_file = ARGV[0]
+ input_file = ARGV[0]
else
puts "No file specified. Searching for default input file."
- @input_file = "./puzzles/in... | Downgrade instance variable to local
Learn your place, local variable!
|
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
@@ -8,4 +8,10 @@ def set_analytics_headers
set_slimmer_headers(format: "smart_answer")
... | Add set_expiry method to ApplicationController
As we'll need to consistently (and easily) set cache control headers,
add a protected method to ApplicationController.
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -12,9 +12,8 @@ @graph = Koala::Facebook::API.new(session[:fb_access_token])
@graph.... | Fix facebook error handling from ApplicationController
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -3,5 +3,8 @@ # For APIs, you may want to use :null_session instead.
protect_from_forger... | Add default protocol for urls
|
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,15 +1,5 @@-# Filters added to this controller apply to all controllers in the application... | Remove app controller comment cruft.
|
diff --git a/app/controllers/webmentions_controller.rb b/app/controllers/webmentions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/webmentions_controller.rb
+++ b/app/controllers/webmentions_controller.rb
@@ -4,7 +4,7 @@ protect_from_forgery except: [:create]
def index
- webmentions if log... | Remove logged_in? restriction on grabbing webmentions. Solves a problem where the RSS feed would blow up when visited by an unauthenticated user.
|
diff --git a/app/controllers/wpcc/engine_controller.rb b/app/controllers/wpcc/engine_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/wpcc/engine_controller.rb
+++ b/app/controllers/wpcc/engine_controller.rb
@@ -3,5 +3,24 @@ protect_from_forgery
layout 'wpcc/engine'
+ before_action :log_s... | Add session information to the logs
* This makes easier to investigate problems during development
but also will help us to identify problems on the tests and production
environments.
|
diff --git a/lib/wiscale.rb b/lib/wiscale.rb
index abc1234..def5678 100644
--- a/lib/wiscale.rb
+++ b/lib/wiscale.rb
@@ -1,5 +1,60 @@+require 'rubygems'
+require 'httparty'
+require 'json'
+require 'ostruct'
+
class WiScale
+ def initialize(*params)
+ @publickey = params[0][:publickey] if params.length > 0
+ ... | Add basic api status check and getmeas call
|
diff --git a/app/models/concerns/development/scopes.rb b/app/models/concerns/development/scopes.rb
index abc1234..def5678 100644
--- a/app/models/concerns/development/scopes.rb
+++ b/app/models/concerns/development/scopes.rb
@@ -16,6 +16,13 @@ :redevelopment, :as_of_right, :age_restricted, :hidden
scop... | Add place_id and neighborhood_ids as filters
|
diff --git a/app/models/newsletters/newsletter_user.rb b/app/models/newsletters/newsletter_user.rb
index abc1234..def5678 100644
--- a/app/models/newsletters/newsletter_user.rb
+++ b/app/models/newsletters/newsletter_user.rb
@@ -28,10 +28,12 @@
validates :lang,
presence: true,
+ allow_blank:... | Add allow_blank: false property for lang and role attributes
|
diff --git a/app/workers/import_connection_data_job.rb b/app/workers/import_connection_data_job.rb
index abc1234..def5678 100644
--- a/app/workers/import_connection_data_job.rb
+++ b/app/workers/import_connection_data_job.rb
@@ -24,6 +24,6 @@ end
def date_fields
- %w(creation_date startDate publishedAt pushed... | Add created at field to date field
|
diff --git a/app/helpers/socializer/application_helper.rb b/app/helpers/socializer/application_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/socializer/application_helper.rb
+++ b/app/helpers/socializer/application_helper.rb
@@ -9,7 +9,7 @@ end
def separator
- content_tag(:span, :class => 's... | Use the new Ruby 1.9 hash syntax.
|
diff --git a/app/serializers/api/adjustment_serializer.rb b/app/serializers/api/adjustment_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/api/adjustment_serializer.rb
+++ b/app/serializers/api/adjustment_serializer.rb
@@ -4,6 +4,15 @@ class AdjustmentSerializer < ActiveModel::Serializer
attrib... | Add the tax_category_id for each adjustement
- This tax_category_id could be null
- Special case if the originator is a Spree::TaxRate: then use the tax_category_id of the originator
Co-Authored-By: Matt-Yorkley <52dd53e39aabc3ad9893bf4bdc49ac9095b2e246@users.noreply.github.com>
|
diff --git a/lib/consistency_fail/engine.rb b/lib/consistency_fail/engine.rb
index abc1234..def5678 100644
--- a/lib/consistency_fail/engine.rb
+++ b/lib/consistency_fail/engine.rb
@@ -5,7 +5,9 @@ MODEL_DIRECTORY_REGEXP = /models/
def preload_all_models
- model_dirs = Rails.configuration.load_paths.sele... | Use wider load path searching to accomodate older Rails versions
|
diff --git a/lib/finitio/type/proxy_type.rb b/lib/finitio/type/proxy_type.rb
index abc1234..def5678 100644
--- a/lib/finitio/type/proxy_type.rb
+++ b/lib/finitio/type/proxy_type.rb
@@ -25,7 +25,7 @@ :to_s
].each do |meth|
define_method(meth) do |*args, &bl|
- raise Error, "Proxy not resolved" u... | Improve "Proxy not resolved" error message (add type name).
This commit adds the type name of this frequent error message,
to help debugging what's wrong.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.