diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/console_game_engine.rb b/lib/console_game_engine.rb
index abc1234..def5678 100644
--- a/lib/console_game_engine.rb
+++ b/lib/console_game_engine.rb
@@ -6,10 +6,7 @@ attr_reader :ui
def initialize(args)
- @ttt_board = args.fetch(:ttt_board, nil)
- @rules = args.fetch(:rules, nil)
- @play... | Refactor and removed instance variables
|
diff --git a/mixlib-authentication.gemspec b/mixlib-authentication.gemspec
index abc1234..def5678 100644
--- a/mixlib-authentication.gemspec
+++ b/mixlib-authentication.gemspec
@@ -16,6 +16,7 @@ s.add_dependency "mixlib-log"
s.require_path = 'lib'
- s.files = %w(LICENSE README.rdoc Gemfile Rakefile NOTICE) + ... | Add gemspec files to allow bundler to run from the gem |
diff --git a/lib/bouncer/request_context.rb b/lib/bouncer/request_context.rb
index abc1234..def5678 100644
--- a/lib/bouncer/request_context.rb
+++ b/lib/bouncer/request_context.rb
@@ -14,7 +14,7 @@ end
def mapping
- # Reminder: the hash is always calculated on the canonicalize!d request
+ # Remind... | Tidy up comment referring to hash
|
diff --git a/lib/fat_free_crm/engine.rb b/lib/fat_free_crm/engine.rb
index abc1234..def5678 100644
--- a/lib/fat_free_crm/engine.rb
+++ b/lib/fat_free_crm/engine.rb
@@ -17,7 +17,8 @@
module FatFreeCRM
class Engine < ::Rails::Engine
- config.autoload_paths += Dir[root.join("app/models/**")]
+ config.autoload_... | Add entities to Engine autoload_paths
|
diff --git a/lib/carrierwave/storage/aws.rb b/lib/carrierwave/storage/aws.rb
index abc1234..def5678 100644
--- a/lib/carrierwave/storage/aws.rb
+++ b/lib/carrierwave/storage/aws.rb
@@ -1,6 +1,8 @@ # frozen_string_literal: true
require 'aws-sdk-resources'
+
+Aws.eager_autoload!(services: ['S3'])
module CarrierWave... | Use eager_autoload for S3 resource
As explained in the [awsblog][0], aws-sdk is autoloaded to keep the
start time low. That isn't entirely threadsafe and can cause loading
errors in multi threaded systems. To fix this, all of 'S3' is now
eagerly autoloaded.
Fixes #93
[0]: https://ruby.awsblog.com/post/Tx16QY1CI5GVBF... |
diff --git a/RNDeviceInfo.podspec b/RNDeviceInfo.podspec
index abc1234..def5678 100644
--- a/RNDeviceInfo.podspec
+++ b/RNDeviceInfo.podspec
@@ -12,4 +12,5 @@
s.source_files = "RNDeviceInfo/*.{h,m}"
+ s.dependency 'React'
end
| Add dependency on React pod |
diff --git a/lib/image_management/engine.rb b/lib/image_management/engine.rb
index abc1234..def5678 100644
--- a/lib/image_management/engine.rb
+++ b/lib/image_management/engine.rb
@@ -3,6 +3,7 @@ isolate_namespace ImageManagement
config.generators do |g|
g.test_framework :rspec, :view_specs => false
+ ... | Add haml generator so we can use scaffolding for base views.
|
diff --git a/spec/controllers/routes_controller_spec.rb b/spec/controllers/routes_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/routes_controller_spec.rb
+++ b/spec/controllers/routes_controller_spec.rb
@@ -15,21 +15,13 @@ }.to_json
end
- it "should not fail on multiple simultaneous ... | Fix flakey test that depended on threads
This rewrites the test to check the underlying behaviour, which is
that we retry a request for a specific kind of error.
|
diff --git a/spec/controllers/visits_controller_spec.rb b/spec/controllers/visits_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/visits_controller_spec.rb
+++ b/spec/controllers/visits_controller_spec.rb
@@ -1,12 +1,12 @@ require 'rails_helper'
RSpec.describe VisitsController, type: :control... | Add simple spec for visit status page
|
diff --git a/spec/features/budget_polls/budgets_spec.rb b/spec/features/budget_polls/budgets_spec.rb
index abc1234..def5678 100644
--- a/spec/features/budget_polls/budgets_spec.rb
+++ b/spec/features/budget_polls/budgets_spec.rb
@@ -9,12 +9,12 @@
scenario "Admin ballots link appears if budget has a poll associated"... | Check for link to poll in specs
|
diff --git a/code42.gemspec b/code42.gemspec
index abc1234..def5678 100644
--- a/code42.gemspec
+++ b/code42.gemspec
@@ -10,7 +10,7 @@ gem.email = ["dev-ruby@code42.com"]
gem.description = %q{Provides a Ruby interface to the Code42 API}
gem.summary = %q{...}
- gem.homepage = ""
+ gem.home... | Add link to API documentation in gemspec
|
diff --git a/lib/list_course_manager.rb b/lib/list_course_manager.rb
index abc1234..def5678 100644
--- a/lib/list_course_manager.rb
+++ b/lib/list_course_manager.rb
@@ -30,8 +30,10 @@ end
def send_approval_notification_emails
- @course.instructors.each do |instructor|
- CourseApprovalMailer.send_approval... | Send approval emails to all nonstudents in course
Content Experts want to get these emails to, they are likely to be helpful for any other users participating in a support role as well.
|
diff --git a/lib/mocha/expectation_error.rb b/lib/mocha/expectation_error.rb
index abc1234..def5678 100644
--- a/lib/mocha/expectation_error.rb
+++ b/lib/mocha/expectation_error.rb
@@ -2,7 +2,7 @@
module Mocha
- class ExpectationError < StandardError
+ class ExpectationError < Exception
def initialize(... | Make ExpectationError inherit from Exception, rather than StandardError
|
diff --git a/Library/Formula/csshx.rb b/Library/Formula/csshx.rb
index abc1234..def5678 100644
--- a/Library/Formula/csshx.rb
+++ b/Library/Formula/csshx.rb
@@ -0,0 +1,12 @@+require 'formula'
+
+class Csshx < Formula
+ url 'http://csshx.googlecode.com/files/csshX-0.72.tgz'
+ homepage 'http://code.google.com/p/csshx/'... | Add a formula for csshX.
csshX is an SSH multiplexer. It connects to multiple machines via SSH
and lets you enter the same commands on each one of them.
There is no build system, just a single Perl script to be installed into
bin/.
Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
|
diff --git a/config/initializers/_splunk_logger.rb b/config/initializers/_splunk_logger.rb
index abc1234..def5678 100644
--- a/config/initializers/_splunk_logger.rb
+++ b/config/initializers/_splunk_logger.rb
@@ -1,5 +1,5 @@ if AppConfig[:enable_splunk_logging]
require File.expand_path('../../../lib/log_overrider', ... | Revert "Move the include of splunklogging into the appconfig check"
This reverts commit 25752e9f93a48bdeb292438208bba0e51f6fed0c.
|
diff --git a/config/initializers/exlibris_aleph.rb b/config/initializers/exlibris_aleph.rb
index abc1234..def5678 100644
--- a/config/initializers/exlibris_aleph.rb
+++ b/config/initializers/exlibris_aleph.rb
@@ -0,0 +1,4 @@+# Load all the sub libraries when the application starts
+Exlibris::Aleph::TablesManager.instan... | Load up the Exlibris::Aleph::TablesManager when the application starts to save time
|
diff --git a/lib/rom/sql/commands/update.rb b/lib/rom/sql/commands/update.rb
index abc1234..def5678 100644
--- a/lib/rom/sql/commands/update.rb
+++ b/lib/rom/sql/commands/update.rb
@@ -26,9 +26,14 @@ end
def update(tuple)
- pks = relation.map { |t| t[relation.model.primary_key] }
- ... | Use dataset for Update command
|
diff --git a/lib/nifty-report/report.rb b/lib/nifty-report/report.rb
index abc1234..def5678 100644
--- a/lib/nifty-report/report.rb
+++ b/lib/nifty-report/report.rb
@@ -34,7 +34,7 @@ AWS::S3::S3Object.store(filename, csv, ENV['AWS_S3_BUCKET'])
remote_file = AWS::S3::S3Object.find(filename, ENV['AWS_S3_BUCK... | Increase expiration to 30 minutes
|
diff --git a/lib/slack_trello/copy_cards.rb b/lib/slack_trello/copy_cards.rb
index abc1234..def5678 100644
--- a/lib/slack_trello/copy_cards.rb
+++ b/lib/slack_trello/copy_cards.rb
@@ -11,7 +11,7 @@
def run
source_cards.each do |source_card|
- creator = CreateTrelloCard.new(destination_board, destination_... | Fix a bug in the CopyCards class
|
diff --git a/lib/ama_validators/email_format_validator.rb b/lib/ama_validators/email_format_validator.rb
index abc1234..def5678 100644
--- a/lib/ama_validators/email_format_validator.rb
+++ b/lib/ama_validators/email_format_validator.rb
@@ -1,6 +1,6 @@ class EmailFormatValidator < ActiveModel::EachValidator
def vali... | Change email validation regex to reject backticks
* regex now will no accept backticks in any part of the email string
|
diff --git a/lib/something_like_that.rb b/lib/something_like_that.rb
index abc1234..def5678 100644
--- a/lib/something_like_that.rb
+++ b/lib/something_like_that.rb
@@ -1,6 +1,3 @@-require 'bundler'
-Bundler.setup
-
require 'something_like_that/match_phrase'
require 'something_like_that/match_phrase/query'
require '... | Remove extraneous bundler require statement
|
diff --git a/lib/puffer/backends/controllers/tree_base.rb b/lib/puffer/backends/controllers/tree_base.rb
index abc1234..def5678 100644
--- a/lib/puffer/backends/controllers/tree_base.rb
+++ b/lib/puffer/backends/controllers/tree_base.rb
@@ -9,7 +9,10 @@ return super if puffer_filters.any?
@records = resour... | Use arel predicates to quote tree expand query
|
diff --git a/db/migrate/20170310101431_add_not_null_contraint_if_company_entity.rb b/db/migrate/20170310101431_add_not_null_contraint_if_company_entity.rb
index abc1234..def5678 100644
--- a/db/migrate/20170310101431_add_not_null_contraint_if_company_entity.rb
+++ b/db/migrate/20170310101431_add_not_null_contraint_if_c... | Add born at postgresql constraint
|
diff --git a/lib/syoboemon/connector.rb b/lib/syoboemon/connector.rb
index abc1234..def5678 100644
--- a/lib/syoboemon/connector.rb
+++ b/lib/syoboemon/connector.rb
@@ -1,3 +1,12 @@+#
+# Syoboemon::Connector module
+#
+
+# しょぼいカレンダーAPIを利用するためのモジュール
+
+require "rubygems"
+require "faraday"
+
module Syoboemon
module C... | Use hash to argument type
|
diff --git a/lib/tasks/coronavirus.rake b/lib/tasks/coronavirus.rake
index abc1234..def5678 100644
--- a/lib/tasks/coronavirus.rake
+++ b/lib/tasks/coronavirus.rake
@@ -23,4 +23,11 @@ puts "title: #{page.title}"
puts "sections_title: #{page.sections_title}"
end
+
+ desc "Sync announcements with entries in ... | Add a rake task to sync announcements
Add a rake task to sync the announcements in the database with the ones
in the yaml file.
Usage: rake coronavirus:sync_announcements
|
diff --git a/lib/tasks/republish_accessible_format_request_pilot_documents.rake b/lib/tasks/republish_accessible_format_request_pilot_documents.rake
index abc1234..def5678 100644
--- a/lib/tasks/republish_accessible_format_request_pilot_documents.rake
+++ b/lib/tasks/republish_accessible_format_request_pilot_documents.... | Add temporary Rake task to republish all editions with attachments for accessible format pilot
|
diff --git a/lib/dmm-crawler.rb b/lib/dmm-crawler.rb
index abc1234..def5678 100644
--- a/lib/dmm-crawler.rb
+++ b/lib/dmm-crawler.rb
@@ -1,7 +1,7 @@ require 'mechanize'
module DMMCrawler
- BASE_URL = 'http://www.dmm.co.jp'.freeze
+ BASE_URL = 'https://www.dmm.co.jp'.freeze
end
require 'dmm-crawler/agent'
| Use HTTPS in all connections
Now `dmm-crawler` using HTTP so it should use HTTPS connection.
|
diff --git a/app/services/tag_importer/fetch_remote_data.rb b/app/services/tag_importer/fetch_remote_data.rb
index abc1234..def5678 100644
--- a/app/services/tag_importer/fetch_remote_data.rb
+++ b/app/services/tag_importer/fetch_remote_data.rb
@@ -32,10 +32,10 @@
def save_row(row)
tagging_spreadsheet.tag_... | Handle blank values when processing remote TSV data
We have not null DB constraints on several fields in the TagMapping
model. An import TSV may have blank values in any of its fields. We
should handle these cases and not attempt to persist null values in the
tag_mappings table.
|
diff --git a/set_attributes.gemspec b/set_attributes.gemspec
index abc1234..def5678 100644
--- a/set_attributes.gemspec
+++ b/set_attributes.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'set_attributes'
- s.version = '0.0.2.2'
+ s.version = '0.0.2.3'
s.summary = "Set... | Package version is increased from 0.0.2.2 to 0.0.2.3
|
diff --git a/liquid-validations.gemspec b/liquid-validations.gemspec
index abc1234..def5678 100644
--- a/liquid-validations.gemspec
+++ b/liquid-validations.gemspec
@@ -10,7 +10,7 @@ gem.email = ['dev@bigcartel.com']
gem.description = %q{ ActiveRecord style validations for Liquid content in your ActiveRe... | Update gemspec with rubygems url
|
diff --git a/test/cookbooks/bluepill_test/recipes/default.rb b/test/cookbooks/bluepill_test/recipes/default.rb
index abc1234..def5678 100644
--- a/test/cookbooks/bluepill_test/recipes/default.rb
+++ b/test/cookbooks/bluepill_test/recipes/default.rb
@@ -1,13 +1,8 @@-include_recipe 'bluepill'
+include_recipe 'bluepill::d... | Remove a funky case statement
|
diff --git a/test/unit/plugins/kernel_v2/config/disk_test.rb b/test/unit/plugins/kernel_v2/config/disk_test.rb
index abc1234..def5678 100644
--- a/test/unit/plugins/kernel_v2/config/disk_test.rb
+++ b/test/unit/plugins/kernel_v2/config/disk_test.rb
@@ -0,0 +1,56 @@+require File.expand_path("../../../../base", __FILE__)... | Add basic disk config unit tests
|
diff --git a/group_node.rb b/group_node.rb
index abc1234..def5678 100644
--- a/group_node.rb
+++ b/group_node.rb
@@ -7,8 +7,9 @@
module Lextacular
class GroupNode
- def initialize *children
+ def initialize *children, &block
@children = children
+ instance_eval &block if block_given?
end
... | Add block argument to GroupNode.new
|
diff --git a/lib/rspec-given.rb b/lib/rspec-given.rb
index abc1234..def5678 100644
--- a/lib/rspec-given.rb
+++ b/lib/rspec-given.rb
@@ -1 +1,9 @@+# This file file is to make bundler happy when auto-requiring files
+# based on gem name. If you are manually requiring rspec/given,
+# please use the canonical require fil... | Add explanatory comment to bundler require file.
|
diff --git a/lib/tic_tac_toe.rb b/lib/tic_tac_toe.rb
index abc1234..def5678 100644
--- a/lib/tic_tac_toe.rb
+++ b/lib/tic_tac_toe.rb
@@ -39,12 +39,10 @@ end
def won
- @@win_places.each do |places|
+ @@win_places.map do |places|
marks = places.map { |n| @_marks.at n }
- return marks[... | Restructure won to be slightly more sequence-oriented
|
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
@@ -3,11 +3,13 @@ Before do
# Force ids to be printed unquoted for consistency
set_environment_variable('SHELL', '/usr/bin/bash')
+end
- if RUBY_PLATFORM =~ /... | Update aruba timeout to use config block
|
diff --git a/lib/paur.rb b/lib/paur.rb
index abc1234..def5678 100644
--- a/lib/paur.rb
+++ b/lib/paur.rb
@@ -1,30 +1,39 @@ require 'optparse'
+require 'fileutils'
require 'paur/submission'
module Paur
class Main
class << self
- attr_reader :category, :verbose
+ include FileUtils
+
+ attr_read... | Set a build_dir option, remove working files
|
diff --git a/test/lib/examples/galena/tissue/helpers/test_case.rb b/test/lib/examples/galena/tissue/helpers/test_case.rb
index abc1234..def5678 100644
--- a/test/lib/examples/galena/tissue/helpers/test_case.rb
+++ b/test/lib/examples/galena/tissue/helpers/test_case.rb
@@ -21,4 +21,4 @@ # Add galena/lib to the Ruby path... | Move shims up in file hierarchy.
|
diff --git a/lps.gemspec b/lps.gemspec
index abc1234..def5678 100644
--- a/lps.gemspec
+++ b/lps.gemspec
@@ -19,4 +19,5 @@ gem.add_development_dependency 'test-unit'
gem.add_development_dependency 'guard'
gem.add_development_dependency 'guard-test'
+ gem.add_development_dependency 'rake'
end
| Add rake to development dependency for Travis-CI
|
diff --git a/app/models/plugin.rb b/app/models/plugin.rb
index abc1234..def5678 100644
--- a/app/models/plugin.rb
+++ b/app/models/plugin.rb
@@ -6,7 +6,7 @@ before_validation :default_attributes
before_validation :name, uniqueness: {scope: :district_id}
after_create :hook_created
- after_create :hook_updated
+... | Fix callback type -> after_update
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -4,6 +4,6 @@ license "Apache 2.0"
description "Provides LWRP's for managing Rackspace Cloud resources."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version ... | Fix for missing file on first converge
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -1,7 +1,7 @@ name 'reprepro'
maintainer 'Tim Smith'
maintainer_email 'tsmith@chef.io'
-license 'Apache 2.0'
+license 'Apache-2.0'
description 'Installs/Configures reprepro for an apt repository'
long_descript... | Use SPDX standard license string
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/core/lib/spree/testing_support/factories/shipping_method_factory.rb b/core/lib/spree/testing_support/factories/shipping_method_factory.rb
index abc1234..def5678 100644
--- a/core/lib/spree/testing_support/factories/shipping_method_factory.rb
+++ b/core/lib/spree/testing_support/factories/shipping_method_fa... | Convert base_shipping_method factory into an alias
Base_shipping_method was invalid because it doesn't have a calculator.
base_shipping_method isn't used anywhere within core, but it could be
used other applications.
For both of these reasons, base_shipping_method is now an alias for
shipping_method, which is valid.... |
diff --git a/mol.gemspec b/mol.gemspec
index abc1234..def5678 100644
--- a/mol.gemspec
+++ b/mol.gemspec
@@ -17,6 +17,9 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
+ spec.add_dependency 'activesupport', '~> 4.0.4'
+ spec.add_dependency 'httparty', '~> 0.13.0... | Add httparty and active support gems |
diff --git a/db/data_migration/20190709094308_redirect_department_health_atom.rb b/db/data_migration/20190709094308_redirect_department_health_atom.rb
index abc1234..def5678 100644
--- a/db/data_migration/20190709094308_redirect_department_health_atom.rb
+++ b/db/data_migration/20190709094308_redirect_department_health... | Add migration to redirect atom feed
The atom feed was not redirected when the department was renamed
|
diff --git a/app/models/file_asset.rb b/app/models/file_asset.rb
index abc1234..def5678 100644
--- a/app/models/file_asset.rb
+++ b/app/models/file_asset.rb
@@ -9,8 +9,5 @@
has_many :variant_jobs, foreign_key: 'source_file_id', dependent: :nullify
- validates_attachment :resource,
- presence: true,
- s... | Allow reference file assets to be bigger than allowed.
|
diff --git a/app/models/import_log.rb b/app/models/import_log.rb
index abc1234..def5678 100644
--- a/app/models/import_log.rb
+++ b/app/models/import_log.rb
@@ -13,6 +13,9 @@ :updated, :user_id, :finished_at
attr_accessor :importer
+
+ default_scope order('finished_at DESC')
+
def complete!
... | Sort import logs by descending finished_at
|
diff --git a/rally_api.gemspec b/rally_api.gemspec
index abc1234..def5678 100644
--- a/rally_api.gemspec
+++ b/rally_api.gemspec
@@ -18,7 +18,7 @@ s.add_dependency('httpclient', '>= 2.2.4')
#s.files = `git ls-files`.split("\n")
- s.files = %w(README.md Rakefile) + Dir.glob("{lib}/**/*.rb").delete_if { |... | Change gemspec back to rdoc - readme.md is in examples not root dir
|
diff --git a/db/migrate/1431645077_add_length_validation.rb b/db/migrate/1431645077_add_length_validation.rb
index abc1234..def5678 100644
--- a/db/migrate/1431645077_add_length_validation.rb
+++ b/db/migrate/1431645077_add_length_validation.rb
@@ -0,0 +1,8 @@+Sequel.migration do
+ up do
+ execute <<-EOF
+ALTER TAB... | Add migration for field length restriction
|
diff --git a/events/lib/social_stream/events/models/actor.rb b/events/lib/social_stream/events/models/actor.rb
index abc1234..def5678 100644
--- a/events/lib/social_stream/events/models/actor.rb
+++ b/events/lib/social_stream/events/models/actor.rb
@@ -5,7 +5,8 @@ extend ActiveSupport::Concern
includ... | Remove rooms along with their owners
Fixes #440
|
diff --git a/bulk_updater.gemspec b/bulk_updater.gemspec
index abc1234..def5678 100644
--- a/bulk_updater.gemspec
+++ b/bulk_updater.gemspec
@@ -9,6 +9,7 @@ spec.author = "Alex Teut"
spec.email = ["jaturken@gmail.com"]
spec.summary = %q{Generate and execute SQL UPDATE for bulk updating mult... | Fix warnings while building gem
|
diff --git a/Casks/intellij-idea-ce.rb b/Casks/intellij-idea-ce.rb
index abc1234..def5678 100644
--- a/Casks/intellij-idea-ce.rb
+++ b/Casks/intellij-idea-ce.rb
@@ -1,6 +1,6 @@ cask :v1 => 'intellij-idea-ce' do
- version '14.1.3'
- sha256 'e0e21b9ee9ac881c10b62507eaae4c2dc651bee631fbb9a0fbac9a289d405616'
+ version '... | Update IntelliJ IDEA CE to 14.1.4
|
diff --git a/CSNotificationView.podspec b/CSNotificationView.podspec
index abc1234..def5678 100644
--- a/CSNotificationView.podspec
+++ b/CSNotificationView.podspec
@@ -5,8 +5,8 @@ s.homepage = "https://github.com/problame/CSNotificationView"
s.license = { :type => 'MIT License', :file => "LICENSE.md" }
... | Update podspec to be compatible with iOS 6
|
diff --git a/Set-1/2.rb b/Set-1/2.rb
index abc1234..def5678 100644
--- a/Set-1/2.rb
+++ b/Set-1/2.rb
@@ -6,9 +6,11 @@
public
def xor(str1, str2)
- h1 = treatAsHex str1
- h2 = treatAsHex str2
- (h1 ^ h2).to_s(16)
+ str1.scan(/\w\w/).zip(str2.scan(/\w\w/)).map { |s1_c, s2_c|
+ h1 = treatAsHex s1_c
+ h2 = tre... | Fix xor method to be able to take large strings as input
|
diff --git a/0_code_wars/format_words_into_a_sentence.rb b/0_code_wars/format_words_into_a_sentence.rb
index abc1234..def5678 100644
--- a/0_code_wars/format_words_into_a_sentence.rb
+++ b/0_code_wars/format_words_into_a_sentence.rb
@@ -0,0 +1,15 @@+# http://www.codewars.com/kata/51689e27fe9a00b126000004/
+# --- iterat... | Add code wars (6) - format words into a sentence
|
diff --git a/src/db/migrate/20111102125644_alter_metadata_object_value_limit.rb b/src/db/migrate/20111102125644_alter_metadata_object_value_limit.rb
index abc1234..def5678 100644
--- a/src/db/migrate/20111102125644_alter_metadata_object_value_limit.rb
+++ b/src/db/migrate/20111102125644_alter_metadata_object_value_limi... | Change sql statement to use rails helpers.
This cause migration to fail on sqlite, due to syntax
differences between RDBMSs.
|
diff --git a/lib/country_code_select/instance_tag.rb b/lib/country_code_select/instance_tag.rb
index abc1234..def5678 100644
--- a/lib/country_code_select/instance_tag.rb
+++ b/lib/country_code_select/instance_tag.rb
@@ -17,7 +17,11 @@ end
countries = countries + options_for_select(COUNTRIES, selected)
- c... | Check to see if we are in Rails 3 or not and use the correct content_tag call.
|
diff --git a/lib/fog/google/models/compute/images.rb b/lib/fog/google/models/compute/images.rb
index abc1234..def5678 100644
--- a/lib/fog/google/models/compute/images.rb
+++ b/lib/fog/google/models/compute/images.rb
@@ -12,6 +12,7 @@ GLOBAL_PROJECTS = [ 'google',
'debian-cloud',
... | [google][compute] Add rhel-cloud to project search list
|
diff --git a/lib/generators/typus/views_generator.rb b/lib/generators/typus/views_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/typus/views_generator.rb
+++ b/lib/generators/typus/views_generator.rb
@@ -14,7 +14,10 @@
def copy_views
directory "admin", "app/views/admin"
- direct... | Copy all layouts under the layouts folder.
|
diff --git a/app/helpers/bootstrap_flash_helper.rb b/app/helpers/bootstrap_flash_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/bootstrap_flash_helper.rb
+++ b/app/helpers/bootstrap_flash_helper.rb
@@ -1,12 +1,12 @@ module BootstrapFlashHelper
- ALERT_TYPES = [:error, :info, :success, :warning]
+ ALERT_TYP... | Update error flash class by official documentation |
diff --git a/config/boot.rb b/config/boot.rb
index abc1234..def5678 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -1,4 +1,9 @@ require 'rubygems'
+
+# Need to explicitly use syck for yaml
+require 'yaml'
+YAML::ENGINE.yamler = 'syck'
+
# Set up gems listed in the Gemfile.
if File.exist?(File.expand_path('../../... | Use syck for yaml, fixes an issuew with new delayed job.
|
diff --git a/rails_event_store-rspec/lib/rails_event_store/rspec/have_applied.rb b/rails_event_store-rspec/lib/rails_event_store/rspec/have_applied.rb
index abc1234..def5678 100644
--- a/rails_event_store-rspec/lib/rails_event_store/rspec/have_applied.rb
+++ b/rails_event_store-rspec/lib/rails_event_store/rspec/have_ap... | Add description to HaveApplied matcher for doc format
|
diff --git a/config/rake.rb b/config/rake.rb
index abc1234..def5678 100644
--- a/config/rake.rb
+++ b/config/rake.rb
@@ -5,7 +5,7 @@ # Used with the ssl_cert task.
###
-# The company name - used for SSL certificates, and in srvious other places
+# The company name - used for SSL certificates, and in various other pl... | Fix a minor typo in a comment: srvious => various |
diff --git a/lib/geocoder/results/bing.rb b/lib/geocoder/results/bing.rb
index abc1234..def5678 100644
--- a/lib/geocoder/results/bing.rb
+++ b/lib/geocoder/results/bing.rb
@@ -4,48 +4,45 @@ class Bing < Base
def address(format = :full)
- data_address['formattedAddress']
+ @data['address']['formatted... | Refactor for consistency with other Results.
|
diff --git a/lib/mangos/mangos_package.rb b/lib/mangos/mangos_package.rb
index abc1234..def5678 100644
--- a/lib/mangos/mangos_package.rb
+++ b/lib/mangos/mangos_package.rb
@@ -18,8 +18,23 @@ end
def update_app
- FileUtils.cp_r(Mangos::Mangos.gem_path + "app/.", mangos_path)
- FileUtils.chmod_R(0755, mango... | Add development mode, and symlink the app files into the gem in development mode only
|
diff --git a/lib/pacer/core/hash_route.rb b/lib/pacer/core/hash_route.rb
index abc1234..def5678 100644
--- a/lib/pacer/core/hash_route.rb
+++ b/lib/pacer/core/hash_route.rb
@@ -2,7 +2,27 @@ module Core
module HashRoute
def lengths
- map(element_type: :integer) { |s| s.length }
+ map(element_... | Add some hash route methods. |
diff --git a/lib/primehosting/database.rb b/lib/primehosting/database.rb
index abc1234..def5678 100644
--- a/lib/primehosting/database.rb
+++ b/lib/primehosting/database.rb
@@ -1,9 +1,7 @@-require 'highline/import'
-
Capistrano::Configuration.instance(true).load do
set :database_name, nil
- set :database_user, Pro... | Tweak configure task, set it to run after deploy:setup
|
diff --git a/lib/ubuntu_unused_kernels.rb b/lib/ubuntu_unused_kernels.rb
index abc1234..def5678 100644
--- a/lib/ubuntu_unused_kernels.rb
+++ b/lib/ubuntu_unused_kernels.rb
@@ -23,7 +23,10 @@ end
def get_current
- return '', ''
+ uname = Open3.capture2('uname', '-r').first.chomp
+ match = unam... | Implement happy path for get_current.
|
diff --git a/lib/yao/resources/keypair.rb b/lib/yao/resources/keypair.rb
index abc1234..def5678 100644
--- a/lib/yao/resources/keypair.rb
+++ b/lib/yao/resources/keypair.rb
@@ -6,8 +6,8 @@ self.resource_name = "os-keypair"
self.resources_name = "os-keypairs"
- def self.list
- super.map{|r| r[resourc... | Fix Yao::Keypair.list would not return instances themselves
|
diff --git a/lib/proxy_pac_rb/rspec/matchers/proxy.rb b/lib/proxy_pac_rb/rspec/matchers/proxy.rb
index abc1234..def5678 100644
--- a/lib/proxy_pac_rb/rspec/matchers/proxy.rb
+++ b/lib/proxy_pac_rb/rspec/matchers/proxy.rb
@@ -13,6 +13,8 @@ @file_a == @file_b
end
+ diffable
+
failure_message do
format(%... | Make the output a diff
|
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
@@ -10,7 +10,7 @@
mutant_present = defined?(Mutant)
- if allowed_versions.include?(Devtools.rvm) and mutant_present and !ENV['DEVTOOLS_SELF']
+ if allo... | Change boolean conditions to use && and not "and"
|
diff --git a/Casks/duckietv.rb b/Casks/duckietv.rb
index abc1234..def5678 100644
--- a/Casks/duckietv.rb
+++ b/Casks/duckietv.rb
@@ -2,7 +2,7 @@ version '1.1.3'
sha256 '4c4ee965cf39db6333dad65fe2b56ebf412af490a1b091487ef5d1fe8989b359'
- # schizoduckie.github.io/DuckieTV was verified as official homepage when fi... | Fix `url` stanza comment for duckieTV.
|
diff --git a/Casks/stackato.rb b/Casks/stackato.rb
index abc1234..def5678 100644
--- a/Casks/stackato.rb
+++ b/Casks/stackato.rb
@@ -1,11 +1,11 @@ cask :v1 => 'stackato' do
- version '3.2.0'
- sha256 'ba54288e3770c3ad8928c0ad3b5904b552dbe32e2748ed724a38fcb2efc4fb8c'
+ version '3.2.1'
+ sha256 'a2f3eceac381bf018a843... | Update Stackato CLI to v3.2.1
|
diff --git a/lib/issues.rb b/lib/issues.rb
index abc1234..def5678 100644
--- a/lib/issues.rb
+++ b/lib/issues.rb
@@ -1,5 +1,24 @@+$LOAD_PATH.unshift(File.dirname(__FILE__))
+
+require 'pry'
+require 'httparty'
+
require "issues/version"
module Issues
- # Your code goes here...
+ class Github
+ include HTTParty... | Add Github class with basic auth and some simple GET methods.
|
diff --git a/lib/quotes.rb b/lib/quotes.rb
index abc1234..def5678 100644
--- a/lib/quotes.rb
+++ b/lib/quotes.rb
@@ -5,6 +5,7 @@
require "quotes/entities"
require "quotes/services"
+require "quotes/use_cases"
module Quotes
end
| Add use_cases to manifest file
|
diff --git a/AZTabBar.podspec b/AZTabBar.podspec
index abc1234..def5678 100644
--- a/AZTabBar.podspec
+++ b/AZTabBar.podspec
@@ -9,4 +9,5 @@ s.source = { :git => "https://github.com/Minitour/AZTabBarController.git", :tag => "#{s.version}" }
s.source_files = "Sources/**/*.swift"
#s.resources = "Sources/*... | Revert "Removed `EasyNotificationBadge` from podspec dependency."
This reverts commit 5897b8f8a3d2c82a2038987fd36b31197818ded4.
|
diff --git a/detour.gemspec b/detour.gemspec
index abc1234..def5678 100644
--- a/detour.gemspec
+++ b/detour.gemspec
@@ -20,12 +20,12 @@
spec.add_dependency "rails", "~> 3.2.16"
+ spec.add_development_dependency "capybara"
+ spec.add_development_dependency "database_cleaner", "~> 1.2.0"
+ spec.add_development_... | Use pry-nav instead of pry-debugger
|
diff --git a/spec/acceptance/011_service_spec.rb b/spec/acceptance/011_service_spec.rb
index abc1234..def5678 100644
--- a/spec/acceptance/011_service_spec.rb
+++ b/spec/acceptance/011_service_spec.rb
@@ -16,7 +16,7 @@
context "Change the defaults file" do
it 'should run successfully' do
- pp = "cla... | Make sure we test the right thing
|
diff --git a/spec/features/users_feature_spec.rb b/spec/features/users_feature_spec.rb
index abc1234..def5678 100644
--- a/spec/features/users_feature_spec.rb
+++ b/spec/features/users_feature_spec.rb
@@ -0,0 +1,39 @@+require 'rails_helper'
+
+feature "User visits the website" do
+ scenario "when user signs up" do
+ ... | Add feature tests for users
|
diff --git a/app/mutations/task/notifications/invitation_email.rb b/app/mutations/task/notifications/invitation_email.rb
index abc1234..def5678 100644
--- a/app/mutations/task/notifications/invitation_email.rb
+++ b/app/mutations/task/notifications/invitation_email.rb
@@ -6,23 +6,24 @@ end
def execute
- invit... | Simplify invitation email even more |
diff --git a/Support/lib/rspec/mate.rb b/Support/lib/rspec/mate.rb
index abc1234..def5678 100644
--- a/Support/lib/rspec/mate.rb
+++ b/Support/lib/rspec/mate.rb
@@ -2,7 +2,5 @@
ENV['TM_PROJECT_DIRECTORY'] ||= File.dirname(ENV['TM_FILEPATH'])
-$LOAD_PATH.unshift(File.dirname(__FILE__) + '/..')
-
-require 'rspec/mate... | Use require_relative instead of messing with $LOAD_PATH
|
diff --git a/lib/adhearsion/foundation/exception_handler.rb b/lib/adhearsion/foundation/exception_handler.rb
index abc1234..def5678 100644
--- a/lib/adhearsion/foundation/exception_handler.rb
+++ b/lib/adhearsion/foundation/exception_handler.rb
@@ -3,7 +3,7 @@ begin
yield
rescue StandardError => e
- ... | Fix exception handler helper method |
diff --git a/react-native-mixpanel.podspec b/react-native-mixpanel.podspec
index abc1234..def5678 100644
--- a/react-native-mixpanel.podspec
+++ b/react-native-mixpanel.podspec
@@ -10,4 +10,5 @@ s.source_files = 'RNMixpanel/*'
s.platform = :ios, "7.0"
s.dependency 'Mixpanel'
+ s.dependency 'React'
end
| Bring back React as a dependency of the cocoapod
The pod is unable to reference RN's headers when compiled as a framework without RN as a dependency.
Fixes errors like:
```
RNMixpanel.h:9:9: 'RCTBridgeModule.h' file not found
```
|
diff --git a/lib/nfg-rest-client/models/base_transaction.rb b/lib/nfg-rest-client/models/base_transaction.rb
index abc1234..def5678 100644
--- a/lib/nfg-rest-client/models/base_transaction.rb
+++ b/lib/nfg-rest-client/models/base_transaction.rb
@@ -15,10 +15,18 @@ errorDetails.map { |error| "#{error['code']}: #{e... | Allow the bearer to be set on the instance in addition to the class
|
diff --git a/app/models/obs_factory/distribution_strategy_factory_ppc.rb b/app/models/obs_factory/distribution_strategy_factory_ppc.rb
index abc1234..def5678 100644
--- a/app/models/obs_factory/distribution_strategy_factory_ppc.rb
+++ b/app/models/obs_factory/distribution_strategy_factory_ppc.rb
@@ -19,6 +19,10 @@ ... | Set TW version for PowerPC
Signed-off-by: Dinar Valeev <5117617bf147dfe0d669bc60877f607cdec8696e@suse.com>
|
diff --git a/HUDHelper.podspec b/HUDHelper.podspec
index abc1234..def5678 100644
--- a/HUDHelper.podspec
+++ b/HUDHelper.podspec
@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'HUDHelper'
- s.version = '0.3.0'
+ s.version = '0.3.1'
s.summary = 'A wrapper of method chainin... | Update the version to 0.3.1 in podspec.
|
diff --git a/lib/netsuite/records/journal_entry.rb b/lib/netsuite/records/journal_entry.rb
index abc1234..def5678 100644
--- a/lib/netsuite/records/journal_entry.rb
+++ b/lib/netsuite/records/journal_entry.rb
@@ -39,6 +39,10 @@ "Transaction"
end
+ def self.search_class_namespace
+ "tranSale... | Add search namespace override to JournalEntry
The namespace for JournalEntry is tranGeneral, but it's search falls under the Transaction schema with the namespace tranSales. Add a search_class_namespace override to make this work properly.
|
diff --git a/mixlib-log.gemspec b/mixlib-log.gemspec
index abc1234..def5678 100644
--- a/mixlib-log.gemspec
+++ b/mixlib-log.gemspec
@@ -15,5 +15,6 @@ gem.files = Dir["lib/**/*"] + Dir["spec/**/*"] + ["Gemfile", "Rakefile", ".gemtest", "mixlib-log.gemspec"]
gem.add_development_dependency "rake"
gem.add_developm... | Add dev dependency on chefstyle
|
diff --git a/slickbone.gemspec b/slickbone.gemspec
index abc1234..def5678 100644
--- a/slickbone.gemspec
+++ b/slickbone.gemspec
@@ -3,15 +3,15 @@ require "slickbone/version"
Gem::Specification.new do |s|
- s.name = "slickbone-rails"
+ s.name = "slickbone"
s.version = Slickbone::VERSION
s.a... | Drop -rails from the name.
|
diff --git a/app/jobs/cache_browser_channels_json_job.rb b/app/jobs/cache_browser_channels_json_job.rb
index abc1234..def5678 100644
--- a/app/jobs/cache_browser_channels_json_job.rb
+++ b/app/jobs/cache_browser_channels_json_job.rb
@@ -3,7 +3,7 @@
def perform
channels_json = JsonBuilders::ChannelsJsonBuilder.... | Add the result to the log
|
diff --git a/lib/hooks/view_layouts_base_html_head_hook.rb b/lib/hooks/view_layouts_base_html_head_hook.rb
index abc1234..def5678 100644
--- a/lib/hooks/view_layouts_base_html_head_hook.rb
+++ b/lib/hooks/view_layouts_base_html_head_hook.rb
@@ -3,6 +3,7 @@ class ViewLayoutsBaseHtmlHeadHook < Redmine::Hook::ViewList... | Support for redmine_contacts has been added
|
diff --git a/plugins/twemproxy/twemproxy-graphite.rb b/plugins/twemproxy/twemproxy-graphite.rb
index abc1234..def5678 100644
--- a/plugins/twemproxy/twemproxy-graphite.rb
+++ b/plugins/twemproxy/twemproxy-graphite.rb
@@ -0,0 +1,89 @@+#!/usr/bin/env ruby
+#
+# Push twemproxy stats into graphite
+# ===
+#
+# DESCRIPTION:... | Add twemproxy to graphite plugin.
|
diff --git a/0_code_wars/which_are_in.rb b/0_code_wars/which_are_in.rb
index abc1234..def5678 100644
--- a/0_code_wars/which_are_in.rb
+++ b/0_code_wars/which_are_in.rb
@@ -0,0 +1,8 @@+# http://www.codewars.com/kata/550554fd08b86f84fe000a58/
+# --- iteration 1 ---
+def in_array(a1, a2)
+ return [] if a1.empty?
+ a1.s... | Add code wars (6) - which are in
|
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
@@ -1,6 +1,7 @@ FactoryGirl.define do
factory :task do
title "MyString"
+ description 'Awesome project'
milestone_id 1
assigned_user_id 1
sta... | Add description to task factory.
|
diff --git a/mrblib/ary.rb b/mrblib/ary.rb
index abc1234..def5678 100644
--- a/mrblib/ary.rb
+++ b/mrblib/ary.rb
@@ -5,13 +5,9 @@
def to_v
if size == 0
- Vec::new 0.0, 0.0, 0.0
+ Vec::zero
else
- x = 0.0, y = 0.0, z = 0.0
- if size > 0 then x = self[0].to_f end
- if size > 1 then ... | Fix a critical bug on Array ex class.
|
diff --git a/examples/fizzbuzz.rb b/examples/fizzbuzz.rb
index abc1234..def5678 100644
--- a/examples/fizzbuzz.rb
+++ b/examples/fizzbuzz.rb
@@ -1,5 +1,6 @@ subject "FizzBuzz (1 ~ 15)"
-expected <<EOS
+
+__END__
1
2
Fizz
@@ -15,4 +16,3 @@ 13
14
FizzBuzz
-EOS
| Fix style of FizzBuzz problem example
|
diff --git a/ruby-review/inheritance.rb b/ruby-review/inheritance.rb
index abc1234..def5678 100644
--- a/ruby-review/inheritance.rb
+++ b/ruby-review/inheritance.rb
@@ -3,12 +3,12 @@ # I worked on this challenge [by myself, with: ].
-# 1. Pseudocode
+# Pseudocode
-# 2. Initial Solution
+# Initial Solution
... | Remove driver code section and numbering |
diff --git a/spec/requests/request_throttling_spec.rb b/spec/requests/request_throttling_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/request_throttling_spec.rb
+++ b/spec/requests/request_throttling_spec.rb
@@ -3,6 +3,10 @@ describe 'throttling for xml requests' do
let(:limit) { configatron.direct_au... | 203: Add throttling test for noauth/submission
|
diff --git a/spec/thousand_island/style_sheet_spec.rb b/spec/thousand_island/style_sheet_spec.rb
index abc1234..def5678 100644
--- a/spec/thousand_island/style_sheet_spec.rb
+++ b/spec/thousand_island/style_sheet_spec.rb
@@ -2,7 +2,7 @@ describe StyleSheet do
let(:subject) do
dummy = Class.new
- dumm... | Fix test to deal with access control issue in older Ruby versions
|
diff --git a/db/feature_migrate/20120426073305_create_backlogs.rb b/db/feature_migrate/20120426073305_create_backlogs.rb
index abc1234..def5678 100644
--- a/db/feature_migrate/20120426073305_create_backlogs.rb
+++ b/db/feature_migrate/20120426073305_create_backlogs.rb
@@ -14,7 +14,6 @@ backlog = Backlog.cr... | Remove new issues list from migration
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.