diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/pvim/cli.rb b/lib/pvim/cli.rb
index abc1234..def5678 100644
--- a/lib/pvim/cli.rb
+++ b/lib/pvim/cli.rb
@@ -2,9 +2,16 @@
module Pvim
class CLI < Thor
+ include Thor::Actions
+
desc 'version', 'Prints version'
def version
puts Pvim::VERSION
end
+
+ desc 'pathogen', 'Get ... | Add 'pathogen' command for downloading pathogen from tpope/vim-pathogen repo
|
diff --git a/lib/toy_robot_simulator/command/matcher/matcher.rb b/lib/toy_robot_simulator/command/matcher/matcher.rb
index abc1234..def5678 100644
--- a/lib/toy_robot_simulator/command/matcher/matcher.rb
+++ b/lib/toy_robot_simulator/command/matcher/matcher.rb
@@ -1,3 +1,6 @@+require './lib/toy_robot_simulator/command/... | Fix bug in Command::Matcher (hidden dependancy)
This Module is dependant on ::Base and ::Place since it calls
.constatns() on self, thus expects those constatnts to be defined.
Solution is to require those modules at top of file. Better design
is the way to solve this if more constants are to be defined in
the future... |
diff --git a/lib/travis/build/appliances/disable_ssh_roaming.rb b/lib/travis/build/appliances/disable_ssh_roaming.rb
index abc1234..def5678 100644
--- a/lib/travis/build/appliances/disable_ssh_roaming.rb
+++ b/lib/travis/build/appliances/disable_ssh_roaming.rb
@@ -5,10 +5,14 @@ module Appliances
class Disabl... | Fix an error where Sierra builds can't use git
Due to the CVE earlier this year regarding "Roaming" mode in SSH, Apple
has decided it's a good idea to just completely take out SSH roaming
entirely, starting in macOS 10.12. Defining an invalid directive in the
SSH configuration breaks Git, so we need to not set that di... |
diff --git a/db/migrate/20151030145640_add_attachment_photo_to_drops.rb b/db/migrate/20151030145640_add_attachment_photo_to_drops.rb
index abc1234..def5678 100644
--- a/db/migrate/20151030145640_add_attachment_photo_to_drops.rb
+++ b/db/migrate/20151030145640_add_attachment_photo_to_drops.rb
@@ -0,0 +1,11 @@+class AddA... | Update migration to add attachment photo to drop
|
diff --git a/app/models/package.rb b/app/models/package.rb
index abc1234..def5678 100644
--- a/app/models/package.rb
+++ b/app/models/package.rb
@@ -13,4 +13,20 @@ class Package < ActiveRecord::Base
belongs_to :revision
+ # Returns the comparator in the format needed for the XML
+ def xml_comp
+ comps = {
+... | Add XML comparators to the Package model |
diff --git a/lib/active_record/connection_adapters/oracle_enhanced_dirty.rb b/lib/active_record/connection_adapters/oracle_enhanced_dirty.rb
index abc1234..def5678 100644
--- a/lib/active_record/connection_adapters/oracle_enhanced_dirty.rb
+++ b/lib/active_record/connection_adapters/oracle_enhanced_dirty.rb
@@ -18,6 +1... | Address 2 failues since numeric_changes_from_zero_to_string? method implemented at Rails.
|
diff --git a/lib/gems/pending/kubernetes/events/kubernetes_event_monitor.rb b/lib/gems/pending/kubernetes/events/kubernetes_event_monitor.rb
index abc1234..def5678 100644
--- a/lib/gems/pending/kubernetes/events/kubernetes_event_monitor.rb
+++ b/lib/gems/pending/kubernetes/events/kubernetes_event_monitor.rb
@@ -5,7 +5,... | Correct default view settings for renamed models
|
diff --git a/brew/cask/awsaml.rb b/brew/cask/awsaml.rb
index abc1234..def5678 100644
--- a/brew/cask/awsaml.rb
+++ b/brew/cask/awsaml.rb
@@ -1,10 +1,10 @@ cask 'awsaml' do
- version '2.0.0'
- sha256 'cea42994cb52a71b8f811c38b25281604360b8216889e0f3217d4583cd7ead1a'
+ version '2.1.0'
+ sha256 '187f13a51cb28546fc04f1... | Update homebrew cask for v2.1.0
|
diff --git a/app/models/glimage.rb b/app/models/glimage.rb
index abc1234..def5678 100644
--- a/app/models/glimage.rb
+++ b/app/models/glimage.rb
@@ -1,5 +1,6 @@ class Glimage < ActiveRecord::Base
belongs_to :project
+ has_many :comments
attr_accessible :file, :filetype
@@ -20,13 +21,13 @@
def filepath
... | Add file separator to front of imagepath so that we can use it directly in html tags
|
diff --git a/api/spree_api.gemspec b/api/spree_api.gemspec
index abc1234..def5678 100644
--- a/api/spree_api.gemspec
+++ b/api/spree_api.gemspec
@@ -22,6 +22,6 @@ s.add_dependency 'spree_core', s.version
s.add_dependency 'rabl', '~> 0.13.1'
s.add_dependency 'versioncake', '~> 3.4.0'
- s.add_dependency 'fast_js... | Update fast_jsonapi gem to 1.2
|
diff --git a/app/admin/feedback.rb b/app/admin/feedback.rb
index abc1234..def5678 100644
--- a/app/admin/feedback.rb
+++ b/app/admin/feedback.rb
@@ -21,6 +21,7 @@ f.input :newsletter_opt_in
f.input :created_at, :as => :datepicker
f.input :sent_at, :as => :datep... | Add image to Active Admin contact form
|
diff --git a/lib/health-data-standards/import/cda/procedure_importer.rb b/lib/health-data-standards/import/cda/procedure_importer.rb
index abc1234..def5678 100644
--- a/lib/health-data-standards/import/cda/procedure_importer.rb
+++ b/lib/health-data-standards/import/cda/procedure_importer.rb
@@ -9,15 +9,13 @@ ... | Revert "add incision_time to procedure imports". Use cat1 procedure performed importer instead.
This reverts commit 4ff3382e1567b931670e39bada4f9f3a25759664.
|
diff --git a/files/default/ohai_plugins/local_passwd.rb b/files/default/ohai_plugins/local_passwd.rb
index abc1234..def5678 100644
--- a/files/default/ohai_plugins/local_passwd.rb
+++ b/files/default/ohai_plugins/local_passwd.rb
@@ -0,0 +1,27 @@+provides 'etc', 'current_user'
+
+require 'etc'
+
+unless etc
+ etc Mash.... | Add ohai plugin for local passwords
|
diff --git a/spec/models/adjustment_metadata_spec.rb b/spec/models/adjustment_metadata_spec.rb
index abc1234..def5678 100644
--- a/spec/models/adjustment_metadata_spec.rb
+++ b/spec/models/adjustment_metadata_spec.rb
@@ -1,3 +1,5 @@+require 'spec_helper'
+
describe AdjustmentMetadata do
it "is valid when build from... | Fix uninitialized constant error when running model specs
|
diff --git a/test/test_response.rb b/test/test_response.rb
index abc1234..def5678 100644
--- a/test/test_response.rb
+++ b/test/test_response.rb
@@ -4,20 +4,26 @@
class TestResponse < Test::Unit::TestCase
- def setup
- @response = SecondMate::Response.new(
+ def test_yaml_frontmatter
+ response = SecondMate... | Add unit test for response templating
|
diff --git a/test/controllers/pictures_controller_test.rb b/test/controllers/pictures_controller_test.rb
index abc1234..def5678 100644
--- a/test/controllers/pictures_controller_test.rb
+++ b/test/controllers/pictures_controller_test.rb
@@ -25,6 +25,6 @@ delete :destroy, id: @picture
end
- assert_redire... | Update test for picture destroy route. Pass tests
|
diff --git a/noodle.rb b/noodle.rb
index abc1234..def5678 100644
--- a/noodle.rb
+++ b/noodle.rb
@@ -19,8 +19,11 @@ status 200
end
- post '/nodes/:name' do
- halt(422, "#{params[:name]} already exists.\n") if Node.find(params[:name])
+ put '/nodes/:name' do
+ # TODO: Surely order matt... | Add PUT stub OPTIONS and PATCH
|
diff --git a/helios.rb b/helios.rb
index abc1234..def5678 100644
--- a/helios.rb
+++ b/helios.rb
@@ -6,7 +6,7 @@ sha1 "072461e7256fcbeb2013ded33a4f8eb427b1c9a9"
version "0.8.279"
- depends_on :java => "1.7"
+ depends_on :java => "1.7+"
def install
libexec.install "helios-tools-0.8.279-shaded.jar"
| Allow Helios to run on Java8. |
diff --git a/lib/bunny/heartbeat_sender.rb b/lib/bunny/heartbeat_sender.rb
index abc1234..def5678 100644
--- a/lib/bunny/heartbeat_sender.rb
+++ b/lib/bunny/heartbeat_sender.rb
@@ -46,7 +46,8 @@ sleep @interval
end
rescue IOError => ioe
- # ignored
+ puts ioe.message
+ sto... | Stop heartbeat sender upon IOError
It will be re-initialized by connection recovery if it's needed,
otherwise it just protects us from having a busy loop.
|
diff --git a/test/test_encoding.rb b/test/test_encoding.rb
index abc1234..def5678 100644
--- a/test/test_encoding.rb
+++ b/test/test_encoding.rb
@@ -7,6 +7,12 @@ Swift.db do |db|
db.execute %q{drop table if exists users}
db.execute %q{create table users(id serial, name text, primary key(id... | Set utf8 encoding for MySQL in encoding tests.
|
diff --git a/app/models/sample.rb b/app/models/sample.rb
index abc1234..def5678 100644
--- a/app/models/sample.rb
+++ b/app/models/sample.rb
@@ -24,6 +24,19 @@ )
has_many :component_samples, through: :joins_as_compound_sample
+ attr_accessor :component_sample_uuids
+
+ before_validation do
+ unless componen... | Add logic to Sample to handle component UUIDs in JSON message
|
diff --git a/config.rb b/config.rb
index abc1234..def5678 100644
--- a/config.rb
+++ b/config.rb
@@ -0,0 +1,25 @@+# Require any additional compass plugins here.
+
+# Set this to the root of your project when deployed:
+http_path = "/"
+css_dir = "css"
+sass_dir = "sass"
+images_dir = "img"
+javascripts_dir = "js"
+font... | Set up directory to work with Compass.
|
diff --git a/config.rb b/config.rb
index abc1234..def5678 100644
--- a/config.rb
+++ b/config.rb
@@ -1,3 +1,3 @@ # Serve HTTP traffic on this port
set :port, 4567
-set :host, "0.0.0.0"
+set :bind, "0.0.0.0"
| Use the right option to specify the address to bind to
See http://www.sinatrarb.com/configuration.html |
diff --git a/config.ru b/config.ru
index abc1234..def5678 100644
--- a/config.ru
+++ b/config.ru
@@ -1,7 +1,6 @@ require './boot'
require 'rack/static'
-use Bouncer::Cacher
require 'exception_mailer'
if ENV['RACK_ENV'] == 'production'
@@ -15,6 +14,8 @@ end
end
+use Bouncer::Cacher
+
# We need compatibility... | Put ExceptionMailer middleware outside of Cacher
This way if Cacher raises an exception, it will get reported.
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -26,8 +26,7 @@ {
"id" => "defaultHttpEndpoint",
"host" => "*",
- "httpport" => "9080",
- "httpsport" => "9443"
+ "httpport" => "9080"
... | Remove https port from wicket sample recipe as its not used.
|
diff --git a/attributes/install.rb b/attributes/install.rb
index abc1234..def5678 100644
--- a/attributes/install.rb
+++ b/attributes/install.rb
@@ -1,7 +1,7 @@-default['traefik']['install']['version'] = '1.0.3'
+default['traefik']['install']['version'] = '1.1.1'
default['traefik']['install']['install_method'] = 'bina... | Update traefik to 1.1.1 and remove checksum
You should add your own checksum
|
diff --git a/lib/travis/config/heroku/database.rb b/lib/travis/config/heroku/database.rb
index abc1234..def5678 100644
--- a/lib/travis/config/heroku/database.rb
+++ b/lib/travis/config/heroku/database.rb
@@ -13,6 +13,7 @@ config = compact(Url.parse(url).to_h)
config = deep_merge(DEFAULTS, config) ... | Use PGBOUNCER_PREPARED_STATEMENTS env var to control prepared statements |
diff --git a/testbot_cloud.gemspec b/testbot_cloud.gemspec
index abc1234..def5678 100644
--- a/testbot_cloud.gemspec
+++ b/testbot_cloud.gemspec
@@ -18,7 +18,7 @@ s.require_paths = ["lib"]
s.add_dependency "thor", ">0.14.5"
- s.add_dependency "fog", "=0.7.2"
+ s.add_dependency "fog", ">0.7.2"
s.add_dependen... | CHange gemspec to accept newer fog versions.
|
diff --git a/coder_wally.gemspec b/coder_wally.gemspec
index abc1234..def5678 100644
--- a/coder_wally.gemspec
+++ b/coder_wally.gemspec
@@ -13,7 +13,7 @@ spec.homepage = 'https://github.com/gregstewart/coder_wally'
spec.license = 'MIT'
- spec.files = `git ls-files -z`.split('\x0')
+ spec.fi... | Fix for weird string contains null byte message
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -1,2 +1,3 @@ default['cespi_application']['server_names']=[]
-default['ncsd']['server_user']= 'nobody'
+
+default['nscd']['server_user']= 'nobody'
| Fix type nscd / ncsd
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -24,4 +24,4 @@ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
-default[:aws_sdk_version] = "1.53.0"
+default[:aws_sdk_version] = "1.64.0"
| Update aws-sdk version to latest |
diff --git a/attributes/jenkins.rb b/attributes/jenkins.rb
index abc1234..def5678 100644
--- a/attributes/jenkins.rb
+++ b/attributes/jenkins.rb
@@ -1,3 +1,3 @@-default['jenkins']['master']['version'] = '1.619-1.1'
+default['jenkins']['master']['version'] = '1.642-1.1' # LTS
default['jenkins']['master']['jvm_options']... | Set Jenkins to the latest LTS version
|
diff --git a/lib/lmgtfy_helper/view_helpers.rb b/lib/lmgtfy_helper/view_helpers.rb
index abc1234..def5678 100644
--- a/lib/lmgtfy_helper/view_helpers.rb
+++ b/lib/lmgtfy_helper/view_helpers.rb
@@ -1,10 +1,14 @@ module LetMeGoogleThatForYouHelper
module ViewHelpers
- def lmgtfy_button phrase
- link_to 'Let ... | Add custom label possibility, remove swear words
|
diff --git a/lib/pg_search/features/feature.rb b/lib/pg_search/features/feature.rb
index abc1234..def5678 100644
--- a/lib/pg_search/features/feature.rb
+++ b/lib/pg_search/features/feature.rb
@@ -5,26 +5,30 @@ class Feature
delegate :connection, :quoted_table_name, :to => :'@model'
- def initialize(q... | Refactor :only column filtering to private method
I prefer not to do any unnecessary calculations in #initialize, so that
objects are easier to instantiate for unit testing. |
diff --git a/lib/rdoc2mdoc/renderable_class.rb b/lib/rdoc2mdoc/renderable_class.rb
index abc1234..def5678 100644
--- a/lib/rdoc2mdoc/renderable_class.rb
+++ b/lib/rdoc2mdoc/renderable_class.rb
@@ -11,7 +11,7 @@ end
def short_description
- comment.first_paragraph
+ truncate(comment.first_paragraph, ... | Truncate short descriptions to 50 characters.
|
diff --git a/arm-none-eabi-gcc.rb b/arm-none-eabi-gcc.rb
index abc1234..def5678 100644
--- a/arm-none-eabi-gcc.rb
+++ b/arm-none-eabi-gcc.rb
@@ -3,10 +3,10 @@ class ArmNoneEabiGcc < Formula
homepage 'https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads'
- version '6-2017-q1-update'
+ version '6-2... | Update ARM gcc to `6-2017-q2-update` |
diff --git a/lib/test_launcher/shell/runner.rb b/lib/test_launcher/shell/runner.rb
index abc1234..def5678 100644
--- a/lib/test_launcher/shell/runner.rb
+++ b/lib/test_launcher/shell/runner.rb
@@ -15,6 +15,7 @@ @log_path = log_path
%x{echo "" > #{log_path}}
+ Dir.chdir(%x[ git rev-parse --show... | Replace moving to git repo root as its required
|
diff --git a/lib/carto/export/map_statistics.rb b/lib/carto/export/map_statistics.rb
index abc1234..def5678 100644
--- a/lib/carto/export/map_statistics.rb
+++ b/lib/carto/export/map_statistics.rb
@@ -0,0 +1,45 @@+module Carto
+ module Export
+ class MapStatistics
+ FILE_MODE = :file
+ STDOUT_MODE = :stdo... | Add file for exporting stats
|
diff --git a/lib/chalmersit/string_with_lang.rb b/lib/chalmersit/string_with_lang.rb
index abc1234..def5678 100644
--- a/lib/chalmersit/string_with_lang.rb
+++ b/lib/chalmersit/string_with_lang.rb
@@ -0,0 +1,26 @@+class Chalmersit::StringWithLang
+
+ attr_accessor :lang, :value
+
+ def initialize(string)
+ @lang, ... | Add datatype for strings with embedded language
|
diff --git a/lib/poseidon/producer_compression_config.rb b/lib/poseidon/producer_compression_config.rb
index abc1234..def5678 100644
--- a/lib/poseidon/producer_compression_config.rb
+++ b/lib/poseidon/producer_compression_config.rb
@@ -10,7 +10,7 @@ if compression_codec
@compression_codec = COMPRESSION_... | Correct a typo in an unknown codec message.
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -25,7 +25,7 @@ daemon_user(:graphite)
standard_dirs('graphite') do
- directories :conf_dir, :home_dir, :log_dir
+ directories :conf_dir, :data_dir, :home_dir, :log_dir
end
... | Create the :data_dir as well
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -18,7 +18,7 @@
# Create directories
app_dirs = [
- "#{node['sabnzbd']['install_dir']}"
+ "#{node['sabnzbd']['install_dir']}/#{node['sabnzbd']['version']}"
]
app_dirs.each do |... | Create the correct version directory
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -23,9 +23,9 @@ action :install
end
-chef_conf_dir = "/etc/hadoop/#{node[:hadoop][:conf_dir]}"
+hadoop_conf_dir = "/etc/hadoop/#{node[:hadoop][:conf_dir]}"
-directory chef_conf_d... | Rename to hadoop_conf_dir since we will have other configuration directories
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -23,7 +23,7 @@ source node['chef-vault']['gem_source']
version node['chef-vault']['version']
clear_sources true unless node['chef-vault']['gem_source'].nil?
- compile_... | Remove chef 11 compatibility in chef_gem
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/config/schedule.rb b/config/schedule.rb
index abc1234..def5678 100644
--- a/config/schedule.rb
+++ b/config/schedule.rb
@@ -21,7 +21,7 @@
set :output, 'log/cron.log'
-every 15.minutes do
+every 4.minutes do
rake 'batch:update_constantly'
end
| Increase frequency of update cron job
Now that updates are much faster, the wait between cron intervals is a significant portion of the time between updates. This way, it won't wait more than a few minutes between updates.
|
diff --git a/lib/endpoint_base/concerns/response_dsl.rb b/lib/endpoint_base/concerns/response_dsl.rb
index abc1234..def5678 100644
--- a/lib/endpoint_base/concerns/response_dsl.rb
+++ b/lib/endpoint_base/concerns/response_dsl.rb
@@ -29,9 +29,10 @@ end
def add_object(klass, object)
- raise "object[... | Validate object[id] presence checking the id as a symbol and string
|
diff --git a/lib/faraday_persistent_excon/connection.rb b/lib/faraday_persistent_excon/connection.rb
index abc1234..def5678 100644
--- a/lib/faraday_persistent_excon/connection.rb
+++ b/lib/faraday_persistent_excon/connection.rb
@@ -14,7 +14,7 @@ end
def expired?
- return false if last_use.nil?
+ r... | Disable idle_timeout when set to 0
|
diff --git a/lib/itamae/plugin/recipe/h2o/dependency.rb b/lib/itamae/plugin/recipe/h2o/dependency.rb
index abc1234..def5678 100644
--- a/lib/itamae/plugin/recipe/h2o/dependency.rb
+++ b/lib/itamae/plugin/recipe/h2o/dependency.rb
@@ -3,7 +3,15 @@ when 'debian', 'ubuntu', 'mint'
package 'wget'
package 'cmake'
+ if... | Add dependecy packages to enable mruby
|
diff --git a/lib/redis/rails/instrumentation.rb b/lib/redis/rails/instrumentation.rb
index abc1234..def5678 100644
--- a/lib/redis/rails/instrumentation.rb
+++ b/lib/redis/rails/instrumentation.rb
@@ -30,4 +30,4 @@ end
end
-Redis::Client.prepend(Redis::Rails::Instrumentation::Logging)
+Redis::Client.send(:prepend,... | Prepend is private on Ruby 2.0.0 |
diff --git a/instagram_api.gemspec b/instagram_api.gemspec
index abc1234..def5678 100644
--- a/instagram_api.gemspec
+++ b/instagram_api.gemspec
@@ -1,16 +1,16 @@ # coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
-require 'instagram_api/version'
+requir... | Update .gemspec with desc, summary, and homepage.
|
diff --git a/lib/et.rb b/lib/et.rb
index abc1234..def5678 100644
--- a/lib/et.rb
+++ b/lib/et.rb
@@ -13,6 +13,8 @@ require "core_ext/hash"
require "core_ext/object"
require "core_ext/string"
+
+Nori.parser = :nokogiri
module ET
class Error < StandardError
| Use Nokogiri as XML parser. |
diff --git a/lib/blade/server.rb b/lib/blade/server.rb
index abc1234..def5678 100644
--- a/lib/blade/server.rb
+++ b/lib/blade/server.rb
@@ -24,6 +24,7 @@ private
def app
Rack::Builder.app do
+ use Rack::ShowExceptions
run Blade::RackAdapter.new
end
end
| Add Rack::ShowExceptions middleware to help debug errors rendering the index page
|
diff --git a/lib/micromachine.rb b/lib/micromachine.rb
index abc1234..def5678 100644
--- a/lib/micromachine.rb
+++ b/lib/micromachine.rb
@@ -28,4 +28,8 @@ rescue NoMethodError
raise InvalidEvent
end
+
+ def ==(some_state)
+ state == some_state
+ end
end
| Allow comparing a Machine to a String
This lets us redefine model methods as FSMs, and still be able to compare:
class SomeModel < ActiveRecord::Base
def activate!
state.trigger(:activate)
save!
end
def state
@_state ||= MicroMachine.new(self[:state]).tap do |... |
diff --git a/lib/oauth/config.rb b/lib/oauth/config.rb
index abc1234..def5678 100644
--- a/lib/oauth/config.rb
+++ b/lib/oauth/config.rb
@@ -10,6 +10,9 @@
def self.instance(csrf, base_callback_url, invitation_token: nil, organization_name: nil)
if config['client_id'].present?
+ if Cartodb::Central.s... | Use central redirect uri if available
|
diff --git a/lib/opskit/vhost.rb b/lib/opskit/vhost.rb
index abc1234..def5678 100644
--- a/lib/opskit/vhost.rb
+++ b/lib/opskit/vhost.rb
@@ -1,6 +1,6 @@ module OpsKit
class VHost
- PROVIDERS = [:apache, :nginx]
+ PROVIDERS = Dir.entries( File.join( File.dirname(__FILE__), "templates/" ) ).select {|f| !File.dir... | Change VHost class to allow full template
|
diff --git a/lib/quiet_opener.rb b/lib/quiet_opener.rb
index abc1234..def5678 100644
--- a/lib/quiet_opener.rb
+++ b/lib/quiet_opener.rb
@@ -27,7 +27,7 @@ Rails.logger.warn("PURGE: Unable to reach host #{host}")
end
if result == "200"
- Rails.logger.info("PURGE: Purged URL #{url} at #{host}: #{... | Make successful PURGEs log at debug level to reduce unecessary noise at default level (info)
|
diff --git a/lib/sidekiq/cron.rb b/lib/sidekiq/cron.rb
index abc1234..def5678 100644
--- a/lib/sidekiq/cron.rb
+++ b/lib/sidekiq/cron.rb
@@ -6,3 +6,15 @@ module Cron
end
end
+
+if Redis::VERSION < '4.2'
+ module RedisCompatible
+ extend ActiveSupport::Concern
+
+ def exists?(key)
+ exists(key)
+ en... | Add redis conn.exists? method compatible.
|
diff --git a/lib/tasks/rcov.rake b/lib/tasks/rcov.rake
index abc1234..def5678 100644
--- a/lib/tasks/rcov.rake
+++ b/lib/tasks/rcov.rake
@@ -10,7 +10,8 @@
unless PLATFORM['i386-mswin32']
rcov = "rcov --sort coverage --rails --aggregate coverage.data " <<
- "--text-summary -Ilib -T -x gems/*,db/migrate/*... | Exclude jrails files from coverage tests.
|
diff --git a/config/environment.rb b/config/environment.rb
index abc1234..def5678 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -4,7 +4,7 @@ # Initialize the Rails application.
Rails.application.initialize!
-Rails.application.routes.default_url_options[:host] = 'articles-read.herokuapp.com'
+Rail... | Change the root URL of the app
Signed-off-by: Siddharth Kannan <7a804f1d08bac02a84ba1822c22c8bf38be68ecc@tutanota.com>
|
diff --git a/spec/mutations/circle/member/change_status_spec.rb b/spec/mutations/circle/member/change_status_spec.rb
index abc1234..def5678 100644
--- a/spec/mutations/circle/member/change_status_spec.rb
+++ b/spec/mutations/circle/member/change_status_spec.rb
@@ -13,7 +13,7 @@ it 'fills the comment body with an in... | Fix test; i18n string changed. |
diff --git a/lib/api_matchers/core/find_in_json.rb b/lib/api_matchers/core/find_in_json.rb
index abc1234..def5678 100644
--- a/lib/api_matchers/core/find_in_json.rb
+++ b/lib/api_matchers/core/find_in_json.rb
@@ -15,15 +15,13 @@ if key == expected_key
unless expected_value.nil?
if ... | Put return in one line comparison |
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -8,5 +8,5 @@ u = User.create(name: 'Thomas McDonald', email: 'example@example.com')
u.authorizations << Authorization.new(email: 'example@example.com', provider: 'google', uid: 'lolnope')
-u.questions << Quest... | Change the initial question example to include a tiny bit of markdown
|
diff --git a/hutch.gemspec b/hutch.gemspec
index abc1234..def5678 100644
--- a/hutch.gemspec
+++ b/hutch.gemspec
@@ -6,7 +6,7 @@ gem.add_runtime_dependency 'march_hare', '>= 3.0.0'
else
gem.platform = Gem::Platform::RUBY
- gem.add_runtime_dependency 'bunny', '>= 2.9', '< 2.12'
+ gem.add_runtime_depend... | Update bunny requirement from < 2.12, >= 2.9 to >= 2.9, < 2.13
Updates the requirements on [bunny](https://github.com/ruby-amqp/bunny) to permit the latest version.
- [Release notes](https://github.com/ruby-amqp/bunny/releases)
- [Changelog](https://github.com/ruby-amqp/bunny/blob/master/ChangeLog.md)
- [Commits](http... |
diff --git a/app/models/select_phone_form.rb b/app/models/select_phone_form.rb
index abc1234..def5678 100644
--- a/app/models/select_phone_form.rb
+++ b/app/models/select_phone_form.rb
@@ -2,7 +2,7 @@ include ActiveModel::Model
include Evidence
- attr_accessor :mobile_phone, :smart_phone, :landline
+ attr_read... | 3491: Reduce accessibility of model attributes
Only need to be readable, not writable.
Authors: 7656f885fae0d57a843f5d48e2e0751c4511da7e@richardtowers
|
diff --git a/plugins/cats.rb b/plugins/cats.rb
index abc1234..def5678 100644
--- a/plugins/cats.rb
+++ b/plugins/cats.rb
@@ -0,0 +1,22 @@+class Cats < Linkbot::Plugin
+ Linkbot::Plugin.register('cats', self,
+ {
+ :message => {:regex=> /^!cats$/i, :handler=> :on_message}
+ }
+ )
+
+ def self.on_message(me... | Update to use the new Catstreamer app set up on Heroku
|
diff --git a/lib/rpush/client/active_record/app.rb b/lib/rpush/client/active_record/app.rb
index abc1234..def5678 100644
--- a/lib/rpush/client/active_record/app.rb
+++ b/lib/rpush/client/active_record/app.rb
@@ -6,7 +6,7 @@
has_many :notifications, class_name: 'Rpush::Client::ActiveRecord::Notification', dep... | Fix case sensitive uniqueness deprecation warning
|
diff --git a/app/services/rta_api_service.rb b/app/services/rta_api_service.rb
index abc1234..def5678 100644
--- a/app/services/rta_api_service.rb
+++ b/app/services/rta_api_service.rb
@@ -0,0 +1,123 @@+class RtaApiService
+
+ def get_wo_trans(query)
+ uri = URI("https://api.rtafleet.com/graphql")
+
+ unless che... | Implement RTA API Integration service.
|
diff --git a/app/services/twitter_service.rb b/app/services/twitter_service.rb
index abc1234..def5678 100644
--- a/app/services/twitter_service.rb
+++ b/app/services/twitter_service.rb
@@ -13,26 +13,28 @@ # necessary {Tweet} records.
def download_mentions
opts = {}
- opts[:since_id] = tweet.id if tweet = T... | Improve the way to create a Tweet
|
diff --git a/db/migrate/20220429092052_create_order_cycles_shipping_methods.rb b/db/migrate/20220429092052_create_order_cycles_shipping_methods.rb
index abc1234..def5678 100644
--- a/db/migrate/20220429092052_create_order_cycles_shipping_methods.rb
+++ b/db/migrate/20220429092052_create_order_cycles_shipping_methods.rb... | Use :belongs_to instead of :references in :order_cycles_shipping_methods
Also fix migration class name.
|
diff --git a/git-review.gemspec b/git-review.gemspec
index abc1234..def5678 100644
--- a/git-review.gemspec
+++ b/git-review.gemspec
@@ -21,4 +21,5 @@ s.add_runtime_dependency 'yajl-ruby'
s.add_development_dependency 'rspec', '~> 2.13.0'
+ s.add_development_dependency 'hashie'
end
| Add hashie as development dependency
This should fix Travis. Not sure how that happened. |
diff --git a/spec/services/create_word_list_spec.rb b/spec/services/create_word_list_spec.rb
index abc1234..def5678 100644
--- a/spec/services/create_word_list_spec.rb
+++ b/spec/services/create_word_list_spec.rb
@@ -0,0 +1,41 @@+require 'rails_helper'
+
+RSpec.describe CreateWordList, type: :service do
+ subject(:ser... | Add spec for create wordlist service
|
diff --git a/lib/harvestman/crawler/parser.rb b/lib/harvestman/crawler/parser.rb
index abc1234..def5678 100644
--- a/lib/harvestman/crawler/parser.rb
+++ b/lib/harvestman/crawler/parser.rb
@@ -2,6 +2,7 @@ module Crawler
class Parser
def initialize(url)
+ @url = url
@document = Nokogiri::HT... | Make current URI available inside block
|
diff --git a/roles/web.rb b/roles/web.rb
index abc1234..def5678 100644
--- a/roles/web.rb
+++ b/roles/web.rb
@@ -17,7 +17,7 @@ :pool_idle_time => 0
},
:web => {
- :status => "database_readonly",
+ :status => "online",
:database_host => "db",
:readonly_database_host => "db"
}
| Revert "Switch to readonly mode"
This reverts commit 5dad101ba52615ef4e79413b292e1c042a715286.
|
diff --git a/roles/web.rb b/roles/web.rb
index abc1234..def5678 100644
--- a/roles/web.rb
+++ b/roles/web.rb
@@ -14,8 +14,8 @@ :pool_idle_time => 0
},
:web => {
- :status => "online",
- :database_host => "db",
+ :status => "database_readonly",
+ :database_host => "db-slave",
:readonly_databas... | Switch site to readonly mode on ramoth
|
diff --git a/webapp/lib/trisano.rb b/webapp/lib/trisano.rb
index abc1234..def5678 100644
--- a/webapp/lib/trisano.rb
+++ b/webapp/lib/trisano.rb
@@ -1,5 +1,5 @@ module Trisano
- VERSION = %w(3 5 7).freeze
+ VERSION = %w(EDGE).freeze
end
require 'trisano/application'
| Remove version number from edge deployment
|
diff --git a/lib/yarrow.rb b/lib/yarrow.rb
index abc1234..def5678 100644
--- a/lib/yarrow.rb
+++ b/lib/yarrow.rb
@@ -6,6 +6,7 @@ require 'yarrow/configuration'
require 'yarrow/console_runner'
require 'yarrow/generator'
+require 'yarrow/assets'
require 'yarrow/html/asset_tags'
require 'yarrow/output/mapper'
require... | Include assets path in main require
Just to get the existing tests to pass. Will break it up in future
changes once new content graph stuff is merged in.
|
diff --git a/lib/translatable_routes/action_dispatch/named_route_collection.rb b/lib/translatable_routes/action_dispatch/named_route_collection.rb
index abc1234..def5678 100644
--- a/lib/translatable_routes/action_dispatch/named_route_collection.rb
+++ b/lib/translatable_routes/action_dispatch/named_route_collection.rb... | FIX define_i18n_url_helper with Rails 4.2
|
diff --git a/middleman-core/lib/middleman-core/extensions/external_pipeline.rb b/middleman-core/lib/middleman-core/extensions/external_pipeline.rb
index abc1234..def5678 100644
--- a/middleman-core/lib/middleman-core/extensions/external_pipeline.rb
+++ b/middleman-core/lib/middleman-core/extensions/external_pipeline.rb... | Fix yesterday's bone-headed commit. again
|
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,5 +1,6 @@ require 'puppetlabs_spec_helper/module_spec_helper'
require 'rspec-puppet-facts'
+require 'webmock/rspec'
include RspecPuppetFacts
| Include webmock into rspec helper
|
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
@@ -10,6 +10,9 @@
SimpleCov.start do
add_filter '/spec/'
+ # Travis configures bundler to install dependencies in vendor
+ # https://github.com/colszowka/simplecov/issues/360
+... | Resolve incorrect coverage results from Travis
|
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
@@ -2,9 +2,14 @@ require 'shared_examples'
require 'puppet-openstack_spec_helper/facts'
+fixture_path = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures'))
+
RSpec.con... | Set fixture paths for unit tests
This change defines manifest_dir and module_path expicitly in unit
tests so that modules installed under fixtures directory is properly
loaded.
Closes-Bug: #1930403
Change-Id: I93c83dfe9b92ef772e1ae3c15f70aeac39ccf449
|
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
@@ -10,7 +10,6 @@ end
config.color = true
- config.treat_symbols_as_metadata_keys_with_true_values = true
end
require 'simplecov'
| Remove obsolete RSpec config option
|
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,4 +1,6 @@ require 'simplecov'
+require 'pathname'
+
SimpleCov.start do
add_filter '/spec/'
add_filter '/config/'
| Add missing require for Pathname
|
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,9 +1,15 @@+$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
+
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start
-
-$LOAD_PATH.unshift File.expand_p... | Whitelist codeclimate after test suite is complete
|
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
@@ -2,4 +2,4 @@
require 'fluffle'
-Fluffle.logger.level = :fatal
+Fluffle.logger.level = Logger::Severity::FATAL
| Use constant rather than symbol for logger level (Ruby <2.3)
|
diff --git a/ncsa-parser.gemspec b/ncsa-parser.gemspec
index abc1234..def5678 100644
--- a/ncsa-parser.gemspec
+++ b/ncsa-parser.gemspec
@@ -22,5 +22,7 @@
s.add_dependency("rdoc")
s.add_dependency("rake", ["~> 0.9"])
+ s.add_dependency("minitest")
+ s.add_dependency("turn")
end
| Update build and version files to use bundler.
|
diff --git a/lib/pong/paddle.rb b/lib/pong/paddle.rb
index abc1234..def5678 100644
--- a/lib/pong/paddle.rb
+++ b/lib/pong/paddle.rb
@@ -0,0 +1,18 @@+class Paddle
+ attr_accessor :x, :y, :rotation, :score
+
+ def initialize(x, y, rotation)
+ @x = x
+ @y = y
+ @rotation = rotation
+ end
+
+ def increaseScore
+ @scor... | Add a basic Paddle class.
|
diff --git a/platforms/ios/framework/Tangram-es.podspec b/platforms/ios/framework/Tangram-es.podspec
index abc1234..def5678 100644
--- a/platforms/ios/framework/Tangram-es.podspec
+++ b/platforms/ios/framework/Tangram-es.podspec
@@ -0,0 +1,26 @@+Pod::Spec.new do |s|
+
+ s.name = 'Tangram-es'
+ s.version = '0.7.1'
... | Add podspec file for iOS framework sourced from S3
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -2,9 +2,11 @@
require 'rails/all'
-require 'figs'
-# Don't run this initializer on travis.
-Figs.load(stage: Rails.env) unless ENV['TRAVIS']
+if Rails.env.staging? || R... | Use figs only on staging/production
|
diff --git a/spec/integration/adapter_spec.rb b/spec/integration/adapter_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/adapter_spec.rb
+++ b/spec/integration/adapter_spec.rb
@@ -8,10 +8,6 @@ let(:setup) { ROM.setup("yaml://#{root}/fixtures/test_db.yml") }
before do
- setup.schema do
- base... | Update spec to pass on latest rom
|
diff --git a/lib/bootstrap-sass.rb b/lib/bootstrap-sass.rb
index abc1234..def5678 100644
--- a/lib/bootstrap-sass.rb
+++ b/lib/bootstrap-sass.rb
@@ -18,7 +18,7 @@ raise Bootstrap::FrameworkNotFound, "bootstrap-sass requires either Rails > 3.1 or Compass, neither of which are loaded"
end
stylesheets = Fi... | Fix namespace Sass module due to conflict with bootstra-sass-rails
No one should really use the two together, but in case they do, or in case any other library defines a Bootstrap::Sass module, we should be clear that we mean the global core Sass module here. Fixes thomas-mcdonald/bootstrap-sass#293
|
diff --git a/lib/ci/api/runners.rb b/lib/ci/api/runners.rb
index abc1234..def5678 100644
--- a/lib/ci/api/runners.rb
+++ b/lib/ci/api/runners.rb
@@ -29,8 +29,11 @@ required_attributes! [:token]
attributes = { description: params[:description],
- tag_list: params[:tag_list]... | Improve setting default runner attrs when using API
|
diff --git a/lib/counting_stars.rb b/lib/counting_stars.rb
index abc1234..def5678 100644
--- a/lib/counting_stars.rb
+++ b/lib/counting_stars.rb
@@ -1,5 +1,25 @@-require "counting_stars/version"
+require 'uri'
+require 'open-uri'
+require 'nokogiri'
+require 'active_support/core_ext/object/to_query'
+require 'counting_... | Add request and count methods
|
diff --git a/lib/deliver/loader.rb b/lib/deliver/loader.rb
index abc1234..def5678 100644
--- a/lib/deliver/loader.rb
+++ b/lib/deliver/loader.rb
@@ -6,7 +6,7 @@ # through it as well searching for language folders.
APPLE_TV_DIR_NAME = "appleTV".freeze
DEFAULT_DIR_NAME = "default".freeze
- ALL_LANGUAGES ... | Fix the default-setting feature.
This is required for upload_metadata/load_from_filesystem to correctly load default values from the default folder.
|
diff --git a/lib/fiscalizer/tax.rb b/lib/fiscalizer/tax.rb
index abc1234..def5678 100644
--- a/lib/fiscalizer/tax.rb
+++ b/lib/fiscalizer/tax.rb
@@ -1,47 +1,37 @@ class Fiscalizer
- class Tax
+ class Tax
+ attr_accessor :base, :rate, :name, :total, :summed
- attr_accessor :base, :rate, :name
+ def initialize... | Add ability to overwrite calculated values and remove float conversion
|
diff --git a/spec/userdata_spec.rb b/spec/userdata_spec.rb
index abc1234..def5678 100644
--- a/spec/userdata_spec.rb
+++ b/spec/userdata_spec.rb
@@ -4,8 +4,9 @@ describe Stem::Userdata do
describe '#compile' do
it "should produce identical output with identical input" do
- output1 = Stem::Userdata.compile(... | Add sleep(1) to spec to ensure compilations are done w/ different timestamps
|
diff --git a/lib/specstat/rspec.rb b/lib/specstat/rspec.rb
index abc1234..def5678 100644
--- a/lib/specstat/rspec.rb
+++ b/lib/specstat/rspec.rb
@@ -12,12 +12,29 @@ # No-op
end
-RSpec.configure do |c|
- c.around(:each) do |example|
- example.run
+class SpecstatFormatter
+ RSpec::Core::Formatters.register self... | Switch from using an around filter to a formatter
Apparently formatters are the preferred way of doing this since status is not available yet in a filter. See https://github.com/rspec/rspec-core/issues/2011 for details. |
diff --git a/lib/driver.rb b/lib/driver.rb
index abc1234..def5678 100644
--- a/lib/driver.rb
+++ b/lib/driver.rb
@@ -5,7 +5,7 @@ # @param [Player] player the player of the game.
def run_driver(player)
- input = player_input
+ input = player_input prompt: '> '
while (input.casecmp("quit") != 0)
interpret_... | Add player_input prompt: '> ' to handle default inputs
|
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
@@ -0,0 +1,21 @@+# Builds binary brew package
+brew_install
+
+destination = HO... | Add initial brew bottle implementation.
|
diff --git a/recipes/_emojify.rb b/recipes/_emojify.rb
index abc1234..def5678 100644
--- a/recipes/_emojify.rb
+++ b/recipes/_emojify.rb
@@ -12,7 +12,7 @@ end
file File.join(node['emojify']['install_target'], 'emojify') do
- content File.read(File.join(Chef::Config['file_cache_path'], 'emojify', 'emojify'))
+ cont... | :bug: Fix emojify contents load issue
emojify contents can be loaded after git clone(runtime)
Use lazy block
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.