diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/test/respond_to_missing_test.rb b/test/respond_to_missing_test.rb index abc1234..def5678 100644 --- a/test/respond_to_missing_test.rb +++ b/test/respond_to_missing_test.rb @@ -14,7 +14,7 @@ end def test_should_respond_to_respond_to_missing - assert respond_to?(:respond_to_missing?) + assert Ob...
Test that Object responds to respond_to_missing? instead of Test::Unit::TestCase
diff --git a/lib/em-imap/response_parser.rb b/lib/em-imap/response_parser.rb index abc1234..def5678 100644 --- a/lib/em-imap/response_parser.rb +++ b/lib/em-imap/response_parser.rb @@ -11,7 +11,7 @@ # This is a translation of Net::IMAP#get_response def receive_data(data) - @buffer += data + ...
Improve string memory management when receiving data.
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -6,6 +6,7 @@ require "action_mailer/railtie" require "sprockets/railtie" # require "rails/test_unit/railtie" +require "action_cable/engine" # Require the gems listed i...
Add missing require for action cable
diff --git a/lib/game_icons/tasks/update.rb b/lib/game_icons/tasks/update.rb index abc1234..def5678 100644 --- a/lib/game_icons/tasks/update.rb +++ b/lib/game_icons/tasks/update.rb @@ -1,11 +1,11 @@+require 'fileutils' require 'game_icons' require 'open-uri' require 'zip' -require 'fileutils' module GameIcons ...
Update deprecated calls for Ruby 3.0
diff --git a/spec/models/vote_spec.rb b/spec/models/vote_spec.rb index abc1234..def5678 100644 --- a/spec/models/vote_spec.rb +++ b/spec/models/vote_spec.rb @@ -0,0 +1,17 @@+require 'spec_helper' + +describe Vote do + describe "New Votes" do + it "should create new valid votes" do + user = create(:user) + ...
Create a failing test for Vote model Votes go against the pattern and don't use the 'id' field as the primary key by default. Votes require a composite primary key, but without the 'composite_primary_key' gem and the attributes specified in the Vote model, testing produced 'undefined method `to_sym' for nil:NilC...
diff --git a/api/app/views/spree/api/images/show.v1.rabl b/api/app/views/spree/api/images/show.v1.rabl index abc1234..def5678 100644 --- a/api/app/views/spree/api/images/show.v1.rabl +++ b/api/app/views/spree/api/images/show.v1.rabl @@ -1,3 +1,4 @@ object @image attributes *image_attributes attributes :viewable_type,...
[api] Return relative attachment url for product images
diff --git a/app/models/process_log.rb b/app/models/process_log.rb index abc1234..def5678 100644 --- a/app/models/process_log.rb +++ b/app/models/process_log.rb @@ -7,7 +7,6 @@ # #------------------------------------------------------------------------------ class ProcessLog - include Rails.application.routes.url_he...
Revert "Give Process Log access to the url_helpers so it can create direct links. Known and intended violation of MVC" The url_helpers need to live in the caller, not the process log. This reverts commit 963aa4d10e52f3606495c1a1044d9864971121a0.
diff --git a/lib/kosmos/packages/toolbar.rb b/lib/kosmos/packages/toolbar.rb index abc1234..def5678 100644 --- a/lib/kosmos/packages/toolbar.rb +++ b/lib/kosmos/packages/toolbar.rb @@ -0,0 +1,9 @@+class Toolbar < Kosmos::Package + title 'Toolbar Plugin' + aliases 'toolbar' + url 'http://blizzy.de/toolbar/Toolbar-1.7...
Add a package for the Toolbar API Plugin.
diff --git a/spree_html_email.gemspec b/spree_html_email.gemspec index abc1234..def5678 100644 --- a/spree_html_email.gemspec +++ b/spree_html_email.gemspec @@ -17,7 +17,7 @@ s.requirements << 'none' s.add_dependency 'spree_core', '~> 2' - s.add_dependency 'premailer-rails3', '~> 1' + s.add_dependency 'premail...
Use a not deprecated github repo for premailer-rails
diff --git a/app/controllers/substitutions_controller.rb b/app/controllers/substitutions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/substitutions_controller.rb +++ b/app/controllers/substitutions_controller.rb @@ -3,11 +3,6 @@ include CrudActions def index - @substitutions = Substitution...
Remove overwritten definition of index Also clean up indentation
diff --git a/app/models/visualization/external_source.rb b/app/models/visualization/external_source.rb index abc1234..def5678 100644 --- a/app/models/visualization/external_source.rb +++ b/app/models/visualization/external_source.rb @@ -5,7 +5,6 @@ module Visualization class ExternalSource < Sequel::Model - ...
Remove fake Sequel model association The visualization is retrieved through a class method defined below, and trying to use the association in the sequel model can yield errors: /var/lib/gems/2.5.0/gems/activesupport-4.2.11.3/lib/active_support/inflector/methods.rb:263:in `const_get': uninitialized constant CartoDB::...
diff --git a/testing/lib/refinery/testing.rb b/testing/lib/refinery/testing.rb index abc1234..def5678 100644 --- a/testing/lib/refinery/testing.rb +++ b/testing/lib/refinery/testing.rb @@ -1,6 +1,6 @@ require 'refinerycms-core' require 'rspec-rails' -require 'factory_girl_rails' +require 'factory_girl' module Refin...
Remove source of factory duplication Factory_girl_rails was loading factories, and further down in this file so was refinery.
diff --git a/config/initializers/RailsPatch22584.rb b/config/initializers/RailsPatch22584.rb index abc1234..def5678 100644 --- a/config/initializers/RailsPatch22584.rb +++ b/config/initializers/RailsPatch22584.rb @@ -0,0 +1,9 @@+module RailsPatch22584 + def insert_fixture(fixture, table_name) + # A regression with ...
Add rails patch for ActiveRecord::Fixture::FixtureError: table has no column named error.
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -35,4 +35,6 @@ resources :discussion_boards, :only => [ :edit, :update ] do resources :topics, :only => [ :new, :create ] end + + resources :topics, :only => [ :show ] end
Add Route for Topic show Update the routes file to include a route for the Topic show action.
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,43 +1,26 @@ Ilp2::Application.routes.draw do - resources :views - resources :settings - resources :timetables + resources :views, :settings resources :events do - collection do ...
Simplify out the routing a little
diff --git a/db/migrate/20110926021317_add_special_forms130.rb b/db/migrate/20110926021317_add_special_forms130.rb index abc1234..def5678 100644 --- a/db/migrate/20110926021317_add_special_forms130.rb +++ b/db/migrate/20110926021317_add_special_forms130.rb @@ -0,0 +1,109 @@+class AddSpecialForms130 < ActiveRecord::Migr...
Add special forms for Clojure 1.3.0.
diff --git a/BHCDatabase/test/integration/user_change_password_test.rb b/BHCDatabase/test/integration/user_change_password_test.rb index abc1234..def5678 100644 --- a/BHCDatabase/test/integration/user_change_password_test.rb +++ b/BHCDatabase/test/integration/user_change_password_test.rb @@ -0,0 +1,32 @@+require 'test_...
Add tests for new functionality
diff --git a/Casks/font-comic-neue.rb b/Casks/font-comic-neue.rb index abc1234..def5678 100644 --- a/Casks/font-comic-neue.rb +++ b/Casks/font-comic-neue.rb @@ -0,0 +1,18 @@+class FontComicNeue < Cask + url 'http://comicneue.com/comic-neue-1.1.zip' + homepage 'http://comicneue.com/' + version '1.1' + sha256 'e4c2bd...
Add the Comic Neue font Public domain, available at http://comicneue.com/
diff --git a/app/controllers/email_configurations_controller.rb b/app/controllers/email_configurations_controller.rb index abc1234..def5678 100644 --- a/app/controllers/email_configurations_controller.rb +++ b/app/controllers/email_configurations_controller.rb @@ -25,7 +25,7 @@ end def try_email - output = Ja...
Fix for blank email address in try_email
diff --git a/config/unicorn.rb b/config/unicorn.rb index abc1234..def5678 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -4,5 +4,5 @@ stdout_path "/var/www/deployments/gluedb/shared/log/unicorn.log" listen "/tmp/unicorn.ap.sock" -worker_processes 2 +worker_processes 10 timeout 180
Use more than 2 workers.
diff --git a/lib/rover.rb b/lib/rover.rb index abc1234..def5678 100644 --- a/lib/rover.rb +++ b/lib/rover.rb @@ -0,0 +1,13 @@+module MarsPhotos + class Rover + attr_accessor :name + + def initialize(name) + self.name = name + end + + def get(sol) + HTTParty.get("https://api.nasa.gov/mars-photos/api/v1/rovers/#{...
Add Rover class with initialize and get photos methods
diff --git a/lib/discovery_method/standard.rb b/lib/discovery_method/standard.rb index abc1234..def5678 100644 --- a/lib/discovery_method/standard.rb +++ b/lib/discovery_method/standard.rb @@ -28,7 +28,7 @@ def discover_thumbnail tag = (@doc/"link[@rel=image_src]").first - thumbnail = tag.get_attribut...
Use correct attribute to look up site thumbnail
diff --git a/lib/earth/industry/mecs_ratio.rb b/lib/earth/industry/mecs_ratio.rb index abc1234..def5678 100644 --- a/lib/earth/industry/mecs_ratio.rb +++ b/lib/earth/industry/mecs_ratio.rb @@ -1,4 +1,5 @@ require 'earth/locality' +require 'earth/industry/industry' class MecsRatio < ActiveRecord::Base set_primary_...
Include Industry from MecsRatio to allow iso tests
diff --git a/lib/generator/template_values.rb b/lib/generator/template_values.rb index abc1234..def5678 100644 --- a/lib/generator/template_values.rb +++ b/lib/generator/template_values.rb @@ -15,8 +15,6 @@ end module TemplateValuesFactory - include CaseValues - def template_values require cases_r...
Remove unnecessary inclusion of CaseValues
diff --git a/lib/subjoin/derivableresource.rb b/lib/subjoin/derivableresource.rb index abc1234..def5678 100644 --- a/lib/subjoin/derivableresource.rb +++ b/lib/subjoin/derivableresource.rb @@ -3,6 +3,12 @@ ROOT_URI = nil TYPE_PATH = nil + + def self.type_id + return self.to_s.downcase.gsub(/^.*::/, '...
Resolve type id in a function Separate out the code that calculates the type_id of the class into its own function that we can use to build a map of tpes to classes.
diff --git a/config/unicorn.rb b/config/unicorn.rb index abc1234..def5678 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -10,7 +10,7 @@ before_fork do |server, worker| Signal.trap 'TERM' do - puts 'Unicorn master intercepting TERM and sending myself QUIT instead' + logger.info 'Unicorn master inte...
Send info messages about Unicorn status to logger
diff --git a/Casks/airparrot1.rb b/Casks/airparrot1.rb index abc1234..def5678 100644 --- a/Casks/airparrot1.rb +++ b/Casks/airparrot1.rb @@ -3,9 +3,10 @@ sha256 :no_check url 'http://download.airsquirrels.com/AirParrot/Mac/AirParrot.dmg' + name 'AirParrot' appcast 'http://airparrot.com/updates/AirParrot.xml'...
AirParrot1: Add name and update license stanza
diff --git a/multipost.rb b/multipost.rb index abc1234..def5678 100644 --- a/multipost.rb +++ b/multipost.rb @@ -52,4 +52,4 @@ site.posts.delete_if { |post| post.data["layout"].is_a? Array } end end -end+end
Add newline to end of file
diff --git a/my_cookbook/recipes/default.rb b/my_cookbook/recipes/default.rb index abc1234..def5678 100644 --- a/my_cookbook/recipes/default.rb +++ b/my_cookbook/recipes/default.rb @@ -10,10 +10,7 @@ app_root = "#{deploy[:deploy_to]}/current/cache" execute "chmod -R g+rw #{app_root}" do end -end - - -node[:depl...
Change wp-content/cache and uploads group permission to write-v1
diff --git a/db/migrate/20141117182436_add_secret_token_for_every_join_request.rb b/db/migrate/20141117182436_add_secret_token_for_every_join_request.rb index abc1234..def5678 100644 --- a/db/migrate/20141117182436_add_secret_token_for_every_join_request.rb +++ b/db/migrate/20141117182436_add_secret_token_for_every_joi...
Use sql syntax for join_request migration
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -2,7 +2,6 @@ until i == 20 page = Page.create(text: Faker::Lorem.paragraph, next_page_id: i+1) if page.id % 3 == 0 - page.has_challenge = true Challenge.create(page_id: page.id, success_page_id: ran...
Update seed file to reflect removal of has_challenge boolean form User migration.
diff --git a/test/note_test.rb b/test/note_test.rb index abc1234..def5678 100644 --- a/test/note_test.rb +++ b/test/note_test.rb @@ -17,4 +17,10 @@ assert_equal @test_samples.length, @note_220.samples.length assert_equal @test_samples.length, @distorted_note.samples.length end + + def test_number_of_frames...
Add test to compare total_frames to samples.length
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -22,7 +22,7 @@ hour = rand(24) half_hour = rand(2) == 1 ? 0 : 30 datetime = Time.local(date.year, date.month, date.day, hour, half_hour) - tutor_id = user_ids.sample - student_id = rand(2) == 1 ? (user_...
Revise seed file user email Revise seed file to use mentor.me.dev@gmail.com for all users.
diff --git a/test/novelinfo.rb b/test/novelinfo.rb index abc1234..def5678 100644 --- a/test/novelinfo.rb +++ b/test/novelinfo.rb @@ -9,33 +9,27 @@ end sub_test_case "cache_path" do - test "valid" do - ncode = "x12345" + expected = "/tmp/info/12/x12345.html.xz" + data( + 'valid' => ["x12345", e...
Use data driven test case
diff --git a/lib/a2ws.rb b/lib/a2ws.rb index abc1234..def5678 100644 --- a/lib/a2ws.rb +++ b/lib/a2ws.rb @@ -12,24 +12,46 @@ end class ItemSearch < Base + attr_accessor :items + default_params :Operation => 'ItemSearch' - def initialize(api_key, search_index) + def initialize(api_key, search_...
Make sure we preserve the entire item.
diff --git a/recipes/defaults.rb b/recipes/defaults.rb index abc1234..def5678 100644 --- a/recipes/defaults.rb +++ b/recipes/defaults.rb @@ -19,7 +19,10 @@ end end +# A bunch of features provided by this plugin that I want to enable for most +# of our applications. set :backup_database_before_migrations, true +se...
Make capistrano disable the web app by default when a deployment with migrations happens.
diff --git a/lib/twat.rb b/lib/twat.rb index abc1234..def5678 100644 --- a/lib/twat.rb +++ b/lib/twat.rb @@ -6,8 +6,8 @@ require 'optparse' require 'oauth' -Dir.glob("twat/*").each do |filename| - require filename +%w[config exceptions argparse actions].each do |filename| + require "twat/#{filename}" end modul...
Revert "Require everything, instead of specific names" Yarr Cap'n, f583bd7 has broken globbin', but ye' didn' notice. HANG 'IM FROM THE MAINS'L! This reverts commit f583bd7f2d9f59b44ee845d854a360013f952ba9.
diff --git a/index_create_statements.rb b/index_create_statements.rb index abc1234..def5678 100644 --- a/index_create_statements.rb +++ b/index_create_statements.rb @@ -32,4 +32,4 @@ puts "CREATE INDEX CONCURRENTLY #{index_name} ON #{table_name} USING #{index_using} (#{index_columns.join(', ')});" end -load ARGF.r...
Use `eval` because `load` expects a path
diff --git a/api-versions.gemspec b/api-versions.gemspec index abc1234..def5678 100644 --- a/api-versions.gemspec +++ b/api-versions.gemspec @@ -18,5 +18,6 @@ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] - s.add_development_dependency "rspec-rails" ...
Update gemspec for generator related stuff.
diff --git a/tests/test_web.rb b/tests/test_web.rb index abc1234..def5678 100644 --- a/tests/test_web.rb +++ b/tests/test_web.rb @@ -37,4 +37,10 @@ doc = Nokogiri::XML(last_response.body) doc.xpath("//Response/Sms").first.content.should == sms_body end + + it "should ask for dial out" do + post "/proces...
Add test for dialing out
diff --git a/SHEmailValidator.podspec b/SHEmailValidator.podspec index abc1234..def5678 100644 --- a/SHEmailValidator.podspec +++ b/SHEmailValidator.podspec @@ -17,7 +17,7 @@ s.platform = :ios, '5.0' s.requires_arc = true - s.source = { :git => "https://github.com/spothero/SHEmailValidator.git", :tag ...
Make git tag tied to version
diff --git a/db/migrate/20160902132101_make_tag_mapping_polymorphic.rb b/db/migrate/20160902132101_make_tag_mapping_polymorphic.rb index abc1234..def5678 100644 --- a/db/migrate/20160902132101_make_tag_mapping_polymorphic.rb +++ b/db/migrate/20160902132101_make_tag_mapping_polymorphic.rb @@ -3,10 +3,6 @@ rename_col...
Fix migration for polymorphic tag mappings The `taggable_type` attribute got renamed from `taggable_type`. Because locally there weren't any records in the tag_mappings table, this didn't surface. On staging there are records, so this migration fails because `taggable_type` doesn't exist. Also makes it use a SQL que...
diff --git a/lib/carto/connector/providers/postgresql.rb b/lib/carto/connector/providers/postgresql.rb index abc1234..def5678 100644 --- a/lib/carto/connector/providers/postgresql.rb +++ b/lib/carto/connector/providers/postgresql.rb @@ -23,7 +23,7 @@ Driver: 'PostgreSQL Unicode', Byte...
Fix postgres Connector ODBC parameter name
diff --git a/app/controllers/docs_controller.rb b/app/controllers/docs_controller.rb index abc1234..def5678 100644 --- a/app/controllers/docs_controller.rb +++ b/app/controllers/docs_controller.rb @@ -1,5 +1,5 @@ class DocsController < ApplicationController -before_action :find_doc, only: [:show, :edit, :update, :desto...
Fix edit and update controller. Remove error for missing doc values
diff --git a/app/controllers/jobs_controller.rb b/app/controllers/jobs_controller.rb index abc1234..def5678 100644 --- a/app/controllers/jobs_controller.rb +++ b/app/controllers/jobs_controller.rb @@ -1,6 +1,6 @@ class JobsController < ApplicationController def index - @jobs = Job.all + @jobs = Job.find(:all, ...
Fix for order of job listing.
diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index abc1234..def5678 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -12,4 +12,41 @@ end render :json => {locations: users_locations, transactions: users_transactions} end + + ...
Add controller to get transactions and locations for times of earning; Also add private helper methods directly into the controller instead of helpers file for ease of review
diff --git a/app/decorators/author_decorator.rb b/app/decorators/author_decorator.rb index abc1234..def5678 100644 --- a/app/decorators/author_decorator.rb +++ b/app/decorators/author_decorator.rb @@ -2,13 +2,13 @@ decorates :user def email - if source.email && !source.private_email + if object.email && !o...
Replace source with object in Draper
diff --git a/app/models/project_content_item.rb b/app/models/project_content_item.rb index abc1234..def5678 100644 --- a/app/models/project_content_item.rb +++ b/app/models/project_content_item.rb @@ -19,4 +19,6 @@ end scope :uncompleted, -> { where(done: false) } + + scope :matching_search, -> (query) { where(...
Add a basic search scope to ProjectContentItem
diff --git a/app/models/person.rb b/app/models/person.rb index abc1234..def5678 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -1,8 +1,6 @@ module Person - extend ActiveSupport::Concern + include Virtus.module - included do - attribute :name, Array[PersonName] - attribute :date_of_birth, Dat...
Use Virtus's simpler sharing solution
diff --git a/custom_counter_cache.gemspec b/custom_counter_cache.gemspec index abc1234..def5678 100644 --- a/custom_counter_cache.gemspec +++ b/custom_counter_cache.gemspec @@ -15,7 +15,7 @@ s.require_paths = ['lib'] s.files = Dir['lib/**/*.rb'] s.required_rubygems_version = '>= 1.3.6' - s.add_dependency('rail...
Remove ruby version requirement from gemspec, as it's been moved to Travis.
diff --git a/lib/rack/tracker/google_tag_manager/google_tag_manager.rb b/lib/rack/tracker/google_tag_manager/google_tag_manager.rb index abc1234..def5678 100644 --- a/lib/rack/tracker/google_tag_manager/google_tag_manager.rb +++ b/lib/rack/tracker/google_tag_manager/google_tag_manager.rb @@ -3,7 +3,7 @@ class Push < ...
Support JSON values for Google Tag Manager
diff --git a/assignments/ruby/grains/example.rb b/assignments/ruby/grains/example.rb index abc1234..def5678 100644 --- a/assignments/ruby/grains/example.rb +++ b/assignments/ruby/grains/example.rb @@ -5,7 +5,7 @@ end def total - (1..64).inject(0) do |sum, number| + @total ||= (1..64).inject(0) do |sum, num...
Add lazy initialization to ruby:grains
diff --git a/lib/iblt.rb b/lib/iblt.rb index abc1234..def5678 100644 --- a/lib/iblt.rb +++ b/lib/iblt.rb @@ -1,13 +1,14 @@ class IBLT + require 'ciblt' def initialize(opts = {}) @opts = { :size => 100, :hashes => 4, - :seed => Time.now.to_i, + :seed => Time.now.to_i }....
Add bang to inspect method to indicate danger
diff --git a/lib/atlas/fever_details.rb b/lib/atlas/fever_details.rb index abc1234..def5678 100644 --- a/lib/atlas/fever_details.rb +++ b/lib/atlas/fever_details.rb @@ -16,6 +16,12 @@ attribute :efficiency_based_on, Symbol attribute :efficiency_balanced_with, Symbol + # The base coefficient of ...
Add COP constant attributes to FeverDetails
diff --git a/lib/dm-types/epoch_time.rb b/lib/dm-types/epoch_time.rb index abc1234..def5678 100644 --- a/lib/dm-types/epoch_time.rb +++ b/lib/dm-types/epoch_time.rb @@ -1,4 +1,11 @@ require 'dm-core' + +begin + # provide Time#utc_time for DateTime#to_time in AS + require 'active_support/core_ext/time/calculations' +r...
Fix failing specs for EpochTime type * The DateTime#to_time method in AS3 requires Time#utc_time to be available, but it does not require it, and this causes problems when cherry picking the #to_time methods.
diff --git a/arm-none-eabi-gcc.rb b/arm-none-eabi-gcc.rb index abc1234..def5678 100644 --- a/arm-none-eabi-gcc.rb +++ b/arm-none-eabi-gcc.rb @@ -3,10 +3,10 @@ class ArmNoneEabiGcc < Formula homepage 'https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads' - version '7-2017-q4-major' + version '7-20...
Update ARM gcc to `7-2018-q2-update`
diff --git a/lib/prtg.rb b/lib/prtg.rb index abc1234..def5678 100644 --- a/lib/prtg.rb +++ b/lib/prtg.rb @@ -7,6 +7,16 @@ require "prtg/sensor" require "prtg/utils" +# = Description +# This library is used to communicate with a prtg monitoring instance +# +# Simple Example: +# http = Net::HTTP.new("subdomain.domai...
Add a quick example to doc
diff --git a/puppet-lint-no_cron_resources-check.gemspec b/puppet-lint-no_cron_resources-check.gemspec index abc1234..def5678 100644 --- a/puppet-lint-no_cron_resources-check.gemspec +++ b/puppet-lint-no_cron_resources-check.gemspec @@ -21,7 +21,7 @@ spec.add_development_dependency 'rspec', '~> 3.9.0' spec.add_dev...
Update rubocop requirement from ~> 0.83.0 to ~> 0.84.0 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](h...
diff --git a/cutcut.gemspec b/cutcut.gemspec index abc1234..def5678 100644 --- a/cutcut.gemspec +++ b/cutcut.gemspec @@ -18,7 +18,7 @@ s.add_dependency 'ruby-progressbar', '~> 1.7' s.add_development_dependency 'guard', '~> 2.13' - s.add_development_dependency 'guard-rspec', '~> 4.6' + ...
Update guard-rspec to ~> 4.7
diff --git a/lib/fat_table/db_handle.rb b/lib/fat_table/db_handle.rb index abc1234..def5678 100644 --- a/lib/fat_table/db_handle.rb +++ b/lib/fat_table/db_handle.rb @@ -3,14 +3,12 @@ def self.set_db(driver: 'Pg', database:, - user:, - password:, + ...
Allow db dsn to have empty user and password.
diff --git a/lib/graphql-docs/client.rb b/lib/graphql-docs/client.rb index abc1234..def5678 100644 --- a/lib/graphql-docs/client.rb +++ b/lib/graphql-docs/client.rb @@ -30,10 +30,11 @@ end def fetch - @faraday.post do |req| + res = @faraday.post do |req| req.headers['Content-Type'] = 'appl...
Add `.body` to faraday response
diff --git a/lib/janus_gateway/error.rb b/lib/janus_gateway/error.rb index abc1234..def5678 100644 --- a/lib/janus_gateway/error.rb +++ b/lib/janus_gateway/error.rb @@ -6,6 +6,8 @@ # @param [String] error_info def initialize(error_code, error_info) @code, @info = error_code, error_info + + super(er...
Call super() for JanusGateway::Error constructor
diff --git a/lib/grid.rb b/lib/grid.rb index abc1234..def5678 100644 --- a/lib/grid.rb +++ b/lib/grid.rb @@ -4,8 +4,8 @@ params = {programfile: nil}.merge(params) Params.check_params(params, [:window, :user, :map_file, :tileset]) - @window, @user = window, user @map = Map.new(window, mapfile, tileset...
Use params for instance variable assignment
diff --git a/lib/modules/simple_find.rb b/lib/modules/simple_find.rb index abc1234..def5678 100644 --- a/lib/modules/simple_find.rb +++ b/lib/modules/simple_find.rb @@ -3,6 +3,19 @@ def find_by_name(name) self.find(:all, :params =>{:q => name}) end + + def find(*arguments) + scope = argume...
Patch to make find(:first) work with the OIO interface
diff --git a/lib/tasks/investments.rake b/lib/tasks/investments.rake index abc1234..def5678 100644 --- a/lib/tasks/investments.rake +++ b/lib/tasks/investments.rake @@ -0,0 +1,12 @@+namespace :investments do + namespace :internal_comments do + desc "Migrate internal_comments textarea to a first comment on internal ...
Add rake task to migrate investment's internal comments to thread
diff --git a/lib/templates/installer.rb b/lib/templates/installer.rb index abc1234..def5678 100644 --- a/lib/templates/installer.rb +++ b/lib/templates/installer.rb @@ -3,6 +3,10 @@ say "Copying fixtures to test/fixtures/action_text/rich_texts.yml" copy_file "#{__dir__}/fixtures.yml", "test/fixtures/action_text/rich...
Copy over the blobs/_blob partial so it can be specialized
diff --git a/lib/tado.rb b/lib/tado.rb index abc1234..def5678 100644 --- a/lib/tado.rb +++ b/lib/tado.rb @@ -3,12 +3,13 @@ class Tado include HTTParty - base_uri 'https://my.tado.com/mobile/1.4' - def initialize(username, password) + def initialize(username, password, api_version) @username = username ...
Add version to be set in initialize.
diff --git a/lib/wifi.rb b/lib/wifi.rb index abc1234..def5678 100644 --- a/lib/wifi.rb +++ b/lib/wifi.rb @@ -3,23 +3,41 @@ class WiFiConnectionStatus def initialize @online = true - @growler = Growl.new 'localhost', 'wifi', ['offline'] + @growler = Growl.new 'localhost', 'wifi', ['offline', 'online'] ...
Add disconnect count and snarks
diff --git a/libmpc08.rb b/libmpc08.rb index abc1234..def5678 100644 --- a/libmpc08.rb +++ b/libmpc08.rb @@ -0,0 +1,26 @@+require 'formula' + +class Libmpc08 < Formula + homepage 'http://multiprecision.org' + url 'ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz' + sha1 '5ef03ca7aee134fe7dfecb6c9d048799f081...
Add legacy version of libmpc * Track libmpc 0.8.1 on GCC infrastructure.
diff --git a/app/models/apps_query.rb b/app/models/apps_query.rb index abc1234..def5678 100644 --- a/app/models/apps_query.rb +++ b/app/models/apps_query.rb @@ -43,7 +43,7 @@ when ORDER_NEW Product.order(created_at: :desc) else - when_clauses = SevenDayMVP::PRODUCTS.each_with_index.map { |slug, i| ...
Make the table explicit in the case statement
diff --git a/app/models/definition.rb b/app/models/definition.rb index abc1234..def5678 100644 --- a/app/models/definition.rb +++ b/app/models/definition.rb @@ -19,17 +19,18 @@ # check string for every definition in the DB select(:id, :key).find_each do |definition| # go through the set of keys for this...
Make sure only the first occurrence of a key gets a tooltip
diff --git a/app/models/gpdb_table.rb b/app/models/gpdb_table.rb index abc1234..def5678 100644 --- a/app/models/gpdb_table.rb +++ b/app/models/gpdb_table.rb @@ -1,11 +1,4 @@ class GpdbTable < GpdbDatabaseObject - - def analyzed_date(table_stats) - analyzed_date = table_stats.fetch("last_analyzed", '') - if analy...
Remove unused method in Gpdbtable
diff --git a/app/models/group_time.rb b/app/models/group_time.rb index abc1234..def5678 100644 --- a/app/models/group_time.rb +++ b/app/models/group_time.rb @@ -7,7 +7,7 @@ scope_by_site_id def section=(s) - self[:section] = nil unless s.present? + self[:section] = s.presence end before_create :upd...
Fix bug setting check in destination section name.
diff --git a/app/models/import_job.rb b/app/models/import_job.rb index abc1234..def5678 100644 --- a/app/models/import_job.rb +++ b/app/models/import_job.rb @@ -3,6 +3,10 @@ class ImportJob < ApplicationRecord belongs_to :user broadcasts_to :user + + has_one_attached :file + + attribute :row_count, :default => ...
Set up file attachment for Import Job
diff --git a/spec/features/properties_management_spec.rb b/spec/features/properties_management_spec.rb index abc1234..def5678 100644 --- a/spec/features/properties_management_spec.rb +++ b/spec/features/properties_management_spec.rb @@ -2,7 +2,9 @@ describe "the properties management", :type => :feature, :js => true ...
Add Integration spec for property new action.
diff --git a/.compass/config.rb b/.compass/config.rb index abc1234..def5678 100644 --- a/.compass/config.rb +++ b/.compass/config.rb @@ -1,28 +1,22 @@-require 'compass-normalize' -require 'susy' +require "compass-normalize" +require "susy" # Set this to the root of your project when deployed: http_path = "/" -http_...
Remove the hardcoded font bit and other things.
diff --git a/sample/spec/spec_helper.rb b/sample/spec/spec_helper.rb index abc1234..def5678 100644 --- a/sample/spec/spec_helper.rb +++ b/sample/spec/spec_helper.rb @@ -4,6 +4,7 @@ require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'ffaker' +require 'spree_sample' RSpec...
Add require spree_sample to spec helper to prevent failure when running build.sh.
diff --git a/event_store-entity_store.gemspec b/event_store-entity_store.gemspec index abc1234..def5678 100644 --- a/event_store-entity_store.gemspec +++ b/event_store-entity_store.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'event_store-entity_store' - s.version = '0.1...
Package version is increased from 0.1.4 to 0.2.0
diff --git a/lib/formalist/elements/standard/rich_text_area.rb b/lib/formalist/elements/standard/rich_text_area.rb index abc1234..def5678 100644 --- a/lib/formalist/elements/standard/rich_text_area.rb +++ b/lib/formalist/elements/standard/rich_text_area.rb @@ -16,7 +16,7 @@ # Replace the form objects with the...
Support rich text areas without any embeddable forms
diff --git a/config/environments/development.rb b/config/environments/development.rb index abc1234..def5678 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -33,5 +33,8 @@ config.assets.raise_runtime_errors = true # Raises error for missing translations - # config.acti...
Update the default generator asset engines
diff --git a/config/environments/development.rb b/config/environments/development.rb index abc1234..def5678 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -36,4 +36,5 @@ config.action_controller.action_on_unpermitted_parameters = :raise config.action_mailer.default_ur...
Add the tld_length action_dispatch config Who uses linux and don't have an alternative like pow. In the development environment the best option is to pass this value to the config.action_dispatch.tld_length. Reference Link: https://github.com/rails/rails/issues/12438#issuecomment-25875656
diff --git a/config/environments/production.rb b/config/environments/production.rb index abc1234..def5678 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -30,4 +30,9 @@ config.mx_checker = MxChecker.new config.active_job.queue_adapter = :sidekiq + + service_url = URI.pa...
Fix host header poison attack Update config production to prevent against users being able to input data that could redirect people away from the official site.
diff --git a/log.gemspec b/log.gemspec index abc1234..def5678 100644 --- a/log.gemspec +++ b/log.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'log' - s.version = '0.2.0.0' + s.version = '0.3.0.0' s.summary = 'Logging to STD IO with levels, tagging, and coloring' s...
Package version is increased from 0.2.0.0 to 0.3.0.0
diff --git a/lib/syoboemon/program_infomation_accessor/program_detail_search.rb b/lib/syoboemon/program_infomation_accessor/program_detail_search.rb index abc1234..def5678 100644 --- a/lib/syoboemon/program_infomation_accessor/program_detail_search.rb +++ b/lib/syoboemon/program_infomation_accessor/program_detail_searc...
Add attributes of structure member
diff --git a/CTFeedback.podspec b/CTFeedback.podspec index abc1234..def5678 100644 --- a/CTFeedback.podspec +++ b/CTFeedback.podspec @@ -5,7 +5,7 @@ s.homepage = "https://github.com/rizumita/CTFeedback" s.license = { :type => 'MIT', :file => 'LICENSE' } s.author = { "Ryoichi Izumita" => "r.izumit...
Update minimum iOS version to 8.0
diff --git a/app/models/deployer_mailer.rb b/app/models/deployer_mailer.rb index abc1234..def5678 100644 --- a/app/models/deployer_mailer.rb +++ b/app/models/deployer_mailer.rb @@ -8,20 +8,20 @@ def send_start(deploy, project) @deploy = deploy mail_subject = "[deploys] {#{project.abbreviation}} Notificación...
Send mails to company as bcc
diff --git a/app/models/landable/author.rb b/app/models/landable/author.rb index abc1234..def5678 100644 --- a/app/models/landable/author.rb +++ b/app/models/landable/author.rb @@ -11,15 +11,15 @@ end def can_read - access_tokens.fresh.first.can_read? if access_tokens.fresh + access_tokens.fresh.fi...
Remove conditional on can_read?, can_edit? and can_publisH? methods
diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb index abc1234..def5678 100644 --- a/app/controllers/confirmations_controller.rb +++ b/app/controllers/confirmations_controller.rb @@ -1,17 +1,18 @@ class ConfirmationsController < Devise::ConfirmationsController de...
Refactor confirmations controller to remove duplication
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -1,8 +1,8 @@ name 'atom' -maintainer 'Mohit Sethi' -maintainer_email 'mohit@sethis.in' -license 'Apache v2.0' -description 'Installs/Configures the Atom text editor' +maintainer 'Sous Chefs' +maintainer_email 'he...
Update maintainer and use standard SPDX license string Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,4 +4,4 @@ license "Apache 2.0" description "System Software configuration and maintenance" long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version "0.41.3" +v...
Split account databag handling into a separate recipe
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache 2.0' description 'Installs and configures MySQL client and server' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '1.0....
Add revoke option in access_grants
diff --git a/Casks/overdrive-media-console.rb b/Casks/overdrive-media-console.rb index abc1234..def5678 100644 --- a/Casks/overdrive-media-console.rb +++ b/Casks/overdrive-media-console.rb @@ -0,0 +1,18 @@+cask :v1 => 'overdrive-media-console' do + version '1.2' + sha256 '6e04ac61337647aa86c67d04d62552a0c0a31a3104bf4...
Add Overdrive Media Console v1.2
diff --git a/config/deploy.rb b/config/deploy.rb index abc1234..def5678 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -20,6 +20,8 @@ role :web, domain role :db, domain, :primary => true +after 'deploy:update_code', 'deploy:symlink_settings' + namespace :deploy do task :start, :roles => :app do run...
Add the deply:symlink_settings capistrano task
diff --git a/config/deploy.rb b/config/deploy.rb index abc1234..def5678 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -14,7 +14,7 @@ set :runner, 'deploy' set :deploy_to, "/home/#{application}" set :app_server, :passenger -set :domain, '67.23.79.60' +set :domain, '67.23.79.117' role :app, domain role :w...
Move to the new server
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ Rails.application.routes.draw do # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html resources :users - resources :games, ex...
Add exceptions to games route
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.congress_person 'congress_people/:id', :controller => 'congress_people', :action => 'show' - map.zip 'zip/:q', :controller ...
Remove zip/ from zip_path to match page titles
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,7 @@ Rails.application.routes.draw do + get 'static_pages/home' + + get 'static_pages/help' + # For details on the DSL available within this file, see http://guides.rubyonrails.or...
Add a Static Pages controller
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,9 +2,8 @@ Diffux::Application.routes.draw do mount Sidekiq::Web => '/sidekiq' - resources :refresh, only: :create - scope '/:locale' do + scope '(:locale)' do get 'static_pag...
Allow locale in URL to be optional When I first added URL-based locale specification, I made it required and had `/` redirect to `/en`. However, I realized that it would be better to just make it optional. This will allow routes like refresh and sweep triggering to work as they did without any change, but to also opti...
diff --git a/spec/defines/repo_spec.rb b/spec/defines/repo_spec.rb index abc1234..def5678 100644 --- a/spec/defines/repo_spec.rb +++ b/spec/defines/repo_spec.rb @@ -13,9 +13,7 @@ :command => /aptly repo create example$/, :unless => /aptly repo show example >\/dev\/null$/, :user =...
Fix syntax around class require in tests This test is failing on the version of Rspec that Travis runs tests with, so update the syntax.
diff --git a/spec/requests/api_spec.rb b/spec/requests/api_spec.rb index abc1234..def5678 100644 --- a/spec/requests/api_spec.rb +++ b/spec/requests/api_spec.rb @@ -18,7 +18,7 @@ stub_request(:get, "https://account.radiusnetworks.com/auth/radius/user.json?oauth_token=123") .to_return(status: 200, bod...
Fix Rails 5 deprecation warning for `get` request spec DEPRECATION WARNING: `ActionDispatch::IntegrationTest` HTTP request methods will accept only the following keyword arguments in future Rails versions: params, headers, env, xhr, as Examples: get '/profile', params: { id: 1 }, headers: { 'X-Extra...