diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/tasks/redis.rake b/lib/tasks/redis.rake index abc1234..def5678 100644 --- a/lib/tasks/redis.rake +++ b/lib/tasks/redis.rake @@ -0,0 +1,30 @@+task 'redis:clean_up' => ['environment'] do + return unless Rails.configuration.multisite + + dbs = RailsMultisite::ConnectionManagement.all_dbs + dbs << Disco...
Add rake task to clean up orphane Redis keys when a multisite has been removed.
diff --git a/week-4/homework-cheater/homework_cheater.rb b/week-4/homework-cheater/homework_cheater.rb index abc1234..def5678 100644 --- a/week-4/homework-cheater/homework_cheater.rb +++ b/week-4/homework-cheater/homework_cheater.rb @@ -1,23 +1,47 @@-essay_1 = "J. D. Salinger: J. D. Salinger was an American author. His...
Add initial solution for bonus challenge
diff --git a/config/deploy/production.rb b/config/deploy/production.rb index abc1234..def5678 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -5,6 +5,8 @@ server ENV['SIDEKIQ_SERVER_2'], user: ENV['SIDEKIQ_USER'], roles: %w{app worker} server ENV['SIDEKIQ_SERVER_3'], user: ENV['SIDEKIQ_US...
Add two more sidekiq machines
diff --git a/Library/Contributions/examples/brew-bottle.rb b/Library/Contributions/examples/brew-bottle.rb index abc1234..def5678 100644 --- a/Library/Contributions/examples/brew-bottle.rb +++ b/Library/Contributions/examples/brew-bottle.rb @@ -1,5 +1,7 @@ # Builds binary brew package -brew_install +require 'cmd/instal...
Fix brew bottle to work with refactor branch.
diff --git a/lib/dropdown.rb b/lib/dropdown.rb index abc1234..def5678 100644 --- a/lib/dropdown.rb +++ b/lib/dropdown.rb @@ -1,3 +1,3 @@-require 'dropdown/processor' -require 'dropdown/output_store' -require 'dropdown/markdown_renderer' +require_relative 'dropdown/processor' +require_relative 'dropdown/output_store' +r...
Change the require to require relative
diff --git a/meme_captain.gemspec b/meme_captain.gemspec index abc1234..def5678 100644 --- a/meme_captain.gemspec +++ b/meme_captain.gemspec @@ -18,7 +18,7 @@ s.add_dependency 'rmagick' s.add_development_dependency 'rake' - s.add_development_dependency 'rspec' + s.add_development_dependency 'rspec', '~> 3.2.0'...
Change rspec version requirement in gemspec.
diff --git a/files/lib/chef_compat/monkeypatches/chef.rb b/files/lib/chef_compat/monkeypatches/chef.rb index abc1234..def5678 100644 --- a/files/lib/chef_compat/monkeypatches/chef.rb +++ b/files/lib/chef_compat/monkeypatches/chef.rb @@ -1,3 +1,11 @@+require 'chef/chef_class' + class Chef NOT_PASSED = Object.new if ...
Add log_deprecation on platforms that don't have it
diff --git a/examples/rango/config.ru b/examples/rango/config.ru index abc1234..def5678 100644 --- a/examples/rango/config.ru +++ b/examples/rango/config.ru @@ -3,5 +3,19 @@ require_relative "init" +require "rango/gv" +require "pupu/helpers" + +Rango::Router.use(:usher) + +# register helpers +Rango::GV::View.send(:...
Use generic views so we don't have to implement any controllers
diff --git a/lib/has_face.rb b/lib/has_face.rb index abc1234..def5678 100644 --- a/lib/has_face.rb +++ b/lib/has_face.rb @@ -16,6 +16,10 @@ delegate config, "#{config}=", :to => HasFace::Configuration end + def configure + yield self + end + end end
Configure block should work correctly now.
diff --git a/lib/dm-validations/contextual_validators.rb b/lib/dm-validations/contextual_validators.rb index abc1234..def5678 100644 --- a/lib/dm-validations/contextual_validators.rb +++ b/lib/dm-validations/contextual_validators.rb @@ -43,7 +43,8 @@ contexts.clear end - # Execute all validators i...
Load together all properties that are lazy-designated but not yet loaded. This solves the problem that the presence of dm-validations causes any lazy-designated but not-yet-loaded properties to be loaded individually, one at a time, before an update/save. Also limits what gets loaded to only properties that would hav...
diff --git a/lib/generators/templates/rails_footnotes.rb b/lib/generators/templates/rails_footnotes.rb index abc1234..def5678 100644 --- a/lib/generators/templates/rails_footnotes.rb +++ b/lib/generators/templates/rails_footnotes.rb @@ -1,5 +1,5 @@-if defined?(Footnotes) && Rails.env.development? - Footnotes.run! # fi...
Change initializer template to support new loading method
diff --git a/CUtil.podspec b/CUtil.podspec index abc1234..def5678 100644 --- a/CUtil.podspec +++ b/CUtil.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CUtil" - s.version = "1.0.2" + s.version = "1.1.0" s.summary = "CUtil is a common utilities collection. It is designed as a tool-...
Update the version to 1.1.0 in podspec.
diff --git a/Casks/ubar.rb b/Casks/ubar.rb index abc1234..def5678 100644 --- a/Casks/ubar.rb +++ b/Casks/ubar.rb @@ -1,6 +1,6 @@ cask :v1 => 'ubar' do - version '2.5.0' - sha256 '0b5388a7bd599d48836e08b9138acc0c802aa86e65d6128f66e03a734eb2a823' + version '3.0.3' + sha256 '6e3d650aa0560e7f71c4e4b68f1fd175c1c76a9611f...
Update uBar to version 3.0.3
diff --git a/Casks/lastpass-universal.rb b/Casks/lastpass-universal.rb index abc1234..def5678 100644 --- a/Casks/lastpass-universal.rb +++ b/Casks/lastpass-universal.rb @@ -1,7 +1,6 @@ class LastpassUniversal < Cask url 'https://lastpass.com/lpmacosx.dmg' homepage 'https://lastpass.com/' - version '2.5.0' - sha...
Remove version number and SHA Change to 'latest'
diff --git a/observer/employee.rb b/observer/employee.rb index abc1234..def5678 100644 --- a/observer/employee.rb +++ b/observer/employee.rb @@ -1,28 +1,18 @@+require 'observer' + class Employee + include Observable + attr_reader :name attr_accessor :title, :salary def initialize(name, title, salary) ...
[observer] Use Observable module of standard library
diff --git a/Casks/flux.rb b/Casks/flux.rb index abc1234..def5678 100644 --- a/Casks/flux.rb +++ b/Casks/flux.rb @@ -5,7 +5,7 @@ url 'https://justgetflux.com/mac/Flux.zip' appcast 'https://justgetflux.com/mac/macflux.xml' name 'f.lux' - homepage 'http://justgetflux.com' + homepage 'https://justgetflux.com/' ...
Fix homepage to use SSL in f.lux Cask The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly makes it more secure and saves a HTTP round-trip.
diff --git a/ruby_event_store-browser/devserver/config.ru b/ruby_event_store-browser/devserver/config.ru index abc1234..def5678 100644 --- a/ruby_event_store-browser/devserver/config.ru +++ b/ruby_event_store-browser/devserver/config.ru @@ -4,7 +4,11 @@ repository = RubyEventStore::InMemoryRepository.new event_store =...
Extend example dev-server to have some correlated events
diff --git a/spec/mutex_based_synchronized_counter_spec.rb b/spec/mutex_based_synchronized_counter_spec.rb index abc1234..def5678 100644 --- a/spec/mutex_based_synchronized_counter_spec.rb +++ b/spec/mutex_based_synchronized_counter_spec.rb @@ -2,22 +2,49 @@ RSpec.describe Gracefully::MutexBasedSynchronizedCounter do...
Cover more examples for MutexBasedSynchronizedCounter
diff --git a/union_station_hooks_core.gemspec b/union_station_hooks_core.gemspec index abc1234..def5678 100644 --- a/union_station_hooks_core.gemspec +++ b/union_station_hooks_core.gemspec @@ -12,6 +12,7 @@ s.files = Dir[ "README.md", "LICENSE.md", + "*.gemspec", "lib/**/*" ] s.homepage = "htt...
Add .gemspec to gem so that the ':path' option in Gemfile works
diff --git a/db/migrate/20160107202325_make_custom_css_unlimited_length.rb b/db/migrate/20160107202325_make_custom_css_unlimited_length.rb index abc1234..def5678 100644 --- a/db/migrate/20160107202325_make_custom_css_unlimited_length.rb +++ b/db/migrate/20160107202325_make_custom_css_unlimited_length.rb @@ -0,0 +1,11 @...
Remove length limitations on custom content
diff --git a/Casks/bleep.rb b/Casks/bleep.rb index abc1234..def5678 100644 --- a/Casks/bleep.rb +++ b/Casks/bleep.rb @@ -5,8 +5,16 @@ # utorrent.com is the official download host per the vendor homepage url 'https://download-new.utorrent.com/endpoint/bleep/os/osx/track/stable/' name 'Bleep' - homepage 'http://...
Update Bleep.app homepage, add vendor and zap ~/Library files
diff --git a/app/controllers/message_threads_controller.rb b/app/controllers/message_threads_controller.rb index abc1234..def5678 100644 --- a/app/controllers/message_threads_controller.rb +++ b/app/controllers/message_threads_controller.rb @@ -5,22 +5,6 @@ def index @threads = MessageThread.public.order("upda...
Remove the controller methods for creating bare message threads
diff --git a/app/demo_data/fake_access_result_generator.rb b/app/demo_data/fake_access_result_generator.rb index abc1234..def5678 100644 --- a/app/demo_data/fake_access_result_generator.rb +++ b/app/demo_data/fake_access_result_generator.rb @@ -15,7 +15,7 @@ date_taken: DateTime.new(@dates.pop, 5, 15), sca...
Fix invalid fake data generator, revealed by new validation
diff --git a/elocal_api_support.gemspec b/elocal_api_support.gemspec index abc1234..def5678 100644 --- a/elocal_api_support.gemspec +++ b/elocal_api_support.gemspec @@ -21,6 +21,7 @@ spec.add_dependency 'activesupport', '>= 4.0.0' spec.add_dependency 'actionpack', '>= 4.0.0' spec.add_dependency 'activerecord', ...
Add kaminari dependency for now
diff --git a/rspec-puppet.gemspec b/rspec-puppet.gemspec index abc1234..def5678 100644 --- a/rspec-puppet.gemspec +++ b/rspec-puppet.gemspec @@ -11,7 +11,6 @@ s.files = Dir['CHANGELOG.md', 'LICENSE.md', 'README.md', 'lib/**/*', 'bin/**/*'] s.add_dependency 'rspec' - s.add_dependency 'rspec-expectations', '< 3.8...
Remove the temporary rspec-expectations pin
diff --git a/event_store-messaging.gemspec b/event_store-messaging.gemspec index abc1234..def5678 100644 --- a/event_store-messaging.gemspec +++ b/event_store-messaging.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = 'event_store-messaging' s.summary = 'Messaging primitives for EventStore using the...
Package version is increased from 0.2.0.3 to 0.3.0.0
diff --git a/examples/offset-profile.rb b/examples/offset-profile.rb index abc1234..def5678 100644 --- a/examples/offset-profile.rb +++ b/examples/offset-profile.rb @@ -0,0 +1,27 @@+require '../src/excel_to_code' +require 'ruby-prof' + +profile = RubyProf.profile do + this_directory = File.dirname(__FILE__) + comman...
Add an example of profiling a translation
diff --git a/examples/sinatra/config.ru b/examples/sinatra/config.ru index abc1234..def5678 100644 --- a/examples/sinatra/config.ru +++ b/examples/sinatra/config.ru @@ -6,7 +6,7 @@ s.main = 'application' } -map '/__opal_source_maps__' do +map opal.source_maps.prefix do run opal.source_maps end @@ -15,14 +15,...
Update sinatra example app to use SM prefix
diff --git a/spec/unit/memoizable/module_methods/unmemoized_instance_method_spec.rb b/spec/unit/memoizable/module_methods/unmemoized_instance_method_spec.rb index abc1234..def5678 100644 --- a/spec/unit/memoizable/module_methods/unmemoized_instance_method_spec.rb +++ b/spec/unit/memoizable/module_methods/unmemoized_ins...
Fix spec to work with ruby 1.8
diff --git a/spec/helpers/fileutils.rb b/spec/helpers/fileutils.rb index abc1234..def5678 100644 --- a/spec/helpers/fileutils.rb +++ b/spec/helpers/fileutils.rb @@ -2,7 +2,7 @@ # Shamelessly poached from homebrew def mktemp(opts={}) - tmp_prefix = ENV['HOMEBREW_TEMP'] || '/tmp' + tmp_prefix = ENV['TWAT_TEM...
Make temp directories off current dir for travis
diff --git a/spec/mailers/previews/user_mailer_preview.rb b/spec/mailers/previews/user_mailer_preview.rb index abc1234..def5678 100644 --- a/spec/mailers/previews/user_mailer_preview.rb +++ b/spec/mailers/previews/user_mailer_preview.rb @@ -3,4 +3,13 @@ def agency_setup_reminder_preview UserMailer.agency_setup_r...
Add Email Preview for trip confirmation emails
diff --git a/spec/classes/mod/jk_spec.rb b/spec/classes/mod/jk_spec.rb index abc1234..def5678 100644 --- a/spec/classes/mod/jk_spec.rb +++ b/spec/classes/mod/jk_spec.rb @@ -9,8 +9,8 @@ it { is_expected.to contain_apache__mod('jk') } it { is_expected.to contain_file('jk.conf').that_notifies('Class[apache::service]'...
Correct typo in spec test for apache::mod::jk
diff --git a/ruby/subscription-card-update.rb b/ruby/subscription-card-update.rb index abc1234..def5678 100644 --- a/ruby/subscription-card-update.rb +++ b/ruby/subscription-card-update.rb @@ -1,5 +1,5 @@ -gem 'chargify_api_ares', '=1.3.5' +gem 'chargify_api_ares', '=1.4.3' require 'chargify_api_ares' Chargify.con...
Update to latest gem and good sub id
diff --git a/spec/models/section_spec.rb b/spec/models/section_spec.rb index abc1234..def5678 100644 --- a/spec/models/section_spec.rb +++ b/spec/models/section_spec.rb @@ -1,13 +1,15 @@ require 'rails_helper' describe Section do - let(:attrs) { FactoryGirl.attributes_for(:section) } - let(:course) { double("cours...
Refactor sections model spec file Addresses Issue #263 Added tests for model validations and associations. Removed test for duplicate positions and FactoryGirl variables. I extracted the methods in the before action and moved them to their respectively model's initialization, thus removing the need for the before act...
diff --git a/spec/models/student_spec.rb b/spec/models/student_spec.rb index abc1234..def5678 100644 --- a/spec/models/student_spec.rb +++ b/spec/models/student_spec.rb @@ -13,4 +13,12 @@ it { should have_many(:school_performaces) } it { should have_many(:incidents) } end + + describe '#show_name' do + ...
Add tests for student model
diff --git a/process_host.gemspec b/process_host.gemspec index abc1234..def5678 100644 --- a/process_host.gemspec +++ b/process_host.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'process_host' - s.version = '0.3.0' + s.version = '0.0.3.1' s.summary = 'Run multiple logical pr...
Package version is increased from 0.3.0 to 0.0.3.1
diff --git a/app/controllers/api/v1/reports_controller.rb b/app/controllers/api/v1/reports_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/v1/reports_controller.rb +++ b/app/controllers/api/v1/reports_controller.rb @@ -12,7 +12,7 @@ render json: API::V1::Report.new(offering, request.protocol, ...
Fix comment in report controller [#114840697]
diff --git a/app/controllers/facebooked/api_controller.rb b/app/controllers/facebooked/api_controller.rb index abc1234..def5678 100644 --- a/app/controllers/facebooked/api_controller.rb +++ b/app/controllers/facebooked/api_controller.rb @@ -9,7 +9,7 @@ return render :inline => '[]' unless response['data'] ...
Return an empty array when user has not facebook albums.
diff --git a/reagan.rb b/reagan.rb index abc1234..def5678 100644 --- a/reagan.rb +++ b/reagan.rb @@ -27,8 +27,12 @@ pretty_print('The following cookbooks were changed') cookbooks.each { |cb| puts cb } +results = [] cookbooks.each do |cookbook| pretty_print("Testing cookbook #{cookbook}") - ReaganTestVersion.new...
Exit 1 if any of the tests failed so that Jenkins can fail the build
diff --git a/app/controllers/procurement_areas_controller.rb b/app/controllers/procurement_areas_controller.rb index abc1234..def5678 100644 --- a/app/controllers/procurement_areas_controller.rb +++ b/app/controllers/procurement_areas_controller.rb @@ -32,9 +32,9 @@ end def destroy - if procurement_area.destr...
Remove conditional around destroy action
diff --git a/app/controllers/spree/admin/sisow_controller.rb b/app/controllers/spree/admin/sisow_controller.rb index abc1234..def5678 100644 --- a/app/controllers/spree/admin/sisow_controller.rb +++ b/app/controllers/spree/admin/sisow_controller.rb @@ -5,10 +5,19 @@ end def update - Spree::Config....
Use strong params to update the configuration
diff --git a/app/services/gobierto_common/context_service.rb b/app/services/gobierto_common/context_service.rb index abc1234..def5678 100644 --- a/app/services/gobierto_common/context_service.rb +++ b/app/services/gobierto_common/context_service.rb @@ -21,7 +21,7 @@ private def fill_missing_parts(context) - ...
Fix prefix expression of global ids
diff --git a/sentry-raven.gemspec b/sentry-raven.gemspec index abc1234..def5678 100644 --- a/sentry-raven.gemspec +++ b/sentry-raven.gemspec @@ -16,7 +16,7 @@ gem.license = 'Apache-2.0' gem.required_ruby_version = '>= 1.9.0' - gem.add_dependency "faraday", ">= 0.7.6" + gem.add_dependency "faraday", ">= 0.7.6",...
Add an upper version bound on Faraday
diff --git a/famfamfam_flags_rails.gemspec b/famfamfam_flags_rails.gemspec index abc1234..def5678 100644 --- a/famfamfam_flags_rails.gemspec +++ b/famfamfam_flags_rails.gemspec @@ -5,15 +5,15 @@ gem.authors = ["Tanguy Krotoff (Flags by Mark James)"] gem.email = ["tkrotoff@gmail.com"] gem.descripti...
Update gemspec file Using Bundler version 1.1.5
diff --git a/Motif.podspec b/Motif.podspec index abc1234..def5678 100644 --- a/Motif.podspec +++ b/Motif.podspec @@ -8,17 +8,17 @@ s.osx.deployment_target = '10.8' s.ios.deployment_target = '7.0' s.summary = 'A lightweight and customizable JSON stylesheet framework for iOS' - s.homepage = 'https://github.com/...
Fix podspec source git refernece
diff --git a/gds-sso.rb b/gds-sso.rb index abc1234..def5678 100644 --- a/gds-sso.rb +++ b/gds-sso.rb @@ -1,6 +1,6 @@ GDS::SSO.config do |config| config.user_model = "User" - config.oauth_id = ENV["SPECIALIST_PUBLISHER_OAUTH_ID"] || "not used" - config.oauth_secret = ENV["SPECIALIST_PUBLISHER_OAUTH_SECRET"] |...
Use the correct ENV keys for SSO
diff --git a/mrblib/Siren.rb b/mrblib/Siren.rb index abc1234..def5678 100644 --- a/mrblib/Siren.rb +++ b/mrblib/Siren.rb @@ -4,13 +4,54 @@ # module Siren - { - box: Prim, - copy: Build, - vertex: Build, - line: Build, - infline: Build, + # Prim package + box: Prim, + box2p: ...
Add alias name for methods of Build, Prim, Offset and BRepIO.
diff --git a/guard-coffeescript.gemspec b/guard-coffeescript.gemspec index abc1234..def5678 100644 --- a/guard-coffeescript.gemspec +++ b/guard-coffeescript.gemspec @@ -15,7 +15,7 @@ s.required_rubygems_version = '>= 1.3.6' s.rubyforge_project = 'guard-coffeescript' - s.add_dependency 'guard', '~> 0.2.1' + s.a...
Use latest guard for development
diff --git a/spec/engine_settings.rb b/spec/engine_settings.rb index abc1234..def5678 100644 --- a/spec/engine_settings.rb +++ b/spec/engine_settings.rb @@ -0,0 +1,64 @@+# -*- coding: utf-8 -*- + +require 'simplecov' +require 'simplecov-rcov' +require 'logger' +require 'coveralls' + +Coveralls.wear! +SimpleCov.formatte...
Add some tests for Engine::Settings
diff --git a/specs/ristretto_spec.rb b/specs/ristretto_spec.rb index abc1234..def5678 100644 --- a/specs/ristretto_spec.rb +++ b/specs/ristretto_spec.rb @@ -6,14 +6,24 @@ let(:indented_codeblocks) { Ristretto.parse('specs/markdown/indented_codeblocks.md') } describe "#execute" do - it "executes parsed ruby co...
Add more specs to implement
diff --git a/lib/sastrawi/dictionary/array_dictionary.rb b/lib/sastrawi/dictionary/array_dictionary.rb index abc1234..def5678 100644 --- a/lib/sastrawi/dictionary/array_dictionary.rb +++ b/lib/sastrawi/dictionary/array_dictionary.rb @@ -18,7 +18,9 @@ end def add_words(new_words) - @words.concat(ne...
Use defined function to add new words into dictionary
diff --git a/lib/circleci/coverage_reporter/reporters/link.rb b/lib/circleci/coverage_reporter/reporters/link.rb index abc1234..def5678 100644 --- a/lib/circleci/coverage_reporter/reporters/link.rb +++ b/lib/circleci/coverage_reporter/reporters/link.rb @@ -10,25 +10,28 @@ end end - def initi...
Use keyward arguments to ensure that Link reporter has name and path
diff --git a/pandata.gemspec b/pandata.gemspec index abc1234..def5678 100644 --- a/pandata.gemspec +++ b/pandata.gemspec @@ -7,6 +7,7 @@ s.summary = 'A Pandora web scraper' s.description = 'A library and tool for downloading Pandora data (likes, bookmarks, stations, etc.)' ...
Add license to gemspec file
diff --git a/shittydb.gemspec b/shittydb.gemspec index abc1234..def5678 100644 --- a/shittydb.gemspec +++ b/shittydb.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = 'shittydb' - spec.version = '1.0.0' + spec.version = '0.0.0' spec.authors = ['ShittyDB Industries, ...
Change gem version to 0.0.0 I fucked up and the gem version is 1.0.0 and it should be 0.0.0 I have brought shame and dishonor to my family.
diff --git a/summon.rb b/summon.rb index abc1234..def5678 100644 --- a/summon.rb +++ b/summon.rb @@ -5,7 +5,7 @@ desc "Tool to make working with secrets easier" homepage "https://github.com/conjurinc/summon" url "https://github.com/conjurinc/summon/releases/download/v#{VERSION}/summon_v#{VERSION}_darwin_amd64.t...
Set correct version for v0.3.3
diff --git a/lib/delocalize/parameter_delocalizing.rb b/lib/delocalize/parameter_delocalizing.rb index abc1234..def5678 100644 --- a/lib/delocalize/parameter_delocalizing.rb +++ b/lib/delocalize/parameter_delocalizing.rb @@ -22,7 +22,7 @@ end def delocalize_parser_for(options, key_stack) - parser_type =...
Break if key not in options hash. Fixes clemens/delocalize#71
diff --git a/lib/emailvision4rails/models/campaign.rb b/lib/emailvision4rails/models/campaign.rb index abc1234..def5678 100644 --- a/lib/emailvision4rails/models/campaign.rb +++ b/lib/emailvision4rails/models/campaign.rb @@ -1,6 +1,7 @@ class Emailvision4rails::Campaign < Emailvision4rails::Base attributes( + :id...
[Campaign] Store id and add post method
diff --git a/lib/project/progress_hud/progress_hud.rb b/lib/project/progress_hud/progress_hud.rb index abc1234..def5678 100644 --- a/lib/project/progress_hud/progress_hud.rb +++ b/lib/project/progress_hud/progress_hud.rb @@ -6,8 +6,10 @@ class ProgressHUD < Android::App::DialogFragment - def initialize(title="Load...
Add a progressbar to ProgressHUD
diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index abc1234..def5678 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -1,21 +1,18 @@ RSpec.configure do |config| + + # config.use_transactional_fixtures = false + config.before(:suite) do D...
Make Guard work with rspec features
diff --git a/spec/features/players/view_spec.rb b/spec/features/players/view_spec.rb index abc1234..def5678 100644 --- a/spec/features/players/view_spec.rb +++ b/spec/features/players/view_spec.rb @@ -0,0 +1,47 @@+require 'spec_helper.rb' + +feature "Viewing a Player", js: true do + let(:p1) {FactoryGirl::create(:pl...
Add feature spec for viewing a single player
diff --git a/spec/helpers/tenant_helper_spec.rb b/spec/helpers/tenant_helper_spec.rb index abc1234..def5678 100644 --- a/spec/helpers/tenant_helper_spec.rb +++ b/spec/helpers/tenant_helper_spec.rb @@ -1,14 +1,16 @@ require "spec_helper" -describe ActsAsTenant::TenantHelper, type: :helper do - describe "#current_tena...
Refactor view helper spec to test against ActionView::Base
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb index abc1234..def5678 100644 --- a/activesupport/lib/active_support/test_case.rb +++ b/activesupport/lib/active_support/test_case.rb @@ -8,10 +8,14 @@ require 'minitest/unit' # Hack around the test/uni...
Fix compatibility with Ruby 1.8 that also has the Miniunit gem installed. Signed-off-by: Jeremy Kemper <b3f594e10a9edcf5413cf1190121d45078c62290@bitsweat.net>
diff --git a/examples/let_it_be_experiment.rb b/examples/let_it_be_experiment.rb index abc1234..def5678 100644 --- a/examples/let_it_be_experiment.rb +++ b/examples/let_it_be_experiment.rb @@ -0,0 +1,11 @@+# frozen_string_literal: true + +require '../../fast/lib/fast' + +# For specs using `let(:something) { create ... ...
Add Let it be experiment
diff --git a/recipes/configure.rb b/recipes/configure.rb index abc1234..def5678 100644 --- a/recipes/configure.rb +++ b/recipes/configure.rb @@ -1,8 +1,6 @@ template node['pulledpork']['disablesid'] do source 'disablesid.conf.erb' - owner 'root' - group 'root' mode '0640' notifies :run, 'execute[run_pulled...
Remove default user/groups from resources Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
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,8 @@ Panopticon::Application.routes.draw do resources :artefacts - resources :tags, :defaults => { :format => 'json' } + resources :tags, :defaults => {:format => 'json'} + mat...
Allow unescaped slashes in tag IDs.
diff --git a/test/unit/database_test.rb b/test/unit/database_test.rb index abc1234..def5678 100644 --- a/test/unit/database_test.rb +++ b/test/unit/database_test.rb @@ -0,0 +1,19 @@+require 'tmpdir' +require_relative '../../lib/yomou/database' + +class DatabaseTest < Test::Unit::TestCase + setup do + end + + sub_tes...
Add database init test case
diff --git a/app/controllers/broggle/broggles_controller.rb b/app/controllers/broggle/broggles_controller.rb index abc1234..def5678 100644 --- a/app/controllers/broggle/broggles_controller.rb +++ b/app/controllers/broggle/broggles_controller.rb @@ -20,7 +20,7 @@ end def deploy - broggle.deploy(params['s...
Change param names for searching
diff --git a/app/controllers/learning_objects_controller.rb b/app/controllers/learning_objects_controller.rb index abc1234..def5678 100644 --- a/app/controllers/learning_objects_controller.rb +++ b/app/controllers/learning_objects_controller.rb @@ -1,6 +1,6 @@ class LearningObjectsController < ApplicationController ...
Add learning object delete feature
diff --git a/app/presenters/drug_safety_update_presenter.rb b/app/presenters/drug_safety_update_presenter.rb index abc1234..def5678 100644 --- a/app/presenters/drug_safety_update_presenter.rb +++ b/app/presenters/drug_safety_update_presenter.rb @@ -1,6 +1,7 @@ class DrugSafetyUpdatePresenter < DocumentPresenter dele...
Add published_at date to visible metadata for DSU documents
diff --git a/app/services/asset_manager/attachment_updater/replacement_id_updates.rb b/app/services/asset_manager/attachment_updater/replacement_id_updates.rb index abc1234..def5678 100644 --- a/app/services/asset_manager/attachment_updater/replacement_id_updates.rb +++ b/app/services/asset_manager/attachment_updater/r...
Refactor the ReplacementIdUpdates class for readability Format to avoid the lines which were too long. Also reduce the code duplication by using a variable.
diff --git a/lib/expando/api_ai/system_entity_examples.rb b/lib/expando/api_ai/system_entity_examples.rb index abc1234..def5678 100644 --- a/lib/expando/api_ai/system_entity_examples.rb +++ b/lib/expando/api_ai/system_entity_examples.rb @@ -54,6 +54,12 @@ 'sys.any' => [ 'anything', 'this i...
Add time-period to system entity examples
diff --git a/app/controllers/user_preference_controller.rb b/app/controllers/user_preference_controller.rb index abc1234..def5678 100644 --- a/app/controllers/user_preference_controller.rb +++ b/app/controllers/user_preference_controller.rb @@ -32,7 +32,7 @@ pref = UserPreference.new unless k...
Use named constants for HTTP response codes.
diff --git a/academic_benchmarks.gemspec b/academic_benchmarks.gemspec index abc1234..def5678 100644 --- a/academic_benchmarks.gemspec +++ b/academic_benchmarks.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'academic_benchmarks' - s.version = '0.0.2' - s.date = '2015-12-07' + s....
Bump gem version to 0.0.3 Test Plan: - None Change-Id: I290e263abee8c990a9393852b2e0bfc96071b144
diff --git a/lib/akashi/ec2/key_pair.rb b/lib/akashi/ec2/key_pair.rb index abc1234..def5678 100644 --- a/lib/akashi/ec2/key_pair.rb +++ b/lib/akashi/ec2/key_pair.rb @@ -6,7 +6,7 @@ def_delegators :@object, :fingerprint, :name class << self - def create(public_key) + def create(public_key:) ...
Change arguments of Akashi::Ec2::KeyPair.create to keyword arguments
diff --git a/lib/celluloid/responses.rb b/lib/celluloid/responses.rb index abc1234..def5678 100644 --- a/lib/celluloid/responses.rb +++ b/lib/celluloid/responses.rb @@ -17,7 +17,7 @@ if super.is_a? AbortError # Aborts are caused by caller error, so ensure they capture the # caller's backtrace in...
[CS] Remove useless exception message duplication
diff --git a/lib/presentation/window.rb b/lib/presentation/window.rb index abc1234..def5678 100644 --- a/lib/presentation/window.rb +++ b/lib/presentation/window.rb @@ -13,12 +13,14 @@ @slide_deck.next_slide when Gosu::KbLeft @slide_deck.previous_slide + else + # @slide_deck.current_...
Change behavior of up/down keys to be more intuitive.
diff --git a/lib/psd/image_modes/rgb.rb b/lib/psd/image_modes/rgb.rb index abc1234..def5678 100644 --- a/lib/psd/image_modes/rgb.rb +++ b/lib/psd/image_modes/rgb.rb @@ -5,10 +5,9 @@ def combine_rgb8_channel @num_pixels.times do |i| - index = 0 pixel = {r: 0, g: 0, b: 0, a: 255} - P...
Clean up RGB8 processing a little
diff --git a/APIModel.podspec b/APIModel.podspec index abc1234..def5678 100644 --- a/APIModel.podspec +++ b/APIModel.podspec @@ -18,7 +18,7 @@ s.source_files = "Source/**/*" s.requires_arc = true - s.dependency "Alamofire", "~> 1.2" + s.dependency "Alamofire", "~> 2.0" s.dependency "SwiftyJSON", "~> 2.2.1"...
Update Podspec dependency for Alamfire
diff --git a/app/models/book_category.rb b/app/models/book_category.rb index abc1234..def5678 100644 --- a/app/models/book_category.rb +++ b/app/models/book_category.rb @@ -3,6 +3,6 @@ belongs_to :book belongs_to :category - validates: :book_id, :category_id, presence: :true + validates :book_id, :category_i...
Fix syntax error in validations
diff --git a/spec/version_spec.rb b/spec/version_spec.rb index abc1234..def5678 100644 --- a/spec/version_spec.rb +++ b/spec/version_spec.rb @@ -0,0 +1,7 @@+require 'spec_helper' + +describe "#{Github::Status} VERSION" do + it "should be version 0.0.1" do + Github::VERSION.should == "0.0.1" + end +end
Add spec to ensure the gem version number always is updated before pushing a release to rubygems.
diff --git a/tasks/media.rake b/tasks/media.rake index abc1234..def5678 100644 --- a/tasks/media.rake +++ b/tasks/media.rake @@ -0,0 +1,40 @@+target_dir = "target/tyrian-assets" + +task 'unzip_tyrian_assets' do + download_task = download("downloads/tyrian-graphics.zip" => "http://lostgarden.com/Remastered%20Tyrian%20G...
Add in start of rake tasks to extract the appropriate assets
diff --git a/lib/typus/configuration.rb b/lib/typus/configuration.rb index abc1234..def5678 100644 --- a/lib/typus/configuration.rb +++ b/lib/typus/configuration.rb @@ -10,20 +10,19 @@ # Typus::Configuration.options[:app_name] = "Your App Name" # Typus::Configuration.options[:per_page] = 15 # - @@o...
Load typus.yml on plugins ...
diff --git a/core/enumerator/arithmetic_sequence/new_spec.rb b/core/enumerator/arithmetic_sequence/new_spec.rb index abc1234..def5678 100644 --- a/core/enumerator/arithmetic_sequence/new_spec.rb +++ b/core/enumerator/arithmetic_sequence/new_spec.rb @@ -1,7 +1,7 @@ require_relative '../../../spec_helper' ruby_version...
Fix a couple small typos
diff --git a/lib/feed2email/database.rb b/lib/feed2email/database.rb index abc1234..def5678 100644 --- a/lib/feed2email/database.rb +++ b/lib/feed2email/database.rb @@ -1,4 +1,3 @@-require 'fileutils' require 'sequel' module Feed2Email
Remove leftover require of FileUtils
diff --git a/lib/interest/definition.rb b/lib/interest/definition.rb index abc1234..def5678 100644 --- a/lib/interest/definition.rb +++ b/lib/interest/definition.rb @@ -19,7 +19,7 @@ __send__ name end - define_method :respond_to_missing? do |name, include_private = true| + def...
Change default argument value for respond_to_missing?
diff --git a/docks.gemspec b/docks.gemspec index abc1234..def5678 100644 --- a/docks.gemspec +++ b/docks.gemspec @@ -27,7 +27,7 @@ s.add_dependency 'sass', '~> 3.3' s.add_development_dependency 'bundler', '~> 1.3' - s.add_development_dependency 'rake' + s.add_development_dependency 'rake', '~> 10.4'...
Add version dep for rake
diff --git a/lib/jekyll/amp_generate.rb b/lib/jekyll/amp_generate.rb index abc1234..def5678 100644 --- a/lib/jekyll/amp_generate.rb +++ b/lib/jekyll/amp_generate.rb @@ -17,6 +17,9 @@ # Remove non needed keys from data # Excerpt will cause an error if kept self.data.delete('excerpt') + # Generat...
Fix generating posts with permalinks
diff --git a/db/post_migrate/20190301081611_migrate_project_migrate_sidekiq_queue.rb b/db/post_migrate/20190301081611_migrate_project_migrate_sidekiq_queue.rb index abc1234..def5678 100644 --- a/db/post_migrate/20190301081611_migrate_project_migrate_sidekiq_queue.rb +++ b/db/post_migrate/20190301081611_migrate_project_...
Remove duplicate definition of DOWNTIME This silences the warning: 20190301081611_migrate_project_migrate_sidekiq_queue.rb:8: warning: already initialized constant MigrateProjectMigrateSidekiqQueue::DOWNTIME
diff --git a/lib/message_queue/rails.rb b/lib/message_queue/rails.rb index abc1234..def5678 100644 --- a/lib/message_queue/rails.rb +++ b/lib/message_queue/rails.rb @@ -2,7 +2,7 @@ def self.hook_rails! config_file = ::Rails.root.join("config", "message_queue.yml") config = if config_file.exist? - ...
Fix bug in loading settings for Rails env
diff --git a/spec/pptx/smoke/api_bullet_spec.rb b/spec/pptx/smoke/api_bullet_spec.rb index abc1234..def5678 100644 --- a/spec/pptx/smoke/api_bullet_spec.rb +++ b/spec/pptx/smoke/api_bullet_spec.rb @@ -2,6 +2,7 @@ describe 'ApiBullet section tests' do it 'ApiBullet | GetClassType method' do pptx = DocBuilderWrap...
Add bullet tests for presentation.
diff --git a/spec/tic_tac_toe/view/game_spec.rb b/spec/tic_tac_toe/view/game_spec.rb index abc1234..def5678 100644 --- a/spec/tic_tac_toe/view/game_spec.rb +++ b/spec/tic_tac_toe/view/game_spec.rb @@ -8,4 +8,12 @@ expect(gv.render).to be_a(String).and start_with('<!DOCTYPE html>').and end_with("</html>\n") end ...
Add a view test for current_mark
diff --git a/lib/rodent/test_helpers.rb b/lib/rodent/test_helpers.rb index abc1234..def5678 100644 --- a/lib/rodent/test_helpers.rb +++ b/lib/rodent/test_helpers.rb @@ -1,8 +1,10 @@+require 'multi_json' + module Rodent module Test module Helpers def request(path, *args) - @rodent_response = api.r...
Convert response to json in test helper
diff --git a/lib/rom/memory/relation.rb b/lib/rom/memory/relation.rb index abc1234..def5678 100644 --- a/lib/rom/memory/relation.rb +++ b/lib/rom/memory/relation.rb @@ -3,7 +3,7 @@ # Relation subclass for memory adapter # # @example - # class Users < ROM::Relation[:memory + # class Users < ROM::...
Add missing `]` to class doc of Memory::Relation [ci skip]
diff --git a/lib/tasks/smoke_tests.rake b/lib/tasks/smoke_tests.rake index abc1234..def5678 100644 --- a/lib/tasks/smoke_tests.rake +++ b/lib/tasks/smoke_tests.rake @@ -4,7 +4,5 @@ desc "Run the smoke tests" RSpec::Core::RakeTask.new(:smoke) do |t| t.pattern = "spec/smoke/**/*.rb" - response = `curl --sile...
Revert "added check for local rails server before running webdriver tests" This reverts commit 130601a6ffb31c0aba06da63544049f0fa315547.
diff --git a/components/plugins/sidebars/xml_controller.rb b/components/plugins/sidebars/xml_controller.rb index abc1234..def5678 100644 --- a/components/plugins/sidebars/xml_controller.rb +++ b/components/plugins/sidebars/xml_controller.rb @@ -7,5 +7,5 @@ setting :trackbacks, false, :input_type => :checkbox set...
Remove Atom 0.3 from the XML sidebar, because we don't support it anymore git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1118 820eb932-12ee-0310-9ca8-eeb645f39767
diff --git a/lib/cellular/models/sms.rb b/lib/cellular/models/sms.rb index abc1234..def5678 100644 --- a/lib/cellular/models/sms.rb +++ b/lib/cellular/models/sms.rb @@ -1,7 +1,7 @@ module Cellular class SMS - attr_accessor :recipient, :sender, :mesage, :price, :country + attr_accessor :recipient, :sender, :m...
Fix typo in SMS attr_accessor
diff --git a/ruby/roman.rb b/ruby/roman.rb index abc1234..def5678 100644 --- a/ruby/roman.rb +++ b/ruby/roman.rb @@ -0,0 +1,29 @@+#!/bin/env ruby + +# Demonstrate the use of `method_missing' to create a flexible API +class Roman + def self.method_missing name, *args + roman = name.to_s + .gsub("IV", "IIII") + ...
Add a possible use of 'method_missing'
diff --git a/lib/em-c2dm/redis_store.rb b/lib/em-c2dm/redis_store.rb index abc1234..def5678 100644 --- a/lib/em-c2dm/redis_store.rb +++ b/lib/em-c2dm/redis_store.rb @@ -1,7 +1,7 @@ module EventMachine module C2DM class RedisStore - KEY = "em-c2dm:auth_token" + KEY = "em-c2dm:token" def initia...
Use uniform language for token
diff --git a/lib/frontend_generators.rb b/lib/frontend_generators.rb index abc1234..def5678 100644 --- a/lib/frontend_generators.rb +++ b/lib/frontend_generators.rb @@ -4,7 +4,11 @@ class Bootstrap def run - + FileUtils.cp(bootstrap_css, css_destination) + end + + def css_destination + Fi...
Add a method to copy the boostrap.css file into the Rails application
diff --git a/test/shopify_app/webhooks_controller_test.rb b/test/shopify_app/webhooks_controller_test.rb index abc1234..def5678 100644 --- a/test/shopify_app/webhooks_controller_test.rb +++ b/test/shopify_app/webhooks_controller_test.rb @@ -22,7 +22,7 @@ test "#carts_update should verify request" do with_applica...
Update tests for webhook controller