diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/test/integration/default/serverspec/default_spec.rb b/test/integration/default/serverspec/default_spec.rb
index abc1234..def5678 100644
--- a/test/integration/default/serverspec/default_spec.rb
+++ b/test/integration/default/serverspec/default_spec.rb
@@ -17,8 +17,8 @@ it { should be_listening }
end... | Adjust and add some tests.
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -21,7 +21,7 @@ # Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initialize... | Fix eager loading on production
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -4,9 +4,10 @@
# Load the figs variables before the rest of the bundle
# so we can use env vars in other gems
-require 'figs'
-# Don't run this initializer on travis.
-Fi... | Remove figs dependency from test env
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -24,5 +24,7 @@ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', ... | Set sass as the default for new stylesheets
|
diff --git a/Casks/puppet.rb b/Casks/puppet.rb
index abc1234..def5678 100644
--- a/Casks/puppet.rb
+++ b/Casks/puppet.rb
@@ -4,7 +4,7 @@
url "http://downloads.puppetlabs.com/mac/puppet-#{version}.dmg"
name 'Puppet'
- homepage 'http://puppetlabs.com/'
+ homepage 'https://puppetlabs.com/'
license :apache
... | Fix homepage to use SSL in Puppet Cask
The HTTP URL is already getting redirected to HTTPS. Using the HTTPS URL directly
makes it more secure and saves a HTTP round-trip.
|
diff --git a/sell_object.gemspec b/sell_object.gemspec
index abc1234..def5678 100644
--- a/sell_object.gemspec
+++ b/sell_object.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.required_ruby_version = '>= 1.9.3p125'
+ spec.requi... | Update ruby version in .gemspec
|
diff --git a/app/finders/groups_finder.rb b/app/finders/groups_finder.rb
index abc1234..def5678 100644
--- a/app/finders/groups_finder.rb
+++ b/app/finders/groups_finder.rb
@@ -0,0 +1,38 @@+class GroupsFinder
+ def execute(current_user, options = {})
+ all_groups(current_user)
+ end
+
+ private
+
+ def all_group... | Add GroupFinder for collection all groups user has access to
Signed-off-by: Dmitriy Zaporozhets <be23d75b156792e5acab51b196a2deb155d35d6a@gmail.com>
|
diff --git a/Faraday.podspec b/Faraday.podspec
index abc1234..def5678 100644
--- a/Faraday.podspec
+++ b/Faraday.podspec
@@ -2,7 +2,7 @@ spec.name = 'Faraday'
spec.version = '0.3.0'
spec.summary = 'Flexible HTTP client framework based on Rack'
- spec.description = <<-DESCRIPTION
+ spec.description = <<-DESCRI... | Clean up Pod description whitespace
|
diff --git a/app/models/invite_request.rb b/app/models/invite_request.rb
index abc1234..def5678 100644
--- a/app/models/invite_request.rb
+++ b/app/models/invite_request.rb
@@ -4,6 +4,7 @@ extend ActiveModel::Naming
attr_accessor :first_name, :last_name, :email, :company, :role, :message
+ validates :first_name... | Add validations to invite request
|
diff --git a/db/migrate/20160616105832_create_adapters.rb b/db/migrate/20160616105832_create_adapters.rb
index abc1234..def5678 100644
--- a/db/migrate/20160616105832_create_adapters.rb
+++ b/db/migrate/20160616105832_create_adapters.rb
@@ -5,7 +5,7 @@ t.string :name, null: false
t.string :web_service_type... | Rename timeout attribute that might clash with ruby private method
|
diff --git a/Casks/zotero.rb b/Casks/zotero.rb
index abc1234..def5678 100644
--- a/Casks/zotero.rb
+++ b/Casks/zotero.rb
@@ -1,7 +1,7 @@ class Zotero < Cask
- url 'http://download.zotero.org/standalone/4.0.16/Zotero-4.0.16.dmg'
+ url 'http://download.zotero.org/standalone/4.0.17/Zotero-4.0.17.dmg'
homepage 'http:/... | Update Zotero cask version to 4.0.17.
Updates Zotero version to latest release version, 4.0.17.
|
diff --git a/mami.gemspec b/mami.gemspec
index abc1234..def5678 100644
--- a/mami.gemspec
+++ b/mami.gemspec
@@ -21,6 +21,7 @@ spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
spec.add_development_dependency "pry"
+ spec.add_development_dependency "rspec"
spec.add... | Add rspec to development dependency
|
diff --git a/WebViewProxy.podspec b/WebViewProxy.podspec
index abc1234..def5678 100644
--- a/WebViewProxy.podspec
+++ b/WebViewProxy.podspec
@@ -1,13 +1,16 @@ Pod::Spec.new do |s|
s.name = 'WebViewProxy'
- s.version = '0.2.5'
+ s.version = '0.2.6'
s.summary = 'A standalone iOS & OSX class... | Add OSX back into podspec file
|
diff --git a/font-fira-code.rb b/font-fira-code.rb
index abc1234..def5678 100644
--- a/font-fira-code.rb
+++ b/font-fira-code.rb
@@ -0,0 +1,10 @@+cask :v1 => 'font-fira-code' do
+ version '0.3'
+ sha256 'a90721b6b1de4640ace744657432a990aae4c8e403b78141a50d0a7abd305db7'
+
+ url 'https://github.com/tonsky/FiraCode/rel... | Add cask for Fira Code v0.3
|
diff --git a/ETA-SDK.podspec b/ETA-SDK.podspec
index abc1234..def5678 100644
--- a/ETA-SDK.podspec
+++ b/ETA-SDK.podspec
@@ -14,7 +14,10 @@ s.platform = :ios, '6.0'
s.requires_arc = true
- s.source = { :git => "https://github.com/eTilbudsavis/native-ios-eta-sdk.git", :tag => "v2.2.1" }
+ s.source ... | Include CocoaLumberjack in podspec dependancy
|
diff --git a/SCPinions.podspec b/SCPinions.podspec
index abc1234..def5678 100644
--- a/SCPinions.podspec
+++ b/SCPinions.podspec
@@ -20,4 +20,5 @@ s.source = { :git => "https://github.com/steamclock/SCPinions.git", :tag => s.version.to_s }
s.source_files = '**/*.{h,m}'
s.requires_arc = true
+ s.framewor... | Add cfnetwork framework to podspec
|
diff --git a/js_asset_paths.gemspec b/js_asset_paths.gemspec
index abc1234..def5678 100644
--- a/js_asset_paths.gemspec
+++ b/js_asset_paths.gemspec
@@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
spec.name = 'js-asset_paths'
spec.version = JsAssetPaths::VERSION
- spec.authors = ['sonnym', ... | Revert "Add myself as an owner."
This reverts commit 2b2e387facf8ad1861e4fd43fc3cbec419bae927.
|
diff --git a/ruby-solutions/string_compression.rb b/ruby-solutions/string_compression.rb
index abc1234..def5678 100644
--- a/ruby-solutions/string_compression.rb
+++ b/ruby-solutions/string_compression.rb
@@ -0,0 +1,17 @@+def string_compression(str)
+ count = 1
+ output = []
+ (0..str.length-1).each do |i|
+ if s... | Add solution for string compression in ruby
|
diff --git a/lib/given/rspec/all.rb b/lib/given/rspec/all.rb
index abc1234..def5678 100644
--- a/lib/given/rspec/all.rb
+++ b/lib/given/rspec/all.rb
@@ -8,7 +8,7 @@
if Given::NATURAL_ASSERTIONS_SUPPORTED
require 'given/rspec/monkey'
- raise "Unsupported version of RSpec (unable to detect assertions)" unless RSpec... | Add RSpec version to unsupported version message.
|
diff --git a/lib/json_api_params.rb b/lib/json_api_params.rb
index abc1234..def5678 100644
--- a/lib/json_api_params.rb
+++ b/lib/json_api_params.rb
@@ -1,5 +1,6 @@ # XXX Though these are necessary, AC::Parameters doesn't require it
require 'active_support/core_ext/class/attribute_accessors'
+require 'active_support/c... | Add missing require for `AC::Parameters`
This file is not required in Rails 5:<
|
diff --git a/test/rain/deployer_test.rb b/test/rain/deployer_test.rb
index abc1234..def5678 100644
--- a/test/rain/deployer_test.rb
+++ b/test/rain/deployer_test.rb
@@ -2,20 +2,33 @@
class Rain::DeployerTest < ActiveSupport::TestCase
describe "DeployerTest: bare invocation" do
- setup { @command = %x(./bin/rain... | Add tests for on stage and on prod
|
diff --git a/lib/spectacles/view.rb b/lib/spectacles/view.rb
index abc1234..def5678 100644
--- a/lib/spectacles/view.rb
+++ b/lib/spectacles/view.rb
@@ -3,8 +3,7 @@ self.abstract_class = true
def self.new(*)
- warn "DEPRECATION WARNING: #{self} is an abstract class and should not be instantiated. In v1.... | Raise NotImplementedError when calling .new on a class that inherits from ::Spectacles::View.
|
diff --git a/lib/zebra/print_job.rb b/lib/zebra/print_job.rb
index abc1234..def5678 100644
--- a/lib/zebra/print_job.rb
+++ b/lib/zebra/print_job.rb
@@ -24,7 +24,8 @@
def check_existent_printers(printer)
existent_printers = Cups.show_destinations
- puts "EXISTENT PRINTERS: \n" + existent_printers
+ ... | Print all existing printers in array for debugging
|
diff --git a/test/unit/response_test.rb b/test/unit/response_test.rb
index abc1234..def5678 100644
--- a/test/unit/response_test.rb
+++ b/test/unit/response_test.rb
@@ -1,17 +1,9 @@ require File.dirname(__FILE__) + '/../test_helper'
class ResponseTest < Test::Unit::TestCase
- include ActiveMerchant::Shipping
-
- ... | Remove unused code from response test
|
diff --git a/spec/models/services/twitter_spec.rb b/spec/models/services/twitter_spec.rb
index abc1234..def5678 100644
--- a/spec/models/services/twitter_spec.rb
+++ b/spec/models/services/twitter_spec.rb
@@ -0,0 +1,35 @@+# frozen_string_literal: true
+
+require 'rails_helper'
+
+describe Services::Twitter do
+ descri... | Add test for tweet shortening
Co-authored-by: Georg Gadinger <9e8f1a26fbf401b045347f083556ffd7c0b25a58@nilsding.org>
|
diff --git a/metadater.rb b/metadater.rb
index abc1234..def5678 100644
--- a/metadater.rb
+++ b/metadater.rb
@@ -1,7 +1,7 @@ require 'rubygems' # When running under 1.8. Who knows?
-require 'mediainfo' # Capture technical metadata from video
-require 'mini_exiftool' # Capture software metadata from video
+require 'me... | Make note of external, non RubyGems dependencies
|
diff --git a/opal.gemspec b/opal.gemspec
index abc1234..def5678 100644
--- a/opal.gemspec
+++ b/opal.gemspec
@@ -13,6 +13,4 @@ s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = ['lib']
-
- s.add_runtime_dependency 'sprockets... | Remove final sprockets dependency from gemspec
|
diff --git a/nexus_artifact.gemspec b/nexus_artifact.gemspec
index abc1234..def5678 100644
--- a/nexus_artifact.gemspec
+++ b/nexus_artifact.gemspec
@@ -14,4 +14,6 @@ gem.name = "nexus_artifact"
gem.require_paths = ["lib"]
gem.version = NexusArtifact::VERSION
+
+ gem.add_dependency('mechanize', ... | Add mechanize dependency to gemspec
|
diff --git a/lib/adamantium.rb b/lib/adamantium.rb
index abc1234..def5678 100644
--- a/lib/adamantium.rb
+++ b/lib/adamantium.rb
@@ -50,7 +50,6 @@ extend ModuleMethods
extend ClassMethods if kind_of?(Class)
end
- self
end
private_class_method :included
| Remove return value from Adamantium.included
|
diff --git a/lib/guard/rake.rb b/lib/guard/rake.rb
index abc1234..def5678 100644
--- a/lib/guard/rake.rb
+++ b/lib/guard/rake.rb
@@ -35,9 +35,16 @@ run_rake_task if @options[:run_on_all]
end
- def run_on_change(paths)
- run_rake_task
+ if ::Guard::VERSION < "1.1"
+ def run_on_change(paths)
... | Define run_on_change(s) according to Guard version
This suppresses a deprecation notice given when using guard-rake with
Guard 1.1 and higher.
|
diff --git a/lib/resa/event.rb b/lib/resa/event.rb
index abc1234..def5678 100644
--- a/lib/resa/event.rb
+++ b/lib/resa/event.rb
@@ -4,8 +4,8 @@ field :title, type: String
field :organizer, type: String
field :location, type: String
- field :dtstart, type: DateTime
- field :dtend, ... | Use Time instead of DateTime
for speed and bugged with mongoid:
see https://github.com/mongoid/mongoid/issues/1135
Signed-off-by: Laurent Arnoud <f1b010126f61b5c59e7d5eb42c5c68f6105c5914@spkdev.net>
|
diff --git a/lib/sgf/parser.rb b/lib/sgf/parser.rb
index abc1234..def5678 100644
--- a/lib/sgf/parser.rb
+++ b/lib/sgf/parser.rb
@@ -46,8 +46,9 @@ end
def is_binary? file
- parts = %x(file -i #{file}).split(':', 2)
- not parts[1].include?('text')
+ # This does not work?!
+ ... | Comment out that code that check if a file is binary file
|
diff --git a/lib/slop/types.rb b/lib/slop/types.rb
index abc1234..def5678 100644
--- a/lib/slop/types.rb
+++ b/lib/slop/types.rb
@@ -1,10 +1,14 @@ module Slop
+ # Cast the option argument to a String.
class StringOption < Option
def call(value)
value.to_s
end
end
+ # Cast the option argument ... | Add some basic type docs
|
diff --git a/app/controllers/api/product_images_controller.rb b/app/controllers/api/product_images_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/product_images_controller.rb
+++ b/app/controllers/api/product_images_controller.rb
@@ -1,5 +1,5 @@ module Api
- class ProductImagesController < Spree... | Switch from Spree::Api::BaseController to Api::BaseController so that AMS is activated
|
diff --git a/Casks/hopper-disassembler.rb b/Casks/hopper-disassembler.rb
index abc1234..def5678 100644
--- a/Casks/hopper-disassembler.rb
+++ b/Casks/hopper-disassembler.rb
@@ -1,6 +1,6 @@ cask :v1 => 'hopper-disassembler' do
- version '3.9.4'
- sha256 'fc06dcd70c7af71eee96a95d32ab0ffa5b9452ec8d279fc8bc31c0d09575cc71... | Upgrade Hopper Disassembler v3.app to v3.9.9
|
diff --git a/Casks/hopper-disassembler.rb b/Casks/hopper-disassembler.rb
index abc1234..def5678 100644
--- a/Casks/hopper-disassembler.rb
+++ b/Casks/hopper-disassembler.rb
@@ -1,6 +1,6 @@ cask :v1 => 'hopper-disassembler' do
- version '3.9.9'
- sha256 '60a8412269cc51fbd8565f280dd70bea34d102c74a5efdc201b468c566d5ad87... | Upgrade Hopper Disassembler to v3.9.11
|
diff --git a/Casks/torbrowser-alpha-ar.rb b/Casks/torbrowser-alpha-ar.rb
index abc1234..def5678 100644
--- a/Casks/torbrowser-alpha-ar.rb
+++ b/Casks/torbrowser-alpha-ar.rb
@@ -0,0 +1,18 @@+cask :v1 => 'torbrowser-alpha-ar' do
+ version '5.5a3'
+ sha256 'cff609da6f3851c4fcfafcf3e212fd9fed489bd4a7e51fc3d63c9b402a6da27... | Add TorBrowser Alpha AR 5.5a3 |
diff --git a/app/models/renalware/admissions/consult_query.rb b/app/models/renalware/admissions/consult_query.rb
index abc1234..def5678 100644
--- a/app/models/renalware/admissions/consult_query.rb
+++ b/app/models/renalware/admissions/consult_query.rb
@@ -14,7 +14,18 @@ end
def search
- @search |... | Remove N+1 queries in Consults
|
diff --git a/app/models/answer.rb b/app/models/answer.rb
index abc1234..def5678 100644
--- a/app/models/answer.rb
+++ b/app/models/answer.rb
@@ -9,6 +9,6 @@ validates :content, presence: true
def vote_count
- self.vote_count = self.votes.sum(:value)
+ self.votes.sum(:value)
end
end
| Change vote count to return a num rather than change nonexistant col
|
diff --git a/app/services/reports/docx/draw_step_checklist.rb b/app/services/reports/docx/draw_step_checklist.rb
index abc1234..def5678 100644
--- a/app/services/reports/docx/draw_step_checklist.rb
+++ b/app/services/reports/docx/draw_step_checklist.rb
@@ -19,11 +19,13 @@ text I18n.t('projects.reports.elements.st... | Revert "SCI-3702 replace _to_text with _to_html"
This reverts commit 93b7c472ac8ef271c9b23bfc6ea85d78a713b7eb.
|
diff --git a/app/models/permit.rb b/app/models/permit.rb
index abc1234..def5678 100644
--- a/app/models/permit.rb
+++ b/app/models/permit.rb
@@ -1,5 +1,6 @@ class Permit < ActiveRecord::Base
- validates :owner_address, :presence => true, :address => true, :if => :active_or_address?
+ validates :owner_address, :p... | Check whether in SA only if address is not blank
|
diff --git a/app/models/trends.rb b/app/models/trends.rb
index abc1234..def5678 100644
--- a/app/models/trends.rb
+++ b/app/models/trends.rb
@@ -18,7 +18,7 @@ end
def self.request_review!
- [links, tags].each(&:request_review) if enabled?
+ [tags].each(&:request_review) if enabled?
end
def self.ena... | Disable trending links review request emails
|
diff --git a/Casks/intellij-idea-community-eap.rb b/Casks/intellij-idea-community-eap.rb
index abc1234..def5678 100644
--- a/Casks/intellij-idea-community-eap.rb
+++ b/Casks/intellij-idea-community-eap.rb
@@ -1,7 +1,7 @@ class IntellijIdeaCommunityEap < Cask
- url 'http://download.jetbrains.com/idea/ideaIC-135.863.dmg... | Upgrade IntelliJ CE EAP to version 14 (build 138.777).
The version was `135.863`.
http://confluence.jetbrains.com/display/IDEADEV/IDEA+14+EAP
http://blog.jetbrains.com/idea/2014/06/intellij-idea-14-early-preview-is-available/
|
diff --git a/apitome.gemspec b/apitome.gemspec
index abc1234..def5678 100644
--- a/apitome.gemspec
+++ b/apitome.gemspec
@@ -16,7 +16,6 @@ s.license = "MIT"
s.files = Dir["{app,config,lib,vendor}/**/*"] + ["MIT.LICENSE", "README.md"]
- s.test_files = Dir["{spec}/**/*"]
s.add_dependency "railties... | Remove test files from built gem
|
diff --git a/core/dir/home_spec.rb b/core/dir/home_spec.rb
index abc1234..def5678 100644
--- a/core/dir/home_spec.rb
+++ b/core/dir/home_spec.rb
@@ -2,14 +2,6 @@ require File.expand_path('../fixtures/common', __FILE__)
describe "Dir.home" do
- before :all do
- DirSpecs.create_mock_dirs
- end
-
- after :all do
... | Remove useless before/after in Dir.home spec
|
diff --git a/Casks/safaritabswitching.rb b/Casks/safaritabswitching.rb
index abc1234..def5678 100644
--- a/Casks/safaritabswitching.rb
+++ b/Casks/safaritabswitching.rb
@@ -1,11 +1,11 @@ class Safaritabswitching < Cask
- version '1.2.6'
- sha256 'd2823ec2327c5b5e2602876749f6c6ef352cfe7b5498158cc46c5610f6bf9b69'
+ ve... | Upgrade Safari Tab Switching to v1.2.7
|
diff --git a/lib/capistrano/tasks/jekyll.rake b/lib/capistrano/tasks/jekyll.rake
index abc1234..def5678 100644
--- a/lib/capistrano/tasks/jekyll.rake
+++ b/lib/capistrano/tasks/jekyll.rake
@@ -18,5 +18,5 @@ end
end
- after 'deploy:updated', :build
+ after 'deploy:updated', 'jekyll:build'
end
| Make task invocation in after hook namespace aware
|
diff --git a/messaging.gemspec b/messaging.gemspec
index abc1234..def5678 100644
--- a/messaging.gemspec
+++ b/messaging.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'evt-messaging'
- s.version = '0.22.1.0'
+ s.version = '0.22.2.0'
s.summary = 'Common primitives for ... | Package version is increased from 0.22.1.0 to 0.22.2.0
|
diff --git a/lib/git-deploy/heroku_workers.rb b/lib/git-deploy/heroku_workers.rb
index abc1234..def5678 100644
--- a/lib/git-deploy/heroku_workers.rb
+++ b/lib/git-deploy/heroku_workers.rb
@@ -8,7 +8,8 @@
if env[ 'remote.heroku' ]
# TODO catch exit status
- @workers = `heroku ps --remote #{env[ 'remot... | Fix bug where middlware was counting 1 too many workers
|
diff --git a/lib/http_shooting_party/excon.rb b/lib/http_shooting_party/excon.rb
index abc1234..def5678 100644
--- a/lib/http_shooting_party/excon.rb
+++ b/lib/http_shooting_party/excon.rb
@@ -5,7 +5,7 @@ attr_accessor :client
def initialize(url)
- self.client = ::Excon.new(url)
+ self.client = ::E... | Enable persistent to use the keepalives |
diff --git a/lib/kubeclient/kube_exception.rb b/lib/kubeclient/kube_exception.rb
index abc1234..def5678 100644
--- a/lib/kubeclient/kube_exception.rb
+++ b/lib/kubeclient/kube_exception.rb
@@ -1,5 +1,5 @@ # Kubernetes HTTP Exceptions
-class KubeException < Exception
+class KubeException < StandardError
attr_reader :... | Update KubeException to inherit StandardError
Currently, KubeException inherits from Exception, which is bad because
the default "rescue" behaviour is to catch only exception which are
StandardException.
|
diff --git a/Requirements/php-meta-requirement.rb b/Requirements/php-meta-requirement.rb
index abc1234..def5678 100644
--- a/Requirements/php-meta-requirement.rb
+++ b/Requirements/php-meta-requirement.rb
@@ -2,7 +2,10 @@
class PhpMetaRequirement < HomebrewPhpRequirement
def satisfied?
- %w{php53 php54 php55}.a... | Allow non newest version PHP to tools.
Installation of PHP tools was blocked if installed PHP does not match to the newest formulas.
|
diff --git a/lib/user_agent_parser/version.rb b/lib/user_agent_parser/version.rb
index abc1234..def5678 100644
--- a/lib/user_agent_parser/version.rb
+++ b/lib/user_agent_parser/version.rb
@@ -1,6 +1,8 @@ module UserAgentParser
class Version
+
+ SEGMENTS_REGEX = /\d+\-\d+|\d+[a-zA-Z]+$|\d+|[A-Za-z][0-9A-Za-z-]*... | Move segments regex to constant.
|
diff --git a/bin/find-nodes.rb b/bin/find-nodes.rb
index abc1234..def5678 100644
--- a/bin/find-nodes.rb
+++ b/bin/find-nodes.rb
@@ -1,5 +1,6 @@ #!/usr/bin/ruby
+require 'puppet'
require 'puppetdb'
require 'optparse'
require 'pp'
| Fix needed require for puppet 3.x
|
diff --git a/lib/geo/extractor.rb b/lib/geo/extractor.rb
index abc1234..def5678 100644
--- a/lib/geo/extractor.rb
+++ b/lib/geo/extractor.rb
@@ -10,7 +10,7 @@ name: name,
latitude: source.fetch('latitude'),
longitude: source.fetch('longitude'),
- type: result.fetch('_type')
+ typ... | :boom: Join the name if it's a place
|
diff --git a/lib/redic/cluster.rb b/lib/redic/cluster.rb
index abc1234..def5678 100644
--- a/lib/redic/cluster.rb
+++ b/lib/redic/cluster.rb
@@ -7,15 +7,12 @@
def initialize(url="redis://localhost:12001", timeout=10_000_000)
@url = url
- @node = Redic::Client.new(url, timeout)
+ @node = Redic.new(url... | Use Redic instead of Redic::Client
|
diff --git a/OOPhotoBrowser.podspec b/OOPhotoBrowser.podspec
index abc1234..def5678 100644
--- a/OOPhotoBrowser.podspec
+++ b/OOPhotoBrowser.podspec
@@ -11,7 +11,7 @@ s.resources = 'Classes/IDMPhotoBrowser.bundle', 'Classes/IDMPBLocalizations.bundle'
s.framework = 'MessageUI', 'QuartzCore', 'SystemConfig... | Fix SDWebImage version to 4
I'm not actively maintaining this anymore, so this is the
easiest solution to the major upgrade.
|
diff --git a/docker/puma_config.rb b/docker/puma_config.rb
index abc1234..def5678 100644
--- a/docker/puma_config.rb
+++ b/docker/puma_config.rb
@@ -6,3 +6,7 @@
threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }.to_i
threads threads_count, threads_count
+
+stdout_redirect '/app/log/puma.out.log', '/app/log/puma.er... | Write puma stdout and stderr to log files
|
diff --git a/lib/sinatra/cache.rb b/lib/sinatra/cache.rb
index abc1234..def5678 100644
--- a/lib/sinatra/cache.rb
+++ b/lib/sinatra/cache.rb
@@ -1,5 +1,4 @@
-require 'sinatra/base'
require 'sinatra/outputbuffer'
module Sinatra
| [FIX] Remove "require 'sinatra/base'" from code. |
diff --git a/libraries/gluster.rb b/libraries/gluster.rb
index abc1234..def5678 100644
--- a/libraries/gluster.rb
+++ b/libraries/gluster.rb
@@ -19,7 +19,7 @@ end
def brick_in_volume?(peer, brick, volume)
- cmd = shell_out("gluster volume status #{volume} | awk '{print $2}' | grep #{peer}:#{brick}")
+ cmd = shell_... | Fix brick_in_volume for long hostnames
|
diff --git a/libraries/helpers.rb b/libraries/helpers.rb
index abc1234..def5678 100644
--- a/libraries/helpers.rb
+++ b/libraries/helpers.rb
@@ -25,7 +25,6 @@ #
# @return [Numeric, String]
# handles checking whether uid was specified as a string
-
def validate_id(id)
id.to_i.to_s == id ? i... | Convert uid/gid into integers if databag objects are of type string.
This fixes issue 125.
1. if user data bag object has UID specified as a string, will convert to appropriate integer.
If UID == USERNAME, this will already fail for user creation object.
2. if user data bag object has no uid specified will attempt ... |
diff --git a/lib/consul.rb b/lib/consul.rb
index abc1234..def5678 100644
--- a/lib/consul.rb
+++ b/lib/consul.rb
@@ -12,10 +12,16 @@
def getAllCritical
errors = Array.new
+ commonFunction = Common.new()
@conf.params['consul']['servers'].each do |server|
- response = JSON.parse(RestClient.get "#{se... | Check if server is available before get information
|
diff --git a/twentyfour_seven_office_legacy.gemspec b/twentyfour_seven_office_legacy.gemspec
index abc1234..def5678 100644
--- a/twentyfour_seven_office_legacy.gemspec
+++ b/twentyfour_seven_office_legacy.gemspec
@@ -21,5 +21,5 @@ spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "r... | Downgrade Savon version to support Inviso iWEB |
diff --git a/recipes/mod_jk.rb b/recipes/mod_jk.rb
index abc1234..def5678 100644
--- a/recipes/mod_jk.rb
+++ b/recipes/mod_jk.rb
@@ -0,0 +1,25 @@+unless File.exists?("/usr/libexec/apache2/mod_jk.so")
+
+ remote_file "#{Chef::Config[:file_cache_path]}/tomcat-connectors-1.2.37-src.tar.gz" do
+ source "http://www.apac... | Add recipe to install mod-jk
|
diff --git a/worker_host/users/recipes/default.rb b/worker_host/users/recipes/default.rb
index abc1234..def5678 100644
--- a/worker_host/users/recipes/default.rb
+++ b/worker_host/users/recipes/default.rb
@@ -19,6 +19,13 @@
users.each do |user|
primary_group = user[:groups].nil? ? nil : user[:groups].first
+
+ di... | Make sure the superdirectory for a user's home exists.
|
diff --git a/lib/kaminari/mongoid/mongoid_criteria_methods.rb b/lib/kaminari/mongoid/mongoid_criteria_methods.rb
index abc1234..def5678 100644
--- a/lib/kaminari/mongoid/mongoid_criteria_methods.rb
+++ b/lib/kaminari/mongoid/mongoid_criteria_methods.rb
@@ -7,8 +7,8 @@ super
end
- def entry_name
- ... | Use I18n to pluralize entries
see: https://github.com/amatsuda/kaminari/commit/7f6e9a877d646263dc0504a5ad96ef4d5f2dd684
|
diff --git a/countries.gemspec b/countries.gemspec
index abc1234..def5678 100644
--- a/countries.gemspec
+++ b/countries.gemspec
@@ -19,6 +19,7 @@ gem.add_dependency('i18n_data', '~> 0.7.0')
gem.add_dependency('money', '~> 6.7')
gem.add_dependency('unicode_utils', '~> 1.4')
+ gem.add_dependency('sixarm_ruby_un... | Add sixarm_ruby_unaccent to gemspec dependencies
`countries` requires `sixarm_ruby_unaccent` (as included in `lib/countries.rb`), however it's not listed as a dependency causing breakages unless installed manually. |
diff --git a/spec/factories.rb b/spec/factories.rb
index abc1234..def5678 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -1,4 +1,6 @@ require 'factory_girl'
+
+# NOTE: this file does not automatically reload in Rails server. Use load() or restart the server.
Factory.define :user do |u|
u.name 'Test Use... | Add a factory to generate our test github user.
|
diff --git a/Casks/phpstorm-eap.rb b/Casks/phpstorm-eap.rb
index abc1234..def5678 100644
--- a/Casks/phpstorm-eap.rb
+++ b/Casks/phpstorm-eap.rb
@@ -1,6 +1,6 @@ cask :v1 => 'phpstorm-eap' do
- version '141.1306'
- sha256 'ebd04e0378cb2d5c528bb9e7618dbb89ddb1d9e7f9e429cd21594e622194a7e2'
+ version '141.1534'
+ sha25... | Update PHPStorm EAP to 141.1534
|
diff --git a/songkick-oauth2-provider.gemspec b/songkick-oauth2-provider.gemspec
index abc1234..def5678 100644
--- a/songkick-oauth2-provider.gemspec
+++ b/songkick-oauth2-provider.gemspec
@@ -9,7 +9,7 @@ s.extra_rdoc_files = %w(README.rdoc)
s.rdoc_options = %w(--main README.rdoc)
- s.files = ... | Make list of gem files more specific about file types.
|
diff --git a/camp.rb b/camp.rb
index abc1234..def5678 100644
--- a/camp.rb
+++ b/camp.rb
@@ -1,9 +1,7 @@ class Camp < Formula
homepage "https://github.com/tegesoft/camp"
- url "https://github.com/tegesoft/camp.git", :tag => "0.8.0"
+ url "https://github.com/drbenmorgan/camp.git", :branch => "cmake-support"
vers... | Move CAMP formula to drbenmorgan fork
To provide better CMake support for camp clients, migrate to use
drbenmorgan fork of CAMP with improved CMake support. These fixes
have been submitted upstream, so use of the primary repo can resume
when/if these fixes are accepted.
|
diff --git a/spec/mailers/task_mailer_spec.rb b/spec/mailers/task_mailer_spec.rb
index abc1234..def5678 100644
--- a/spec/mailers/task_mailer_spec.rb
+++ b/spec/mailers/task_mailer_spec.rb
@@ -6,26 +6,40 @@ describe "when task has turns" do
let(:task) { tasks(:weekly) }
+ let(:email) { TaskMailer.notificat... | Split task_mailer expectations in their own examples
|
diff --git a/app/controllers/omniauth_callbacks_controller.rb b/app/controllers/omniauth_callbacks_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/omniauth_callbacks_controller.rb
+++ b/app/controllers/omniauth_callbacks_controller.rb
@@ -31,7 +31,8 @@ set_flash_message(:notice, :success, :kin... | Fix redirects and sign the user in if they weren't yet created
|
diff --git a/hero_spec.rb b/hero_spec.rb
index abc1234..def5678 100644
--- a/hero_spec.rb
+++ b/hero_spec.rb
@@ -14,4 +14,16 @@ expect(hero.power_up).to eq 110
end
+ it "can power down" do
+ hero = Hero.new 'mike'
+
+ expect(hero.power_down).to eq 90
+ end
+
+ it "displays full hero info" do
+ hero = Hero.new ... | Add power_down and hero_info test
|
diff --git a/log4r.gemspec b/log4r.gemspec
index abc1234..def5678 100644
--- a/log4r.gemspec
+++ b/log4r.gemspec
@@ -14,7 +14,7 @@ gem.summary = %Q{Log4r, logging framework for ruby}
gem.description = %Q{See also: http://logging.apache.org/log4j}
gem.email = "colby@shrewdraven.com"
- gem.homepage = "http://log... | Change gemspec.homepage to github repo url
|
diff --git a/TastyTomato.podspec b/TastyTomato.podspec
index abc1234..def5678 100644
--- a/TastyTomato.podspec
+++ b/TastyTomato.podspec
@@ -25,4 +25,5 @@ }
s.resources = ['TastyTomato/Images/*.{xcassets, png}']
s.public_header_files = []
+ s.dependency 'SignificantSpices', '~> 0.1.0'
end
| Add SignificantSpices dependency to podspec
|
diff --git a/glicko2.gemspec b/glicko2.gemspec
index abc1234..def5678 100644
--- a/glicko2.gemspec
+++ b/glicko2.gemspec
@@ -1,4 +1,4 @@-# -*- encoding: utf-8 -*-
+# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'glicko2/version'
@@ -17,5 +17... | Update for newer bundler/rake combinations
|
diff --git a/effective_style_guide.gemspec b/effective_style_guide.gemspec
index abc1234..def5678 100644
--- a/effective_style_guide.gemspec
+++ b/effective_style_guide.gemspec
@@ -10,8 +10,8 @@ s.email = ["info@codeandeffect.com"]
s.authors = ["Code and Effect"]
s.homepage = "https://github.com/co... | Add a gem spec summary and description
|
diff --git a/addic7ed.gemspec b/addic7ed.gemspec
index abc1234..def5678 100644
--- a/addic7ed.gemspec
+++ b/addic7ed.gemspec
@@ -17,7 +17,7 @@ s.add_development_dependency("webmock")
s.add_development_dependency("pry")
- s.add_runtime_dependency("nokogiri", "~> 1.6.7.2")
+ s.add_runtime_dependency("nokogiri", ... | Update Nokogiri for security reasons
|
diff --git a/lib/cloudflair/api/zone/settings/development_mode.rb b/lib/cloudflair/api/zone/settings/development_mode.rb
index abc1234..def5678 100644
--- a/lib/cloudflair/api/zone/settings/development_mode.rb
+++ b/lib/cloudflair/api/zone/settings/development_mode.rb
@@ -8,12 +8,14 @@
patchable_fields :value
+... | Make private what must not be public
|
diff --git a/lib/maskable_attribute/acts_as_maskable_attribute.rb b/lib/maskable_attribute/acts_as_maskable_attribute.rb
index abc1234..def5678 100644
--- a/lib/maskable_attribute/acts_as_maskable_attribute.rb
+++ b/lib/maskable_attribute/acts_as_maskable_attribute.rb
@@ -1,8 +1,8 @@ module MaskableAttribute
module ... | Extend ActiveRecord the Rails2 Way
With no ActiveSupport::Concern in Rails2 class methods must be included
in ActiveRecord with an actually defined included method.
|
diff --git a/automaton.rb b/automaton.rb
index abc1234..def5678 100644
--- a/automaton.rb
+++ b/automaton.rb
@@ -1,13 +1,18 @@ class Automaton
- def build_initial_configuration
- number_of_columns = `/usr/bin/env tput cols`.to_i
- grid = Array.new(number_of_columns, " ")
- middle = number_of_columns / 2
- ... | Rewrite Automaton to display grid
|
diff --git a/test/test.rb b/test/test.rb
index abc1234..def5678 100644
--- a/test/test.rb
+++ b/test/test.rb
@@ -16,7 +16,7 @@ end
def test_post
- post '/', "eadFile" => Rack::Test::UploadedFile.new('test/data/ajp00004.xml', 'text/xml'), 'phase' => "'#ALL'"
+ post '/result.xml', "eadFile" => Rack::Test::Up... | Test updates for various changes
* Changed 'result' route from POST index to POST result(.fmt)
* CSV output test
* DOCTYPE exclusion test. Other XXEs are essentially hidden by this,
so not tested for
|
diff --git a/Casks/paraview-nightly.rb b/Casks/paraview-nightly.rb
index abc1234..def5678 100644
--- a/Casks/paraview-nightly.rb
+++ b/Casks/paraview-nightly.rb
@@ -4,4 +4,10 @@ version 'latest'
no_checksum
link 'paraview.app'
+ caveats <<-EOS.undent
+ This version of Paraview should be installed if your ... | Add caveats to Paraview Nightly.
|
diff --git a/easy_menu.gemspec b/easy_menu.gemspec
index abc1234..def5678 100644
--- a/easy_menu.gemspec
+++ b/easy_menu.gemspec
@@ -1,7 +1,9 @@ Gem::Specification.new do |s|
s.name = "easy_menu"
- s.summary = "Simple menu bar dsl for rails 3.1 views"
+ s.summary = "Simple menu bar dsl for Rails views"
s.files ... | Update gemspec with rails dependency.
|
diff --git a/app/models/event.rb b/app/models/event.rb
index abc1234..def5678 100644
--- a/app/models/event.rb
+++ b/app/models/event.rb
@@ -24,6 +24,13 @@ end
def winelist
- self.wines
+ wines =[]
+ invites = self.event_wines
+ invites.each do |event_wine|
+ if event_wine.is_attending
+ ... | Change winelist method to accurately reflect wines for accepted users
|
diff --git a/app/models/plant.rb b/app/models/plant.rb
index abc1234..def5678 100644
--- a/app/models/plant.rb
+++ b/app/models/plant.rb
@@ -14,4 +14,8 @@ def to_s
"#{common_name} (#{scientific_name})"
end
+
+ def form_common_name
+ common_name.titleize
+ end
end
| Add method for titleizing common names in selects
|
diff --git a/engines/synergy/app/controllers/synergy/pages_controller.rb b/engines/synergy/app/controllers/synergy/pages_controller.rb
index abc1234..def5678 100644
--- a/engines/synergy/app/controllers/synergy/pages_controller.rb
+++ b/engines/synergy/app/controllers/synergy/pages_controller.rb
@@ -5,22 +5,9 @@ at... | Clean up controller to use path
|
diff --git a/fixbraces.gemspec b/fixbraces.gemspec
index abc1234..def5678 100644
--- a/fixbraces.gemspec
+++ b/fixbraces.gemspec
@@ -14,7 +14,7 @@ of the opening brace. This corrects it for a file or a directory.
DESC
gem.summary = "Puts the opening brace on the same line"
- gem.homepage = "https://gith... | Update the homepage for the gem
|
diff --git a/lib/llt/diff.rb b/lib/llt/diff.rb
index abc1234..def5678 100644
--- a/lib/llt/diff.rb
+++ b/lib/llt/diff.rb
@@ -6,7 +6,6 @@
def initialize(gold, reviewables)
@gold, @reviewables = parse_threaded(gold, reviewables)
- @diff = {}
end
def compare
| Delete obsolete inst var in Diff
|
diff --git a/ruby_event_store_rom_sql/db/migrate/20180327044629_create_ruby_event_store_tables.rb b/ruby_event_store_rom_sql/db/migrate/20180327044629_create_ruby_event_store_tables.rb
index abc1234..def5678 100644
--- a/ruby_event_store_rom_sql/db/migrate/20180327044629_create_ruby_event_store_tables.rb
+++ b/ruby_eve... | Fix ROM migrations for PostgreSQL
|
diff --git a/tasks/common.rake b/tasks/common.rake
index abc1234..def5678 100644
--- a/tasks/common.rake
+++ b/tasks/common.rake
@@ -2,3 +2,6 @@
# common pattern cleanup
CLEAN.include('tmp')
+
+# set default task
+task :default => [:spec, :features]
| Make 'rake' default to spec and features.
|
diff --git a/telemetry.gemspec b/telemetry.gemspec
index abc1234..def5678 100644
--- a/telemetry.gemspec
+++ b/telemetry.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'telemetry'
- s.version = '0.0.1.4'
+ s.version = '0.0.1.5'
s.summary = 'In-process telemetry based o... | Increase version from 0.0.1.4 to 0.0.1.5
|
diff --git a/lib/seche.rb b/lib/seche.rb
index abc1234..def5678 100644
--- a/lib/seche.rb
+++ b/lib/seche.rb
@@ -1,8 +1,13 @@ require "seche/version"
module Seche
- module Rails
- class Engine < ::Rails::Engine
+ if defined?(Rails) && defined?(Rails::Engine)
+ module Rails
+ class Engine < ::Rails::Engi... | Verify if Rails is defined
|
diff --git a/Casks/numi.rb b/Casks/numi.rb
index abc1234..def5678 100644
--- a/Casks/numi.rb
+++ b/Casks/numi.rb
@@ -2,9 +2,8 @@ version :latest
sha256 :no_check
- url 'http://numi.io/static/files/Numi.zip'
- appcast 'http://numi.io/update.xml',
- :sha256 => 'fc6e87987f66f478065ac353a270fa122fb329e85f... | Update url and remove deprecated appcast.
Add new Numi official download host comment.
|
diff --git a/Casks/qtox.rb b/Casks/qtox.rb
index abc1234..def5678 100644
--- a/Casks/qtox.rb
+++ b/Casks/qtox.rb
@@ -1,8 +1,8 @@ cask 'qtox' do
version '1.4.1.1'
sha256 'e0dd8ecab2dc39bba1e6f34e44927e7bee9ca0f55f4c433f16079d4ba5cf4ab8'
-
- # https://github.com/tux3/qTox/ was verified as official when first int... | Fix `url` stanza comment for qTox.
|
diff --git a/unlock_gateway.gemspec b/unlock_gateway.gemspec
index abc1234..def5678 100644
--- a/unlock_gateway.gemspec
+++ b/unlock_gateway.gemspec
@@ -16,5 +16,5 @@
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
- s.add_dependency "rails", "~> 4.1.6"
+ s.add_dependency "ra... | Change dependency version syntax for Rails gem.
This will enable update to newer Rails 4 versions.
Still requires version 4.1.6 as minimum version.
|
diff --git a/lib/govuk_template/engine.rb b/lib/govuk_template/engine.rb
index abc1234..def5678 100644
--- a/lib/govuk_template/engine.rb
+++ b/lib/govuk_template/engine.rb
@@ -2,11 +2,19 @@ class Engine < ::Rails::Engine
initializer "govuk_template.assets.precompile" do |app|
app.config.assets.precompile... | Add static files to `assets.precompile`
This avoids errors when gem is used with sprockets-rails >= 3
|
diff --git a/app/models/asset_file.rb b/app/models/asset_file.rb
index abc1234..def5678 100644
--- a/app/models/asset_file.rb
+++ b/app/models/asset_file.rb
@@ -15,6 +15,10 @@ expires = opts[:expires] || 1.week.from_now
datastore.storage.get_object_http_url(datastore.bucket_name, file_uid, expires, opts)
en... | Add a safe file name method
|
diff --git a/app/models/restaurant.rb b/app/models/restaurant.rb
index abc1234..def5678 100644
--- a/app/models/restaurant.rb
+++ b/app/models/restaurant.rb
@@ -1,5 +1,5 @@ class Restaurant
- COUNTRIES = %w(US CA MX)
+ COUNTRIES = %w(AE AN AW CA CH CN GP HK KY MO MX MY PT SG SV US VI)
include Mongoid::Document
... | Expand list of available countries
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.