diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/app/views/courses/course.json.jbuilder b/app/views/courses/course.json.jbuilder index abc1234..def5678 100644 --- a/app/views/courses/course.json.jbuilder +++ b/app/views/courses/course.json.jbuilder @@ -13,7 +13,7 @@ json.edited_count number_to_human @course.article_count json.edit_count number_to_hu...
Update course header stats to use students_without_instructor_students
diff --git a/lib/torkify.rb b/lib/torkify.rb index abc1234..def5678 100644 --- a/lib/torkify.rb +++ b/lib/torkify.rb @@ -1,4 +1,5 @@ require "torkify/version" +require 'log4r' # Listen to tork events and execute ruby code when they happen. # @@ -15,6 +16,7 @@ # # or listener.start_loop # # or listener.start_wi...
Move file require out of method
diff --git a/language/file_spec.rb b/language/file_spec.rb index abc1234..def5678 100644 --- a/language/file_spec.rb +++ b/language/file_spec.rb @@ -6,18 +6,32 @@ it "equals the current filename" do File.basename(__FILE__).should == "file_spec.rb" end - - it "equals the full path to the file when required"...
Correct load path expectation and add relative path expectation for __FILE__
diff --git a/lib/foreman/kicker.rb b/lib/foreman/kicker.rb index abc1234..def5678 100644 --- a/lib/foreman/kicker.rb +++ b/lib/foreman/kicker.rb @@ -23,6 +23,18 @@ @watchdog.start(*args.map(&:to_s)) end + def self.wait + loop do + begin + TCPSocket.open('127.0.0.1', self.port).close...
Add feature to wait until socket is open
diff --git a/db/migrate/20130703124306_add_archived_field_to_products.rb b/db/migrate/20130703124306_add_archived_field_to_products.rb index abc1234..def5678 100644 --- a/db/migrate/20130703124306_add_archived_field_to_products.rb +++ b/db/migrate/20130703124306_add_archived_field_to_products.rb @@ -0,0 +1,9 @@+class A...
Add archived field to products
diff --git a/lib/mips/assembler.rb b/lib/mips/assembler.rb index abc1234..def5678 100644 --- a/lib/mips/assembler.rb +++ b/lib/mips/assembler.rb @@ -22,9 +22,8 @@ line.sub!(/#*/, "") # Remove comments. line.strip! - read_tag line - return if line.empty? # Tag line. - + line = read_tag(li...
Fix small bug in read_tag.
diff --git a/lib/mips/assembler.rb b/lib/mips/assembler.rb index abc1234..def5678 100644 --- a/lib/mips/assembler.rb +++ b/lib/mips/assembler.rb @@ -1,12 +1,8 @@ module MIPS + SYNTAX = /^\s*((?<tag>[a-zA-Z]\w*)\s*:\s*)?((?<cmd>[a-z]+)\s*((?<arg1>\$?\w+)\s*(,\s*((?<arg2>\$?\w+)|((?<offset>\d+)\(\s*(?<arg2>\$\w+)\s*\)))...
Use regex to define syntax
diff --git a/app/controllers/spree/wished_products_controller.rb b/app/controllers/spree/wished_products_controller.rb index abc1234..def5678 100644 --- a/app/controllers/spree/wished_products_controller.rb +++ b/app/controllers/spree/wished_products_controller.rb @@ -19,7 +19,7 @@ def update @wished_product =...
Fix typo for wished_product_attributes within WishedProductsController Fixes #54
diff --git a/lib/isurvey.rb b/lib/isurvey.rb index abc1234..def5678 100644 --- a/lib/isurvey.rb +++ b/lib/isurvey.rb @@ -1,30 +1,98 @@ require "isurvey/version" module Isurvey - attr_accessor :company_identifier, :survey_password + class SOAPClient + attr_accessor :company_identifier, :survey_password - def...
Add question and answer wrappers
diff --git a/lib/simple_segment.rb b/lib/simple_segment.rb index abc1234..def5678 100644 --- a/lib/simple_segment.rb +++ b/lib/simple_segment.rb @@ -1,5 +1,6 @@ require 'net/http' require 'json' +require 'time' require 'simple_segment/version' require 'simple_segment/client'
Make sure Time extensions are loaded Time::iso8601 was not available in some cases when 'time' was not already required, closes #17
diff --git a/lib/trello_standup.rb b/lib/trello_standup.rb index abc1234..def5678 100644 --- a/lib/trello_standup.rb +++ b/lib/trello_standup.rb @@ -1,4 +1,7 @@ require "trello_standup/version" +require "trello_standup/cli" module TrelloStandup + APP_KEY = "bb958efe971bcf0f5d0fa920c9b377b3" + TRELLO_DOMAIN = "http...
Add Global Trello API app_key
diff --git a/db/migrate/20200304185300_add_external_id_to_gobierto_plans_nodes.rb b/db/migrate/20200304185300_add_external_id_to_gobierto_plans_nodes.rb index abc1234..def5678 100644 --- a/db/migrate/20200304185300_add_external_id_to_gobierto_plans_nodes.rb +++ b/db/migrate/20200304185300_add_external_id_to_gobierto_pl...
Add migration to add external_id column to gplan_nodes
diff --git a/app/controllers/feedbacks_controller.rb b/app/controllers/feedbacks_controller.rb index abc1234..def5678 100644 --- a/app/controllers/feedbacks_controller.rb +++ b/app/controllers/feedbacks_controller.rb @@ -27,7 +27,7 @@ expire_fragment(reason) end - expire_fragment(post.link) + exp...
Fix cache expiration, it was broken by e94335
diff --git a/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule20.rb b/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule20.rb index abc1234..def5678 100644 --- a/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule20.rb +++ b/lib/sastrawi/morphology/disambiguator/disambiguator_pref...
Add implementation of twentieth rule of disambiguator prefix
diff --git a/app/policies/user_policy.rb b/app/policies/user_policy.rb index abc1234..def5678 100644 --- a/app/policies/user_policy.rb +++ b/app/policies/user_policy.rb @@ -15,7 +15,8 @@ when 'admin' !record.superadmin? when 'organisation_admin' - record.normal? && current_user.organisation.subtree...
Allow organisation admins to edit themselves
diff --git a/test/integration/script-networking/inspec/open-development-environment-devbox-script-networking.rb b/test/integration/script-networking/inspec/open-development-environment-devbox-script-networking.rb index abc1234..def5678 100644 --- a/test/integration/script-networking/inspec/open-development-environment-...
Update test for networking script
diff --git a/test/integration/default/serverspec/god_spec.rb b/test/integration/default/serverspec/god_spec.rb index abc1234..def5678 100644 --- a/test/integration/default/serverspec/god_spec.rb +++ b/test/integration/default/serverspec/god_spec.rb @@ -0,0 +1,28 @@+require "spec_helper" + +describe "practicingruby::_go...
Add integration test for God
diff --git a/session.gemspec b/session.gemspec index abc1234..def5678 100644 --- a/session.gemspec +++ b/session.gemspec @@ -23,5 +23,6 @@ s.add_development_dependency('rspec', '~> 2.9.0.rc2') s.add_development_dependency('mapper', '~> 0.0.2') s.add_development_dependency('mongo', '~> 1.6.1') + s.ad...
Add bson ext as development dep
diff --git a/spec/class2/exercise4_spec.rb b/spec/class2/exercise4_spec.rb index abc1234..def5678 100644 --- a/spec/class2/exercise4_spec.rb +++ b/spec/class2/exercise4_spec.rb @@ -4,22 +4,46 @@ end before do - stubs = %w(Samuel Leroy Jackson) - allow_any_instance_of(Kernel).to receive(:gets).and_return(*s...
Improve specs for class 2 exercise 4
diff --git a/spec/models/assistant_spec.rb b/spec/models/assistant_spec.rb index abc1234..def5678 100644 --- a/spec/models/assistant_spec.rb +++ b/spec/models/assistant_spec.rb @@ -33,7 +33,7 @@ end it "should have a list of students" do - create(:assistant, students: [create(:user)]).should have(1).stu...
Fix spec errors related to the Assistant model due to factory refactoring
diff --git a/app/models/search_indexer.rb b/app/models/search_indexer.rb index abc1234..def5678 100644 --- a/app/models/search_indexer.rb +++ b/app/models/search_indexer.rb @@ -1,29 +1,30 @@ class SearchIndexer def initialize(guide, rummager_index: RUMMAGER_INDEX) @guide = guide - @edition = guide.latest_pub...
Move loading of edition in SearchIndexer We only need to load the edition when indexing new content. For deleting guides from the index we don't need it.
diff --git a/lib/rock/climbing/calculator/cost_per_climb_calculator.rb b/lib/rock/climbing/calculator/cost_per_climb_calculator.rb index abc1234..def5678 100644 --- a/lib/rock/climbing/calculator/cost_per_climb_calculator.rb +++ b/lib/rock/climbing/calculator/cost_per_climb_calculator.rb @@ -16,7 +16,7 @@ end ...
Add a dollar sign in a reporter
diff --git a/app/models/spree/shipping_calculator_decorator.rb b/app/models/spree/shipping_calculator_decorator.rb index abc1234..def5678 100644 --- a/app/models/spree/shipping_calculator_decorator.rb +++ b/app/models/spree/shipping_calculator_decorator.rb @@ -1,3 +1,7 @@ Spree::ShippingCalculator.class_eval do pref...
Return the preferred rate daily expiration hour by default
diff --git a/app_generators/ahn/templates/config/adhearsion.rb b/app_generators/ahn/templates/config/adhearsion.rb index abc1234..def5678 100644 --- a/app_generators/ahn/templates/config/adhearsion.rb +++ b/app_generators/ahn/templates/config/adhearsion.rb @@ -16,6 +16,8 @@ Adhearsion.config do |config| + # config...
[FEATURE] Add commented out logging override to generated config file
diff --git a/TheSpot/app/controllers/users_controller.rb b/TheSpot/app/controllers/users_controller.rb index abc1234..def5678 100644 --- a/TheSpot/app/controllers/users_controller.rb +++ b/TheSpot/app/controllers/users_controller.rb @@ -3,4 +3,8 @@ def new @user = User.new end + + def user_params + params....
Add strong params to user_controller
diff --git a/app/controllers/subscriptions_controller.rb b/app/controllers/subscriptions_controller.rb index abc1234..def5678 100644 --- a/app/controllers/subscriptions_controller.rb +++ b/app/controllers/subscriptions_controller.rb @@ -2,7 +2,7 @@ before_action :ensure_logged_in def index - @subscriptions = ...
Order subscriptions by most recently released
diff --git a/app/models/reports/total_inventory_value.rb b/app/models/reports/total_inventory_value.rb index abc1234..def5678 100644 --- a/app/models/reports/total_inventory_value.rb +++ b/app/models/reports/total_inventory_value.rb @@ -4,7 +4,7 @@ if params[:category_id].present? Reports::TotalInventory...
Update TotalInventoryValue to accept date
diff --git a/app/services/ci/pipeline_trigger_service.rb b/app/services/ci/pipeline_trigger_service.rb index abc1234..def5678 100644 --- a/app/services/ci/pipeline_trigger_service.rb +++ b/app/services/ci/pipeline_trigger_service.rb @@ -7,6 +7,8 @@ def execute if trigger_from_token create_pipeline_f...
Reduce diff with EE in Ci::PipelineTriggerService Signed-off-by: Rémy Coutable <4ea0184b9df19e0786dd00b28e6daa4d26baeb3e@rymai.me>
diff --git a/mustache-sinatra.gemspec b/mustache-sinatra.gemspec index abc1234..def5678 100644 --- a/mustache-sinatra.gemspec +++ b/mustache-sinatra.gemspec @@ -21,5 +21,5 @@ spec.add_development_dependency "bundler", "~> 1.7" spec.add_development_dependency "rake", "~> 10.0" - spec.add_dependency "mustache", "...
Update the version of mustache.
diff --git a/app/controllers/data_sources_controller.rb b/app/controllers/data_sources_controller.rb index abc1234..def5678 100644 --- a/app/controllers/data_sources_controller.rb +++ b/app/controllers/data_sources_controller.rb @@ -23,6 +23,7 @@ def update(id, data_source) @data_source = DataSource.find(id) +...
Reset data source table class before update
diff --git a/pco_api.gemspec b/pco_api.gemspec index abc1234..def5678 100644 --- a/pco_api.gemspec +++ b/pco_api.gemspec @@ -19,7 +19,7 @@ s.add_dependency "faraday", "~> 0.9.1" s.add_dependency "faraday_middleware", "~> 0.9.1" - s.add_dependency "excon", "~> 0.30.0" + s.add_dependency "excon", "~> 0.45.3" ...
Use newer version of excon
diff --git a/lita_config.rb b/lita_config.rb index abc1234..def5678 100644 --- a/lita_config.rb +++ b/lita_config.rb @@ -17,8 +17,8 @@ config.adapters.slack.token = ENV['SLACK_TOKEN'] # Configure redis using Redis To Go if on Heroku - if ENV.has_key? 'REDISTOGO_URL' - config.redis[:url] = ENV.fetch('REDISTOG...
Rename env var to REDIS_URL
diff --git a/quandl.gemspec b/quandl.gemspec index abc1234..def5678 100644 --- a/quandl.gemspec +++ b/quandl.gemspec @@ -4,13 +4,13 @@ require 'quandl/version' Gem::Specification.new do |spec| - spec.name = 'quandl' + spec.name = 'quandl_ruby' spec.version = Quandl::VERSION spec.autho...
Rename + homepage is now github
diff --git a/lib/cxml.rb b/lib/cxml.rb index abc1234..def5678 100644 --- a/lib/cxml.rb +++ b/lib/cxml.rb @@ -4,18 +4,24 @@ require 'nokogiri' module CXML - autoload :Protocol, 'cxml/protocol' - autoload :Document, 'cxml/document' - autoload :Header, 'cxml/header' - autolo...
Add all the new node classes to the autoload
diff --git a/cookbooks/dotfiles/definitions/dotfile_install.rb b/cookbooks/dotfiles/definitions/dotfile_install.rb index abc1234..def5678 100644 --- a/cookbooks/dotfiles/definitions/dotfile_install.rb +++ b/cookbooks/dotfiles/definitions/dotfile_install.rb @@ -9,7 +9,7 @@ log("dotfile '#{target}' does not exist") {...
Use relative path for dotfiles symlink.
diff --git a/core/lib/spree/permission_sets/user_management.rb b/core/lib/spree/permission_sets/user_management.rb index abc1234..def5678 100644 --- a/core/lib/spree/permission_sets/user_management.rb +++ b/core/lib/spree/permission_sets/user_management.rb @@ -2,7 +2,7 @@ module PermissionSets class UserManageme...
Fix UserManagement permissions to allow saving and removing from address book
diff --git a/tasks/publish.rake b/tasks/publish.rake index abc1234..def5678 100644 --- a/tasks/publish.rake +++ b/tasks/publish.rake @@ -24,7 +24,7 @@ def is_tag_on_candidate_branches?(tag, branches) branches.each do |branch| - return true if is_tag_on_branch?(tag, branch) + return true if is_tag_on_branch?(...
Check remote branches so that works on travisCI
diff --git a/irc-hipchat.rb b/irc-hipchat.rb index abc1234..def5678 100644 --- a/irc-hipchat.rb +++ b/irc-hipchat.rb @@ -8,6 +8,7 @@ HIPCHAT_AUTH_TOKEN = ENV['HIPCHAT_AUTH_TOKEN'] IRC_CHANNEL = ENV['IRC_CHANNEL'] +SUPER_USERS = ENV['SUPER_IRC_USERS'].nil? ? [] : ENV['SUPER_IRC_USERS'].split(',') # comma separated li...
Add highlighting for super users
diff --git a/build_tools/compiler/mustache_processor.rb b/build_tools/compiler/mustache_processor.rb index abc1234..def5678 100644 --- a/build_tools/compiler/mustache_processor.rb +++ b/build_tools/compiler/mustache_processor.rb @@ -14,6 +14,7 @@ footer_top: "{{{ footerTop }}}", footer_support_links: "{{{ ...
Add header class to mustache template
diff --git a/test/rails_root/config/environment.rb b/test/rails_root/config/environment.rb index abc1234..def5678 100644 --- a/test/rails_root/config/environment.rb +++ b/test/rails_root/config/environment.rb @@ -1,6 +1,6 @@ # Specifies gem version of Rails to use when vendor/rails is not present old_verbose, $VERBOSE...
Use >= 2.1.0 so that gem installs of newer versions of rails can still run the shoulda tests
diff --git a/test/services/nitpick_message_test.rb b/test/services/nitpick_message_test.rb index abc1234..def5678 100644 --- a/test/services/nitpick_message_test.rb +++ b/test/services/nitpick_message_test.rb @@ -3,7 +3,6 @@ require 'services/message' require 'services/nitpick_message' require 'exercism/exercise' - ...
Add tests for the nitpick email template
diff --git a/week_4/simple_string.rb b/week_4/simple_string.rb index abc1234..def5678 100644 --- a/week_4/simple_string.rb +++ b/week_4/simple_string.rb @@ -0,0 +1,29 @@+# Solution Below +old_string = "Ruby is cool" +new_string = old_string.reverse.upcase + + + + +# RSpec Tests. They are included in this file because...
Create a simple string with reverse and upcase method
diff --git a/spec/active_interaction/concerns/active_modelable_spec.rb b/spec/active_interaction/concerns/active_modelable_spec.rb index abc1234..def5678 100644 --- a/spec/active_interaction/concerns/active_modelable_spec.rb +++ b/spec/active_interaction/concerns/active_modelable_spec.rb @@ -10,7 +10,7 @@ let(:model)...
Use public_send instead of send
diff --git a/db/migrate/20100328212817_clear_remember_tokens_for_users.rb b/db/migrate/20100328212817_clear_remember_tokens_for_users.rb index abc1234..def5678 100644 --- a/db/migrate/20100328212817_clear_remember_tokens_for_users.rb +++ b/db/migrate/20100328212817_clear_remember_tokens_for_users.rb @@ -0,0 +1,9 @@+cla...
MIGRATION: Clear the User remember_token and remember_token_expires_at.
diff --git a/recipes/init.rb b/recipes/init.rb index abc1234..def5678 100644 --- a/recipes/init.rb +++ b/recipes/init.rb @@ -22,7 +22,7 @@ # We also need the configuration, so we can run HDFS commands execute 'initaction-create-hdfs-cdap-dir' do not_if "hdfs dfs -test -d #{node['cdap']['cdap_site']['hdfs.namespace...
Use attribute versus hard-coding yarn
diff --git a/methan.gemspec b/methan.gemspec index abc1234..def5678 100644 --- a/methan.gemspec +++ b/methan.gemspec @@ -11,7 +11,7 @@ spec.summary = %q{Methan is a memo organizer.} spec.description = %q{Methan is a memo organizer.} - spec.homepage = "TODO: Put your gem's website or public repo URL...
Update `spec.homepage` to github repository.
diff --git a/db/migrate/20150109204655_fix_phone_number_fields.rb b/db/migrate/20150109204655_fix_phone_number_fields.rb index abc1234..def5678 100644 --- a/db/migrate/20150109204655_fix_phone_number_fields.rb +++ b/db/migrate/20150109204655_fix_phone_number_fields.rb @@ -1,12 +1,7 @@ class FixPhoneNumberFields < Activ...
Fix phone number migration to add extension only wherever there is a phone number field
diff --git a/raygun_client.gemspec b/raygun_client.gemspec index abc1234..def5678 100644 --- a/raygun_client.gemspec +++ b/raygun_client.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'raygun_client' - s.version = '0.1.9' + s.version = '0.1.10' s.summary = 'Client for ...
Package version is increased from 0.1.9 to 0.1.10
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -6,4 +6,4 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) source_url 'https://github.com/GSI-HPC/sys-chef-cookbook' issues_url 'https://github.com/GSI-HPC/sys-chef-cookbo...
Add test for fuse recipe
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -3,6 +3,11 @@ require 'csv' config = YAML.load_file((Rails.root.join("db", "seed", "seed.yml"))) + +config.each do |key, value| + config[key] = Rails.root.join("db", "seed", value) +end + GroupData::Importer...
Set directory to the default one for each seed file
diff --git a/config/unicorn.rb b/config/unicorn.rb index abc1234..def5678 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -6,7 +6,7 @@ stdout_path '/var/log/aaf/saml/unicorn/stdout.log' stderr_path '/var/log/aaf/saml/unicorn/stderr.log' -timeout 240 +timeout 600 before_fork do |server, _worker| Seque...
Update request timeout to 10 minutes Under load (generally relating to something upstream like the DB cluster being pegged by a 3rd party service), valid but long running queries can be timed out before practical. This will allow us to continue to respond in these situations without being hard terminated, albeit slow...
diff --git a/the_merger.gemspec b/the_merger.gemspec index abc1234..def5678 100644 --- a/the_merger.gemspec +++ b/the_merger.gemspec @@ -13,6 +13,9 @@ gem.homepage = "https://github.com/map7/the_merger" # gem.add_development_dependency "mail" + gem.add_development_dependency "rails" + gem.add_development_...
Add some dependencies for making my tests
diff --git a/grape-swagger-rails.gemspec b/grape-swagger-rails.gemspec index abc1234..def5678 100644 --- a/grape-swagger-rails.gemspec +++ b/grape-swagger-rails.gemspec @@ -19,5 +19,5 @@ spec.add_development_dependency 'rake' spec.add_dependency 'railties', '>= 3.2.12' spec.add_dependency 'rubyzip', '~> 0.9.9' ...
Update grape swagger dependency to 0.6
diff --git a/config/initializers/async.rb b/config/initializers/async.rb index abc1234..def5678 100644 --- a/config/initializers/async.rb +++ b/config/initializers/async.rb @@ -1,3 +1,3 @@ # This file can be overwritten on deployment -set :enable_queue, ! ENV["ENABLE_QUEUE"].nil? +set :enable_queue, ! ENV["QUIRKAFLEE...
Change enable queue variable to match our needs
diff --git a/example/spec/spec_helper.rb b/example/spec/spec_helper.rb index abc1234..def5678 100644 --- a/example/spec/spec_helper.rb +++ b/example/spec/spec_helper.rb @@ -1,7 +1,7 @@ require 'turnip_formatter' RSpec.configure do |config| - c.add_setting :project_name, :default => "My project" + config.add_settin...
Fix variable name for RSpec.configure block GH-29
diff --git a/osm-rubocop.gemspec b/osm-rubocop.gemspec index abc1234..def5678 100644 --- a/osm-rubocop.gemspec +++ b/osm-rubocop.gemspec @@ -15,10 +15,10 @@ spec.license = 'MIT' spec.files = `git ls-files -z`.split("\x0").reject do |f| - f.match(/^(test|spec|features)\//) + f.match(%r{^(test|spec|features)...
Fix rubocop violations introduced by changing the defaults
diff --git a/kitchen/site-cookbooks/wordnet/recipes/default.rb b/kitchen/site-cookbooks/wordnet/recipes/default.rb index abc1234..def5678 100644 --- a/kitchen/site-cookbooks/wordnet/recipes/default.rb +++ b/kitchen/site-cookbooks/wordnet/recipes/default.rb @@ -15,9 +15,9 @@ # By submitting a pull request, you are agree...
Make vagrant install wordnet gem since he is the user that will use it
diff --git a/ruremai.gemspec b/ruremai.gemspec index abc1234..def5678 100644 --- a/ruremai.gemspec +++ b/ruremai.gemspec @@ -17,6 +17,7 @@ gem.add_runtime_dependency 'launchy', '~> 2.1.0' + gem.add_development_dependency 'rake' gem.add_development_dependency 'tapp', '~> 1.3.1' gem.add_development_dependenc...
Add rake as development depencency
diff --git a/recipes/data_bag.rb b/recipes/data_bag.rb index abc1234..def5678 100644 --- a/recipes/data_bag.rb +++ b/recipes/data_bag.rb @@ -26,7 +26,7 @@ end Array(node['users']).each do |i| - u = data_bag_item(bag, i) + u = data_bag_item(bag, i.gsub(/[.]/, '-')) username = u['username'] || u['id'] user_a...
Handle user names with periods in them.
diff --git a/redis-spawn.gemspec b/redis-spawn.gemspec index abc1234..def5678 100644 --- a/redis-spawn.gemspec +++ b/redis-spawn.gemspec @@ -4,7 +4,7 @@ s.name = "redis-spawn" s.version = Redis::SpawnServer::VERSION s.summary = %{An extension to redis-rb to facilitate spawning a redis-server specifically for yo...
Fix broken description in gemspec
diff --git a/Casks/skreenics.rb b/Casks/skreenics.rb index abc1234..def5678 100644 --- a/Casks/skreenics.rb +++ b/Casks/skreenics.rb @@ -2,6 +2,7 @@ version '1.0.1' sha256 'c4edd3cb8d066c5b5ce8ab78fe476776d04ad5b8e28eb7128bb183903f7dd8b9' + # googleapis.com/google-code-archive-downloads/v2/code.google.com/skree...
Fix `url` stanza comment for Skreenics.
diff --git a/Casks/texstudio.rb b/Casks/texstudio.rb index abc1234..def5678 100644 --- a/Casks/texstudio.rb +++ b/Casks/texstudio.rb @@ -1,6 +1,6 @@ cask :v1 => 'texstudio' do version '2.8.8' - sha256 'cd9fd18b0147f43db64af0bb9bb468c9532a8967aa64d1b0aaa09ea98980e91e' + sha256 'bc0212fe6897128982cbd7227ec10562fdb42...
Fix SHA checksum for Texstudio
diff --git a/files/default/tests/minitest/server_test.rb b/files/default/tests/minitest/server_test.rb index abc1234..def5678 100644 --- a/files/default/tests/minitest/server_test.rb +++ b/files/default/tests/minitest/server_test.rb @@ -26,7 +26,7 @@ end it 'runs the postgresql service' do - service(node['pos...
Use postgresql string as service name. The minitest service assertion does not appear to use the status command for the service, instead falling back to process table inspection.
diff --git a/flextest.rb b/flextest.rb index abc1234..def5678 100644 --- a/flextest.rb +++ b/flextest.rb @@ -0,0 +1,37 @@+require 'aws/s3' +require 'pp' + +AWS::S3::Base.establish_connection!( + :access_key_id => "<Your S3 key>", + :secret_access_key...
Test the servers with many sizes of files
diff --git a/rails/app/models/repo.rb b/rails/app/models/repo.rb index abc1234..def5678 100644 --- a/rails/app/models/repo.rb +++ b/rails/app/models/repo.rb @@ -1,4 +1,9 @@ class Repo < ApplicationRecord belongs_to :user has_many :branches + + def url + "https://github.com/#{owner}/#{name}" + end + end
Add url to Repo model
diff --git a/command_line/dash_r_spec.rb b/command_line/dash_r_spec.rb index abc1234..def5678 100644 --- a/command_line/dash_r_spec.rb +++ b/command_line/dash_r_spec.rb @@ -18,4 +18,11 @@ out.should include("REQUIRED") out.should include("syntax error") end + + it "does not require the file if the main scr...
Add spec for -r when the main script file does not exist
diff --git a/lib/billimatic/entities/invoice_rule.rb b/lib/billimatic/entities/invoice_rule.rb index abc1234..def5678 100644 --- a/lib/billimatic/entities/invoice_rule.rb +++ b/lib/billimatic/entities/invoice_rule.rb @@ -16,7 +16,7 @@ attribute :cobrato_charge_config_name, String attribute :cobrato_charge_...
Fix attribute type for management_type
diff --git a/db/migrate/20150423233715_create_images.rb b/db/migrate/20150423233715_create_images.rb index abc1234..def5678 100644 --- a/db/migrate/20150423233715_create_images.rb +++ b/db/migrate/20150423233715_create_images.rb @@ -1,3 +1,5 @@+# Encoding: utf-8 +# Create images class CreateImages < ActiveRecord::Migr...
Clean up images migration script
diff --git a/core/db/migrate/20130802022321_migrate_tax_categories_to_line_items.rb b/core/db/migrate/20130802022321_migrate_tax_categories_to_line_items.rb index abc1234..def5678 100644 --- a/core/db/migrate/20130802022321_migrate_tax_categories_to_line_items.rb +++ b/core/db/migrate/20130802022321_migrate_tax_categor...
Add another migration to link existing line items with their tax categories Related to #3481
diff --git a/lib/convection/model/template/resource/aws_logs_subscription_filter.rb b/lib/convection/model/template/resource/aws_logs_subscription_filter.rb index abc1234..def5678 100644 --- a/lib/convection/model/template/resource/aws_logs_subscription_filter.rb +++ b/lib/convection/model/template/resource/aws_logs_su...
Add AWS::Logs::SubscriptionFilter resource for streaming AWS CloudWatch logs to Kinesis/Lambda
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.4.3.1' + s.version = '0.4.3.2' s.summary = 'Logging to STD IO with levels, tagging, and coloring' s...
Package version is increased from 0.4.3.1 to 0.4.3.2
diff --git a/skooby.gemspec b/skooby.gemspec index abc1234..def5678 100644 --- a/skooby.gemspec +++ b/skooby.gemspec @@ -22,4 +22,5 @@ gem.add_development_dependency "minitest" gem.add_development_dependency "mocha" gem.add_development_dependency "vcr" + gem.add_development_dependency "fakeweb" end
Add fakeweb gem as dependency
diff --git a/spec/controllers/league_requests_controller_spec.rb b/spec/controllers/league_requests_controller_spec.rb index abc1234..def5678 100644 --- a/spec/controllers/league_requests_controller_spec.rb +++ b/spec/controllers/league_requests_controller_spec.rb @@ -0,0 +1,30 @@+require 'spec_helper' + +describe Leag...
Add basic spec for league requests page
diff --git a/lib/generators/admin/admin_generator.rb b/lib/generators/admin/admin_generator.rb index abc1234..def5678 100644 --- a/lib/generators/admin/admin_generator.rb +++ b/lib/generators/admin/admin_generator.rb @@ -1,30 +1,28 @@ # Public: Generator for admin page controllers. module CEO - module Generators - ...
Remove an extra module namespacing
diff --git a/spec/models/matched_contribution_attributes_spec.rb b/spec/models/matched_contribution_attributes_spec.rb index abc1234..def5678 100644 --- a/spec/models/matched_contribution_attributes_spec.rb +++ b/spec/models/matched_contribution_attributes_spec.rb @@ -0,0 +1,38 @@+require 'spec_helper' + +describe Matc...
Define specs for implementation of MatchedContributionAttributes
diff --git a/app/controllers/context/admin/base_controller.rb b/app/controllers/context/admin/base_controller.rb index abc1234..def5678 100644 --- a/app/controllers/context/admin/base_controller.rb +++ b/app/controllers/context/admin/base_controller.rb @@ -8,7 +8,6 @@ private def context_admin_required - p ...
Remove debug statement from context_admin_required
diff --git a/spec/features/top_spec.rb b/spec/features/top_spec.rb index abc1234..def5678 100644 --- a/spec/features/top_spec.rb +++ b/spec/features/top_spec.rb @@ -4,7 +4,7 @@ describe "GET /" do scenario "Sponser links should be exist" do visit "/" - expect(page).to have_css 'section.sponsors_logo ...
Fix test the number of sponsors
diff --git a/sluggi.gemspec b/sluggi.gemspec index abc1234..def5678 100644 --- a/sluggi.gemspec +++ b/sluggi.gemspec @@ -13,8 +13,7 @@ spec.homepage = "https://github.com/neighborland/sluggi" spec.license = "MIT" - spec.files = `git ls-files`.split($/) - spec.executables = spec.files.grep(...
Remove unnecessary executables from gemspec
diff --git a/fluent-plugin-swift.gemspec b/fluent-plugin-swift.gemspec index abc1234..def5678 100644 --- a/fluent-plugin-swift.gemspec +++ b/fluent-plugin-swift.gemspec @@ -7,6 +7,7 @@ gem.homepage = "https://github.com/yuuzi41/fluent-plugin-swift" gem.summary = gem.description gem.version = File.rea...
Add License Info to the gemspec
diff --git a/Formula/clojure.rb b/Formula/clojure.rb index abc1234..def5678 100644 --- a/Formula/clojure.rb +++ b/Formula/clojure.rb @@ -13,8 +13,13 @@ def script <<-EOS #!/bin/sh -# Run Clojure. -exec java -cp "#{prefix}/#{jar}" clojure.main "$@" +# Runs clojure. +# With no arguments, runs Clojure's REPL. + +# res...
Revert "Simplify `clj` script and fix some quoting." This reverts commit fc6f2c88fd080025f128f300c98ce4a66ed3365b.
diff --git a/ILGHttpConstants.podspec b/ILGHttpConstants.podspec index abc1234..def5678 100644 --- a/ILGHttpConstants.podspec +++ b/ILGHttpConstants.podspec @@ -5,7 +5,7 @@ s.homepage = "https://github.com/ilg/ILGHttpConstants" s.license = { :type => "MIT", :file => "LICENSE" } s.author = { "Isaa...
Set podspec tag to reference version.
diff --git a/lib/metasploit/model/search/operator.rb b/lib/metasploit/model/search/operator.rb index abc1234..def5678 100644 --- a/lib/metasploit/model/search/operator.rb +++ b/lib/metasploit/model/search/operator.rb @@ -1,7 +1,59 @@ module Metasploit module Model module Search - # Namespace for search ope...
Document interface in namespace docs MSP-10826
diff --git a/erd.gemspec b/erd.gemspec index abc1234..def5678 100644 --- a/erd.gemspec +++ b/erd.gemspec @@ -18,6 +18,7 @@ gem.add_runtime_dependency 'rails-erd', ['>= 0.4.5'] gem.add_runtime_dependency 'nokogiri' + gem.add_development_dependency 'rails', '>= 3.2' gem.add_development_dependency 'rspec-rails'...
Test under Rails >= 3.2
diff --git a/lib/rom/repository/struct_attributes.rb b/lib/rom/repository/struct_attributes.rb index abc1234..def5678 100644 --- a/lib/rom/repository/struct_attributes.rb +++ b/lib/rom/repository/struct_attributes.rb @@ -22,7 +22,7 @@ actual = values.keys unknown, missing = actual - attributes,...
Check size instead of using .any?
diff --git a/plugin/pivo.rb b/plugin/pivo.rb index abc1234..def5678 100644 --- a/plugin/pivo.rb +++ b/plugin/pivo.rb @@ -1,6 +1,6 @@ require 'pivotal-tracker' -# Usage: ruby pivo.rb <operation> API_TOKEN PROJECT_ID [<params>] +# Usage: ruby pivo.rb <operation> <api_token> <project_id> [<params>] class Pivo attr...
Fix comment with usage instructions
diff --git a/black_list.rb b/black_list.rb index abc1234..def5678 100644 --- a/black_list.rb +++ b/black_list.rb @@ -3,6 +3,7 @@ # included in the error message. BlackList = [ + ["coq-compcert.2.5.0", "Error: Corrupted compiled interface"], # flaky Makefile ["coq-compcert.2.7.1", "Error: Corrupted compiled inter...
Add compcert.2.5.0 to the black-list
diff --git a/rbczmq.gemspec b/rbczmq.gemspec index abc1234..def5678 100644 --- a/rbczmq.gemspec +++ b/rbczmq.gemspec @@ -7,7 +7,7 @@ s.version = ZMQ::VERSION s.summary = "Ruby extension for CZMQ - High-level C Binding for ØMQ (http://czmq.zeromq.org)" s.description = "Ruby extension for CZMQ - High-level C Bind...
Add Matt Connolly as author
diff --git a/rack-rejector.gemspec b/rack-rejector.gemspec index abc1234..def5678 100644 --- a/rack-rejector.gemspec +++ b/rack-rejector.gemspec @@ -6,11 +6,12 @@ Gem::Specification.new do |spec| spec.name = 'rack-rejector' spec.version = Rack::Rejector::VERSION - spec.authors = ['Tristan Dr...
Add author, Github link and description to gemspec
diff --git a/raygun_client.gemspec b/raygun_client.gemspec index abc1234..def5678 100644 --- a/raygun_client.gemspec +++ b/raygun_client.gemspec @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- Gem::Specification.new do |s| s.name = 'raygun_client' - s.version = '0.2.0.1' + s.version = '0.2.1.0' s.summary = 'Client f...
Package version is increased from 0.2.0.1 to 0.2.1.0 (Tags can be optionally added to the Raygun data)
diff --git a/db/migrate/20121011083330_add_unique_index_to_session_keys.rb b/db/migrate/20121011083330_add_unique_index_to_session_keys.rb index abc1234..def5678 100644 --- a/db/migrate/20121011083330_add_unique_index_to_session_keys.rb +++ b/db/migrate/20121011083330_add_unique_index_to_session_keys.rb @@ -1,23 +1,12 ...
Fix migration to delete the duplicate key which is oldest before adding the unique session key index
diff --git a/Ruby/sorting/selection.rb b/Ruby/sorting/selection.rb index abc1234..def5678 100644 --- a/Ruby/sorting/selection.rb +++ b/Ruby/sorting/selection.rb @@ -9,7 +9,7 @@ # Returns a sorted copy of the array in parameter def self.sort(a) - sorted = Array.new(a) + sorted = a.dup s...
Use dup method to duplicate the array
diff --git a/temando.gemspec b/temando.gemspec index abc1234..def5678 100644 --- a/temando.gemspec +++ b/temando.gemspec @@ -22,4 +22,5 @@ gem.add_development_dependency 'rspec', '~> 2.11.0' gem.add_development_dependency 'faker' + gem.add_development_dependency 'rake' end
Add rake as a dependency so bundler doesn't get confused
diff --git a/spec/support/rails.rb b/spec/support/rails.rb index abc1234..def5678 100644 --- a/spec/support/rails.rb +++ b/spec/support/rails.rb @@ -2,13 +2,17 @@ def self.root File.join(Dir.pwd, 'tmp') end - + def self.env @@environment ||= 'development' end - + def self.env=(env) @@en...
Handle calls to Rails' application method in specs.
diff --git a/takeout.gemspec b/takeout.gemspec index abc1234..def5678 100644 --- a/takeout.gemspec +++ b/takeout.gemspec @@ -5,7 +5,7 @@ Gem::Specification.new do |spec| spec.name = "takeout" - spec.version = takeout::VERSION + spec.version = Takeout::VERSION spec.authors = ["hubert...
Fix capitalization in gemspec version ;
diff --git a/controller/search_engine.rb b/controller/search_engine.rb index abc1234..def5678 100644 --- a/controller/search_engine.rb +++ b/controller/search_engine.rb @@ -10,6 +10,9 @@ def add( uri_id, search_param = nil ) redirect_referrer if ! logged_in? || ! user.admin? + if ! inside_stack? + pus...
Use stack helper to jump back to stats page after learning a search engine.
diff --git a/pronto.gemspec b/pronto.gemspec index abc1234..def5678 100644 --- a/pronto.gemspec +++ b/pronto.gemspec @@ -22,7 +22,7 @@ s.add_dependency 'rugged', '~> 0.19.0' s.add_dependency 'thor', '~> 0.18.0' - s.add_dependency 'octokit', '~> 2.3.0' + s.add_dependency 'octokit', '~> 2.4.0' s.add_dependenc...
Update octokit dependency to 2.4.0
diff --git a/lib/bundler/cli/pristine.rb b/lib/bundler/cli/pristine.rb index abc1234..def5678 100644 --- a/lib/bundler/cli/pristine.rb +++ b/lib/bundler/cli/pristine.rb @@ -16,6 +16,7 @@ next end + FileUtils.rm_rf spec.full_gem_path spec.source.install(spec, :force => true) ...
Remove gem folder and re-install
diff --git a/lib/ctdb/session_handler.rb b/lib/ctdb/session_handler.rb index abc1234..def5678 100644 --- a/lib/ctdb/session_handler.rb +++ b/lib/ctdb/session_handler.rb @@ -1,6 +1,14 @@+require 'forwardable' + module CT class SessionHandler - + + extend Forwardable + + def_delegator :@session, :logout, :l...
Add delegate methods to CT::SessionHandler
diff --git a/lib/envied/configuration.rb b/lib/envied/configuration.rb index abc1234..def5678 100644 --- a/lib/envied/configuration.rb +++ b/lib/envied/configuration.rb @@ -15,8 +15,8 @@ end end - def enable_defaults!(value = nil, &block) - @defaults_enabled = (value.nil? ? block : value) + def ...
Enable defaults by calling without parameters
diff --git a/lib/foodcritic/rake_task.rb b/lib/foodcritic/rake_task.rb index abc1234..def5678 100644 --- a/lib/foodcritic/rake_task.rb +++ b/lib/foodcritic/rake_task.rb @@ -23,7 +23,7 @@ end def define - desc "Lint Chef cookbooks" + desc "Lint Chef cookbooks" unless ::Rake.application.last_...
Allow to override description of Rake task Example: desc "Run Foodcritic lint checks" FoodCritic::Rake::LintTask.new