diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/config/initializers/gds-sso.rb b/config/initializers/gds-sso.rb
index abc1234..def5678 100644
--- a/config/initializers/gds-sso.rb
+++ b/config/initializers/gds-sso.rb
@@ -1,8 +1,8 @@ GDS::SSO.config do |config|
config.user_model = "User"
- config.oauth_id = ENV['PANOPTICON_OAUTH_ID']
- config.o... | Add a sensible default in ENV not present
|
diff --git a/config/initializers/stathat.rb b/config/initializers/stathat.rb
index abc1234..def5678 100644
--- a/config/initializers/stathat.rb
+++ b/config/initializers/stathat.rb
@@ -11,7 +11,7 @@ StatHat::API.ez_post_count("Slow Requests", ENV["STAT_ACCOUNT"], 1)
end
if duration > 100
- instLog.... | Use log.debug and do not log request format
|
diff --git a/json_diff.gemspec b/json_diff.gemspec
index abc1234..def5678 100644
--- a/json_diff.gemspec
+++ b/json_diff.gemspec
@@ -8,6 +8,7 @@ s.platform = Gem::Platform::RUBY
s.require_paths = ['lib']
s.summary = 'A gem to compare JSON object trees'
+ s.description = 'A gem to compare JSON object trees'
... | Add missing gem description to gemspec
|
diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/courses_controller.rb
+++ b/app/controllers/courses_controller.rb
@@ -11,6 +11,11 @@ if current_role.class == Student
@labs = current_role.labs.where(given_course_id:... | Add code to courses controller
|
diff --git a/spec/features/pwb/user_login_with_facebook_spec.rb b/spec/features/pwb/user_login_with_facebook_spec.rb
index abc1234..def5678 100644
--- a/spec/features/pwb/user_login_with_facebook_spec.rb
+++ b/spec/features/pwb/user_login_with_facebook_spec.rb
@@ -0,0 +1,41 @@+require 'rails_helper'
+
+module Pwb
+
+ ... | Add user login with facebook spec
|
diff --git a/lib/git-client.rb b/lib/git-client.rb
index abc1234..def5678 100644
--- a/lib/git-client.rb
+++ b/lib/git-client.rb
@@ -1,5 +1,5 @@ class GitClient
- def last_commit_message(dir)
+ def self.last_commit_message(dir)
Dir.chdir(dir) { `git log --format=%B -n 1 HEAD` }
end
end
| Make last_commit_message a class method of GitClient
[#119926939]
Signed-off-by: Dave Goddard <bfcdf3e6ca6cef45543bfbb57509c92aec9a39fb@goddard.id.au>
|
diff --git a/lib/gregex/map.rb b/lib/gregex/map.rb
index abc1234..def5678 100644
--- a/lib/gregex/map.rb
+++ b/lib/gregex/map.rb
@@ -25,7 +25,10 @@ def map
if @opts.check_options("c")
MAP['[α-ω]'] = Gregex::Constants::VOWELS + Gregex::Constants::VOWELS_WITH_SPIRITUS
+ MAP['α'] = Gregex::Map.g... | Add further vowels for options
|
diff --git a/lib/neo4j-core.rb b/lib/neo4j-core.rb
index abc1234..def5678 100644
--- a/lib/neo4j-core.rb
+++ b/lib/neo4j-core.rb
@@ -28,5 +28,4 @@
require 'oj'
require 'oj_mimic_json'
- Oj.default_options = {:mode => :strict }
end
| Remove strict mode for now because it breaks other things
|
diff --git a/actionmailer/lib/action_mailer/rescuable.rb b/actionmailer/lib/action_mailer/rescuable.rb
index abc1234..def5678 100644
--- a/actionmailer/lib/action_mailer/rescuable.rb
+++ b/actionmailer/lib/action_mailer/rescuable.rb
@@ -1,7 +1,7 @@ # frozen_string_literal: true
module ActionMailer #:nodoc:
- # Prov... | Use tt in doc for action_mailer [ci skip]
|
diff --git a/app/controllers/api/v1/events_controller.rb b/app/controllers/api/v1/events_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/events_controller.rb
+++ b/app/controllers/api/v1/events_controller.rb
@@ -24,7 +24,7 @@ private
def event_params
- params.require(:even... | Add cause id to event params
|
diff --git a/lib/stub_shell.rb b/lib/stub_shell.rb
index abc1234..def5678 100644
--- a/lib/stub_shell.rb
+++ b/lib/stub_shell.rb
@@ -1,26 +1,26 @@+require 'stub_shell/result'
+require 'stub_shell/command'
+require 'stub_shell/shell'
+require 'stub_shell/test_helpers'
+
module StubShell
class << self
attr_acc... | Move method to StubShell scope
|
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake
index abc1234..def5678 100644
--- a/lib/tasks/db.rake
+++ b/lib/tasks/db.rake
@@ -4,7 +4,7 @@ load(File.join(Rails.root, 'db', 'import.rb'))
end
- desc "Import Chief"
+ desc "Import Chief standing data"
task chief: 'environment' do
load(File.join(R... | Clarify the task for chief standing data
|
diff --git a/lib/turbograft.rb b/lib/turbograft.rb
index abc1234..def5678 100644
--- a/lib/turbograft.rb
+++ b/lib/turbograft.rb
@@ -35,10 +35,8 @@ end
ActiveSupport.on_load(:action_view) do
- (ActionView::RoutingUrlFor rescue ActionView::Helpers::UrlHelper).module_eval do
- prepend XHRUr... | Remove module_eval since is public since 2.1
|
diff --git a/app/helpers/contacts_helper.rb b/app/helpers/contacts_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/contacts_helper.rb
+++ b/app/helpers/contacts_helper.rb
@@ -1,6 +1,6 @@ module ContactsHelper
def vcard_for_post_address(address)
- title = content_tag :h3, class: "fn" do
+ title = cont... | Improve display of addresses in table
Break address onto separate lines, reduce size of leading line
|
diff --git a/app/helpers/encoding_helper.rb b/app/helpers/encoding_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/encoding_helper.rb
+++ b/app/helpers/encoding_helper.rb
@@ -5,7 +5,7 @@ # Updating the production databases to use utf8mb4 for all tables
# would remove the need for it.
def sanitize_4_by... | Handle nil input for sanitizing 4-byte characters in strings
|
diff --git a/app/mailers/follower_mailer.rb b/app/mailers/follower_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/follower_mailer.rb
+++ b/app/mailers/follower_mailer.rb
@@ -2,15 +2,12 @@
helper :application
- def live_effort_email(follower, split_times)
+ def self.live_effort_email(follower, split_t... | Change live_effort_email to class method.
|
diff --git a/app/models/analog_input_log.rb b/app/models/analog_input_log.rb
index abc1234..def5678 100644
--- a/app/models/analog_input_log.rb
+++ b/app/models/analog_input_log.rb
@@ -1,3 +1,4 @@ class AnalogInputLog < ActiveRecord::Base
belongs_to :analog_input
+ attr_accessible :analog_input_id, :value
end
| Make analog input log attributes accessible.
|
diff --git a/test/browser/maintenance_login_message_test.rb b/test/browser/maintenance_login_message_test.rb
index abc1234..def5678 100644
--- a/test/browser/maintenance_login_message_test.rb
+++ b/test/browser/maintenance_login_message_test.rb
@@ -63,6 +63,7 @@ watch_for_disappear(
browser: browser2,
... | Test stabilization: Timout for maintainance message to dissappear is too low and causes test to be flanky.
|
diff --git a/app/policies/channel_policy.rb b/app/policies/channel_policy.rb
index abc1234..def5678 100644
--- a/app/policies/channel_policy.rb
+++ b/app/policies/channel_policy.rb
@@ -33,7 +33,8 @@ end
def permitted_attributes
- permitted = [:name, :description, :service_identifier, :url, :avatar_url, :prima... | Allow token_id to be passed in
|
diff --git a/reagan.gemspec b/reagan.gemspec
index abc1234..def5678 100644
--- a/reagan.gemspec
+++ b/reagan.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = 'reagan'
- s.version = '0.8.0'
+ s.version = '0.8.1'
s.date = Date.today.to_s
s.platform = Gem::Platform::RUBY
s... | Fix dep on Chef to allow for Chef 12. Release 0.8.1
|
diff --git a/nested_sortable-rails.gemspec b/nested_sortable-rails.gemspec
index abc1234..def5678 100644
--- a/nested_sortable-rails.gemspec
+++ b/nested_sortable-rails.gemspec
@@ -13,7 +13,7 @@ s.summary = "Packages the nestedSortable-jquery-ui extension"
s.description = "Packages the nestedSortable extension... | Fix gemspec. No README.rdoc anymore.
|
diff --git a/test/export/test_ae_export.rb b/test/export/test_ae_export.rb
index abc1234..def5678 100644
--- a/test/export/test_ae_export.rb
+++ b/test/export/test_ae_export.rb
@@ -7,8 +7,11 @@ P_LOCATORS = File.dirname(__FILE__) + "/samples/ref_AfterEffects.jsx"
def test_export_output_written
- create_refe... | Add a test for naming and remove generation of ref. output
|
diff --git a/test/tc_ruby_time_timezone.rb b/test/tc_ruby_time_timezone.rb
index abc1234..def5678 100644
--- a/test/tc_ruby_time_timezone.rb
+++ b/test/tc_ruby_time_timezone.rb
@@ -0,0 +1,61 @@+# encoding: UTF-8
+# frozen_string_literal: true
+
+require_relative 'test_utils'
+
+include TZInfo
+
+class TCRubyTimeTimezon... | Test that Time.new and Time.at in Ruby 2.6 work with Timezone instances.
|
diff --git a/lib/flipper/dsl.rb b/lib/flipper/dsl.rb
index abc1234..def5678 100644
--- a/lib/flipper/dsl.rb
+++ b/lib/flipper/dsl.rb
@@ -6,6 +6,7 @@
def initialize(adapter)
@adapter = Adapter.wrap(adapter)
+ @memoized_features = {}
end
def enabled?(name, *args)
@@ -25,7 +26,9 @@ end
... | Move memoized features to initialize and save method call
|
diff --git a/lib/legacy_uuid.rb b/lib/legacy_uuid.rb
index abc1234..def5678 100644
--- a/lib/legacy_uuid.rb
+++ b/lib/legacy_uuid.rb
@@ -44,4 +44,12 @@ def self.from_team(uid)
from(uid, :prefix => "edd1e64c")
end
+
+ def self.from_donation(uid)
+ from(uid, :prefix => "eaa1e64c")
+ end
+
+ def self.from_... | Add legacy donation and donor UUIDs
|
diff --git a/lib/mercure/git.rb b/lib/mercure/git.rb
index abc1234..def5678 100644
--- a/lib/mercure/git.rb
+++ b/lib/mercure/git.rb
@@ -24,7 +24,6 @@ end
puts "On checkout le tag #{tag_name}"
- co_tag = `git checkout #{tag_name}`
end
def tagGit (settings)
| Stop checking out the tag when we deploy
|
diff --git a/lib/rusty_blank.rb b/lib/rusty_blank.rb
index abc1234..def5678 100644
--- a/lib/rusty_blank.rb
+++ b/lib/rusty_blank.rb
@@ -1,7 +1,8 @@ require 'fiddle'
require 'rbconfig'
-basename = "librusty_blank.#{RbConfig::CONFIG['DLEXT']}"
+ext = RbConfig::CONFIG['DLEXT'] == 'bundle' ? 'dylib' : RbConfig::CONFIG[... | Fix dlext on OSX when using the gem
|
diff --git a/lib/tasks/assets_without_digest.rake b/lib/tasks/assets_without_digest.rake
index abc1234..def5678 100644
--- a/lib/tasks/assets_without_digest.rake
+++ b/lib/tasks/assets_without_digest.rake
@@ -0,0 +1,8 @@+require 'fileutils'
+
+desc 'Compile all the assets named in config.assets.precompile with and with... | Add task to copy non-digested versions of assets
|
diff --git a/lib/travis/nightly_builder/runner.rb b/lib/travis/nightly_builder/runner.rb
index abc1234..def5678 100644
--- a/lib/travis/nightly_builder/runner.rb
+++ b/lib/travis/nightly_builder/runner.rb
@@ -3,12 +3,14 @@ module Travis
module NightlyBuilder
class Runner
- attr_reader :api_endpoint, :token... | Allow for injection of repo owner
|
diff --git a/lib/udongo/active_model_simulator.rb b/lib/udongo/active_model_simulator.rb
index abc1234..def5678 100644
--- a/lib/udongo/active_model_simulator.rb
+++ b/lib/udongo/active_model_simulator.rb
@@ -0,0 +1,21 @@+class Udongo::ActiveModelSimulator
+ extend ActiveModel::Naming
+ include ActiveModel::Conversio... | Add the active model simulator.
|
diff --git a/app/models/franchise.rb b/app/models/franchise.rb
index abc1234..def5678 100644
--- a/app/models/franchise.rb
+++ b/app/models/franchise.rb
@@ -8,7 +8,7 @@ # characters:: characters that belong to this franchise.
class Franchise < ActiveRecord::Base
validates :name, length: {minimum: 2, maximum: 100}
-... | Set minimum characters for Franchise description to 4
|
diff --git a/app/onboarder/config.rb b/app/onboarder/config.rb
index abc1234..def5678 100644
--- a/app/onboarder/config.rb
+++ b/app/onboarder/config.rb
@@ -2,6 +2,7 @@ require 'erb'
require 'json'
require 'pstore'
+require 'fileutils'
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), "..", "..", "lib")
requir... | Make sure the uploaddir always exists.
|
diff --git a/test/htwax/test_request.rb b/test/htwax/test_request.rb
index abc1234..def5678 100644
--- a/test/htwax/test_request.rb
+++ b/test/htwax/test_request.rb
@@ -0,0 +1,14 @@+require 'test_helper'
+
+module HtWax
+ describe Request do
+ describe 'initialize' do
+ it 'can be initialized with an http meth... | Add basic test for Request.
|
diff --git a/core/string/rpartition_spec.rb b/core/string/rpartition_spec.rb
index abc1234..def5678 100644
--- a/core/string/rpartition_spec.rb
+++ b/core/string/rpartition_spec.rb
@@ -16,6 +16,11 @@ "hello!".rpartition(/l./).should == ["hel", "lo", "!"]
end
+ it "affects $~" do
+ matched_string = ... | Add spec for checking that rpartition affects $~
|
diff --git a/app/models/user.rb b/app/models/user.rb
index abc1234..def5678 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -1,4 +1,5 @@ class User < ActiveRecord::Base
+ has_secure_password
has_many :comments
has_many :votes
has_many :responses
| Add Authentication to User Model
|
diff --git a/app/models/user.rb b/app/models/user.rb
index abc1234..def5678 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -1,7 +1,6 @@ class User < ActiveRecord::Base
rolify
- before_save :ensure_authentication_token
after_create :add_default_role
# Include default devise modules. Others avail... | Remove bevor_save filter that creates the token. It is now created on login/logout.
|
diff --git a/lib/puppet_x/bodeco/util.rb b/lib/puppet_x/bodeco/util.rb
index abc1234..def5678 100644
--- a/lib/puppet_x/bodeco/util.rb
+++ b/lib/puppet_x/bodeco/util.rb
@@ -28,6 +28,8 @@ f.write(@connection.get(url_path).body)
f.close
rescue Faraday::Error::ClientError
+ f.close
+ ... | Delete bad file if download failed.
|
diff --git a/lib/tasks/table_export.rake b/lib/tasks/table_export.rake
index abc1234..def5678 100644
--- a/lib/tasks/table_export.rake
+++ b/lib/tasks/table_export.rake
@@ -1,6 +1,6 @@ namespace :table_export do
task run: :environment do
exporter = TableExporter.new
- exporter.run(delimiter: delimiter, shoul... | Replace incorrect variable with pipe character.
|
diff --git a/lib/translink/model/trip.rb b/lib/translink/model/trip.rb
index abc1234..def5678 100644
--- a/lib/translink/model/trip.rb
+++ b/lib/translink/model/trip.rb
@@ -6,7 +6,7 @@ storage_names[:default] = 'trips'
property :id, Serial
- property :direction, Integer
+ property :dir... | Change field type to string.
|
diff --git a/respec.gemspec b/respec.gemspec
index abc1234..def5678 100644
--- a/respec.gemspec
+++ b/respec.gemspec
@@ -1,4 +1,3 @@-# -*- encoding: utf-8 -*-
$:.unshift File.expand_path('lib', File.dirname(__FILE__))
require 'respec/version'
@@ -7,7 +6,7 @@ gem.version = Respec::VERSION
gem.authors ... | Make gem summary match Github project.
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -5,7 +5,7 @@ description 'Installs Passenger for Apache2'
version '3.1.0'
-depends 'apache2', '~> 7.1'
+depends 'apache2', '>= 7.1'
depends 'build-essential', '>= 5.0'
%w( fedora redhat centos scient... | Use less strict apache2 cookbook version pin
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -4,10 +4,8 @@ license "Apache 2.0"
description "Deploys and configures Python-based applications"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version "3.0.1... | Remove dependency on application 3.0
|
diff --git a/test/square_test.rb b/test/square_test.rb
index abc1234..def5678 100644
--- a/test/square_test.rb
+++ b/test/square_test.rb
@@ -0,0 +1,18 @@+require 'minitest/autorun'
+require 'r2d'
+
+describe Square do
+ before do
+ R2D::Window.create width: 640, height: 480
+ @square = Square.new(10, 20, 200)
+ ... | Add tests for the Square class
|
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
@@ -1,6 +1,7 @@ ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
+require 'cache'
require 'simplecov'
require 'si... | Clear cache at beginning of unit tests.
|
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
@@ -8,4 +8,13 @@ require 'protopuffs'
class Test::Unit::TestCase
+
+ def print_bytes(string)
+ puts
+ string.each_byte do |byte|
+ printf("%1$08b (%1$02X)\n", byte)
+ ... | Add a handy test helper method for printing strings of bytes in binary and hex
|
diff --git a/test/test_server.rb b/test/test_server.rb
index abc1234..def5678 100644
--- a/test/test_server.rb
+++ b/test/test_server.rb
@@ -37,5 +37,9 @@ assert last_response.ok?
data = JSON.parse(last_response.body)
+
+ assert data["game_id"]
+
+ assert_equal Game.last.id, data["game_id"]
end
end... | Test for the /new_game method
|
diff --git a/config/environments/staging.rb b/config/environments/staging.rb
index abc1234..def5678 100644
--- a/config/environments/staging.rb
+++ b/config/environments/staging.rb
@@ -1,5 +1,6 @@ require_relative 'production'
-# Uncomment me for debugging
-# Tahi::Application.configure do
-# config.force_ssl = false... | Disable SSL with environment flag
|
diff --git a/app/helpers/evaluation_helper.rb b/app/helpers/evaluation_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/evaluation_helper.rb
+++ b/app/helpers/evaluation_helper.rb
@@ -1,6 +1,6 @@ module EvaluationHelper
def create_or_update_evaluation_path(evaluation)
- return evaluation_path(uuid: evalu... | PATCH only when the evaluation is persisted
|
diff --git a/lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake b/lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake
index abc1234..def5678 100644
--- a/lib/tasks/deployment/20181128155650_destroy_orphaned_dossier_operation_logs.rake
+++ b/lib/tasks/deployment... | Add task to cleanup orphaned dossier_operation_logs
|
diff --git a/app/controllers/admin/budget_headings_controller.rb b/app/controllers/admin/budget_headings_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/budget_headings_controller.rb
+++ b/app/controllers/admin/budget_headings_controller.rb
@@ -12,7 +12,7 @@ private
def budget_heading_p... | Add population to allowed params on admin budget heading controller
|
diff --git a/db/migrate/20160216100000_clear_old_views_before_migrating_with_scenic.rb b/db/migrate/20160216100000_clear_old_views_before_migrating_with_scenic.rb
index abc1234..def5678 100644
--- a/db/migrate/20160216100000_clear_old_views_before_migrating_with_scenic.rb
+++ b/db/migrate/20160216100000_clear_old_views... | Remove the views created by the manual migration
These were causing the new scenic migrations to fail. This ensures they
are cleared before the new ones are made.
|
diff --git a/spec/debian/rootlogin_spec.rb b/spec/debian/rootlogin_spec.rb
index abc1234..def5678 100644
--- a/spec/debian/rootlogin_spec.rb
+++ b/spec/debian/rootlogin_spec.rb
@@ -15,3 +15,10 @@ describe command("cat /etc/shadow | grep root | awk -F':' '{print $2;}'") do
it { should return_stdout "" }
end
+
+# Mak... | Test to ensure PasswordAuthentication is set to no. IMAGE-459
|
diff --git a/spec/integration/form_spec.rb b/spec/integration/form_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/form_spec.rb
+++ b/spec/integration/form_spec.rb
@@ -11,11 +11,11 @@ it "outputs an AST" do
expect(form.(title: "Aurora", rating: 10).to_ary).to eq [
[:component, [
+ [],... | Update basic form spec to match AST output |
diff --git a/spec/knapsack/tracker_spec.rb b/spec/knapsack/tracker_spec.rb
index abc1234..def5678 100644
--- a/spec/knapsack/tracker_spec.rb
+++ b/spec/knapsack/tracker_spec.rb
@@ -0,0 +1,53 @@+require 'spec_helper'
+
+describe Knapsack::Tracker do
+ let(:tracker) { described_class.send(:new) }
+
+ describe 'attribut... | Add basic specs for tracker
|
diff --git a/tzinfo-data.gemspec b/tzinfo-data.gemspec
index abc1234..def5678 100644
--- a/tzinfo-data.gemspec
+++ b/tzinfo-data.gemspec
@@ -7,7 +7,7 @@ s.email = 'phil.ross@gmail.com'
s.homepage = 'http://tzinfo.rubyforge.org'
s.license = 'MIT'
- s.files = ['LICENSE', 'README'] +
+ s.files = ['LICENSE', 'RE... | Include .yardopts in packaged releases.
|
diff --git a/shhhhh.gemspec b/shhhhh.gemspec
index abc1234..def5678 100644
--- a/shhhhh.gemspec
+++ b/shhhhh.gemspec
@@ -11,8 +11,8 @@ s.homepage = 'http://rubygems.org/gems/shhhhh'
s.license = 'MIT'
- s.add_dependency 'railties', '>= 3.2.19'
- s.add_development_dependency 'rake'
- s.add_development_de... | Tweak dependencies to satisfy warnings
|
diff --git a/signer.gemspec b/signer.gemspec
index abc1234..def5678 100644
--- a/signer.gemspec
+++ b/signer.gemspec
@@ -14,7 +14,7 @@
gem.name = "signer"
gem.require_paths = ["lib"]
- gem.version = "1.4.3.1"
+ gem.version = Signer::VERSION
gem.required_ruby_version = '>= 2.1.0'
| Revert gem version code in gemspec
|
diff --git a/valid_email.gemspec b/valid_email.gemspec
index abc1234..def5678 100644
--- a/valid_email.gemspec
+++ b/valid_email.gemspec
@@ -10,6 +10,7 @@ s.homepage = "http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp"
s.summary = %q{ActiveModel Validation for email}
... | Add license flag to the gemspec
|
diff --git a/overcommit.gemspec b/overcommit.gemspec
index abc1234..def5678 100644
--- a/overcommit.gemspec
+++ b/overcommit.gemspec
@@ -1,4 +1,5 @@ $LOAD_PATH << File.expand_path('../lib', __FILE__)
+require 'overcommit/constants'
require 'overcommit/version'
Gem::Specification.new do |s|
@@ -9,7 +10,7 @@ s.desc... | Use REPO_URL constant for gemspec homepage
This reduces code duplication.
Change-Id: Id32cbee7b265939ff3477c07d65192fc860aa0f3
Reviewed-on: http://gerrit.causes.com/35622
Reviewed-by: Shane da Silva <6f6e68d1df92f30cb4b3ce35260ddf94a402f33d@causes.com>
Tested-by: Shane da Silva <6f6e68d1df92f30cb4b3ce35260ddf94a402f3... |
diff --git a/guard-test.gemspec b/guard-test.gemspec
index abc1234..def5678 100644
--- a/guard-test.gemspec
+++ b/guard-test.gemspec
@@ -20,6 +20,6 @@ s.add_development_dependency 'bundler', '~> 1.0'
s.add_development_dependency 'rspec', '~> 2.5'
- s.files = Dir.glob('{lib}/**/*') + %w[LICENSE README.m... | Include CHANGELOG in the gem.
Thanks to @mislav for this. |
diff --git a/lib/concerns/yearly_model.rb b/lib/concerns/yearly_model.rb
index abc1234..def5678 100644
--- a/lib/concerns/yearly_model.rb
+++ b/lib/concerns/yearly_model.rb
@@ -1,8 +1,6 @@ module YearlyModel
extend ActiveSupport::Concern
- # The contents of included() will be run when YearlyModel is
- # include(... | Remove comments about how ActiveSupport::Concern works
|
diff --git a/lib/end_view/rails/layout.rb b/lib/end_view/rails/layout.rb
index abc1234..def5678 100644
--- a/lib/end_view/rails/layout.rb
+++ b/lib/end_view/rails/layout.rb
@@ -1,5 +1,4 @@ require 'end_view'
-require 'forwardable'
require 'attire'
module EndView
@@ -10,14 +9,11 @@ module Rails
class Layout
... | Add head opts to Rails::Layout. Alias vc over def_delegator.
|
diff --git a/Casks/macvim.rb b/Casks/macvim.rb
index abc1234..def5678 100644
--- a/Casks/macvim.rb
+++ b/Casks/macvim.rb
@@ -1,15 +1,15 @@ class Macvim < Cask
if MacOS.version == :mavericks
- url 'https://github.com/b4winckler/macvim/releases/download/snapshot-72/MacVim-snapshot-72-Mavericks.tbz'
- sha256 'f25... | Update MacVim to snapshot 73.
|
diff --git a/Casks/ocrkit.rb b/Casks/ocrkit.rb
index abc1234..def5678 100644
--- a/Casks/ocrkit.rb
+++ b/Casks/ocrkit.rb
@@ -2,6 +2,7 @@ version '15.11.24,62c3a0fc70ed4e5c64527ba781d634bc'
sha256 '39502f49af57eea167232cdb7cc71b9f2c102aea611dd11777ba95166368bb7a'
+ # exactcode.de was verified as official when fi... | Fix `url` stanza comment for OCRKit.
|
diff --git a/lib/magnum/client/request.rb b/lib/magnum/client/request.rb
index abc1234..def5678 100644
--- a/lib/magnum/client/request.rb
+++ b/lib/magnum/client/request.rb
@@ -2,9 +2,10 @@ module Request
API_BASE = "https://magnum-ci.com"
- def get(path, params={})
- request(:get, path, params)
- e... | Add shorthand methods for POST, PUT and DELETE
|
diff --git a/lib/oanda_api_v20/pricing.rb b/lib/oanda_api_v20/pricing.rb
index abc1234..def5678 100644
--- a/lib/oanda_api_v20/pricing.rb
+++ b/lib/oanda_api_v20/pricing.rb
@@ -31,6 +31,5 @@ ensure
buffer.clear
end
-
end
end
| Remove empty line after method.
|
diff --git a/lib/sales_tax/accountable.rb b/lib/sales_tax/accountable.rb
index abc1234..def5678 100644
--- a/lib/sales_tax/accountable.rb
+++ b/lib/sales_tax/accountable.rb
@@ -2,21 +2,27 @@
module SalesTax
module Accountable
+ def to_hash
+ accountable_hash
+ end
+
+ protected
+
+ def accountable... | Update Accountable module to new specs
|
diff --git a/lib/tasks/subscriptions.rake b/lib/tasks/subscriptions.rake
index abc1234..def5678 100644
--- a/lib/tasks/subscriptions.rake
+++ b/lib/tasks/subscriptions.rake
@@ -6,29 +6,4 @@ Spree::Subscription.delay.create_order(id)
end
end
-
- desc 'Generate subscription products'
- task generate_produ... | Move generate_products rake to main project
|
diff --git a/cca-spec-babel.rb b/cca-spec-babel.rb
index abc1234..def5678 100644
--- a/cca-spec-babel.rb
+++ b/cca-spec-babel.rb
@@ -12,7 +12,7 @@ def install
system "./configure", "--disable-contrib",
"--with-babel-config=#{HOMEBREW_PREFIX}/bin/babel-config",
- "--with-libxml2=/usr/local/opt/libxml2... | Use HOMEBREW_PREFIX for path to libxml2.
|
diff --git a/test/test-netrc.rb b/test/test-netrc.rb
index abc1234..def5678 100644
--- a/test/test-netrc.rb
+++ b/test/test-netrc.rb
@@ -30,13 +30,14 @@ end
def test_get_credentials
- assert_equal ['rocky@example.com', 'shhhh'], get_credentials
+ assert_equal ['rocky@example.com', 'shhhh'], get... | Allow netrc 0.80 (was up to 0.77)
|
diff --git a/cf-deploy.gemspec b/cf-deploy.gemspec
index abc1234..def5678 100644
--- a/cf-deploy.gemspec
+++ b/cf-deploy.gemspec
@@ -6,7 +6,7 @@ spec.name = 'cf-deploy'
spec.version = CF::Deploy::VERSION
spec.authors = ['Luke Morton']
- spec.email = ['luke@madebymade.co.uk']
+ spe... | Update email address to @madetech.co.uk
|
diff --git a/db/migrations/012_nanolitre.rb b/db/migrations/012_nanolitre.rb
index abc1234..def5678 100644
--- a/db/migrations/012_nanolitre.rb
+++ b/db/migrations/012_nanolitre.rb
@@ -1,9 +1,9 @@ ::Sequel.migration do
up do
- fetch('UPDATE aliquots SET quantity = quantity*1000 WHERE quantity is not null AND `typ... | Fix migration. Use Sequel instead of plain SQL
|
diff --git a/lib/signal.rb b/lib/signal.rb
index abc1234..def5678 100644
--- a/lib/signal.rb
+++ b/lib/signal.rb
@@ -38,10 +38,7 @@ def emit_signal(type, event, *args)
listeners.each do |listener|
method_name = "#{type}_#{event}"
-
- if listener.respond_to?(method_name)
- listener.public_send(... | Send messages without considering method visibility.
This way we can send messages to private methods from controller.
|
diff --git a/example/minimal.rb b/example/minimal.rb
index abc1234..def5678 100644
--- a/example/minimal.rb
+++ b/example/minimal.rb
@@ -8,4 +8,5 @@ Resque.redis = Redis.new(:host => host, :port => port)
end
-worker 'resqued-example-queue'
+worker_pool 1
+queue 'resqued-example-queue'
| Use a worker pool in the example, so that it's really easy to scale up.
|
diff --git a/common_spree_dependencies.rb b/common_spree_dependencies.rb
index abc1234..def5678 100644
--- a/common_spree_dependencies.rb
+++ b/common_spree_dependencies.rb
@@ -3,8 +3,6 @@ # the one component of Spree.
source 'https://rubygems.org'
-gem 'json'
-gem 'multi_json'
gem 'mysql2'
gem 'pg'
gem 'sqlite3'... | Update selenium and remove uneeded gemfile additions.
|
diff --git a/smoke_test/steps/base_step.rb b/smoke_test/steps/base_step.rb
index abc1234..def5678 100644
--- a/smoke_test/steps/base_step.rb
+++ b/smoke_test/steps/base_step.rb
@@ -24,7 +24,7 @@ self.class.name.split('::').last.gsub(/(?=[A-Z])/, ' ')
end
- def with_retries(attempts: 5, initial_del... | Change timeouts to account for sidekiq queue
This has changed the amount of time it takes for an email to get through
the system, resulting in smoke test timeouts. This change should fix
that.
|
diff --git a/spec/middleware_stack_spec.rb b/spec/middleware_stack_spec.rb
index abc1234..def5678 100644
--- a/spec/middleware_stack_spec.rb
+++ b/spec/middleware_stack_spec.rb
@@ -0,0 +1,40 @@+require 'spec_helper'
+
+describe Fluffle::MiddlewareStack do
+ describe '#call' do
+ it 'calls the middleware in the corr... | Add spec for middleware stack
|
diff --git a/app/models/user.rb b/app/models/user.rb
index abc1234..def5678 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -4,4 +4,5 @@ validates :password, presence: true, length: { minimum: 6 }
has_secure_password
+ acts_as_authentic
end
| Make the User model acts_as_authentic
|
diff --git a/spec/unit/veritas/optimizer/algebra/rename/projection_operand/optimizable_spec.rb b/spec/unit/veritas/optimizer/algebra/rename/projection_operand/optimizable_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/veritas/optimizer/algebra/rename/projection_operand/optimizable_spec.rb
+++ b/spec/unit/veritas... | Add spec to cover new mutation
|
diff --git a/Casks/dbeaver-enterprise.rb b/Casks/dbeaver-enterprise.rb
index abc1234..def5678 100644
--- a/Casks/dbeaver-enterprise.rb
+++ b/Casks/dbeaver-enterprise.rb
@@ -1,11 +1,11 @@ cask :v1 => 'dbeaver-enterprise' do
- version '3.2.0'
+ version '3.3.0'
if Hardware::CPU.is_32_bit?
- sha256 'c090a03f84589... | Update DBeaver enterprise to v3.3.0
|
diff --git a/test/travis.rb b/test/travis.rb
index abc1234..def5678 100644
--- a/test/travis.rb
+++ b/test/travis.rb
@@ -6,5 +6,6 @@
result = `sass test/silent.scss build.silent.css --style compressed`
raise result unless $?.to_i == 0
-raise "When $use-silent-classes is set to true the module should not output any C... | Print file size for debugging
|
diff --git a/app.rb b/app.rb
index abc1234..def5678 100644
--- a/app.rb
+++ b/app.rb
@@ -55,6 +55,13 @@
erb :details
end
+post '/details/:post_id' do
+ post_id = params['post_id']
+ content = params[:content]
+
+ erb "You typed comment: #{content} for post #{post_id}"
+
+end
@@ -68,4 +75,3 @@
-
| Add simple /details/.. post handler
|
diff --git a/Casks/android-studio-canary.rb b/Casks/android-studio-canary.rb
index abc1234..def5678 100644
--- a/Casks/android-studio-canary.rb
+++ b/Casks/android-studio-canary.rb
@@ -1,6 +1,6 @@ cask 'android-studio-canary' do
- version '2.0.0.4-143.2489090'
- sha256 '274f80c964ad21d17dfd75105f35249e64dd9a4e178a75e... | Update Android Studio (Canary) to 2.0 preview 5 |
diff --git a/api/app/controllers/v1/analytics_controller.rb b/api/app/controllers/v1/analytics_controller.rb
index abc1234..def5678 100644
--- a/api/app/controllers/v1/analytics_controller.rb
+++ b/api/app/controllers/v1/analytics_controller.rb
@@ -23,6 +23,7 @@ def segment(method, allowed_arguments)
analyti... | Add debugger logging to analytics
|
diff --git a/cookbooks/apache/recipes/ssl.rb b/cookbooks/apache/recipes/ssl.rb
index abc1234..def5678 100644
--- a/cookbooks/apache/recipes/ssl.rb
+++ b/cookbooks/apache/recipes/ssl.rb
@@ -24,6 +24,10 @@ include_recipe "apache"
include_recipe "ssl"
+apache_module "socache_shmcb" do
+ only_if { node[:lsb][:release].... | Enable socache_shmcb for apache SSL support on 14.04
|
diff --git a/default_options.gemspec b/default_options.gemspec
index abc1234..def5678 100644
--- a/default_options.gemspec
+++ b/default_options.gemspec
@@ -19,6 +19,5 @@ spec.require_paths = ["lib"]
spec.add_development_dependency "bundler", "~> 1.6"
- spec.add_development_dependency "rake"
- spec.add_develop... | Remove rake requirement; add version to rspec dependency
|
diff --git a/app/importers/file_importers/csv_downloader.rb b/app/importers/file_importers/csv_downloader.rb
index abc1234..def5678 100644
--- a/app/importers/file_importers/csv_downloader.rb
+++ b/app/importers/file_importers/csv_downloader.rb
@@ -1,3 +1,5 @@+# This is a service object that works with importer classes... | Add code comment to CsvDownloader class
|
diff --git a/lib/mdi_cloud_decoder/core.rb b/lib/mdi_cloud_decoder/core.rb
index abc1234..def5678 100644
--- a/lib/mdi_cloud_decoder/core.rb
+++ b/lib/mdi_cloud_decoder/core.rb
@@ -2,8 +2,7 @@ def self.decode(input)
raw_data = JSON.parse(input)
MData.new(raw_data)
- rescue Exception => ex
- puts... | Return null on decode failure
|
diff --git a/lib/meter/rails/middleware.rb b/lib/meter/rails/middleware.rb
index abc1234..def5678 100644
--- a/lib/meter/rails/middleware.rb
+++ b/lib/meter/rails/middleware.rb
@@ -9,15 +9,30 @@ def call(env)
request = Rack::Request.new(env)
Meter::MDC.data['request_id'] = env['action_dispatch.r... | Add geoip info and more
|
diff --git a/lib/multi_json/adapters/oj.rb b/lib/multi_json/adapters/oj.rb
index abc1234..def5678 100644
--- a/lib/multi_json/adapters/oj.rb
+++ b/lib/multi_json/adapters/oj.rb
@@ -13,6 +13,7 @@ end
def self.dump(object, options={}) #:nodoc:
+ options.merge!(:indent => 2) if options[:pretty] || op... | Add pretty support to Oj adapter
Fixes #51.
|
diff --git a/lib/skeleton/config/deploy.rb b/lib/skeleton/config/deploy.rb
index abc1234..def5678 100644
--- a/lib/skeleton/config/deploy.rb
+++ b/lib/skeleton/config/deploy.rb
@@ -5,6 +5,14 @@
set :s3, YAML::load( File.open( File.expand_path( '../s3.yml', __FILE__ ) ) )
+#
+# Set optionnal S3 headers for cachec co... | Add nice cache_control write options note |
diff --git a/lib/tty/prompt/reader/mode.rb b/lib/tty/prompt/reader/mode.rb
index abc1234..def5678 100644
--- a/lib/tty/prompt/reader/mode.rb
+++ b/lib/tty/prompt/reader/mode.rb
@@ -7,8 +7,8 @@ # Initialize a Terminal
#
# @api public
- def initialize(options = {})
- @input = $st... | Change to direclty pass in dependency.
|
diff --git a/lib/zensana/services/asana.rb b/lib/zensana/services/asana.rb
index abc1234..def5678 100644
--- a/lib/zensana/services/asana.rb
+++ b/lib/zensana/services/asana.rb
@@ -5,7 +5,9 @@ class Asana
include HTTParty
base_uri 'https://app.asana.com/api/1.0'
- default_timeout 5
+ default_timeout 1... | Add debug and other options to HTTParty
|
diff --git a/db/data_migration/20130123135129_convert_supporting_page_admin_urls_to_numeric_ids.rb b/db/data_migration/20130123135129_convert_supporting_page_admin_urls_to_numeric_ids.rb
index abc1234..def5678 100644
--- a/db/data_migration/20130123135129_convert_supporting_page_admin_urls_to_numeric_ids.rb
+++ b/db/da... | Migrate supporting page admin links to ids
This data migration will destructively modify old editions converting
all the supporting page urls that are in body copy as admin links to
use numerical IDs, not slugs. This will then be converted by the
previous commit to the correct govspeak links on public display.
|
diff --git a/EKAlgorithms.podspec b/EKAlgorithms.podspec
index abc1234..def5678 100644
--- a/EKAlgorithms.podspec
+++ b/EKAlgorithms.podspec
@@ -4,7 +4,7 @@ s.summary = "EKAlgorithms contains some well known CS algorithms and other stuff."
s.homepage = "https://github.com/EvgenyKarkan/EKAlgorithms"
s.l... | Add Stanislaw Pankevich to list of authors
|
diff --git a/ltsv_logger_formatter.gemspec b/ltsv_logger_formatter.gemspec
index abc1234..def5678 100644
--- a/ltsv_logger_formatter.gemspec
+++ b/ltsv_logger_formatter.gemspec
@@ -26,4 +26,5 @@ spec.add_development_dependency 'bundler', '~> 1.13'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_devel... | Add actionpack to development dependency
|
diff --git a/lib/log_service.rb b/lib/log_service.rb
index abc1234..def5678 100644
--- a/lib/log_service.rb
+++ b/lib/log_service.rb
@@ -7,11 +7,14 @@ # not_legacy = !headers.keys.join(" ").include?("mqtt")
# if (not_legacy)
# Extract current user (if version is appropriate)
- device_id = delivery_... | Comment logs service out for now
|
diff --git a/lib/tasks/hdo.rake b/lib/tasks/hdo.rake
index abc1234..def5678 100644
--- a/lib/tasks/hdo.rake
+++ b/lib/tasks/hdo.rake
@@ -17,7 +17,7 @@
CSV(out) do |csv|
promises.each do |promise|
- csv << [promise.external_id, promise.body, promise.categories.map(&:name).join(',')]
+ ... | Change column order in promise csv.
|
diff --git a/lib/tentd/model.rb b/lib/tentd/model.rb
index abc1234..def5678 100644
--- a/lib/tentd/model.rb
+++ b/lib/tentd/model.rb
@@ -6,7 +6,7 @@
NoDatabaseError = Class.new(StandardError)
unless TentD.database
- raise NoDatabaseError.new("You need to set ENV['DATABASE_URL'] or TentD.database_url")
+... | Update exception message when database url missing
|
diff --git a/screenshot_spec.rb b/screenshot_spec.rb
index abc1234..def5678 100644
--- a/screenshot_spec.rb
+++ b/screenshot_spec.rb
@@ -2,16 +2,23 @@ require File.expand_path("../spec_helper", __FILE__)
describe "Watir::Screenshot" do
+ let(:png_header) do
+ str = "\211PNG"
+ str.force_encoding('BINARY') if ... | Fix for Ruby 2.0 (default UTF-8 encoding)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.