diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index abc1234..def5678 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -24,7 +24,7 @@ private def markdown_renderer - @markdown_renderer ||= Redcarpet::Markdown.new(Redcarpet::Render::X...
Add markdown filter for html prevents cross site attacks
diff --git a/app/jobs/transcode_episode_job.rb b/app/jobs/transcode_episode_job.rb index abc1234..def5678 100644 --- a/app/jobs/transcode_episode_job.rb +++ b/app/jobs/transcode_episode_job.rb @@ -3,14 +3,13 @@ queue_as :default def perform(episode) - if episode.audio_file_url.present? - transcoder.creat...
Use a guard clause to return out of the method
diff --git a/lib/nform/helpers.rb b/lib/nform/helpers.rb index abc1234..def5678 100644 --- a/lib/nform/helpers.rb +++ b/lib/nform/helpers.rb @@ -1,7 +1,7 @@ module NForm module Helpers - def form_view(*args) - NForm::Builder.new(*args).render + def form_view(*args,&block) + NForm::Builder.new(*args)....
Add missing block parameter to view helper
diff --git a/lib/library/utils.rb b/lib/library/utils.rb index abc1234..def5678 100644 --- a/lib/library/utils.rb +++ b/lib/library/utils.rb @@ -0,0 +1,93 @@+class Library + + module Utils + extend self + + # + # TODO: Not sure RUBYLIB environment should be included in user_path. + # + + # + # Lookup...
Add Utils module for sharing special functions.
diff --git a/lib/raven/sidekiq.rb b/lib/raven/sidekiq.rb index abc1234..def5678 100644 --- a/lib/raven/sidekiq.rb +++ b/lib/raven/sidekiq.rb @@ -22,6 +22,6 @@ end else Sidekiq.configure_server do |config| - config.error_handlers << Proc.new {|ex,context| Raven.capture_exception(ex, context) } + config.error...
Isolate Sidekiq's own context info into :extra. Sidekiq sometimes sends a :context key as part of its error handling context hash. However, it means something entirely different than Raven's own :context key in options. Move all of Sidekiq's exception context into :extra so it doesn't confuse Raven.
diff --git a/lib/salt/template.rb b/lib/salt/template.rb index abc1234..def5678 100644 --- a/lib/salt/template.rb +++ b/lib/salt/template.rb @@ -6,7 +6,7 @@ def initialize(path) @slug = File.basename(path, File.extname(path)) - @contents = read_with_yaml(path) + @contents, @metadata = read_with_y...
Use the metadata variable again, and use the layout metadata variable for rendering a parent, if any.
diff --git a/lib/rom/sql/types.rb b/lib/rom/sql/types.rb index abc1234..def5678 100644 --- a/lib/rom/sql/types.rb +++ b/lib/rom/sql/types.rb @@ -39,7 +39,7 @@ TypeDSL.new(value_type).call(&block) end - Serial = Int.meta(primary_key: true) + Serial = Integer.meta(primary_key: true) Bl...
Update type, Int -> Integer
diff --git a/lib/sprockets/es6.rb b/lib/sprockets/es6.rb index abc1234..def5678 100644 --- a/lib/sprockets/es6.rb +++ b/lib/sprockets/es6.rb @@ -26,7 +26,10 @@ def call(input) data = input[:data] result = input[:cache].fetch(@cache_key + [data]) do - ES6to5.transform(data, @options) + ES...
Set filename options for ES6to5.transform * `filename` is required to show the proper filename on syntax errors * `filenameRelative` is used to build module ids (names) Without these options all files / modules will be named "unknown". Example: filename: '/app/assets/foo/bar/baz.es6.erb' filenameRelative: 'foo/bar/b...
diff --git a/lita-console.gemspec b/lita-console.gemspec index abc1234..def5678 100644 --- a/lita-console.gemspec +++ b/lita-console.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = "lita-console" - spec.version = "0.0.2" + spec.version = "0.0.3" spec.authors = ["M...
Correct plugin type in gemspec metadata.
diff --git a/lib/capybara_screenshot_idobata/rspec.rb b/lib/capybara_screenshot_idobata/rspec.rb index abc1234..def5678 100644 --- a/lib/capybara_screenshot_idobata/rspec.rb +++ b/lib/capybara_screenshot_idobata/rspec.rb @@ -9,12 +9,10 @@ CapybaraScreenshotIdobata.configure do |config| config.message_formatter = p...
Remove the code for Rspec2 conpatibility
diff --git a/lib/generators/rails/templates/index.json.jbuilder b/lib/generators/rails/templates/index.json.jbuilder index abc1234..def5678 100644 --- a/lib/generators/rails/templates/index.json.jbuilder +++ b/lib/generators/rails/templates/index.json.jbuilder @@ -1,4 +1,4 @@ json.array!(@<%= plural_table_name %>) do |...
Add EOL to the generator template without this, Git claims "No newline at end of file"
diff --git a/lib/rake_tasks_for_rails/tasks/envs.rake b/lib/rake_tasks_for_rails/tasks/envs.rake index abc1234..def5678 100644 --- a/lib/rake_tasks_for_rails/tasks/envs.rake +++ b/lib/rake_tasks_for_rails/tasks/envs.rake @@ -0,0 +1,49 @@+require 'rake_tasks_for_rails/config' +require 'rake_tasks_for_rails/envs' + +name...
Move env-based tasks into their own rake file
diff --git a/lib/rock_rms/resources/payment_detail.rb b/lib/rock_rms/resources/payment_detail.rb index abc1234..def5678 100644 --- a/lib/rock_rms/resources/payment_detail.rb +++ b/lib/rock_rms/resources/payment_detail.rb @@ -25,6 +25,10 @@ def cast_payment_type(payment_type) case payment_type + ...
Support for cash and check as payment types
diff --git a/lib/tasks/user_database_host_update.rake b/lib/tasks/user_database_host_update.rake index abc1234..def5678 100644 --- a/lib/tasks/user_database_host_update.rake +++ b/lib/tasks/user_database_host_update.rake @@ -2,8 +2,8 @@ namespace :database_host do desc 'Add a text in the notification field for...
Update the redis part of the user
diff --git a/knife-cloudformation.gemspec b/knife-cloudformation.gemspec index abc1234..def5678 100644 --- a/knife-cloudformation.gemspec +++ b/knife-cloudformation.gemspec @@ -11,6 +11,6 @@ s.require_path = 'lib' s.add_dependency 'chef' s.add_dependency 'fog', '~> 1.12.1' - s.add_dependency 'attribute_struct'...
Set attribute_struct minimum dependency to 0.1.2
diff --git a/app/models/hashtag.rb b/app/models/hashtag.rb index abc1234..def5678 100644 --- a/app/models/hashtag.rb +++ b/app/models/hashtag.rb @@ -4,4 +4,11 @@ has_many :hashtag_questions has_many :questions, through: :hashtag_questions + before_save :tagize + + + private + def tagize + title.downcase!.gsub!("...
Make Tagize Method Far Hashtags Tagize turns an input into a more tag friendly format before it is saved. Needs to be further refined.
diff --git a/test/test_helper.rb b/test/test_helper.rb index abc1234..def5678 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,5 +1,5 @@ # coveralls.io and coco are incompatible. Run each in their own env. -if ENV["CI"] || ENV["JENKINS_URL"] || ENV['TDDIUM'] || ENV["COVERALLS_RUN_LOCALLY"] +if ENV['TRAV...
Add TRAVIS env test for coveralls.io as well.
diff --git a/Casks/opera-next.rb b/Casks/opera-next.rb index abc1234..def5678 100644 --- a/Casks/opera-next.rb +++ b/Casks/opera-next.rb @@ -1,7 +1,7 @@ class OperaNext < Cask - url 'http://get.geo.opera.com/pub/opera-next/18.0.1284.26/mac/Opera_Next_18.0.1284.26_Setup.dmg' + url 'http://get.geo.opera.com/pub/opera-n...
Update Opera Next to 18.0.1284.26
diff --git a/test/models/user_invite_test.rb b/test/models/user_invite_test.rb index abc1234..def5678 100644 --- a/test/models/user_invite_test.rb +++ b/test/models/user_invite_test.rb @@ -1,15 +1,6 @@ require 'test_helper' class UserInviteTest < ActiveSupport::TestCase - - def setup - # create a mailer here and...
Delete uneccessary creation of a UserInvite in the test
diff --git a/lib/appsignal/cli/helpers.rb b/lib/appsignal/cli/helpers.rb index abc1234..def5678 100644 --- a/lib/appsignal/cli/helpers.rb +++ b/lib/appsignal/cli/helpers.rb @@ -29,7 +29,7 @@ def press_any_key puts print " Ready? Press any key:" - stdin.getch + stdin.getc ...
Fix "Press any key" on Microsoft Windows `getch` throws a `Errno::EBADF: Bad file descriptor` error on Microsoft Windows. I am unable to fix that. Using `getc` creates the same behavior and also works on Microsoft Windows. This fixes the "Press any key" prompts on Microsoft's OS, fixing the installer prompts.
diff --git a/stevenson.gemspec b/stevenson.gemspec index abc1234..def5678 100644 --- a/stevenson.gemspec +++ b/stevenson.gemspec @@ -6,8 +6,8 @@ Gem::Specification.new do |spec| spec.name = "stevenson" spec.version = Stevenson::VERSION - spec.authors = ["Dylan Karr"] - spec.email = ...
Update gemspec author and email
diff --git a/rakelib/publish.rake b/rakelib/publish.rake index abc1234..def5678 100644 --- a/rakelib/publish.rake +++ b/rakelib/publish.rake @@ -27,4 +27,5 @@ sh("git commit -m 'Updating site to latest commit (#{git_short_sha})'") sh("git push") end + sh("aws s3 sync 'build/#{GOCD_VERSION}' s3://#{ENV['S3_...
Use aws cli to sync built files to s3.
diff --git a/spec/views/projects/index.html.erb_spec.rb b/spec/views/projects/index.html.erb_spec.rb index abc1234..def5678 100644 --- a/spec/views/projects/index.html.erb_spec.rb +++ b/spec/views/projects/index.html.erb_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -RSpec.describe 'projects/index', type: :view do +...
Add test for all details on the project side
diff --git a/test/controllers/bookings_controller_test.rb b/test/controllers/bookings_controller_test.rb index abc1234..def5678 100644 --- a/test/controllers/bookings_controller_test.rb +++ b/test/controllers/bookings_controller_test.rb @@ -11,6 +11,7 @@ end test 'should get new' do + get(new_booking_ur...
Reorder Gemfile and add yarn to setup
diff --git a/lib/jwplayer/rails/helper.rb b/lib/jwplayer/rails/helper.rb index abc1234..def5678 100644 --- a/lib/jwplayer/rails/helper.rb +++ b/lib/jwplayer/rails/helper.rb @@ -2,7 +2,7 @@ module Helper DEFAULT_OPTIONS = { id: 'jwplayer', - flashplayer: '/swf/player.swf', + flashplayer: '/assets...
Change location of flash player
diff --git a/lib/rabbit_wq/work_logger.rb b/lib/rabbit_wq/work_logger.rb index abc1234..def5678 100644 --- a/lib/rabbit_wq/work_logger.rb +++ b/lib/rabbit_wq/work_logger.rb @@ -32,7 +32,7 @@ end if worker - logger.send( level, "[" + Rainbow( "#{worker.class.name}:#{worker.object_id}" ).cyan ...
Add PID of process to work logger.
diff --git a/lib/shapes/builder/struct.rb b/lib/shapes/builder/struct.rb index abc1234..def5678 100644 --- a/lib/shapes/builder/struct.rb +++ b/lib/shapes/builder/struct.rb @@ -25,7 +25,6 @@ struct.read_from_node struct.ident = node['ident'].to_s struct.description = node['description']....
Add resource-type in StructFromHash not in StructFromXml
diff --git a/lib/tasks/one_sheet/files.rb b/lib/tasks/one_sheet/files.rb index abc1234..def5678 100644 --- a/lib/tasks/one_sheet/files.rb +++ b/lib/tasks/one_sheet/files.rb @@ -1,9 +1,16 @@ module OneSheet class Files + extend Forwardable def self.read(type) new(type).read end + + def self.r...
Make read_file a class method since it doesn't rely on state
diff --git a/week-9/ruby-review-2/ruby-review.rb b/week-9/ruby-review-2/ruby-review.rb index abc1234..def5678 100644 --- a/week-9/ruby-review-2/ruby-review.rb +++ b/week-9/ruby-review-2/ruby-review.rb @@ -0,0 +1,121 @@+# Introduction to Inheritance + +# I worked on this challenge [by myself, with: ]. + + +# Pseudocode ...
Add initial Ruby Review files
diff --git a/library/erb/filename_spec.rb b/library/erb/filename_spec.rb index abc1234..def5678 100644 --- a/library/erb/filename_spec.rb +++ b/library/erb/filename_spec.rb @@ -2,7 +2,6 @@ require File.expand_path('../../../spec_helper', __FILE__) describe "ERB#filename" do - # TODO: why does this fail on rubinius?...
Remove extended_on for missing functionality
diff --git a/buckaroo_json.gemspec b/buckaroo_json.gemspec index abc1234..def5678 100644 --- a/buckaroo_json.gemspec +++ b/buckaroo_json.gemspec @@ -18,8 +18,8 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ['lib'] - spec.add_development_dependency 'bundler', '~...
Update development dependencies in gemspec
diff --git a/lib/combi/reactor.rb b/lib/combi/reactor.rb index abc1234..def5678 100644 --- a/lib/combi/reactor.rb +++ b/lib/combi/reactor.rb @@ -14,8 +14,6 @@ log "------- starting EM reactor" EM::run do log "------- reactor started" - Signal.trap("INT") { EM::stop_event_loop } - ...
Remove signal handlers. Let the OS kill EM
diff --git a/lib/idnow/helpers.rb b/lib/idnow/helpers.rb index abc1234..def5678 100644 --- a/lib/idnow/helpers.rb +++ b/lib/idnow/helpers.rb @@ -0,0 +1,9 @@+module Idnow + module Helpers + PROJECT_ROOT = File.dirname(File.dirname(File.dirname(__FILE__))) + + module Factories + Dir[File.join(PROJECT_ROOT, 's...
Add helper to load factories in other projects
diff --git a/lib/pandan/parser.rb b/lib/pandan/parser.rb index abc1234..def5678 100644 --- a/lib/pandan/parser.rb +++ b/lib/pandan/parser.rb @@ -13,7 +13,9 @@ def all_targets all_project_paths = workspace.file_references.map(&:path) - projects = all_project_paths.map { |project_path| Xcodeproj::Projec...
Break long line down a bit to fix rubocop warning
diff --git a/lib/tasks/tasks.rake b/lib/tasks/tasks.rake index abc1234..def5678 100644 --- a/lib/tasks/tasks.rake +++ b/lib/tasks/tasks.rake @@ -5,4 +5,35 @@ binding.pry end + desc 'post-process LOINC Top 2000 common lab results CSV' + task :process_loinc, [] do |t, args| + require 'find' + require 'cs...
Add task to process LOINC codes.
diff --git a/lib/tumblargh/api.rb b/lib/tumblargh/api.rb index abc1234..def5678 100644 --- a/lib/tumblargh/api.rb +++ b/lib/tumblargh/api.rb @@ -23,8 +23,9 @@ def fetch(path, query={}) query.merge!(:api_key => api_key) url = "#{API_ROOT}#{path}?#{query.to_query}" - # puts "Fetching: #{url...
Add TODO for API errors
diff --git a/update_commands.rb b/update_commands.rb index abc1234..def5678 100644 --- a/update_commands.rb +++ b/update_commands.rb @@ -0,0 +1,36 @@+#!/usr/bin/env ruby + +# Use this script to update the commands auto-completed in plugin/otto.vim. + +require 'open3' + +command_re = /^\s\s\s\s(\S+)/ +plugin_file = 'plu...
Add script to update auto-completed commands
diff --git a/stream_controller.rb b/stream_controller.rb index abc1234..def5678 100644 --- a/stream_controller.rb +++ b/stream_controller.rb @@ -2,5 +2,9 @@ require 'rubygems' require 'daemons' +require 'bundler' +Bundler.setup + +Bundler.require Daemons.run(File.join(File.dirname(__FILE__), 'streaming.rb'))
Patch stream controller to work with new bundler
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb index abc1234..def5678 100644 --- a/app/controllers/messages_controller.rb +++ b/app/controllers/messages_controller.rb @@ -4,7 +4,7 @@ def create find_account! - @message = Message.new(message_params) + @message...
Use the command bar action class to parse the message
diff --git a/lita-weather.gemspec b/lita-weather.gemspec index abc1234..def5678 100644 --- a/lita-weather.gemspec +++ b/lita-weather.gemspec @@ -1,8 +1,8 @@ Gem::Specification.new do |spec| spec.name = "lita-weather" - spec.version = "0.1.0" - spec.authors = ["Gou Furuya"] - spec.email ...
Add author and bump up version
diff --git a/test/integration/managing_releases_test.rb b/test/integration/managing_releases_test.rb index abc1234..def5678 100644 --- a/test/integration/managing_releases_test.rb +++ b/test/integration/managing_releases_test.rb @@ -0,0 +1,53 @@+require 'integration_test_helper' + +class ManagingReleasesTest < ActionDi...
Add integration test for releases
diff --git a/app/services/commits/change_service.rb b/app/services/commits/change_service.rb index abc1234..def5678 100644 --- a/app/services/commits/change_service.rb +++ b/app/services/commits/change_service.rb @@ -24,8 +24,12 @@ start_project: @start_project, start_branch_name: @start_branch) r...
Correct error message returned by ChangeService Previously the string was spanning multiple lines and included a needless `\n` character in the resulting error message. This change also reduces duplication by assigning two variables.
diff --git a/app/workers/share_analytics_updater.rb b/app/workers/share_analytics_updater.rb index abc1234..def5678 100644 --- a/app/workers/share_analytics_updater.rb +++ b/app/workers/share_analytics_updater.rb @@ -9,8 +9,10 @@ uri = 'http://run.shareprogress.org/api/v1/buttons/analytics' uri = URI.parse...
Update analytics if response was successful
diff --git a/contrib/sample-app/sample-app.rb b/contrib/sample-app/sample-app.rb index abc1234..def5678 100644 --- a/contrib/sample-app/sample-app.rb +++ b/contrib/sample-app/sample-app.rb @@ -23,7 +23,7 @@ # Calculate the Nth prime number to use up CPU and time post '/nth_prime' do - Prime.first(decode(request)['p...
Return a string for primes
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -4,7 +4,7 @@ require 'action_view/railtie' require 'sprockets/railtie' -Bundler.require(:default, Rails.env) +Bundler.require(*Rails.groups) module Frontend class ...
Apply Rails 4.1 Bundler conventions
diff --git a/config/application.rb b/config/application.rb index abc1234..def5678 100644 --- a/config/application.rb +++ b/config/application.rb @@ -10,6 +10,8 @@ # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(:default, Rails.env) +Bun...
Use asset group in development
diff --git a/Latch.podspec b/Latch.podspec index abc1234..def5678 100644 --- a/Latch.podspec +++ b/Latch.podspec @@ -9,6 +9,7 @@ s.social_media_url = "http://twitter.com/endocrimes" s.platform = :ios, "8.0" s.platform = :watchos, "2.0" + s.platform = :osx, "10.9" s.source ...
Add osx support to podfile
diff --git a/yoga_pants.gemspec b/yoga_pants.gemspec index abc1234..def5678 100644 --- a/yoga_pants.gemspec +++ b/yoga_pants.gemspec @@ -3,12 +3,11 @@ Gem::Specification.new do |gem| gem.authors = ["Jack Chen (chendo)"] - gem.email = ["yoga_pants@chen.do"] gem.description = %q{A super lightweig...
Remove email and add home page
diff --git a/plugins/providers/virtualbox/cap.rb b/plugins/providers/virtualbox/cap.rb index abc1234..def5678 100644 --- a/plugins/providers/virtualbox/cap.rb +++ b/plugins/providers/virtualbox/cap.rb @@ -9,6 +9,8 @@ # # @return [Hash<Integer, Integer>] Host => Guest port mappings. def self.forwarde...
Return nil if the VM is not running when looking at forwarded ports
diff --git a/appledoc22.rb b/appledoc22.rb index abc1234..def5678 100644 --- a/appledoc22.rb +++ b/appledoc22.rb @@ -0,0 +1,37 @@+require 'formula' + +# 2.2 (build 961) introduces support for documenting enumerated and +# bitmask types, and will emit warnings on encountering undocumented +# instances of those types. A...
Add Appledoc 2.2 (build 961). Closes #204. Signed-off-by: Xiyue Deng <4900478725231961caf32165c870e05cea7389d8@gmail.com>
diff --git a/app/controllers/concerns/exception_handler.rb b/app/controllers/concerns/exception_handler.rb index abc1234..def5678 100644 --- a/app/controllers/concerns/exception_handler.rb +++ b/app/controllers/concerns/exception_handler.rb @@ -19,11 +19,11 @@ self.response_body = nil if current_user.nil...
Fix redirect when inside an engine
diff --git a/app/controllers/filtering_tests_controller.rb b/app/controllers/filtering_tests_controller.rb index abc1234..def5678 100644 --- a/app/controllers/filtering_tests_controller.rb +++ b/app/controllers/filtering_tests_controller.rb @@ -3,19 +3,11 @@ def new @filtering_test = @product.product_tests.bui...
Remove references to C4Task subclasses.
diff --git a/app/view_models/group_assignment_repo_view.rb b/app/view_models/group_assignment_repo_view.rb index abc1234..def5678 100644 --- a/app/view_models/group_assignment_repo_view.rb +++ b/app/view_models/group_assignment_repo_view.rb @@ -0,0 +1,38 @@+# frozen_string_literal: true + +class GroupAssignmentRepoView...
Create view model for group assignment repo
diff --git a/config/routes.rb b/config/routes.rb index abc1234..def5678 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,11 +1,9 @@ Rails.application.routes.draw do authenticated :developer do - resources :mailbox, only: :show root 'developers#profile', as: :developer_root end authenticated...
Move mailboxer route out of authenticated scope
diff --git a/JBSSettings.podspec b/JBSSettings.podspec index abc1234..def5678 100644 --- a/JBSSettings.podspec +++ b/JBSSettings.podspec @@ -4,7 +4,7 @@ s.summary = 'A settings object that is less annoying than NSUserDefaults' s.description = 'A settings object that is less annoying than NSUserDefaults.' ...
Kill warning about license file
diff --git a/postrank-uri.gemspec b/postrank-uri.gemspec index abc1234..def5678 100644 --- a/postrank-uri.gemspec +++ b/postrank-uri.gemspec @@ -17,7 +17,7 @@ s.add_dependency "addressable", "~> 2.3.0" s.add_dependency "public_suffix", "~> 1.4.2" - s.add_dependency "nokogiri", "~> 1.6.1" + s.add_depende...
Allow newer versions on Nokogiri Tested and working with Nokogiri 1.7.0.1
diff --git a/frecon.gemspec b/frecon.gemspec index abc1234..def5678 100644 --- a/frecon.gemspec +++ b/frecon.gemspec @@ -1,7 +1,9 @@+require "frecon/version" + Gem::Specification.new do |s| s.name = "frecon" s.email = "sammidysam@gmail.com" - s.version = "0.0.0" + s.version = FReCon::VERSION s.summary = "A JS...
Use the VERSION constant in the gemspec
diff --git a/core/spec/requests/admin/configuration/image_settings_spec.rb b/core/spec/requests/admin/configuration/image_settings_spec.rb index abc1234..def5678 100644 --- a/core/spec/requests/admin/configuration/image_settings_spec.rb +++ b/core/spec/requests/admin/configuration/image_settings_spec.rb @@ -2,6 +2,10 @...
Reset preferences after spec to properly teardown test and avoid files being saved where they are not gitignored. Fixes #2467
diff --git a/lib/sass_spec.rb b/lib/sass_spec.rb index abc1234..def5678 100644 --- a/lib/sass_spec.rb +++ b/lib/sass_spec.rb @@ -5,6 +5,7 @@ LANGUAGE_VERSIONS = %w( 3.5 3.6 + 3.7 4.0 ) MIN_LANGUAGE_VERSION = Gem::Version.new(LANGUAGE_VERSIONS.first)
Mark 3.7 as a valid language version
diff --git a/tasks/spec_runner.rake b/tasks/spec_runner.rake index abc1234..def5678 100644 --- a/tasks/spec_runner.rake +++ b/tasks/spec_runner.rake @@ -1,20 +1,57 @@ # frozen_string_literal: true require 'rspec/core' -require 'rspec/core/rake_task' +require 'test_queue' +require 'test_queue/runner/rspec' -RSpec::...
Use plain Ruby to implement RSpec Rake tasks Using `RSpec::Core::RakeTask` and e.g. `sh('rspec-queue spec/')` adds different layers of indirection that make the tasks hard to work with. For example, we used two different ways of declaring the default encoding...
diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index abc1234..def5678 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -2,6 +2,9 @@ ######### Exports class ExportController < ApplicationController + EXPORTABLE_MODELS = [Image, ...
Add RCE update to ExportController
diff --git a/app/controllers/pusher_controller.rb b/app/controllers/pusher_controller.rb index abc1234..def5678 100644 --- a/app/controllers/pusher_controller.rb +++ b/app/controllers/pusher_controller.rb @@ -25,7 +25,8 @@ end def authorize_private_channel - request = Request.find_by(id: params[:request_id]) ...
Fix implementation of authorize_private_channel method. We do not have a request_id key in the params hash. Instead, I use the name of the channel that the user is trying to subscribe to to find the request.
diff --git a/app/controllers/tracks_controller.rb b/app/controllers/tracks_controller.rb index abc1234..def5678 100644 --- a/app/controllers/tracks_controller.rb +++ b/app/controllers/tracks_controller.rb @@ -6,9 +6,6 @@ uri = URI(url) response = Net::HTTP.get(uri) @tracks = JSON.parse(response) - - # ...
Refactor tracks controller; remove comments
diff --git a/graph_store.rb b/graph_store.rb index abc1234..def5678 100644 --- a/graph_store.rb +++ b/graph_store.rb @@ -6,7 +6,7 @@ end get '/' do - "List all graphs" + "List api info/documentation" #TODO: OR list documentation end @@ -16,18 +16,23 @@ end #TODO: add new graph +#after that add nodes and e...
Add basic new, rename, delete graph functionality
diff --git a/lib/cypher/repository.rb b/lib/cypher/repository.rb index abc1234..def5678 100644 --- a/lib/cypher/repository.rb +++ b/lib/cypher/repository.rb @@ -3,7 +3,7 @@ class Repository attr_accessor :data - attr_reader :path + attr_reader :path, :hashed_password def initialize(path, hashed_pa...
Use hashed_password as an attribute
diff --git a/lib/sandbox_formulary.rb b/lib/sandbox_formulary.rb index abc1234..def5678 100644 --- a/lib/sandbox_formulary.rb +++ b/lib/sandbox_formulary.rb @@ -6,7 +6,10 @@ def self.factory(ref) path = nil - repo = Repository.all.detect { |repo| path = repo.find_formula ref } + repo = Repository.all.det...
Fix sandboxed Formulary to use RepositoryImport
diff --git a/lib/tasks/timezones.rake b/lib/tasks/timezones.rake index abc1234..def5678 100644 --- a/lib/tasks/timezones.rake +++ b/lib/tasks/timezones.rake @@ -41,4 +41,11 @@ TimeZones.travel{|tz| ENV['TZ'] = tz if tz; Time.now } end end + + namespace :rails do + desc "move aroud system timezones" + task ...
Add world travel on Rails
diff --git a/Casks/softorino-youtube-converter.rb b/Casks/softorino-youtube-converter.rb index abc1234..def5678 100644 --- a/Casks/softorino-youtube-converter.rb +++ b/Casks/softorino-youtube-converter.rb @@ -0,0 +1,12 @@+cask 'softorino-youtube-converter' do + version :latest + sha256 :no_check + + # devmate.com is...
Add Softorino YouTube Converter.app latest version YouTube. Offline. No Ads. Background Playback. http://softorino.com/youtube-converter
diff --git a/test/test_posixlock.rb b/test/test_posixlock.rb index abc1234..def5678 100644 --- a/test/test_posixlock.rb +++ b/test/test_posixlock.rb @@ -16,6 +16,13 @@ end def test_lockf + pid = 0 + + Signal.trap("USR2") { + assert_equal pid, @file.lockf(File::F_TEST, 0) + Process.kill('USR1', pi...
Move trap signal on parent before fork in tests
diff --git a/main.rb b/main.rb index abc1234..def5678 100644 --- a/main.rb +++ b/main.rb @@ -1,5 +1,5 @@ get '/' do @recruiters = YAML.load_file('recruiters.yml') - filter = '*@' + [@recruiters['thirdparty'] + @recruiters['companies'] + @recruiters['other']].flatten.join('OR *@') + filter = '*@' + [@recruiters['th...
Fix spacing in GMail filter
diff --git a/app/models/supporting_page.rb b/app/models/supporting_page.rb index abc1234..def5678 100644 --- a/app/models/supporting_page.rb +++ b/app/models/supporting_page.rb @@ -2,4 +2,5 @@ include Edition::RelatedPolicies include ::Attachable + validates :related_policies, length: { minimum: 1, message: "mu...
Validate that supporting page has > 0 policies
diff --git a/hector.gemspec b/hector.gemspec index abc1234..def5678 100644 --- a/hector.gemspec +++ b/hector.gemspec @@ -2,8 +2,8 @@ s.name = "hector" s.version = "1.0.7" s.platform = Gem::Platform::RUBY - s.authors = ["Sam Stephenson"] - s.email = ["sstephenson@gmail.com"] + s.a...
Add Ross Paffett as a gem author Sam says that I am special now
diff --git a/graph.rb b/graph.rb index abc1234..def5678 100644 --- a/graph.rb +++ b/graph.rb @@ -8,7 +8,7 @@ end def make_edges(graph_info) - graph_info.foreach do |connection| + graph_info.each do |connection| add_edge(connection[0], connection[1], @directed) end end
Change for each to each
diff --git a/inky.gemspec b/inky.gemspec index abc1234..def5678 100644 --- a/inky.gemspec +++ b/inky.gemspec @@ -1,5 +1,5 @@ Gem::Specification.new do |s| - s.name = 'inky' + s.name = 'inky-rb' s.version = '0.0.2' s.date = '2016-02-12' s.summary = 'Inky is an HTML-based templatin...
Change name to work around naming conflict
diff --git a/spec/element_spec.rb b/spec/element_spec.rb index abc1234..def5678 100644 --- a/spec/element_spec.rb +++ b/spec/element_spec.rb @@ -13,11 +13,13 @@ end context "with text" do - subject do - Element.new(:h1) { self << "Hello World" }.to_s + context "explicit sintax" do + s...
Refactor: Add with text explicit sintax context
diff --git a/spec/mapping_spec.rb b/spec/mapping_spec.rb index abc1234..def5678 100644 --- a/spec/mapping_spec.rb +++ b/spec/mapping_spec.rb @@ -0,0 +1,35 @@+require 'spec_helper' + +describe Mementus::Model do + + describe "Mapping" do + + class Mapping < Mementus::Model + attribute :description, String + ...
Test expected schema and values tuple mapping
diff --git a/core/dir/home_spec.rb b/core/dir/home_spec.rb index abc1234..def5678 100644 --- a/core/dir/home_spec.rb +++ b/core/dir/home_spec.rb @@ -0,0 +1,18 @@+require File.dirname(__FILE__) + '/../../spec_helper' +require File.dirname(__FILE__) + '/fixtures/common' + +ruby_version_is "1.9.2" do + describe "Dir.home...
Dir.home: Add initial tests for 1.9.2 method.
diff --git a/spec/integration/arel/update_spec.rb b/spec/integration/arel/update_spec.rb index abc1234..def5678 100644 --- a/spec/integration/arel/update_spec.rb +++ b/spec/integration/arel/update_spec.rb @@ -28,5 +28,6 @@ user.age = 21 expect(mapper.update(user, :age)).to be(1) + expect(mapper.first.age)...
Check if an object was actually updated. Dooh.
diff --git a/spec/skimlinks/configuration_spec.rb b/spec/skimlinks/configuration_spec.rb index abc1234..def5678 100644 --- a/spec/skimlinks/configuration_spec.rb +++ b/spec/skimlinks/configuration_spec.rb @@ -8,10 +8,16 @@ describe '.configure' do Skimlinks::Configuration::VALID_CONFIG_KEYS.each do |key| ...
Check for Configuration::VALID_FOOS in spec
diff --git a/spec/unit/cronenberg__config_spec.rb b/spec/unit/cronenberg__config_spec.rb index abc1234..def5678 100644 --- a/spec/unit/cronenberg__config_spec.rb +++ b/spec/unit/cronenberg__config_spec.rb @@ -12,9 +12,26 @@ } end + let(:config_hash_partial) do + { + host: 'vsphere.pizza.com'...
Test that Cronenberg::Config can list missing config items.
diff --git a/recipes/wordcount.rb b/recipes/wordcount.rb index abc1234..def5678 100644 --- a/recipes/wordcount.rb +++ b/recipes/wordcount.rb @@ -12,9 +12,10 @@ hops_hdfs_directory "#{Chef::Config.file_cache_path}/apache.txt" do - action :put + action :put_as_superuser dest "/user/#{node.flink.user}" owner n...
Create directories in HDFS as superuser, which already belongs to certs group and has the correct permissions to use the certificates
diff --git a/CKRefreshControl.podspec b/CKRefreshControl.podspec index abc1234..def5678 100644 --- a/CKRefreshControl.podspec +++ b/CKRefreshControl.podspec @@ -1,15 +1,15 @@ Pod::Spec.new do |s| s.name = "CKRefreshControl" - s.version = "1.0.0" + s.version = "1.1.0" s.summary = "A pull-t...
Update podspec to the 1.1 version This has actually been on CcooaPods/Specs for months; I just forgot to commit it here too.
diff --git a/ResearchKit.podspec b/ResearchKit.podspec index abc1234..def5678 100644 --- a/ResearchKit.podspec +++ b/ResearchKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'ResearchKit' - s.version = '1.3.0' + s.version = '1.3.1' s.summary = 'ResearchKit is an open source softw...
Update pod spec version number.
diff --git a/resque-retry.gemspec b/resque-retry.gemspec index abc1234..def5678 100644 --- a/resque-retry.gemspec +++ b/resque-retry.gemspec @@ -8,7 +8,7 @@ s.email = 'luke@lividpenguin.com' s.has_rdoc = false - s.files = %w(LICENSE Rakefile README.md) + s.files = %...
Include HISTORY.md file in gem. This one should really be tagged v0.0.2 ;-)
diff --git a/test/fibonacci_test.rb b/test/fibonacci_test.rb index abc1234..def5678 100644 --- a/test/fibonacci_test.rb +++ b/test/fibonacci_test.rb @@ -0,0 +1,46 @@+require 'minitest/autorun' +require 'fibonacci' + +class FibonacciTest < MiniTest::Unit::TestCase + def setup + @fib = Fibonacci.new + end + + def t...
Add tests for fib[], fib.terms method
diff --git a/app/controllers/appointment_summaries_controller.rb b/app/controllers/appointment_summaries_controller.rb index abc1234..def5678 100644 --- a/app/controllers/appointment_summaries_controller.rb +++ b/app/controllers/appointment_summaries_controller.rb @@ -6,7 +6,7 @@ end def create - @appointment...
Set current_user when creating AppointmentSummary
diff --git a/render_async.gemspec b/render_async.gemspec index abc1234..def5678 100644 --- a/render_async.gemspec +++ b/render_async.gemspec @@ -10,7 +10,7 @@ spec.email = ["kawsper@gmail.com"] spec.description = %q{RenderAsync lets you include pages asynchronously with AJAX} spec.summary = %q{R...
Add a webpage description to the Gemspec
diff --git a/Casks/bose-soundtouch.rb b/Casks/bose-soundtouch.rb index abc1234..def5678 100644 --- a/Casks/bose-soundtouch.rb +++ b/Casks/bose-soundtouch.rb @@ -0,0 +1,21 @@+cask :v1 => 'bose-soundtouch' do + version '9.0.41.11243' + sha256 '3eb78048bc8aa46b9d2613ff28d760fa7e47133384aca74f44aab4bc10c95f8a' + + url "...
Add Bose Soundtouch Controller 9.0.41
diff --git a/Casks/gurps-character-sheet.rb b/Casks/gurps-character-sheet.rb index abc1234..def5678 100644 --- a/Casks/gurps-character-sheet.rb +++ b/Casks/gurps-character-sheet.rb @@ -1,7 +1,9 @@ class GurpsCharacterSheet < Cask - url 'https://downloads.sourceforge.net/project/gcs-java/gcs-4.0.0-mac.zip' + version '...
Update GURPS Character Sheet.app to v1.0.4 GCS updated and the old download link is dead, so the cask needs to be updated to the new version.
diff --git a/app/models/patient.rb b/app/models/patient.rb index abc1234..def5678 100644 --- a/app/models/patient.rb +++ b/app/models/patient.rb @@ -3,7 +3,6 @@ include Mongoid::Timestamps include Mongoid::History::Trackable include Mongoid::Userstamp - include Mongoid::Search # Relationships has_many ...
Make search case insensitive and phone number format agnostic
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb index abc1234..def5678 100644 --- a/Library/Homebrew/test/testing_env.rb +++ b/Library/Homebrew/test/testing_env.rb @@ -0,0 +1,54 @@+# This software is in the public domain, furnished "as is", without technical +# support, and with...
Add new "testing environment" include.
diff --git a/test/integration/templates/gem_layout_test.rb b/test/integration/templates/gem_layout_test.rb index abc1234..def5678 100644 --- a/test/integration/templates/gem_layout_test.rb +++ b/test/integration/templates/gem_layout_test.rb @@ -0,0 +1,34 @@+require "integration_test_helper" + +class GemLayoutTest < Act...
Test that gem_layout renders feedback component This imports a test from Smokey [^1][^2] that confirms that the feedback component is present & functional. The Smokey test does not currently meet the eligibility criteria for inclusion in the repository [^3], but by adding this test to Static we can meet the "Second c...
diff --git a/aruba-doubles.gemspec b/aruba-doubles.gemspec index abc1234..def5678 100644 --- a/aruba-doubles.gemspec +++ b/aruba-doubles.gemspec @@ -2,10 +2,10 @@ Gem::Specification.new do |s| s.name = 'aruba-doubles' - s.version = '0.0.1' + s.version = '0.0.2' s.authors = ["Björn Albers"] ...
Update gemspec description and bump minor version
diff --git a/app/controllers/user/accounts_controller.rb b/app/controllers/user/accounts_controller.rb index abc1234..def5678 100644 --- a/app/controllers/user/accounts_controller.rb +++ b/app/controllers/user/accounts_controller.rb @@ -1,4 +1,6 @@ class User::AccountsController < ApplicationController + + skip_author...
Fix skip_authorization_check gone missing for switch_circle.
diff --git a/rufus-scheduler.gemspec b/rufus-scheduler.gemspec index abc1234..def5678 100644 --- a/rufus-scheduler.gemspec +++ b/rufus-scheduler.gemspec @@ -30,7 +30,7 @@ s.required_ruby_version = '>= 1.9' - s.add_runtime_dependency 'fugit', '~> 1.1', '>= 1.1.1' + s.add_runtime_dependency 'fugit', '~> 1.1', '>=...
Upgrade fugit to 1.1.4 (thus et-orbi To 1.1.2)
diff --git a/spec/togglr/toggles_with_active_record_spec.rb b/spec/togglr/toggles_with_active_record_spec.rb index abc1234..def5678 100644 --- a/spec/togglr/toggles_with_active_record_spec.rb +++ b/spec/togglr/toggles_with_active_record_spec.rb @@ -52,6 +52,7 @@ context 'value in the database' do i...
Expand test to show prior data
diff --git a/TodUni/db/migrate/20160531201359_add_attributes_to_projects.rb b/TodUni/db/migrate/20160531201359_add_attributes_to_projects.rb index abc1234..def5678 100644 --- a/TodUni/db/migrate/20160531201359_add_attributes_to_projects.rb +++ b/TodUni/db/migrate/20160531201359_add_attributes_to_projects.rb @@ -0,0 +1,...
Add date_beginning & budget, rename due_date to date_end in projects table migration
diff --git a/lib/dm-tags/tagging.rb b/lib/dm-tags/tagging.rb index abc1234..def5678 100644 --- a/lib/dm-tags/tagging.rb +++ b/lib/dm-tags/tagging.rb @@ -2,7 +2,7 @@ include DataMapper::Resource property :id, Serial - property :taggable_id, Integer, :required => true + property :taggable_id, Inte...
[dm-tags] Support dm-constraints in explicitly defined FK
diff --git a/lib/vcloud/rest_api.rb b/lib/vcloud/rest_api.rb index abc1234..def5678 100644 --- a/lib/vcloud/rest_api.rb +++ b/lib/vcloud/rest_api.rb @@ -31,7 +31,7 @@ :payload => payload, :verify_ssl => false, :headers => session.token.merge({ - :accept => VCloud::Constants::ACCEPT_HE...
Fix to include the indicated vcloud api version
diff --git a/app/controllers/expensesheets_controller.rb b/app/controllers/expensesheets_controller.rb index abc1234..def5678 100644 --- a/app/controllers/expensesheets_controller.rb +++ b/app/controllers/expensesheets_controller.rb @@ -1,10 +1,13 @@ class ExpensesheetsController < ApplicationController - before_act...
Add show method to expensesheets