diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/single_signon.rb b/lib/single_signon.rb index abc1234..def5678 100644 --- a/lib/single_signon.rb +++ b/lib/single_signon.rb @@ -9,6 +9,7 @@ option :client_options, { :site => ENV['AUTH_SITE_URL'] } + option :provider_ignores_state, true uid { raw_info['id'] }
Allow to disable CSRF protection in individual strategies Some OAuth2 providers ignore 'state' parameter, and don't return it back to the client. CSRF protection with this parameter is impossible for such services.
diff --git a/app/controllers/user_votes_controller.rb b/app/controllers/user_votes_controller.rb index abc1234..def5678 100644 --- a/app/controllers/user_votes_controller.rb +++ b/app/controllers/user_votes_controller.rb @@ -1,34 +1,31 @@ class UserVotesController < ApplicationController + def index + @user = cur...
Fix Spacing & Add Items When In Index Fix the spacing and add in the items to user votes when the index page loads.
diff --git a/app/models/school/parameter_sanitizer.rb b/app/models/school/parameter_sanitizer.rb index abc1234..def5678 100644 --- a/app/models/school/parameter_sanitizer.rb +++ b/app/models/school/parameter_sanitizer.rb @@ -4,6 +4,8 @@ :name, :town_id, :address, + :contact_name, + :phone,...
Add two missing form params during school signup
diff --git a/FieryCrucible.podspec b/FieryCrucible.podspec index abc1234..def5678 100644 --- a/FieryCrucible.podspec +++ b/FieryCrucible.podspec @@ -11,5 +11,6 @@ s.source = { :git => 'https://github.com/jkolb/FieryCrucible.git', :tag => s.version.to_s } s.social_media_url = 'https://twitter.com/nabobnic...
Add deployment target for OSX.
diff --git a/activejob_retriable.gemspec b/activejob_retriable.gemspec index abc1234..def5678 100644 --- a/activejob_retriable.gemspec +++ b/activejob_retriable.gemspec @@ -5,7 +5,7 @@ # Describe your gem and declare its dependencies: Gem::Specification.new do |s| - s.name = "activejob_retriable" + s.name ...
Fix gem name in the gemspec
diff --git a/recipes/default.rb b/recipes/default.rb index abc1234..def5678 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -2,7 +2,24 @@ # Cookbook Name:: motd # Recipe:: default # -# Copyright 2013, YOUR_COMPANY_NAME +# Copyright 2013, Rackspace, Us Inc. # -# All rights reserved - Do Not Redistribute +...
Add motd-tail for debian systems
diff --git a/lib/xss_terminate.rb b/lib/xss_terminate.rb index abc1234..def5678 100644 --- a/lib/xss_terminate.rb +++ b/lib/xss_terminate.rb @@ -9,7 +9,7 @@ module ClassMethods def xss_terminate(options = {}) - before_validation :sanitize_fields + before_save :sanitize_fields class_attribute...
Use before_save instead of before_validation Ensures that update_attribute xss terminates fields.
diff --git a/lib/zebra/zpl/raw.rb b/lib/zebra/zpl/raw.rb index abc1234..def5678 100644 --- a/lib/zebra/zpl/raw.rb +++ b/lib/zebra/zpl/raw.rb @@ -4,6 +4,16 @@ module Zpl class Raw include Printable + + attr_reader :width + + def width=(width) + unless (margin.nil? || margin < 1) + ...
Define width on Raw module
diff --git a/libraries/helpers.rb b/libraries/helpers.rb index abc1234..def5678 100644 --- a/libraries/helpers.rb +++ b/libraries/helpers.rb @@ -22,7 +22,7 @@ when 'ubuntu', 'debian' 'www-data' else - fail "Unexpected platform '#{node['platform']}'." + raise "Unexpected platform '#{n...
Replace fail by raise (RuboCop)
diff --git a/ruby-rets.gemspec b/ruby-rets.gemspec index abc1234..def5678 100644 --- a/ruby-rets.gemspec +++ b/ruby-rets.gemspec @@ -19,6 +19,6 @@ s.add_development_dependency "rspec", "~>2.8.0" s.add_development_dependency "guard-rspec", "~>0.6.0" - s.files = Dir.glob("lib/**/*") + %w[GPL-LICENSE MIT-LI...
Add the Rakefile to the list of gem files as wel
diff --git a/dice.rb b/dice.rb index abc1234..def5678 100644 --- a/dice.rb +++ b/dice.rb @@ -25,6 +25,11 @@ puts "\n" end + # Orders dice in ascending order + def sort() + @five_dice = @five_dice.sort + end + end # testing @@ -33,6 +38,8 @@ (0..5).each do d.roll_all d.display() + d.sort() + d.display() ...
Add sort method to Dice class
diff --git a/init.rb b/init.rb index abc1234..def5678 100644 --- a/init.rb +++ b/init.rb @@ -1,3 +1,8 @@ # Include hook code here -ActiveRecord::Base.send(:include, ActsAsHasselhoff)+ActiveRecord::Base.send(:include, ActsAsHasselhoff) + +require 'fileutils' +puts 'dir: ' +puts directory +#FileUtils.chmod(0755, File.j...
Set play to be a binary executable git-svn-id: 9867ed3c45c5a294c22e66a9d3216297713dba95@200 ca9fbce6-ab17-0410-af20-b66f06baff09
diff --git a/spec/steps/dead_link_steps.rb b/spec/steps/dead_link_steps.rb index abc1234..def5678 100644 --- a/spec/steps/dead_link_steps.rb +++ b/spec/steps/dead_link_steps.rb @@ -1,5 +1,5 @@ step '表示されている内部リンクは、すべて有効である' do - _, internal_links = all('a').partition {|link| link[:href].start_with? 'http' } + _, inter...
Add `irc` to exception list
diff --git a/spec/unit/system/page_spec.rb b/spec/unit/system/page_spec.rb index abc1234..def5678 100644 --- a/spec/unit/system/page_spec.rb +++ b/spec/unit/system/page_spec.rb @@ -11,7 +11,7 @@ allow(pager).to receive(:open).and_return(write_io) allow(write_io).to receive(:pid).and_return(pid) status = d...
Change to ignore flag for process wait
diff --git a/lib/json-schema.rb b/lib/json-schema.rb index abc1234..def5678 100644 --- a/lib/json-schema.rb +++ b/lib/json-schema.rb @@ -3,6 +3,6 @@ require 'rubygems' require 'schema' require 'validator' -Dir[File.join(File.dirname(__FILE__), "json-schema/attributes/*")].each {|file| require file } -Dir[File.join(Fi...
Fix require of attributes and validators to work in Rubinius When loading attributes and validators json-schema loads all files under attributes and validators dirs, including the byte code cache files generated by Rubinius, with this change we only require .rb files.
diff --git a/services/talker.rb b/services/talker.rb index abc1234..def5678 100644 --- a/services/talker.rb +++ b/services/talker.rb @@ -13,12 +13,10 @@ http.url_prefix = data['url'] if data['digest'].to_i == 1 and commits.size > 1 - commit = commits.last - message = "#{commit['author']['name']} pu...
Use push helpers to format Talker messages This correctly shows the actual pusher when a push happens instead of whomever committed the last commit. It will also make the message a tad more interesting: Joe Pusher created some-branch from master (+2 new commits) instead of Mary Committer pushed 2 comm...
diff --git a/lib/fat_core.rb b/lib/fat_core.rb index abc1234..def5678 100644 --- a/lib/fat_core.rb +++ b/lib/fat_core.rb @@ -1,4 +1,5 @@ require 'fat_core/version' require 'fat_core/patches' +require 'active_support' require 'active_support/core_ext/object/blank' require 'active_support/core_ext/object/deep_dup'
Fix the issue that caused active support to blow up. Issue discussed here: https://github.com/rails/rails/issues/43889
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 @@ -0,0 +1,24 @@+DUMP_PATH = "/tmp/deployer_prod_db.dump" + +namespace :app do + desc "Reset development database from a production dump" + task :reset => [:dump_db, :download_db, :impo...
Add some simple prod data download scripts.
diff --git a/has_accounts.gemspec b/has_accounts.gemspec index abc1234..def5678 100644 --- a/has_accounts.gemspec +++ b/has_accounts.gemspec @@ -21,7 +21,7 @@ "README.md" ] - s.files = `git ls-files app lib config`.split("\n") + s.files = `git ls-files app lib config db`.split("\n") s.plat...
Include db directory in filespec.
diff --git a/db/migrate/20090621233142_set_correct_type_for_old_events.rb b/db/migrate/20090621233142_set_correct_type_for_old_events.rb index abc1234..def5678 100644 --- a/db/migrate/20090621233142_set_correct_type_for_old_events.rb +++ b/db/migrate/20090621233142_set_correct_type_for_old_events.rb @@ -1,6 +1,3 @@-# T...
Update type for old Cascade Cross Overall
diff --git a/test/unit/lexical_variable_test.rb b/test/unit/lexical_variable_test.rb index abc1234..def5678 100644 --- a/test/unit/lexical_variable_test.rb +++ b/test/unit/lexical_variable_test.rb @@ -0,0 +1,24 @@+require "ikra" +require_relative "unit_test_template" + +class LexicalVariableTest < UnitTestCase + def...
Add test for lexical variables.
diff --git a/lib/crosstest/skeptic/scenario_definition.rb b/lib/crosstest/skeptic/scenario_definition.rb index abc1234..def5678 100644 --- a/lib/crosstest/skeptic/scenario_definition.rb +++ b/lib/crosstest/skeptic/scenario_definition.rb @@ -10,6 +10,7 @@ def initialize(data) super + self.vars ||...
Make sure env isn't nil even if YAML has an empty section
diff --git a/Formula/valec.rb b/Formula/valec.rb index abc1234..def5678 100644 --- a/Formula/valec.rb +++ b/Formula/valec.rb @@ -2,7 +2,7 @@ desc "Handle application secrets securely" homepage "https://github.com/dtan4/valec" url "https://github.com/dtan4/valec/releases/download/v0.3.1/valec-v0.3.1-darwin-amd64...
Modify checksum of Valec v0.3.1
diff --git a/ZKPulseView.podspec b/ZKPulseView.podspec index abc1234..def5678 100644 --- a/ZKPulseView.podspec +++ b/ZKPulseView.podspec @@ -0,0 +1,23 @@+Pod::Spec.new do |s| + + s.name = "ZKPulseView" + s.version = "0.0.2" + s.summary = "Simple iOS UIView Category to create a Pulse (Breathing ligh...
Add pod spec, version 0.0.3
diff --git a/htmlentities.gemspec b/htmlentities.gemspec index abc1234..def5678 100644 --- a/htmlentities.gemspec +++ b/htmlentities.gemspec @@ -8,8 +8,10 @@ s.version = HTMLEntities::VERSION::STRING s.author = "Paul Battley" s.email = "pbattley@gmail.com" - s.summary = "...
Add licence (and description) to gemspec
diff --git a/config/initializers/non_digest_assets.rb b/config/initializers/non_digest_assets.rb index abc1234..def5678 100644 --- a/config/initializers/non_digest_assets.rb +++ b/config/initializers/non_digest_assets.rb @@ -1 +1 @@-NonStupidDigestAssets.whitelist = [/tinymce\/.*/, /webfont/, /ajax-running.gif/]+NonStu...
Make all font files non-stupid
diff --git a/mark_version.gemspec b/mark_version.gemspec index abc1234..def5678 100644 --- a/mark_version.gemspec +++ b/mark_version.gemspec @@ -1,5 +1,5 @@ Gem::Specification.new do |s| - s.name = 'Mark Version' + s.name = 'mark_version' s.version = '0.0.0' s.date = '2015-05-30' s.summary = 'A tool for reco...
Change gem name to snake case format
diff --git a/db/migrate/20220221155604_hhp_buildings.rb b/db/migrate/20220221155604_hhp_buildings.rb index abc1234..def5678 100644 --- a/db/migrate/20220221155604_hhp_buildings.rb +++ b/db/migrate/20220221155604_hhp_buildings.rb @@ -20,7 +20,7 @@ DatasetEdit.create!( commit_id: commit.id, - ...
Fix typo in migratie for HHP buildings
diff --git a/lib/language_loader.rb b/lib/language_loader.rb index abc1234..def5678 100644 --- a/lib/language_loader.rb +++ b/lib/language_loader.rb @@ -1,12 +1,16 @@ require_relative 'language' +require_relative 'langs/en' +require_relative 'langs/es' +require_relative 'langs/fr' class LanguageLoader + LANGUAGES =...
Change languageloader to preload all known languages
diff --git a/Casks/join-together.rb b/Casks/join-together.rb index abc1234..def5678 100644 --- a/Casks/join-together.rb +++ b/Casks/join-together.rb @@ -0,0 +1,10 @@+cask :v1 => 'join-together' do + version :latest + sha256 :no_check + + url 'http://dougscripts.com/itunes/scrx/jointogetherml.zip' + homepage 'http:/...
Add Join Together.app version 7.2.0 Join Together will create and export a single AAC or ALAC audio file from the audio data of tracks dragged from iTunes or files dragged from the Finder.
diff --git a/pakyow-presenter/lib/presenter/template.rb b/pakyow-presenter/lib/presenter/template.rb index abc1234..def5678 100644 --- a/pakyow-presenter/lib/presenter/template.rb +++ b/pakyow-presenter/lib/presenter/template.rb @@ -37,11 +37,10 @@ container[1][:doc].replace(page.content(name)) r...
Remove no content logger completely
diff --git a/app/helpers/image_helper.rb b/app/helpers/image_helper.rb index abc1234..def5678 100644 --- a/app/helpers/image_helper.rb +++ b/app/helpers/image_helper.rb @@ -2,8 +2,7 @@ def safe_image_tag(image_url, opts={}) return if image_url.blank? - lazyload = opts.delete(:lazyload) - if lazyload + ...
Remove unnecessary line in image helper
diff --git a/app/models/forem/ability.rb b/app/models/forem/ability.rb index abc1234..def5678 100644 --- a/app/models/forem/ability.rb +++ b/app/models/forem/ability.rb @@ -16,9 +16,9 @@ user ||= User.new # anonymous user - if user.can_read_forums? + if user.can_read_forem_forums? ...
Use new 'namespaced' methods in Forem::Ability
diff --git a/tasks/testng_patch.rake b/tasks/testng_patch.rake index abc1234..def5678 100644 --- a/tasks/testng_patch.rake +++ b/tasks/testng_patch.rake @@ -0,0 +1,47 @@+raise "Patch applied upstream " if Buildr::VERSION.to_s > '1.5.8' + +class Buildr::TestNG < TestFramework::Java + + def run(tests, dependencies) #:no...
Patch the TestNG addon to ensure that test failures result in a failed build.
diff --git a/lib/conoha_api/client/identity.rb b/lib/conoha_api/client/identity.rb index abc1234..def5678 100644 --- a/lib/conoha_api/client/identity.rb +++ b/lib/conoha_api/client/identity.rb @@ -18,7 +18,7 @@ } } - post "tokens", request_json, no_auth: true + post "/v2.0/tokens", re...
Add Identity API version 2.0
diff --git a/lib/ice_nine/freezer/no_freeze.rb b/lib/ice_nine/freezer/no_freeze.rb index abc1234..def5678 100644 --- a/lib/ice_nine/freezer/no_freeze.rb +++ b/lib/ice_nine/freezer/no_freeze.rb @@ -23,16 +23,16 @@ end # class NoFreeze - # A freezer class for handling nil objects + # Skip freezing nil objec...
Change NoFreeze subclass summaries to be more clear
diff --git a/lib/pacer/pipe/expandable_pipe.rb b/lib/pacer/pipe/expandable_pipe.rb index abc1234..def5678 100644 --- a/lib/pacer/pipe/expandable_pipe.rb +++ b/lib/pacer/pipe/expandable_pipe.rb @@ -32,12 +32,10 @@ if @queue.isEmpty @next_metadata = nil r = @starts.next - if @path_enabled -...
Remove reference to @path_enabled. Let's make things less efficient!
diff --git a/app/lib/services.rb b/app/lib/services.rb index abc1234..def5678 100644 --- a/app/lib/services.rb +++ b/app/lib/services.rb @@ -36,7 +36,7 @@ end def self.oidc - @oidc ||= OidcClient.new( + OidcClient.new( accounts_api, ENV.fetch("GOVUK_ACCOUNT_OAUTH_CLIENT_ID"), ENV.fetch...
Remove instance variable assignment for Services.oidc This has no effect. Module "instance variables" are assigned in any class which includes the module, but this module isn't included anywhere. This just caused me some confusion, as I was trying to work out if the `OidcClient` instance would persist between reques...
diff --git a/app/models/round.rb b/app/models/round.rb index abc1234..def5678 100644 --- a/app/models/round.rb +++ b/app/models/round.rb @@ -33,7 +33,7 @@ end def winner - donations.max_by { |d| d.amount } unless !closed or failed + donations.max_by { |d| d.amount } if success? end def failed @@ -4...
Simplify logic using Round.success? method
diff --git a/lib/readline-ng/chunked_string.rb b/lib/readline-ng/chunked_string.rb index abc1234..def5678 100644 --- a/lib/readline-ng/chunked_string.rb +++ b/lib/readline-ng/chunked_string.rb @@ -11,7 +11,12 @@ def each_chunk until @buf.empty? - yield @buf.slice!(0) + t = @buf.slice!(0) + ...
Make the optimistic assumption that all escapes are 2 bytes
diff --git a/lib/spree/api/controller_setup.rb b/lib/spree/api/controller_setup.rb index abc1234..def5678 100644 --- a/lib/spree/api/controller_setup.rb +++ b/lib/spree/api/controller_setup.rb @@ -1,3 +1,5 @@+require 'spree/core/controller_helpers/auth' + module Spree module Api module ControllerSetup
Fix class-loading issue in test suite Fixes: ``` Failure/Error: include Spree::Core::ControllerHelpers::Auth NameError: uninitialized constant Spree::Core::ControllerHelpers::Auth # ./lib/spree/api/controller_setup.rb:19:in `block in included' # ./lib/spree/api/controller_setup.rb:5:in `class_eval' # ./lib/spree/a...
diff --git a/lib/user_agent/browsers/itunes.rb b/lib/user_agent/browsers/itunes.rb index abc1234..def5678 100644 --- a/lib/user_agent/browsers/itunes.rb +++ b/lib/user_agent/browsers/itunes.rb @@ -0,0 +1,68 @@+class UserAgent + module Browsers + # The user agent for iTunes + # + # Some user agents: + # iT...
Add a user agent parser for iTunes
diff --git a/app/models/concerns/course_user/achievements_concern.rb b/app/models/concerns/course_user/achievements_concern.rb index abc1234..def5678 100644 --- a/app/models/concerns/course_user/achievements_concern.rb +++ b/app/models/concerns/course_user/achievements_concern.rb @@ -2,6 +2,7 @@ module CourseUser::Achi...
Order achievement by date obtained only
diff --git a/test/generators/app_generator_test.rb b/test/generators/app_generator_test.rb index abc1234..def5678 100644 --- a/test/generators/app_generator_test.rb +++ b/test/generators/app_generator_test.rb @@ -28,28 +28,37 @@ private def default_files - %W(.gitignore - Gemfile - Rakefile - ...
Test against a different list of generated files for Rails 3 and 4 Bring tests back to green in 3.2.
diff --git a/spec/tube_spec.rb b/spec/tube_spec.rb index abc1234..def5678 100644 --- a/spec/tube_spec.rb +++ b/spec/tube_spec.rb @@ -31,5 +31,14 @@ it 'composes' do expect(subject.run(4)).to eq 22 end + + describe 'associative law' do + let(:a) { (tube_a >> tube_b) >> tube_c } + let(:b) { t...
Add associative law for tube
diff --git a/spec/angular_spec.rb b/spec/angular_spec.rb index abc1234..def5678 100644 --- a/spec/angular_spec.rb +++ b/spec/angular_spec.rb @@ -7,6 +7,7 @@ end it 'successfully loads angularjs.org twice' do + raise 'test failed by env FAIL_TEST' if ENV['FAIL_TEST'] angular_page.goto expect_true ang...
Allow optionally failing test to demo error reporting
diff --git a/spec/version_spec.rb b/spec/version_spec.rb index abc1234..def5678 100644 --- a/spec/version_spec.rb +++ b/spec/version_spec.rb @@ -1,7 +1,27 @@ require 'spec_helper' -describe "#{Github::Status} VERSION" do +describe "#{Github::Status} version information" do it "should be version 0.0.1" do Gith...
Add specs to check the gem specification information.
diff --git a/cookbooks/windows_setup/attributes/default.rb b/cookbooks/windows_setup/attributes/default.rb index abc1234..def5678 100644 --- a/cookbooks/windows_setup/attributes/default.rb +++ b/cookbooks/windows_setup/attributes/default.rb @@ -19,6 +19,8 @@ default['windows_setup']['packages'] = %w( 7zip + ConEm...
Add ConEmu and Ethan Brown's config for it.
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -26,6 +26,7 @@ get :value_by_county get :value_by_donor get :total_inventory_value + get :orders_by_create_date_graph end end
Add new route for orders_by_create_date_graph
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -7,7 +7,7 @@ get '/auth/:provider/callback' => 'sessions#create' get '/signin' => 'sessions#new', :as => :signin - # get '/signout' => 'sessions#destroy', :as => :signout + get '/sign...
Comment /signout route back in
diff --git a/railties/lib/rails/application_controller.rb b/railties/lib/rails/application_controller.rb index abc1234..def5678 100644 --- a/railties/lib/rails/application_controller.rb +++ b/railties/lib/rails/application_controller.rb @@ -3,6 +3,15 @@ class Rails::ApplicationController < ActionController::Base # :nod...
Allow using inline style and script in the internal controllers We use inline style and script for the view held inside Rails like welcome page and mailer preview. Therefore, if inline is prohibited by CSP, they will not work properly. I think that this is not as expected.   For that reason, I have made it possible t...
diff --git a/core_gems.rb b/core_gems.rb index abc1234..def5678 100644 --- a/core_gems.rb +++ b/core_gems.rb @@ -7,5 +7,6 @@ download "yajl-ruby", "1.2.1" download "sigdump", "0.2.3" download "thread_safe", "0.3.5" +download "oj", "2.14.2" download "tzinfo", "1.2.2" download "tzinfo-data", "1.2015.7"
Add 'oj' gem to core
diff --git a/core_examples.rb b/core_examples.rb index abc1234..def5678 100644 --- a/core_examples.rb +++ b/core_examples.rb @@ -1,9 +1,9 @@ require_relative 'core.rb' require_relative 'testing.rb' Title["Tuples (2)"] -tuple = Cons[1][2] -puts (Car[tuple] == 1 ? "T" : "F") -puts (Cdr[tuple] == 2 ? "T" : "F") +tuple =...
Swap literals and Ruby puts with numerals and assertions
diff --git a/app/controllers/concerns/pageable.rb b/app/controllers/concerns/pageable.rb index abc1234..def5678 100644 --- a/app/controllers/concerns/pageable.rb +++ b/app/controllers/concerns/pageable.rb @@ -8,6 +8,9 @@ if params[:q].present? @page = params[:q][:page] @per_page = params[:q][:pe...
Allow paging params outside of search params
diff --git a/app/controllers/heroes_controller.rb b/app/controllers/heroes_controller.rb index abc1234..def5678 100644 --- a/app/controllers/heroes_controller.rb +++ b/app/controllers/heroes_controller.rb @@ -28,6 +28,11 @@ redirect_to campaign_hero_path(campaign, hero) end + def destroy + hero.destroy + ...
Add destroy method in hero controller. [#89850086]
diff --git a/app/controllers/listen_controller.rb b/app/controllers/listen_controller.rb index abc1234..def5678 100644 --- a/app/controllers/listen_controller.rb +++ b/app/controllers/listen_controller.rb @@ -8,8 +8,8 @@ stream_server = $ICECAST_SERVER elsif request.host != default_url_options.to_h[:host] ...
Remove mobile stream server URL
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index abc1234..def5678 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -1,4 +1,10 @@ class SearchController < ApplicationController def index end + + def google + keywords = ...
Add the google search method.
diff --git a/app/controllers/twitch_controller.rb b/app/controllers/twitch_controller.rb index abc1234..def5678 100644 --- a/app/controllers/twitch_controller.rb +++ b/app/controllers/twitch_controller.rb @@ -37,7 +37,7 @@ end def redirect_uri - 'http://splits.io/login/twitch/auth' + "http://#{request.host...
Update Twitch login to work locally (or anywhere)
diff --git a/app/helpers/flash_messages_helper.rb b/app/helpers/flash_messages_helper.rb index abc1234..def5678 100644 --- a/app/helpers/flash_messages_helper.rb +++ b/app/helpers/flash_messages_helper.rb @@ -31,7 +31,7 @@ def filtered_flash_messages flash.select do |message| - %i(alert notice).include? m...
Fix flash messages specs for rails 4.1.1
diff --git a/cxml.gemspec b/cxml.gemspec index abc1234..def5678 100644 --- a/cxml.gemspec +++ b/cxml.gemspec @@ -16,9 +16,9 @@ s.add_dependency "xml-simple", "~> 1.1.5" s.add_dependency "hashr", "~> 2.0" - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {test,spec,features}/*`...
Simplify including files in gemspec
diff --git a/lib/azure/armrest.rb b/lib/azure/armrest.rb index abc1234..def5678 100644 --- a/lib/azure/armrest.rb +++ b/lib/azure/armrest.rb @@ -1,5 +1,6 @@ require 'rest-client' require 'json' +require 'thread' # The Azure module serves as a namespace. module Azure
Add the thread library as a requirement.
diff --git a/yard.gemspec b/yard.gemspec index abc1234..def5678 100644 --- a/yard.gemspec +++ b/yard.gemspec @@ -8,10 +8,10 @@ s.homepage = "http://yard.soen.ca" s.platform = Gem::Platform::RUBY s.summary = "A documentation tool for consistent and usable documentation in Ruby." - s.files = Dir...
Update gemspec to deal with new README files git-svn-id: d05f03cd96514e1016f6c27423275d989868e1f9@809 a99b2113-df67-db11-8bcc-000c76553aea
diff --git a/zend.gemspec b/zend.gemspec index abc1234..def5678 100644 --- a/zend.gemspec +++ b/zend.gemspec @@ -27,4 +27,5 @@ spec.add_development_dependency 'bundler', '~> 1.3' spec.add_development_dependency 'rake' spec.add_development_dependency 'rspec', '~> 2.14' + spec.add_development_dependency 'pry' e...
Add Pry as a development dependency for easy debugging
diff --git a/lib/faraday/parse.rb b/lib/faraday/parse.rb index abc1234..def5678 100644 --- a/lib/faraday/parse.rb +++ b/lib/faraday/parse.rb @@ -10,7 +10,7 @@ def self.register_on_complete(env) env[:response].on_complete do |response| response[:body] = begin - case response[:response_header...
Allow capitalized content-type response header
diff --git a/lib/coderay/encoders/token_class_filter.rb b/lib/coderay/encoders/token_class_filter.rb index abc1234..def5678 100644 --- a/lib/coderay/encoders/token_class_filter.rb +++ b/lib/coderay/encoders/token_class_filter.rb @@ -21,8 +21,9 @@ end def text_token text, kind - [text, kind] if !@exc...
TokenClassFilter: Support for :exclud => :all.
diff --git a/lib/grunt/handler.rb b/lib/grunt/handler.rb index abc1234..def5678 100644 --- a/lib/grunt/handler.rb +++ b/lib/grunt/handler.rb @@ -26,7 +26,7 @@ rescue StackDepthError => e notice(%{"#{e.command}" called too many methods!}, response.sender.nick) rescue Timeout::Error - ...
Correct small mistake in c25b9e3
diff --git a/lib/rescue_from_duplicate/active_record.rb b/lib/rescue_from_duplicate/active_record.rb index abc1234..def5678 100644 --- a/lib/rescue_from_duplicate/active_record.rb +++ b/lib/rescue_from_duplicate/active_record.rb @@ -15,6 +15,7 @@ klasses.each do |klass| klass._rescue_from_duplicate_handler...
Handle cases where a model table is missing
diff --git a/BulletinBoard.podspec b/BulletinBoard.podspec index abc1234..def5678 100644 --- a/BulletinBoard.podspec +++ b/BulletinBoard.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "BulletinBoard" - s.version = "2.0.0-beta.1" + s.version = "2.0.0" s.summary = "Generate and Displ...
Update Podspec with version number
diff --git a/abyss.rb b/abyss.rb index abc1234..def5678 100644 --- a/abyss.rb +++ b/abyss.rb @@ -11,7 +11,7 @@ depends_on 'google-sparsehash' => :build # Snow Leopard comes with mpi but Lion does not - depends_on 'open-mpi' if MacOS.lion? + depends_on 'open-mpi' if MacOS.version >= :lion # strip breaks th...
Clean up MacOS version method usage The MacOS.version? family of methods (other than "leopard?") are poorly defined and lead to confusing code. Replace them in formulae with more explicit comparisons. "MacOS.version" is a special version object that can be compared to numerics, symbols, and strings using the standard...
diff --git a/omnibus_overrides.rb b/omnibus_overrides.rb index abc1234..def5678 100644 --- a/omnibus_overrides.rb +++ b/omnibus_overrides.rb @@ -19,4 +19,4 @@ override "util-macros", version: "1.19.0" override "xproto", version: "7.0.28" override "zlib", version: "1.2.11" -override "openssl", version: "1.1.0g" +overr...
Revert "Upgrade to openssl 1.1" This reverts commit a67304414d83b06ea16cb92ca28ec0d5d0572028.
diff --git a/dropbox-archive.gemspec b/dropbox-archive.gemspec index abc1234..def5678 100644 --- a/dropbox-archive.gemspec +++ b/dropbox-archive.gemspec @@ -8,9 +8,9 @@ spec.version = Dropbox::Archive::VERSION spec.authors = ["Josh McArthur"] spec.email = ["joshua.mcarthur@gmail.com"] - spe...
Add description, summary and dependencies for notes
diff --git a/uk_account_validator.gemspec b/uk_account_validator.gemspec index abc1234..def5678 100644 --- a/uk_account_validator.gemspec +++ b/uk_account_validator.gemspec @@ -10,7 +10,7 @@ spec.email = ['hayden@haydenball.me.uk'] spec.summary = 'Validate UK Account Numbers and Sort Codes' spec.d...
Add GitHub as homepage for Gemspec
diff --git a/app/controllers/dataset_file_schemas_controller.rb b/app/controllers/dataset_file_schemas_controller.rb index abc1234..def5678 100644 --- a/app/controllers/dataset_file_schemas_controller.rb +++ b/app/controllers/dataset_file_schemas_controller.rb @@ -1,7 +1,7 @@ class DatasetFileSchemasController < Applic...
Add extra default rows for tables
diff --git a/lib/chef/platform.rb b/lib/chef/platform.rb index abc1234..def5678 100644 --- a/lib/chef/platform.rb +++ b/lib/chef/platform.rb @@ -16,6 +16,7 @@ # limitations under the License. # +# Order of these headers is important: query helpers is needed by many things require 'chef/platform/query_helpers' requ...
Add comment about header ordering
diff --git a/lib/dap/input/csv.rb b/lib/dap/input/csv.rb index abc1234..def5678 100644 --- a/lib/dap/input/csv.rb +++ b/lib/dap/input/csv.rb @@ -26,7 +26,10 @@ end if self.has_header - self.headers = read_record.values.map{|x| x.to_s.strip } + data = read_record + unless data == :eof...
Fix exception on first line returning EOF
diff --git a/yard_extensions.rb b/yard_extensions.rb index abc1234..def5678 100644 --- a/yard_extensions.rb +++ b/yard_extensions.rb @@ -4,9 +4,8 @@ def process statement.tokens[1..-1].each do |token| - name = token.text.strip - next if name.empty? || name == ',' - name = name[1..-1] if name[0,1...
Use a regexp to make matching the response attr names a bit easier to read.
diff --git a/lib/fed/http/curb.rb b/lib/fed/http/curb.rb index abc1234..def5678 100644 --- a/lib/fed/http/curb.rb +++ b/lib/fed/http/curb.rb @@ -5,6 +5,7 @@ def self.get(url) Curl.get(url) do|http| http.headers['User-Agent'] = Fed::Http.options[:user_agent] + http.follow_location = tr...
Make sure we follow redirects
diff --git a/lib/giraph/schema.rb b/lib/giraph/schema.rb index abc1234..def5678 100644 --- a/lib/giraph/schema.rb +++ b/lib/giraph/schema.rb @@ -1,13 +1,13 @@ module Giraph # GraphQL::Schema wrapper allowing decleration of # resolver objects per op type (query or mutation) - class Schema < GraphQL::Schema + cla...
Convert Giraph::Schema from subclass to a delegator
diff --git a/spec/controllers/checkins_controller_spec.rb b/spec/controllers/checkins_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/checkins_controller_spec.rb +++ b/spec/controllers/checkins_controller_spec.rb @@ -10,12 +10,17 @@ end it "assigns @checkins to the appropriate pla...
Write tests for the index route of the checkins controller
diff --git a/spec/features/configure_project_name_spec.rb b/spec/features/configure_project_name_spec.rb index abc1234..def5678 100644 --- a/spec/features/configure_project_name_spec.rb +++ b/spec/features/configure_project_name_spec.rb @@ -0,0 +1,29 @@+require 'spec_helper' +require './features/step_definitions/testin...
Convert project name integration test to RSpec
diff --git a/diplomat.gemspec b/diplomat.gemspec index abc1234..def5678 100644 --- a/diplomat.gemspec +++ b/diplomat.gemspec @@ -19,6 +19,6 @@ spec.add_development_dependency "gem-release", "~> 0.7" spec.add_development_dependency "cucumber", "~> 2.0" - spec.add_runtime_dependency "json", "~> 1.8" + spec.add_r...
Remove restriction on json version
diff --git a/veil.gemspec b/veil.gemspec index abc1234..def5678 100644 --- a/veil.gemspec +++ b/veil.gemspec @@ -12,7 +12,7 @@ spec.summary = %q{Veil is a Ruby Gem for generating secure secrets from a shared secret} spec.description = spec.summary spec.license = "Apache-2.0" - spec.homepage ...
Change homepage from chef server to chef secrets ...where the code actually lives. =^)
diff --git a/spec/features/admin/authentication_spec.rb b/spec/features/admin/authentication_spec.rb index abc1234..def5678 100644 --- a/spec/features/admin/authentication_spec.rb +++ b/spec/features/admin/authentication_spec.rb @@ -9,17 +9,14 @@ let!(:enterprise) { create(:enterprise, owner: user) } # Required for a...
Simplify spec, the 2 minutes wait is not necessary anylonger
diff --git a/app/controllers/items_controller.rb b/app/controllers/items_controller.rb index abc1234..def5678 100644 --- a/app/controllers/items_controller.rb +++ b/app/controllers/items_controller.rb @@ -8,6 +8,11 @@ def show @item = Item.find params[:id] @user_vote = UserVote.new + + unless current_user == n...
Add past_vote variable to items controller
diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index abc1234..def5678 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -1,5 +1,5 @@ class PostsController < ApplicationController def index - @posts = Post.order("points DESC, creat...
Add where constraint to posts retrieval
diff --git a/lib/tasks/broken_link_reporting.rake b/lib/tasks/broken_link_reporting.rake index abc1234..def5678 100644 --- a/lib/tasks/broken_link_reporting.rake +++ b/lib/tasks/broken_link_reporting.rake @@ -1,23 +1,29 @@ desc "Generates and emails CSV reports of all public documents containing broken links." task :g...
Add exception reporting to broken link reporter So that we are alerted when the rake task falls over.
diff --git a/app/controllers/teams_controller.rb b/app/controllers/teams_controller.rb index abc1234..def5678 100644 --- a/app/controllers/teams_controller.rb +++ b/app/controllers/teams_controller.rb @@ -1,7 +1,5 @@ # Public page of all Teams class TeamsController < ApplicationController - caches_page :index - de...
Add ETag, last modified and cache headers for teams page
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index abc1234..def5678 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -15,7 +15,7 @@ end def show - @items = @user.items + @items = @user.items.group(:item_id) end ...
Resolve the duplication of items to be displayed
diff --git a/releaf-core/spec/features/dragonfly_integration_spec.rb b/releaf-core/spec/features/dragonfly_integration_spec.rb index abc1234..def5678 100644 --- a/releaf-core/spec/features/dragonfly_integration_spec.rb +++ b/releaf-core/spec/features/dragonfly_integration_spec.rb @@ -0,0 +1,22 @@+require 'spec_helper' ...
Add dragonfly image upload/view/removal feature test
diff --git a/app/models/spree/taxon_decorator.rb b/app/models/spree/taxon_decorator.rb index abc1234..def5678 100644 --- a/app/models/spree/taxon_decorator.rb +++ b/app/models/spree/taxon_decorator.rb @@ -1,4 +1,7 @@ Spree::Taxon.class_eval do + self.attachment_definitions[:icon][:path] = 'app/public/spree/taxons/:id/...
Store taxon icons in a path consistent with products
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index abc1234..def5678 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,7 +2,7 @@ class ApplicationController < ActionController::Base include Shreds::Auth ...
Raise exception when CSRF detected
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index abc1234..def5678 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,6 +2,6 @@ protect_from_forgery rescue_from CanCan::AccessDenied do |exception| - ...
Fix the cancan access denied
diff --git a/app/controllers/guest_users_controller.rb b/app/controllers/guest_users_controller.rb index abc1234..def5678 100644 --- a/app/controllers/guest_users_controller.rb +++ b/app/controllers/guest_users_controller.rb @@ -1,5 +1,6 @@ class GuestUsersController < ApplicationController def index + @guest_use...
Update guest users index action
diff --git a/app/decorators/post_decorator.rb b/app/decorators/post_decorator.rb index abc1234..def5678 100644 --- a/app/decorators/post_decorator.rb +++ b/app/decorators/post_decorator.rb @@ -19,7 +19,7 @@ def to_article_params { section: category.name, - published_time: published_at.to_datetime.to_...
Allow to preview unpublished post
diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -13,37 +13,7 @@ def new @repository = Repository.find_by_group_and_lab(params[:grou...
Remove tree code from submissions
diff --git a/app/decorators/content_video_decorator.rb b/app/decorators/content_video_decorator.rb index abc1234..def5678 100644 --- a/app/decorators/content_video_decorator.rb +++ b/app/decorators/content_video_decorator.rb @@ -6,6 +6,6 @@ end def aspect_ratio_class - '16by9' + aspect_ratio.to_s.split('x'...
Use the actual provided aspect ratio.
diff --git a/app/models/content_membership.rb b/app/models/content_membership.rb index abc1234..def5678 100644 --- a/app/models/content_membership.rb +++ b/app/models/content_membership.rb @@ -22,6 +22,6 @@ validates_presence_of :member_id, :content_id - validates_uniqueness_of :member_id, :scope => [:content_id...
Fix content membership validation failing when content id is in use on another content type with the same ID.
diff --git a/lib/tasks/redirect_tech_code_of_practise.rake b/lib/tasks/redirect_tech_code_of_practise.rake index abc1234..def5678 100644 --- a/lib/tasks/redirect_tech_code_of_practise.rake +++ b/lib/tasks/redirect_tech_code_of_practise.rake @@ -7,22 +7,20 @@ new_path = "/government/publications/technology-code-of-pra...
Update the SlugMigration for the tech code of practise Marking the tech code of practise as migrated will save us worrying that it needs to be migrated in the future.
diff --git a/app/models/sms/adapters/twilio_adapter.rb b/app/models/sms/adapters/twilio_adapter.rb index abc1234..def5678 100644 --- a/app/models/sms/adapters/twilio_adapter.rb +++ b/app/models/sms/adapters/twilio_adapter.rb @@ -11,7 +11,25 @@ end def deliver(message) - raise NotImplementedError + prepare_...
2168: Implement broadcast SMS via Twilio
diff --git a/lib/yogo/collection/asset/model_properties.rb b/lib/yogo/collection/asset/model_properties.rb index abc1234..def5678 100644 --- a/lib/yogo/collection/asset/model_properties.rb +++ b/lib/yogo/collection/asset/model_properties.rb @@ -13,32 +13,19 @@ def store_dir File.join('#{Confi...
Revert "Adding filename mangaling for file assets" This reverts commit fddf5a67c445983f6bd9828d8f0ce2498536b49c. The download routes fail to work with this strategy for mangling