diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/what_now.rb b/lib/what_now.rb
index abc1234..def5678 100644
--- a/lib/what_now.rb
+++ b/lib/what_now.rb
@@ -1,9 +1,7 @@ # What_now definitions
require 'ptools'
-
-# TODO this struct should know how to print itself
-Todo = Struct.new :text, :path, :line
+require 'todo'
module WhatNow
class << s... | Replace local definition of todo by the one in external file
|
diff --git a/app/controllers/api/v1/geocoder_controller.rb b/app/controllers/api/v1/geocoder_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/geocoder_controller.rb
+++ b/app/controllers/api/v1/geocoder_controller.rb
@@ -36,7 +36,7 @@ results = JSON.parse(response.body)['features']
if r... | Remove country in search results for Switzerland as well.
|
diff --git a/app/controllers/users/passwords_controller.rb b/app/controllers/users/passwords_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/users/passwords_controller.rb
+++ b/app/controllers/users/passwords_controller.rb
@@ -1,3 +1,4 @@+# Password Controller
class Users::PasswordsController < Devis... | Add class comment to password controller
|
diff --git a/app/serializers/book_collection_serializer.rb b/app/serializers/book_collection_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/book_collection_serializer.rb
+++ b/app/serializers/book_collection_serializer.rb
@@ -0,0 +1,3 @@+class BookCollectionSerializer < ActiveModel::Serializer
+ att... | Use book collection AMS to render json data for collection serializer
|
diff --git a/app/services/merge_requests/create_service.rb b/app/services/merge_requests/create_service.rb
index abc1234..def5678 100644
--- a/app/services/merge_requests/create_service.rb
+++ b/app/services/merge_requests/create_service.rb
@@ -1,11 +1,17 @@ module MergeRequests
class CreateService < MergeRequests::... | Check permissions on target project in merge request create service.
|
diff --git a/app/services/projects/participants_service.rb b/app/services/projects/participants_service.rb
index abc1234..def5678 100644
--- a/app/services/projects/participants_service.rb
+++ b/app/services/projects/participants_service.rb
@@ -1,6 +1,7 @@ module Projects
class ParticipantsService < BaseService
... | Put owner and participating people first
|
diff --git a/app/controllers/sprangular/products_controller.rb b/app/controllers/sprangular/products_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sprangular/products_controller.rb
+++ b/app/controllers/sprangular/products_controller.rb
@@ -1,5 +1,9 @@ class Sprangular::ProductsController < Sprangul... | Update products/index to covert taxon permalink to id
|
diff --git a/JSPatch.podspec b/JSPatch.podspec
index abc1234..def5678 100644
--- a/JSPatch.podspec
+++ b/JSPatch.podspec
@@ -0,0 +1,33 @@+Pod::Spec.new do |s|
+ s.name = "JSPatch"
+ s.version = "0.0.1"
+ s.summary = "JSPatch bridge Objective-C and JavaScript using the" \
+ " Objec... | Add initial spec of CocoaPods.
|
diff --git a/lib/d-parse/dsl.rb b/lib/d-parse/dsl.rb
index abc1234..def5678 100644
--- a/lib/d-parse/dsl.rb
+++ b/lib/d-parse/dsl.rb
@@ -36,8 +36,8 @@ DParse::Parsers::Opt.new(p)
end
- def rename(p, message)
- DParse::Parsers::Rename.new(p, message)
+ def rename(p, name)
+ DParse::Parsers::... | refactor(core): Use better name for rename argument in DSL
|
diff --git a/no-style-please.gemspec b/no-style-please.gemspec
index abc1234..def5678 100644
--- a/no-style-please.gemspec
+++ b/no-style-please.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "no-style-please"
- spec.version = "0.1.2"
+ spec.version = "0.1.3"
spec.au... | Update gem version to 0.1.3
|
diff --git a/lib/bitcoin2graphdb/migration.rb b/lib/bitcoin2graphdb/migration.rb
index abc1234..def5678 100644
--- a/lib/bitcoin2graphdb/migration.rb
+++ b/lib/bitcoin2graphdb/migration.rb
@@ -8,8 +8,7 @@ c.extensions = config[:extensions] unless config[:extensions].nil?
end
Bitcoin2Graphdb::Bitco... | Revert neo4j request timeout setting
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -2,9 +2,9 @@ begin
search('users-files', '*:*').each do |user|
user.to_hash['files'].each do |file, content|
- file "#{user}/#{file}" do
+ file "#{user.id}/#{file}" d... | Add a new line at the end of configuration files
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -18,4 +18,15 @@ #
include_recipe 'coopr::repo'
+
+# Create our user and group
+group node['coopr']['group'] do
+ action :create
+end
+
+user node['coopr']['user'] do
+ action :cre... | Create our Coopr user and group
|
diff --git a/lib/environment.rb b/lib/environment.rb
index abc1234..def5678 100644
--- a/lib/environment.rb
+++ b/lib/environment.rb
@@ -1,7 +1,7 @@ require 'sinatra'
module Grat
-
+ @@database_conf = {}
def self.root_path
File.dirname(File.dirname(__FILE__))
end
| Make it a little easier to load up from irb
|
diff --git a/omniauth-oauth2.gemspec b/omniauth-oauth2.gemspec
index abc1234..def5678 100644
--- a/omniauth-oauth2.gemspec
+++ b/omniauth-oauth2.gemspec
@@ -3,7 +3,7 @@
Gem::Specification.new do |gem|
gem.add_dependency 'omniauth', '~> 1.0'
- gem.add_dependency 'oauth2', '~> 0.8.0'
+ gem.add_dependency 'oauth2',... | Update OAuth2 version dependency to 0.9.0
|
diff --git a/lib/inch_ci/worker/build_json.rb b/lib/inch_ci/worker/build_json.rb
index abc1234..def5678 100644
--- a/lib/inch_ci/worker/build_json.rb
+++ b/lib/inch_ci/worker/build_json.rb
@@ -11,7 +11,8 @@ attr_reader :language, :branch_name, :revision, :nwo, :url
def initialize(filename)
- ... | Read JSON dump as utf-8
|
diff --git a/lib/leaf/view_helpers/sinatra.rb b/lib/leaf/view_helpers/sinatra.rb
index abc1234..def5678 100644
--- a/lib/leaf/view_helpers/sinatra.rb
+++ b/lib/leaf/view_helpers/sinatra.rb
@@ -7,11 +7,11 @@ def url(page)
url = @template.request.url
if page == 1
- # strip out page param and trailing ? i... | Include ? and & in the replacement of the page parameter
|
diff --git a/lib/panko/serializer_resolver.rb b/lib/panko/serializer_resolver.rb
index abc1234..def5678 100644
--- a/lib/panko/serializer_resolver.rb
+++ b/lib/panko/serializer_resolver.rb
@@ -1,5 +1,4 @@ # frozen_string_literal: true
-require "byebug"
class Panko::SerializerResolver
| Remove byebug requirement from SerialResolver
|
diff --git a/lib/populator/adapters/sqlite.rb b/lib/populator/adapters/sqlite.rb
index abc1234..def5678 100644
--- a/lib/populator/adapters/sqlite.rb
+++ b/lib/populator/adapters/sqlite.rb
@@ -22,8 +22,7 @@ # TODO find a better way to load the SQLite adapter
module ActiveRecord # :nodoc: all
module ConnectionAdapte... | Break SQLite for great JRuby justice. |
diff --git a/lib/ppcurses/window/pp_window.rb b/lib/ppcurses/window/pp_window.rb
index abc1234..def5678 100644
--- a/lib/ppcurses/window/pp_window.rb
+++ b/lib/ppcurses/window/pp_window.rb
@@ -11,6 +11,29 @@ box('|', '-')
end
+
+
+ # EXPERIMENTAL/HACK
+ #
+ # The following could be used to wrap al... | Add hack method to Window
|
diff --git a/test/unit/bundle_file_test.rb b/test/unit/bundle_file_test.rb
index abc1234..def5678 100644
--- a/test/unit/bundle_file_test.rb
+++ b/test/unit/bundle_file_test.rb
@@ -0,0 +1,57 @@+require 'support/test_case'
+require 'support/fixture_config'
+require 'jekyll/minibundle/bundle_file'
+
+module Jekyll::Minib... | Add test for BundleFile's behavior in markup and write phases
|
diff --git a/lib/models/page.rb b/lib/models/page.rb
index abc1234..def5678 100644
--- a/lib/models/page.rb
+++ b/lib/models/page.rb
@@ -1,6 +1,6 @@ class Page < Sequel::Model
def before_create
- self.slug = self.title.gsub(/[^\w\s\d]/, '').gsub(' ', '_')
+ self.slug = self.title.gsub(/[^\d\w\sÅÄÖåäö_:-]/i, ''... | Use old regexp for slug
|
diff --git a/lib/pdf/invoice.rb b/lib/pdf/invoice.rb
index abc1234..def5678 100644
--- a/lib/pdf/invoice.rb
+++ b/lib/pdf/invoice.rb
@@ -27,6 +27,10 @@ end
class RenderingController < ApplicationController
+ def initialize
+ super
+ set_resolver
+ end
attr_accessor :order
... | Use custom view resolvers in PDF
|
diff --git a/site.rb b/site.rb
index abc1234..def5678 100644
--- a/site.rb
+++ b/site.rb
@@ -7,19 +7,19 @@ get '/' do
@page_title = 'Home'
@page_id = 'index'
- erb :'index'
+ erb :index
end
get '/projects' do
@page_title = 'Projects'
@page_id = 'projects'
- erb :'projects'
+ erb :projects
end
... | Use symbols without quotes where possible
|
diff --git a/spec/lib/i18n/hygiene/wrapper_spec.rb b/spec/lib/i18n/hygiene/wrapper_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/i18n/hygiene/wrapper_spec.rb
+++ b/spec/lib/i18n/hygiene/wrapper_spec.rb
@@ -5,7 +5,9 @@ let(:wrapper) { I18n::Hygiene::Wrapper.new(keys_to_skip: []) }
before do
- ::I18n.bac... | Expand Wrapper specs to exercise default locales more
|
diff --git a/spec/method_profiler/profiler_spec.rb b/spec/method_profiler/profiler_spec.rb
index abc1234..def5678 100644
--- a/spec/method_profiler/profiler_spec.rb
+++ b/spec/method_profiler/profiler_spec.rb
@@ -11,27 +11,27 @@ petition.should_not respond_to(:foo_with_profiling_with_profiling)
end
- it "clas... | Use imperative phrasing for examples.
|
diff --git a/spec/models/lesson_completion_spec.rb b/spec/models/lesson_completion_spec.rb
index abc1234..def5678 100644
--- a/spec/models/lesson_completion_spec.rb
+++ b/spec/models/lesson_completion_spec.rb
@@ -2,24 +2,22 @@
describe LessonCompletion do
- let!(:user){ FactoryGirl.create(:user) }
- let!(:lesson)... | Refactor lesson completion model spec file
Addresses Issue 262
I replaced the two FactoryGirl variables with doubles, added shoulda matchers to test the validations and associations, and removed the last test. I did not address the existing comment about testing that the lesson completion is deleted when a lesson or ... |
diff --git a/solo.rb b/solo.rb
index abc1234..def5678 100644
--- a/solo.rb
+++ b/solo.rb
@@ -1,7 +1,9 @@+require 'fileutils'
root = File.expand_path(File.dirname(__FILE__))
cookbook_path root + '/cookbooks'
data_bag_path '/etc/chef/databags'
log_level :debug
log_location '/var/log/chef/solo.log'
+FileUtils.mkdir... | Create log dir if missing
|
diff --git a/lib/paylane/api.rb b/lib/paylane/api.rb
index abc1234..def5678 100644
--- a/lib/paylane/api.rb
+++ b/lib/paylane/api.rb
@@ -5,45 +5,39 @@ end
def multi_sale(params)
- do_request(:multiSale, params, 'multi_sale_params')
- .to_hash[:multi_sale_response][:response]
+ do_request(:mu... | Move to_hash to do_request method
|
diff --git a/spec/session/remote_mechanize_spec.rb b/spec/session/remote_mechanize_spec.rb
index abc1234..def5678 100644
--- a/spec/session/remote_mechanize_spec.rb
+++ b/spec/session/remote_mechanize_spec.rb
@@ -35,7 +35,7 @@ end
end
- # Pending: Still 18 failing tests here (result is 705 examples, 18 ... | Update status of pending remote session specs
|
diff --git a/lib/reports_kit.rb b/lib/reports_kit.rb
index abc1234..def5678 100644
--- a/lib/reports_kit.rb
+++ b/lib/reports_kit.rb
@@ -1,10 +1,35 @@ require 'rails/all'
-directory = File.dirname(File.absolute_path(__FILE__))
-Dir.glob("#{directory}/reports_kit/*.rb") { |file| require file }
-Dir.glob("#{directory}/... | Use explicit requires to prevent indeterministic loading
|
diff --git a/lib/resque_unit.rb b/lib/resque_unit.rb
index abc1234..def5678 100644
--- a/lib/resque_unit.rb
+++ b/lib/resque_unit.rb
@@ -17,6 +17,10 @@ Test::Unit::TestCase.send(:include, ResqueUnit::Assertions)
end
-if defined?(MiniTest)
+if defined?(MiniTest::Unit::TestCase)
MiniTest::Unit::TestCase.send(:inc... | Support renamed module and class in Minitest 5
|
diff --git a/lib/rom/mapping.rb b/lib/rom/mapping.rb
index abc1234..def5678 100644
--- a/lib/rom/mapping.rb
+++ b/lib/rom/mapping.rb
@@ -7,14 +7,14 @@ attr_reader :env, :registry, :model
# @api public
- def self.build(env, &block)
- new(env, &block).registry
+ def self.build(env, registry = {}, &b... | Add ability to inject the registry into Mapping.build
|
diff --git a/lib/second_mate.rb b/lib/second_mate.rb
index abc1234..def5678 100644
--- a/lib/second_mate.rb
+++ b/lib/second_mate.rb
@@ -13,8 +13,8 @@ # Ease access to @config
if @config[m.to_sym]
@config[m.to_sym]
- elsif @config[m.chomp('=').to_sym]
- @config[m.chomp('=').to_sym] = attrs[0]
+ ... | Add precautionary conversion in config handling
|
diff --git a/lib/tasks/app.rake b/lib/tasks/app.rake
index abc1234..def5678 100644
--- a/lib/tasks/app.rake
+++ b/lib/tasks/app.rake
@@ -2,7 +2,7 @@ desc "Load database from csv file"
task :load => :environment do
CsvReader.load_csv("data/Kat Szum sales summary.csv") do |hash|
- receipt = Receipt.find_or... | Stop multiple copies of a single receipt
|
diff --git a/lib/todo_finder.rb b/lib/todo_finder.rb
index abc1234..def5678 100644
--- a/lib/todo_finder.rb
+++ b/lib/todo_finder.rb
@@ -4,6 +4,8 @@ module TodoFinder
class Finder
attr_accessor :matches
+
+ TODO_REGEX = /(\*|\/\/|#)\s*\[?todo(\]|:| \-)\s+/i
def initialize
@matches = Hash.new { ... | Support other ways of writing TODO messages
Adds:
* TODO - blah blah blah
* [todo] blah blah blah
Also pulled the regex out into a class-level global and used it for
both the match and sub. Should also be easier to test it now.
|
diff --git a/lib/tasks/release.rake b/lib/tasks/release.rake
index abc1234..def5678 100644
--- a/lib/tasks/release.rake
+++ b/lib/tasks/release.rake
@@ -0,0 +1,49 @@+namespace :release do
+ desc "Add header of now version release to Changelog and bump up version"
+ task :prepare do
+ raise "Use this task in develo... | Add task to prepare releasing
This task updated Changelog, version.rb, and Gemfile.lock.
|
diff --git a/lib/wheels/response.rb b/lib/wheels/response.rb
index abc1234..def5678 100644
--- a/lib/wheels/response.rb
+++ b/lib/wheels/response.rb
@@ -28,9 +28,9 @@ puts view.to_s(layout)
end
- def redirect(url)
+ def redirect(url, params = nil)
self.status = 303
- self.headers = { "Location" => ur... | Add query-string params to redirect.
|
diff --git a/license_finder.gemspec b/license_finder.gemspec
index abc1234..def5678 100644
--- a/license_finder.gemspec
+++ b/license_finder.gemspec
@@ -1,7 +1,7 @@ Gem::Specification.new do |s|
s.name = "license_finder"
s.version = "0.5.0"
- s.authors = ["Jacob Maine", "Matthew Kane Parker", "Ian... | Add Paul to the "authors" stanza in gemspec
|
diff --git a/rainbow.gemspec b/rainbow.gemspec
index abc1234..def5678 100644
--- a/rainbow.gemspec
+++ b/rainbow.gemspec
@@ -21,5 +21,4 @@ spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
- spec.add_development_dependency 'mime-t... | Remove mime-types deve dependency from gemspec
|
diff --git a/test/record_test.rb b/test/record_test.rb
index abc1234..def5678 100644
--- a/test/record_test.rb
+++ b/test/record_test.rb
@@ -33,4 +33,13 @@ assert(!@record.effective_dated?)
end
end
+
+ def test_not_effective_dated_model
+ @record.stub(:keys, ["blah", "meh"]) do
+ model = @record.... | Add test demonstrating bug fixed in 90a0f8
|
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
@@ -4,7 +4,7 @@ require 'plugin_test_helper'
# Run the migrations
-ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
+ActiveRecord::Migrator.migrate("#{Rails.root}/db/migr... | Use Rails.root instead of RAILS_ROOT in preparation for the Rails 2.1 release
|
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
@@ -4,7 +4,7 @@
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
- fixtures :all
+ #fixtures :all
# Add more ... | Remove fixtures from testing environment
|
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
@@ -11,4 +11,17 @@ ActiveRecord::Base.configurations = YAML::load(File.open(File.join(TEST_ROOT, 'database.yml')))
ActiveRecord::Base.establish_connection(:alter_table_test)
+# Cri... | Add query-counting helper code from Rails |
diff --git a/build.rb b/build.rb
index abc1234..def5678 100644
--- a/build.rb
+++ b/build.rb
@@ -0,0 +1,70 @@+#!/usr/bin/env ruby
+
+require 'aws-sdk'
+AWS.config access_key_id: ENV['S3_ACCESS_ID'], secret_access_key: ENV['S3_SECRET_KEY']
+s3 = AWS::S3.new
+bucket = s3.buckets['zooniverse-demo']
+
+build = <<-BASH
+rm ... | Copy over deploy script for now |
diff --git a/Marshal.podspec b/Marshal.podspec
index abc1234..def5678 100644
--- a/Marshal.podspec
+++ b/Marshal.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "Marshal"
- s.version = "1.2.1"
+ s.version = "1.2.3"
s.summary = "Marshal is a simple, lightweight framework for safely extr... | Update podspec to newest release
Updates podspec to newest release, and also fixes which tag it looks for in source. |
diff --git a/lib/everything/blog/site.rb b/lib/everything/blog/site.rb
index abc1234..def5678 100644
--- a/lib/everything/blog/site.rb
+++ b/lib/everything/blog/site.rb
@@ -26,6 +26,9 @@ FileUtils.mkdir_p(self.class.blog_html_path)
page = Page.new(post)
+
+ return true unless ::File.exist?(pag... | Handle when piece doesn't exist yet
|
diff --git a/lib/generative/rake_task.rb b/lib/generative/rake_task.rb
index abc1234..def5678 100644
--- a/lib/generative/rake_task.rb
+++ b/lib/generative/rake_task.rb
@@ -4,7 +4,7 @@ module Generative
class RakeTask < RSpec::Core::RakeTask
def initialize(*args, &task_block)
- setup_ivars(args)
+ sup... | Use super instead of setup_ivars for Rake task
|
diff --git a/lib/jiraSOAP/JIRAservice.rb b/lib/jiraSOAP/JIRAservice.rb
index abc1234..def5678 100644
--- a/lib/jiraSOAP/JIRAservice.rb
+++ b/lib/jiraSOAP/JIRAservice.rb
@@ -3,11 +3,9 @@ include RemoteAPI
attr_reader :authToken
- attr_accessor :log
- def self.instanceAtURL(url, user, password, logLevel = L... | Remove logging stuff from the JIRAService class
There is a logger ivar already in the Handsoap::Service class that will be used later on.
|
diff --git a/core/array/fixtures/classes.rb b/core/array/fixtures/classes.rb
index abc1234..def5678 100644
--- a/core/array/fixtures/classes.rb
+++ b/core/array/fixtures/classes.rb
@@ -1,10 +1,22 @@ module ArraySpecs
- def self.max_32bit_size
- 2**32/4
+ not_compliant_on :rubinius do
+ def self.max_32bit_size
+... | Add Array bounds values specific to Rubinius.
|
diff --git a/lib/lanes/api/test_specs.rb b/lib/lanes/api/test_specs.rb
index abc1234..def5678 100644
--- a/lib/lanes/api/test_specs.rb
+++ b/lib/lanes/api/test_specs.rb
@@ -1,4 +1,5 @@ require 'jasmine-core'
+require 'lanes/command'
module Lanes
module API
@@ -6,8 +7,9 @@ class TestSpecs
ca... | Use command code to load current ext
|
diff --git a/lib/locations/repository.rb b/lib/locations/repository.rb
index abc1234..def5678 100644
--- a/lib/locations/repository.rb
+++ b/lib/locations/repository.rb
@@ -1,9 +1,7 @@-require 'open-uri'
-
module Locations
class Repository
def initialize(geo_json_path_or_url = Locations.geo_json_path_or_url)
-... | Use the caching JSON reader
|
diff --git a/lib/roqua/healthy/errors.rb b/lib/roqua/healthy/errors.rb
index abc1234..def5678 100644
--- a/lib/roqua/healthy/errors.rb
+++ b/lib/roqua/healthy/errors.rb
@@ -1,16 +1,19 @@ module Roqua
module Healthy
- class UnknownFailure < StandardError; end
- class IllegalMirthResponse < StandardError; end
- ... | Introduce base classes for exceptions |
diff --git a/with_model.gemspec b/with_model.gemspec
index abc1234..def5678 100644
--- a/with_model.gemspec
+++ b/with_model.gemspec
@@ -6,8 +6,8 @@ s.name = "with_model"
s.version = WithModel::VERSION
s.platform = Gem::Platform::RUBY
- s.authors = ["Case Commons, LLC"]
- s.email = ["c... | Add myself to the authors
|
diff --git a/lib/sprockets-derailleur.rb b/lib/sprockets-derailleur.rb
index abc1234..def5678 100644
--- a/lib/sprockets-derailleur.rb
+++ b/lib/sprockets-derailleur.rb
@@ -4,14 +4,14 @@
module SpeedUp
def self.logger
- SpeedUp.get_logger
+ @logger ||= SpeedUp.get_logger
end
def self.get_logger
- ... | Update for default return path of logger
|
diff --git a/version_kit.gemspec b/version_kit.gemspec
index abc1234..def5678 100644
--- a/version_kit.gemspec
+++ b/version_kit.gemspec
@@ -18,6 +18,6 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_development_dependency "bundler", "~> 1.6"
+ spec.a... | [Gemspec] Reduce required bundler version for Travis
|
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -20,11 +20,12 @@
# Use this with <%= image_tag avatar_url(user) %>.
def avatar_url(user)
- default_url = "#{reques... | Update the gravitar helper to properly call the avatar hash
|
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -18,6 +18,7 @@ {
success: 'alert-success',
error: 'alert-danger',
+ warning: 'alert-warning',
... | Add `warning` as acceptable flash key for alerts
|
diff --git a/app/observers/project_observer.rb b/app/observers/project_observer.rb
index abc1234..def5678 100644
--- a/app/observers/project_observer.rb
+++ b/app/observers/project_observer.rb
@@ -13,6 +13,10 @@ def after_update(project)
project.send_move_instructions if project.namespace_id_changed?
projec... | Remove project cache before project.destroy
|
diff --git a/ellen-slack.gemspec b/ellen-slack.gemspec
index abc1234..def5678 100644
--- a/ellen-slack.gemspec
+++ b/ellen-slack.gemspec
@@ -16,6 +16,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
+ spec.add_dependency "ellen", ">= 0.2.0"
spec.add_dependenc... | Fix ellen version to 0.2.0 or higher
|
diff --git a/recipes/module_igbinary.rb b/recipes/module_igbinary.rb
index abc1234..def5678 100644
--- a/recipes/module_igbinary.rb
+++ b/recipes/module_igbinary.rb
@@ -0,0 +1,42 @@+# encoding: utf-8
+#
+# Author:: Joshua Timberman (<joshua@opscode.com>)
+# Author:: Seth Chisamore (<schisamo@opscode.com>)
+# Author::... | Add recipe for installing igbinary module
|
diff --git a/rmagick.gemspec b/rmagick.gemspec
index abc1234..def5678 100644
--- a/rmagick.gemspec
+++ b/rmagick.gemspec
@@ -1,13 +1,14 @@ require 'date'
Gem::Specification.new do |s|
s.name = %q{rmagick}
- s.version = "2.13.2"
+ s.version = "2.13.3.rc1"
s.date = Date.today.to_s
s.summary = %q{Ruby binding ... | Update gemspec for 2.13.3.rc1 release
|
diff --git a/db/migrate/20150714024130_drop_invalid_actions.rb b/db/migrate/20150714024130_drop_invalid_actions.rb
index abc1234..def5678 100644
--- a/db/migrate/20150714024130_drop_invalid_actions.rb
+++ b/db/migrate/20150714024130_drop_invalid_actions.rb
@@ -1,7 +1,18 @@ class DropInvalidActions < ActiveRecord::Migra... | Remove dependence on Action model from migration
|
diff --git a/week-4/simple-string.rb b/week-4/simple-string.rb
index abc1234..def5678 100644
--- a/week-4/simple-string.rb
+++ b/week-4/simple-string.rb
@@ -0,0 +1,28 @@+# Solution Below
+
+old_string = 'Ruby is cool'
+new_string = old_string.reverse.upcase
+
+
+# RSpec Tests. They are included in this file because the... | Complete 4.2.2 - Simple String Methods
|
diff --git a/populus.gemspec b/populus.gemspec
index abc1234..def5678 100644
--- a/populus.gemspec
+++ b/populus.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependency "sshkit"
+ spec.add_dependency "specinfra"
spec.add_d... | Revert "Use sshkit rather than specinfra..."
This reverts commit 807af31e9f3a1425c09b3226d464ffbfe09a23d0.
|
diff --git a/lib/doc_to_dash/parsers/yard_parser.rb b/lib/doc_to_dash/parsers/yard_parser.rb
index abc1234..def5678 100644
--- a/lib/doc_to_dash/parsers/yard_parser.rb
+++ b/lib/doc_to_dash/parsers/yard_parser.rb
@@ -15,7 +15,7 @@ classes_html = Nokogiri::HTML(classes_file)
classes = []
- class... | Fix 0.9.0 breaking YARD change
>= 0.9.0 in YARD version changes the DOM structure of the templates
which broke the nokogiri finder. This results in the docset being
empty, changing the nokogiri the finder fixes the problem. This change
also should be backwards compatible because the tag is still present in
older v... |
diff --git a/plantfood.rb b/plantfood.rb
index abc1234..def5678 100644
--- a/plantfood.rb
+++ b/plantfood.rb
@@ -12,7 +12,15 @@
elephant_watering_can_volume_oz = 16 * 5
-growing_food_tsp_per_gal = { :big_bloom => 6, :grow_big => 3, :tiger_bloom => 2 }
+# growing
+# acidic
+# neutralize with ~40 drops of pH UP (blue... | Add vegetative recipe; add pH hints
|
diff --git a/lib/rack/simple_user_agent/detector.rb b/lib/rack/simple_user_agent/detector.rb
index abc1234..def5678 100644
--- a/lib/rack/simple_user_agent/detector.rb
+++ b/lib/rack/simple_user_agent/detector.rb
@@ -6,15 +6,15 @@ end
def from_iphone?
- user_agent.include?("iPhone")
+ user_... | Add to_s since user_agent might be nil
|
diff --git a/poof.gemspec b/poof.gemspec
index abc1234..def5678 100644
--- a/poof.gemspec
+++ b/poof.gemspec
@@ -11,7 +11,7 @@ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.homepage =
'https://github.com/Referly/poof'
- s.add_runtime_dependency "activerecord", ">= 4.1.5"
+ s.... | Update gemspec - removed open ended dependency
|
diff --git a/recipes/install.rb b/recipes/install.rb
index abc1234..def5678 100644
--- a/recipes/install.rb
+++ b/recipes/install.rb
@@ -13,6 +13,7 @@ mkdir -p #{install['extracted_path']}
tar xzf #{install['download_path']} -C #{install['extract_path']}
mv #{install['extracted_path']}/#{install['extracte... | Add file cleanup to extract resource
|
diff --git a/recipes/service.rb b/recipes/service.rb
index abc1234..def5678 100644
--- a/recipes/service.rb
+++ b/recipes/service.rb
@@ -9,7 +9,7 @@ # Overwrite the unicorn restart command declared elsewhere
# Apologies for the `sleep`, but monit errors with "Other action already in progress" on some boots.
exe... | Remove sleep while restarting Rails
|
diff --git a/optional/capi/false_spec.rb b/optional/capi/false_spec.rb
index abc1234..def5678 100644
--- a/optional/capi/false_spec.rb
+++ b/optional/capi/false_spec.rb
@@ -13,7 +13,7 @@ end
end
- describe "a false value from Qtrue" do
+ describe "a false value from Qfalse" do
it "is falsey in C" do
... | Fix typo in spec description
|
diff --git a/lib/dm-predefined/yard/handlers/ruby/predefine_handler.rb b/lib/dm-predefined/yard/handlers/ruby/predefine_handler.rb
index abc1234..def5678 100644
--- a/lib/dm-predefined/yard/handlers/ruby/predefine_handler.rb
+++ b/lib/dm-predefined/yard/handlers/ruby/predefine_handler.rb
@@ -9,7 +9,6 @@
def p... | Define the methods as :class methods.
|
diff --git a/Rakefile.rb b/Rakefile.rb
index abc1234..def5678 100644
--- a/Rakefile.rb
+++ b/Rakefile.rb
@@ -8,4 +8,47 @@ desc "Build Jekyll site with _drafts posts"
task :drafts do
system "jekyll build --drafts --limit_posts 10"
-end # task :drafts+end # task :drafts
+
+# Ping Pingomatic
+desc 'Ping pingomatic'
+t... | Add RSS and sitemap ping Rake task
|
diff --git a/core/lib/rom/relation/wrap.rb b/core/lib/rom/relation/wrap.rb
index abc1234..def5678 100644
--- a/core/lib/rom/relation/wrap.rb
+++ b/core/lib/rom/relation/wrap.rb
@@ -6,18 +6,6 @@ #
# @api public
class Wrap < Graph
- extend Initializer
-
- include Materializable
- include Pipe... | Simplify Relation::Wrap since now it inherits from Graph
|
diff --git a/spec/celluloid/io/udp_socket_spec.rb b/spec/celluloid/io/udp_socket_spec.rb
index abc1234..def5678 100644
--- a/spec/celluloid/io/udp_socket_spec.rb
+++ b/spec/celluloid/io/udp_socket_spec.rb
@@ -16,8 +16,10 @@ end
it "sends and receives packets" do
- subject.send payload, 0, example_addr, ... | Add missing within_io_actor block from UDPSocket spec
|
diff --git a/spec/models/location/address_spec.rb b/spec/models/location/address_spec.rb
index abc1234..def5678 100644
--- a/spec/models/location/address_spec.rb
+++ b/spec/models/location/address_spec.rb
@@ -2,6 +2,8 @@
module Location
describe Address do
- pending "add some examples to (or delete) #{__FILE__}... | Add basic tests for Address
|
diff --git a/param_test.gemspec b/param_test.gemspec
index abc1234..def5678 100644
--- a/param_test.gemspec
+++ b/param_test.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = 'param_test'
- s.version = '0.0.1beta'
+ s.version = '0.0.1'
s.platform = Gem::Platform::RUBY
s.authors... | Update from beta to final first version
|
diff --git a/bxamp.gemspec b/bxamp.gemspec
index abc1234..def5678 100644
--- a/bxamp.gemspec
+++ b/bxamp.gemspec
@@ -16,4 +16,10 @@ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
+
+ gem.add_de... | Add development dependencies to gemspec
|
diff --git a/ruby-s3cmd.gemspec b/ruby-s3cmd.gemspec
index abc1234..def5678 100644
--- a/ruby-s3cmd.gemspec
+++ b/ruby-s3cmd.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = %q{ruby-s3cmd}
- s.version = "0.1.3"
+ s.version = RubyS3Cmd::VERSION::STRING
s.date = %q{2012-06-13}
s.authors = ["Joel ... | Use ::VERSION::STRING for gemspec version.
|
diff --git a/plugins/system/check-ntp.rb b/plugins/system/check-ntp.rb
index abc1234..def5678 100644
--- a/plugins/system/check-ntp.rb
+++ b/plugins/system/check-ntp.rb
@@ -1,6 +1,8 @@ #!/usr/bin/env ruby
#
# Check NTP offset - yeah this is horrible.
+#
+# warning and critical values are offsets in milliseconds.
#
... | Document warn and critical units |
diff --git a/spec/acceptance/class_spec.rb b/spec/acceptance/class_spec.rb
index abc1234..def5678 100644
--- a/spec/acceptance/class_spec.rb
+++ b/spec/acceptance/class_spec.rb
@@ -20,7 +20,52 @@
describe service('sks') do
it { should be_enabled }
- it { should be_running }
+ end
+ end
+
+ contex... | Update Beaker acceptance test spec
|
diff --git a/spec/curriculum_vitae_spec.rb b/spec/curriculum_vitae_spec.rb
index abc1234..def5678 100644
--- a/spec/curriculum_vitae_spec.rb
+++ b/spec/curriculum_vitae_spec.rb
@@ -6,14 +6,14 @@ end
context '.build' do
+ let(:blokk) { -> { infinite 'joy' } }
+
it 'passes block to `Builder.build`' do
- ... | Update spec to do exactly what the description says
|
diff --git a/spec/forgery/monetary_spec.rb b/spec/forgery/monetary_spec.rb
index abc1234..def5678 100644
--- a/spec/forgery/monetary_spec.rb
+++ b/spec/forgery/monetary_spec.rb
@@ -1,14 +1,14 @@+# frozen_string_literal: true
+
require 'spec_helper'
require 'bigdecimal'
describe Forgery::Monetary do
-
- it "should... | Fix broken test on Ruby 2
|
diff --git a/spec/index_controller_spec.rb b/spec/index_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/index_controller_spec.rb
+++ b/spec/index_controller_spec.rb
@@ -0,0 +1,30 @@+require 'spec_helper'
+
+describe "IndexController (this is a skeleton controller test!)" do
+
+ describe 'get all bands' do
... | Add Rspec controller test skeleton
|
diff --git a/flickr-objects.gemspec b/flickr-objects.gemspec
index abc1234..def5678 100644
--- a/flickr-objects.gemspec
+++ b/flickr-objects.gemspec
@@ -15,7 +15,7 @@ gem.authors = ["Janko Marohnić"]
gem.email = ["janko.marohnic@gmail.com"]
- gem.files = Dir["README.md", "LICENSE.txt", "l... | Fix a typo in the gemspec
|
diff --git a/neighborly-balanced-creditcard.gemspec b/neighborly-balanced-creditcard.gemspec
index abc1234..def5678 100644
--- a/neighborly-balanced-creditcard.gemspec
+++ b/neighborly-balanced-creditcard.gemspec
@@ -20,8 +20,6 @@
spec.add_dependency 'neighborly-balanced', '~> 0'
- spec.add_development_dependenc... | Change gem dependencies to get Rake to work
|
diff --git a/rails_wink.gemspec b/rails_wink.gemspec
index abc1234..def5678 100644
--- a/rails_wink.gemspec
+++ b/rails_wink.gemspec
@@ -15,7 +15,7 @@ Originally written for PHP by Denim&Steel, this is a Rails 3 mountable engine that can be used as part of any Rails application.
}
- s.files = Dir["{app,config... | Fix gem build errors in gemspec.
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -6,7 +6,7 @@
execute 'Compile, install and clean freeimage' do
cwd Chef::Config[:file_cache_path]
- command "unzip freeimage.zip && cd FreeImage && make && make install && make c... | Update library cache after install.
|
diff --git a/DCViewController.podspec b/DCViewController.podspec
index abc1234..def5678 100644
--- a/DCViewController.podspec
+++ b/DCViewController.podspec
@@ -1,7 +1,7 @@ Pod::Spec.new do |s|
s.name = "DCViewController"
- s.version = "1.1"
+ s.version = "1.1.1"
s.summary = "Some exten... | Update Cocoa Podspec to 1.1.1 - Jun 27, 2015 1:17 AM
|
diff --git a/sidetiq.gemspec b/sidetiq.gemspec
index abc1234..def5678 100644
--- a/sidetiq.gemspec
+++ b/sidetiq.gemspec
@@ -8,7 +8,7 @@ gem.version = Sidetiq::VERSION::STRING
gem.authors = ["Tobias Svensson"]
gem.email = ["tob@tobiassvensson.co.uk"]
- gem.description = "High-resolution j... | Use a more descriptive/humble description in gemspec.
|
diff --git a/lib/filters/normalize_links.rb b/lib/filters/normalize_links.rb
index abc1234..def5678 100644
--- a/lib/filters/normalize_links.rb
+++ b/lib/filters/normalize_links.rb
@@ -1,6 +1,7 @@ # encoding: utf-8
require 'nokogiri'
+require 'uri'
class NormalizeLinks < ::Nanoc::Filter
identifier :normalize_l... | Fix absolute links to markdown pages in repo docs
Absolute links to markdown pages should not be rendered relative.
Fixes prometheus/prometheus#4627
Signed-off-by: Tobias Schmidt <25d72cd05b750b8e431a98389fb858a4199d229b@gmail.com>
|
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
@@ -25,8 +25,10 @@ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.defau... | Set raise_in_transactional_callbacks on rails-4.2.x only
|
diff --git a/lib/generators/notifications/install_generator.rb b/lib/generators/notifications/install_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/notifications/install_generator.rb
+++ b/lib/generators/notifications/install_generator.rb
@@ -30,7 +30,7 @@ end
def add_migrations
- ... | Use exec to run migrations install
|
diff --git a/BHCDatabase/app/models/question.rb b/BHCDatabase/app/models/question.rb
index abc1234..def5678 100644
--- a/BHCDatabase/app/models/question.rb
+++ b/BHCDatabase/app/models/question.rb
@@ -1,2 +1,7 @@ class Question < ApplicationRecord
+
+ validates :question, presence: true, length: {maximum: 255}
+ vali... | Add Active Record validations to Question model.
|
diff --git a/snapsearch.gemspec b/snapsearch.gemspec
index abc1234..def5678 100644
--- a/snapsearch.gemspec
+++ b/snapsearch.gemspec
@@ -22,7 +22,7 @@ s.version = Pathname.glob('VERSION*').first.read rescue '0.0.0'
s.description = s.summary
s.require_paths = ['lib']
- s.files = Dir['{{Rake,Gem}... | Add data directory to the gemspec
|
diff --git a/features/step_definitions/see_within_steps.rb b/features/step_definitions/see_within_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/see_within_steps.rb
+++ b/features/step_definitions/see_within_steps.rb
@@ -7,7 +7,11 @@ each do |within, selector|
Then /^(?:|I )should( not)? see ... | Use innerHTML where possible in see within steps
otherwise use I should see.
Properly negate clause.
|
diff --git a/Casks/iterm2-beta.rb b/Casks/iterm2-beta.rb
index abc1234..def5678 100644
--- a/Casks/iterm2-beta.rb
+++ b/Casks/iterm2-beta.rb
@@ -1,12 +1,13 @@ cask :v1 => 'iterm2-beta' do
- version '2.9.20150830'
- sha256 '3248adc0281c03d5d367e042bcc373ae673bf5eea55fe181169e5824c8379e42'
+ version '2.9.20151001'
+ ... | Upgrade iTerm2 Beta to v2.9.20151001
|
diff --git a/cookbooks/wt_heatmaps/metadata.rb b/cookbooks/wt_heatmaps/metadata.rb
index abc1234..def5678 100644
--- a/cookbooks/wt_heatmaps/metadata.rb
+++ b/cookbooks/wt_heatmaps/metadata.rb
@@ -3,7 +3,7 @@ license "Apache 2.0"
description "Installs heatmaps 0.8.0"
long_description IO.read(File.joi... | Make heat maps recipe version 0.10.4 so we can apply it in production
Former-commit-id: c6b9ee0d107d7fbed63c1c6bb95879de297697eb [formerly fe758180d49f32049942d79387278b1da2ede8e2] [formerly 7c5c3e4b194fa805d926e91e91b568c482e9191a [formerly a537ba0d9de7b3486690452d9f3d57539f78afaf]]
Former-commit-id: 5b9ba16bc0cbc0d... |
diff --git a/source/feed.xml.builder b/source/feed.xml.builder
index abc1234..def5678 100644
--- a/source/feed.xml.builder
+++ b/source/feed.xml.builder
@@ -1,14 +1,19 @@ xml.instruct!
-xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
+xml.feed "xmlns" => "http://www.w3.org/2005/Atom", "xml:lang" => "en-GB" do
s... | Add more fields to Atom feed XML.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.