diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/xml_spec.gemspec b/xml_spec.gemspec
index abc1234..def5678 100644
--- a/xml_spec.gemspec
+++ b/xml_spec.gemspec
@@ -10,7 +10,7 @@ spec.email = ["jason@lookforwardenterprises.com"]
spec.summary = %q{XML matchers for specs.}
spec.description = %q{XML matchers for specs. See README fo... | Add project homepage to gemspec.
|
diff --git a/lib/streamy/railties/consumer.rake b/lib/streamy/railties/consumer.rake
index abc1234..def5678 100644
--- a/lib/streamy/railties/consumer.rake
+++ b/lib/streamy/railties/consumer.rake
@@ -6,13 +6,11 @@ raise "Missing `rabbitmq_uri` for '#{Rails.env}' environment, set this value in `config/secrets.y... | Call Hutch::CLI instead of spawning a process
|
diff --git a/app/controllers/brexit_landing_page_controller.rb b/app/controllers/brexit_landing_page_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/brexit_landing_page_controller.rb
+++ b/app/controllers/brexit_landing_page_controller.rb
@@ -11,21 +11,19 @@ private
def taxon
- @taxon ||= Taxo... | Remove memoizations and instance variables.
These are not used and can therefore be removed
|
diff --git a/emory.gemspec b/emory.gemspec
index abc1234..def5678 100644
--- a/emory.gemspec
+++ b/emory.gemspec
@@ -17,8 +17,8 @@ s.test_files = Dir.glob("{spec,test}/**/*.rb")
s.require_paths = ["lib"]
- s.add_development_dependency 'rspec', '2.14.1'
- s.add_development_dependency 'simplecov', '0.8.2' i... | Revert "Upgrading to most recent version of gems"
This reverts commit 5bd72ceb67398bbae05d616496d14ee0db14dd83.
|
diff --git a/tasks/metrics/mutant.rake b/tasks/metrics/mutant.rake
index abc1234..def5678 100644
--- a/tasks/metrics/mutant.rake
+++ b/tasks/metrics/mutant.rake
@@ -8,7 +8,7 @@ task :mutant => :coverage do
project = Devtools.project
config = project.mutant
- cmd = %[bundle exec mutant -r ./spec/... | Remove unnecessary bundle exec from the command
* If the task is being run under bundler, system calls should work
the same as if they were run with bundle exec.
|
diff --git a/Casks/ninjablocks.rb b/Casks/ninjablocks.rb
index abc1234..def5678 100644
--- a/Casks/ninjablocks.rb
+++ b/Casks/ninjablocks.rb
@@ -0,0 +1,7 @@+class Ninjablocks < Cask
+ url 'https://dl.dropboxusercontent.com/u/428557/NinjaBlocks-0.2.dmg'
+ homepage 'http://forums.ninjablocks.com/index.php?p=/discussion... | Add Cask for Ninja Blocks Client v0.2
|
diff --git a/Casks/pocketcasts.rb b/Casks/pocketcasts.rb
index abc1234..def5678 100644
--- a/Casks/pocketcasts.rb
+++ b/Casks/pocketcasts.rb
@@ -0,0 +1,12 @@+cask :v1 => 'pocketcasts' do
+ version '1.0'
+ sha256 'fe191ceb3a7157bee5a589bed248464587526ddbaeacab122960a4144d1c87da'
+
+ url "https://github.com/mortenjust... | Add Pocket Casts for Mac v1.0
|
diff --git a/Casks/vagrant-bar.rb b/Casks/vagrant-bar.rb
index abc1234..def5678 100644
--- a/Casks/vagrant-bar.rb
+++ b/Casks/vagrant-bar.rb
@@ -1,6 +1,6 @@ cask :v1 => 'vagrant-bar' do
- version '1.14'
- sha256 '6cf9a2bf9fbe41237a7afa2621d9c1e94ad225e59aa3969b8408b9adbd956334'
+ version '1.15'
+ sha256 'dc4f77ad00... | Update Vagrant Bar to 1.15
|
diff --git a/gems.rb b/gems.rb
index abc1234..def5678 100644
--- a/gems.rb
+++ b/gems.rb
@@ -9,8 +9,7 @@ end
group :development do
- gem 'bump', '~> 0.6.0', require: false
- gem 'bundler', '~> 1.8', require: false
+ gem 'bump', '~> 0.6.0', require: false
end
group :ci, :development do
| Remove Bundler as an explicit dependency
It's implicit in the use of a `gems.rb` file, where this is specified,
that Bundler must be used, so I think this callout is a bit unnecessary
and can only cause annoying issues with Travis.
|
diff --git a/test/test_ingress_info.rb b/test/test_ingress_info.rb
index abc1234..def5678 100644
--- a/test/test_ingress_info.rb
+++ b/test/test_ingress_info.rb
@@ -1,7 +1,7 @@ require 'minitest/autorun'
require 'ingress_info'
-class TestIngressInfo < Minitest::Test
+class TestIngressInfo < Minitest::Unit::TestCase
... | Fix class for test case.
|
diff --git a/test/unit/ability_test.rb b/test/unit/ability_test.rb
index abc1234..def5678 100644
--- a/test/unit/ability_test.rb
+++ b/test/unit/ability_test.rb
@@ -26,4 +26,10 @@ # assert ability.cannot?(:update, @unauthorize_election.candidacies.first)
# end
+ test "standard users should not be able to add ... | Add a unit test to ensure that an user cannot add contributors
|
diff --git a/knife-wsfusion.gemspec b/knife-wsfusion.gemspec
index abc1234..def5678 100644
--- a/knife-wsfusion.gemspec
+++ b/knife-wsfusion.gemspec
@@ -11,6 +11,7 @@ s.email = "chipx86@chipx86.com"
s.files = Dir["lib/**/*"]
s.rubygems_version = "1.6.2"
+ s.homepage = "https://github.com/chipx86/knife-... | Add a homepage and safer dependency to the gemspec.
|
diff --git a/app/classes/query/user.rb b/app/classes/query/user.rb
index abc1234..def5678 100644
--- a/app/classes/query/user.rb
+++ b/app/classes/query/user.rb
@@ -10,4 +10,8 @@ initialize_model_do_time(:created_at)
initialize_model_do_time(:updated_at)
end
+
+ def default_order
+ "name"
+ end
end
| Add model-level default sort order to Query::User.
See query.rb.old line 698.
Also see abstract_query.rb.old#old
|
diff --git a/app/models/spree/slide.rb b/app/models/spree/slide.rb
index abc1234..def5678 100644
--- a/app/models/spree/slide.rb
+++ b/app/models/spree/slide.rb
@@ -8,27 +8,25 @@ :path => ':rails_root/public/spree/showcase/:id/:style/:basename.:extension'
# Add S3 and Heroku support
- if Rails.env.p... | Fix and improve S3/Heroku integration
- The existing code caused exceptions in all environments but production. This is now fixed.
- No need to use a constant – a regular variable will do just fine.
- Use Pathname's own #exist? method rather than FileTest.
- There should be no behavior that depends on the Rails enviro... |
diff --git a/lib/napa/grape_extensions/grape_helpers.rb b/lib/napa/grape_extensions/grape_helpers.rb
index abc1234..def5678 100644
--- a/lib/napa/grape_extensions/grape_helpers.rb
+++ b/lib/napa/grape_extensions/grape_helpers.rb
@@ -3,7 +3,7 @@ def represent(data, with: nil, **args)
raise ArgumentError.new("... | Update test of data to check for the method actually used rather than assume that an object that responds to :to_a can respond to :map.
This resolves https://github.com/bellycard/napa/issues/216
|
diff --git a/ETA-SDK.podspec b/ETA-SDK.podspec
index abc1234..def5678 100644
--- a/ETA-SDK.podspec
+++ b/ETA-SDK.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "ETA-SDK"
- s.version = "2.1.0"
+ s.version = "2.1.1"
s.summary = "eTilbudsavis iOS SDK."
s.description = <<-DESC
... | Update the podspec to point to correct tag (2.1.1)
|
diff --git a/lib/current_weather.rb b/lib/current_weather.rb
index abc1234..def5678 100644
--- a/lib/current_weather.rb
+++ b/lib/current_weather.rb
@@ -1,6 +1,8 @@+require_relative 'get_json'
+
class CurrentWeather
- attr_reader :zip
+ attr_reader :zip, :json
def initialize(zip = "#{DEFAULT}")
if zip.do... | Remove api call from CurrentWeather class
|
diff --git a/lib/delayed/recipes.rb b/lib/delayed/recipes.rb
index abc1234..def5678 100644
--- a/lib/delayed/recipes.rb
+++ b/lib/delayed/recipes.rb
@@ -13,6 +13,10 @@ fetch(:rails_env, false) ? "RAILS_ENV=#{fetch(:rails_env)}" : ''
end
+ def args
+ fetch(:delayed_job_args, "")
+ end
+
... | Add delayed_job_args variable for Capistrano recipe to allow configuration of started workers (e.g. "-n 2 --max-priority 10")
|
diff --git a/lib/prison_schedule.rb b/lib/prison_schedule.rb
index abc1234..def5678 100644
--- a/lib/prison_schedule.rb
+++ b/lib/prison_schedule.rb
@@ -26,7 +26,7 @@
def confirmation_email_range
# Use an arbitary number of days to apply the filter on
- Date.today..last_bookable_day
+ Time.zone.today..la... | Use Time.zone instead of Date.today
Make use of the apps configured `London` timezone when
getting todays date.
Using Date.today will use the time on the server and not
the time zone configured by the application. This can lead
some indetermination when running code outside of a
developers workspace. We spotted this ... |
diff --git a/lib/rubygems_plugin.rb b/lib/rubygems_plugin.rb
index abc1234..def5678 100644
--- a/lib/rubygems_plugin.rb
+++ b/lib/rubygems_plugin.rb
@@ -1,32 +1,30 @@ require 'rubygems'
Gem.post_install do |installer|
- if (repo = installer.spec.homepage) && !repo.empty?
- clone_dir = if ENV['GEMSRC_CLONE_ROOT']... | Revert "no need to compute clone_dir if homepage is empty"
This reverts commit 1a1a43c660c38d5bb2552e120df93e6b8caf6558.
Reason: for future refactorings
|
diff --git a/lib/rubygems_plugin.rb b/lib/rubygems_plugin.rb
index abc1234..def5678 100644
--- a/lib/rubygems_plugin.rb
+++ b/lib/rubygems_plugin.rb
@@ -8,6 +8,7 @@
require 'rbconfig'
require 'fileutils'
+ require 'rubygems/version_option'
unless Kernel.const_defined?(:Compiler)
load File.join(RbConfi... | Make sure the version_option is available |
diff --git a/plugins/commands/up/start_mixins.rb b/plugins/commands/up/start_mixins.rb
index abc1234..def5678 100644
--- a/plugins/commands/up/start_mixins.rb
+++ b/plugins/commands/up/start_mixins.rb
@@ -19,6 +19,8 @@ parser.on("--provision-with x,y,z", Array,
"Enable only certain provisioners... | Enable provision with --provision-with flag
|
diff --git a/spec/factories/bugs.rb b/spec/factories/bugs.rb
index abc1234..def5678 100644
--- a/spec/factories/bugs.rb
+++ b/spec/factories/bugs.rb
@@ -3,6 +3,5 @@ title { "#{Faker::Commerce.product_name} can’t #{Faker::Company.bs}" }
reporter
description { "#{Faker::Lorem.paragraph}\n#{Faker::Hacker.say... | Remove "closed" from Bug Factory
Not necessary for a valid record. |
diff --git a/spec/sidekiq_helper.rb b/spec/sidekiq_helper.rb
index abc1234..def5678 100644
--- a/spec/sidekiq_helper.rb
+++ b/spec/sidekiq_helper.rb
@@ -1,3 +1,4 @@+require 'sidekiq'
require 'sidekiq/testing'
require 'mock_redis'
| Fix undefined method `raw_push` error
Error:
sidekiq-2.17.7/lib/sidekiq/testing.rb:59:in `alias_method':
undefined method `raw_push' for class `Sidekiq::Client' (NameError)
See https://github.com/mperham/sidekiq/issues/1125
|
diff --git a/spec/support/devise.rb b/spec/support/devise.rb
index abc1234..def5678 100644
--- a/spec/support/devise.rb
+++ b/spec/support/devise.rb
@@ -1,3 +1,3 @@ RSpec.configure do |config|
- config.include Devise::TestHelpers, type: :controller
+ config.include Devise::Test::ControllerHelpers, type: :controller
... | Fix DEPRECATION WARNING of Devise
```
DEPRECATION WARNING: [Devise] including `Devise::TestHelpers` is deprecated and will be removed from Devise.
For controller tests, please include `Devise::Test::ControllerHelpers` instead.
```
|
diff --git a/Casks/seashore.rb b/Casks/seashore.rb
index abc1234..def5678 100644
--- a/Casks/seashore.rb
+++ b/Casks/seashore.rb
@@ -0,0 +1,6 @@+class Seashore < Cask
+ url 'https://sourceforge.net/projects/seashore/files/seashore%20binaries/Seashore%200.5.1/Seashore.zip/download'
+ homepage 'http://seashore.sourcefo... | Add a Cask for Seashore.
|
diff --git a/Casks/wireover.rb b/Casks/wireover.rb
index abc1234..def5678 100644
--- a/Casks/wireover.rb
+++ b/Casks/wireover.rb
@@ -0,0 +1,7 @@+class Wireover < Cask
+ url 'https://router.wireover.com/app/WireOver.dmg'
+ homepage 'http://www.wireover.com/'
+ version 'latest'
+ no_checksum
+ link 'WireOver.app'
+e... | Add WireOver.app v100 of the beta
Add support for the installation of WireOver, a desktop application
for sending and receiving files.
Fix version and checksum for WireOver.app Cask
Change version to 'latest' and SHA256 to 'no_checksum'
per pull request review.
Fix 'no_checksum' to pass audit for WireOver.app
|
diff --git a/lib/bouncer/outcome/base.rb b/lib/bouncer/outcome/base.rb
index abc1234..def5678 100644
--- a/lib/bouncer/outcome/base.rb
+++ b/lib/bouncer/outcome/base.rb
@@ -23,7 +23,9 @@ filepath = "../../../config/whitelist.txt"
path = File.expand_path(filepath, File.dirname(__FILE__))
lines ... | Use a Set for better performance of whitelist
|
diff --git a/lib/coffee/rails/railtie.rb b/lib/coffee/rails/railtie.rb
index abc1234..def5678 100644
--- a/lib/coffee/rails/railtie.rb
+++ b/lib/coffee/rails/railtie.rb
@@ -1,7 +1,9 @@ require 'rails/railtie'
-module Coffee::Rails
- class Railtie < ::Rails::Railtie
- config.app_generators.javascript_engine :coffe... | Fix undefined Coffee module issue
|
diff --git a/lib/config/custom-routes.rb b/lib/config/custom-routes.rb
index abc1234..def5678 100644
--- a/lib/config/custom-routes.rb
+++ b/lib/config/custom-routes.rb
@@ -1,11 +1,11 @@ # Here you can override or add to the pages in the core website
-Alaveteli::Application.routes.draw do
+Rails.application.routes.dr... | Switch custom routes over to rails 4
|
diff --git a/lib/domgen/jpa/generator.rb b/lib/domgen/jpa/generator.rb
index abc1234..def5678 100644
--- a/lib/domgen/jpa/generator.rb
+++ b/lib/domgen/jpa/generator.rb
@@ -1,15 +1,31 @@ module Domgen
module Generator
- def self.define_jpa_templates
- template_dir = "#{File.dirname(__FILE__)}/templates"
- ... | Refactor so can selectively generate different jpa elements
|
diff --git a/api/spec/spec_helper.rb b/api/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/api/spec/spec_helper.rb
+++ b/api/spec/spec_helper.rb
@@ -11,7 +11,7 @@ require 'spree/core/testing_support/factories'
RSpec.configure do |config|
- config.backtrace_clean_patterns = [/gems/]
+ config.backtrace_clean... | Remove AS and AP stuff from API backtrace
|
diff --git a/scss_lint.gemspec b/scss_lint.gemspec
index abc1234..def5678 100644
--- a/scss_lint.gemspec
+++ b/scss_lint.gemspec
@@ -25,6 +25,7 @@
s.required_ruby_version = '>= 1.9.3'
+ s.add_dependency 'rake', '~> 10.0'
s.add_dependency 'sass', '~> 3.4.15'
s.add_development_dependency 'rspec', '~> 3.3.0... | Add explicit dependency on rake gem
This appears to be required as of Ruby 2.3, otherwise we get a LoadError
when attempting to run `bundle exec rspec` (since our SimpleCov
integration loads rake).
|
diff --git a/lib/registrar/middleware.rb b/lib/registrar/middleware.rb
index abc1234..def5678 100644
--- a/lib/registrar/middleware.rb
+++ b/lib/registrar/middleware.rb
@@ -24,9 +24,20 @@ end
def self.add_omniauth_strategies
- name = config.name
+ strategies = config.strategies
+
+ if strategi... | Allow to configure multiple omniauth strategies
|
diff --git a/lib/sinatra/test_methods.rb b/lib/sinatra/test_methods.rb
index abc1234..def5678 100644
--- a/lib/sinatra/test_methods.rb
+++ b/lib/sinatra/test_methods.rb
@@ -12,6 +12,25 @@ body
end
end_eval
+ end
+
+ def show!(editor = nil)
+ editor = editor || ENV['EDITOR']
+ ... | Use mate or show! in irb to open in EDITOR
|
diff --git a/lib/spidr/extensions/uri.rb b/lib/spidr/extensions/uri.rb
index abc1234..def5678 100644
--- a/lib/spidr/extensions/uri.rb
+++ b/lib/spidr/extensions/uri.rb
@@ -29,15 +29,15 @@ #
def self.expand_path(path)
if path.start_with?('/')
- prefix, path = path[0,1], path[1..-1]
+ leading_slash, ... | Use more descriptive variable names.
|
diff --git a/test/models/notifiers/base_test.rb b/test/models/notifiers/base_test.rb
index abc1234..def5678 100644
--- a/test/models/notifiers/base_test.rb
+++ b/test/models/notifiers/base_test.rb
@@ -0,0 +1,18 @@+require 'test_helper'
+
+class Notifiers::BaseTest < ActiveSupport::TestCase
+ test '#notify' do
+ bas... | Create test for `Notifiers::Base` class
|
diff --git a/lib/tasks/govuk_assets.rake b/lib/tasks/govuk_assets.rake
index abc1234..def5678 100644
--- a/lib/tasks/govuk_assets.rake
+++ b/lib/tasks/govuk_assets.rake
@@ -16,4 +16,14 @@ status = result.successful? ? 'OK' : 'Error'
puts "#{status}: #{result.written_count} documents updated"
end
+
+ desc '... | Add a rake task to create a whitehall asset
|
diff --git a/lib/caesar.rb b/lib/caesar.rb
index abc1234..def5678 100644
--- a/lib/caesar.rb
+++ b/lib/caesar.rb
@@ -17,12 +17,14 @@ text.upcase.chars.map { |c| char_if_present(c) }.compact
end
- def substitute(char, other_alphabet)
- other_alphabet[index(char)]
+ # Given a char and another alphabet, find... | Make substitution a method of *target* alphabet.
|
diff --git a/lib/dataly.rb b/lib/dataly.rb
index abc1234..def5678 100644
--- a/lib/dataly.rb
+++ b/lib/dataly.rb
@@ -9,8 +9,11 @@ end
require 'dataly/importer'
+require 'dataly/file_splitter'
+require 'dataly/batch_importer'
require 'dataly/mapper'
require 'dataly/creator'
require 'dataly/batch_creator'
require ... | Add missing require statements to module
|
diff --git a/lib/helper.rb b/lib/helper.rb
index abc1234..def5678 100644
--- a/lib/helper.rb
+++ b/lib/helper.rb
@@ -17,11 +17,11 @@
def self.trend_class(val)
if val.to_f > 0
- 'icon-angle-up'
+ 'icon-arrow-up'
elsif val.to_f < 0
- 'icon-angle-down'
+ 'icon-arrow-down'
else
- 'icon-angle... | Reset trend arrows styling, new ones are too thin
|
diff --git a/lib/nickel.rb b/lib/nickel.rb
index abc1234..def5678 100644
--- a/lib/nickel.rb
+++ b/lib/nickel.rb
@@ -6,6 +6,7 @@
require 'nickel/version'
require 'nickel/nlp'
+require 'holidays_wrapper'
module Nickel
class << self
| Add require for Holidays Wrapper
|
diff --git a/lib/plotrb.rb b/lib/plotrb.rb
index abc1234..def5678 100644
--- a/lib/plotrb.rb
+++ b/lib/plotrb.rb
@@ -3,6 +3,9 @@ require 'uri'
require 'hashie'
require 'active_model'
+
+require_relative 'plotrb/internals'
+require_relative 'plotrb/validators'
require_relative 'plotrb/visualization'
require_relati... | Make sure load internals module first.
|
diff --git a/plek.gemspec b/plek.gemspec
index abc1234..def5678 100644
--- a/plek.gemspec
+++ b/plek.gemspec
@@ -8,8 +8,8 @@ s.name = "plek"
s.version = Plek::VERSION
s.platform = Gem::Platform::RUBY
- s.authors = ["Craig R Webster"]
- s.email = ["craig@barkingiguana.com"]
+ s.authors... | Use standard GOV.UK authors and email in the gemspec
|
diff --git a/db/migrate/20161014194032_add_tags_to_articles.rb b/db/migrate/20161014194032_add_tags_to_articles.rb
index abc1234..def5678 100644
--- a/db/migrate/20161014194032_add_tags_to_articles.rb
+++ b/db/migrate/20161014194032_add_tags_to_articles.rb
@@ -1,5 +1,5 @@ class AddTagsToArticles < ActiveRecord::Migrati... | Move array: true to the end of the migration
|
diff --git a/spec/controllers/lets_encrypt/verifications_controller_spec.rb b/spec/controllers/lets_encrypt/verifications_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/lets_encrypt/verifications_controller_spec.rb
+++ b/spec/controllers/lets_encrypt/verifications_controller_spec.rb
@@ -14,14 +... | Move let!(:certificate) to each context
|
diff --git a/alchemy-pg_search.gemspec b/alchemy-pg_search.gemspec
index abc1234..def5678 100644
--- a/alchemy-pg_search.gemspec
+++ b/alchemy-pg_search.gemspec
@@ -13,8 +13,7 @@ spec.homepage = "http://alchemy-cms.com"
spec.license = "BSD"
- spec.files = `git ls-files`.split($/)
- spec.test... | Remove test files from build gem
|
diff --git a/Ruby/BuscaBinaria.rb b/Ruby/BuscaBinaria.rb
index abc1234..def5678 100644
--- a/Ruby/BuscaBinaria.rb
+++ b/Ruby/BuscaBinaria.rb
@@ -0,0 +1,24 @@+
+def BuscaBinaria(valor, vetor, esquerda, direita)
+ meio = ((esquerda+direita)/2).floor
+
+ if esquerda <= direita
+
+ if valor > vetor[meio]
+ esquerda = me... | Add Busca Binária em Ruby |
diff --git a/AutoLayoutBuilder.podspec b/AutoLayoutBuilder.podspec
index abc1234..def5678 100644
--- a/AutoLayoutBuilder.podspec
+++ b/AutoLayoutBuilder.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "AutoLayoutBuilder"
- s.version = "0.0.3"
+ s.version = "1.0.0"
s.license = "MIT"
... | Update podspec version to v1.0.0
|
diff --git a/Underscore.m.podspec b/Underscore.m.podspec
index abc1234..def5678 100644
--- a/Underscore.m.podspec
+++ b/Underscore.m.podspec
@@ -1,19 +1,14 @@ Pod::Spec.new do |s|
s.name = 'Underscore.m'
- s.version = '0.2.1'
+ s.version = '0.3.0'
s.license = 'MIT'
s.summary = 'A functional toolbelt ... | Update the pod spec for new release.
|
diff --git a/src/oc-id/lib/zendesk_sso_url.rb b/src/oc-id/lib/zendesk_sso_url.rb
index abc1234..def5678 100644
--- a/src/oc-id/lib/zendesk_sso_url.rb
+++ b/src/oc-id/lib/zendesk_sso_url.rb
@@ -38,7 +38,7 @@ JWT.encode({
iat: iat,
jti: jti,
- name: user.first_name,
+ name: [user.first_name, u... | Fix logins to zendesk when user signups with a single name
When a user signs up for an account at https://manage.chef.io/signup and
only enters a single name then only the last name field is populated.
This causes an error when trying to zendesk because the name we send is
blank.
Signed-off-by: Will Fisher <392743f9d... |
diff --git a/guard.gemspec b/guard.gemspec
index abc1234..def5678 100644
--- a/guard.gemspec
+++ b/guard.gemspec
@@ -16,7 +16,7 @@ s.required_ruby_version = '>= 1.9.3'
s.add_runtime_dependency 'thor', '>= 0.18.1'
- s.add_runtime_dependency 'listen', '~> 2.6'
+ s.add_runtime_dependency 'listen', '... | Make minimum listen version 2.7
Because versions of listen < 2.7 have a bug where the rails console and tests stop responding to SIGINT, and this is affecting all of our projects that use guard |
diff --git a/Formula/tokyo-dystopia.rb b/Formula/tokyo-dystopia.rb
index abc1234..def5678 100644
--- a/Formula/tokyo-dystopia.rb
+++ b/Formula/tokyo-dystopia.rb
@@ -1,14 +1,14 @@ require 'formula'
class TokyoDystopia <Formula
- url 'http://1978th.net/tokyodystopia/tokyodystopia-0.9.13.tar.gz'
+ url 'http://1978th.... | Update Tokyo Dystopia to 0.9.14
|
diff --git a/spec/chirp/runner_spec.rb b/spec/chirp/runner_spec.rb
index abc1234..def5678 100644
--- a/spec/chirp/runner_spec.rb
+++ b/spec/chirp/runner_spec.rb
@@ -29,8 +29,12 @@ %w(cpu disk memory network).each do |script_name|
it "runs a #{script_name} script" do
subject.run!
- expect($std... | Make rubocop happy with latest spec additions
|
diff --git a/spec/models/admin_spec.rb b/spec/models/admin_spec.rb
index abc1234..def5678 100644
--- a/spec/models/admin_spec.rb
+++ b/spec/models/admin_spec.rb
@@ -2,6 +2,6 @@
RSpec.describe Admin, type: :model do
it "is invalid without a user" do
- expect(build(:parent, user_attributes: {})).not_to be_valid
+... | Fix typo that caused admin model specs to fail
|
diff --git a/HATransparentView.podspec b/HATransparentView.podspec
index abc1234..def5678 100644
--- a/HATransparentView.podspec
+++ b/HATransparentView.podspec
@@ -1,9 +1,9 @@ Pod::Spec.new do |s|
s.name = "HATransparentView"
- s.version = "0.3"
+ s.version = "0.4"
s.summary = "UIView tr... | Fix podspec and update version
|
diff --git a/ruby/product_status/product_status_common.rb b/ruby/product_status/product_status_common.rb
index abc1234..def5678 100644
--- a/ruby/product_status/product_status_common.rb
+++ b/ruby/product_status/product_status_common.rb
@@ -23,16 +23,17 @@ def print_product_status(status)
puts "Information for produ... | Update ProductStatuses printing for new features.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=197388670
|
diff --git a/db/migrate/20120717142400_create_external_questionnaires.rb b/db/migrate/20120717142400_create_external_questionnaires.rb
index abc1234..def5678 100644
--- a/db/migrate/20120717142400_create_external_questionnaires.rb
+++ b/db/migrate/20120717142400_create_external_questionnaires.rb
@@ -10,6 +10,6 @@ end... | Drop the correct table when rolling back a migration
|
diff --git a/roles/web.rb b/roles/web.rb
index abc1234..def5678 100644
--- a/roles/web.rb
+++ b/roles/web.rb
@@ -18,8 +18,7 @@ },
:web => {
:status => "online",
- :database_host => "db",
- :readonly_database_host => "katla"
+ :database_host => "db"
}
)
| Revert "Move readonly database traffic to katla"
This reverts commit e1bad7cf91c5b6ac6b435d2489b55ab86b165d9a.
|
diff --git a/Casks/fragmentarium.rb b/Casks/fragmentarium.rb
index abc1234..def5678 100644
--- a/Casks/fragmentarium.rb
+++ b/Casks/fragmentarium.rb
@@ -4,6 +4,7 @@
url "https://github.com/downloads/Syntopia/Fragmentarium/Fragmentarium%20Mac%20Binary%20v#{version}.zip"
homepage "http://syntopia.github.io/Fragmen... | Add name to Fragmentarium cask.
|
diff --git a/Casks/lyrics-master.rb b/Casks/lyrics-master.rb
index abc1234..def5678 100644
--- a/Casks/lyrics-master.rb
+++ b/Casks/lyrics-master.rb
@@ -1,8 +1,8 @@ class LyricsMaster < Cask
- version '2.4.1'
- sha256 '773cb3996b5f946b506214a0087afebdb7f7350ac17f477cc3f31bedf2a9be0c'
+ version '2.4.2'
+ sha256 '1cd... | Upgrade Lyrics Master.app to v2.4.2
|
diff --git a/lib/build_log_parser/matchers/coverage_matcher.rb b/lib/build_log_parser/matchers/coverage_matcher.rb
index abc1234..def5678 100644
--- a/lib/build_log_parser/matchers/coverage_matcher.rb
+++ b/lib/build_log_parser/matchers/coverage_matcher.rb
@@ -27,9 +27,9 @@ def fetch_phpunit_coverage(str)
if... | Reorder keys in coverage metrics results
|
diff --git a/lib/html_helpers.rb b/lib/html_helpers.rb
index abc1234..def5678 100644
--- a/lib/html_helpers.rb
+++ b/lib/html_helpers.rb
@@ -35,12 +35,12 @@ end
def process_p_nodes html
- [:strip_comments!,
- :unnest!,
- :empty_ul_to_p!,
- :wrap_bare_inline_tags!,
- :get_body_nod... | Use method syntax to allow lambdas if needed
|
diff --git a/lib/islay/engine.rb b/lib/islay/engine.rb
index abc1234..def5678 100644
--- a/lib/islay/engine.rb
+++ b/lib/islay/engine.rb
@@ -9,6 +9,9 @@ unless File.basename($0) == 'rake'
config.active_record.observers = :searchable_observer
end
+
+ # Remove the stupid div.field_with_errors wrapper R... | Configure ActionView to omit the stupid .field_with_errors.
|
diff --git a/config.ru b/config.ru
index abc1234..def5678 100644
--- a/config.ru
+++ b/config.ru
@@ -1,3 +1,6 @@+Encoding.default_external = Encoding::UTF_8
+Encoding.default_internal = Encoding::UTF_8
+
require './lib/tammer_saleh'
use Rack::Static, :urls => ["/stylesheets", "/images"],
| Make it work with pow
|
diff --git a/activesupport/lib/active_support/core_ext/module/deprecation.rb b/activesupport/lib/active_support/core_ext/module/deprecation.rb
index abc1234..def5678 100644
--- a/activesupport/lib/active_support/core_ext/module/deprecation.rb
+++ b/activesupport/lib/active_support/core_ext/module/deprecation.rb
@@ -15,... | Fix documentation to the custom Deprecator
[ci skip] |
diff --git a/Library/Contributions/examples/brew-bottle.rb b/Library/Contributions/examples/brew-bottle.rb
index abc1234..def5678 100644
--- a/Library/Contributions/examples/brew-bottle.rb
+++ b/Library/Contributions/examples/brew-bottle.rb
@@ -10,7 +10,7 @@ # Get the latest version
version = `brew list --versions... | Add suffix for bottles to avoid cache confusion.
|
diff --git a/app/controllers/concerns/pages_core/preview_pages_controller.rb b/app/controllers/concerns/pages_core/preview_pages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/concerns/pages_core/preview_pages_controller.rb
+++ b/app/controllers/concerns/pages_core/preview_pages_controller.rb
@@ -11,... | Add utility method to check if we are previewing a page
|
diff --git a/Formula/android-ndk.rb b/Formula/android-ndk.rb
index abc1234..def5678 100644
--- a/Formula/android-ndk.rb
+++ b/Formula/android-ndk.rb
@@ -1,10 +1,10 @@ require 'formula'
class AndroidNdk <Formula
- url 'http://dl.google.com/android/ndk/android-ndk-r4-darwin-x86.zip'
+ url 'http://dl.google.com/andro... | Update Android NDK to the latest r5 revision.
Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
|
diff --git a/lib/multi_logger.rb b/lib/multi_logger.rb
index abc1234..def5678 100644
--- a/lib/multi_logger.rb
+++ b/lib/multi_logger.rb
@@ -10,7 +10,7 @@ if !path.include?('/')
path = Rails.root.join('log',path).to_s
end
- if !path[ /\.log$/ ]
+ if !path.end_with?('.log')
path ... | Use end_with? instead of regular expression
|
diff --git a/config.ru b/config.ru
index abc1234..def5678 100644
--- a/config.ru
+++ b/config.ru
@@ -2,7 +2,7 @@
require 'rack-rewrite'
-DOMAIN = 'aqueousband.net'
+DOMAIN = 'www.aqueousband.net'
# Redirect to the www version of the domain in production
use Rack::Rewrite do
| Set domain to www for now
|
diff --git a/config.ru b/config.ru
index abc1234..def5678 100644
--- a/config.ru
+++ b/config.ru
@@ -1,10 +1,9 @@ # This file is used by Rack-based servers to start the application.
if defined? Unicorn
use Raindrops::Middleware
- require 'gctools/oobgc'
- if defined?(Unicorn::HttpRequest)
- use GC::OOB::Un... | Revert "use 2.1 aware oobgc"
This reverts commit 5a7522c3580e682a324a51a87b2cbff154cf5320.
|
diff --git a/config.ru b/config.ru
index abc1234..def5678 100644
--- a/config.ru
+++ b/config.ru
@@ -7,8 +7,8 @@ unless ENV['NO_PROMETHEUS']
require 'prometheus/middleware/collector'
require 'prometheus/middleware/exporter'
- use(Prometheus::Middleware::Collector, { metrics_prefix:'runner'})
- use(Prometheus::M... | Drop Prometheus metrics_prefix; using label app=runner in PromQL is simpler
|
diff --git a/lib/generators/rspec/templates/policy_spec.rb b/lib/generators/rspec/templates/policy_spec.rb
index abc1234..def5678 100644
--- a/lib/generators/rspec/templates/policy_spec.rb
+++ b/lib/generators/rspec/templates/policy_spec.rb
@@ -1,6 +1,6 @@ require '<%= File.exists?('spec/rails_helper.rb') ? 'rails_help... | Use RSpec.describe in spec template
Fixes #311 |
diff --git a/lib/stripe_event/invoice/payment_succeeded.rb b/lib/stripe_event/invoice/payment_succeeded.rb
index abc1234..def5678 100644
--- a/lib/stripe_event/invoice/payment_succeeded.rb
+++ b/lib/stripe_event/invoice/payment_succeeded.rb
@@ -9,7 +9,12 @@
# If the event is an invoice, or has an invoice atta... | Handle Stripe::Charge objects in Stripe::Invoice::PaymentSucceeded
|
diff --git a/lib/marky-markov.rb b/lib/marky-markov.rb
index abc1234..def5678 100644
--- a/lib/marky-markov.rb
+++ b/lib/marky-markov.rb
@@ -1,23 +1,66 @@ #!/usr/bin/env ruby -i
-require_relative 'marky-markov/markov-dictionary'
-require_relative 'marky-markov/two-word-dictionary'
+#A Markov Chain generator.
+
+require... | Use OptionParser to make command-line not horrible
|
diff --git a/lib/obix/builder.rb b/lib/obix/builder.rb
index abc1234..def5678 100644
--- a/lib/obix/builder.rb
+++ b/lib/obix/builder.rb
@@ -19,7 +19,7 @@ end
# Respond to methods matching OBIX tags.
- def method_missing method, attributes, &block
+ def method_missing method, attributes = {}, &block
... | Allow building objects with no attributes
|
diff --git a/lib/phone_number.rb b/lib/phone_number.rb
index abc1234..def5678 100644
--- a/lib/phone_number.rb
+++ b/lib/phone_number.rb
@@ -1,5 +1,6 @@ class PhoneNumber < ActiveRecord::Base
- belongs_to :vcard
+ belongs_to :vcard, :class_name => 'Vcards::Vcard'
+ belongs_to :object, :polymorphic => true
def t... | Fix PhoneNumber.vcard; add PhoneNumber.object association.
|
diff --git a/lib/segments/dg1.rb b/lib/segments/dg1.rb
index abc1234..def5678 100644
--- a/lib/segments/dg1.rb
+++ b/lib/segments/dg1.rb
@@ -27,7 +27,7 @@ private
def self.convert_to_ts(value) #:nodoc:
- if value.is_a?(Time) or value.is_a?(Date)
+ if value.is_a?(Time) || value.is_a?(Date)
... | Convert from "or" to "||" operator |
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
@@ -0,0 +1,19 @@+# frozen_string_literal: true
+# https://railsguides.net/simple-form-array-text-input/
+# https://tenforward.consulting/blog/integrating-an-ar... | Implement ArrayInput input type for SimpleForm
|
diff --git a/spec/integration/navigation_spec.rb b/spec/integration/navigation_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/navigation_spec.rb
+++ b/spec/integration/navigation_spec.rb
@@ -2,6 +2,6 @@
describe "Dummy application" do
it "should be an application" do
- Dummy::Application.should be... | Fix spec to test in the right direction
|
diff --git a/app/models/conferences.rb b/app/models/conferences.rb
index abc1234..def5678 100644
--- a/app/models/conferences.rb
+++ b/app/models/conferences.rb
@@ -1,2 +1,8 @@-class Conferences < ActiveRecord::Base
+class Conferences
+ include Mongoid::Document
+ # room_number and pin are strings so they can accomod... | Add field names for Conference rooms
|
diff --git a/spec/support/delayed_job_helpers.rb b/spec/support/delayed_job_helpers.rb
index abc1234..def5678 100644
--- a/spec/support/delayed_job_helpers.rb
+++ b/spec/support/delayed_job_helpers.rb
@@ -0,0 +1,8 @@+RSpec.configure do |config|
+ config.around(immediate_delayed_job_work_off: true) do |example|
+ ol... | Add spec/support file to make DJ work inline
If you specify ``immediate_delayed_job_work_off: true`` in the metadata for your spec then DJ will work inline. Otherwise it will do whatever the app is configured for (which is currently not to inline perform things).
|
diff --git a/lib/vindetta/cli.rb b/lib/vindetta/cli.rb
index abc1234..def5678 100644
--- a/lib/vindetta/cli.rb
+++ b/lib/vindetta/cli.rb
@@ -26,7 +26,9 @@
exit_now!("vin is required", 1) if vin.nil? # TODO: Replace w/ I18n
- puts Vindetta::Validator.run(vin)
+ valid = Vindetta::Validator.run(v... | Validate CLI command now prints 1 or 0
|
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,14 +6,14 @@ before_filter :timeframe
def timeframe
- @today = Date.today.to_t... | Use application timezone (not server timezone) for determining default time frame.
Also use beginning_of_day and end_of_day methods for setting time frame limits.
|
diff --git a/app/controllers/invitations_controller.rb b/app/controllers/invitations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/invitations_controller.rb
+++ b/app/controllers/invitations_controller.rb
@@ -15,6 +15,9 @@ def show
redirect_to_today
@invitation = find_invitation
+ if ... | Secure up invitation finding process
|
diff --git a/lib/jsonapi/active_record_operations_processor.rb b/lib/jsonapi/active_record_operations_processor.rb
index abc1234..def5678 100644
--- a/lib/jsonapi/active_record_operations_processor.rb
+++ b/lib/jsonapi/active_record_operations_processor.rb
@@ -11,5 +11,16 @@ def rollback
raise ActiveRecord::... | Add process_operation method that catches AR exceptions
|
diff --git a/app/serializers/environment_serializer.rb b/app/serializers/environment_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/environment_serializer.rb
+++ b/app/serializers/environment_serializer.rb
@@ -1,5 +1,5 @@ class EnvironmentSerializer < BaseSerializer
- Struct.new('Item', :name, :size... | Simplify implementation of environments serializer
|
diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sessions_controller.rb
+++ b/app/controllers/sessions_controller.rb
@@ -0,0 +1,25 @@+get '/login' do
+ @user = User.new
+ erb :'/login'
+end
+
+post '/login' do
+ @user = U... | Add basic login routes to sessions controller
|
diff --git a/app/controllers/stations_controller.rb b/app/controllers/stations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/stations_controller.rb
+++ b/app/controllers/stations_controller.rb
@@ -39,8 +39,13 @@ def fillfile
uploaded_file = params[:file]
file_content = uploaded_file.read... | Add profiling to stations adding
|
diff --git a/lyb_sidebar.gemspec b/lyb_sidebar.gemspec
index abc1234..def5678 100644
--- a/lyb_sidebar.gemspec
+++ b/lyb_sidebar.gemspec
@@ -6,6 +6,6 @@ s.authors = ["Simon Hürlimann (CyT)"]
s.email = ["simon.huerlimann@cyt.ch"]
s.description = "LybSidebar simplifies dries up common sidebar code."
- s.files = ... | Update gemspec as it would be generated by enginex nowadays.
|
diff --git a/configs.rb b/configs.rb
index abc1234..def5678 100644
--- a/configs.rb
+++ b/configs.rb
@@ -8,7 +8,7 @@ PAAS_VENDOR_FOLDER = "vendor/cloudcontrol"
LIBYAML_VERSION = "0.1.4"
LIBYAML_PATH = "libyaml-#{LIBYAML_VERSION}"
- BUNDLER_VERSION = "1.7.13"
+ BUNDLER_VERSION = "1.9.9"
... | Update bundler (1.7.13 -> 1.9.9)
|
diff --git a/Casks/prolific-usb-serial-driver.rb b/Casks/prolific-usb-serial-driver.rb
index abc1234..def5678 100644
--- a/Casks/prolific-usb-serial-driver.rb
+++ b/Casks/prolific-usb-serial-driver.rb
@@ -0,0 +1,9 @@+class ProlificUsbSerialDriver < Cask
+ url 'http://pbxbook.com/other/sw/PL2303_MacOSX_v1_5_1.zip'
+ h... | Add Prolific USB Serial Cable Driver 1.5.1 Cask
|
diff --git a/split-api.gemspec b/split-api.gemspec
index abc1234..def5678 100644
--- a/split-api.gemspec
+++ b/split-api.gemspec
@@ -20,7 +20,7 @@ gem.add_dependency 'multi_json'
gem.add_development_dependency 'bundler'
- gem.add_development_dependency 'rspec', '~> 3.8.0'
+ gem.add_development_dependency... | Update rspec requirement from ~> 3.8.0 to ~> 3.9.0
Updates the requirements on [rspec](https://github.com/rspec/rspec) to permit the latest version.
- [Release notes](https://github.com/rspec/rspec/releases)
- [Commits](https://github.com/rspec/rspec/compare/v3.8.0...v3.9.0)
Signed-off-by: dependabot-preview[bot] <5b... |
diff --git a/templates/mongoid/features/step_definitions/mongoid_steps.rb b/templates/mongoid/features/step_definitions/mongoid_steps.rb
index abc1234..def5678 100644
--- a/templates/mongoid/features/step_definitions/mongoid_steps.rb
+++ b/templates/mongoid/features/step_definitions/mongoid_steps.rb
@@ -1,3 +1,3 @@-Giv... | Change mongoid step_definition to match thoughtbot version
|
diff --git a/app/importers/file_importers/student_section_assignments_importer.rb b/app/importers/file_importers/student_section_assignments_importer.rb
index abc1234..def5678 100644
--- a/app/importers/file_importers/student_section_assignments_importer.rb
+++ b/app/importers/file_importers/student_section_assignments... | Use instance variable for school_scope
|
diff --git a/app/helpers/forem/formatting_helper.rb b/app/helpers/forem/formatting_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/forem/formatting_helper.rb
+++ b/app/helpers/forem/formatting_helper.rb
@@ -2,7 +2,7 @@ module FormattingHelper
# override with desired markup formatter, e.g. textile or ma... | Remove pre from as_formatted_html method
|
diff --git a/slop.gemspec b/slop.gemspec
index abc1234..def5678 100644
--- a/slop.gemspec
+++ b/slop.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = 'slop'
- s.version = '3.0.0-rc1'
+ s.version = '2.4.2'
s.summary = 'Option gathering made easy'
s.description = 'A simple DSL for gathering optio... | Revert "bump gemspec version to 3.0.0-rc1"
This reverts commit dfaf8150a4ab935a4f77db967f35285b73b35607.
|
diff --git a/test/integration/get_gem_test.rb b/test/integration/get_gem_test.rb
index abc1234..def5678 100644
--- a/test/integration/get_gem_test.rb
+++ b/test/integration/get_gem_test.rb
@@ -9,10 +9,13 @@ assert last_response.ok?
assert_equal 'application/octet-stream', content_type
- source_file = File... | Fix test: open .gem file in binary mode
|
diff --git a/Casks/omnioutliner-beta.rb b/Casks/omnioutliner-beta.rb
index abc1234..def5678 100644
--- a/Casks/omnioutliner-beta.rb
+++ b/Casks/omnioutliner-beta.rb
@@ -1,6 +1,6 @@ cask 'omnioutliner-beta' do
- version '4.4.x-r250030'
- sha256 '2b8c51ef4d5321b7701858264ea5f0da8358281259d8a1c94d1ac0d55792ba7e'
+ vers... | Update Omnioutliner Beta to build 4.4.x-r251827
This commit updates the version and sha256 tokens.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.