diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/celluloid/proxy/abstract.rb b/lib/celluloid/proxy/abstract.rb index abc1234..def5678 100644 --- a/lib/celluloid/proxy/abstract.rb +++ b/lib/celluloid/proxy/abstract.rb @@ -1,9 +1,7 @@ module Celluloid::Proxy - CLASS_METHOD = ::Kernel.instance_method(:class) - # Looks up the actual class of instan...
Use the metaclass to get to the superclass of BasicObject.
diff --git a/config/initializers/gds_sso.rb b/config/initializers/gds_sso.rb index abc1234..def5678 100644 --- a/config/initializers/gds_sso.rb +++ b/config/initializers/gds_sso.rb @@ -1,8 +1,3 @@ GDS::SSO.config do |config| - config.user_model = "User" - config.oauth_id = ENV.fetch("OAUTH_ID", "oauth_id") - c...
Remove redundant GDS SSO initializer This was made redundant in [1]. [1]: https://github.com/alphagov/gds-sso/pull/241
diff --git a/examples/design_by_contract.rb b/examples/design_by_contract.rb index abc1234..def5678 100644 --- a/examples/design_by_contract.rb +++ b/examples/design_by_contract.rb @@ -0,0 +1,54 @@+# Design by contract example + +class A + def initialize + @transactions = [] + @total = 0 + end + + def buy pric...
Add design by contract example
diff --git a/models/firm.rb b/models/firm.rb index abc1234..def5678 100644 --- a/models/firm.rb +++ b/models/firm.rb @@ -22,7 +22,9 @@ def self.byname(name) ret = [] - all_data = Firm.all(:name.ilike => name) + modified_name = name.sub(/'|"/, '%') + + all_data = Firm.all(:name.ilike => modifie...
Replace quotes with % for searching by name
diff --git a/lib/gds_api/json_utils.rb b/lib/gds_api/json_utils.rb index abc1234..def5678 100644 --- a/lib/gds_api/json_utils.rb +++ b/lib/gds_api/json_utils.rb @@ -2,6 +2,7 @@ require 'net/http' require 'ostruct' require_relative 'core-ext/openstruct' +require_relative 'version' module GdsApi::JsonUtils USER_A...
Make sure the version constant is available before we use it
diff --git a/KZAsserts.podspec b/KZAsserts.podspec index abc1234..def5678 100644 --- a/KZAsserts.podspec +++ b/KZAsserts.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "KZAsserts" - s.version = "1.0" + s.version = "1.0.1" s.summary = "KZAsserts is set of expanded as...
Add tvOS deployment target and bump version to 1.0.1
diff --git a/lib/rb-inotify/version.rb b/lib/rb-inotify/version.rb index abc1234..def5678 100644 --- a/lib/rb-inotify/version.rb +++ b/lib/rb-inotify/version.rb @@ -20,5 +20,5 @@ # THE SOFTWARE. module INotify - VERSION = '0.9.9' + VERSION = '0.10.0' end
Include development dependencies when building on travis.
diff --git a/lib/releasecop/checker.rb b/lib/releasecop/checker.rb index abc1234..def5678 100644 --- a/lib/releasecop/checker.rb +++ b/lib/releasecop/checker.rb @@ -1,14 +1,15 @@ module Releasecop class Checker - attr_accessor :name, :envs + attr_accessor :name, :envs, :working_dir - def initialize(name, ...
Allow working directory to be overridden
diff --git a/Casks/vistrails.rb b/Casks/vistrails.rb index abc1234..def5678 100644 --- a/Casks/vistrails.rb +++ b/Casks/vistrails.rb @@ -0,0 +1,7 @@+class Vistrails < Cask + url 'http://downloads.sourceforge.net/project/vistrails/vistrails/v2.0.3/vistrails-mac-10.6-intel-2.0.3-a6ad79347667.dmg' + homepage 'http://www...
Add cask for VisTrails 2.0.3. Add cask for VisTrails, an open-source scientific workflow and provenance management system that supports data exploration and visualization.
diff --git a/config/boot.rb b/config/boot.rb index abc1234..def5678 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -4,4 +4,4 @@ require "bundler/setup" # Set up gems listed in the Gemfile. # make the ExecJs use NodeJs - ENV['EXECJS_RUNTIME'] = 'Node' +# ENV['EXECJS_RUNTIME'] = 'Node'
Stop using node for the execjs runtime. Try switching back to therubyrhino.
diff --git a/Casks/font-lato.rb b/Casks/font-lato.rb index abc1234..def5678 100644 --- a/Casks/font-lato.rb +++ b/Casks/font-lato.rb @@ -1,16 +1,24 @@ class FontLato < Cask - url 'http://www.latofonts.com/download/LatoOFL.zip' + url 'http://www.latofonts.com/download/Lato2OFL.zip' homepage 'http://www.latofonts.co...
Update Lato to version 2
diff --git a/lib/asendia/product.rb b/lib/asendia/product.rb index abc1234..def5678 100644 --- a/lib/asendia/product.rb +++ b/lib/asendia/product.rb @@ -12,10 +12,13 @@ attribute :reserved_stock, Integer def self.fetch(client, product_ids) - client.request( + response = client.request( :ge...
Work around issue with API/Savon
diff --git a/core/spec/models/zone_spec.rb b/core/spec/models/zone_spec.rb index abc1234..def5678 100644 --- a/core/spec/models/zone_spec.rb +++ b/core/spec/models/zone_spec.rb @@ -1,6 +1,6 @@ require 'spec_helper' -describe Zone do +describe Spree::Zone do let(:zone) { Factory :zone }
Fix references in Zone model spec
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index abc1234..def5678 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,3 +1,3 @@ # Be sure to restart your server when you modify this file. -CartoDB::Application.config.session_...
Use root domain as session cookie domain
diff --git a/lib/cancan/matchers.rb b/lib/cancan/matchers.rb index abc1234..def5678 100644 --- a/lib/cancan/matchers.rb +++ b/lib/cancan/matchers.rb @@ -28,6 +28,6 @@ end description do - "should be able to #{args.map(&:to_s).join(' ')}" + "expected to be able to #{args.map(&:to_s).join(' ')}" end end
Update wording for description for new style
diff --git a/simple_backend/db/seeds.rb b/simple_backend/db/seeds.rb index abc1234..def5678 100644 --- a/simple_backend/db/seeds.rb +++ b/simple_backend/db/seeds.rb @@ -3,3 +3,7 @@ password = '123' users = [] recipes = [] + +10.times do + users << User.create(name: Faker::Name.first_name, password: password) +end
Create 10 users using faker and set password
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,7 @@ Rails.application.routes.draw do - mount_devise_token_auth_for 'User', at: 'auth' + mount_devise_token_auth_for 'User', at: 'auth', controllers: { + registrations: 'devise/reg...
Set custom controller for registrations
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -9,7 +9,7 @@ end resources :competitions do - #resources :business_sizes + resources :business_sizes resources :competitions_teams do get :delete, :on => :collection ...
Fix admin business size form
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -22,7 +22,7 @@ end resources :users, path: :members do - resource :account_activation, path: :activation, as: :activation + resource :account_activation, except: :show, path: :act...
Remove route for GET /members/:user_id/activation
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,8 +1,8 @@ Rails.application.routes.draw do root to: 'sites#index' - post 'omniauth/callback' => 'omniauth#callback', as: :omniauth - post '/auth/:provider/callback' => 'omniau...
Revert "Try fixing route after omniauth update" This reverts commit ec79b90d20aa9fbd4a43e2c4eeb757eb748e91c0.
diff --git a/spec/requests/tags_spec.rb b/spec/requests/tags_spec.rb index abc1234..def5678 100644 --- a/spec/requests/tags_spec.rb +++ b/spec/requests/tags_spec.rb @@ -0,0 +1,17 @@+require "spec_helper" + +describe "Tags" do + let(:tag) { FactoryGirl.create(:tag) } + let!(:thread) { FactoryGirl.create(:message_threa...
Test that the correct results show up on the tags page.
diff --git a/examples/broadcast/in-ruby.rb b/examples/broadcast/in-ruby.rb index abc1234..def5678 100644 --- a/examples/broadcast/in-ruby.rb +++ b/examples/broadcast/in-ruby.rb @@ -0,0 +1,18 @@+#!/usr/bin/env ruby +require 'socket' +require 'ipaddr' + +MULTICAST_ADDR = "224.0.0.3" +PORT = 47002 + +ip = IPAddr.new(MUL...
Add broadcast receiver example, in Ruby.
diff --git a/init.rb b/init.rb index abc1234..def5678 100644 --- a/init.rb +++ b/init.rb @@ -20,6 +20,4 @@ menu :project_menu, :deploys, { :controller => 'deploys', :action => 'index' }, :caption => 'Deploys', :after=>:activity, :param=>:project_id - menu :project_menu, :deployer, { :controller => 'deploys', :ac...
Remove new issue from project menu
diff --git a/init.rb b/init.rb index abc1234..def5678 100644 --- a/init.rb +++ b/init.rb @@ -2,7 +2,7 @@ Redmine::Plugin.register :redmine_pureftpd_user do name 'Redmine Pureftpd User plugin' - author 'Author name' - description 'This is a plugin for Redmine' - version '0.0.1' + author 'Bernd Ahlers' + descri...
Add a description, my name and a version number.
diff --git a/lib/dugway/template.rb b/lib/dugway/template.rb index abc1234..def5678 100644 --- a/lib/dugway/template.rb +++ b/lib/dugway/template.rb @@ -29,7 +29,8 @@ def render(request, variables={}) if html? liquifier = Liquifier.new(request) - rendered_content = liquifier.render(content, v...
Fix issue loading content for custom pages
diff --git a/lib/wright/resource/link.rb b/lib/wright/resource/link.rb index abc1234..def5678 100644 --- a/lib/wright/resource/link.rb +++ b/lib/wright/resource/link.rb @@ -10,10 +10,10 @@ attr_accessor :source attr_reader :target - alias :target :name - alias :from :target - alias :to :source - alia...
Use alias_method instead of alias
diff --git a/lib/fallback_router.rb b/lib/fallback_router.rb index abc1234..def5678 100644 --- a/lib/fallback_router.rb +++ b/lib/fallback_router.rb @@ -4,3 +4,25 @@ class << self end end + +class ActionDispatch::Routing::Mapper + + # Synthesizes HTTP HEAD routes, by extending any GET routes in the route_set to ...
Add synthesize_head_routes helper to workaround HEAD routing bug in some Rails 4.x releases
diff --git a/lib/scratch/actions.rb b/lib/scratch/actions.rb index abc1234..def5678 100644 --- a/lib/scratch/actions.rb +++ b/lib/scratch/actions.rb @@ -7,6 +7,23 @@ def self.copy_templates(dest) + end + + def self.copy_file(src, dest) + FileUtils.cp(src, dest) + true + rescue Errno::ENOENT =...
Copy function that handles most known errors, it is wrapper over FileUtils.cp
diff --git a/lib/spree_omnikassa.rb b/lib/spree_omnikassa.rb index abc1234..def5678 100644 --- a/lib/spree_omnikassa.rb +++ b/lib/spree_omnikassa.rb @@ -12,7 +12,7 @@ end def self.activate - Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/*_decorator*.rb")) do |c| + Dir.glob(File.join(File...
Load decorators from correct dir, now that engine code was moved.
diff --git a/lib/tasks/test_js.rake b/lib/tasks/test_js.rake index abc1234..def5678 100644 --- a/lib/tasks/test_js.rake +++ b/lib/tasks/test_js.rake @@ -1 +1,7 @@-Rake::Task[:test].enhance { Rake::Task["konacha:run"].invoke } +Rake::Task[:test].enhance { Rake::Task['konacha:run'].invoke } + +namespace :test do + desc ...
Add test:js task aliasing konacha:serve
diff --git a/spec/acceptance/class_spec.rb b/spec/acceptance/class_spec.rb index abc1234..def5678 100644 --- a/spec/acceptance/class_spec.rb +++ b/spec/acceptance/class_spec.rb @@ -15,19 +15,9 @@ end end - context 'sources_ensure => present:' do + context 'sources_manage => present:' do it 'runs success...
Add acceptance test to check for package install and uninstall.
diff --git a/spec/factories/navigations.rb b/spec/factories/navigations.rb index abc1234..def5678 100644 --- a/spec/factories/navigations.rb +++ b/spec/factories/navigations.rb @@ -1,6 +1,6 @@ FactoryGirl.define do factory :navigation do - sequence(:name) { |n| "foo-#{n}" } + sequence(:identifier) { |n| "foo-#...
Rename name to identifier in the navigation factory.
diff --git a/spec/support/active_record.rb b/spec/support/active_record.rb index abc1234..def5678 100644 --- a/spec/support/active_record.rb +++ b/spec/support/active_record.rb @@ -11,13 +11,14 @@ ActiveRecord::Base.establish_connection(:default) ActiveRecord::Base.connection.execute <<SQL - --Create the dummy ...
Fix creating the destinations table.
diff --git a/Casks/handbrakecli-nightly.rb b/Casks/handbrakecli-nightly.rb index abc1234..def5678 100644 --- a/Casks/handbrakecli-nightly.rb +++ b/Casks/handbrakecli-nightly.rb @@ -1,6 +1,6 @@ cask :v1 => 'handbrakecli-nightly' do - version '6945svn' - sha256 '303289b4ed14f9053d1ccaf01bd440d33418a8303cdf9c69e0116d45c...
Update HandbrakeCLI Nightly to v6985svn HandBrakeCLI Nightly v6985svn built 2015-03-14.
diff --git a/spec/models/question_spec.rb b/spec/models/question_spec.rb index abc1234..def5678 100644 --- a/spec/models/question_spec.rb +++ b/spec/models/question_spec.rb @@ -4,5 +4,6 @@ "add some examples to (or delete) #{__FILE__}" describe 'polymorphism works for the questions model' do + end end
Add end to block in Question spec
diff --git a/Casks/adobe-air.rb b/Casks/adobe-air.rb index abc1234..def5678 100644 --- a/Casks/adobe-air.rb +++ b/Casks/adobe-air.rb @@ -1,8 +1,8 @@ class AdobeAir < Cask - url 'http://airdownload.adobe.com/air/mac/download/3.9/AdobeAIR.dmg' + url 'http://airdownload.adobe.com/air/mac/download/4.0/AdobeAIR.dmg' ho...
Update Adobe Air to 4.0
diff --git a/.github/workflows/scripts/tag_info.rb b/.github/workflows/scripts/tag_info.rb index abc1234..def5678 100644 --- a/.github/workflows/scripts/tag_info.rb +++ b/.github/workflows/scripts/tag_info.rb @@ -10,11 +10,8 @@ --------------------------------------------------------- #{label.center(64)} ------...
Remove printed blank lines from tag details
diff --git a/api.rb b/api.rb index abc1234..def5678 100644 --- a/api.rb +++ b/api.rb @@ -18,7 +18,7 @@ end entries = [] - regex = /FORECAST VALID (\d+\/\w+) (\d+.\d+N)\s+(\d+.\d+W)\s+MAX WIND\s+(\d+ KT).+GUSTS\s+(\d+ KT)/ + regex = /FORECAST VALID (\d+\/\w+) (\d+.\d+N)\s+(\d+.\d+W).*\s+MAX WIND\s+(\d+ KT).+GUS...
Update forecast regex to support INLAND labels Parser was breaking when "...INLAND" appear at the end of the first line
diff --git a/Casks/spectacle.rb b/Casks/spectacle.rb index abc1234..def5678 100644 --- a/Casks/spectacle.rb +++ b/Casks/spectacle.rb @@ -1,10 +1,16 @@ class Spectacle < Cask - version '0.8.8' - sha256 '7c7386e526cbabedb1e16f2e3366c7842712f590985fe9d4f57ff9c0a7854bcf' + if MacOS.version < :mavericks + version '0.8...
Add Spectacle 0.8.6 for older (<Mavericks) Macs. Closes #7114.
diff --git a/Casks/tagspaces.rb b/Casks/tagspaces.rb index abc1234..def5678 100644 --- a/Casks/tagspaces.rb +++ b/Casks/tagspaces.rb @@ -2,6 +2,7 @@ version '2.3.0' sha256 '1b4823fc7ddae593df58c65f8269563569e57b2edc043861fc574c66e43d9c35' + # github.com/tagspaces/tagspaces was verified as official when first in...
Fix `url` stanza comment for TagSpaces.
diff --git a/core/db/migrate/20150806190833_add_id_and_timestamp_to_promotion_rule_user.rb b/core/db/migrate/20150806190833_add_id_and_timestamp_to_promotion_rule_user.rb index abc1234..def5678 100644 --- a/core/db/migrate/20150806190833_add_id_and_timestamp_to_promotion_rule_user.rb +++ b/core/db/migrate/2015080619083...
Add id and timestamp to spree_promotion_rule_user
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -1,11 +1,27 @@ require "sinatra/base" -require "sinatra/reloader" if development? +require "sinatra/reloader" require "twitter" class Star < Sinatra::Base + configure do + @@config = YAML.load_file('config.yml') + + Twi...
Add Twitter configuration. Load config values from yaml file.
diff --git a/app.rb b/app.rb index abc1234..def5678 100644 --- a/app.rb +++ b/app.rb @@ -5,6 +5,17 @@ DataMapper.setup(:default, "sqlite://#{File.expand_path(File.dirname(__FILE__))}/db/tdrb.db") +class Task + include DataMapper::Resource + + property :id, Serial + property :body, Text...
Create Task table and call ::auto_migrate
diff --git a/db/migrate/20210729055206_change_id_columns_types_for_spree_volume_prices.rb b/db/migrate/20210729055206_change_id_columns_types_for_spree_volume_prices.rb index abc1234..def5678 100644 --- a/db/migrate/20210729055206_change_id_columns_types_for_spree_volume_prices.rb +++ b/db/migrate/20210729055206_change...
Change integer id columns into bigint
diff --git a/cookbooks/pybossa/recipes/default.rb b/cookbooks/pybossa/recipes/default.rb index abc1234..def5678 100644 --- a/cookbooks/pybossa/recipes/default.rb +++ b/cookbooks/pybossa/recipes/default.rb @@ -11,7 +11,7 @@ end execute "install pybossa requirements" do - command ". vagrant_env/bin/activate; pip in...
Use --pre for pip 1.4
diff --git a/euler5.rb b/euler5.rb index abc1234..def5678 100644 --- a/euler5.rb +++ b/euler5.rb @@ -0,0 +1,19 @@+=begin + +2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. + +What is the smallest positive number that is evenly divisible by all of the numbers fr...
Add solution for problem 5
diff --git a/db/data_migration/20170818104227_convert_unknown_news_articles_to_valid_news_articles.rb b/db/data_migration/20170818104227_convert_unknown_news_articles_to_valid_news_articles.rb index abc1234..def5678 100644 --- a/db/data_migration/20170818104227_convert_unknown_news_articles_to_valid_news_articles.rb ++...
Add data migration to convert unknown news articles The NewsArticleType Unknown is a legacy concept. These are NewsArticles that were never categorised into one of the other NewsArticleTypes. These are surfaced on the frontend via the [Announcements page](www.gov.uk/government/announcements) and do get shown when filt...
diff --git a/tasks/buildr_artifact_patch.rake b/tasks/buildr_artifact_patch.rake index abc1234..def5678 100644 --- a/tasks/buildr_artifact_patch.rake +++ b/tasks/buildr_artifact_patch.rake @@ -0,0 +1,46 @@+raise 'Patch already integrated into buildr code' unless Buildr::VERSION.to_s == '1.5.6' + +class URI::HTTP + pri...
Apply patch to work around Buildr password encoding issue
diff --git a/test/lib/test_core_extensions.rb b/test/lib/test_core_extensions.rb index abc1234..def5678 100644 --- a/test/lib/test_core_extensions.rb +++ b/test/lib/test_core_extensions.rb @@ -9,6 +9,7 @@ assert_equal "FALSE".to_b, false assert_equal " true ".to_b, true assert_equal " false ".to_b, fa...
Update string core ext to_b test so string with other content that doesn't match even if it contains true/false should return the same value.
diff --git a/Formula/tmptoml.rb b/Formula/tmptoml.rb index abc1234..def5678 100644 --- a/Formula/tmptoml.rb +++ b/Formula/tmptoml.rb @@ -1,4 +1,4 @@-class TmpToml < Formula +class Tmptoml < Formula desc "Command-line utility to render Tera templates using a toml config file as the variable source." homepage "http...
Fix class name for Tmptoml in Formula ps-id: BA5BFDF4-45E8-4261-8CF0-4261970251C3
diff --git a/lib/license_finder/package_managers/pipenv.rb b/lib/license_finder/package_managers/pipenv.rb index abc1234..def5678 100644 --- a/lib/license_finder/package_managers/pipenv.rb +++ b/lib/license_finder/package_managers/pipenv.rb @@ -11,16 +11,18 @@ end def current_packages - packages = [] + ...
Use a Hash for O(1) lookup
diff --git a/config/initializers/multiple_token_strategy.rb b/config/initializers/multiple_token_strategy.rb index abc1234..def5678 100644 --- a/config/initializers/multiple_token_strategy.rb +++ b/config/initializers/multiple_token_strategy.rb @@ -10,7 +10,8 @@ user_token = AuthToken.find_by_token(params[:auth...
Fix problem with authentication strategy
diff --git a/app/models/api/scaled_area.rb b/app/models/api/scaled_area.rb index abc1234..def5678 100644 --- a/app/models/api/scaled_area.rb +++ b/app/models/api/scaled_area.rb @@ -3,9 +3,7 @@ # Area features which are disabled in the ETM front-end for all scaled # scenarios. - DISABLED_FEATURES = [ - :has_o...
Enable storage features in testing grounds If the full-size region sets has_electricity_storage=false, storage-related pages will still not be shown. However, if the region permits storage, it will no longer be forcibly turned off in scaled-down scenarios. Closes #1880
diff --git a/cruise_config.rb b/cruise_config.rb index abc1234..def5678 100644 --- a/cruise_config.rb +++ b/cruise_config.rb @@ -1,5 +1,5 @@ require 'fileutils' Project.configure do |project| - project.build_command = 'source /usr/local/rvm/scripts/rvm && rvm use ruby-1.8.7-p249@diaspora && gem update --system && r...
Remove Gemfile.lock before doing rake cruise
diff --git a/spec/controllers/chat_messages_controller_spec.rb b/spec/controllers/chat_messages_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/chat_messages_controller_spec.rb +++ b/spec/controllers/chat_messages_controller_spec.rb @@ -2,39 +2,51 @@ require "rspec/mocks" describe ChatMessage...
Refactor ChatMessagesController spec, fix errors in spec
diff --git a/spec/unit/puppet/provider/cs_property_crm_spec.rb b/spec/unit/puppet/provider/cs_property_crm_spec.rb index abc1234..def5678 100644 --- a/spec/unit/puppet/provider/cs_property_crm_spec.rb +++ b/spec/unit/puppet/provider/cs_property_crm_spec.rb @@ -0,0 +1,51 @@+require 'spec_helper' + +describe Puppet::Type...
Implement basic tests for cs_property provider
diff --git a/lib/sidekiq-unique-jobs/middleware/client/connectors/testing_inline.rb b/lib/sidekiq-unique-jobs/middleware/client/connectors/testing_inline.rb index abc1234..def5678 100644 --- a/lib/sidekiq-unique-jobs/middleware/client/connectors/testing_inline.rb +++ b/lib/sidekiq-unique-jobs/middleware/client/connecto...
Fix dependency error in inline testing connector
diff --git a/db/migrate/20161228101445_sourceable_status.rb b/db/migrate/20161228101445_sourceable_status.rb index abc1234..def5678 100644 --- a/db/migrate/20161228101445_sourceable_status.rb +++ b/db/migrate/20161228101445_sourceable_status.rb @@ -0,0 +1,9 @@+class SourceableStatus < ActiveRecord::Migration[5.0] + de...
Add - Add Sourceable status
diff --git a/db-purge.gemspec b/db-purge.gemspec index abc1234..def5678 100644 --- a/db-purge.gemspec +++ b/db-purge.gemspec @@ -11,7 +11,7 @@ Clean the database prior to tests with db-purge. TEXT spec.files = Dir['{lib}/**/*', '*.gemspec'] + - ['Rakefile'] + ...
Include other text files in the gem
diff --git a/faraday-detailed_logger.gemspec b/faraday-detailed_logger.gemspec index abc1234..def5678 100644 --- a/faraday-detailed_logger.gemspec +++ b/faraday-detailed_logger.gemspec @@ -25,7 +25,7 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.ad...
Set a minimum version constraint on Faraday.
diff --git a/spec/functional/fc009_spec.rb b/spec/functional/fc009_spec.rb index abc1234..def5678 100644 --- a/spec/functional/fc009_spec.rb +++ b/spec/functional/fc009_spec.rb @@ -11,8 +11,8 @@ it { is_expected.not_to violate_rule } end - context "on chef 13.9.1 with a cookbook that uses ifconfig attributes ...
Update spec for Chef 13.11.3 Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/spec/index_controller_spec.rb b/spec/index_controller_spec.rb index abc1234..def5678 100644 --- a/spec/index_controller_spec.rb +++ b/spec/index_controller_spec.rb @@ -0,0 +1,15 @@+require 'spec_helper' + +describe 'index controller' do + describe "GET '/' " do + it 'loads the homepage' do + get('...
Add simple tests for index controller
diff --git a/spec/models/character_spec.rb b/spec/models/character_spec.rb index abc1234..def5678 100644 --- a/spec/models/character_spec.rb +++ b/spec/models/character_spec.rb @@ -6,4 +6,25 @@ it_behaves_like 'content with privacy' it_behaves_like 'content with an is_public scope' it { is_expected.to validate_...
Add deletion test for sibling relation
diff --git a/spec/models/following_spec.rb b/spec/models/following_spec.rb index abc1234..def5678 100644 --- a/spec/models/following_spec.rb +++ b/spec/models/following_spec.rb @@ -1,5 +1,48 @@ require 'spec_helper' describe Following do - pending "add some examples to (or delete) #{__FILE__}" + it { should belong...
Add basic specs for Following
diff --git a/spec/tic_tac_toe/rack_spec.rb b/spec/tic_tac_toe/rack_spec.rb index abc1234..def5678 100644 --- a/spec/tic_tac_toe/rack_spec.rb +++ b/spec/tic_tac_toe/rack_spec.rb @@ -1,5 +1,14 @@ require 'spec_helper' +require 'rack' +require 'tic_tac_toe/rack_shell' describe TicTacToe::RackShell do + it 'can recei...
Add a basic MockRequest test for RackShell
diff --git a/doc/ex/splice.rb b/doc/ex/splice.rb index abc1234..def5678 100644 --- a/doc/ex/splice.rb +++ b/doc/ex/splice.rb @@ -5,9 +5,6 @@ # Demonstrate the splice method. img = Image.read('images/Flower_Hat.jpg').first - -geom = Geometry.new(20,20, img.columns/2, img.rows/2) - -spliced_img = img.splice(geom, 'red...
Update to use new arg list
diff --git a/lib/mongoid/fields/mappings.rb b/lib/mongoid/fields/mappings.rb index abc1234..def5678 100644 --- a/lib/mongoid/fields/mappings.rb +++ b/lib/mongoid/fields/mappings.rb @@ -9,8 +9,6 @@ # definable field in Mongoid. module Mappings extend self - - MODULE = Mongoid::Fields::Internal ...
Use the actual constant since we don't need it's string representation
diff --git a/lib/pycall/pyobject_wrapper.rb b/lib/pycall/pyobject_wrapper.rb index abc1234..def5678 100644 --- a/lib/pycall/pyobject_wrapper.rb +++ b/lib/pycall/pyobject_wrapper.rb @@ -1,7 +1,8 @@ module PyCall module PyObjectWrapper - def initialize(pyobj, pytype) + def initialize(pyobj, pytype=nil) ch...
Make pytype ignorable in PyObjectWrapper
diff --git a/lib/extras/simple_form_extensions.rb b/lib/extras/simple_form_extensions.rb index abc1234..def5678 100644 --- a/lib/extras/simple_form_extensions.rb +++ b/lib/extras/simple_form_extensions.rb @@ -13,13 +13,19 @@ args << options # rubocop:disable AssignmentInCondition if cancel = options.delet...
Fix submit button alignment in all cases
diff --git a/lib/tumblargh/renderer/base.rb b/lib/tumblargh/renderer/base.rb index abc1234..def5678 100644 --- a/lib/tumblargh/renderer/base.rb +++ b/lib/tumblargh/renderer/base.rb @@ -36,8 +36,12 @@ real_post end - def escape(str) + def escape_html(str) CGI.escapeHTML(str) + en...
Add an escape_url helper, rename existing escape to escape_html
diff --git a/lib/verifier/expressions/if.rb b/lib/verifier/expressions/if.rb index abc1234..def5678 100644 --- a/lib/verifier/expressions/if.rb +++ b/lib/verifier/expressions/if.rb @@ -7,6 +7,14 @@ class IfBranch attr_reader :condition, :body + + def self.if(condition, body) + IfBranch.new(condition, b...
Add nice constructors to 'If' expression
diff --git a/lib/kindle/annotator/models/books.rb b/lib/kindle/annotator/models/books.rb index abc1234..def5678 100644 --- a/lib/kindle/annotator/models/books.rb +++ b/lib/kindle/annotator/models/books.rb @@ -30,7 +30,7 @@ private def books_collection - @collection.map { |r| Book.new(r) } + ...
Change to use `record` instead of `r`
diff --git a/lib/fog/core/deprecated/connection.rb b/lib/fog/core/deprecated/connection.rb index abc1234..def5678 100644 --- a/lib/fog/core/deprecated/connection.rb +++ b/lib/fog/core/deprecated/connection.rb @@ -14,9 +14,9 @@ class Connection < Fog::XML::Connection def request(params, &block) if params.k...
Fix typo: Fog::Connection is deprecated, not Fog::XML::Connection. Commit 0e1daf3d did a mass rename and accidentally renamed the intended deprecated method.
diff --git a/recipes/client.rb b/recipes/client.rb index abc1234..def5678 100644 --- a/recipes/client.rb +++ b/recipes/client.rb @@ -20,7 +20,7 @@ # Installs InfluxDB client libraries [:cli, :ruby].each do |flavor| - next unless node[:influxdb][:client][flavor][:enable] + next unless (node[:influxdb][:client][flav...
Handle if a flavor isn't set in attributes
diff --git a/resources/preference.rb b/resources/preference.rb index abc1234..def5678 100644 --- a/resources/preference.rb +++ b/resources/preference.rb @@ -29,4 +29,4 @@ attribute :package_name, :kind_of => String, :name_attribute => true attribute :glob, :kind_of => String attribute :pin, :kind_of => String -attrib...
Add type integer for pin_priority
diff --git a/Casks/julia.rb b/Casks/julia.rb index abc1234..def5678 100644 --- a/Casks/julia.rb +++ b/Casks/julia.rb @@ -1,6 +1,6 @@ cask 'julia' do - version '0.4.2' - sha256 '9ca3756d43cc10d950fafa6e93dd7f4c6ebeade5edb5307cc1e3217b04f5bbe1' + version '0.4.3' + sha256 '1d9010af32a2bb6cf58b20d4fb21165edd8d15399dd4f...
Update to new version of Julia Updating version number and sha256 to Julia 0.4.3
diff --git a/Casks/tiled.rb b/Casks/tiled.rb index abc1234..def5678 100644 --- a/Casks/tiled.rb +++ b/Casks/tiled.rb @@ -0,0 +1,7 @@+class Tiled < Cask + url 'http://downloads.sourceforge.net/project/tiled/tiled-qt/0.9.1/tiled-qt-0.9.1.dmg' + homepage 'http://www.mapeditor.org/' + version '0.9.1' + sha1 'f7f30ec876...
Add a cask for Tiled.app
diff --git a/docman.gemspec b/docman.gemspec index abc1234..def5678 100644 --- a/docman.gemspec +++ b/docman.gemspec @@ -29,4 +29,5 @@ spec.add_dependency 'diffy' spec.add_dependency 'io-console' spec.add_dependency 'json' + spec.add_dependency 'etc' end
Add etc gem to work with ruby 2.5+.
diff --git a/lib/veewee/provider/vmfusion/box/export_ova.rb b/lib/veewee/provider/vmfusion/box/export_ova.rb index abc1234..def5678 100644 --- a/lib/veewee/provider/vmfusion/box/export_ova.rb +++ b/lib/veewee/provider/vmfusion/box/export_ova.rb @@ -41,7 +41,7 @@ # before exporting the system needs to be shut ...
Correct ovftool path for Fusion 5
diff --git a/test/unit/iterator_test.rb b/test/unit/iterator_test.rb index abc1234..def5678 100644 --- a/test/unit/iterator_test.rb +++ b/test/unit/iterator_test.rb @@ -18,4 +18,12 @@ iterator.map(&:name).must_equal ['testname'] iterator.map(&:name).must_equal ['testname'] end + + it 'allows breaking off t...
Add test to demonstrate breaking of the loop works
diff --git a/lib/discordrb/events/await.rb b/lib/discordrb/events/await.rb index abc1234..def5678 100644 --- a/lib/discordrb/events/await.rb +++ b/lib/discordrb/events/await.rb @@ -17,7 +17,7 @@ class AwaitEventHandler < EventHandler def matches?(event) # Check for the proper event type - return fals...
Change the event check type for the AwaitEventHandler
diff --git a/lib/foodcritic/rules/fc070.rb b/lib/foodcritic/rules/fc070.rb index abc1234..def5678 100644 --- a/lib/foodcritic/rules/fc070.rb +++ b/lib/foodcritic/rules/fc070.rb @@ -0,0 +1,63 @@+rule "FC070", "Ensure supports metadata defines valid platforms" do + tags %w{metadata} + metadata do |ast, filename| + #...
Add FC070 to detect invalid platform supports in metadata Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/lib/fulcrum/media_resource.rb b/lib/fulcrum/media_resource.rb index abc1234..def5678 100644 --- a/lib/fulcrum/media_resource.rb +++ b/lib/fulcrum/media_resource.rb @@ -11,8 +11,8 @@ 'default_content_type must be implemented in derived classes' end - def attributes_for_upload(file, id = ne...
Use the default a little later.
diff --git a/lib/net/socket/socket-hack.rb b/lib/net/socket/socket-hack.rb index abc1234..def5678 100644 --- a/lib/net/socket/socket-hack.rb +++ b/lib/net/socket/socket-hack.rb @@ -1,7 +1,10 @@-require 'socket' +require 'net/http' +require 'net/ftp' -module Net::Socket - ::Socket.constants.each do |name| - const_...
Use a safer method of fixing Net::HTTP and Net::FTP, as suggested by @wilkie.
diff --git a/lib/rundock/operation/task.rb b/lib/rundock/operation/task.rb index abc1234..def5678 100644 --- a/lib/rundock/operation/task.rb +++ b/lib/rundock/operation/task.rb @@ -4,7 +4,7 @@ def run(backend, attributes = {}) @instruction.each do |i| unless attributes[:task].key?(i) - ...
Fix delete duplicate log output label
diff --git a/lib/vines/web/command/init.rb b/lib/vines/web/command/init.rb index abc1234..def5678 100644 --- a/lib/vines/web/command/init.rb +++ b/lib/vines/web/command/init.rb @@ -4,14 +4,14 @@ class Init def run(opts) raise 'vines-web init <domain>' unless opts[:args].size == 1 - ra...
Fix vines gem install check.
diff --git a/spec/factories/locations.rb b/spec/factories/locations.rb index abc1234..def5678 100644 --- a/spec/factories/locations.rb +++ b/spec/factories/locations.rb @@ -10,6 +10,6 @@ FactoryBot.define do factory :location do - name { Faker::Address.city } + name { Faker::Address.unique.city } end end...
Fix flakey test related with non unique location generation Tests like the following: https://github.com/ministryofjustice/Claim-for-Crown-Court-Defence/blob/0ea00787062887099785c2c2ea6ec307d34ef53a/spec/controllers/external_users/claims_controller_spec.rb#L657 were creating factory data for a location using Faker::A...
diff --git a/spec/integration/gc_spec.rb b/spec/integration/gc_spec.rb index abc1234..def5678 100644 --- a/spec/integration/gc_spec.rb +++ b/spec/integration/gc_spec.rb @@ -0,0 +1,31 @@+require 'spec_helper' + + +RSpec::Matchers.define :have_instance_count_of do |expected| + match do |actual| + ObjectSpace.each_obj...
Add a spec for things being removed from GC
diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index abc1234..def5678 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -5,4 +5,10 @@ it { should accept_values_for(:title, "Test", "Test Account!") } it { should_not accept_values_for(:title, "", nil) } + + it...
Test validations for Account.code and Account.account_type.
diff --git a/spec/mpeg4/box_path_spec.rb b/spec/mpeg4/box_path_spec.rb index abc1234..def5678 100644 --- a/spec/mpeg4/box_path_spec.rb +++ b/spec/mpeg4/box_path_spec.rb @@ -0,0 +1,47 @@+require 'file_data/formats/mpeg4/box_path' +require 'support/test_stream' +require 'file_data/helpers/stream_view' + +RSpec.describe F...
Improve test coverage of box_path.rb
diff --git a/spec/pronto/message_spec.rb b/spec/pronto/message_spec.rb index abc1234..def5678 100644 --- a/spec/pronto/message_spec.rb +++ b/spec/pronto/message_spec.rb @@ -2,11 +2,15 @@ module Pronto describe Message do + let(:message) { Message.new(path, line, level, msg, '8cda581') } + + let(:path) { 'REA...
Add more specs for Pronto::Message
diff --git a/ejaydj.gemspec b/ejaydj.gemspec index abc1234..def5678 100644 --- a/ejaydj.gemspec +++ b/ejaydj.gemspec @@ -21,6 +21,7 @@ spec.add_runtime_dependency "rest-client", "~> 1.7" spec.add_runtime_dependency "json" spec.add_runtime_dependency "twitter" + spec.add_runtime_dependency "googl" spec.add...
Add googl url shortener to runtime dependencies
diff --git a/gem-homepage.gemspec b/gem-homepage.gemspec index abc1234..def5678 100644 --- a/gem-homepage.gemspec +++ b/gem-homepage.gemspec @@ -3,11 +3,11 @@ Gem::Specification.new do |s| s.name = "gem-homepage" - s.version = "0.0.1" + s.version = "0.0.2" s.platform = Gem::Platform::RUBY ...
Fix typo in homepage for gem-hompage, bump version.
diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index abc1234..def5678 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -5,7 +5,7 @@ config.dsn = ENV['SENTRY_DSN'] config.breadcrumbs_logger = [:active_support_logger] - # Send 5% of transactions f...
Revert "Reduce the Sentry sampling to 5%" This reverts commit 507d08ed62231721d88869056e3023a3eac153f0.
diff --git a/recipes/pacaur.rb b/recipes/pacaur.rb index abc1234..def5678 100644 --- a/recipes/pacaur.rb +++ b/recipes/pacaur.rb @@ -3,12 +3,9 @@ package('expac') { action :install } package('yajl') { action :install } -bash 'Importing key for cower' do - code <<-EOH - pacman-key --recv-key 1EB2638FF56C0C53 - ...
Use skippgpcheck instead of importing key (to the wrong keyring, besides). The default build user 'nobody' has no home directory, so cannot locally sign keys.
diff --git a/app/models/plot.rb b/app/models/plot.rb index abc1234..def5678 100644 --- a/app/models/plot.rb +++ b/app/models/plot.rb @@ -1,9 +1,9 @@ class Plot < ApplicationRecord validates :plot_id, presence: true - validates :latitude, presence: true, numericality: { greater_than: 0 } - validates :longitude, pre...
Undo validation changes, it broke too many tests and should be a different issue at this point
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 @@ -10,7 +10,7 @@ validates :name, presence: true validates :email, presence: true validates :password, presence: true - + include BCrypt def password @@ -21,4 +21,14 @@ @pa...
Add authentication method to User model.
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -12,7 +12,8 @@ field "permissions", type: Hash attr_accessible :email, :name, :uid, :version - + attr_accessible :uid, :email, :name, :permissions, as: :oauth + def self.f...
Fix signin for reals this time
diff --git a/app/models/vote.rb b/app/models/vote.rb index abc1234..def5678 100644 --- a/app/models/vote.rb +++ b/app/models/vote.rb @@ -3,4 +3,6 @@ belongs_to :user belongs_to :response + validates :user, uniqueness: { scope: :response, + message: "User can only vote on this r...
Resolve merge conflict by keeping validations that prevent users from voting on more than one response per question.
diff --git a/apache-log.gemspec b/apache-log.gemspec index abc1234..def5678 100644 --- a/apache-log.gemspec +++ b/apache-log.gemspec @@ -8,12 +8,15 @@ gem.version = Apache::Log::VERSION gem.authors = ["Fabian Becker"] gem.email = ["halfdan@xnorfz.de"] - gem.description = %q{Helper library...
Add RSpec as development dependency