diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/models/player.rb b/app/models/player.rb
index abc1234..def5678 100644
--- a/app/models/player.rb
+++ b/app/models/player.rb
@@ -3,9 +3,9 @@
mount_uploader :avatar, AvatarUploader unless Rails.env.test?
+ belongs_to :member
has_one :address, through: :member
has_one :contact, through: :memb... | Fix has many through relation |
diff --git a/basmoura.gemspec b/basmoura.gemspec
index abc1234..def5678 100644
--- a/basmoura.gemspec
+++ b/basmoura.gemspec
@@ -24,5 +24,5 @@ spec.add_development_dependency "bundler", "~> 1.5"
spec.post_install_message = "This is a simple gem to show my professional informations."\
- "Type basmoura to see i... | Fix command information in gemspec
|
diff --git a/lib/context/shared_behavior.rb b/lib/context/shared_behavior.rb
index abc1234..def5678 100644
--- a/lib/context/shared_behavior.rb
+++ b/lib/context/shared_behavior.rb
@@ -2,20 +2,17 @@ class SharedBehavior < Module
def self.create_from_behavior(beh)
mod = self.new
- mod.behavior = beh
+... | Hide shared behavior a little better. Name clashes ftl.
|
diff --git a/catarse_stripe.gemspec b/catarse_stripe.gemspec
index abc1234..def5678 100644
--- a/catarse_stripe.gemspec
+++ b/catarse_stripe.gemspec
@@ -20,7 +20,7 @@ s.add_dependency "activemerchant", ">= 1.17.0"
s.add_dependency "stripe", :git => 'https://github.com/stripe/stripe-ruby'
s.add_dependency "omnia... | Fix new dependencies and Migrations
|
diff --git a/config/deploy.rb b/config/deploy.rb
index abc1234..def5678 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -7,6 +7,10 @@ role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
role :db, "your slave db-server here"
+# Sync directories
+set :sync_dire... | Add sync directories as example.
|
diff --git a/lib/geocoder/results/yandex.rb b/lib/geocoder/results/yandex.rb
index abc1234..def5678 100644
--- a/lib/geocoder/results/yandex.rb
+++ b/lib/geocoder/results/yandex.rb
@@ -57,6 +57,10 @@ address_details['Locality']['Premise']['PremiseName']
end
+ def precision
+ @data['GeoObject']['met... | Add precision method to Geocoder::Result::Yandex.
|
diff --git a/db/migrate/20161019130218_add_style_to_widgets.rb b/db/migrate/20161019130218_add_style_to_widgets.rb
index abc1234..def5678 100644
--- a/db/migrate/20161019130218_add_style_to_widgets.rb
+++ b/db/migrate/20161019130218_add_style_to_widgets.rb
@@ -1,7 +1,16 @@-Sequel.migration do
- change do
+require 'car... | Rewrite widgets style migration to use new helper
|
diff --git a/lib/capistrano/cowboy.rb b/lib/capistrano/cowboy.rb
index abc1234..def5678 100644
--- a/lib/capistrano/cowboy.rb
+++ b/lib/capistrano/cowboy.rb
@@ -17,6 +17,9 @@ desc 'Deploy without SCM'
task :default do
before 'deploy:update_code', 'cowboy:configure'
+
+ # wor... | Add hook to make sure scm gets set before capistrano-gitflow takes over.
|
diff --git a/CHStringAdditions.podspec b/CHStringAdditions.podspec
index abc1234..def5678 100644
--- a/CHStringAdditions.podspec
+++ b/CHStringAdditions.podspec
@@ -3,10 +3,10 @@ s.version = '1.0.0'
s.license = 'MIT'
s.summary = 'Convenience methods on NSString'
- s.homepage = 'https://github.com/chaione/CH... | Update podspec to point to gitlab
|
diff --git a/lib/rails/templates/alchemy.rb b/lib/rails/templates/alchemy.rb
index abc1234..def5678 100644
--- a/lib/rails/templates/alchemy.rb
+++ b/lib/rails/templates/alchemy.rb
@@ -1,6 +1,7 @@ # This rails template installs Alchemy and all depending gems.
-require File.expand_path('../../../alchemy/version', __FILE... | Fix branches for Alchemy Rails template.
|
diff --git a/lib/halogen/hash_util.rb b/lib/halogen/hash_util.rb
index abc1234..def5678 100644
--- a/lib/halogen/hash_util.rb
+++ b/lib/halogen/hash_util.rb
@@ -9,7 +9,7 @@ # @return [Hash]
#
def stringify_keys!(hash)
- transform_keys!(hash, &:to_s)
+ hash.transform_keys!(&:to_s)
end
... | Use transform_keys! from core lib
|
diff --git a/lib/mechanic/server/documentation/views/rss.builder b/lib/mechanic/server/documentation/views/rss.builder
index abc1234..def5678 100644
--- a/lib/mechanic/server/documentation/views/rss.builder
+++ b/lib/mechanic/server/documentation/views/rss.builder
@@ -6,8 +6,7 @@ xml.link request.url
@extensio... | Remove author field to pass RSS validation
|
diff --git a/lib/puppet/provider/network_device_tel/ce.rb b/lib/puppet/provider/network_device_tel/ce.rb
index abc1234..def5678 100644
--- a/lib/puppet/provider/network_device_tel/ce.rb
+++ b/lib/puppet/provider/network_device_tel/ce.rb
@@ -1,3 +1,15 @@+# Licensed under the Apache License, Version 2.0 (the "License");
... | Add description of LICENSE and Modify |
diff --git a/lib/reagan/test_knife.rb b/lib/reagan/test_knife.rb
index abc1234..def5678 100644
--- a/lib/reagan/test_knife.rb
+++ b/lib/reagan/test_knife.rb
@@ -30,7 +30,7 @@ result = system "knife cookbook test -o #{File.join(Config.settings['jenkins']['workspace_dir'], 'cookbooks')} #{@cookbook} > /dev/null 2>&... | Fix typo in log output
|
diff --git a/lib/tasks/js_routes.rake b/lib/tasks/js_routes.rake
index abc1234..def5678 100644
--- a/lib/tasks/js_routes.rake
+++ b/lib/tasks/js_routes.rake
@@ -3,9 +3,6 @@ task :routes => :environment do
require "js-routes"
- # Hack for actually load the routes (taken from railties console/app.rb)
- Act... | Remove deprecated hack from rake task
|
diff --git a/lib/van_helsing/rails.rb b/lib/van_helsing/rails.rb
index abc1234..def5678 100644
--- a/lib/van_helsing/rails.rb
+++ b/lib/van_helsing/rails.rb
@@ -12,7 +12,7 @@ end
desc "Precompiles assets."
- task :assets_precompile do
+ task :'assets_precompile:force' do
queue %{
echo "-----> Preco... | Make fast asset precompilation the default.
|
diff --git a/lib/xcode/install/installed.rb b/lib/xcode/install/installed.rb
index abc1234..def5678 100644
--- a/lib/xcode/install/installed.rb
+++ b/lib/xcode/install/installed.rb
@@ -4,10 +4,19 @@ self.command = 'installed'
self.summary = 'List installed Xcodes.'
+ def self.options
+ [['--u... | Add option for showing DVTPlugInCompatibilityUUID
|
diff --git a/configure-dea.rb b/configure-dea.rb
index abc1234..def5678 100644
--- a/configure-dea.rb
+++ b/configure-dea.rb
@@ -19,6 +19,7 @@ config['logging'].delete('syslog')
config['staging']['environment']['BUILDPACK_CACHE'] = (ironfoundry_path + 'buildpack_cache').to_s
config['staging']['environment... | Set bind_mounts values during configuration. May not be necessary but adding it for consistency.
|
diff --git a/files/chef-marketplace-cookbooks/chef-marketplace/recipes/_automate_enable.rb b/files/chef-marketplace-cookbooks/chef-marketplace/recipes/_automate_enable.rb
index abc1234..def5678 100644
--- a/files/chef-marketplace-cookbooks/chef-marketplace/recipes/_automate_enable.rb
+++ b/files/chef-marketplace-cookbo... | [CLOUD-413] Create symlink for builder key
|
diff --git a/lib/slack-ruby-bot/rspec/support/slack-ruby-bot/respond_with_slack_message.rb b/lib/slack-ruby-bot/rspec/support/slack-ruby-bot/respond_with_slack_message.rb
index abc1234..def5678 100644
--- a/lib/slack-ruby-bot/rspec/support/slack-ruby-bot/respond_with_slack_message.rb
+++ b/lib/slack-ruby-bot/rspec/supp... | Use a real client method to avoid stumbling on an unmet expectation.
|
diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb
index abc1234..def5678 100644
--- a/spec/dummy/config/application.rb
+++ b/spec/dummy/config/application.rb
@@ -20,14 +20,8 @@ # Application configuration should go into files in config/initializers
# -- all .rb files in that dire... | Remove dummy app's configuration for Sprockets 3
|
diff --git a/spec/status_change_event_spec.rb b/spec/status_change_event_spec.rb
index abc1234..def5678 100644
--- a/spec/status_change_event_spec.rb
+++ b/spec/status_change_event_spec.rb
@@ -18,5 +18,20 @@ its(:file) { should == @file }
its(:event) { should == @inner_event }
end
+
+ context "wit... | Add extra case to status change event spec
|
diff --git a/test/lib/parse/cache_test.rb b/test/lib/parse/cache_test.rb
index abc1234..def5678 100644
--- a/test/lib/parse/cache_test.rb
+++ b/test/lib/parse/cache_test.rb
@@ -0,0 +1,32 @@+require_relative '../../test_helper'
+
+class TestCache < Minitest::Test
+ def setup
+ @init_object = {
+ server_url: 'ht... | Add some basic tests of cache type supplied on init
|
diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/users/omniauth_callbacks_controller.rb
+++ b/app/controllers/users/omniauth_callbacks_controller.rb
@@ -7,7 +7,7 @@ flash[:notice] = I18n... | Remove extra hash from oauth data
|
diff --git a/spec/models/reaction_spec.rb b/spec/models/reaction_spec.rb
index abc1234..def5678 100644
--- a/spec/models/reaction_spec.rb
+++ b/spec/models/reaction_spec.rb
@@ -37,6 +37,6 @@
it "can have only image/gif as image" do
reaction.image = Rack::Test::UploadedFile.new('spec/support/images/man.jpg', 'i... | Change of logic in image test
|
diff --git a/spec/nark/middleware_spec.rb b/spec/nark/middleware_spec.rb
index abc1234..def5678 100644
--- a/spec/nark/middleware_spec.rb
+++ b/spec/nark/middleware_spec.rb
@@ -1,13 +1,11 @@ require "spec_helper"
describe Nark::Middleware do
- include Rack::Test::Methods
- let(:target_app) { mock('The target appli... | Add specs for calling the middleware
|
diff --git a/1.8/library/socket/basicsocket/recv_nonblock_spec.rb b/1.8/library/socket/basicsocket/recv_nonblock_spec.rb
index abc1234..def5678 100644
--- a/1.8/library/socket/basicsocket/recv_nonblock_spec.rb
+++ b/1.8/library/socket/basicsocket/recv_nonblock_spec.rb
@@ -1,5 +1,6 @@ require File.dirname(__FILE__) + '/... | Make recv_nonblock test runnable standalone.
|
diff --git a/db/migrate/20111114134140_use_x_instead_of_times_in_line_items.rb b/db/migrate/20111114134140_use_x_instead_of_times_in_line_items.rb
index abc1234..def5678 100644
--- a/db/migrate/20111114134140_use_x_instead_of_times_in_line_items.rb
+++ b/db/migrate/20111114134140_use_x_instead_of_times_in_line_items.rb... | Fix migration to not use default_scope on LineItem.
|
diff --git a/ecology.gemspec b/ecology.gemspec
index abc1234..def5678 100644
--- a/ecology.gemspec
+++ b/ecology.gemspec
@@ -23,7 +23,7 @@ ignores = File.readlines(".gitignore").grep(/\S+/).map {|pattern| pattern.chomp }
dotfiles = Dir[".*"]
s.files = Dir["**/*"].reject {|f| File.directory?(f) || ignores.any? {... | Fix test_files in gemspecs, add glowworm executable to gemspec
|
diff --git a/campystrano.gemspec b/campystrano.gemspec
index abc1234..def5678 100644
--- a/campystrano.gemspec
+++ b/campystrano.gemspec
@@ -14,8 +14,8 @@
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"]
- s.add_dependency "capistrano", "~> 2.14.2"
- s.add_dependency "tinder... | Adjust capistrano and tinder version requirements
|
diff --git a/build_config.rb b/build_config.rb
index abc1234..def5678 100644
--- a/build_config.rb
+++ b/build_config.rb
@@ -21,7 +21,7 @@ # SOFTWARE.
MRuby::Build.new do |conf|
- toolchain :gcc
+ toolchain ENV.fetch('CC', :gcc)
conf.enable_debug
conf.enable_test
| Make toolchain variable through $env:CC
|
diff --git a/util/word_list_sanitizer.rb b/util/word_list_sanitizer.rb
index abc1234..def5678 100644
--- a/util/word_list_sanitizer.rb
+++ b/util/word_list_sanitizer.rb
@@ -4,8 +4,7 @@ end
def run!
- process_words
- write_file
+ update_word_file
end
private
@@ -13,11 +12,11 @@ File.dirname(_... | Clean up word file sanitizer a bit
|
diff --git a/Casks/appcode-eap.rb b/Casks/appcode-eap.rb
index abc1234..def5678 100644
--- a/Casks/appcode-eap.rb
+++ b/Casks/appcode-eap.rb
@@ -1,8 +1,8 @@ cask :v1 => 'appcode-eap' do
version '3.2.0'
- sha256 '2dd8a0a9246067ae6e092b9934cbadac6730a74fe400c8929b09792a0c0cda83'
+ sha256 'fa78dc8e2a7430e7173cecec7b6... | Update AppCode EAP to latest build
This commit updates the sha256 and url stanzas. The version of the
app itself has not changed.
|
diff --git a/Casks/rapidweaver.rb b/Casks/rapidweaver.rb
index abc1234..def5678 100644
--- a/Casks/rapidweaver.rb
+++ b/Casks/rapidweaver.rb
@@ -1,9 +1,9 @@ cask :v1 => 'rapidweaver' do
- version '6'
- sha256 'e7b72daffa9c7809b713e05a1b518873a71a73afdd6a97f300b8bb9ab35a9361'
+ version '6.0.3'
+ sha256 'e30a85f337d8... | Update RapidWeaver.app to version 6.0.3
|
diff --git a/castanet.gemspec b/castanet.gemspec
index abc1234..def5678 100644
--- a/castanet.gemspec
+++ b/castanet.gemspec
@@ -12,7 +12,7 @@ s.summary = %q{A CAS client library}
s.description = %q{A small, snappy CAS 2.0 client library for Ruby applications}
- s.files = Dir.glob("{.yardopts,README... | Include CHANGELOG and README in the gem.
|
diff --git a/cask/dropdmg.rb b/cask/dropdmg.rb
index abc1234..def5678 100644
--- a/cask/dropdmg.rb
+++ b/cask/dropdmg.rb
@@ -10,9 +10,10 @@ license :commercial
depends_on :macos => '>= :snow_leopard'
depends_on :arch => :intel
-
+
zap :delete => [
'~/Library/Automator/DropDMG.action',
- '~/Library/Automator... | Update zap:delete in DropDMG cask
|
diff --git a/app/controllers/concerns/tenant_site.rb b/app/controllers/concerns/tenant_site.rb
index abc1234..def5678 100644
--- a/app/controllers/concerns/tenant_site.rb
+++ b/app/controllers/concerns/tenant_site.rb
@@ -10,7 +10,7 @@
def current_site
return default_site unless tenant_site?
- Site.find_by(d... | Fix tenant site not found
|
diff --git a/app/controllers/v3/tracks_controller.rb b/app/controllers/v3/tracks_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/v3/tracks_controller.rb
+++ b/app/controllers/v3/tracks_controller.rb
@@ -6,7 +6,7 @@ def show
if @track.present?
render json: @track.as_json(include: {
- ... | Change property name of Track api. users -> likers
|
diff --git a/chef-handler-slack.gemspec b/chef-handler-slack.gemspec
index abc1234..def5678 100644
--- a/chef-handler-slack.gemspec
+++ b/chef-handler-slack.gemspec
@@ -1,22 +1,22 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
- s.name = "chef-handler-slack"
- s.version = ... | Add bundle as a dev dependency
|
diff --git a/app/decorators/action_plan_decorator.rb b/app/decorators/action_plan_decorator.rb
index abc1234..def5678 100644
--- a/app/decorators/action_plan_decorator.rb
+++ b/app/decorators/action_plan_decorator.rb
@@ -23,7 +23,7 @@ [
[HTMLProcessor::NodeRemover, HTMLProcessor::INTRO_IMG],
[HTMLProc... | Add trailing comma to aid future diffs
|
diff --git a/lib/core/repositories/articles/active_resource.rb b/lib/core/repositories/articles/active_resource.rb
index abc1234..def5678 100644
--- a/lib/core/repositories/articles/active_resource.rb
+++ b/lib/core/repositories/articles/active_resource.rb
@@ -12,24 +12,18 @@ end
def find(id)
- ... | Simplify serialisation of ActiveResource object |
diff --git a/app/models/spree/line_item_decorator.rb b/app/models/spree/line_item_decorator.rb
index abc1234..def5678 100644
--- a/app/models/spree/line_item_decorator.rb
+++ b/app/models/spree/line_item_decorator.rb
@@ -3,7 +3,7 @@
included do
has_many :gift_cards, class_name: Spree::VirtualGiftCard
- Spre... | Simplify line item gift card delegate statement
|
diff --git a/chef/cookbooks/omnibus_updater/attributes/default.rb b/chef/cookbooks/omnibus_updater/attributes/default.rb
index abc1234..def5678 100644
--- a/chef/cookbooks/omnibus_updater/attributes/default.rb
+++ b/chef/cookbooks/omnibus_updater/attributes/default.rb
@@ -1,6 +1,6 @@ default[:omnibus_updater][:version]... | Change CHEF Omnibus cookbook base_uri attribute because Opscode as migrated their omnibus S3 bucket. |
diff --git a/app/controllers/api/events_controller.rb b/app/controllers/api/events_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/events_controller.rb
+++ b/app/controllers/api/events_controller.rb
@@ -8,7 +8,7 @@ .where.not(events: { id: Array.wrap(params[:except]) })
.reference... | Increase number of retrieved events to 12
|
diff --git a/app/controllers/dashboards_controller.rb b/app/controllers/dashboards_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/dashboards_controller.rb
+++ b/app/controllers/dashboards_controller.rb
@@ -2,12 +2,20 @@
def index
- @page_title = 'Dashboard'
+ @page_title = 'My... | Fix tasks displayed in dashboard
|
diff --git a/spec/acceptance/sign_in_spec.rb b/spec/acceptance/sign_in_spec.rb
index abc1234..def5678 100644
--- a/spec/acceptance/sign_in_spec.rb
+++ b/spec/acceptance/sign_in_spec.rb
@@ -7,10 +7,16 @@ } do
given(:user) { create(:user) }
+ given(:unregistered_user) { User.new(email: 'user@test.com', password: '1... | Add test to sign_in spec.
|
diff --git a/spec/airplayer/playlist_spec.rb b/spec/airplayer/playlist_spec.rb
index abc1234..def5678 100644
--- a/spec/airplayer/playlist_spec.rb
+++ b/spec/airplayer/playlist_spec.rb
@@ -1,3 +1,4 @@+require 'fakefs/spec_helpers'
require 'spec_helper'
module AirPlayer
@@ -7,8 +8,22 @@ end
describe '.add... | Add spec to play local directory
|
diff --git a/spec/commonmarker_rouge_spec.rb b/spec/commonmarker_rouge_spec.rb
index abc1234..def5678 100644
--- a/spec/commonmarker_rouge_spec.rb
+++ b/spec/commonmarker_rouge_spec.rb
@@ -16,4 +16,19 @@
expect(html).to_not eq('')
end
+
+ it 'escapes language markup' do
+ html = CommonMarker::Rouge.render_... | Add spec for escaping language fence
|
diff --git a/spec/factories/course_levels.rb b/spec/factories/course_levels.rb
index abc1234..def5678 100644
--- a/spec/factories/course_levels.rb
+++ b/spec/factories/course_levels.rb
@@ -1,6 +1,6 @@ FactoryGirl.define do
factory :course_level, class: Course::Level.name do
course
- sequence(:experience_poin... | Make levels factory more realistic
|
diff --git a/spec/controllers/api/v4/converts_controller_spec.rb b/spec/controllers/api/v4/converts_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/api/v4/converts_controller_spec.rb
+++ b/spec/controllers/api/v4/converts_controller_spec.rb
@@ -4,25 +4,37 @@
describe '#create' do
contex... | Add test for unsupported formats
|
diff --git a/cryptic.gemspec b/cryptic.gemspec
index abc1234..def5678 100644
--- a/cryptic.gemspec
+++ b/cryptic.gemspec
@@ -18,6 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
+ spec.add_dependency 'colorize'
spec.add_dependency 'redcarpet'
spec.add... | Add colorize to the gemspec
|
diff --git a/spec/sass_partial_spec.rb b/spec/sass_partial_spec.rb
index abc1234..def5678 100644
--- a/spec/sass_partial_spec.rb
+++ b/spec/sass_partial_spec.rb
@@ -20,10 +20,10 @@ context "create files with dependancies" do
it "should create a file with an //import statement" do
Dir.chdir("test_files")
-... | Build dependancies works (at least for a single dependency)
|
diff --git a/lib/asteroids/missile/missile_physics.rb b/lib/asteroids/missile/missile_physics.rb
index abc1234..def5678 100644
--- a/lib/asteroids/missile/missile_physics.rb
+++ b/lib/asteroids/missile/missile_physics.rb
@@ -6,5 +6,13 @@ @object_pool = object_pool
end
+ def update
+ object.x += Go... | Implement the update method for ship physics.
|
diff --git a/glipper.gemspec b/glipper.gemspec
index abc1234..def5678 100644
--- a/glipper.gemspec
+++ b/glipper.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependency "actionpack", ">= 4.1.1", "< 5.2"
+ spec.add_dependency ... | Update rails upper version limit to "< 6.0"
|
diff --git a/lib/torque/postgresql/adapter/quoting.rb b/lib/torque/postgresql/adapter/quoting.rb
index abc1234..def5678 100644
--- a/lib/torque/postgresql/adapter/quoting.rb
+++ b/lib/torque/postgresql/adapter/quoting.rb
@@ -31,6 +31,9 @@ lookup_cast_type_from_column(column)
end
+ ... | Debug error in Circle CI
|
diff --git a/lib/wilbertils/message_receiver_stack.rb b/lib/wilbertils/message_receiver_stack.rb
index abc1234..def5678 100644
--- a/lib/wilbertils/message_receiver_stack.rb
+++ b/lib/wilbertils/message_receiver_stack.rb
@@ -0,0 +1,27 @@+module Wilbertils
+ class MessageReceiverStack
+ include Singleton
+
+ def ... | Add class for managing shutdown of queues
|
diff --git a/test/integration/default/serverspec/default_spec.rb b/test/integration/default/serverspec/default_spec.rb
index abc1234..def5678 100644
--- a/test/integration/default/serverspec/default_spec.rb
+++ b/test/integration/default/serverspec/default_spec.rb
@@ -2,19 +2,9 @@
set :backend, :exec
-# rules no lo... | Fix default specs to work properly on RHEL
Also remove the old checks for the rules we removed.
|
diff --git a/connect-four.rb b/connect-four.rb
index abc1234..def5678 100644
--- a/connect-four.rb
+++ b/connect-four.rb
@@ -4,33 +4,46 @@ # Connect Four game
#initialize game board array
-rows, cols = 6, 7
-board = Array.new(rows*cols)
+$rows, $cols = 6, 7
+$board = Array.new($rows*$cols)
#display the board, vi... | Add method to display board and switch to global variables.
|
diff --git a/app/helpers/photos_helper.rb b/app/helpers/photos_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/photos_helper.rb
+++ b/app/helpers/photos_helper.rb
@@ -18,7 +18,7 @@ html << link_to(link_name, :class => :thumbnail, :name => photo.id, :'data-lightbox' => 'gallery', :title => photo.caption) d... | Fix bug where not processed images cause fatal error on user photo page.
|
diff --git a/app/models/authentication.rb b/app/models/authentication.rb
index abc1234..def5678 100644
--- a/app/models/authentication.rb
+++ b/app/models/authentication.rb
@@ -10,11 +10,8 @@ end
def create_user
- user = User.new(name: name, remote_photo_url: image)
- if email
- user.email = email
- ... | Remove code that doesn’t make sense now that all users will have email. |
diff --git a/examples/chat.rb b/examples/chat.rb
index abc1234..def5678 100644
--- a/examples/chat.rb
+++ b/examples/chat.rb
@@ -2,7 +2,7 @@ require 'plezi'
class ChatServer
def index
- render 'client'
+ "Use Websockets to connect."
end
def on_open
return close unless params['id']
@@ -10,9 +10,24 @... | Fix example and show off the Redis engine extension
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,3 +1,4 @@ Rails.application.routes.draw do
- # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
+ resource :users, only: :show
+ resource... | Add route for user show
|
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,5 @@ Rails.application.routes.draw do
- get "/okcomputer" => "ok_computer#show", defaults: {check: "default"}
- get "/okcomputer/all" => "ok_computer#index"
- get "/okcomputer/:chec... | Allow Rails to Respond to GET or OPTIONS
By default, HAProxy uses OPTIONS for the `healtchk` up-check. This
allows OPTIONS to not 404, while still following the Rails 4 requirement
of disallowing unbounded `match` routes.
|
diff --git a/iformat.gemspec b/iformat.gemspec
index abc1234..def5678 100644
--- a/iformat.gemspec
+++ b/iformat.gemspec
@@ -4,9 +4,9 @@ Gem::Specification.new do |gem|
gem.authors = ['Karol Sarnacki']
gem.email = ['sodercober@gmail.com']
- gem.description = %q{TODO: Write a gem description}
- g... | Add gem descriptions to gemspec
|
diff --git a/core/db/migrate/20130213191427_create_default_stock.rb b/core/db/migrate/20130213191427_create_default_stock.rb
index abc1234..def5678 100644
--- a/core/db/migrate/20130213191427_create_default_stock.rb
+++ b/core/db/migrate/20130213191427_create_default_stock.rb
@@ -1,8 +1,12 @@ class CreateDefaultStock <... | Change migration to avoid tiggering callback and use private send:
* Skip :after callbacks on StockLocation and StockItem when creating
intitial instances. Regression due to 0ba60a08f934af9d6a7f17f6e9c90a1749547e9b and 630afbb7f2549556fb1bc914e16a2e3802cc8f15
* Use private send to set StockItem.count_on_hand
because :... |
diff --git a/core/spec/models/spree/factories/order_factory_spec.rb b/core/spec/models/spree/factories/order_factory_spec.rb
index abc1234..def5678 100644
--- a/core/spec/models/spree/factories/order_factory_spec.rb
+++ b/core/spec/models/spree/factories/order_factory_spec.rb
@@ -5,15 +5,16 @@
RSpec.shared_examples_f... | Make the class of the tested factory configurable
|
diff --git a/purolator-web-services.gemspec b/purolator-web-services.gemspec
index abc1234..def5678 100644
--- a/purolator-web-services.gemspec
+++ b/purolator-web-services.gemspec
@@ -18,8 +18,8 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependen... | Use soap4r-ruby1.9 instead of soap4r-ruby19. Require ruby 2.0.
|
diff --git a/app/controllers/api/auth/accounts_controller.rb b/app/controllers/api/auth/accounts_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/auth/accounts_controller.rb
+++ b/app/controllers/api/auth/accounts_controller.rb
@@ -10,6 +10,7 @@ filter_resources_by :user_id
def after_create_... | Allow creating accounts without user associated
|
diff --git a/app/services/linked_clone_visibility_service.rb b/app/services/linked_clone_visibility_service.rb
index abc1234..def5678 100644
--- a/app/services/linked_clone_visibility_service.rb
+++ b/app/services/linked_clone_visibility_service.rb
@@ -5,7 +5,7 @@ field_names_to_hide = []
if provision_type.t... | Fix rubocop warnings in LinkedCloneVisibilityService
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -6,9 +6,10 @@ namespace :api do
namespace :v1 do
mount_devise_token_auth_for 'User', at: 'users', skip: [:omniauth_callbacks]
- resources :users, only: [:show]
end
e... | Remove api namespace from user resources path.
|
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,5 @@ Rails.application.routes.draw do
- devise_for :users, controllers: { registrations: 'registrations' }
+ devise_for :users, controllers: { registrations: 'users/registrations... | Modify the default devise regitration controller path
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -2,7 +2,6 @@ ActiveAdmin.routes(self)
devise_for :users
- get "home/index"
root "home#index"
resources :studies, only: :show do
| Remove duplication of home path
It was breaking pager links because kaminari missed the root
declaration above
|
diff --git a/LPGoogleFunctions.podspec b/LPGoogleFunctions.podspec
index abc1234..def5678 100644
--- a/LPGoogleFunctions.podspec
+++ b/LPGoogleFunctions.podspec
@@ -10,5 +10,5 @@ s.source_files = 'LPGoogleFunctions/**/*.{h,m}'
s.frameworks = "CoreLocation","AVFoundation"
s.requires_arc = true
- s.dependency... | Update podspec to use dependency AFNetworking 2.x
|
diff --git a/db/migrate/20190213155430_change_event_id_to_bigint.rb b/db/migrate/20190213155430_change_event_id_to_bigint.rb
index abc1234..def5678 100644
--- a/db/migrate/20190213155430_change_event_id_to_bigint.rb
+++ b/db/migrate/20190213155430_change_event_id_to_bigint.rb
@@ -0,0 +1,9 @@+class ChangeEventIdToBigint... | Update event_id foreign key to bigint
|
diff --git a/db/migrate/20191209202348_add_harvest_count_to_crop.rb b/db/migrate/20191209202348_add_harvest_count_to_crop.rb
index abc1234..def5678 100644
--- a/db/migrate/20191209202348_add_harvest_count_to_crop.rb
+++ b/db/migrate/20191209202348_add_harvest_count_to_crop.rb
@@ -13,6 +13,11 @@ reversible do |dir|
... | Index into ES after migration
|
diff --git a/binding_of_caller.gemspec b/binding_of_caller.gemspec
index abc1234..def5678 100644
--- a/binding_of_caller.gemspec
+++ b/binding_of_caller.gemspec
@@ -6,8 +6,15 @@ spec.authors = ["John Mair (banisterfiend)"]
spec.email = ["jrmair@gmail.com"]
- spec.summary = %q{Retrieve the bi... | Add a more thorough gem description
|
diff --git a/cucumber-formatters.gemspec b/cucumber-formatters.gemspec
index abc1234..def5678 100644
--- a/cucumber-formatters.gemspec
+++ b/cucumber-formatters.gemspec
@@ -6,9 +6,9 @@ spec.summary = 'A helpful bunch of formatters'
spec.description = 'A collection of cucumber formatters'
spec.homepage ... | Update gemspec to version 0.0.2
|
diff --git a/cruise_config.rb b/cruise_config.rb
index abc1234..def5678 100644
--- a/cruise_config.rb
+++ b/cruise_config.rb
@@ -1,5 +1,5 @@ Project.configure do |project|
project.email_notifier.emails = ['scott@butlerpress.com']
project.build_command = "./script/cruise_build.rb #{project.name}"
- project.trigge... | Disable custom trigger we may not need
git-svn-id: 96bd6241e080dd4199045f7177cf3384e2eaed71@1437 2d86388d-c40f-0410-ad6a-a69da6a65d20
|
diff --git a/config/boxen.rb b/config/boxen.rb
index abc1234..def5678 100644
--- a/config/boxen.rb
+++ b/config/boxen.rb
@@ -8,7 +8,7 @@ ENV['BOXEN_REPO_NAME'] = 'bobisjan/boxen'
# Change the project repos directory.
-ENV['BOXEN_SRC_DIR'] = '/Users/#{user}/Developer'
+ENV['BOXEN_SRC_DIR'] = '~/Developer'
# Boxen ... | Use tilde for user's home folder reference
Error: Cannot create /Users/#{user}/Developer; parent directory /Users/#{user} does not exist
Error: /Stage[main]/Boxen::Config/File[/Users/#{user}/Developer]/ensure: change from absent to directory failed: Cannot create /Users/#{user}/Developer; parent directory /Users/#{us... |
diff --git a/WireCompiler.podspec b/WireCompiler.podspec
index abc1234..def5678 100644
--- a/WireCompiler.podspec
+++ b/WireCompiler.podspec
@@ -0,0 +1,17 @@+Pod::Spec.new do |s|
+ s.name = 'WireCompiler'
+ s.version = "#{ENV['POD_VERSION']}"
+ s.license = { :type => 'apache2', :file => 'LICENSE... | Add Podspec for the Wire compiler
This podspec downloads the source at a given tag and builds the proto compiler.
To publish:
```
git tag <version>
git push origin <version>
export POD_VERSION=<version>
pod repo push WireCompiler.podspec --use-json
```
|
diff --git a/spec/migrations/migrate_user_project_view_spec.rb b/spec/migrations/migrate_user_project_view_spec.rb
index abc1234..def5678 100644
--- a/spec/migrations/migrate_user_project_view_spec.rb
+++ b/spec/migrations/migrate_user_project_view_spec.rb
@@ -3,15 +3,15 @@ require 'spec_helper'
require Rails.root.joi... | Remove factories from MigrateUserProjectView spec
|
diff --git a/lib/bundle_info.rb b/lib/bundle_info.rb
index abc1234..def5678 100644
--- a/lib/bundle_info.rb
+++ b/lib/bundle_info.rb
@@ -22,7 +22,7 @@ info = Gems.info dep.name
output = "#{dep.name}:".green
if info
- desc = info['info'].gsub(/\n/, '')
+ desc = info['info'].gs... | Replace newlines with space in description |
diff --git a/spec/models/comment_spec.rb b/spec/models/comment_spec.rb
index abc1234..def5678 100644
--- a/spec/models/comment_spec.rb
+++ b/spec/models/comment_spec.rb
@@ -23,4 +23,9 @@ it { should validate_presence_of(:body) }
end
end
+
+ describe "associations" do
+ it { should belong_to(:user) }
+... | Add spec of association on Comment
|
diff --git a/cookbooks/nginx/attributes/passenger.rb b/cookbooks/nginx/attributes/passenger.rb
index abc1234..def5678 100644
--- a/cookbooks/nginx/attributes/passenger.rb
+++ b/cookbooks/nginx/attributes/passenger.rb
@@ -3,5 +3,5 @@ #
node.default["nginx"]["passenger"]["version"] = "3.0.12"
node.default["nginx"]["pas... | Revert "Import nginx version 1.0.2"
This reverts commit 3ea86ebbb81fd48c888eb40992ec76334ef8341d [formerly e60119e116448142a7680a4a3c91c4a051e28c88] [formerly 2b64bffc325ab90e606eff7ae7afe1378199eb8f] [formerly 72829cc41131f1c0d687d6c7c7294e0f0da8101f [formerly 4f3d7d31d0e760e763f8c46d62b28b5ffcfe218d]] [formerly d957... |
diff --git a/cookbooks/nginx/attributes/passenger.rb b/cookbooks/nginx/attributes/passenger.rb
index abc1234..def5678 100644
--- a/cookbooks/nginx/attributes/passenger.rb
+++ b/cookbooks/nginx/attributes/passenger.rb
@@ -3,5 +3,5 @@ #
node.default["nginx"]["passenger"]["version"] = "3.0.12"
node.default["nginx"]["pas... | Remove the nginx attribute that breaks nginx on Windows nodes
Former-commit-id: d32d6e8c34b0f31f77f1caa54e3d16c581991ae1 [formerly 834c7c7a1076df6c84a0357d17f5e9bc46241d1f] [formerly e3df03a04ffb0f5c6a3628078c004142146f652e [formerly 8c9c528f0dbf1c3f151580fa006f2d4541ac1898 [formerly bedd9d822add439487ffac98000783fc0... |
diff --git a/core/app/models/spree/promotion_rule.rb b/core/app/models/spree/promotion_rule.rb
index abc1234..def5678 100644
--- a/core/app/models/spree/promotion_rule.rb
+++ b/core/app/models/spree/promotion_rule.rb
@@ -1,8 +1,7 @@ # Base class for all promotion rules
module Spree
class PromotionRule < Spree::Base... | Drop promotion validation on PromotionRule
specs break with it enabled ..
|
diff --git a/optbind.gemspec b/optbind.gemspec
index abc1234..def5678 100644
--- a/optbind.gemspec
+++ b/optbind.gemspec
@@ -16,7 +16,7 @@
s.add_development_dependency 'bundler', '~> 1.10'
s.add_development_dependency 'rake', '~> 10.0'
- s.add_development_dependency 'rspec', '~> 3.3.0'
+ s.add_development... | Fix versions in Gem spec
|
diff --git a/app/controllers/questions.rb b/app/controllers/questions.rb
index abc1234..def5678 100644
--- a/app/controllers/questions.rb
+++ b/app/controllers/questions.rb
@@ -1,4 +1,4 @@-post '/questions/:id/votes' do
+post '/questions/:id/vote' do
question = Question.find_by(id: params[:id])
case params[:vot... | Fix controller route to add vote to question
|
diff --git a/app/lib/exception_handler.rb b/app/lib/exception_handler.rb
index abc1234..def5678 100644
--- a/app/lib/exception_handler.rb
+++ b/app/lib/exception_handler.rb
@@ -1,10 +1,22 @@ module ExceptionHandler
+
+ # Include in a delegator to a class in order to
+ # rescue all errors of a certain type for every
+... | Add some documentation / cleanup to last commit
|
diff --git a/app/models/host_aggregate.rb b/app/models/host_aggregate.rb
index abc1234..def5678 100644
--- a/app/models/host_aggregate.rb
+++ b/app/models/host_aggregate.rb
@@ -4,7 +4,6 @@ include Metric::CiMixin
include EventMixin
include ProviderObjectMixin
- include SupportsFeatureMixin
acts_as_miq_tag... | Remove duplicate line from Host Aggregate
|
diff --git a/app/models/sensor_reading.rb b/app/models/sensor_reading.rb
index abc1234..def5678 100644
--- a/app/models/sensor_reading.rb
+++ b/app/models/sensor_reading.rb
@@ -13,7 +13,7 @@
def as_json( options = {} )
super( options.merge(
- only: [ :value, :created_at ]
+ only: [ :value, :setpoint,... | Convert setpoint to appropriate scale.
|
diff --git a/codecheck/cradled-else.rb b/codecheck/cradled-else.rb
index abc1234..def5678 100644
--- a/codecheck/cradled-else.rb
+++ b/codecheck/cradled-else.rb
@@ -0,0 +1,16 @@+#!/usr/bin/env ruby
+
+$:.unshift(File.dirname(__FILE__))
+
+require 'all-code'
+
+all_ironbee_code do |path|
+ p path if path =~ /radix/
+ ... | codecheck: Add script to find cradled else statements.
|
diff --git a/test/models/second_level_browse_page_test.rb b/test/models/second_level_browse_page_test.rb
index abc1234..def5678 100644
--- a/test/models/second_level_browse_page_test.rb
+++ b/test/models/second_level_browse_page_test.rb
@@ -0,0 +1,13 @@+require 'test_helper'
+
+describe SecondLevelBrowsePage do
+ desc... | Add unit test for page titles
This adds a simple test for the title of the second level browse page.
Tests for the other page models can be implemented after changing over
to content-store for the source.
|
diff --git a/lib/sidekiq/prioritized_queues/monkeypatches/client.rb b/lib/sidekiq/prioritized_queues/monkeypatches/client.rb
index abc1234..def5678 100644
--- a/lib/sidekiq/prioritized_queues/monkeypatches/client.rb
+++ b/lib/sidekiq/prioritized_queues/monkeypatches/client.rb
@@ -1,21 +1,18 @@+# frozen_string_literal: ... | Align monkey patch to sidekiq 5
the to_push section was not used and the assignment shadowed on a few
lines below.
|
diff --git a/lib/netsuite/records/inventory_adjustment_inventory.rb b/lib/netsuite/records/inventory_adjustment_inventory.rb
index abc1234..def5678 100644
--- a/lib/netsuite/records/inventory_adjustment_inventory.rb
+++ b/lib/netsuite/records/inventory_adjustment_inventory.rb
@@ -11,7 +11,7 @@
field :inventory_... | Add department to inventory adjustment item
|
diff --git a/automaton.rb b/automaton.rb
index abc1234..def5678 100644
--- a/automaton.rb
+++ b/automaton.rb
@@ -1,5 +1,6 @@ class Automaton
- PICTURE = [' ', '█']
+ PICTURE = [" ", "█"]
+ ROW_WIDTH = `/usr/bin/env tput cols`.to_i
def display_grid(grid)
puts grid.map { |cell| picture(cell) }.join
@@ -15,12... | Add row width and use one Automation obj
|
diff --git a/spec/models/mass_email_spec.rb b/spec/models/mass_email_spec.rb
index abc1234..def5678 100644
--- a/spec/models/mass_email_spec.rb
+++ b/spec/models/mass_email_spec.rb
@@ -3,7 +3,7 @@ describe MassEmail do
describe "when sending e-mails" do
let(:addresses) do
- Array.new(50).map do |i|
+ ... | Fix spec by creating uniq email addresses
|
diff --git a/app/controllers/gobierto_participation/processes_controller.rb b/app/controllers/gobierto_participation/processes_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/gobierto_participation/processes_controller.rb
+++ b/app/controllers/gobierto_participation/processes_controller.rb
@@ -3,8 +3,... | Fix active processes and groups in processes view
|
diff --git a/init.rb b/init.rb
index abc1234..def5678 100644
--- a/init.rb
+++ b/init.rb
@@ -8,6 +8,13 @@ url 'http://github.com/jmcb/update-custom-fields-commit'
author_url 'http://githu.com/jmcb'
description 'Update specific custom fields, dependent on tracker, when closing an issue via commit.'
+ settings :... | Include the "default" settings and links properly.
Hopefully properly.
|
diff --git a/lib/generators/caffeine/templates/picture_migration.rb b/lib/generators/caffeine/templates/picture_migration.rb
index abc1234..def5678 100644
--- a/lib/generators/caffeine/templates/picture_migration.rb
+++ b/lib/generators/caffeine/templates/picture_migration.rb
@@ -5,6 +5,8 @@ t.string :image_filen... | Add caption and description to pictures
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.