diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/app/models/graph.rb b/app/models/graph.rb index abc1234..def5678 100644 --- a/app/models/graph.rb +++ b/app/models/graph.rb @@ -7,7 +7,7 @@ # @return [Graph] graph object def self.find_or_create(params) super.tap do |graph| - if Settings.graph.auto_tagging + if Settings.try(:graph).try(...
Use try in accessing Settings
diff --git a/Quick.podspec b/Quick.podspec index abc1234..def5678 100644 --- a/Quick.podspec +++ b/Quick.podspec @@ -13,7 +13,7 @@ s.author = "Quick Contributors" s.ios.deployment_target = "7.0" s.osx.deployment_target = "10.9" - s.tvos.deployment_target = '9.0' + #s.tvos.deployment_target = '9.0' ...
Disable tvOS support for Xcode 7.0 for cocoapods - tvOS support prevents pushing Podspec
diff --git a/Qwasi.podspec b/Qwasi.podspec index abc1234..def5678 100644 --- a/Qwasi.podspec +++ b/Qwasi.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.name = "Qwasi" - s.version = "2.1.0-8" + s.version = "2.1.0-9" s.summary = "Qwasi iOS Library" s.homepage = ...
Add cocoapod update to travis
diff --git a/spec/controllers/sales_pages_controller_spec.rb b/spec/controllers/sales_pages_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/sales_pages_controller_spec.rb +++ b/spec/controllers/sales_pages_controller_spec.rb @@ -2,7 +2,8 @@ describe SalesPagesController do describe "GET 'sh...
Update SalesPage Controller Spec for edit Add edit action SalesPage controller tests.
diff --git a/spec/decorators/content_image_decorator_spec.rb b/spec/decorators/content_image_decorator_spec.rb index abc1234..def5678 100644 --- a/spec/decorators/content_image_decorator_spec.rb +++ b/spec/decorators/content_image_decorator_spec.rb @@ -0,0 +1,15 @@+require 'rails_helper' + +describe ContentImageDecorat...
Add content image decorator spec.
diff --git a/lib/flickxtractr/cli.rb b/lib/flickxtractr/cli.rb index abc1234..def5678 100644 --- a/lib/flickxtractr/cli.rb +++ b/lib/flickxtractr/cli.rb @@ -4,5 +4,12 @@ module Flickxtractr class CLI < Thor package_name 'Flickxtractr' + + desc "install", "Install library dependencies" + def install + ...
Add exec command for installing dependencies
diff --git a/lib/tasks/projects.rake b/lib/tasks/projects.rake index abc1234..def5678 100644 --- a/lib/tasks/projects.rake +++ b/lib/tasks/projects.rake @@ -9,6 +9,13 @@ Project.import query: -> { includes(:github_repository => :github_tags) } end + desc 'Update the sitemap every other day' + task update_sit...
Update the site map every other day
diff --git a/ReactantUI.podspec b/ReactantUI.podspec index abc1234..def5678 100644 --- a/ReactantUI.podspec +++ b/ReactantUI.podspec @@ -22,10 +22,9 @@ spec.ios.deployment_target = '9.0' spec.source_files = [] - spec.preserve_paths = ['Source/**/*'] + spec.preserve_paths = ['Source/**/*', 'Package.swif...
Fix build command in podspec.
diff --git a/code42.gemspec b/code42.gemspec index abc1234..def5678 100644 --- a/code42.gemspec +++ b/code42.gemspec @@ -15,6 +15,7 @@ gem.add_development_dependency 'rspec', '~> 2.11.0' gem.add_development_dependency 'webmock', '~> 1.11.0' gem.add_development_dependency 'vcr', '~> 2.5.0' + gem.add_devel...
Add rake as a development dependency
diff --git a/lib/travis/addons/github_check_status/task.rb b/lib/travis/addons/github_check_status/task.rb index abc1234..def5678 100644 --- a/lib/travis/addons/github_check_status/task.rb +++ b/lib/travis/addons/github_check_status/task.rb @@ -4,14 +4,111 @@ module Addons module GithubCheckStatus class T...
Add methods to fill out Check Run POST payload
diff --git a/lib/vagrant/action/builtin/config_validate.rb b/lib/vagrant/action/builtin/config_validate.rb index abc1234..def5678 100644 --- a/lib/vagrant/action/builtin/config_validate.rb +++ b/lib/vagrant/action/builtin/config_validate.rb @@ -14,7 +14,7 @@ if !env.has_key?(:config_validate) || env[:config_v...
Verify we have errors to show if we're going to show them
diff --git a/app/models/notification_rule.rb b/app/models/notification_rule.rb index abc1234..def5678 100644 --- a/app/models/notification_rule.rb +++ b/app/models/notification_rule.rb @@ -1,15 +1,41 @@ class NotificationRule < ActiveRecord::Base include ActiveModel::ForbiddenAttributesProtection - ACTIONS = %w( cr...
Update NotificationRule model to correctly validate permitted actions against their associated class
diff --git a/app/models/review_app_target.rb b/app/models/review_app_target.rb index abc1234..def5678 100644 --- a/app/models/review_app_target.rb +++ b/app/models/review_app_target.rb @@ -35,6 +35,6 @@ end def task_definition_name - @task_definition_name = Settings.task_definition_maps.fetch(repository) + ...
Fix task definition map settings
diff --git a/catarse_stripe.gemspec b/catarse_stripe.gemspec index abc1234..def5678 100644 --- a/catarse_stripe.gemspec +++ b/catarse_stripe.gemspec @@ -18,9 +18,9 @@ s.add_dependency "rails", "~> 3.2.11" s.add_dependency "activemerchant", ">= 1.17.0" - s.add_dependency "stripe" + s.add_dependency "stripe", :g...
Fix new dependencies and Migrations
diff --git a/examples/tracklist.rb b/examples/tracklist.rb index abc1234..def5678 100644 --- a/examples/tracklist.rb +++ b/examples/tracklist.rb @@ -1,6 +1,10 @@ #!/usr/bin/ruby # -# Copyright (C) 2008 by Nicholas J Humfrey +# Script to display the URI, artist and title for the tracks on the tracklist. +# +# Author:: ...
Check to see if the play list is empty first.
diff --git a/lib/sastrawi/stemmer/cache/array_cache.rb b/lib/sastrawi/stemmer/cache/array_cache.rb index abc1234..def5678 100644 --- a/lib/sastrawi/stemmer/cache/array_cache.rb +++ b/lib/sastrawi/stemmer/cache/array_cache.rb @@ -2,22 +2,20 @@ module Stemmer module Cache class ArrayCache - attr_acce...
Fix implementation of "ArrayCache" class
diff --git a/no-style-please.gemspec b/no-style-please.gemspec index abc1234..def5678 100644 --- a/no-style-please.gemspec +++ b/no-style-please.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "no-style-please" - spec.version = "0.3.1" + spec.version = "0.4.1" spec.au...
Update gem version to 0.4.1
diff --git a/cf_spec/spec_helper.rb b/cf_spec/spec_helper.rb index abc1234..def5678 100644 --- a/cf_spec/spec_helper.rb +++ b/cf_spec/spec_helper.rb @@ -1,6 +1,7 @@ require 'bundler/setup' require 'machete' require 'machete/matchers' +require 'timeout' `mkdir -p log` Machete.logger = Machete::Logger.new("log/inte...
Add timeout to integration tests and retry on timeout [#138839265] Signed-off-by: Dave Goddard <bfcdf3e6ca6cef45543bfbb57509c92aec9a39fb@goddard.id.au> Signed-off-by: Anna Thornton <0e9b4a17e1cf85a71a11118ecdbc866e5f8ffc65@pivotal.io>
diff --git a/cancanright.gemspec b/cancanright.gemspec index abc1234..def5678 100644 --- a/cancanright.gemspec +++ b/cancanright.gemspec @@ -3,7 +3,7 @@ require 'cancanright/version' Gem::Specification.new do |s| - s.name = 'blush' + s.name = 'cancanright' s.version = CanCanRight::Version s...
Fix incorrect name in gemspec
diff --git a/config/puma.rb b/config/puma.rb index abc1234..def5678 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -14,7 +14,7 @@ ex, :message => ex.message, :extra => { :puma => env }, - :culprit => "Puma" + :transaction => "Puma" ) [500, {}, ["An error has occurred, and engineers have b...
Fix breaking change in Sentry SDK This was renamed in sentry-raven 2.7.0: https://github.com/getsentry/raven-ruby/pull/743 We updated from sentry-raven 2.4.0 to 2.9.0 in #132, but we have no test coverage here, so we didn't spot it.
diff --git a/app/models/spree/bp_order_row.rb b/app/models/spree/bp_order_row.rb index abc1234..def5678 100644 --- a/app/models/spree/bp_order_row.rb +++ b/app/models/spree/bp_order_row.rb @@ -21,7 +21,7 @@ taxCode: 'T4', rowNet: { currencyCode: Spree::Config[:currency], - v...
Fix incorrect order total from Spree to BrightPearl
diff --git a/app/views/api/v1/users/show.rabl b/app/views/api/v1/users/show.rabl index abc1234..def5678 100644 --- a/app/views/api/v1/users/show.rabl +++ b/app/views/api/v1/users/show.rabl @@ -6,5 +6,5 @@ node(:mission) { |user| user.mission_id.nil? ? 'N/A' : user.mission.name } node(:purchases_count) { |user| user....
Fix incorrect datetime in API
diff --git a/ssrs/recipes/configure.rb b/ssrs/recipes/configure.rb index abc1234..def5678 100644 --- a/ssrs/recipes/configure.rb +++ b/ssrs/recipes/configure.rb @@ -1,10 +1,10 @@-service 'ReportServer' do +windows_service 'ReportServer' do action [:start, :enable] end powershell_script "Configure SSRS" do cod...
Fix variable name typo, Fix ServerInstance argument syntax
diff --git a/test/integration/default/inspec/default_spec.rb b/test/integration/default/inspec/default_spec.rb index abc1234..def5678 100644 --- a/test/integration/default/inspec/default_spec.rb +++ b/test/integration/default/inspec/default_spec.rb @@ -1,15 +1,13 @@ if (os[:family] == 'redhat' && os[:release].start_wit...
Use the kernel_parameter inspec resource Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/appium_tests/search_poem_spec.rb b/appium_tests/search_poem_spec.rb index abc1234..def5678 100644 --- a/appium_tests/search_poem_spec.rb +++ b/appium_tests/search_poem_spec.rb @@ -0,0 +1,23 @@+# coding: utf-8 +require_relative 'spec_helper' + +describe '歌を検索するテスト' do + + it 'アプリのタイトルが正しく表示される' do + can...
Add Appium test for Searching Poems
diff --git a/tests/hp/requests/block_storage/volume_tests.rb b/tests/hp/requests/block_storage/volume_tests.rb index abc1234..def5678 100644 --- a/tests/hp/requests/block_storage/volume_tests.rb +++ b/tests/hp/requests/block_storage/volume_tests.rb @@ -0,0 +1,62 @@+Shindo.tests('Fog::BlockStorage[:hp] | volume requests...
Add shindo tests for requests methods for block storage.
diff --git a/Casks/openra.rb b/Casks/openra.rb index abc1234..def5678 100644 --- a/Casks/openra.rb +++ b/Casks/openra.rb @@ -1,6 +1,6 @@ cask :v1 => 'openra' do - version '20141029' - sha256 '421f341d324e2e360cf17facc1379b19036f7459516b84685037a041d5020e64' + version '20150424' + sha256 'e90b6cbb7faf941e5b794a322c3...
Update OpenRA to Release 2015-04-24
diff --git a/app/models/post.rb b/app/models/post.rb index abc1234..def5678 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -1,3 +1,4 @@+# Record when a moderator has posted a piece of content class Post < ActiveRecord::Base belongs_to :user belongs_to :content, polymorphic: true
Add rough description of purpose of Post model
diff --git a/MulticastDelegateSwift.podspec b/MulticastDelegateSwift.podspec index abc1234..def5678 100644 --- a/MulticastDelegateSwift.podspec +++ b/MulticastDelegateSwift.podspec @@ -2,6 +2,7 @@ s.name = 'MulticastDelegateSwift' s.version = '2.0.1' s.platform = :ios, '8.0' + s.platform = :osx, '10.10' ...
Add macOS/osx target to podspec
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 @@ -28,7 +28,7 @@ pn = attrs[:principal_name] if pn user = User.where(:$or => [{email: attrs[:email]}, {principal_name: pn}]).first - user = User.create! attrs[:email...
Fix parameters passed to create
diff --git a/app/models/zine.rb b/app/models/zine.rb index abc1234..def5678 100644 --- a/app/models/zine.rb +++ b/app/models/zine.rb @@ -11,9 +11,10 @@ has_many :authors, through: :authorships scope :published, -> { where(published: true).order(updated_at: :desc) } + scope :with_authors, -> { includes(:authors)...
Add eager loading for authors
diff --git a/bitkassa.gemspec b/bitkassa.gemspec index abc1234..def5678 100644 --- a/bitkassa.gemspec +++ b/bitkassa.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = "bitkassa" s.version = "0.0.1" - s.summary = "Hola!" + s.summary = "Bitkassa" s.description = "Ruby interface...
Fix name from old template name to actual Bitkassa name
diff --git a/hello_sign.gemspec b/hello_sign.gemspec index abc1234..def5678 100644 --- a/hello_sign.gemspec +++ b/hello_sign.gemspec @@ -25,5 +25,4 @@ gem.add_development_dependency 'rspec', '~> 2.12.0' gem.add_development_dependency 'webmock', '~> 1.9.0' gem.add_development_dependency 'rake', '~> 10.0.3' - ge...
Remove VCR as a dependency
diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index abc1234..def5678 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -10,7 +10,7 @@ unless admin_auth.user admin_user = User.create_from_authentication(admin_auth) - admin_user.assign...
Add bios to the auto-generated dev users (so they can edit proposals)
diff --git a/containers/obs/secure_server.rb b/containers/obs/secure_server.rb index abc1234..def5678 100644 --- a/containers/obs/secure_server.rb +++ b/containers/obs/secure_server.rb @@ -11,3 +11,11 @@ get '/' do "I'm the secure OBS server\n" end + +get '/source/home:cschum:go/red_herring' do + "xx" +end + +put ...
Add API endpoints for checking OBS project
diff --git a/database_rewinder.gemspec b/database_rewinder.gemspec index abc1234..def5678 100644 --- a/database_rewinder.gemspec +++ b/database_rewinder.gemspec @@ -18,7 +18,7 @@ spec.require_paths = ["lib"] spec.add_development_dependency "bundler", "~> 1.3" - spec.add_development_dependency "rake", "< 11" + ...
Revert "Use Rake under 11" This reverts commit 1bb7e8bb64006e0446c765eb22d4db5f86708348. Reason: We're no longer depending on RSpec 2
diff --git a/spec/bundler/installer/gem_installer_spec.rb b/spec/bundler/installer/gem_installer_spec.rb index abc1234..def5678 100644 --- a/spec/bundler/installer/gem_installer_spec.rb +++ b/spec/bundler/installer/gem_installer_spec.rb @@ -10,14 +10,14 @@ subject { described_class.new(spec, installer) } context...
Add limit `:rubygems => ">= 2"` Because those specs are failed with old RubyGems.
diff --git a/lib/deep_cover/core_ext/load_overrides.rb b/lib/deep_cover/core_ext/load_overrides.rb index abc1234..def5678 100644 --- a/lib/deep_cover/core_ext/load_overrides.rb +++ b/lib/deep_cover/core_ext/load_overrides.rb @@ -14,8 +14,8 @@ result = load_without_deep_cover(path) if result.is_a? Symbol re...
Fix it even though it's unused
diff --git a/spec/controllers/admin/tag_controller_spec.rb b/spec/controllers/admin/tag_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/admin/tag_controller_spec.rb +++ b/spec/controllers/admin/tag_controller_spec.rb @@ -4,19 +4,37 @@ let!(:admin) { Profile.create!(FactoryGirl.attributes_for(:...
Add another test for tags
diff --git a/app/controllers/api/v1/plays_controller.rb b/app/controllers/api/v1/plays_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/v1/plays_controller.rb +++ b/app/controllers/api/v1/plays_controller.rb @@ -9,15 +9,15 @@ result_count: @plays.total_count, results: @plays } - ...
Fix `Space inside {} missing` issue
diff --git a/app/helpers/spree/base_helper_decorator.rb b/app/helpers/spree/base_helper_decorator.rb index abc1234..def5678 100644 --- a/app/helpers/spree/base_helper_decorator.rb +++ b/app/helpers/spree/base_helper_decorator.rb @@ -7,7 +7,7 @@ root_taxon.children.map do |taxon| css_class = (current_...
Add css class to taxon links.
diff --git a/cucumber_tricks.gemspec b/cucumber_tricks.gemspec index abc1234..def5678 100644 --- a/cucumber_tricks.gemspec +++ b/cucumber_tricks.gemspec @@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_dependency "cucumber" + spec.add_de...
Add version constraint on cucumber
diff --git a/lib/google_timezone/base.rb b/lib/google_timezone/base.rb index abc1234..def5678 100644 --- a/lib/google_timezone/base.rb +++ b/lib/google_timezone/base.rb @@ -3,7 +3,7 @@ module GoogleTimezone class Base - @allowed_params = [:language, :sensor, :timestamp, :client, :signature] + @allowed_params...
Add key as allowed param Google's timezone API documentation indicates that all apps should use an API key for requests. https://developers.google.com/maps/documentation/timezone/#api_key The "key" parameter was not in the list of allowed_params and would be rejected. This change simply adds :key to the list of allow...
diff --git a/lib/minitest/fail_plugin.rb b/lib/minitest/fail_plugin.rb index abc1234..def5678 100644 --- a/lib/minitest/fail_plugin.rb +++ b/lib/minitest/fail_plugin.rb @@ -28,11 +28,24 @@ empty_test = result.method(result.name).source_location e = ::Minitest::Assertion.new "Empty test <#{resu...
Define and redefine :location to quell warnings
diff --git a/lib/minitest/fail_plugin.rb b/lib/minitest/fail_plugin.rb index abc1234..def5678 100644 --- a/lib/minitest/fail_plugin.rb +++ b/lib/minitest/fail_plugin.rb @@ -28,8 +28,7 @@ empty_test = result.method(result.name).source_location e = ::Minitest::Assertion.new "Empty test #{result}...
Use define_method to set location
diff --git a/lib/nigel/commands/flood.rb b/lib/nigel/commands/flood.rb index abc1234..def5678 100644 --- a/lib/nigel/commands/flood.rb +++ b/lib/nigel/commands/flood.rb @@ -3,10 +3,11 @@ class Flood def self.process(options) + threads = [] + Google::Search::Image.new( query: 'Nig...
Fix bug with threads not running concurrently.
diff --git a/radar.gemspec b/radar.gemspec index abc1234..def5678 100644 --- a/radar.gemspec +++ b/radar.gemspec @@ -1,6 +1,4 @@-# -*- encoding: utf-8 -*- -$LOAD_PATH.unshift File.expand_path('../lib', __FILE__) -require 'radar/version' +require File.expand_path("../lib/radar/version", __FILE__) Gem::Specification.n...
Fix executables line in gemspec
diff --git a/lib/songkickr/result_set.rb b/lib/songkickr/result_set.rb index abc1234..def5678 100644 --- a/lib/songkickr/result_set.rb +++ b/lib/songkickr/result_set.rb @@ -19,7 +19,7 @@ def parse_results(results = {}) return [] unless results.include? result_key_string results[result_key_string...
Fix some incompatibilities with certain Ruby runtimes.
diff --git a/lib/spree_flexi_variants.rb b/lib/spree_flexi_variants.rb index abc1234..def5678 100644 --- a/lib/spree_flexi_variants.rb +++ b/lib/spree_flexi_variants.rb @@ -7,10 +7,10 @@ def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| - Rails.env.pro...
Change the conditions for class loading
diff --git a/config/initializers/cancancan.rb b/config/initializers/cancancan.rb index abc1234..def5678 100644 --- a/config/initializers/cancancan.rb +++ b/config/initializers/cancancan.rb @@ -0,0 +1,12 @@+module CanCanUnauthorizedMessage + # Fix deprecated syntax calling I18n#translate (using keyword args) without us...
Patch CanCan deprecated keyword arguments Solves an issue with use of deprecated positional args. The version of CanCan which fixes this is not currently compatible with OFN...
diff --git a/spec/tasks/import_contacts/contact_builder_spec.rb b/spec/tasks/import_contacts/contact_builder_spec.rb index abc1234..def5678 100644 --- a/spec/tasks/import_contacts/contact_builder_spec.rb +++ b/spec/tasks/import_contacts/contact_builder_spec.rb @@ -4,6 +4,7 @@ describe '.build' do let(:contact_re...
Fix specs that were dependent on Department yaml file content These now require record creation
diff --git a/MCPopupOverlay.podspec b/MCPopupOverlay.podspec index abc1234..def5678 100644 --- a/MCPopupOverlay.podspec +++ b/MCPopupOverlay.podspec @@ -0,0 +1,21 @@+ +Pod::Spec.new do |s| + + s.name = "MCPopupOverlay" + s.version = "0.0.1" + s.summary = "A generic popup view class." + s.homepage ...
Add a CocoaPods podspec to the repo
diff --git a/Casks/java6.rb b/Casks/java6.rb index abc1234..def5678 100644 --- a/Casks/java6.rb +++ b/Casks/java6.rb @@ -1,14 +1,12 @@ cask :v1 => 'java6' do version '1.6.0_65' - sha256 '97bc9b3c47af1f303710c8b15f2bcaedd6b40963c711a18da8eac1e49690a8a0' + sha256 '1b7b88c7c7ca3a1c50eacee1977dee974a50157ff7c88d0e7390...
Use the new package for java 6 that works on el capitan with rootless mode enabled.
diff --git a/ci_environment/bison/attributes/default.rb b/ci_environment/bison/attributes/default.rb index abc1234..def5678 100644 --- a/ci_environment/bison/attributes/default.rb +++ b/ci_environment/bison/attributes/default.rb @@ -1,5 +1,5 @@ arch = kernel['machine'] =~ /x86_64/ ? "amd64" : "i386" -filename = "bi...
Update bison deb to available version
diff --git a/test/support/load_test_env.rb b/test/support/load_test_env.rb index abc1234..def5678 100644 --- a/test/support/load_test_env.rb +++ b/test/support/load_test_env.rb @@ -9,6 +9,7 @@ require_relative "database_setup" require_relative "schema" require_relative "models" +require "niceql" module TestHelpe...
Load niceql in the test environment So useful for debugging!
diff --git a/cookbooks/cumulus/test/cookbooks/cumulus-test/recipes/bonds.rb b/cookbooks/cumulus/test/cookbooks/cumulus-test/recipes/bonds.rb index abc1234..def5678 100644 --- a/cookbooks/cumulus/test/cookbooks/cumulus-test/recipes/bonds.rb +++ b/cookbooks/cumulus/test/cookbooks/cumulus-test/recipes/bonds.rb @@ -0,0 +1,...
Add a cumulus_bond test recipe
diff --git a/rspec_profiling.gemspec b/rspec_profiling.gemspec index abc1234..def5678 100644 --- a/rspec_profiling.gemspec +++ b/rspec_profiling.gemspec @@ -21,6 +21,7 @@ spec.add_dependency "sqlite3" spec.add_dependency "activerecord" spec.add_dependency "pg" + spec.add_dependency "rails" spec.add_develo...
Add rails dependency to gemspec
diff --git a/app/controllers/users/notification_rules_controller.rb b/app/controllers/users/notification_rules_controller.rb index abc1234..def5678 100644 --- a/app/controllers/users/notification_rules_controller.rb +++ b/app/controllers/users/notification_rules_controller.rb @@ -2,18 +2,22 @@ before_filter :authenti...
Stop using respond with in order to render the right view in the right circumstances
diff --git a/app/controllers/api/ims_imports_controller.rb b/app/controllers/api/ims_imports_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/ims_imports_controller.rb +++ b/app/controllers/api/ims_imports_controller.rb @@ -2,8 +2,11 @@ include Concerns::CanvasImsccSupport def create - if...
Verify ims import data params separately
diff --git a/app/controllers/catalog_controller.rb b/app/controllers/catalog_controller.rb index abc1234..def5678 100644 --- a/app/controllers/catalog_controller.rb +++ b/app/controllers/catalog_controller.rb @@ -24,7 +24,8 @@ config.document_unique_id_param = 'ids' # solr field configuration for search resu...
Add catalog configuration to display title/creator
diff --git a/app/views/api/chapters/_chapter.json.jbuilder b/app/views/api/chapters/_chapter.json.jbuilder index abc1234..def5678 100644 --- a/app/views/api/chapters/_chapter.json.jbuilder +++ b/app/views/api/chapters/_chapter.json.jbuilder @@ -1,3 +1,12 @@-json.merge! chapter.as_json +json.ignore_nil! + +fields = chap...
Remove unused attributes in story chapters API call
diff --git a/dm-sqlite-adapter.gemspec b/dm-sqlite-adapter.gemspec index abc1234..def5678 100644 --- a/dm-sqlite-adapter.gemspec +++ b/dm-sqlite-adapter.gemspec @@ -1,4 +1,5 @@-# -*- encoding: utf-8 -*- +# encoding: utf-8 + require File.expand_path('../lib/dm-sqlite-adapter/version', __FILE__) Gem::Specification.ne...
Fix code formatting in gemspec
diff --git a/delayed_job_sqs.gemspec b/delayed_job_sqs.gemspec index abc1234..def5678 100644 --- a/delayed_job_sqs.gemspec +++ b/delayed_job_sqs.gemspec @@ -10,7 +10,7 @@ s.email = ['isra017@gmail.com'] s.description = 'Amazon SQS backend for delayed_job' s.summary = 'Amazon SQS backend for dela...
Update the gem spec's "homepage" property.
diff --git a/backend/dorm-management/config/application.rb b/backend/dorm-management/config/application.rb index abc1234..def5678 100644 --- a/backend/dorm-management/config/application.rb +++ b/backend/dorm-management/config/application.rb @@ -22,5 +22,10 @@ # Do not swallow errors in after_commit/after_rollback...
Allow cross origin requests during development
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 @@ -17,7 +17,7 @@ class ActiveSupport::TestCase class << self - remove_method :describe + remove_method :describe if method_defined? :describe end extend MiniTest::...
Remove describe method only when defined
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 @@ -2,6 +2,11 @@ require 'rr' require 'ffi' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) + +if RUBY_PLATFORM == 'java' + require 'java' + JRuby.objectspace =...
Enable objectspace in JRuby for testing.
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,2 +1,4 @@+RAILS_ENV = 'test' require 'rubygems' require 'test/unit' +require File.join(File.dirname(__FILE__), '..', 'init.rb')
Include the plugin initialisation file in the test helper for the plugin.
diff --git a/theme_essay.gemspec b/theme_essay.gemspec index abc1234..def5678 100644 --- a/theme_essay.gemspec +++ b/theme_essay.gemspec @@ -10,14 +10,14 @@ s.authors = ["Ace Subido", "Karlo Soriano"] s.email = ["ace@aelogica.com", "karlo@aelogica.com"] s.homepage = "TODO" - s.summary = "AELOG...
Change rails version dependency in order to fix bundle issues
diff --git a/lib/html_mockup/rack/sleep.rb b/lib/html_mockup/rack/sleep.rb index abc1234..def5678 100644 --- a/lib/html_mockup/rack/sleep.rb +++ b/lib/html_mockup/rack/sleep.rb @@ -8,7 +8,7 @@ end def call(env) - r = Rack::Request.new(env) + r = ::Rack::Request.new(env) if r.para...
Use the rack object instantiated in HtmlMockup
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,6 @@ ActionController::Routing::Routes.draw do |map| - map.root :controller => 'home' + map.root :controller => 'problems', :action => 'new' map.resources :places, :controller...
Make place finding front page
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -45,6 +45,4 @@ match '/index.:format' => 'site#index' themes_for_rails - - match '/:controller(/:action(/:id))' end
Remove the Rails default route Fixes #19
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -9,6 +9,9 @@ as: :formatted_smart_answer, constraints: { format: /[a-zA-Z]+/ } - get '/:id(/:started(/*responses))', to: 'smart_answers#show', as: :smart_answer + get '/:i...
Set smart_answer path route format to false. This brings back the default rails 3.x behaviour. The new one matches numbers in paths like /pension-amount/300.0 as format and throws an exception.
diff --git a/services/friend_feed.rb b/services/friend_feed.rb index abc1234..def5678 100644 --- a/services/friend_feed.rb +++ b/services/friend_feed.rb @@ -3,10 +3,12 @@ friendfeed_url = URI.parse("http://friendfeed.com/api/share") payload['commits'].each do |commit| - title = "#{commit['author']['name']} ju...
Reformat messaging for postcommit. Add 'via' parameter after approval from FriendFeed
diff --git a/app/controllers/socializer/circles_controller.rb b/app/controllers/socializer/circles_controller.rb index abc1234..def5678 100644 --- a/app/controllers/socializer/circles_controller.rb +++ b/app/controllers/socializer/circles_controller.rb @@ -1,5 +1,8 @@ module Socializer class CirclesController < Appl...
Add before filter for CirclesController.
diff --git a/features/support/form_helpers.rb b/features/support/form_helpers.rb index abc1234..def5678 100644 --- a/features/support/form_helpers.rb +++ b/features/support/form_helpers.rb @@ -8,7 +8,7 @@ def fill_in_field(field_name, value) label_text = field_name.to_s.humanize - if page.first(:select, lab...
Use has_css? instead of first In older versions of Capybara, first would return nil but now it raises an exception.
diff --git a/db/migrate/20150618193748_create_skills.rb b/db/migrate/20150618193748_create_skills.rb index abc1234..def5678 100644 --- a/db/migrate/20150618193748_create_skills.rb +++ b/db/migrate/20150618193748_create_skills.rb @@ -2,7 +2,7 @@ def change create_table :skills do |t| t.string :title, null:...
Change default current_streak value in skills migration
diff --git a/test/test_legal_markdown_to_markdown.rb b/test/test_legal_markdown_to_markdown.rb index abc1234..def5678 100644 --- a/test/test_legal_markdown_to_markdown.rb +++ b/test/test_legal_markdown_to_markdown.rb @@ -29,11 +29,12 @@ end def destroy_temp ( temp_file ) - File.delete temp_file + File.dele...
Add marker to show which file is being tested. Add gaurd if temp file disappears
diff --git a/prius.gemspec b/prius.gemspec index abc1234..def5678 100644 --- a/prius.gemspec +++ b/prius.gemspec @@ -21,6 +21,6 @@ spec.required_ruby_version = ">= 2.2" spec.add_development_dependency "rspec", "~> 3.1" - spec.add_development_dependency "rubocop", "~> 0.57.0" + spec.add_development_dependency "...
Update rubocop requirement to ~> 0.58.1 Updates the requirements on [rubocop](https://github.com/rubocop-hq/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop-hq/rubocop/releases) - [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.c...
diff --git a/app/controllers/application.rb b/app/controllers/application.rb index abc1234..def5678 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -1,4 +1,10 @@ class ApplicationController < ActionController::Base + helper :all # include all helpers, all the time + + # See ActionC...
Update (all helpers, forgery protection) git-svn-id: 688d3875d79a464202b418543870f1890916b750@629 b1a0fcd8-281e-0410-b946-bf040eef99c3
diff --git a/lib/name_whisperer.rb b/lib/name_whisperer.rb index abc1234..def5678 100644 --- a/lib/name_whisperer.rb +++ b/lib/name_whisperer.rb @@ -27,7 +27,7 @@ Pathname.new(xcodeprojects[0]).basename.to_s else error_message = (xcodeprojects.length > 1) ? "found too many" : "couldn't fin...
[UI] Include name, so user knows what this is about.
diff --git a/ext/extconf.rb b/ext/extconf.rb index abc1234..def5678 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -16,6 +16,7 @@ f.write '#!/bin/sh' f.chmod f.stat.mode | 0111 end - File.open('rhodes_postinstallhack' + '.so', 'w') {} - File.open('rhodes_postinstallhack' + '.dll', 'w') ...
Fix for windows 2k3 gem install.
diff --git a/lib/acfs/errors.rb b/lib/acfs/errors.rb index abc1234..def5678 100644 --- a/lib/acfs/errors.rb +++ b/lib/acfs/errors.rb @@ -12,6 +12,26 @@ def initialize(data = {}) self.response = data[:response] + message = '' + message << "Received erroneous response: #{response.code}" + if r...
Expand erroneous response error message.
diff --git a/app/models/metrics/licenses.rb b/app/models/metrics/licenses.rb index abc1234..def5678 100644 --- a/app/models/metrics/licenses.rb +++ b/app/models/metrics/licenses.rb @@ -4,11 +4,18 @@ attr_reader :score + def license_valid?(id) + licenses = { "dl-de-by-1.0" => true } + licenses[id] +...
Add more code to the license metric Just started to write some code for the license metric. I will have to find a good way to consolidate different data licenses and on what terms it is open/valid and on what terms it is not. Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>
diff --git a/lib/classloader.rb b/lib/classloader.rb index abc1234..def5678 100644 --- a/lib/classloader.rb +++ b/lib/classloader.rb @@ -13,7 +13,7 @@ def classes all_classes = [] - @files.values.each do |mod| + files.values.each do |mod| mod.constants.each do |const_name| con...
Use reader instead of instance variable
diff --git a/lib/tok/controller.rb b/lib/tok/controller.rb index abc1234..def5678 100644 --- a/lib/tok/controller.rb +++ b/lib/tok/controller.rb @@ -22,6 +22,18 @@ request.headers["HTTP_AUTHORIZATION"] || params[:token] end + # Adopted from Devise, licensed under MIT. + # Copyrights 2009 - 2014 Plata...
Use Devise.secure_compare to prevent timing attacks
diff --git a/garage.gemspec b/garage.gemspec index abc1234..def5678 100644 --- a/garage.gemspec +++ b/garage.gemspec @@ -16,7 +16,7 @@ s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"] - s.add_dependency "rails", '>= 4.0.0' + s.add_dependency "rails", '>= 4.2.0' s.add_depen...
Drop support for Rails 4.1
diff --git a/lib/keepr/group.rb b/lib/keepr/group.rb index abc1234..def5678 100644 --- a/lib/keepr/group.rb +++ b/lib/keepr/group.rb @@ -37,7 +37,9 @@ private def set_target_from_parent - self.target = parent.target if parent + self.class.unscoped do + self.target = parent.target if parent + end ...
Fix warning in Rails 6
diff --git a/lib/prid/client.rb b/lib/prid/client.rb index abc1234..def5678 100644 --- a/lib/prid/client.rb +++ b/lib/prid/client.rb @@ -13,6 +13,7 @@ exit 1 end branch = `git branch 2> /dev/null | grep '^\*' | cut -b 3-` + branch.chomp! if branch.nil? || branch.empty? warn 'A...
Fix bug that branch contains new line code
diff --git a/lib/sloc/runner.rb b/lib/sloc/runner.rb index abc1234..def5678 100644 --- a/lib/sloc/runner.rb +++ b/lib/sloc/runner.rb @@ -19,7 +19,8 @@ end # TODO: formatted output - p report + require 'pp' + pp report nil end
Use pp for printing report prettier
diff --git a/app/controllers/forem/categories_controller.rb b/app/controllers/forem/categories_controller.rb index abc1234..def5678 100644 --- a/app/controllers/forem/categories_controller.rb +++ b/app/controllers/forem/categories_controller.rb @@ -1,5 +1,5 @@ module Forem - class CategoriesController < ApplicationCon...
Make CategoriesController inherit from Forem::ApplicationController Fixes #186. The issue is caused because ApplicationController is loaded first, and so Forem doesn't go up the chain looking for another ApplicationController because one's already been loaded. By being explicit like this, we make sure that the right ...
diff --git a/app/controllers/hive_mind_tv/api_controller.rb b/app/controllers/hive_mind_tv/api_controller.rb index abc1234..def5678 100644 --- a/app/controllers/hive_mind_tv/api_controller.rb +++ b/app/controllers/hive_mind_tv/api_controller.rb @@ -7,7 +7,10 @@ response = {} status = :ok - if device = Dev...
Handle missing or unknown device id
diff --git a/app/controllers/wat_catcher/catcher_of_wats.rb b/app/controllers/wat_catcher/catcher_of_wats.rb index abc1234..def5678 100644 --- a/app/controllers/wat_catcher/catcher_of_wats.rb +++ b/app/controllers/wat_catcher/catcher_of_wats.rb @@ -5,7 +5,7 @@ extend ActiveSupport::Concern included do - ...
Fix Rails 5 deprecation warnings To fix "DEPRECATION WARNING: env is deprecated and will be removed from Rails 5.1" I replaced calls to 'env' with 'request.env' in CatcherOfWats per https://github.com/rails/rails/issues/23294. To fix "DEPRECATION WARNING: around_filter is deprecated and will be removed in Rails 5.1. U...
diff --git a/sassy.gemspec b/sassy.gemspec index abc1234..def5678 100644 --- a/sassy.gemspec +++ b/sassy.gemspec @@ -19,7 +19,8 @@ spec.require_paths = ["lib"] spec.add_runtime_dependency "builder", "~> 3.0.4" - spec.add_runtime_dependency "debugger" + spec.add_development_dependency "debugger" + spec.add_dev...
Change debugger to dev + add test-unit
diff --git a/app/controllers/pawoo/api/v1/followers_you_follow_controller.rb b/app/controllers/pawoo/api/v1/followers_you_follow_controller.rb index abc1234..def5678 100644 --- a/app/controllers/pawoo/api/v1/followers_you_follow_controller.rb +++ b/app/controllers/pawoo/api/v1/followers_you_follow_controller.rb @@ -8,7...
Hide follower you follow when hides_network is enable
diff --git a/spec/factories/users.rb b/spec/factories/users.rb index abc1234..def5678 100644 --- a/spec/factories/users.rb +++ b/spec/factories/users.rb @@ -34,16 +34,5 @@ password 'password' password_confirmation 'password' confirmed_at Time.zone.today - - # profile settings - name { Faker::Name.na...
Remove profile attributes from user factory and re annotate
diff --git a/spec/controllers/projects/pipelines_controller_spec.rb b/spec/controllers/projects/pipelines_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/projects/pipelines_controller_spec.rb +++ b/spec/controllers/projects/pipelines_controller_spec.rb @@ -5,13 +5,33 @@ let(:user) { create(:...
Add controller specs for pipeline index API endpoint [ci skip]
diff --git a/lib/aws-record/record/version.rb b/lib/aws-record/record/version.rb index abc1234..def5678 100644 --- a/lib/aws-record/record/version.rb +++ b/lib/aws-record/record/version.rb @@ -13,6 +13,6 @@ module Aws module Record - VERSION = "1.0.0.pre.4" + VERSION = '1.0.0.pre.4' end end
Use Single Quotes for Version Has to do with the release scripts.
diff --git a/lib/ember/appkit/rails/engine.rb b/lib/ember/appkit/rails/engine.rb index abc1234..def5678 100644 --- a/lib/ember/appkit/rails/engine.rb +++ b/lib/ember/appkit/rails/engine.rb @@ -3,7 +3,7 @@ config.ember_appkit.namespace = 'appkit' config.ember_appkit.asset_path = config.ember_appkit.namespace - c...
Add to default prefix pattern.
diff --git a/lib/rails_admin_approve_event.rb b/lib/rails_admin_approve_event.rb index abc1234..def5678 100644 --- a/lib/rails_admin_approve_event.rb +++ b/lib/rails_admin_approve_event.rb @@ -10,7 +10,18 @@ module Actions class ApproveEvent < Base RailsAdmin::Config::Actions.register(self) - ...
Add a cusom icon & activate the button only for members.
diff --git a/gems.rb b/gems.rb index abc1234..def5678 100644 --- a/gems.rb +++ b/gems.rb @@ -3,8 +3,58 @@ global_gemset = ENV['GEM_PATH'].split(':').grep(/ruby.*@global/).first $LOAD_PATH.concat(Dir.glob("#{global_gemset}/gems/*/lib")) if global_gemset -end +end; nil require 'awesome_print' require 'pry' r...
Add HttpLog gem and configuration.