diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/app/controllers/students_controller.rb b/app/controllers/students_controller.rb index abc1234..def5678 100644 --- a/app/controllers/students_controller.rb +++ b/app/controllers/students_controller.rb @@ -15,7 +15,7 @@ end @intervention = Intervention.new - @interventions = @student.interventi...
Order interventions list by start date + Resolves #304
diff --git a/app/controllers/v1/clubs_controller.rb b/app/controllers/v1/clubs_controller.rb index abc1234..def5678 100644 --- a/app/controllers/v1/clubs_controller.rb +++ b/app/controllers/v1/clubs_controller.rb @@ -1,57 +1,59 @@-class V1::ClubsController < ApplicationController - before_action :find_club, only: [:sh...
Improve module syntax in V1::ClubsController
diff --git a/app/representers/answer_representer.rb b/app/representers/answer_representer.rb index abc1234..def5678 100644 --- a/app/representers/answer_representer.rb +++ b/app/representers/answer_representer.rb @@ -11,4 +11,5 @@ property :user_id property :answer_text property :details_text + property :matri...
Add matrix_answer property to answer object
diff --git a/04_encrypted_rooms.rb b/04_encrypted_rooms.rb index abc1234..def5678 100644 --- a/04_encrypted_rooms.rb +++ b/04_encrypted_rooms.rb @@ -0,0 +1,20 @@+ROOM = %r{^(?<name>[-a-z]+)(?<sector>\d+)\[(?<sum>[a-z]{5})\]$} + +input = ARGF.each_line.map { |l| ROOM.match(l) } + +real = input.select { |i| + freq = i[:...
Add day 04: Encrypted Rooms
diff --git a/app/controllers/api/decks_controller.rb b/app/controllers/api/decks_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/decks_controller.rb +++ b/app/controllers/api/decks_controller.rb @@ -13,7 +13,11 @@ return super unless media_types_for('Accept').include? MEDIA_TYPE dec...
Refactor DecksController authorization to use scope
diff --git a/app/controllers/factories_controller.rb b/app/controllers/factories_controller.rb index abc1234..def5678 100644 --- a/app/controllers/factories_controller.rb +++ b/app/controllers/factories_controller.rb @@ -18,7 +18,8 @@ tables = ActiveRecord::Base.connection.tables tables.delete 'schema_migr...
Fix potential sql injection warning
diff --git a/app/jobs/scheduled/poll_feed.rb b/app/jobs/scheduled/poll_feed.rb index abc1234..def5678 100644 --- a/app/jobs/scheduled/poll_feed.rb +++ b/app/jobs/scheduled/poll_feed.rb @@ -32,8 +32,10 @@ url = i.link url = i.id if url.blank? || url !~ /^https?\:\/\// - content = CGI.unescapeHT...
FIX: Support feeds with `description` as well as `content`
diff --git a/app/presenters/field/embed_presenter.rb b/app/presenters/field/embed_presenter.rb index abc1234..def5678 100644 --- a/app/presenters/field/embed_presenter.rb +++ b/app/presenters/field/embed_presenter.rb @@ -2,7 +2,7 @@ COMPACT_WIDTH = 300 COMPACT_HEIGHT = 150 - def input(form, method, options = {}...
Fix empty url embed field
diff --git a/job_status_generation.rb b/job_status_generation.rb index abc1234..def5678 100644 --- a/job_status_generation.rb +++ b/job_status_generation.rb @@ -8,7 +8,7 @@ rep << "In progress. Downloaded #{mb_downloaded.round(2)} MB, #{error_count.to_i} errors encountered." rep << "See the ArchiveBot das...
Remove period at end of URL given in !status. Some IRC clients interpret the period as part of the URL, which can cause retrieval errors.
diff --git a/app/models/blog.rb b/app/models/blog.rb index abc1234..def5678 100644 --- a/app/models/blog.rb +++ b/app/models/blog.rb @@ -24,7 +24,8 @@ def identity_file_by_name(name) result = nil name = name.downcase - Rails.logger.debug{"Blog.identity_file_by_name searching for: #{name}"} + name2 = n...
Allow mediawiki image reference by upload page name
diff --git a/app/models/page.rb b/app/models/page.rb index abc1234..def5678 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -38,9 +38,9 @@ end def valid_parents - Page.all.to_a.delete_if { |page| - page == self || descendants.include?(page) - } + Page.all.select do |page| + page !=...
Rewrite valid_parents method a bit prettier
diff --git a/app/models/trip.rb b/app/models/trip.rb index abc1234..def5678 100644 --- a/app/models/trip.rb +++ b/app/models/trip.rb @@ -11,6 +11,6 @@ validates :event_id, :presence => true def due_date - Time.new(date.year, date.month, date.day, 0, 0, 0) + DateTime.new(date.year, date.month, date.day, 21,...
Edit due_date to comply current specifications
diff --git a/lib/sandthorn_sequel_projection/projection.rb b/lib/sandthorn_sequel_projection/projection.rb index abc1234..def5678 100644 --- a/lib/sandthorn_sequel_projection/projection.rb +++ b/lib/sandthorn_sequel_projection/projection.rb @@ -6,7 +6,7 @@ def_delegator self, :identifier - attr_reader :db_co...
Add tracker accessor and use correct var name for event_handlers
diff --git a/lib/sidekiq_unique_jobs/lock/until_timeout.rb b/lib/sidekiq_unique_jobs/lock/until_timeout.rb index abc1234..def5678 100644 --- a/lib/sidekiq_unique_jobs/lock/until_timeout.rb +++ b/lib/sidekiq_unique_jobs/lock/until_timeout.rb @@ -2,8 +2,11 @@ module Lock class UntilTimeout < UntilExecuted d...
Reduce number of created strings
diff --git a/test/models/user_test.rb b/test/models/user_test.rb index abc1234..def5678 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -28,4 +28,20 @@ @user.email = "a" * 244 + "@example.com" assert_not @user.valid? end + + test 'email validation should accept valid email addresses...
Add email validation tests for user
diff --git a/db/migrate/20130528220144_create_invitational_invitations.rb b/db/migrate/20130528220144_create_invitational_invitations.rb index abc1234..def5678 100644 --- a/db/migrate/20130528220144_create_invitational_invitations.rb +++ b/db/migrate/20130528220144_create_invitational_invitations.rb @@ -1,6 +1,6 @@ cla...
Fix the migration to be correct for an engine
diff --git a/db/migrate/20160503092026_move_user_status_to_circle_role.rb b/db/migrate/20160503092026_move_user_status_to_circle_role.rb index abc1234..def5678 100644 --- a/db/migrate/20160503092026_move_user_status_to_circle_role.rb +++ b/db/migrate/20160503092026_move_user_status_to_circle_role.rb @@ -1,9 +1,11 @@ cl...
Fix migration; status isn't on the user any more.
diff --git a/nyny.gemspec b/nyny.gemspec index abc1234..def5678 100644 --- a/nyny.gemspec +++ b/nyny.gemspec @@ -19,6 +19,7 @@ spec.require_paths = ["lib"] spec.add_dependency "rack" + spec.add_dependency "tilt" spec.add_development_dependency "bundler", "~> 1.3" spec.add_developme...
Add tilt as an explicit dependency
diff --git a/lib/ticket_evolution/core/collection.rb b/lib/ticket_evolution/core/collection.rb index abc1234..def5678 100644 --- a/lib/ticket_evolution/core/collection.rb +++ b/lib/ticket_evolution/core/collection.rb @@ -1,6 +1,7 @@ module TicketEvolution class Collection - attr_accessor :total_entries, :per_page...
Add handling for possible total_sum and balance_sum list values
diff --git a/lib/warden/github/rails/test_helpers.rb b/lib/warden/github/rails/test_helpers.rb index abc1234..def5678 100644 --- a/lib/warden/github/rails/test_helpers.rb +++ b/lib/warden/github/rails/test_helpers.rb @@ -15,6 +15,30 @@ end class MockUser < ::Warden::GitHub::User + attr_reader :mem...
Add ability to stub memberships on mock user
diff --git a/recipes/_apt.rb b/recipes/_apt.rb index abc1234..def5678 100644 --- a/recipes/_apt.rb +++ b/recipes/_apt.rb @@ -6,3 +6,11 @@ # include_recipe "apt::default" + +# XXX: work around bug in postgresql cookbook +# https://github.com/elm-city-craftworks/practicing-ruby-cookbook/issues/24 +stamp_file = "/var/l...
Work around bug in postgresql cookbook Addresses https://github.com/elm-city-craftworks/practicing-ruby-cookbook/issues/24
diff --git a/kmeans-clusterer.gemspec b/kmeans-clusterer.gemspec index abc1234..def5678 100644 --- a/kmeans-clusterer.gemspec +++ b/kmeans-clusterer.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'kmeans-clusterer' - s.version = '0.5.2' + s.version = '0.5.3' s.date = '2015-...
Add runtime gem dependency for narray. Version 0.5.3
diff --git a/lib/garnish/presenter.rb b/lib/garnish/presenter.rb index abc1234..def5678 100644 --- a/lib/garnish/presenter.rb +++ b/lib/garnish/presenter.rb @@ -3,6 +3,8 @@ extend ActiveSupport::Concern included do + include InstanceMethods + attr_accessor :template end @@ -12,10 +14,13 @@...
Move the instance methods into a module for inclusion as per ActiveSupport::Concern warnings.
diff --git a/datastax_rails.gemspec b/datastax_rails.gemspec index abc1234..def5678 100644 --- a/datastax_rails.gemspec +++ b/datastax_rails.gemspec @@ -12,6 +12,7 @@ s.homepage = "https://github.com/jasonmk/datastax_rails" s.summary = "A Ruby-on-Rails interface to Datastax Enterprise" s.description = "A...
Add license to gemspec file
diff --git a/recipes/server_windows_install.rb b/recipes/server_windows_install.rb index abc1234..def5678 100644 --- a/recipes/server_windows_install.rb +++ b/recipes/server_windows_install.rb @@ -7,7 +7,7 @@ opts = [] opts << '/S' -opts << "/D=#{node['gocd']['server']['work_dir']}" +opts << "/D='#{node['gocd']['ser...
Fix slashes being passed in incorrectly when work_dir is specified
diff --git a/rr.gemspec b/rr.gemspec index abc1234..def5678 100644 --- a/rr.gemspec +++ b/rr.gemspec @@ -18,7 +18,6 @@ 'CHANGES.md', 'CREDITS.md', 'Gemfile', - 'Gemfile.lock', 'LICENSE', 'README.md', 'Rakefile',
Remove Gemfile.lock from the gemspec It's absent from the repo, so trying to use `gem 'rr', github: 'rr/rr'` will result in a warning from Bundler.
diff --git a/lib/mnemosyne/builder.rb b/lib/mnemosyne/builder.rb index abc1234..def5678 100644 --- a/lib/mnemosyne/builder.rb +++ b/lib/mnemosyne/builder.rb @@ -27,7 +27,9 @@ meta: payload[:meta] end - Span.bulk_insert do |worker| + # `Span.column_names` is required to force bulk in...
Fix issue on bulk insert leaving UUID out * Bulk insert plugin ignores given ID column value unless column list is manually specified and including ID column
diff --git a/lib/perpetuity/config.rb b/lib/perpetuity/config.rb index abc1234..def5678 100644 --- a/lib/perpetuity/config.rb +++ b/lib/perpetuity/config.rb @@ -14,7 +14,7 @@ adapter = args.shift db_name = args.shift options = args.shift || {} - adapter_class = Perpetuity.const_...
Refactor Perpetuity::Configuration.adapters to contain classes. We were using strings before, because adapter classes may not exist. We'll check to ensure they're defined instead, before adding them.
diff --git a/db/migrate/20151201200312_create_minimalist_theme.rb b/db/migrate/20151201200312_create_minimalist_theme.rb index abc1234..def5678 100644 --- a/db/migrate/20151201200312_create_minimalist_theme.rb +++ b/db/migrate/20151201200312_create_minimalist_theme.rb @@ -0,0 +1,37 @@+class CreateMinimalistTheme < Acti...
Add Minimalist Theme to Theme Editor Fixes: CNVS-25766 This is the first of four themes we are going to add to Theme Editor's default offerings. Test plan: - Pull down the patchset, migrate your database, and restart Canvas - Open Theme Editor. Make sure you have delayed jobs running in the background: script/...
diff --git a/lib/tasks/scheduler.rake b/lib/tasks/scheduler.rake index abc1234..def5678 100644 --- a/lib/tasks/scheduler.rake +++ b/lib/tasks/scheduler.rake @@ -11,15 +11,22 @@ f[:entries].present? }.map { |f| "Create #{f[:entries].count} entries and #{f[:tracks].count} tracks from #{f[:feed].id}" }.join("\...
Clear entries of user subscriptions after crawling
diff --git a/Casks/omnigraffle5.rb b/Casks/omnigraffle5.rb index abc1234..def5678 100644 --- a/Casks/omnigraffle5.rb +++ b/Casks/omnigraffle5.rb @@ -0,0 +1,10 @@+cask :v1 => 'omnigraffle5' do + version '5.4.4' + sha256 '7bcc64093f46bd4808b1a4cb86cf90c0380a5c5ffffd55ce8f742712818558df' + + url "http://www.omnigroup.c...
Add OmniGraffle 5 Standard cask Fix token name Add OmniGraffle 5 Standard cask Fix token name
diff --git a/lib/buildr_plus/features/whitespace.rb b/lib/buildr_plus/features/whitespace.rb index abc1234..def5678 100644 --- a/lib/buildr_plus/features/whitespace.rb +++ b/lib/buildr_plus/features/whitespace.rb @@ -16,7 +16,7 @@ desc 'Check all whitespace is normalized.' task 'whitespace:check' do out...
Check error code rather than standard out as other tools in chain (i.e bundler) can emit text to stdout
diff --git a/timestamp_scopes.gemspec b/timestamp_scopes.gemspec index abc1234..def5678 100644 --- a/timestamp_scopes.gemspec +++ b/timestamp_scopes.gemspec @@ -8,7 +8,8 @@ gem.version = TimestampScopes::VERSION gem.authors = ["Jake Moffatt"] gem.email = ["jakeonrails@gmail.com"] - gem.summ...
Add gem description to gemspec
diff --git a/lib/first_click_free/helpers/google.rb b/lib/first_click_free/helpers/google.rb index abc1234..def5678 100644 --- a/lib/first_click_free/helpers/google.rb +++ b/lib/first_click_free/helpers/google.rb @@ -27,12 +27,12 @@ # Returns true if the hostname ends with googlebot.com and the # forward D...
Fix Ruby class name, and update how IP address is indexed
diff --git a/app/components/sdg/goals/icon_component.rb b/app/components/sdg/goals/icon_component.rb index abc1234..def5678 100644 --- a/app/components/sdg/goals/icon_component.rb +++ b/app/components/sdg/goals/icon_component.rb @@ -7,7 +7,7 @@ end def image_path - "sdg/#{folder}/goal_#{code}.png" + "sdg/#...
Rename folder method in SDG icon component The method name was a bit confusing because it returned a locale.
diff --git a/app/controllers/api/accounts_controller.rb b/app/controllers/api/accounts_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/accounts_controller.rb +++ b/app/controllers/api/accounts_controller.rb @@ -3,7 +3,7 @@ def index @accounts = Account.all - @accounts = @accounts...
Sort accounts by account group name, then by name.
diff --git a/app/controllers/concerns/course_manager.rb b/app/controllers/concerns/course_manager.rb index abc1234..def5678 100644 --- a/app/controllers/concerns/course_manager.rb +++ b/app/controllers/concerns/course_manager.rb @@ -3,7 +3,7 @@ def append_course(list_name, course) current_user.send(list_name)....
Fix list_name missing in save_course action
diff --git a/app/models/concerns/identifiable_by_key.rb b/app/models/concerns/identifiable_by_key.rb index abc1234..def5678 100644 --- a/app/models/concerns/identifiable_by_key.rb +++ b/app/models/concerns/identifiable_by_key.rb @@ -0,0 +1,17 @@+module IdentifiableByKey + extend ActiveSupport::Concern + + included do...
Add concern to create unique keys
diff --git a/cookbooks/nginx/attributes/passenger.rb b/cookbooks/nginx/attributes/passenger.rb index abc1234..def5678 100644 --- a/cookbooks/nginx/attributes/passenger.rb +++ b/cookbooks/nginx/attributes/passenger.rb @@ -3,5 +3,5 @@ # node.default["nginx"]["passenger"]["version"] = "3.0.12" node.default["nginx"]["pas...
Remove the nginx attribute that breaks nginx on Windows nodes
diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index abc1234..def5678 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -12,7 +12,7 @@ def second_welcome_email(user) @user = user @first_entry = user.entries.first - @first_entry_filepicker_url = filepicker_im...
Check for entry before calling image_url
diff --git a/app/models/load_profile.rb b/app/models/load_profile.rb index abc1234..def5678 100644 --- a/app/models/load_profile.rb +++ b/app/models/load_profile.rb @@ -16,7 +16,7 @@ def calculate_demand if (8..23).to_a.include? self.hour # oversimplified parabola - self.demand = -0.1 * ((self.hour -...
Use a nicer equation for load profile.
diff --git a/app/models/offsite_link.rb b/app/models/offsite_link.rb index abc1234..def5678 100644 --- a/app/models/offsite_link.rb +++ b/app/models/offsite_link.rb @@ -11,7 +11,7 @@ end unless url_is_gov_uk?(host) || url_is_gov_wales?(host) || url_is_whitelisted?(host) - errors.add(:base, "Please...
Update `OffsiteLink` url validation message Removed the instruction to add a GOV.UK url as that is no longer accurate. Other URLs are also allowed.
diff --git a/lib/tasks/internet_box_logger_tasks.rb b/lib/tasks/internet_box_logger_tasks.rb index abc1234..def5678 100644 --- a/lib/tasks/internet_box_logger_tasks.rb +++ b/lib/tasks/internet_box_logger_tasks.rb @@ -10,7 +10,7 @@ def ibl_gem_path spec = Gem::Specification.find_by_name('internet_box_logger...
Fix ogf method that returns the root path of the gem
diff --git a/cookbooks/travis_internal_bastion/attributes/default.rb b/cookbooks/travis_internal_bastion/attributes/default.rb index abc1234..def5678 100644 --- a/cookbooks/travis_internal_bastion/attributes/default.rb +++ b/cookbooks/travis_internal_bastion/attributes/default.rb @@ -1,4 +1,5 @@ include_attribute 'trav...
Set ssh server logging to VERBOSE on bastion
diff --git a/startup.rb b/startup.rb index abc1234..def5678 100644 --- a/startup.rb +++ b/startup.rb @@ -1,7 +1,8 @@ ## This file is loaded by irb -r ## So, setup any necessary configuration variables / executables here -## Remove previous gem installation +## Remove all previous gem installations +`gem uninstall -I...
Remove all previous gem versions before reinstalling
diff --git a/lib/groupify/adapter/active_record/polymorphic_collection.rb b/lib/groupify/adapter/active_record/polymorphic_collection.rb index abc1234..def5678 100644 --- a/lib/groupify/adapter/active_record/polymorphic_collection.rb +++ b/lib/groupify/adapter/active_record/polymorphic_collection.rb @@ -39,7 +39,16 @@ ...
Fix postgres by changing from `GROUP BY` to `DISTINCT ON`
diff --git a/lib/fakie/java_script.rb b/lib/fakie/java_script.rb index abc1234..def5678 100644 --- a/lib/fakie/java_script.rb +++ b/lib/fakie/java_script.rb @@ -7,8 +7,8 @@ def js_context @@_js_context ||= begin require 'execjs' - source = File.open('lib/fakie/js/libphonenumber.js').read - ...
Use a better path when loading JavaScripts
diff --git a/event_store-messaging.gemspec b/event_store-messaging.gemspec index abc1234..def5678 100644 --- a/event_store-messaging.gemspec +++ b/event_store-messaging.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = 'event_store-messaging' s.summary = 'Messaging primitives for EventStore using the...
Package version increased from 0.0.2.8 to 0.1.0.0
diff --git a/Library/Formula/wxmac.rb b/Library/Formula/wxmac.rb index abc1234..def5678 100644 --- a/Library/Formula/wxmac.rb +++ b/Library/Formula/wxmac.rb @@ -1,9 +1,15 @@ require 'formula' class Wxmac <Formula - url 'http://downloads.sourceforge.net/project/wxwindows/wxMac/2.8.10/wxMac-2.8.10.tar.bz2' + url 'ht...
Update wxWidgets to 2.8.11 and add caveats.
diff --git a/examples/enum_select_paged.rb b/examples/enum_select_paged.rb index abc1234..def5678 100644 --- a/examples/enum_select_paged.rb +++ b/examples/enum_select_paged.rb @@ -6,4 +6,4 @@ alfabet = ('A'..'Z').to_a -prompt.enum_select('Which letter?', alfabet, per_page: 4) +prompt.enum_select('Which letter?', a...
Change example to demonstrate cycling
diff --git a/lib/jekyll/assets_plugin/environment.rb b/lib/jekyll/assets_plugin/environment.rb index abc1234..def5678 100644 --- a/lib/jekyll/assets_plugin/environment.rb +++ b/lib/jekyll/assets_plugin/environment.rb @@ -35,6 +35,9 @@ self.cache = Sprockets::Cache::FileStore.new cache_path end + ...
Reset cache upon config change
diff --git a/lib/netsuite/records/record_ref_list.rb b/lib/netsuite/records/record_ref_list.rb index abc1234..def5678 100644 --- a/lib/netsuite/records/record_ref_list.rb +++ b/lib/netsuite/records/record_ref_list.rb @@ -1,28 +1,10 @@ module NetSuite module Records - class RecordRefList - include Support::Fi...
Refactor RecordRefList to use Support::Sublist
diff --git a/db/data_migration/20160525093035_republish_publications_to_publishing_api.rb b/db/data_migration/20160525093035_republish_publications_to_publishing_api.rb index abc1234..def5678 100644 --- a/db/data_migration/20160525093035_republish_publications_to_publishing_api.rb +++ b/db/data_migration/20160525093035...
Send republish jobs to correct queue
diff --git a/lib/react/rails/controller_lifecycle.rb b/lib/react/rails/controller_lifecycle.rb index abc1234..def5678 100644 --- a/lib/react/rails/controller_lifecycle.rb +++ b/lib/react/rails/controller_lifecycle.rb @@ -4,9 +4,11 @@ extend ActiveSupport::Concern included do - # use old names to s...
Support controller callbacks for Rails 3..5 `before_filter` is deprecated in Rails 5 and will disappear in 5.1 This change begins using `before_action`, with a fallback to `before_filter` if `before_action` is not available. closes #404
diff --git a/lib/swagger_docs_generator/generator.rb b/lib/swagger_docs_generator/generator.rb index abc1234..def5678 100644 --- a/lib/swagger_docs_generator/generator.rb +++ b/lib/swagger_docs_generator/generator.rb @@ -44,7 +44,7 @@ def agregate_metadata case defined?(Rails) && Rails.env when 'produ...
Fix json file writing in production/test env
diff --git a/lib/timeline_fu/acts_as_event_target.rb b/lib/timeline_fu/acts_as_event_target.rb index abc1234..def5678 100644 --- a/lib/timeline_fu/acts_as_event_target.rb +++ b/lib/timeline_fu/acts_as_event_target.rb @@ -5,6 +5,8 @@ end module ClassMethods + # Who's this timeline for? User? Person? + ...
Add comment to help understand the meaning of aaet
diff --git a/spec/regression/regression_spec.rb b/spec/regression/regression_spec.rb index abc1234..def5678 100644 --- a/spec/regression/regression_spec.rb +++ b/spec/regression/regression_spec.rb @@ -3,7 +3,7 @@ describe "regression test" do command("#{File.expand_path("../../../bin/foodcritic", __FILE__)} --no-pro...
Use File not IO for regression Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/lib/vagrant-cachier/bucket/apt_lists.rb b/lib/vagrant-cachier/bucket/apt_lists.rb index abc1234..def5678 100644 --- a/lib/vagrant-cachier/bucket/apt_lists.rb +++ b/lib/vagrant-cachier/bucket/apt_lists.rb @@ -7,6 +7,10 @@ end def install + # Apt lists bucket can't be used on wind...
Disable apt-lists bucket for windows hosts Fixes GH-106
diff --git a/robot.gemspec b/robot.gemspec index abc1234..def5678 100644 --- a/robot.gemspec +++ b/robot.gemspec @@ -3,7 +3,7 @@ require "robot/version" Gem::Specification.new do |s| - s.name = "robot" + s.name = "scheduled-robot" s.version = Robot::VERSION::STRING s.platform = Gem::Plat...
Update name to not conflict with already existing gem
diff --git a/lib/lita-meetup-rsvps.rb b/lib/lita-meetup-rsvps.rb index abc1234..def5678 100644 --- a/lib/lita-meetup-rsvps.rb +++ b/lib/lita-meetup-rsvps.rb @@ -5,6 +5,38 @@ class MeetupRsvps < Handler end + # How often we should poll for new events/meetups from your groups. + config :events_poll_inter...
Add the basic idea and a few config options
diff --git a/lib/models/mm_adapter.rb b/lib/models/mm_adapter.rb index abc1234..def5678 100644 --- a/lib/models/mm_adapter.rb +++ b/lib/models/mm_adapter.rb @@ -23,7 +23,7 @@ user = MmUser.new attributes puts user.inspect puts user.to_json - user.save + user.id = nil unless user.save ...
Reset id if save fails A nil id tells us that the save failed, but MongoMapper sets id on all new instances.
diff --git a/lib/prawn/emoji/image.rb b/lib/prawn/emoji/image.rb index abc1234..def5678 100644 --- a/lib/prawn/emoji/image.rb +++ b/lib/prawn/emoji/image.rb @@ -22,7 +22,7 @@ private def codepoint - @codepoint ||= @unicode.codepoints.map { |c| c.to_s(16) }.join('-').downcase + @codepoint ||...
Fix truncation of longer emoji codepoints
diff --git a/lib/renderer/graphviz.rb b/lib/renderer/graphviz.rb index abc1234..def5678 100644 --- a/lib/renderer/graphviz.rb +++ b/lib/renderer/graphviz.rb @@ -8,6 +8,7 @@ g[:splines] = :true g[:sep] = 1 g[:concentrate] = :true + g[:rankdir] = "LR" } @file_name = file_nam...
Use add rankdir option to improve the look Right now all networks are source nodes and this way have a rank of 0 means they are all placed on top, side by side. In a network with a lot of subnets the picture becomes wider which makes it hard to read and complicated to scroll. With this change, the graph direction swi...
diff --git a/spec/support/controller_macros.rb b/spec/support/controller_macros.rb index abc1234..def5678 100644 --- a/spec/support/controller_macros.rb +++ b/spec/support/controller_macros.rb @@ -3,17 +3,16 @@ def login_admin before(:each) do @request.env["devise.mapping"] = Devise.mappings[:admin] - ...
Define user as an instance variable in spec/support login macros. Not really BDD, but it will help check some things in controller specs.
diff --git a/script/export_to_csv.rb b/script/export_to_csv.rb index abc1234..def5678 100644 --- a/script/export_to_csv.rb +++ b/script/export_to_csv.rb @@ -0,0 +1,9 @@+puts PositionApplication.where(:created_at.gte => '2015-05-04').select { |pa| pa.call && pa.call.workflow == :workflow_administration_election}.map { |...
Add script used to export HYY elections
diff --git a/example/simple_client.rb b/example/simple_client.rb index abc1234..def5678 100644 --- a/example/simple_client.rb +++ b/example/simple_client.rb @@ -0,0 +1,8 @@+#!/usr/bin/ruby + +require 'net/ajp13/client' + +Net::AJP13::Client.start('localhost',3009) do |client| + puts client.get('/index.jsp').body +end ...
Add a simple AJP13 test client.
diff --git a/db/migrate/20150206000001_create_vip.rb b/db/migrate/20150206000001_create_vip.rb index abc1234..def5678 100644 --- a/db/migrate/20150206000001_create_vip.rb +++ b/db/migrate/20150206000001_create_vip.rb @@ -24,6 +24,9 @@ :Admin => { :null => true, }, + :Agent => ...
Allow agents to set vip attribute.
diff --git a/lib/active_merchant/billing/stripe_gateway_decorator.rb b/lib/active_merchant/billing/stripe_gateway_decorator.rb index abc1234..def5678 100644 --- a/lib/active_merchant/billing/stripe_gateway_decorator.rb +++ b/lib/active_merchant/billing/stripe_gateway_decorator.rb @@ -7,7 +7,13 @@ commit(:post...
Add retrieve action for ach bank_accounts
diff --git a/config/initializers/pusher.rb b/config/initializers/pusher.rb index abc1234..def5678 100644 --- a/config/initializers/pusher.rb +++ b/config/initializers/pusher.rb @@ -0,0 +1,5 @@+require 'pusher' + +Pusher.url = "https://545220afdca7480dd648:10d35535615aa40e73f4@api.pusherapp.com/apps/151280" + +Pusher.lo...
Add the Pusher.com initializer file.
diff --git a/scripts/make-package.rb b/scripts/make-package.rb index abc1234..def5678 100644 --- a/scripts/make-package.rb +++ b/scripts/make-package.rb @@ -1,16 +1,19 @@+require 'json' +require 'zip/zip' + unversioned = `git ls-files -o src`.strip if !unversioned.empty? puts "Error: Unversioned files in tree, exi...
Update package creation to use Ruby zip library instead of OS zip utility.
diff --git a/callcredit.gemspec b/callcredit.gemspec index abc1234..def5678 100644 --- a/callcredit.gemspec +++ b/callcredit.gemspec @@ -6,7 +6,7 @@ gem.add_runtime_dependency 'nokogiri', '~> 1.4' gem.add_runtime_dependency 'unicode_utils', '~> 1.4.0' - gem.add_development_dependency 'rspec', ...
Update rspec requirement from ~> 3.7.0 to ~> 3.8.0 Updates the requirements on [rspec](https://github.com/rspec/rspec) to permit the latest version. - [Release notes](https://github.com/rspec/rspec/releases) - [Commits](https://github.com/rspec/rspec/commits/v3.8.0) Signed-off-by: dependabot[bot] <5bdcd3c0d4d24ae3e71...
diff --git a/activerecord/test/support/connection.rb b/activerecord/test/support/connection.rb index abc1234..def5678 100644 --- a/activerecord/test/support/connection.rb +++ b/activerecord/test/support/connection.rb @@ -13,8 +13,7 @@ def self.connect puts "Using #{connection_name}" - file = File.open('debu...
Revert "truncate debug.log on each test run" This reverts commit 98043c689f945cabffc043f4bdc80ab2a7edc763. Because if every time `debug.log` is truncated, developers have no way to see the previous ActiveRecord unit test results. `debug.log` file can be easily reduced by executing `$ touch /dev/null > debug.log` peri...
diff --git a/lib/rails-csv-fixtures/active_record_csv_fixtures.rb b/lib/rails-csv-fixtures/active_record_csv_fixtures.rb index abc1234..def5678 100644 --- a/lib/rails-csv-fixtures/active_record_csv_fixtures.rb +++ b/lib/rails-csv-fixtures/active_record_csv_fixtures.rb @@ -9,27 +9,30 @@ alias_method_chain :read_fi...
Fix compatibility with Rails 4.1.0 The changes should be backwards compatible, but have not yet been tested with older versions of Rails.
diff --git a/ext/rkerberos/extconf.rb b/ext/rkerberos/extconf.rb index abc1234..def5678 100644 --- a/ext/rkerberos/extconf.rb +++ b/ext/rkerberos/extconf.rb @@ -4,6 +4,10 @@ have_header('krb5.h') have_library('krb5') + +unless pkg_config('com_err') + puts 'warning: com_err not found, usually a dependency for kadm5c...
Fix kadm5clnt build issue on EL6 Explicitly require com_err to populate the include path and fix kadm5/admin.h error on EL6 with e2fsprogs 1.41, which doesn't have /usr/include/com_err.h.
diff --git a/AnalyticsSwift.podspec b/AnalyticsSwift.podspec index abc1234..def5678 100644 --- a/AnalyticsSwift.podspec +++ b/AnalyticsSwift.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'AnalyticsSwift' - spec.version = '0.1.0' + spec.version = '0.2.0' spec.license...
Increment spec version to indicate swift2
diff --git a/Casks/intellij-idea.rb b/Casks/intellij-idea.rb index abc1234..def5678 100644 --- a/Casks/intellij-idea.rb +++ b/Casks/intellij-idea.rb @@ -1,6 +1,6 @@ cask :v1 => 'intellij-idea' do - version '14.1.2' - sha256 'ea3326004a8e1dd113ea54b825494f60be0f506c5e6a25743481a719931ce896' + version '14.1.3' + sha2...
Upgrade Intellij Idea to 14.1.3
diff --git a/sequel-annotate.gemspec b/sequel-annotate.gemspec index abc1234..def5678 100644 --- a/sequel-annotate.gemspec +++ b/sequel-annotate.gemspec @@ -2,7 +2,6 @@ s.name = 'sequel-annotate' s.version = '1.2.0' s.platform = Gem::Platform::RUBY - s.has_rdoc = true s.extra_rdoc_files = ["README.rdoc", "C...
Remove has_rdoc from gemspec, since it is deprecated
diff --git a/roles/web.rb b/roles/web.rb index abc1234..def5678 100644 --- a/roles/web.rb +++ b/roles/web.rb @@ -17,8 +17,8 @@ :pool_idle_time => 0 }, :web => { - :status => "database_readonly", - :database_host => "db-slave", + :status => "online", + :database_host => "db", :readonly_databas...
Revert "Switch site to readonly mode on ramoth" This reverts commit b7ef775848df23afe2d99f4f09fa04189190a5f7.
diff --git a/app/controllers/questions_controller.rb b/app/controllers/questions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/questions_controller.rb +++ b/app/controllers/questions_controller.rb @@ -10,6 +10,8 @@ def show @question = Question.find(params[:id]) @answer = current_user.an...
Create empty comment for rendering the comment box and retreive all comments for a question
diff --git a/app/controllers/responses_controller.rb b/app/controllers/responses_controller.rb index abc1234..def5678 100644 --- a/app/controllers/responses_controller.rb +++ b/app/controllers/responses_controller.rb @@ -1,6 +1,7 @@ class ResponsesController < ApplicationController def index - @responses = Respon...
Fix export all responses for project bug
diff --git a/KMSWebRTCCall.podspec b/KMSWebRTCCall.podspec index abc1234..def5678 100644 --- a/KMSWebRTCCall.podspec +++ b/KMSWebRTCCall.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "KMSWebRTCCall" - s.version = "1.0.3" + s.version = "1.0.4" s.summary = "Kurento M...
Update pod spec to v1.0.4
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 @@ -16,7 +16,7 @@ xml.id URI.join(site_url, article.url) xml.published article.date.to_time.iso8601 xml.updated File.mtime(article.source_file).iso...
Fix "Article Author" being used Atom feed.
diff --git a/net_http_ssl_fix.gemspec b/net_http_ssl_fix.gemspec index abc1234..def5678 100644 --- a/net_http_ssl_fix.gemspec +++ b/net_http_ssl_fix.gemspec @@ -14,5 +14,6 @@ s.files = `git ls-files`.split("\n") s.require_paths = ['lib'] + s.add_development_dependency 'rake', '~> 11.1.2' s.add_devel...
Add rake as development dependency
diff --git a/test/performance/rollenspiel/role_grantee_performance_test.rb b/test/performance/rollenspiel/role_grantee_performance_test.rb index abc1234..def5678 100644 --- a/test/performance/rollenspiel/role_grantee_performance_test.rb +++ b/test/performance/rollenspiel/role_grantee_performance_test.rb @@ -22,7 +22,10...
Fix performance test for ruby 1.x.
diff --git a/co_aspects.gemspec b/co_aspects.gemspec index abc1234..def5678 100644 --- a/co_aspects.gemspec +++ b/co_aspects.gemspec @@ -24,7 +24,7 @@ spec.add_dependency 'activesupport', '>= 3.0' - spec.add_development_dependency 'bundler', '~> 1.10' + spec.add_development_dependency 'bundler', '~> 1.9' spe...
Downgrade bundler version for circleci
diff --git a/sprockets-rails.gemspec b/sprockets-rails.gemspec index abc1234..def5678 100644 --- a/sprockets-rails.gemspec +++ b/sprockets-rails.gemspec @@ -11,12 +11,12 @@ s.files = Dir["README.md", "lib/**/*.rb", "MIT-LICENSE"] - s.required_ruby_version = '>= 1.9.3' + s.required_ruby_version = '>= 2.5' s...
Update gemspec with minimum ruby/rails versions
diff --git a/spec/factories/notes.rb b/spec/factories/notes.rb index abc1234..def5678 100644 --- a/spec/factories/notes.rb +++ b/spec/factories/notes.rb @@ -8,7 +8,7 @@ is_citation true lang 'en' listable true - external_updated_at 1.day.ago + sequence(:external_updated_at) { |n| (1000 - n).days.ago...
Revert change in date sequencing
diff --git a/app/controllers/spree/base_controller.rb b/app/controllers/spree/base_controller.rb index abc1234..def5678 100644 --- a/app/controllers/spree/base_controller.rb +++ b/app/controllers/spree/base_controller.rb @@ -0,0 +1,16 @@+require 'cancan' +require_dependency 'spree/core/controller_helpers/strong_paramet...
Bring base controller from spree
diff --git a/config/schedule.rb b/config/schedule.rb index abc1234..def5678 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -24,7 +24,7 @@ # Learn more: http://github.com/javan/whenever # stagger jobs by offsetting with current time -time = Time.zone.now +time = Time.new # define cron strings nightly...
Remove Rails dependency from whenever.rb Resolves #1542 - whoops
diff --git a/lib/convection/model/diff.rb b/lib/convection/model/diff.rb index abc1234..def5678 100644 --- a/lib/convection/model/diff.rb +++ b/lib/convection/model/diff.rb @@ -7,6 +7,7 @@ # Difference between an item in two templates ## class Diff + include Comparable extend Mixin::Colorize ...
Allow Diff objects to be sorted in addition to checking for equality.
diff --git a/lib/data_mapper/alias_set.rb b/lib/data_mapper/alias_set.rb index abc1234..def5678 100644 --- a/lib/data_mapper/alias_set.rb +++ b/lib/data_mapper/alias_set.rb @@ -1,7 +1,6 @@ module DataMapper class AliasSet include Enumerable - include Adamantium attr_reader :prefix
Make AliasSet mutable (at least for now) Adamantium is doing too much freezing here. Making AliasSet immutable results in "can't modify frozen object" during EV/EC attribute mapper finalization
diff --git a/app/models/news.rb b/app/models/news.rb index abc1234..def5678 100644 --- a/app/models/news.rb +++ b/app/models/news.rb @@ -1,2 +1,13 @@ class News < ActiveRecord::Base + validates :title, :sub_title, :body, :image_url, presence: true + validates_length_of :title, :minimum => 5 + validates_length_of :ti...
Add title, subtitle, body, image_url validation for News
diff --git a/app/models/page.rb b/app/models/page.rb index abc1234..def5678 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -1,5 +1,6 @@ class Page < ActiveRecord::Base belongs_to :parent, class_name: "Page", foreign_key: "parent_id" + has_many :pages, class_name: "Page", foreign_key: "parent_id" d...
Add has many relation to Page
diff --git a/app/models/silo.rb b/app/models/silo.rb index abc1234..def5678 100644 --- a/app/models/silo.rb +++ b/app/models/silo.rb @@ -14,7 +14,7 @@ index silo_type: 1 def to_json - @json ||= Multijson.encode bag + @json ||= MultiJson.encode bag end class << self
Use MultiJson, not Multijson, which doesn't exist
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 @@ -13,14 +13,9 @@ has_many :subscriptions, :class_name => ClubsUsers - has_attached_file :icon, :styles => { :medium => "256x256>", :thumb => "100x100>", :tiny => "50x50>" },...
Update User for Icon and Default Update the User model to ensure that the icon attribute is a string rather than an attached image, and default the icon when the user is initialized.
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 @@ -8,5 +8,5 @@ validates :email, email: true # customized validity check in app/validators/website_validator.rb - validates :website, website: true + validates :website, website: t...
Allow blank field for website url
diff --git a/lib/access_lint/audit.rb b/lib/access_lint/audit.rb index abc1234..def5678 100644 --- a/lib/access_lint/audit.rb +++ b/lib/access_lint/audit.rb @@ -4,6 +4,7 @@ module AccessLint class Audit RUNNER_PATH = File.expand_path("../../../vendor/access-lint/bin/auditor.js", __FILE__) + HTML_CS_PATH = Fi...
Add support for HTML CodeSniffer
diff --git a/lib/dialogue/storable.rb b/lib/dialogue/storable.rb index abc1234..def5678 100644 --- a/lib/dialogue/storable.rb +++ b/lib/dialogue/storable.rb @@ -13,8 +13,7 @@ if present present = keys.all? do |key| !data[key].nil? && - (!data[key].respond_to?(:empty?) || - ...
Refactor to simplify the boolean logic
diff --git a/config/initializers/database_connection.rb b/config/initializers/database_connection.rb index abc1234..def5678 100644 --- a/config/initializers/database_connection.rb +++ b/config/initializers/database_connection.rb @@ -1,11 +1,11 @@-Rails.application.config.after_initialize do - ActiveRecord::Base.connec...
Remove the database connection pooling code for now
diff --git a/lib/docs/scrapers/jquery/jquery_core.rb b/lib/docs/scrapers/jquery/jquery_core.rb index abc1234..def5678 100644 --- a/lib/docs/scrapers/jquery/jquery_core.rb +++ b/lib/docs/scrapers/jquery/jquery_core.rb @@ -1,7 +1,7 @@ module Docs class JqueryCore < Jquery self.name = 'jQuery' - self.release = ...
Update jQuery documentation (up to 2.2.4)