diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/libraries/helpers.rb b/libraries/helpers.rb index abc1234..def5678 100644 --- a/libraries/helpers.rb +++ b/libraries/helpers.rb @@ -14,7 +14,6 @@ cli_line += " -#{arg} #{value}" when TrueClass cli_line += " -#{arg}=true" - #cli_line += " -#{arg}" end e...
Remove extraneous comment in cli_args helper
diff --git a/app/controllers/picks_controller.rb b/app/controllers/picks_controller.rb index abc1234..def5678 100644 --- a/app/controllers/picks_controller.rb +++ b/app/controllers/picks_controller.rb @@ -12,6 +12,9 @@ if params[:commit]=="signup" redirect_to edit_user_path(@user.id), locals: {email: p...
Send email to new users on lotifyme click
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 @@ -10,8 +10,10 @@ def create @user = User.new(user_params) + @user.provider, @user.uid = "not_applicable",...
Fix sign-up issue for those that prefer regular user registration
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 @@ -4,6 +4,10 @@ def show if current_user.id == params[:id].to_i @user = current_user + respond_to d...
Update user show page to render json data
diff --git a/spec/config/initializers/active_resource_extension_spec.rb b/spec/config/initializers/active_resource_extension_spec.rb index abc1234..def5678 100644 --- a/spec/config/initializers/active_resource_extension_spec.rb +++ b/spec/config/initializers/active_resource_extension_spec.rb @@ -12,14 +12,14 @@ befor...
Remove 'should' from spec description
diff --git a/app/serializers/charm_serializer.rb b/app/serializers/charm_serializer.rb index abc1234..def5678 100644 --- a/app/serializers/charm_serializer.rb +++ b/app/serializers/charm_serializer.rb @@ -3,5 +3,5 @@ # app/serializers/charm_serializer.rb class CharmSerializer < ActiveModel::Serializer attributes :i...
Add prereqs field to Charm serializer
diff --git a/tools/complexity/lib/measurement/condition_counter.rb b/tools/complexity/lib/measurement/condition_counter.rb index abc1234..def5678 100644 --- a/tools/complexity/lib/measurement/condition_counter.rb +++ b/tools/complexity/lib/measurement/condition_counter.rb @@ -2,5 +2,15 @@ module Measurement class ...
Add leaves method to ConditionCounter for ABC metric.
diff --git a/spec/features/user_registration_spec.rb b/spec/features/user_registration_spec.rb index abc1234..def5678 100644 --- a/spec/features/user_registration_spec.rb +++ b/spec/features/user_registration_spec.rb @@ -16,7 +16,7 @@ expect(page).to have_content(I18n.t('devise.registrations.signed_up_but_unconfirm...
Fix the failed features caused by translation
diff --git a/spec/services/points_calculator_spec.rb b/spec/services/points_calculator_spec.rb index abc1234..def5678 100644 --- a/spec/services/points_calculator_spec.rb +++ b/spec/services/points_calculator_spec.rb @@ -0,0 +1,40 @@+require 'rails_helper' + +RSpec.describe PointsCalculator, type: :class do + let(:use...
Create spec for PointsCalculator service
diff --git a/spec/functional/api/owners_controller_spec.rb b/spec/functional/api/owners_controller_spec.rb index abc1234..def5678 100644 --- a/spec/functional/api/owners_controller_spec.rb +++ b/spec/functional/api/owners_controller_spec.rb @@ -16,5 +16,10 @@ attributes = owner.public_attributes json_respo...
[Spec] Verify 404 if no owner is found
diff --git a/sinatra-activerecord.gemspec b/sinatra-activerecord.gemspec index abc1234..def5678 100644 --- a/sinatra-activerecord.gemspec +++ b/sinatra-activerecord.gemspec @@ -19,7 +19,7 @@ gem.required_ruby_version = ">= 1.9.2" - gem.add_dependency "sinatra", "~> 1.0" + gem.add_dependency "sinatra", ">= 1.0" ...
Allow Sinatra 2 in gemspec Fixes #72, Fixes #70
diff --git a/lib/oauth2/model.rb b/lib/oauth2/model.rb index abc1234..def5678 100644 --- a/lib/oauth2/model.rb +++ b/lib/oauth2/model.rb @@ -8,6 +8,10 @@ autoload :Authorization, ROOT + '/oauth2/model/authorization' autoload :Client, ROOT + '/oauth2/model/client' autoload :Schema, ROOT + ...
Add a helper method for getting authorizations by access token, hiding the hashing details.
diff --git a/preserves.gemspec b/preserves.gemspec index abc1234..def5678 100644 --- a/preserves.gemspec +++ b/preserves.gemspec @@ -18,6 +18,8 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] + spec.add_dependency "pg", "~> 0.17.1" + spec.add_development_depen...
Add dependency on 'pg' gem for PostgreSQL back end.
diff --git a/recipes/link_sudo.rb b/recipes/link_sudo.rb index abc1234..def5678 100644 --- a/recipes/link_sudo.rb +++ b/recipes/link_sudo.rb @@ -8,6 +8,6 @@ link "/opt/local/etc/sudoers" do to "/etc/sudoers" link_type :hard - only_if(File.exists?("/opt/local/etc/sudoers")) + only_if { File.exists?("/o...
Fix stephen's lame not_if statement
diff --git a/LVGUtilities.podspec b/LVGUtilities.podspec index abc1234..def5678 100644 --- a/LVGUtilities.podspec +++ b/LVGUtilities.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "LVGUtilities" - s.version = "0.1.3" + s.version = "0.2.1" s.summary = "Basic Swift utility function...
Update podspec to version 0.2.1
diff --git a/db/migrate/20130611210815_increase_snippet_text_column_size.rb b/db/migrate/20130611210815_increase_snippet_text_column_size.rb index abc1234..def5678 100644 --- a/db/migrate/20130611210815_increase_snippet_text_column_size.rb +++ b/db/migrate/20130611210815_increase_snippet_text_column_size.rb @@ -0,0 +1,...
Increase snippet content column size. This will fix issue #3904
diff --git a/spec/acceptance/root_spec.rb b/spec/acceptance/root_spec.rb index abc1234..def5678 100644 --- a/spec/acceptance/root_spec.rb +++ b/spec/acceptance/root_spec.rb @@ -21,6 +21,7 @@ :id => { :type => "integer" }, :status => { :type => "string" }, :total_cents =...
Add updated schema to specs
diff --git a/spec/requests/orders_spec.rb b/spec/requests/orders_spec.rb index abc1234..def5678 100644 --- a/spec/requests/orders_spec.rb +++ b/spec/requests/orders_spec.rb @@ -0,0 +1,19 @@+require 'rails_helper' + +RSpec.describe 'Orders', type: :request do + describe 'GET /orders' do + it 'successful request' do ...
Add spec for orders resources
diff --git a/lib/rails/generators/fabrication/model/templates/fabricator.rb b/lib/rails/generators/fabrication/model/templates/fabricator.rb index abc1234..def5678 100644 --- a/lib/rails/generators/fabrication/model/templates/fabricator.rb +++ b/lib/rails/generators/fabrication/model/templates/fabricator.rb @@ -1,4 +1,...
Handle namespaced class names in generator [closes #47]
diff --git a/lib/skywriter/resource/elastic_load_balancing/load_balancer.rb b/lib/skywriter/resource/elastic_load_balancing/load_balancer.rb index abc1234..def5678 100644 --- a/lib/skywriter/resource/elastic_load_balancing/load_balancer.rb +++ b/lib/skywriter/resource/elastic_load_balancing/load_balancer.rb @@ -6,8 +6,...
Add AccessLoggingPolicy and ConnectionDrainingPolicy attributes
diff --git a/mongoid_auto_increment_id.gemspec b/mongoid_auto_increment_id.gemspec index abc1234..def5678 100644 --- a/mongoid_auto_increment_id.gemspec +++ b/mongoid_auto_increment_id.gemspec @@ -3,19 +3,15 @@ Gem::Specification.new do |s| s.name = "mongoid_auto_increment_id" - s.version = "0.2" + s....
Fix install in bundler 1.1
diff --git a/core/module/ancestors_spec.rb b/core/module/ancestors_spec.rb index abc1234..def5678 100644 --- a/core/module/ancestors_spec.rb +++ b/core/module/ancestors_spec.rb @@ -17,4 +17,23 @@ it "has 1 entry per module or class" do ModuleSpecs::Parent.ancestors.should == ModuleSpecs::Parent.ancestors.uniq ...
Add spec for ancestors on a singleton class MRI 1.9 did not include the singleton classes in the list of ancestors but 2.x does.
diff --git a/app/services/edition_publisher.rb b/app/services/edition_publisher.rb index abc1234..def5678 100644 --- a/app/services/edition_publisher.rb +++ b/app/services/edition_publisher.rb @@ -1,12 +1,17 @@ class EditionPublisher < EditionService def failure_reason - @failure_reason ||= if !edition.valid? - ...
Rework EditionPublisher to expose multiple failure reasons.
diff --git a/obvious_data.gemspec b/obvious_data.gemspec index abc1234..def5678 100644 --- a/obvious_data.gemspec +++ b/obvious_data.gemspec @@ -17,7 +17,7 @@ s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"] s.test_files = Dir["spec/**/*"] - s.add_dependency "rails", ">= 3.0....
Drop support for Rails < 3.2
diff --git a/src/app/models/credential.rb b/src/app/models/credential.rb index abc1234..def5678 100644 --- a/src/app/models/credential.rb +++ b/src/app/models/credential.rb @@ -36,5 +36,5 @@ validates_uniqueness_of :credential_definition_id, :scope => :provider_account_id attr_protected :id, :provider_account_id...
Fix the new Provider Account form error
diff --git a/spec/requests/groups/prefs_spec.rb b/spec/requests/groups/prefs_spec.rb index abc1234..def5678 100644 --- a/spec/requests/groups/prefs_spec.rb +++ b/spec/requests/groups/prefs_spec.rb @@ -0,0 +1,66 @@+require "spec_helper" + +describe "Group prefs" do + + def get_field(name) + find_field(I18n.t("formta...
Add some tests for setting group preferences.
diff --git a/spec/requests/static_pages_spec.rb b/spec/requests/static_pages_spec.rb index abc1234..def5678 100644 --- a/spec/requests/static_pages_spec.rb +++ b/spec/requests/static_pages_spec.rb @@ -40,7 +40,7 @@ expect(page).to have_title('Contact') click_link "Home" click_link "Sign up now!" - ...
Correct spec for static pages
diff --git a/db/migrate/20130117193334_remove_name_from_accounts.rb b/db/migrate/20130117193334_remove_name_from_accounts.rb index abc1234..def5678 100644 --- a/db/migrate/20130117193334_remove_name_from_accounts.rb +++ b/db/migrate/20130117193334_remove_name_from_accounts.rb @@ -4,13 +4,13 @@ person = Person.fin...
Make migration not validate against new validations
diff --git a/roles/security.rb b/roles/security.rb index abc1234..def5678 100644 --- a/roles/security.rb +++ b/roles/security.rb @@ -6,5 +6,5 @@ "recipe[denyhosts]", "recipe[iptables]", "recipe[rubygems::ip_security]", - "recipe[rubygems::iptables]", + "recipe[rubygems::iptables]" )
Remove trailing comma in run_list
diff --git a/sad_panda.gemspec b/sad_panda.gemspec index abc1234..def5678 100644 --- a/sad_panda.gemspec +++ b/sad_panda.gemspec @@ -21,5 +21,6 @@ spec.add_development_dependency "bundler", "~> 1.3" spec.add_development_dependency "rake" spec.add_runtime_dependency "ruby-stemmer" + spec.add_development_depende...
Add development dependency 'pry' to gemspec
diff --git a/partials/_default.rb b/partials/_default.rb index abc1234..def5678 100644 --- a/partials/_default.rb +++ b/partials/_default.rb @@ -19,6 +19,8 @@ copy_static_file "lib/tasks/#{component}" end +get "https://raw.github.com/svenfuchs/rails-i18n/master/rails/locale/pt-BR.yml", "config/locales/pt-BR.yml" +...
Add pt-BR locale file when bootstrapping
diff --git a/server/app/models/client.rb b/server/app/models/client.rb index abc1234..def5678 100644 --- a/server/app/models/client.rb +++ b/server/app/models/client.rb @@ -1,5 +1,5 @@ class Client < ActiveRecord::Base - has_many :metrics + has_many :metrics, :dependent => :destroy accepts_nested_attributes_fo...
Set :dependent => :destroy on the has_many :metrics association
diff --git a/spec/scraper_spec.rb b/spec/scraper_spec.rb index abc1234..def5678 100644 --- a/spec/scraper_spec.rb +++ b/spec/scraper_spec.rb @@ -13,6 +13,12 @@ new_releases.shipping_date.should_not be_nil new_releases.categories.should_not be_empty new_releases.comix.should_not be_empty + new_releases....
Check content of each comic
diff --git a/app/converters/shopify/variant_converter.rb b/app/converters/shopify/variant_converter.rb index abc1234..def5678 100644 --- a/app/converters/shopify/variant_converter.rb +++ b/app/converters/shopify/variant_converter.rb @@ -1,13 +1,14 @@ module Shopify class VariantConverter - def initialize(spree_va...
Add default value to the type of weight a variant has
diff --git a/test/dummy/test/unit/hickwell_test.rb b/test/dummy/test/unit/hickwell_test.rb index abc1234..def5678 100644 --- a/test/dummy/test/unit/hickwell_test.rb +++ b/test/dummy/test/unit/hickwell_test.rb @@ -6,6 +6,6 @@ end test "should have maskable_attribute foo" do - assert @hickwell.foo.is_a? Maskabl...
Add Message to Dummy Hickwell Test
diff --git a/lib/merb-core/rack/adapter/ebb.rb b/lib/merb-core/rack/adapter/ebb.rb index abc1234..def5678 100644 --- a/lib/merb-core/rack/adapter/ebb.rb +++ b/lib/merb-core/rack/adapter/ebb.rb @@ -11,12 +11,11 @@ # # ==== Options (opts) # :host<String>:: The hostname that Thin should serve. - #...
Update Ebb adapter to work with latest Ebb 0.1.0 [Ry Dahl]
diff --git a/lib/monolith/locations/default.rb b/lib/monolith/locations/default.rb index abc1234..def5678 100644 --- a/lib/monolith/locations/default.rb +++ b/lib/monolith/locations/default.rb @@ -7,7 +7,7 @@ # accessible, and then you have to guess how to check it out. if File.directory?(@destination) ...
Fix formatting exception when skipping a community cookbook
diff --git a/lib/ossboard/core/http_request.rb b/lib/ossboard/core/http_request.rb index abc1234..def5678 100644 --- a/lib/ossboard/core/http_request.rb +++ b/lib/ossboard/core/http_request.rb @@ -21,8 +21,6 @@ private - attr_reader :uri - def http(uri) http = Net::HTTP.new(uri.host, uri.port) ...
Drop unnecessary line of code
diff --git a/app/overrides/add_delivery_costs_to_cart.rb b/app/overrides/add_delivery_costs_to_cart.rb index abc1234..def5678 100644 --- a/app/overrides/add_delivery_costs_to_cart.rb +++ b/app/overrides/add_delivery_costs_to_cart.rb @@ -1,4 +1,4 @@ Deface::Override.new(:virtual_path => 'spree/orders/edit', ...
Change text for shipping costs.
diff --git a/lib/revision_analytics_service.rb b/lib/revision_analytics_service.rb index abc1234..def5678 100644 --- a/lib/revision_analytics_service.rb +++ b/lib/revision_analytics_service.rb @@ -1,12 +1,14 @@ class RevisionAnalyticsService def self.dyk_eligible + current_course_ids = Course.current.pluck(:id)...
Update query for DYK feed ArticlesCourses generally only get created for mainspace pages, so we can't use them as an indicator that a page is connected to a current course.
diff --git a/lib/workflows/workflow_helpers.rb b/lib/workflows/workflow_helpers.rb index abc1234..def5678 100644 --- a/lib/workflows/workflow_helpers.rb +++ b/lib/workflows/workflow_helpers.rb @@ -3,7 +3,7 @@ module WorkflowHelper private - def try_services(*fns, success: success, failure: failure) + def...
Fix warning so code works on Ruby 2.1, 2.3, 2.4
diff --git a/library/rbconfig/rbconfig_spec.rb b/library/rbconfig/rbconfig_spec.rb index abc1234..def5678 100644 --- a/library/rbconfig/rbconfig_spec.rb +++ b/library/rbconfig/rbconfig_spec.rb @@ -1,11 +1,23 @@ require_relative '../../spec_helper' require 'rbconfig' -describe 'RbConfig::CONFIG values' do - it 'are ...
Add specs for some RbConfig::CONFIG values * rubylibdir and archdir are used by Bootsnap: https://github.com/Shopify/bootsnap/blob/2390a1a5/lib/bootsnap/explicit_require.rb
diff --git a/snow-math.gemspec b/snow-math.gemspec index abc1234..def5678 100644 --- a/snow-math.gemspec +++ b/snow-math.gemspec @@ -11,11 +11,16 @@ s.authors = [ 'Noel Raymond Cower' ] s.email = 'ncower@gmail.com' s.files = Dir.glob('lib/**/*.rb') + - Dir.glob('ext/**/*.{c,h,rb...
Add extra files in gemspec.
diff --git a/test/integration/google_authenticator_test.rb b/test/integration/google_authenticator_test.rb index abc1234..def5678 100644 --- a/test/integration/google_authenticator_test.rb +++ b/test/integration/google_authenticator_test.rb @@ -0,0 +1,37 @@+require 'test_helper' + +class GoogleAuthenticatorTest < Actio...
Fix for a bug in Google Authenticator OTP check
diff --git a/spec/lita_spec.rb b/spec/lita_spec.rb index abc1234..def5678 100644 --- a/spec/lita_spec.rb +++ b/spec/lita_spec.rb @@ -0,0 +1,39 @@+require "spec_helper" + +describe Lita do + it "memoizes a hash of Adapters" do + adapter_class = double("Adapter") + described_class.register_adapter(:foo, adapter_cl...
Add spec for Lita module.
diff --git a/specs/optional.rb b/specs/optional.rb index abc1234..def5678 100644 --- a/specs/optional.rb +++ b/specs/optional.rb @@ -34,8 +34,8 @@ owner = crew.owner return nil unless owner user = owner.user - return user.name if user - nil + return nil unless user + user.name end
Refactor so it is more unique.
diff --git a/sprockets.gemspec b/sprockets.gemspec index abc1234..def5678 100644 --- a/sprockets.gemspec +++ b/sprockets.gemspec @@ -10,9 +10,10 @@ s.add_dependency "rack", "~> 1.0" s.add_dependency "tilt", ["~> 1.0", "!= 1.3.0"] - s.add_development_dependency "execjs" s.add_development_dependency "coffee-sc...
Add rake to dev deps
diff --git a/app/models/table_reservation.rb b/app/models/table_reservation.rb index abc1234..def5678 100644 --- a/app/models/table_reservation.rb +++ b/app/models/table_reservation.rb @@ -9,7 +9,7 @@ private def ended_at_greater_than_started_at - if self.started_at > self.ended_at + if self.started_at && ...
Fix validation in case, when started at is nil.
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index abc1234..def5678 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -4,4 +4,9 @@ # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at lea...
Set default secrets for development/test
diff --git a/lib/barcelona/network/auto_scaling_group.rb b/lib/barcelona/network/auto_scaling_group.rb index abc1234..def5678 100644 --- a/lib/barcelona/network/auto_scaling_group.rb +++ b/lib/barcelona/network/auto_scaling_group.rb @@ -11,6 +11,10 @@ j.DesiredCapacity desired_capacity j.Cooldown 0...
Add comment about MaxSize number
diff --git a/lib/devise_ldap_authenticatable/strategy.rb b/lib/devise_ldap_authenticatable/strategy.rb index abc1234..def5678 100644 --- a/lib/devise_ldap_authenticatable/strategy.rb +++ b/lib/devise_ldap_authenticatable/strategy.rb @@ -2,7 +2,7 @@ module Devise module Strategies - class LdapAuthenticatable < A...
Fix class name for Devise::Authenticatable
diff --git a/lib/stacks/services/virtual_sftp_service.rb b/lib/stacks/services/virtual_sftp_service.rb index abc1234..def5678 100644 --- a/lib/stacks/services/virtual_sftp_service.rb +++ b/lib/stacks/services/virtual_sftp_service.rb @@ -11,12 +11,6 @@ def configure @downstream_services = [] @ports = [21, 22...
rpearce: Remove this function it has been replaced
diff --git a/mipt/app/controllers/teachers_controller.rb b/mipt/app/controllers/teachers_controller.rb index abc1234..def5678 100644 --- a/mipt/app/controllers/teachers_controller.rb +++ b/mipt/app/controllers/teachers_controller.rb @@ -1,7 +1,7 @@ class TeachersController < ApplicationController def index - ...
Add sort by teacher name alphabetically on teacher show page
diff --git a/railties/lib/rails/tasks/dev.rake b/railties/lib/rails/tasks/dev.rake index abc1234..def5678 100644 --- a/railties/lib/rails/tasks/dev.rake +++ b/railties/lib/rails/tasks/dev.rake @@ -1,7 +1,6 @@ namespace :dev do + desc 'Toggle development mode caching on/off' task :cache do - desc 'Toggle developm...
Move the desc one level up Make the task visible (from rake -T) by moving the desc one level up
diff --git a/vagrant_base/nodejs/attributes/multi.rb b/vagrant_base/nodejs/attributes/multi.rb index abc1234..def5678 100644 --- a/vagrant_base/nodejs/attributes/multi.rb +++ b/vagrant_base/nodejs/attributes/multi.rb @@ -1,3 +1,3 @@-default[:nodejs][:versions] = ["0.4.11", "0.5.5"] -default[:nodejs][:aliases] = {"...
Update node.js versions to latest. - Stable is now v0.4.12 - Unstable is now v0.5.8
diff --git a/lib/travis/scheduler/serialize/worker/config/addons.rb b/lib/travis/scheduler/serialize/worker/config/addons.rb index abc1234..def5678 100644 --- a/lib/travis/scheduler/serialize/worker/config/addons.rb +++ b/lib/travis/scheduler/serialize/worker/config/addons.rb @@ -16,6 +16,7 @@ mariadb ...
Allow sonarqube addon on external PRs In this case, addon runs without sensitive data
diff --git a/lib/awesome_print/formatters/simple_formatter.rb b/lib/awesome_print/formatters/simple_formatter.rb index abc1234..def5678 100644 --- a/lib/awesome_print/formatters/simple_formatter.rb +++ b/lib/awesome_print/formatters/simple_formatter.rb @@ -0,0 +1,22 @@+require_relative 'base_formatter' + +module Awesom...
Add simple formatter for BigDecimal and his friends
diff --git a/lib/wulin_master/components/grid/grid_columns.rb b/lib/wulin_master/components/grid/grid_columns.rb index abc1234..def5678 100644 --- a/lib/wulin_master/components/grid/grid_columns.rb +++ b/lib/wulin_master/components/grid/grid_columns.rb @@ -4,21 +4,19 @@ included do class_eval do - c...
Revert "MISC - use attr_reader i/o class_attribute for columns_pool" This reverts commit ead8c75abbfc1cd6adb66dee63d21e1ed66f8cd6.
diff --git a/core/app/workers/migrate_fact_relation_activities_worker.rb b/core/app/workers/migrate_fact_relation_activities_worker.rb index abc1234..def5678 100644 --- a/core/app/workers/migrate_fact_relation_activities_worker.rb +++ b/core/app/workers/migrate_fact_relation_activities_worker.rb @@ -12,13 +12,17 @@ e...
Delete invalid activities in migration
diff --git a/core/enumerator/lazy/lazy_spec.rb b/core/enumerator/lazy/lazy_spec.rb index abc1234..def5678 100644 --- a/core/enumerator/lazy/lazy_spec.rb +++ b/core/enumerator/lazy/lazy_spec.rb @@ -0,0 +1,11 @@+# -*- encoding: us-ascii -*- + +require File.expand_path('../../../../spec_helper', __FILE__) + +ruby_version_...
Write a spec for Enumerator::Lazy
diff --git a/spec/adapter/simple_spec.rb b/spec/adapter/simple_spec.rb index abc1234..def5678 100644 --- a/spec/adapter/simple_spec.rb +++ b/spec/adapter/simple_spec.rb @@ -7,6 +7,20 @@ client = Rack::Client::Simple.new(app) client.get('/hitme').body.should == "rack-client #{Rack::Client::VERSION} (app: ...
Add tests for the HTTP_HOST hedaer in the Simple adapter.
diff --git a/spec/dummy/config/routes.rb b/spec/dummy/config/routes.rb index abc1234..def5678 100644 --- a/spec/dummy/config/routes.rb +++ b/spec/dummy/config/routes.rb @@ -4,7 +4,7 @@ resource :home, only: [:index, :show] - match '/protected_page', to: 'home#show', as: :protected_page + get '/protected_page', ...
Add http verb to protected page route
diff --git a/app/models/artist.rb b/app/models/artist.rb index abc1234..def5678 100644 --- a/app/models/artist.rb +++ b/app/models/artist.rb @@ -11,19 +11,20 @@ Artist.all.shuffle[1] end - def assign_elo_points(artists) + def assign_elo_points(voted_artists) k_factor = 32 - winner_expecta...
Remove references to database elo score in calculations
diff --git a/app/models/recipe.rb b/app/models/recipe.rb index abc1234..def5678 100644 --- a/app/models/recipe.rb +++ b/app/models/recipe.rb @@ -7,11 +7,28 @@ # has_many :recipe_cuisines # has_many :cuisines, through: :recipe_cuisines belongs_to :cuisine - + after_create :assign_course_names + def course_...
Add callback function to Recipe.
diff --git a/app/controllers/admin/invitation_controller.rb b/app/controllers/admin/invitation_controller.rb index abc1234..def5678 100644 --- a/app/controllers/admin/invitation_controller.rb +++ b/app/controllers/admin/invitation_controller.rb @@ -5,7 +5,7 @@ def update invitation = Invitation.find_by(token: ...
Fix bullet unoptimised query error ``` Bullet::Notification::UnoptimizedQueryError: user: despo POST /admin/events/omnis-1/invitation/e5jkug2T-bpuY0Yeqegb3A/verify AVOID eager loading detected Invitation => [:verified_by] Remove from your finder: :includes => [:verified_by] ...
diff --git a/app/controllers/admin/references_controller.rb b/app/controllers/admin/references_controller.rb index abc1234..def5678 100644 --- a/app/controllers/admin/references_controller.rb +++ b/app/controllers/admin/references_controller.rb @@ -11,7 +11,8 @@ end def autocomplete - @references = Reference....
Order autocomplete results by citation
diff --git a/test/cli/command/test_generator.rb b/test/cli/command/test_generator.rb index abc1234..def5678 100644 --- a/test/cli/command/test_generator.rb +++ b/test/cli/command/test_generator.rb @@ -0,0 +1,91 @@+# frozen_string_literal: true + +require "helpers" + +# Tests for KBSecret::CLI::Command::Generator +class...
test/cli: Add tests for `kbsecret generator`
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.2.3 to 0.2.4
diff --git a/spec/unit/resource/cron_d_spec.rb b/spec/unit/resource/cron_d_spec.rb index abc1234..def5678 100644 --- a/spec/unit/resource/cron_d_spec.rb +++ b/spec/unit/resource/cron_d_spec.rb @@ -1,5 +1,5 @@ # -# Copyright:: Copyright 2018, Chef Software, Inc. +# Copyright:: Copyright 2018-2020, Chef Software, Inc. #...
Add additional specs to the cron_d resource Why not Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/spec/functions/split_spec.rb b/spec/functions/split_spec.rb index abc1234..def5678 100644 --- a/spec/functions/split_spec.rb +++ b/spec/functions/split_spec.rb @@ -10,7 +10,9 @@ expected_error = Puppet::ParseError end - if Puppet.version.to_f >= 4.0 + if Puppet.version.to_f >= 4.3 + expected_...
Fix expected argument mismatch message on Puppet 4.3.0 The exception message raised under Puppet 4.3.0 for arity mismatches in functions changed: expected split("foo") to have raised ArgumentError matching /mis-matched arguments/ instead of ArgumentError('split' expects 2 arguments, got 1)
diff --git a/spec/generators/heat_spec.rb b/spec/generators/heat_spec.rb index abc1234..def5678 100644 --- a/spec/generators/heat_spec.rb +++ b/spec/generators/heat_spec.rb @@ -0,0 +1,24 @@+# Copyright 2012 Red Hat, Inc. +# Licensed under the Apache License, Version 2.0, see README for details. + +require 'spec_helper'...
Add a basic spec for the Heat generator Signed-off-by: Tomas Sedovic <2bc6038c3dfca09b2da23c8b6da8ba884dc2dcc2@sedovic.cz>
diff --git a/features/step_definitions/lockfile_steps.rb b/features/step_definitions/lockfile_steps.rb index abc1234..def5678 100644 --- a/features/step_definitions/lockfile_steps.rb +++ b/features/step_definitions/lockfile_steps.rb @@ -6,8 +6,12 @@ delete_path expand('$tmp').to_lockfile_path end -Then 'I get lock...
Rewrite a step to verify a lockfile content
diff --git a/spec/controllers/distributors_controller_spec.rb b/spec/controllers/distributors_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/distributors_controller_spec.rb +++ b/spec/controllers/distributors_controller_spec.rb @@ -4,13 +4,32 @@ describe Spree::DistributorsController do incl...
Add controller spec for deselecting distributors
diff --git a/event_store-client-http.gemspec b/event_store-client-http.gemspec index abc1234..def5678 100644 --- a/event_store-client-http.gemspec +++ b/event_store-client-http.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'event_store-client-http' - s.version = '0.4.0.0'...
Package version is increased from 0.4.0.0 to 0.4.0.1
diff --git a/test/unit/null_store_test.rb b/test/unit/null_store_test.rb index abc1234..def5678 100644 --- a/test/unit/null_store_test.rb +++ b/test/unit/null_store_test.rb @@ -0,0 +1,21 @@+require 'test_helper' + +class NullStoreTest < Minitest::Test + def store; @store ||= AccessToken::NullStore.new; end + + test '...
Add tests for null store.
diff --git a/Library/Formula/gnome-themes-standard.rb b/Library/Formula/gnome-themes-standard.rb index abc1234..def5678 100644 --- a/Library/Formula/gnome-themes-standard.rb +++ b/Library/Formula/gnome-themes-standard.rb @@ -0,0 +1,25 @@+require 'formula' + +class GnomeThemesStandard < Formula + homepage 'http://gnome...
Add standard GNOME themes for gtk+3 and for gtk+ (optionally)
diff --git a/app/controllers/loc_search_controller.rb b/app/controllers/loc_search_controller.rb index abc1234..def5678 100644 --- a/app/controllers/loc_search_controller.rb +++ b/app/controllers/loc_search_controller.rb @@ -1,4 +1,7 @@ class LocSearchController < ApplicationController + before_filter :authenticate_us...
Add a check if user is logged in and has a Librarian role.
diff --git a/app/decorators/kennedy/post_decorator.rb b/app/decorators/kennedy/post_decorator.rb index abc1234..def5678 100644 --- a/app/decorators/kennedy/post_decorator.rb +++ b/app/decorators/kennedy/post_decorator.rb @@ -19,7 +19,7 @@ def categorized_url options={} category = options[:category] || sour...
Remove addionial slash / in article url when no categories
diff --git a/app/presenters/consultation_presenter.rb b/app/presenters/consultation_presenter.rb index abc1234..def5678 100644 --- a/app/presenters/consultation_presenter.rb +++ b/app/presenters/consultation_presenter.rb @@ -18,11 +18,11 @@ end def next_appointment_date - next_appointment.strftime('%F') + ...
Fix certificates download without next appointment
diff --git a/lib/librato/rails/subscribers/controller.rb b/lib/librato/rails/subscribers/controller.rb index abc1234..def5678 100644 --- a/lib/librato/rails/subscribers/controller.rb +++ b/lib/librato/rails/subscribers/controller.rb @@ -30,10 +30,10 @@ end if http_method - http_method....
Fix downcase issue on rails 4
diff --git a/lib/swagger_docs_generator/parser/parser.rb b/lib/swagger_docs_generator/parser/parser.rb index abc1234..def5678 100644 --- a/lib/swagger_docs_generator/parser/parser.rb +++ b/lib/swagger_docs_generator/parser/parser.rb @@ -18,7 +18,7 @@ end def temporary_file - File.join(SwaggerDocsGenerat...
Use name tag for create temporary file
diff --git a/tomato_paste.gemspec b/tomato_paste.gemspec index abc1234..def5678 100644 --- a/tomato_paste.gemspec +++ b/tomato_paste.gemspec @@ -10,13 +10,15 @@ spec.email = ["mariozig@gmail.com"] spec.description = %q{A concentrated version of the Pomodoro technique written in Ruby just for you (and me)...
Update gemspec with dependency and homepage
diff --git a/apache2/definitions/apache_site.rb b/apache2/definitions/apache_site.rb index abc1234..def5678 100644 --- a/apache2/definitions/apache_site.rb +++ b/apache2/definitions/apache_site.rb @@ -24,7 +24,10 @@ execute "a2ensite #{params[:name]}" do command "/usr/sbin/a2ensite #{params[:name]}" n...
Fix needless extra restarts by picking up 000 priority symlinks.
diff --git a/examples/sinatra/config/warble.rb b/examples/sinatra/config/warble.rb index abc1234..def5678 100644 --- a/examples/sinatra/config/warble.rb +++ b/examples/sinatra/config/warble.rb @@ -10,4 +10,5 @@ require 'socket' config.webxml.ENV_OUTPUT = File.expand_path('../../servers', __FILE__) config.webxml...
Make generated war ignore its environment
diff --git a/app/controllers/kuroko2/api/job_instances_controller.rb b/app/controllers/kuroko2/api/job_instances_controller.rb index abc1234..def5678 100644 --- a/app/controllers/kuroko2/api/job_instances_controller.rb +++ b/app/controllers/kuroko2/api/job_instances_controller.rb @@ -1,4 +1,3 @@-require 'api/job_instan...
Stop require resource model and fix namespace
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index abc1234..def5678 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -1,18 +1,17 @@ class HomeController < ApplicationController def index - @users = User.all - clj = JRClj.new -...
Remove JRClj testing code from Home controller.
diff --git a/app/controllers/tail_controller.rb b/app/controllers/tail_controller.rb index abc1234..def5678 100644 --- a/app/controllers/tail_controller.rb +++ b/app/controllers/tail_controller.rb @@ -16,7 +16,7 @@ elsif params[:log] == "retrieve-content" file = File.join([`echo $RSNA_ROOT`.strip,"logs","ret...
Use correct server log location
diff --git a/app/presenters/state_change_presenter.rb b/app/presenters/state_change_presenter.rb index abc1234..def5678 100644 --- a/app/presenters/state_change_presenter.rb +++ b/app/presenters/state_change_presenter.rb @@ -20,7 +20,8 @@ 'authorised' => {"CaseWorker" => "Claim authorised", ...
Add "archive_pending_delete" to state presenter
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index abc1234..def5678 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -20,4 +20,6 @@ config.include ActiveSupport::Testing::TimeHelpers config.include FactoryGirl::Syntax::Methods config.include UserHelpers + + config.after(:each) { Acti...
Clear deliveries after spec runs
diff --git a/applications/NPB/MPI/igor_mpi_intsort.rb b/applications/NPB/MPI/igor_mpi_intsort.rb index abc1234..def5678 100644 --- a/applications/NPB/MPI/igor_mpi_intsort.rb +++ b/applications/NPB/MPI/igor_mpi_intsort.rb @@ -38,7 +38,7 @@ expect :mops_total - $filtered = results{|t| t.select(:id, :mpibfs, ...
Intsort: Fix igor script, add plot script.
diff --git a/config/initializers/sitemap_generator.rb b/config/initializers/sitemap_generator.rb index abc1234..def5678 100644 --- a/config/initializers/sitemap_generator.rb +++ b/config/initializers/sitemap_generator.rb @@ -5,7 +5,7 @@ SitemapGenerator::Sitemap.adapter = SitemapGenerator::WaveAdapter.new SitemapGen...
Disable SM generation of UG's for now
diff --git a/app/policies/application_policy.rb b/app/policies/application_policy.rb index abc1234..def5678 100644 --- a/app/policies/application_policy.rb +++ b/app/policies/application_policy.rb @@ -26,34 +26,36 @@ false end - def logged_in? - !!user - end - - def owner? - logged_in? && user.id ...
Refactor to include policy user predicates into policy scopes
diff --git a/test/lib/ruby-prof/rails/profiles_mock_module.rb b/test/lib/ruby-prof/rails/profiles_mock_module.rb index abc1234..def5678 100644 --- a/test/lib/ruby-prof/rails/profiles_mock_module.rb +++ b/test/lib/ruby-prof/rails/profiles_mock_module.rb @@ -44,9 +44,7 @@ end def mock_request - Open...
Fix for one liner OpenStruct method
diff --git a/lib/versatile_rjs/proxy/framework_dependent.rb b/lib/versatile_rjs/proxy/framework_dependent.rb index abc1234..def5678 100644 --- a/lib/versatile_rjs/proxy/framework_dependent.rb +++ b/lib/versatile_rjs/proxy/framework_dependent.rb @@ -24,7 +24,7 @@ implementation_class_name = [class_dirnames, fr...
Fix to return simply class instance.
diff --git a/spec/support/command_execution.rb b/spec/support/command_execution.rb index abc1234..def5678 100644 --- a/spec/support/command_execution.rb +++ b/spec/support/command_execution.rb @@ -3,18 +3,7 @@ module Spec CommandExecution = Struct.new(:command, :working_directory, :exitstatus, :stdout, :stderr) do ...
Remove stuff making errors harder to figure out
diff --git a/spec/features/likes_spec.rb b/spec/features/likes_spec.rb index abc1234..def5678 100644 --- a/spec/features/likes_spec.rb +++ b/spec/features/likes_spec.rb @@ -0,0 +1,31 @@+require 'rails_helper' +require 'spec_helper' + +RSpec.feature "Likes", type: :feature do + describe "With a single like" do + let!(:...
Add capybara tests for liking and dislike
diff --git a/spec/toy/connection_spec.rb b/spec/toy/connection_spec.rb index abc1234..def5678 100644 --- a/spec/toy/connection_spec.rb +++ b/spec/toy/connection_spec.rb @@ -7,45 +7,41 @@ Toy.store.should == RedisStore end - it "should use the default store, if present" do - remove_constants("Challe...
Use a simple dynamic class instead of constant stuff to test default store.
diff --git a/sqlserver_adapter.rb b/sqlserver_adapter.rb index abc1234..def5678 100644 --- a/sqlserver_adapter.rb +++ b/sqlserver_adapter.rb @@ -1,6 +1,5 @@ require DataMapper.root / 'lib' / 'dm-core' / 'adapters' / 'data_objects_adapter' -gem 'do_sqlserver', '~>0.0.1' require 'do_sqlserver' module DataMapper
Remove usage of RubyGems in newly added SQLServer adapter Signed-off-by: Alex Coles <60c6d277a8bd81de7fdde19201bf9c58a3df08f4@alexcolesportfolio.com>
diff --git a/yaks/lib/yaks/html5_forms.rb b/yaks/lib/yaks/html5_forms.rb index abc1234..def5678 100644 --- a/yaks/lib/yaks/html5_forms.rb +++ b/yaks/lib/yaks/html5_forms.rb @@ -50,7 +50,8 @@ step: nil, list: nil, placeholder: nil, - checked: false + checked: false, + disabled: false ...
Add disabled to list of field attributes
diff --git a/lib/airbrush/processors/rmagick.rb b/lib/airbrush/processors/rmagick.rb index abc1234..def5678 100644 --- a/lib/airbrush/processors/rmagick.rb +++ b/lib/airbrush/processors/rmagick.rb @@ -4,7 +4,7 @@ module Processors class Rmagick < Processor def resize(image, width, height) - img = M...
Update use of RMagick API to read the image data from a blob since the content comes via arguments and not a local file git-svn-id: 6d9b9a8f21f96071dc3ac7ff320f08f2a342ec80@33 daa9635f-4444-0410-9b3d-b8c75a019348