diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/controllers/concerns/school_aggregation.rb b/app/controllers/concerns/school_aggregation.rb
index abc1234..def5678 100644
--- a/app/controllers/concerns/school_aggregation.rb
+++ b/app/controllers/concerns/school_aggregation.rb
@@ -7,7 +7,7 @@ cache_key = "#{school.name.parameterize}-aggregated_met... | Use old validate and aggregate for analysis
|
diff --git a/lib/voluntary_ranking/engine.rb b/lib/voluntary_ranking/engine.rb
index abc1234..def5678 100644
--- a/lib/voluntary_ranking/engine.rb
+++ b/lib/voluntary_ranking/engine.rb
@@ -2,9 +2,13 @@ class Engine < ::Rails::Engine
config.autoload_paths << File.expand_path("../..", __FILE__)
config.autoloa... | Include ranking module in user through config.to_prepare.
|
diff --git a/readme_tracker.gemspec b/readme_tracker.gemspec
index abc1234..def5678 100644
--- a/readme_tracker.gemspec
+++ b/readme_tracker.gemspec
@@ -4,22 +4,24 @@ require 'readme_tracker/version'
Gem::Specification.new do |spec|
- spec.name = "readme_tracker"
+ spec.name = 'readme_tracker'
... | Refactor gemspec and add slop
|
diff --git a/app/models/chouette/journey_pattern_section.rb b/app/models/chouette/journey_pattern_section.rb
index abc1234..def5678 100644
--- a/app/models/chouette/journey_pattern_section.rb
+++ b/app/models/chouette/journey_pattern_section.rb
@@ -6,4 +6,13 @@ validates :route_section_id, presence: true
validates... | Add method to create by rank
|
diff --git a/config/initializers/mixpanel.rb b/config/initializers/mixpanel.rb
index abc1234..def5678 100644
--- a/config/initializers/mixpanel.rb
+++ b/config/initializers/mixpanel.rb
@@ -1,3 +1,3 @@-unless [:development, :test].include?(Rails.env.to_sym)
+if defined?(Mixpanel)
$mixpanel = Mixpanel::Tracker.new('2e... | Make the server work properly
|
diff --git a/spec/integration/error_spec.rb b/spec/integration/error_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/error_spec.rb
+++ b/spec/integration/error_spec.rb
@@ -22,8 +22,10 @@ it 'raises an error with console output' do
expect{|b| linter.lint([file], container, options, &b)}.to ra... | Make error spec work on circle
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -22,5 +22,8 @@
# Do not swallow errors in after_commit/after_rollback callbacks.
config.active_record.raise_in_transactional_callbacks = true
+
+ # Config... | Add filtred Password in log file
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -22,6 +22,6 @@
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
- DEMONET_VERSION = 0.1.0
+ DEMONET_VERSION = "0.1.0"
end
end
| Fix SyntaxError in version number
|
diff --git a/texter.gemspec b/texter.gemspec
index abc1234..def5678 100644
--- a/texter.gemspec
+++ b/texter.gemspec
@@ -1,8 +1,8 @@-# -*- encoding: utf-8 -*-
+# encoding: UTF-8
require File.expand_path('../lib/texter/version', __FILE__)
Gem::Specification.new do |gem|
- gem.authors = ["J. Pablo Fernández"]... | Change how encoding is specified. |
diff --git a/app/decorators/article/post_decorator.rb b/app/decorators/article/post_decorator.rb
index abc1234..def5678 100644
--- a/app/decorators/article/post_decorator.rb
+++ b/app/decorators/article/post_decorator.rb
@@ -2,22 +2,22 @@ module Article::PostDecorator
def byline
content_tag(:p, class: 'byline')... | Fix showing excerpt in posts lists
|
diff --git a/spec/freebsd/ntp_spec.rb b/spec/freebsd/ntp_spec.rb
index abc1234..def5678 100644
--- a/spec/freebsd/ntp_spec.rb
+++ b/spec/freebsd/ntp_spec.rb
@@ -0,0 +1,12 @@+require 'spec_helper'
+
+# Tests to ensure ntp is locked down
+
+describe file('/etc/ntp.conf') do
+ it { should be_file }
+ it { should contain... | Add tests to ensure ntp is locked down
|
diff --git a/06_light_grid.rb b/06_light_grid.rb
index abc1234..def5678 100644
--- a/06_light_grid.rb
+++ b/06_light_grid.rb
@@ -0,0 +1,27 @@+COMMAND = /^(?:turn )?(on|off|toggle) (\d+),(\d+) through (\d+),(\d+)$/
+
+def new_grid; Array.new(1000) { Array.new(1000, 0) }; end
+
+puts ARGF.each_line.with_object([new_grid,... | Add day 06: Light Grid
|
diff --git a/lib/neptune/api.rb b/lib/neptune/api.rb
index abc1234..def5678 100644
--- a/lib/neptune/api.rb
+++ b/lib/neptune/api.rb
@@ -8,6 +8,7 @@ module Neptune
module Api
NAMES = {
+ consumer_metadata: ConsumerMetadata,
fetch: Fetch,
metadata: Metadata,
offset: Offset,
| Add ConsumerMetadata to Api lookups
|
diff --git a/app/jobs/send_single_triage_email_job.rb b/app/jobs/send_single_triage_email_job.rb
index abc1234..def5678 100644
--- a/app/jobs/send_single_triage_email_job.rb
+++ b/app/jobs/send_single_triage_email_job.rb
@@ -2,10 +2,16 @@ def perform(id)
repo_sub = RepoSubscription.includes(:user, :repo).find(id... | Use private method for assignment definition
|
diff --git a/lib/polyamorous.rb b/lib/polyamorous.rb
index abc1234..def5678 100644
--- a/lib/polyamorous.rb
+++ b/lib/polyamorous.rb
@@ -8,15 +8,9 @@ OuterJoin = Arel::Nodes::OuterJoin
end
- if defined?(::ActiveRecord::Associations::JoinDependency)
- JoinDependency = ::ActiveRecord::Associations::... | Remove unused constant aliases for `ActiveRecord::Associations::ClassMethods::*`
`ActiveRecord::Associations::ClassMethods::*` had already been moved to
`ActiveRecord::Associations::*` since Rails 3.1.
See https://github.com/rails/rails/commit/b171b9e73dcc6a89b1da652da61c5127fe605b51
|
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
@@ -3,11 +3,11 @@ module TicTacToe
# Your code goes here...
class Board
- def pos coords
+ def pos index
" "
end
- def move coords, mark
+ def move index, ... | Change variable name passed to methods
|
diff --git a/lib/wukong/boot.rb b/lib/wukong/boot.rb
index abc1234..def5678 100644
--- a/lib/wukong/boot.rb
+++ b/lib/wukong/boot.rb
@@ -1,6 +1,6 @@ require 'yaml'
module Wukong
- CONFIG_FILE_LOCATION=File.dirname(__FILE__)+'/../config'
+ CONFIG_FILE_LOCATION=File.dirname(__FILE__)+'/../../config'
CONFIG = {... | Adjust config path for new code location
|
diff --git a/examples/preapproval/search/search_by_subscription_code.rb b/examples/preapproval/search/search_by_subscription_code.rb
index abc1234..def5678 100644
--- a/examples/preapproval/search/search_by_subscription_code.rb
+++ b/examples/preapproval/search/search_by_subscription_code.rb
@@ -6,12 +6,44 @@ #
# P.S:... | Add details to search by subscription code
|
diff --git a/Casks/freecad.rb b/Casks/freecad.rb
index abc1234..def5678 100644
--- a/Casks/freecad.rb
+++ b/Casks/freecad.rb
@@ -2,6 +2,7 @@ version '0.16-6705.acfe417'
sha256 '7ddd1dc718b9338bc3581f02f107a80d3dfe3dfe147f7dcd7c5d28af864654f9'
+ # github.com/FreeCAD/FreeCAD was verified as official when first in... | Fix `url` stanza comment for FreeCAD.
|
diff --git a/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb b/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
index abc1234..def5678 100644
--- a/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb
+++ b/activesupport/lib/active_support/cache/compressed_mem_ca... | Revert "Ensure MemCacheStore is required when using CompressedMemCacheStore since they are lazy load now."
This reverts commit dd4181f47dc0f166eb5d3e47a4a0dc1594cc5669.
|
diff --git a/Casks/osxfuse.rb b/Casks/osxfuse.rb
index abc1234..def5678 100644
--- a/Casks/osxfuse.rb
+++ b/Casks/osxfuse.rb
@@ -2,7 +2,7 @@ version '2.8.3'
sha256 'b0f05fa6e74372b73417e89bfd103a46a0b968239f03832755e424bec09051e6'
- # sourceforge.net/project/osxfuse was verified as official when first introduce... | Fix `url` stanza comment for OSXFUSE.
|
diff --git a/db/migrate/20180326202229_create_ci_job_trace_chunks.rb b/db/migrate/20180326202229_create_ci_job_trace_chunks.rb
index abc1234..def5678 100644
--- a/db/migrate/20180326202229_create_ci_job_trace_chunks.rb
+++ b/db/migrate/20180326202229_create_ci_job_trace_chunks.rb
@@ -8,7 +8,9 @@ t.integer :job_id... | Use MEDIUMTEXT(16MB) type when Mysql is used
|
diff --git a/lib/message_hub.rb b/lib/message_hub.rb
index abc1234..def5678 100644
--- a/lib/message_hub.rb
+++ b/lib/message_hub.rb
@@ -11,6 +11,15 @@ require 'message_hub/providers/facebook'
module MessageHub
+ #####
+ # Usage:
+ #
+ # gmail = MessageHub.provider(:gmail)
+ # gmail.login(:username => "logi... | Add a little note explaining how to use it.
|
diff --git a/lib/proteus/cli.rb b/lib/proteus/cli.rb
index abc1234..def5678 100644
--- a/lib/proteus/cli.rb
+++ b/lib/proteus/cli.rb
@@ -3,8 +3,6 @@
module Proteus
class CLI < Thor
- package_name "proteus"
-
desc "init", "Initialize a basic configuration"
def init
#TODO:
| Remove the package_name to support older versions of thor. Don't really need it anyway
|
diff --git a/stack_queue.rb b/stack_queue.rb
index abc1234..def5678 100644
--- a/stack_queue.rb
+++ b/stack_queue.rb
@@ -0,0 +1,47 @@+require_relative "stack"
+
+class StackQueue
+ class UnderflowError < StandardError; end
+
+ def initialize
+ @stack_1 = Stack.new
+ @stack_2 = Stack.new
+ end
+
+ def enqueue(... | Implement queue using two stacks
|
diff --git a/spec/controllers/availabilities_controller_spec.rb b/spec/controllers/availabilities_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/availabilities_controller_spec.rb
+++ b/spec/controllers/availabilities_controller_spec.rb
@@ -2,4 +2,33 @@
RSpec.describe AvailabilitiesController,... | Add basic tests for availabilities controller
|
diff --git a/app/abilities/scraper_ability.rb b/app/abilities/scraper_ability.rb
index abc1234..def5678 100644
--- a/app/abilities/scraper_ability.rb
+++ b/app/abilities/scraper_ability.rb
@@ -9,24 +9,24 @@ sig { params(owner: T.nilable(Owner)).void }
def initialize(owner)
# Everyone can list all (non private... | Use cancancan baked-in aliases to simplify further
|
diff --git a/everything-core.gemspec b/everything-core.gemspec
index abc1234..def5678 100644
--- a/everything-core.gemspec
+++ b/everything-core.gemspec
@@ -23,6 +23,6 @@
spec.add_development_dependency 'bundler', '~> 1.11'
spec.add_development_dependency 'rake', '~> 10.5'
- spec.add_development_dependency 'rsp... | Update gem's rspec dependency version
|
diff --git a/cookbooks/checkers/metadata.rb b/cookbooks/checkers/metadata.rb
index abc1234..def5678 100644
--- a/cookbooks/checkers/metadata.rb
+++ b/cookbooks/checkers/metadata.rb
@@ -4,3 +4,5 @@ license 'X11/MIT'
description 'Installs all syntax checkers supported by Flycheck'
version '0.1.0'... | Add missing apt dependency to checkers cookbook
|
diff --git a/SwiftFlowRecorder.podspec b/SwiftFlowRecorder.podspec
index abc1234..def5678 100644
--- a/SwiftFlowRecorder.podspec
+++ b/SwiftFlowRecorder.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "SwiftFlowRecorder"
- s.version = "0.2.0"
+ s.version = "0.2"
s.summary ... | [CocoaPods] Fix Version Number in Podspec
|
diff --git a/test/test_gen.rb b/test/test_gen.rb
index abc1234..def5678 100644
--- a/test/test_gen.rb
+++ b/test/test_gen.rb
@@ -19,13 +19,13 @@ end
def test_gen_should_raise_an_exception_if_the_given_options_are_duplicated
- e = assert_raise(RandomToken::RandomTokenError) { RandomToken.gen(8, s: :a, seed: :o... | Change hash style to 1.8.7 in tests
DESC:
[Change]
1. Change hash style to 1.8.7 in tests
For testing 1.8.7
|
diff --git a/spec/chatrix/errors_spec.rb b/spec/chatrix/errors_spec.rb
index abc1234..def5678 100644
--- a/spec/chatrix/errors_spec.rb
+++ b/spec/chatrix/errors_spec.rb
@@ -1,5 +1,5 @@ describe Chatrix::RequestError do
- let(:response) { { 'errcode' => 666, 'error' => 'my error' } }
+ let(:response) { { 'errcode' => ... | Use a string for error code in tests
|
diff --git a/mediacloth.gemspec b/mediacloth.gemspec
index abc1234..def5678 100644
--- a/mediacloth.gemspec
+++ b/mediacloth.gemspec
@@ -2,7 +2,7 @@
SPEC = Gem::Specification.new do |s|
s.name = "mediacloth"
- s.version = "0.5"
+ s.version = "0.6"
s.author = "Pluron Inc."
s.email ... | Bump version number to 0.6
|
diff --git a/spec/system/haproxy_spec.rb b/spec/system/haproxy_spec.rb
index abc1234..def5678 100644
--- a/spec/system/haproxy_spec.rb
+++ b/spec/system/haproxy_spec.rb
@@ -4,7 +4,7 @@
RSpec.describe "haproxy" do
- let(:management_uri) { 'http://10.244.16.3:15672' }
+ let(:management_uri) { "http://#{environment.... | Read haproxy static_ips from manifest in test
[#148579027]
Signed-off-by: Diego Lemos <48d75b1e8d05d722a97d5c3ce49024e6a466bebe@pivotal.io>
|
diff --git a/test/helper.rb b/test/helper.rb
index abc1234..def5678 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -1,8 +1,6 @@ $:.unshift(File.expand_path("../lib", File.dirname(__FILE__)))
-puts "!! REMOVE THIS IN LINE: #{__LINE__} of #{__FILE__}"
-$:.unshift("/Users/cyx/Labs/shield/lib")
-
+require "shield"
... | Remove the hard coded require.
|
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -7,8 +7,11 @@ class MiniTest::Unit::TestCase
include Mocha::API
+ def setup
+ mocha_teardown
+ end
+
def teardown
mocha_verify
- mocha_teardown
end
end
| Fix mocha teardown to not fail all following tests
|
diff --git a/app/helpers/db_helpers.rb b/app/helpers/db_helpers.rb
index abc1234..def5678 100644
--- a/app/helpers/db_helpers.rb
+++ b/app/helpers/db_helpers.rb
@@ -1,7 +1,7 @@ module DbHelpers
def db_concat(*args)
env = ENV['RAILS_ENV'] || 'development'
- adapter = ActiveRecord::Base.configurations.configs_... | CONFIG: Update method to get database adapter
|
diff --git a/lib/did_you_mean/strategies/similar_attribute_finder.rb b/lib/did_you_mean/strategies/similar_attribute_finder.rb
index abc1234..def5678 100644
--- a/lib/did_you_mean/strategies/similar_attribute_finder.rb
+++ b/lib/did_you_mean/strategies/similar_attribute_finder.rb
@@ -27,14 +27,10 @@ end
def ... | Remove method that doesn't have to be a method
|
diff --git a/lib/allowing/wrappers/wrapper.rb b/lib/allowing/wrappers/wrapper.rb
index abc1234..def5678 100644
--- a/lib/allowing/wrappers/wrapper.rb
+++ b/lib/allowing/wrappers/wrapper.rb
@@ -1,10 +1,6 @@-require 'allowing/extensions/string'
-
module Allowing
module Wrappers
class Wrapper
- using Extensi... | Remove unused string extensions from Wrapper
|
diff --git a/lib/piggybak_braintree/engine.rb b/lib/piggybak_braintree/engine.rb
index abc1234..def5678 100644
--- a/lib/piggybak_braintree/engine.rb
+++ b/lib/piggybak_braintree/engine.rb
@@ -1,4 +1,5 @@ require 'piggybak_braintree/payment_decorator'
+require 'piggybak_braintree/orders_controller_decorator'
module ... | Add require for controller decorator
|
diff --git a/script/cruise_build.rb b/script/cruise_build.rb
index abc1234..def5678 100644
--- a/script/cruise_build.rb
+++ b/script/cruise_build.rb
@@ -10,9 +10,15 @@
case project_name
when "racing_on_rails"
- # Nothing else to get
+ exec("rake cruise")
+when "aba"
+ exec("svn co svn+ssh://butlerpress.com/var/re... | Add rake back for racing_on_rals project. Add all the projects.
git-svn-id: 96bd6241e080dd4199045f7177cf3384e2eaed71@1424 2d86388d-c40f-0410-ad6a-a69da6a65d20
|
diff --git a/script/ram/ws_test2.rb b/script/ram/ws_test2.rb
index abc1234..def5678 100644
--- a/script/ram/ws_test2.rb
+++ b/script/ram/ws_test2.rb
@@ -0,0 +1,9 @@+#!/usr/bin/ruby -w
+
+require 'xmlrpc/client'
+
+server = XMLRPC::Client.new2("http://localhost:3030/services/api")
+
+# Using proxy
+ws = server.proxy('as... | Test script for fetching file and saving it locally
git-svn-id: 035394e0ea20290a56a73539b1ebfcd8236adefd@1322 7bd17f4f-1217-0410-bbc5-bc4367116c30
|
diff --git a/app/controllers/about_sections_controller.rb b/app/controllers/about_sections_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/about_sections_controller.rb
+++ b/app/controllers/about_sections_controller.rb
@@ -6,7 +6,7 @@ @users = User.regular_staff.with_category.order(:first_name)
... | Sort vacancies on about page
|
diff --git a/app/controllers/api/scores_api_controller.rb b/app/controllers/api/scores_api_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/scores_api_controller.rb
+++ b/app/controllers/api/scores_api_controller.rb
@@ -15,8 +15,7 @@ param_group :mode
def player
name, average, medals, sco... | Remove unnecessary to_json in api controller.
|
diff --git a/app/controllers/pupils/schools_controller.rb b/app/controllers/pupils/schools_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/pupils/schools_controller.rb
+++ b/app/controllers/pupils/schools_controller.rb
@@ -21,7 +21,8 @@ def activity_setup(school)
@activities_count = school.... | Use suggestions from programmes first on pupil dash
|
diff --git a/lib/betty_resource/record.rb b/lib/betty_resource/record.rb
index abc1234..def5678 100644
--- a/lib/betty_resource/record.rb
+++ b/lib/betty_resource/record.rb
@@ -5,9 +5,7 @@ def initialize(args)
@model = args[:model]
model.properties.each do |property|
- define_singleton_method("... | Move definition of set method to new method |
diff --git a/Casks/marked.rb b/Casks/marked.rb
index abc1234..def5678 100644
--- a/Casks/marked.rb
+++ b/Casks/marked.rb
@@ -1,8 +1,9 @@ cask :v1 => 'marked' do
- version :latest
- sha256 :no_check
+ version '2.5.3910'
+ sha256 'd3c9193fff0c349e0efaf5f14fd9c44d18545044e469d27340ef2c44864f02de'
- url 'http://mark... | Update Marked 2 to version 2.5.3910
This commit updates the version, sha256 and url stanzas. The version
is obtained from the appcast feed that was previously included in
this cask. Sorry if this is not an approved way to obtain a versioned
download URL.
|
diff --git a/lib/retirement_schemes/classification_count.rb b/lib/retirement_schemes/classification_count.rb
index abc1234..def5678 100644
--- a/lib/retirement_schemes/classification_count.rb
+++ b/lib/retirement_schemes/classification_count.rb
@@ -7,15 +7,7 @@ end
def retire?(sw_count)
- if disabled?
-... | Remove not-retiring stuff from ClassificationCount
|
diff --git a/lib/salesforce_bulk/query_result_collection.rb b/lib/salesforce_bulk/query_result_collection.rb
index abc1234..def5678 100644
--- a/lib/salesforce_bulk/query_result_collection.rb
+++ b/lib/salesforce_bulk/query_result_collection.rb
@@ -23,7 +23,8 @@ end
def next
- # if has next, calls m... | Update next and previous methods to return an empty query result collection object to pass all tests.
|
diff --git a/lib/json_yaml_assets/engine.rb b/lib/json_yaml_assets/engine.rb
index abc1234..def5678 100644
--- a/lib/json_yaml_assets/engine.rb
+++ b/lib/json_yaml_assets/engine.rb
@@ -16,7 +16,7 @@ end
def evaluate(scope, locals = { }, &block)
- if /.json.yaml(?:$|\.)/.match(file)
+ if /.j... | Support .yml extension as well
|
diff --git a/lib/postqueue/item/inserter.rb b/lib/postqueue/item/inserter.rb
index abc1234..def5678 100644
--- a/lib/postqueue/item/inserter.rb
+++ b/lib/postqueue/item/inserter.rb
@@ -2,7 +2,10 @@
module Postqueue
#
- # An item class.
+ # Postqueue::Item inserter modules.
+ #
+ # This source file provides mul... | Fix for inserting items via prepared queries
This commit hopefully fixes inserting via prepared queries. The error
seems to have been that a prepared query was used on connections, that
did not prepare the query.
This commit also adds a raw connection non-prepared queries as well, which is
activated by default.
|
diff --git a/lib/route_downcaser/railtie.rb b/lib/route_downcaser/railtie.rb
index abc1234..def5678 100644
--- a/lib/route_downcaser/railtie.rb
+++ b/lib/route_downcaser/railtie.rb
@@ -1,7 +1,7 @@ module RouteDowncaser
class Railtie < Rails::Railtie
initializer "add_downcase_route_middleware" do |app|
- ap... | Fix middleware class deprecation warning
Rails needs an actual class reference instead of just strings, this change removes the following warning:
```
DEPRECATION WARNING: Passing strings or symbols to the middleware builder is deprecated, please change
them to actual class references. For example:
"RouteDown... |
diff --git a/lib/capistrano/foreman.rb b/lib/capistrano/foreman.rb
index abc1234..def5678 100644
--- a/lib/capistrano/foreman.rb
+++ b/lib/capistrano/foreman.rb
@@ -3,7 +3,7 @@ namespace :foreman do
desc "Export the Procfile to Ubuntu's upstart scripts"
task :export, roles: :app do
- run "cd #{release_... | Fix a bug that caused logs to fail |
diff --git a/potatochop.gemspec b/potatochop.gemspec
index abc1234..def5678 100644
--- a/potatochop.gemspec
+++ b/potatochop.gemspec
@@ -17,6 +17,7 @@ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
gem.add_runtime_dependency 'sinatra'
+ gem.add_runtime_dependency 'th... | Add Thin as a dependency
|
diff --git a/rails_zero.gemspec b/rails_zero.gemspec
index abc1234..def5678 100644
--- a/rails_zero.gemspec
+++ b/rails_zero.gemspec
@@ -13,7 +13,7 @@ s.summary = "RailsZero is a static site generator based on Rails"
s.description = "RailsZero is a Rails Engine that helps generating static websites out of any ... | Include bin path in gem.
|
diff --git a/3.rb b/3.rb
index abc1234..def5678 100644
--- a/3.rb
+++ b/3.rb
@@ -7,6 +7,6 @@ first_name = gets.chomp.capitalize
puts 'Какое Ваше отчество?'
middle_name = gets.chomp.capitalize
-puts 'What is your surname?'
+puts 'Какая Ваша фамилия?'
last_name = gets.chomp.capitalize
puts "Привет, #{first_name} #{mi... | Change the english text to russian
|
diff --git a/checkin-service/spec/models/location_spec.rb b/checkin-service/spec/models/location_spec.rb
index abc1234..def5678 100644
--- a/checkin-service/spec/models/location_spec.rb
+++ b/checkin-service/spec/models/location_spec.rb
@@ -1,14 +1,15 @@ require 'spec_helper'
describe Location do
+let(:store) { Loca... | Add initial ultra-basic Location model tests
|
diff --git a/lib/fluent/plugin/fifo.rb b/lib/fluent/plugin/fifo.rb
index abc1234..def5678 100644
--- a/lib/fluent/plugin/fifo.rb
+++ b/lib/fluent/plugin/fifo.rb
@@ -29,26 +29,20 @@
def open
m = {:r => 'r+', :w => 'w+'}[@mode]
- # p "open %s %s" % [@file_path, m]
@pipe = Pipe.open(@file_path, m)
end
... | Use IO.sysread instead of File.read
|
diff --git a/app/workers/user_set_password_notice_worker.rb b/app/workers/user_set_password_notice_worker.rb
index abc1234..def5678 100644
--- a/app/workers/user_set_password_notice_worker.rb
+++ b/app/workers/user_set_password_notice_worker.rb
@@ -20,7 +20,7 @@ user.password_is_placeholder = false
user.sa... | Fix rescheduling of password setting worker
|
diff --git a/lib/acceptance/form_helper.rb b/lib/acceptance/form_helper.rb
index abc1234..def5678 100644
--- a/lib/acceptance/form_helper.rb
+++ b/lib/acceptance/form_helper.rb
@@ -3,12 +3,7 @@
def validated_form_for(*args, &block)
form_for(*args, &block)
- concat(acceptance_builder.flush_rules, b... | Remove unsupported validated_fields_for method and binding argument to concat().
|
diff --git a/lib/mako/html_renderer.rb b/lib/mako/html_renderer.rb
index abc1234..def5678 100644
--- a/lib/mako/html_renderer.rb
+++ b/lib/mako/html_renderer.rb
@@ -2,12 +2,12 @@ class HTMLRenderer
include FileOpenUtil
- attr_reader :template, :binding, :feed_template
+ attr_reader :template, :bound, :fe... | Update render method to work without yield, load template from config
|
diff --git a/Casks/paintcode.rb b/Casks/paintcode.rb
index abc1234..def5678 100644
--- a/Casks/paintcode.rb
+++ b/Casks/paintcode.rb
@@ -1,5 +1,5 @@ class Paintcode < Cask
- url 'http://download.macheist.com/nano4/pc.zip'
+ url 'http://www.pixelcut.com/paintcode/paintcode.zip'
homepage 'http://www.paintcodeapp.com... | Update URL for PaintCode 2.0
|
diff --git a/lib/github_api/api_factory.rb b/lib/github_api/api_factory.rb
index abc1234..def5678 100644
--- a/lib/github_api/api_factory.rb
+++ b/lib/github_api/api_factory.rb
@@ -0,0 +1,24 @@+# encoding: utf-8
+
+require 'github_api/core_ext/hash'
+
+module Github
+ class ApiFactory
+
+ # Instantiates a new githu... | Add api factory for instantiating parts of api.
|
diff --git a/lib/ruby-swagger/data/mime.rb b/lib/ruby-swagger/data/mime.rb
index abc1234..def5678 100644
--- a/lib/ruby-swagger/data/mime.rb
+++ b/lib/ruby-swagger/data/mime.rb
@@ -2,6 +2,7 @@ class Mime
@@types = [
'text/plain',
+ 'text/json',
'text/plain; charset=utf-8',
'application/... | Add text/json as data MIME type
|
diff --git a/lib/yardstick/yard_ext.rb b/lib/yardstick/yard_ext.rb
index abc1234..def5678 100644
--- a/lib/yardstick/yard_ext.rb
+++ b/lib/yardstick/yard_ext.rb
@@ -1,4 +1,6 @@ module YARD #:nodoc: all
+
+ # Extend docstring with yardstick methods
class Docstring
include Yardstick::Method
end # class Docst... | Add description for extension class
|
diff --git a/roles/appliwave.rb b/roles/appliwave.rb
index abc1234..def5678 100644
--- a/roles/appliwave.rb
+++ b/roles/appliwave.rb
@@ -2,6 +2,11 @@ description "Role applied to all servers at Appliwave"
default_attributes(
+ :accounts => {
+ :users => {
+ :appliwave => { :status => :administrator }
+ }... | Add remote hands account for Appliwave
|
diff --git a/lib/app/helpers/errors.rb b/lib/app/helpers/errors.rb
index abc1234..def5678 100644
--- a/lib/app/helpers/errors.rb
+++ b/lib/app/helpers/errors.rb
@@ -6,13 +6,11 @@ end
def forward_errors
- begin
- yield
- rescue Xapi::ApiError => e
- halt 400, {error: e.mess... | Clean up error handling method in API
|
diff --git a/acts_as_purchasable.gemspec b/acts_as_purchasable.gemspec
index abc1234..def5678 100644
--- a/acts_as_purchasable.gemspec
+++ b/acts_as_purchasable.gemspec
@@ -15,7 +15,7 @@ gem.require_paths = ["lib"]
gem.version = ActsAsPurchasable::VERSION
- gem.add_dependency "activesupport", "~> 3.2"
+ ... | Add rails as a dependency to avoid headaches from mocking ActiveRecord and friends.
|
diff --git a/app/helpers/timeout_helper.rb b/app/helpers/timeout_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/timeout_helper.rb
+++ b/app/helpers/timeout_helper.rb
@@ -1,4 +1,3 @@-require 'terminator'
module TimeoutHelper
extend LogHelper
@@ -11,12 +10,10 @@ # end
#
def try_within(sec, time... | ENHANCE: Replace terminator with Ruby native calls
|
diff --git a/app/jobs/send-users-online.rb b/app/jobs/send-users-online.rb
index abc1234..def5678 100644
--- a/app/jobs/send-users-online.rb
+++ b/app/jobs/send-users-online.rb
@@ -15,14 +15,14 @@
# open the Rocket.Chat database user collection
- rcdb_client = RocketChat.RCDB_Client()
+ ... | Fix typos after refactor, add a log message for clarity
|
diff --git a/Framezilla.podspec b/Framezilla.podspec
index abc1234..def5678 100644
--- a/Framezilla.podspec
+++ b/Framezilla.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |spec|
spec.name = "Framezilla"
- spec.version = "2.9.0"
+ spec.version = "2.9.1"
spec.summary = "Comfortab... | Change the podspec version -> 2.9.1
|
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
@@ -29,12 +29,12 @@ end
def render_403( e = nil )
- Rails.logger.info( "403 #{e.inspe... | Clear response body before rendering error
|
diff --git a/lib/ask_awesomely/field/opinion_scale.rb b/lib/ask_awesomely/field/opinion_scale.rb
index abc1234..def5678 100644
--- a/lib/ask_awesomely/field/opinion_scale.rb
+++ b/lib/ask_awesomely/field/opinion_scale.rb
@@ -16,18 +16,18 @@ end
def left_side(label)
- @state.label ||= Hash.new(nil)
- ... | Fix opinion scale field names
|
diff --git a/app/controllers/councillors_controller.rb b/app/controllers/councillors_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/councillors_controller.rb
+++ b/app/controllers/councillors_controller.rb
@@ -11,7 +11,7 @@ end
private
- def calulatated_absence_percent(councillor)
+ def calculat... | Fix Name Calculated Absence Percent
|
diff --git a/db/migrate/20140913170424_create_invoices.rb b/db/migrate/20140913170424_create_invoices.rb
index abc1234..def5678 100644
--- a/db/migrate/20140913170424_create_invoices.rb
+++ b/db/migrate/20140913170424_create_invoices.rb
@@ -2,7 +2,7 @@ def change
create_table :invoices do |t|
t.integer :a... | Correct database field in invoice
|
diff --git a/lib/data_mapper/engine/veritas_engine.rb b/lib/data_mapper/engine/veritas_engine.rb
index abc1234..def5678 100644
--- a/lib/data_mapper/engine/veritas_engine.rb
+++ b/lib/data_mapper/engine/veritas_engine.rb
@@ -6,8 +6,25 @@
# Engine for Veritas
class VeritasEngine < self
+
+ # @see Engine#... | Add more comprehensive docs for Engine::VeritasEngine
|
diff --git a/app/workers/recurring/clean_activities.rb b/app/workers/recurring/clean_activities.rb
index abc1234..def5678 100644
--- a/app/workers/recurring/clean_activities.rb
+++ b/app/workers/recurring/clean_activities.rb
@@ -3,7 +3,7 @@
def perform
ActiveRecord::Base.connection_pool.with_connection do
- ... | Clean comment and prediction mention activities after 60 days
|
diff --git a/telemetry-logger.gemspec b/telemetry-logger.gemspec
index abc1234..def5678 100644
--- a/telemetry-logger.gemspec
+++ b/telemetry-logger.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'telemetry-logger'
- s.version = '0.1.5'
+ s.version = '0.1.6'
s.summary ... | Package version is incremented from patch number 0.1.5 to 0.1.6
|
diff --git a/week-9/ruby-review-2/oo-basics.rb b/week-9/ruby-review-2/oo-basics.rb
index abc1234..def5678 100644
--- a/week-9/ruby-review-2/oo-basics.rb
+++ b/week-9/ruby-review-2/oo-basics.rb
@@ -0,0 +1,59 @@+# OO Basics: Student
+
+
+# I worked on this challenge [by myself].
+# This challenge took me [#] hours.
+
+
+... | Add file & release 1 for object oriented basics challenge
|
diff --git a/spec/default.mspec b/spec/default.mspec
index abc1234..def5678 100644
--- a/spec/default.mspec
+++ b/spec/default.mspec
@@ -1,6 +1,6 @@ # vim: filetype=ruby
-require 'spec/custom/guards/engine'
+require_relative 'custom/guards/engine'
class MSpecScript
tags_dir = defined?(RUBY_ENGINE) ? RUBY_ENGINE... | Use require_relative when spec is not in the LOAD_PATH
|
diff --git a/spec/controllers/social_networking/concerns/profile_page/feed_spec.rb b/spec/controllers/social_networking/concerns/profile_page/feed_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/social_networking/concerns/profile_page/feed_spec.rb
+++ b/spec/controllers/social_networking/concerns/profile_p... | Add Profile Page Feed Spec
* Add specs to determine items and count
[Finished: #100037354]
|
diff --git a/config/deploy.rb b/config/deploy.rb
index abc1234..def5678 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -0,0 +1,47 @@+require 'capistrano_colors'
+
+# Main
+set :application, ""
+set :use_sudo, true
+set :admin_runner, ""
+set :keep_releases, 5
+default_run_options[:pty] = true
+
+# Stages
+set ... | Move the config.rb to this repo
|
diff --git a/acts_as_executor.gemspec b/acts_as_executor.gemspec
index abc1234..def5678 100644
--- a/acts_as_executor.gemspec
+++ b/acts_as_executor.gemspec
@@ -12,6 +12,6 @@ s.summary = %q{Java Executor framework integration for Rails}
s.description = %q{Seamless integration of Java's Executor framework with... | Include RDOC and LICENSE in gemspec.
|
diff --git a/achecker.gemspec b/achecker.gemspec
index abc1234..def5678 100644
--- a/achecker.gemspec
+++ b/achecker.gemspec
@@ -25,5 +25,5 @@ spec.add_development_dependency "bundler", "~> 1.6"
spec.add_development_dependency "webmock", "~> 1.18"
spec.add_development_dependency "rake", "~> 10.0"
- spec.add_de... | Upgrade rspec version to 3.1
|
diff --git a/core/db/migrate/20161014145148_add_created_at_to_variant.rb b/core/db/migrate/20161014145148_add_created_at_to_variant.rb
index abc1234..def5678 100644
--- a/core/db/migrate/20161014145148_add_created_at_to_variant.rb
+++ b/core/db/migrate/20161014145148_add_created_at_to_variant.rb
@@ -2,7 +2,7 @@ def c... | Add unscoped method to activerecord query
[Variants `act_as_paranoid`](https://github.com/spree/spree/blob/master/core/app/models/spree/variant.rb#L3). This fixes the issue of migration failure if the db has any variants where `deleted_at IS NOT NULL`. |
diff --git a/mixlib-versioning.gemspec b/mixlib-versioning.gemspec
index abc1234..def5678 100644
--- a/mixlib-versioning.gemspec
+++ b/mixlib-versioning.gemspec
@@ -23,4 +23,7 @@ # Development dependencies
spec.add_development_dependency 'rubocop', '~> 0.18'
spec.add_development_dependency 'rspec', '~> 2.14'
... | Add Rake and Bundler to development dependencies
|
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
root 'secrets#new'
- resources :secrets, only: [:create, :new, :show]
+ resources :secrets, only: [:create, :new, :show], id: /([^\/])+/
e... | Fix bug in tokens with a period
|
diff --git a/modules/users/spec/classes/users_spec.rb b/modules/users/spec/classes/users_spec.rb
index abc1234..def5678 100644
--- a/modules/users/spec/classes/users_spec.rb
+++ b/modules/users/spec/classes/users_spec.rb
@@ -12,6 +12,34 @@ end
end
+# Get a list of valid users from their manifest files
+def user_li... | Add a test to ensure that a user manifest is used
Previously, it was possible to remove a user from all groups but
keep their manifest around.
This commit adds a test to ensure that every user manifest is included
in at least one group.
|
diff --git a/files/gitlab-cookbooks/solo.rb b/files/gitlab-cookbooks/solo.rb
index abc1234..def5678 100644
--- a/files/gitlab-cookbooks/solo.rb
+++ b/files/gitlab-cookbooks/solo.rb
@@ -1,4 +1,5 @@ CURRENT_PATH = File.expand_path(File.dirname(__FILE__))
file_cache_path "#{CURRENT_PATH}/cache"
-cookbook_path CURRENT_PAT... | Add ssl_verify_mode to Chef config
This will quiet warnings at the start of each `gitlab-ctl reconfigure`
run.
|
diff --git a/Casks/lektor.rb b/Casks/lektor.rb
index abc1234..def5678 100644
--- a/Casks/lektor.rb
+++ b/Casks/lektor.rb
@@ -2,7 +2,7 @@ version '1.2.1'
sha256 'd6d984eddcefcae9397e1fb10d96f2fd61324a9f2a7008cea4edad2ee8743feb'
- # github.com/lektor/lektor verified as official when first introduced to the cask
+... | Fix `url` stanza comment for Lektor.
|
diff --git a/Casks/second-life.rb b/Casks/second-life.rb
index abc1234..def5678 100644
--- a/Casks/second-life.rb
+++ b/Casks/second-life.rb
@@ -1,7 +1,7 @@ class SecondLife < Cask
- url 'http://download.cloud.secondlife.com/Viewer_3/SecondLife_3_6_11_283787.dmg'
+ url 'http://download.cloud.secondlife.com/Viewer_3/S... | Update Second Life to 3.6.12.284506.
|
diff --git a/config/initializers/export_email_controller.rb b/config/initializers/export_email_controller.rb
index abc1234..def5678 100644
--- a/config/initializers/export_email_controller.rb
+++ b/config/initializers/export_email_controller.rb
@@ -0,0 +1,10 @@+# Re-open ExportEmailController to because out local imple... | Add ExportEmailController post processing to fix text message issue
|
diff --git a/test/jekyll/tidy_test.rb b/test/jekyll/tidy_test.rb
index abc1234..def5678 100644
--- a/test/jekyll/tidy_test.rb
+++ b/test/jekyll/tidy_test.rb
@@ -20,4 +20,17 @@
assert_equal expected, actual
end
+
+ def test_matches_file_globs_correctly
+ config_override = {"jekyll_tidy" => {"exclude" => ["_... | Add tests for glob matching
|
diff --git a/test/unit/config_test.rb b/test/unit/config_test.rb
index abc1234..def5678 100644
--- a/test/unit/config_test.rb
+++ b/test/unit/config_test.rb
@@ -4,12 +4,6 @@ def test_set_ssl_cert_file
@config = PaypalAdaptive::Config.new("test", { "ssl_cert_file" => "/path/to/cacert.pem" })
assert_equal "/p... | Remove default config SSL file |
diff --git a/src/watir_robot_gui.rb b/src/watir_robot_gui.rb
index abc1234..def5678 100644
--- a/src/watir_robot_gui.rb
+++ b/src/watir_robot_gui.rb
@@ -1,4 +1,7 @@ $LOAD_PATH << File.expand_path(File.dirname(__FILE__))
+# Add local gem repository created from extracted
+# JAR archive of gems
+ENV['GEM_PATH'] = File.jo... | Set environment variable to use local gem repo from extracted jar file
|
diff --git a/core/spec-unit/classes/open_graph_formatter_spec.rb b/core/spec-unit/classes/open_graph_formatter_spec.rb
index abc1234..def5678 100644
--- a/core/spec-unit/classes/open_graph_formatter_spec.rb
+++ b/core/spec-unit/classes/open_graph_formatter_spec.rb
@@ -26,8 +26,8 @@ end
it 'overwrites the def... | Use old_value new_value for readability
|
diff --git a/cookbooks/ondemand_base/recipes/ubuntu.rb b/cookbooks/ondemand_base/recipes/ubuntu.rb
index abc1234..def5678 100644
--- a/cookbooks/ondemand_base/recipes/ubuntu.rb
+++ b/cookbooks/ondemand_base/recipes/ubuntu.rb
@@ -1,4 +1,16 @@ #Make sure that this recipe only runs on ubuntu systems
if platform?("ubuntu"... | Install VIM and some useful tools. This was pulled from Optimize. It's
awesome
|
diff --git a/omniauth-internal.gemspec b/omniauth-internal.gemspec
index abc1234..def5678 100644
--- a/omniauth-internal.gemspec
+++ b/omniauth-internal.gemspec
@@ -1,5 +1,4 @@ # -*- encoding: utf-8 -*-
-require File.expand_path('../lib/omniauth-internal/version', __FILE__)
Gem::Specification.new do |gem|
gem.aut... | Remove require version from gemspec
|
diff --git a/lib/dimples/document.rb b/lib/dimples/document.rb
index abc1234..def5678 100644
--- a/lib/dimples/document.rb
+++ b/lib/dimples/document.rb
@@ -1,22 +1,17 @@-require 'yaml'
+require_relative 'frontmatter'
module Dimples
class Document
- FRONT_MATTER_PATTERN = /^(-{3}\n.*?\n?)^(-{3}*$\n?)/m.freeze
... | Switch to the FrontMatter module
|
diff --git a/lib/featurer/adapter.rb b/lib/featurer/adapter.rb
index abc1234..def5678 100644
--- a/lib/featurer/adapter.rb
+++ b/lib/featurer/adapter.rb
@@ -10,20 +10,45 @@ @config = config
end
- def delete(feature)
- fail 'implement a delete method'
+ # Attaches a new matching value to the give... | Add documentation to base Adapter
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.