diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/lib/google_music_api/mobile_client.rb b/lib/google_music_api/mobile_client.rb index abc1234..def5678 100644 --- a/lib/google_music_api/mobile_client.rb +++ b/lib/google_music_api/mobile_client.rb @@ -32,6 +32,16 @@ !subscribed.nil? end + def get_genres(parent_id = nil) + url = 'explore...
Add support for checking genres
diff --git a/lib/graphite_client/event_reporter.rb b/lib/graphite_client/event_reporter.rb index abc1234..def5678 100644 --- a/lib/graphite_client/event_reporter.rb +++ b/lib/graphite_client/event_reporter.rb @@ -18,16 +18,10 @@ end end - def report(event) - @req.body = EventValue.from(event) + ...
Simplify EventReporter class by removing nested formatter class
diff --git a/capistrano-ec2tag.gemspec b/capistrano-ec2tag.gemspec index abc1234..def5678 100644 --- a/capistrano-ec2tag.gemspec +++ b/capistrano-ec2tag.gemspec @@ -6,9 +6,9 @@ s.version = "0.0.1" s.authors = ["Douglas Jarquin"] s.email = ["douglasjarquin@gmail.com"] - s.homepage = "" - s.sum...
Add updated summary and description to the .gemspec.
diff --git a/lib/intercom/user_collection_proxy.rb b/lib/intercom/user_collection_proxy.rb index abc1234..def5678 100644 --- a/lib/intercom/user_collection_proxy.rb +++ b/lib/intercom/user_collection_proxy.rb @@ -38,14 +38,6 @@ end end - # yields each {User} to the block provided and collects the output...
Include Enumerable module into UserCollectionProxy instead of defining map
diff --git a/lib/libra2/app/models/generic_work.rb b/lib/libra2/app/models/generic_work.rb index abc1234..def5678 100644 --- a/lib/libra2/app/models/generic_work.rb +++ b/lib/libra2/app/models/generic_work.rb @@ -5,6 +5,10 @@ include ::CurationConcerns::BasicMetadata include Sufia::WorkBehavior validates :title...
Add work type definitions to generic work model
diff --git a/flagship.gemspec b/flagship.gemspec index abc1234..def5678 100644 --- a/flagship.gemspec +++ b/flagship.gemspec @@ -21,7 +21,7 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } spec.require_paths = ["lib"] - spec.add_development_dependency "bundler", "~> 1.13" + spec.add_...
Allow to use the latest bundler
diff --git a/McPicker.podspec b/McPicker.podspec index abc1234..def5678 100644 --- a/McPicker.podspec +++ b/McPicker.podspec @@ -5,11 +5,13 @@ Pod::Spec.new do |s| s.name = 'McPicker' - s.version = '0.2.0' + s.version = '0.3.0' s.summary = 'McPicker is a UIPickerView dro...
Update pod spec to version 0.3.0
diff --git a/lib/engine_cart/gemfile_stanza.rb b/lib/engine_cart/gemfile_stanza.rb index abc1234..def5678 100644 --- a/lib/engine_cart/gemfile_stanza.rb +++ b/lib/engine_cart/gemfile_stanza.rb @@ -20,7 +20,8 @@ Bundler.ui.warn e.message end else - # we get here when we haven't yet generated the...
Add bundler logging when falling back on default dependencies
diff --git a/lib/sec_statement_parser/statement.rb b/lib/sec_statement_parser/statement.rb index abc1234..def5678 100644 --- a/lib/sec_statement_parser/statement.rb +++ b/lib/sec_statement_parser/statement.rb @@ -42,6 +42,12 @@ def parse_link(link) result = SecStatementFields.parse(link) + + # Set par...
Set parsed results to instance variables of Statement in parse_link()
diff --git a/lib/simplecov-console/output/block.rb b/lib/simplecov-console/output/block.rb index abc1234..def5678 100644 --- a/lib/simplecov-console/output/block.rb +++ b/lib/simplecov-console/output/block.rb @@ -14,7 +14,8 @@ block << sprintf("%8.8s: %s", 'missed', missed(f.missed_lines).join(", ")) b...
Support for globally frozen string literals
diff --git a/lib/libvirt/ffi/libvirt.rb b/lib/libvirt/ffi/libvirt.rb index abc1234..def5678 100644 --- a/lib/libvirt/ffi/libvirt.rb +++ b/lib/libvirt/ffi/libvirt.rb @@ -1,10 +1,10 @@ module FFI::Libvirt - extend FFI::Library - ffi_lib FFI::Libvirt::library_path - def self.library_path 'libvirt.so.0' end + ...
Declare methods before using it
diff --git a/lib/locotimezone/configuration.rb b/lib/locotimezone/configuration.rb index abc1234..def5678 100644 --- a/lib/locotimezone/configuration.rb +++ b/lib/locotimezone/configuration.rb @@ -2,7 +2,7 @@ class Configuration attr_accessor :google_api_key attr_reader :attributes - + def initiali...
Use guard clause to check for hash
diff --git a/spec/devise/mailer/mailer_spec.rb b/spec/devise/mailer/mailer_spec.rb index abc1234..def5678 100644 --- a/spec/devise/mailer/mailer_spec.rb +++ b/spec/devise/mailer/mailer_spec.rb @@ -0,0 +1,43 @@+require "spec_helper" + +describe Devise::Mailer do + let(:user) { mock_model(User, email: "foo@bar.com") } +...
Add regression tests for devise emails
diff --git a/script/remove_server_info.rb b/script/remove_server_info.rb index abc1234..def5678 100644 --- a/script/remove_server_info.rb +++ b/script/remove_server_info.rb @@ -0,0 +1,33 @@+#!/usr/bin/ruby + + +require 'yaml' + +RAILS_ROOT = File.dirname(__FILE__) + "/.." + +# We may not have a workling Webiva install,...
Remove server information ruby script
diff --git a/lib/nikeplus/http_utils.rb b/lib/nikeplus/http_utils.rb index abc1234..def5678 100644 --- a/lib/nikeplus/http_utils.rb +++ b/lib/nikeplus/http_utils.rb @@ -16,6 +16,8 @@ def build_url(options = {}) uri = URI.parse(self.class.const_get('API_URL')) + token = NikePlus.configuration[:access_t...
Add token to all get request via class variable on module
diff --git a/lib/npr_todays_news/cli.rb b/lib/npr_todays_news/cli.rb index abc1234..def5678 100644 --- a/lib/npr_todays_news/cli.rb +++ b/lib/npr_todays_news/cli.rb @@ -1,23 +1,33 @@ class NprTodaysNews::CLI def run - get_newslist print_stories end def get_newslist puts "These are today's top st...
Improve output readibility for featured stories.
diff --git a/lib/oakdex/pokedex/move.rb b/lib/oakdex/pokedex/move.rb index abc1234..def5678 100644 --- a/lib/oakdex/pokedex/move.rb +++ b/lib/oakdex/pokedex/move.rb @@ -7,6 +7,10 @@ json_folder 'move' translate :names, :name translate :descriptions, :description + + def pp + @attributes[...
Add support for ruby 2.5.0
diff --git a/test/distributed_persistence_control_commands_test.rb b/test/distributed_persistence_control_commands_test.rb index abc1234..def5678 100644 --- a/test/distributed_persistence_control_commands_test.rb +++ b/test/distributed_persistence_control_commands_test.rb @@ -7,31 +7,28 @@ include RedisMock::Helper ...
Test SAVE, BGSAVE and LASTSAVE going through Redis::Distributed
diff --git a/test/integration_test.rb b/test/integration_test.rb index abc1234..def5678 100644 --- a/test/integration_test.rb +++ b/test/integration_test.rb @@ -0,0 +1,7 @@+require File.expand_path("../test_helper", __FILE__) + +describe "zeus-parallel_tests" do + it 'should be tested' do + skip("any ideas how to t...
Add pending state in tests, any idea how to test integration with Zeus?
diff --git a/lib/jekyll/minibundle/mini_bundle_block.rb b/lib/jekyll/minibundle/mini_bundle_block.rb index abc1234..def5678 100644 --- a/lib/jekyll/minibundle/mini_bundle_block.rb +++ b/lib/jekyll/minibundle/mini_bundle_block.rb @@ -1,4 +1,4 @@-require 'yaml' +require 'safe_yaml/load' require 'jekyll/minibundle/asset_...
Use safe_yaml to load user input from minibundle block This is what Jekyll uses internally to load YAML input. It's good idea to use it here as well for consistency and safety.
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,5 +1,5 @@ # This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup...
Remove misleading default comment about db:setup.
diff --git a/lib/scanny/checks/http_basic_auth_check.rb b/lib/scanny/checks/http_basic_auth_check.rb index abc1234..def5678 100644 --- a/lib/scanny/checks/http_basic_auth_check.rb +++ b/lib/scanny/checks/http_basic_auth_check.rb @@ -0,0 +1,39 @@+module Scanny + module Checks + class HTTPBasicAuthCheck < Check + ...
Add implementation for HTTP basic auth
diff --git a/db/seeds.rb b/db/seeds.rb index abc1234..def5678 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -1,6 +1,8 @@ u = User.new u.email="user@example.com" u.password=u.password_confirmation="password" +u.save! +u.roles=['admin', 'manager', 'translator', 'analyst', 'user'] u.save! a = AdminUser.new
Add roles to user seed
diff --git a/test/models/repo_test.rb b/test/models/repo_test.rb index abc1234..def5678 100644 --- a/test/models/repo_test.rb +++ b/test/models/repo_test.rb @@ -2,10 +2,10 @@ class RepoTest < ActiveSupport::TestCase def test_sync_ranks - Repo.new("#{Rails.root}/.git").send(:sync_ranks) + Repo.new.send(:sync_...
Revert "Fix test git path" This reverts commit 0dabf67379b316d3a7267be22eca47f29890d287.
diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index abc1234..def5678 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -1,6 +1,14 @@ OmniAuth.config.logger = Rails.logger Rails.application.config.middleware.use OmniAuth::Builder do - options = { sco...
Use v2.6 of the Facebook Graph API. We'd been using v2.0, which is getting shut down in a few months. We'll see whether this helps.
diff --git a/Casks/one-password.rb b/Casks/one-password.rb index abc1234..def5678 100644 --- a/Casks/one-password.rb +++ b/Casks/one-password.rb @@ -1,5 +1,5 @@ class OnePassword < Cask - url 'https://d13itkw33a7sus.cloudfront.net/dist/1P/mac/1Password-3.8.17.zip' + url 'https://d13itkw33a7sus.cloudfront.net/dist/1P/...
Update OnePassword cask to latest version.
diff --git a/lib/tasks/investments.rake b/lib/tasks/investments.rake index abc1234..def5678 100644 --- a/lib/tasks/investments.rake +++ b/lib/tasks/investments.rake @@ -0,0 +1,12 @@+namespace :investments do + namespace :internal_comments do + desc "Migrate internal_comments textarea to a first comment on internal ...
Add rake task to migrate investment's internal comments to thread
diff --git a/db/migrate/20120810112751_create_blog_comments.rb b/db/migrate/20120810112751_create_blog_comments.rb index abc1234..def5678 100644 --- a/db/migrate/20120810112751_create_blog_comments.rb +++ b/db/migrate/20120810112751_create_blog_comments.rb @@ -5,7 +5,7 @@ t.string :name, :null => false,...
Add a status column to blog comments.
diff --git a/db/migrate/20200513105319_create_srg_histories.rb b/db/migrate/20200513105319_create_srg_histories.rb index abc1234..def5678 100644 --- a/db/migrate/20200513105319_create_srg_histories.rb +++ b/db/migrate/20200513105319_create_srg_histories.rb @@ -12,7 +12,7 @@ execute(<<-SQL INSERT INTO srg_h...
Move (no decision taken) to tooltip
diff --git a/lib/aws/xray/error_handlers.rb b/lib/aws/xray/error_handlers.rb index abc1234..def5678 100644 --- a/lib/aws/xray/error_handlers.rb +++ b/lib/aws/xray/error_handlers.rb @@ -23,9 +23,11 @@ # Must be configured sentry-raven gem. class ErrorHandlerWithSentry + ERROR_LEVEL = 'warning'.freeze + ...
Set proper error level for setnry raven
diff --git a/lib/eventually_tracker/base.rb b/lib/eventually_tracker/base.rb index abc1234..def5678 100644 --- a/lib/eventually_tracker/base.rb +++ b/lib/eventually_tracker/base.rb @@ -7,13 +7,13 @@ @buffer = buffer end - def track_action(controller_name, action_name, action_uid, data, cookies_d...
Fix typo with cookies and session data
diff --git a/app/models/concerns/versioned.rb b/app/models/concerns/versioned.rb index abc1234..def5678 100644 --- a/app/models/concerns/versioned.rb +++ b/app/models/concerns/versioned.rb @@ -24,7 +24,7 @@ end def created_from_result? - !created_by.nil? && created_by.kind_of?(::Event) + cr...
Use present, not not nil
diff --git a/lib/moneta/adapters/leveldb.rb b/lib/moneta/adapters/leveldb.rb index abc1234..def5678 100644 --- a/lib/moneta/adapters/leveldb.rb +++ b/lib/moneta/adapters/leveldb.rb @@ -39,6 +39,26 @@ @backend.close nil end + + # (see Proxy#each_key) + def each_key + return enum_...
LevelDB: Add each_key and "multi" methods
diff --git a/lib/mongoid/finders/find_by.rb b/lib/mongoid/finders/find_by.rb index abc1234..def5678 100644 --- a/lib/mongoid/finders/find_by.rb +++ b/lib/mongoid/finders/find_by.rb @@ -1,5 +1,4 @@ require 'mongoid' -require 'pry' module Mongoid::Finders::FindBy extend ActiveSupport::Concern
Remove Pry from our production code
diff --git a/app/policies/volunteer_policy.rb b/app/policies/volunteer_policy.rb index abc1234..def5678 100644 --- a/app/policies/volunteer_policy.rb +++ b/app/policies/volunteer_policy.rb @@ -2,7 +2,7 @@ class Scope < ApplicationScope def resolve return all if superadmin? - return resolve_owner if d...
Revert "only way to fix test for time being" This reverts commit d77e7a92430dda4730680ca39e5a036865cbf186.
diff --git a/lib/rails2_ruby2/rails_init.rb b/lib/rails2_ruby2/rails_init.rb index abc1234..def5678 100644 --- a/lib/rails2_ruby2/rails_init.rb +++ b/lib/rails2_ruby2/rails_init.rb @@ -8,3 +8,7 @@ :lib_const_string => 'ActionPack', :version_file => 'action_pack/version') do require 'rails2_ruby2/named_route_colle...
Load the postgresql adapter extensions when ActiveRecord is available.
diff --git a/lib/ruboty/actions/fizzbuzz.rb b/lib/ruboty/actions/fizzbuzz.rb index abc1234..def5678 100644 --- a/lib/ruboty/actions/fizzbuzz.rb +++ b/lib/ruboty/actions/fizzbuzz.rb @@ -2,7 +2,9 @@ module Fizzbuzz module Actions class Fizzbuzz < Ruboty::Actions::Base - + def call + message....
Add dummy call method in actions
diff --git a/lib/tanker_article_defaults.rb b/lib/tanker_article_defaults.rb index abc1234..def5678 100644 --- a/lib/tanker_article_defaults.rb +++ b/lib/tanker_article_defaults.rb @@ -2,7 +2,7 @@ def self.included(base) base.send(:include, ::Tanker) - index = ENV['SEARCHIFY_API_INDEX'] + index = 'hnlgov...
Fix broken environment variable in tanker config file
diff --git a/app/controllers/api/councillors_controller.rb b/app/controllers/api/councillors_controller.rb index abc1234..def5678 100644 --- a/app/controllers/api/councillors_controller.rb +++ b/app/controllers/api/councillors_controller.rb @@ -1,13 +1,13 @@ class Api::CouncillorsController < ApiController def index...
Change API Councillors Query To Multiple Criteria
diff --git a/docs/training_module_scripts/yml_from_wikitext.rb b/docs/training_module_scripts/yml_from_wikitext.rb index abc1234..def5678 100644 --- a/docs/training_module_scripts/yml_from_wikitext.rb +++ b/docs/training_module_scripts/yml_from_wikitext.rb @@ -0,0 +1,55 @@+# Take wikitext for a training module, convert...
Add script for generating training modules from wiki pages This code can be used manually to take a wiki page of new training module content, and generate the slide and module .yml files for it.
diff --git a/core/spec/features/refinery/admin/menu_spec.rb b/core/spec/features/refinery/admin/menu_spec.rb index abc1234..def5678 100644 --- a/core/spec/features/refinery/admin/menu_spec.rb +++ b/core/spec/features/refinery/admin/menu_spec.rb @@ -0,0 +1,102 @@+require "spec_helper" + +module Refinery + describe "men...
Add admin menu feature spec
diff --git a/db/migrate/20130614090445_fix_part_ordering.rb b/db/migrate/20130614090445_fix_part_ordering.rb index abc1234..def5678 100644 --- a/db/migrate/20130614090445_fix_part_ordering.rb +++ b/db/migrate/20130614090445_fix_part_ordering.rb @@ -0,0 +1,22 @@+class FixPartOrdering < Mongoid::Migration + def self.up ...
Add migration to fix nil order values on existing editions
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -2,4 +2,5 @@ require 'rack/static' use Rack::Static, urls: %w(/favicon.ico /images /stylesheets), root: 'public' +use ActiveRecord::ConnectionAdapters::ConnectionManagement run Bouncer.new
Use middleware to release the database connection after each request Without this, Active Record's pool of database connections gets exhausted after a certain number of requests.
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -11,6 +11,7 @@ r301 '/tutorial.html', '/guide' r301 '/download.html', '/install' r301 '/documentation', '/documentation/' + r301 '/documentation/_index.html', '/documentation/' rewrite(%r{^(.*)/([...
Add a redirect for the "index" link in the YARD docs.
diff --git a/config.ru b/config.ru index abc1234..def5678 100644 --- a/config.ru +++ b/config.ru @@ -7,8 +7,8 @@ # Unicorn self-process killer require 'unicorn/worker_killer' - min = (ENV['GITLAB_UNICORN_MEMORY_MIN'] || 200 * 1 << 20).to_i - max = (ENV['GITLAB_UNICORN_MEMORY_MAX'] || 250 * 1 << 20).to_...
Increase Unicorn memory limits to 300-350 Using this limit on GitLab.com it appears we're able to reduce response timings by about 620 milliseconds compared to the previous limit. See gitlab-org/gitlab-ce!2421 for more information.
diff --git a/core/process/setpgrp_spec.rb b/core/process/setpgrp_spec.rb index abc1234..def5678 100644 --- a/core/process/setpgrp_spec.rb +++ b/core/process/setpgrp_spec.rb @@ -33,14 +33,5 @@ Process.wait pid end end - - end - - describe "Process.setpgrp" do - platform_is_not :windows do - ...
Remove bad spec potentially changing the global process group
diff --git a/Casks/codekit.rb b/Casks/codekit.rb index abc1234..def5678 100644 --- a/Casks/codekit.rb +++ b/Casks/codekit.rb @@ -1,7 +1,7 @@ class Codekit < Cask - url 'http://incident57.com/codekit/files/codekit-16877.zip' + url 'http://incident57.com/codekit/files/codekit-16895.zip' homepage 'http://incident57.c...
Update Codekit to version 2.0.3 (16895)
diff --git a/SMCalloutView.podspec b/SMCalloutView.podspec index abc1234..def5678 100644 --- a/SMCalloutView.podspec +++ b/SMCalloutView.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SMCalloutView" - s.version = "1.1.1" + s.version = "1.1.2" s.summary = "A lightweight callout vie...
Update to bug fix release 1.1.2
diff --git a/lib/flowaker/rspec.rb b/lib/flowaker/rspec.rb index abc1234..def5678 100644 --- a/lib/flowaker/rspec.rb +++ b/lib/flowaker/rspec.rb @@ -8,14 +8,14 @@ def step(description, &block) yield - reporter.example_passed StepExample.new(description) + reporter.example_passed StepExample.new(d...
Add support for TeamCity report formatter RubyMine uses the TeamCity reporter formatter and requires the execution result of the example.
diff --git a/lib/html_processor.rb b/lib/html_processor.rb index abc1234..def5678 100644 --- a/lib/html_processor.rb +++ b/lib/html_processor.rb @@ -10,6 +10,7 @@ ACTION_FORM = '//form[@class="action-form"]'.freeze DATATABLE_DEFAULT = '//table[contains(@class, "datatable-default")]'.freeze INTRO_IMG ...
Add xpath targeting the intro paragraph.
diff --git a/spec/unit/lib/puppet/parser/functions/docker_run_flags_spec.rb b/spec/unit/lib/puppet/parser/functions/docker_run_flags_spec.rb index abc1234..def5678 100644 --- a/spec/unit/lib/puppet/parser/functions/docker_run_flags_spec.rb +++ b/spec/unit/lib/puppet/parser/functions/docker_run_flags_spec.rb @@ -0,0 +1,...
Add unit test for new behavior
diff --git a/lib/karabiner/item.rb b/lib/karabiner/item.rb index abc1234..def5678 100644 --- a/lib/karabiner/item.rb +++ b/lib/karabiner/item.rb @@ -10,6 +10,8 @@ only config_not config_only + device_not + device_only ].freeze def initialize(name, options = {})
Support device_only and device_not options
diff --git a/lib/frenetic/resource.rb b/lib/frenetic/resource.rb index abc1234..def5678 100644 --- a/lib/frenetic/resource.rb +++ b/lib/frenetic/resource.rb @@ -20,9 +20,12 @@ # of the subclass. class << self def api_client( client = nil ) - block_given? ? yield : client + metaclass.instan...
Revert "Removed dynamically generated `api` class method in favor a simple `alias_method` call" This reverts commit 27579ec85be9c2eeee2b460a873d87d27d49c3ba.
diff --git a/lib/orchestrate-rails.rb b/lib/orchestrate-rails.rb index abc1234..def5678 100644 --- a/lib/orchestrate-rails.rb +++ b/lib/orchestrate-rails.rb @@ -15,13 +15,13 @@ ==== {Try out the Tutorial!}[Rails/Tutorial.html] =end + # include the 'hidden gem' + require "orchestrate-application" + module Rail...
Move Application module out of Rails module.
diff --git a/lib/potassium/assets/config/graphql_playground.rb b/lib/potassium/assets/config/graphql_playground.rb index abc1234..def5678 100644 --- a/lib/potassium/assets/config/graphql_playground.rb +++ b/lib/potassium/assets/config/graphql_playground.rb @@ -1,18 +1,20 @@ # config/initializers/graphql_playground.rb ...
fix(gql): Fix production server not running due to config of dev gem
diff --git a/lib/will_paginate_semantic_ui/generic_renderer.rb b/lib/will_paginate_semantic_ui/generic_renderer.rb index abc1234..def5678 100644 --- a/lib/will_paginate_semantic_ui/generic_renderer.rb +++ b/lib/will_paginate_semantic_ui/generic_renderer.rb @@ -4,7 +4,7 @@ def to_html list_items = paginatio...
Switch from deprecated class Fixnum to Integer
diff --git a/source/feed.xml.builder b/source/feed.xml.builder index abc1234..def5678 100644 --- a/source/feed.xml.builder +++ b/source/feed.xml.builder @@ -9,7 +9,7 @@ xml.updated(blog.articles.first.date.to_time.iso8601) unless blog.articles.empty? xml.author { xml.name "Nathan and Katelin Day" } - blog.artic...
Change RSS feed to only include 1 item
diff --git a/spec/helpers/servers.rb b/spec/helpers/servers.rb index abc1234..def5678 100644 --- a/spec/helpers/servers.rb +++ b/spec/helpers/servers.rb @@ -0,0 +1,9 @@+RSpec.configure do |config| + + ### This helper is required because servers.get(id) does not work + def get_server(connection = nil, id) + connect...
Add a helper method to get server with id.
diff --git a/spec/parentless_spec.rb b/spec/parentless_spec.rb index abc1234..def5678 100644 --- a/spec/parentless_spec.rb +++ b/spec/parentless_spec.rb @@ -2,4 +2,11 @@ require 'compo' describe Compo::Parentless do + describe '#url' do + specify { expect(subject.url).to eq('') } + end + + describe '#child_url...
Create specs for url and child_url.
diff --git a/spec/support/classes.rb b/spec/support/classes.rb index abc1234..def5678 100644 --- a/spec/support/classes.rb +++ b/spec/support/classes.rb @@ -3,6 +3,18 @@ # Test::Alloy::Core Test::Alloy.const_set("Core", Class.new) + +# Test::Alloy::Core::Run +Test::Alloy::Core.const_set("Run", Class.new) +Test...
Test structure for new files.
diff --git a/spec/models/recipe_ingredient_spec.rb b/spec/models/recipe_ingredient_spec.rb index abc1234..def5678 100644 --- a/spec/models/recipe_ingredient_spec.rb +++ b/spec/models/recipe_ingredient_spec.rb @@ -9,7 +9,7 @@ end it "has a recipe" do - expect(@ingredient1.recipes.first).to eq(@recipe) + exp...
Fix up rspec error caused by recipe ingredients default_scope.
diff --git a/rom-yesql.gemspec b/rom-yesql.gemspec index abc1234..def5678 100644 --- a/rom-yesql.gemspec +++ b/rom-yesql.gemspec @@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_runtime_dependency 'rom', '~> 0.8', '>= 0.8.0' + spec.add_r...
Update rom dep in gemspec
diff --git a/CDZQRScanningViewController.podspec b/CDZQRScanningViewController.podspec index abc1234..def5678 100644 --- a/CDZQRScanningViewController.podspec +++ b/CDZQRScanningViewController.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = 'CDZQRScanningViewController' - s.version = '1.0.2' + ...
Update pod spec to 1.0.3
diff --git a/templates/unicorn.rb b/templates/unicorn.rb index abc1234..def5678 100644 --- a/templates/unicorn.rb +++ b/templates/unicorn.rb @@ -21,7 +21,8 @@ end if defined? ActiveRecord::Base - config = Rails.application.config.database_configuration[Rails.env] + config = ActiveRecord::Base.configuration...
Update Unicorn template with new config for Heroku * I recently ran into an issue after deploying to Heroku where `Rails.application.config.database_configuration[Rails.env]` was evaluating to `nil` in the staging environment. Updating config/unicorn.rb to the latest configuration recommended by Heroku fixed t...
diff --git a/ancestry.gemspec b/ancestry.gemspec index abc1234..def5678 100644 --- a/ancestry.gemspec +++ b/ancestry.gemspec @@ -3,7 +3,7 @@ s.description = 'Organise ActiveRecord model into a tree structure' s.summary = 'Ancestry allows the records of a ActiveRecord model to be organised in a tree structure, ...
Upgrade version number to 1.3
diff --git a/ci_environment/phpbuild/attributes/default.rb b/ci_environment/phpbuild/attributes/default.rb index abc1234..def5678 100644 --- a/ci_environment/phpbuild/attributes/default.rb +++ b/ci_environment/phpbuild/attributes/default.rb @@ -11,7 +11,7 @@ }, :custom => { :php_ini => { - :memory_limit ...
Increase memory_limit for PHP from 512M to 1G.
diff --git a/Casks/time-out.rb b/Casks/time-out.rb index abc1234..def5678 100644 --- a/Casks/time-out.rb +++ b/Casks/time-out.rb @@ -2,9 +2,12 @@ if MacOS.release <= :snow_leopard version '1.6.5' sha256 '2ceec8d8938af0acf32af601337c129087bb3b8c132c1f18e6eb3581788b8a49' - else + elsif MacOS.release <= :mav...
Upgrade Time Out.app to v2.0.1 Time Out 2.0.1 is out for Yosemite or newer.
diff --git a/vagrant.rb b/vagrant.rb index abc1234..def5678 100644 --- a/vagrant.rb +++ b/vagrant.rb @@ -3,6 +3,6 @@ config.vm.provision "shell", inline: <<-SHELL sudo apt-get -qq update sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install chef - sudo gem install chef-vault + sudo gem install...
Use old enough chef-vault to support Ruby < 2.4
diff --git a/spec/features/checklist_spec.rb b/spec/features/checklist_spec.rb index abc1234..def5678 100644 --- a/spec/features/checklist_spec.rb +++ b/spec/features/checklist_spec.rb @@ -0,0 +1,28 @@+require "spec_helper" + +RSpec.feature "Checklists", type: :feature do + scenario "User answers questions" do + gi...
Add basic feature test for checklists This adds a feature test for the current implementation of the checklists. This application currently uses Cucumber for feature tests. We've decided not to use cucumber, and use the preferred rspec-feature style. It is much more readable and maintainable.
diff --git a/src/01-hola-mundo/hola-mundo.rb b/src/01-hola-mundo/hola-mundo.rb index abc1234..def5678 100644 --- a/src/01-hola-mundo/hola-mundo.rb +++ b/src/01-hola-mundo/hola-mundo.rb @@ -1,6 +1,7 @@ # De igual manera que en Python, Ruby no tiene una función predeterminada # como punto de entrada. Por lo tanto compar...
Improve documentation on ruby hello world example
diff --git a/cookbooks/about_me/metadata.rb b/cookbooks/about_me/metadata.rb index abc1234..def5678 100644 --- a/cookbooks/about_me/metadata.rb +++ b/cookbooks/about_me/metadata.rb @@ -9,3 +9,10 @@ depends "rightscale" recipe "about_me::default","Prints my first name and several of my favorite things as output." + +...
Convert a Static Attribute into an Input
diff --git a/lib/donottrack.rb b/lib/donottrack.rb index abc1234..def5678 100644 --- a/lib/donottrack.rb +++ b/lib/donottrack.rb @@ -9,8 +9,7 @@ def call(env) env['HTTP_DNT'] = @dnt_bit ? @dnt_bit : (env['HTTP_DNT'] || env['HTTP_X_DO_NOT_TRACK'] || DEFAULT_DNT_BIT) - status, headers, response = @app.c...
Save yourself a line of code
diff --git a/test/i_repository_test.rb b/test/i_repository_test.rb index abc1234..def5678 100644 --- a/test/i_repository_test.rb +++ b/test/i_repository_test.rb @@ -41,9 +41,10 @@ end end - context "Enumerating the infos" do + context "Enumerating the infos for Gtk" do setup do @gir = IRepos...
Make sure Gtk gir data is loaded before getting its infos.
diff --git a/lib/smugsyncv2.rb b/lib/smugsyncv2.rb index abc1234..def5678 100644 --- a/lib/smugsyncv2.rb +++ b/lib/smugsyncv2.rb @@ -14,7 +14,7 @@ ACCESS_TOKEN_PATH = '/services/oauth/1.0a/getAccessToken' AUTHORIZE_PATH = '/services/oauth/1.0a/authorize' - API_ORIGIN = 'http://api.smugmug.com' + API_ORIGIN = ...
Change api origin to https
diff --git a/ve.gemspec b/ve.gemspec index abc1234..def5678 100644 --- a/ve.gemspec +++ b/ve.gemspec @@ -1,3 +1,4 @@+# -*- coding: utf-8 -*- Gem::Specification.new do |s| s.name = 've' s.version = '0.0.3'
Add encoding comment for emacs
diff --git a/RxAlamofire.podspec b/RxAlamofire.podspec index abc1234..def5678 100644 --- a/RxAlamofire.podspec +++ b/RxAlamofire.podspec @@ -12,7 +12,7 @@ s.ios.deployment_target = "8.0" s.osx.deployment_target = "10.10" s.tvos.deployment_target = "9.0" - s.watchos.deployment_target = "2.0" + s.watchos.deploy...
Watch OS deployment target to meet RxSwift Signed-off-by: Ryne Cheow <81ee06e819213c74a61ccd141a06617e0bd7ee99@gmail.com>
diff --git a/WNGLogger.podspec b/WNGLogger.podspec index abc1234..def5678 100644 --- a/WNGLogger.podspec +++ b/WNGLogger.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "WNGLogger" - s.version = "0.7.0" + s.version = "0.8.0" s.summary = "WNGLogger is an iOS client library to recor...
Update podspec to release 0.8.0.
diff --git a/actionpack/lib/action_dispatch/journey/gtg/simulator.rb b/actionpack/lib/action_dispatch/journey/gtg/simulator.rb index abc1234..def5678 100644 --- a/actionpack/lib/action_dispatch/journey/gtg/simulator.rb +++ b/actionpack/lib/action_dispatch/journey/gtg/simulator.rb @@ -14,6 +14,8 @@ end cl...
Build GTG::Simulator memos in a single loop
diff --git a/config/initializers/paperclip.rb b/config/initializers/paperclip.rb index abc1234..def5678 100644 --- a/config/initializers/paperclip.rb +++ b/config/initializers/paperclip.rb @@ -28,3 +28,12 @@ else Rails.logger.warn "The Paperclip::GeometryDetector patch can now be removed." end + +module UpdatedUrlG...
Fix deprecation warning in Paperclip Fixes deprecation warnings in Paperclip::UrlGenerator#escape_url On a side note: we shouldn't be using Paperclip at all, and should migrate to ActiveStorage.
diff --git a/Casks/firefoxdeveloperedition.rb b/Casks/firefoxdeveloperedition.rb index abc1234..def5678 100644 --- a/Casks/firefoxdeveloperedition.rb +++ b/Casks/firefoxdeveloperedition.rb @@ -1,6 +1,6 @@ class Firefoxdeveloperedition < Cask version '35.0a2' - sha256 '9d5d504229aa30c96f528713df098cb6436df33fdb32924...
Fix SHA for Firefox Developer Edition
diff --git a/db/migrate/20220301101011_remove_scenario_title_and_description.rb b/db/migrate/20220301101011_remove_scenario_title_and_description.rb index abc1234..def5678 100644 --- a/db/migrate/20220301101011_remove_scenario_title_and_description.rb +++ b/db/migrate/20220301101011_remove_scenario_title_and_descriptio...
Move scenario title and description to metadata
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,8 +7,6 @@ require 'sample_rack_app/hey' RSpec.configure do |config| - Capybara.default_driver = :selenium - config.before(:all) do DeferredGarbageCollection.start ...
Set Capybara driver to default.
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,6 +4,7 @@ Dir['./spec/support/**/*.rb'].each { |f| require f } RSpec.configure do |config| + config.color = true config.filter_run :focus => true config.run_all_when_e...
Add color for RSpec output
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -0,0 +1,19 @@+# This file was generated by the `rspec --init` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# Require ...
Add RSpec helper (and contains_duplicates matcher)
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,6 +8,7 @@ SimpleCov::Formatter::HTMLFormatter, CodeClimate::TestReporter::Formatter ]) + add_filter "/spec/" end rescue LoadError end
Stop showing coverage for spec files
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,13 +5,7 @@ $:.unshift(File.dirname(__FILE__) + '/../lib') require 'cucumber' require 'cucumber/treetop_parser/feature_en' - -# Prevent CLI's exit hook from running -class Cucu...
Enable English by default when running specs
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -5,7 +5,6 @@ ENV['AHN_ENV'] = 'production' RSpec.configure do |config| - config.color_enabled = true config.tty = true config.filter_run :focus => true
Fix for RSpec 3 - this option doesn't exist
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index abc1234..def5678 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,6 @@+require "codeclimate-test-reporter" +CodeClimate::TestReporter.start + require 'bundler/setup' Bundler.setup
Fix rspec code climate reporter
diff --git a/lib/diff.rb b/lib/diff.rb index abc1234..def5678 100644 --- a/lib/diff.rb +++ b/lib/diff.rb @@ -1,15 +1,18 @@+## +# Generically represent a Diff +## class Diff include Reloadable attr_accessor :chunks - def initialize + def initialize(chunks) + @chunks = chunks end def inspect ...
Add @chunks to Diff object
diff --git a/spec/requests/authentication_pages_spec.rb b/spec/requests/authentication_pages_spec.rb index abc1234..def5678 100644 --- a/spec/requests/authentication_pages_spec.rb +++ b/spec/requests/authentication_pages_spec.rb @@ -20,7 +20,13 @@ it { should have_title('Sign in')} it { should have_selec...
Correct spec to detect flash message bug
diff --git a/ext/puma_http11/extconf.rb b/ext/puma_http11/extconf.rb index abc1234..def5678 100644 --- a/ext/puma_http11/extconf.rb +++ b/ext/puma_http11/extconf.rb @@ -4,8 +4,8 @@ $defs.push "-Wno-deprecated-declarations" -if %w'ssl ssleay'.find {|ssl| have_library(ssl, 'SSL_CTX_new')} and - %w'crypto libeay'.fin...
Use the correct Windows names for OpenSSL.
diff --git a/aho_corasick_matcher.gemspec b/aho_corasick_matcher.gemspec index abc1234..def5678 100644 --- a/aho_corasick_matcher.gemspec +++ b/aho_corasick_matcher.gemspec @@ -12,7 +12,6 @@ s.homepage = 'https://github.com/altmetric/aho_corasick_matcher' s.files = %w(README.md LICENSE lib/aho_corasick_matcher.rb)...
Remove explicit require_paths as it's the default By default, RubyGems will define `require_paths` to be `lib` [0] so we can drop this from the gemspec. [0]: http://guides.rubygems.org/specification-reference/#require_paths=
diff --git a/lib/http.rb b/lib/http.rb index abc1234..def5678 100644 --- a/lib/http.rb +++ b/lib/http.rb @@ -15,7 +15,13 @@ def get(uri) mutex.synchronize{ @@busy = true } - response = open(uri).read + response = nil + begin + response = open(uri).read + rescue => e + Line...
Handle errors from remote URLs
diff --git a/lib/visa.rb b/lib/visa.rb index abc1234..def5678 100644 --- a/lib/visa.rb +++ b/lib/visa.rb @@ -6,7 +6,7 @@ end Visa.encryption_cost = 10 -Visa.request_header = 'Authentication' +Visa.request_header = 'HTTP_AUTHENTICATION' Visa.timeout = 14.days require 'visa/engine'
Use Rack-ified HTTP header default.
diff --git a/Formula/bartycrouch.rb b/Formula/bartycrouch.rb index abc1234..def5678 100644 --- a/Formula/bartycrouch.rb +++ b/Formula/bartycrouch.rb @@ -1,7 +1,7 @@ class Bartycrouch < Formula desc "Incrementally update/translate your Strings files" homepage "https://github.com/Flinesoft/BartyCrouch" - url "http...
Update Formula to version 4.2.0
diff --git a/recipes/config.rb b/recipes/config.rb index abc1234..def5678 100644 --- a/recipes/config.rb +++ b/recipes/config.rb @@ -36,17 +36,18 @@ action :create end -template "#{home}/.ssh/authorized_keys" do +file "#{home}/.ssh/authorized_keys" do content "#{node["fossology"]["ssh_public_key"]}\n" mode 0...
Fix incorrect use of template resource
diff --git a/ruby-wisp.gemspec b/ruby-wisp.gemspec index abc1234..def5678 100644 --- a/ruby-wisp.gemspec +++ b/ruby-wisp.gemspec @@ -7,7 +7,7 @@ s.version = Wisp::VERSION s.authors = ['Yuri Artemev'] s.email = ['i@artemeff.com'] - s.description = %q{Ruby Wisp is a bridge to the JS Wisp co...
Add rake to gemspec, change railties to rails
diff --git a/RNCryptor.podspec b/RNCryptor.podspec index abc1234..def5678 100644 --- a/RNCryptor.podspec +++ b/RNCryptor.podspec @@ -5,7 +5,7 @@ s.authors = {'Rob Napier' => 'robnapier@gmail.com'} s.social_media_url = 'https://twitter.com/cocoaphony' s.license = 'MIT' - s.source = { :git => 'https://github.com/rna...
Update podspec to use semver tags
diff --git a/SUPSemVer.podspec b/SUPSemVer.podspec index abc1234..def5678 100644 --- a/SUPSemVer.podspec +++ b/SUPSemVer.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SUPSemVer" - s.version = "1.0.2" + s.version = "1.0.3" s.summary = "Easy-to-use Semantic Version comparison frame...
[1.0.3] Fix bug with missing components in string
diff --git a/metadata.rb b/metadata.rb index abc1234..def5678 100644 --- a/metadata.rb +++ b/metadata.rb @@ -1,10 +1,10 @@-name "collectd" -maintainer "Noan Kantrowitz" -maintainer_email "nkantrowitz@crypticstudios.com" -license "Apache 2.0" -description "Install and configure the collec...
Replace " with ' quotes