diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/adhearsion/twilio.rb b/lib/adhearsion/twilio.rb
index abc1234..def5678 100644
--- a/lib/adhearsion/twilio.rb
+++ b/lib/adhearsion/twilio.rb
@@ -6,9 +6,9 @@ require "active_support/core_ext/numeric/time"
require_relative "twilio/util"
-require "adhearsion/twilio/version"
-require "adhearsion/twilio/p... | Use require_relative instead of require
|
diff --git a/lib/columbo/db_client.rb b/lib/columbo/db_client.rb
index abc1234..def5678 100644
--- a/lib/columbo/db_client.rb
+++ b/lib/columbo/db_client.rb
@@ -17,7 +17,7 @@ end
def save(*args)
- coll.findOne *args
+ coll.save *args
end
def find(*args)
| Fix typo in DbCLient class for save (unused).
|
diff --git a/lib/glimpse/views/git.rb b/lib/glimpse/views/git.rb
index abc1234..def5678 100644
--- a/lib/glimpse/views/git.rb
+++ b/lib/glimpse/views/git.rb
@@ -24,12 +24,12 @@
# Fetch the current branch name.
def branch_name
- @branch_name ||= `git rev-parse --abbrev-ref HEAD`.chomp
+ @bra... | Use ENV vars if they are set
|
diff --git a/modules/nginx/spec/defines/nginx__config__vhost__redirect_spec.rb b/modules/nginx/spec/defines/nginx__config__vhost__redirect_spec.rb
index abc1234..def5678 100644
--- a/modules/nginx/spec/defines/nginx__config__vhost__redirect_spec.rb
+++ b/modules/nginx/spec/defines/nginx__config__vhost__redirect_spec.rb... | Modify expected result for nginx__config__vhost_redirect_spec
This is what is expected following the migration to AWS.
|
diff --git a/lib/pry-state/printer.rb b/lib/pry-state/printer.rb
index abc1234..def5678 100644
--- a/lib/pry-state/printer.rb
+++ b/lib/pry-state/printer.rb
@@ -2,25 +2,32 @@ extend self
def trunc_and_print var, value, var_color, value_color
- var_name_adjusted = var.to_s.ljust(25)
- print Pry::Helpers::Te... | Use $COLUMNS env to fill up pry-state print
1. Instead of hardcoding an arbitrary width (85 previously), use $COLUMNS, if defined. Otherwise, fall back to 80 (which is standard). We could use 85 if you want to keep backwards compatibility.
2. Leave at least one space between left and right columns
3. Clean code a bi... |
diff --git a/test/integration/resource/resource_spec.rb b/test/integration/resource/resource_spec.rb
index abc1234..def5678 100644
--- a/test/integration/resource/resource_spec.rb
+++ b/test/integration/resource/resource_spec.rb
@@ -29,5 +29,5 @@ end
describe file('/usr/local/notifyTwo') do
- it { should be_a_file ... | Fix test to reflect fixed notifications
Now that notifications don’t fire on every run we shouldn’t be creating the 2nd file. There was no update.
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb
index abc1234..def5678 100644
--- a/config/initializers/assets.rb
+++ b/config/initializers/assets.rb
@@ -17,5 +17,5 @@ Rails.application.config.assets.precompile += %w( relaunch.css relaunch_ie.css screen.css node.css nodes.css search.css react... | Remove unused ember from to be precompiled list.
|
diff --git a/app/models/community.rb b/app/models/community.rb
index abc1234..def5678 100644
--- a/app/models/community.rb
+++ b/app/models/community.rb
@@ -4,16 +4,22 @@ has_many :groups
validates_presence_of :name
- validates :latitude, presence: true, numericality: {greater_than_or_equal_to: -180, less_than_... | Validate that geolocation was successful
|
diff --git a/lib/syoboemon/query_generator/program_detail_search.rb b/lib/syoboemon/query_generator/program_detail_search.rb
index abc1234..def5678 100644
--- a/lib/syoboemon/query_generator/program_detail_search.rb
+++ b/lib/syoboemon/query_generator/program_detail_search.rb
@@ -16,7 +16,7 @@
def generate_query
... | Fix name of API parameter
|
diff --git a/lib/couch_blog/engine.rb b/lib/couch_blog/engine.rb
index abc1234..def5678 100644
--- a/lib/couch_blog/engine.rb
+++ b/lib/couch_blog/engine.rb
@@ -1,7 +1,9 @@ module CouchBlog
class Engine < ::Rails::Engine
isolate_namespace CouchBlog
- initializer 'couch_blog.cmtool', after: 'cmtool.build_menu... | Move autoload constant using initializer to after_initialize in application load order for zeitwerj
|
diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/home_controller_spec.rb
+++ b/spec/controllers/home_controller_spec.rb
@@ -3,9 +3,7 @@ describe HomeController do
render_views
- before(:each) do
- @signup = Fac... | Stop using factories in home spec.
|
diff --git a/Rakefile.rb b/Rakefile.rb
index abc1234..def5678 100644
--- a/Rakefile.rb
+++ b/Rakefile.rb
@@ -3,17 +3,17 @@
task :teamcity => [:build]
-msbuild :build do |msb|
- msb.properties :configuration => :Release
- msb.targets [:Clean, :Build]
- msb.solution = 'src/RxFileSystemWatcher.sln'
+build :build do |b... | Fix build process to use new version of albacore
|
diff --git a/spec/dummy/app/models/configuration.rb b/spec/dummy/app/models/configuration.rb
index abc1234..def5678 100644
--- a/spec/dummy/app/models/configuration.rb
+++ b/spec/dummy/app/models/configuration.rb
@@ -1,7 +1,7 @@ class Configuration
- def self.fetch(key)
- end
+ def self.[](*); end
- def s... | Define dummy .table_name method for Configuration support class
|
diff --git a/spec/github_cli/commands/hooks_spec.rb b/spec/github_cli/commands/hooks_spec.rb
index abc1234..def5678 100644
--- a/spec/github_cli/commands/hooks_spec.rb
+++ b/spec/github_cli/commands/hooks_spec.rb
@@ -0,0 +1,45 @@+# encoding: utf-8
+
+require 'spec_helper'
+
+describe GithubCLI::Commands::Hooks do
+ le... | Add specs for hook commands.
|
diff --git a/spec/support/authentication_helpers.rb b/spec/support/authentication_helpers.rb
index abc1234..def5678 100644
--- a/spec/support/authentication_helpers.rb
+++ b/spec/support/authentication_helpers.rb
@@ -9,6 +9,6 @@
RSpec.configure do |config|
config.include AuthenticationHelpers, type: :feature
- co... | Correct Devise test helpers deprecation warning
Example deprecation warning:
DEPRECATION WARNING: [Devise] including `Devise::TestHelpers` is deprecated and will be removed from Devise.
For controller tests, please include `Devise::Test::ControllerHelpers` instead.
(called from <top (required)> at /home/andrew/... |
diff --git a/app/models/spree/issue.rb b/app/models/spree/issue.rb
index abc1234..def5678 100644
--- a/app/models/spree/issue.rb
+++ b/app/models/spree/issue.rb
@@ -21,4 +21,15 @@ def shipped?
!shipped_at.nil?
end
+
+ def magazine
+ # override getter method to include deleted products, as per https://... | Allow Issue to get deleted Magazine and Mag_Issue
The `paranoia` gem adds a `default_scope` to `Spree::Product` that hides all deleted Products.
However, I can imagine that a site admin might want to see all the issues in a subscription even if those products are old and have been deleted.
This syntax allows the... |
diff --git a/lib/resource_kit/action_invoker.rb b/lib/resource_kit/action_invoker.rb
index abc1234..def5678 100644
--- a/lib/resource_kit/action_invoker.rb
+++ b/lib/resource_kit/action_invoker.rb
@@ -17,7 +17,7 @@
def handle_response
if handler = action.handlers[response.status]
- handler.call(resp... | Use instance exec for handler calls.
|
diff --git a/client/ruby/solrb/lib/solr/exception.rb b/client/ruby/solrb/lib/solr/exception.rb
index abc1234..def5678 100644
--- a/client/ruby/solrb/lib/solr/exception.rb
+++ b/client/ruby/solrb/lib/solr/exception.rb
@@ -11,18 +11,5 @@ # limitations under the License.
module Solr
-
- class Exception < Exception
-... | Simplify Solr::Exception - Exception already allows for a message
git-svn-id: 3b1ff1236863b4d63a22e4dae568675c2e247730@501318 13f79535-47bb-0310-9956-ffa450edef68
|
diff --git a/app/models/folder_node.rb b/app/models/folder_node.rb
index abc1234..def5678 100644
--- a/app/models/folder_node.rb
+++ b/app/models/folder_node.rb
@@ -3,7 +3,7 @@ belongs_to :node_object, :class_name => "TreeFolder"
def self.get(sortvar = nil,sortorder =nil,user_id = nil,show = nil,parent_id = nil,... | Fix ActiveRecord calls in FolderNode
|
diff --git a/app/models/image_asset.rb b/app/models/image_asset.rb
index abc1234..def5678 100644
--- a/app/models/image_asset.rb
+++ b/app/models/image_asset.rb
@@ -18,7 +18,7 @@ # A predicate to checks if the image is portrait i.e. taller than it is wide.
#
# @return [true, false]
- def landscape?
+ def port... | Fix the portrait? and square? predicates
|
diff --git a/lib/mimemagic/overlay.rb b/lib/mimemagic/overlay.rb
index abc1234..def5678 100644
--- a/lib/mimemagic/overlay.rb
+++ b/lib/mimemagic/overlay.rb
@@ -1,7 +1,7 @@ # Extra magic
-[['application/vnd.openxmlformats-officedocument.presentationml.presentation', [[0..2000, 'ppt/']]],
- ['application/vnd.openxmlfo... | Extend the range we search
Sometimes the first instance of the word/ or ppt/ is not in the first 2000 bytes - 5000 should cover it. |
diff --git a/lib/mspec/helpers/tmp.rb b/lib/mspec/helpers/tmp.rb
index abc1234..def5678 100644
--- a/lib/mspec/helpers/tmp.rb
+++ b/lib/mspec/helpers/tmp.rb
@@ -1,3 +1,5 @@+require 'mspec/helpers/fs'
+
# Creates a temporary directory in the current working directory
# for temporary files created while running the spe... | Clean SPEC_TEMP_DIR when starting mspec
* Idea by @nirvdrum.
|
diff --git a/lib/chronologic.rb b/lib/chronologic.rb
index abc1234..def5678 100644
--- a/lib/chronologic.rb
+++ b/lib/chronologic.rb
@@ -2,3 +2,14 @@ require 'chronologic/connection'
require 'chronologic/server'
require 'chronologic/version'
+
+require "active_support/core_ext/module"
+
+module Chronologic
+
+ VERSI... | Add connection (for the service) and client attributes.
|
diff --git a/lib/fat_table/patches.rb b/lib/fat_table/patches.rb
index abc1234..def5678 100644
--- a/lib/fat_table/patches.rb
+++ b/lib/fat_table/patches.rb
@@ -15,3 +15,21 @@ end
end
end
+
+unless ''.respond_to?(:match?)
+ # Add String#match? to pre-2.4 ruby
+ class String
+ def match?(re)
+ self =~ ... | Patch pre 2.4 ruby for match? method.
|
diff --git a/lib/idnow/http_client.rb b/lib/idnow/http_client.rb
index abc1234..def5678 100644
--- a/lib/idnow/http_client.rb
+++ b/lib/idnow/http_client.rb
@@ -1,26 +1,27 @@ module Idnow
class HttpClient
- def initialize(host:)
- @uri = URI.parse(host)
+ def initialize(host:, read_timout_sec: 30)
+ ... | Introduce 30 second default timeout
|
diff --git a/lib/rchess/board_math.rb b/lib/rchess/board_math.rb
index abc1234..def5678 100644
--- a/lib/rchess/board_math.rb
+++ b/lib/rchess/board_math.rb
@@ -16,10 +16,7 @@ end
def letter_difference(start_file, end_file)
- start_index = LETTERS.index(start_file)
- end_index = LETTERS.index(end_f... | Simplify helper function in board math
|
diff --git a/lib/regaliator/client.rb b/lib/regaliator/client.rb
index abc1234..def5678 100644
--- a/lib/regaliator/client.rb
+++ b/lib/regaliator/client.rb
@@ -2,7 +2,7 @@ class Client
attr_accessor :config
- def initialize(config)
+ def initialize(config = Regaliator.configuration)
@config = con... | Use the default configuration in Client.
|
diff --git a/lib/thailand/district.rb b/lib/thailand/district.rb
index abc1234..def5678 100644
--- a/lib/thailand/district.rb
+++ b/lib/thailand/district.rb
@@ -22,5 +22,10 @@ def self.query_collection
all
end
+
+ alias_method :tambon, :subregions
+ alias_method :tambon?, :subregions?
+ alias_m... | Add alias methods for District
|
diff --git a/spec/acceptance/10_basic_ironic_spec.rb b/spec/acceptance/10_basic_ironic_spec.rb
index abc1234..def5678 100644
--- a/spec/acceptance/10_basic_ironic_spec.rb
+++ b/spec/acceptance/10_basic_ironic_spec.rb
@@ -21,20 +21,13 @@ apply_manifest(pp, :catch_changes => true)
end
- if os[:family].ca... | Debian/Ubuntu: Validate inspector in acceptance test
... because now the service is enabled.
Depends-on: https://review.opendev.org/848512/
Change-Id: I41caaa22dd0f7879acac757bf695935714318fa3
|
diff --git a/spec/features/assigned_articles_spec.rb b/spec/features/assigned_articles_spec.rb
index abc1234..def5678 100644
--- a/spec/features/assigned_articles_spec.rb
+++ b/spec/features/assigned_articles_spec.rb
@@ -0,0 +1,32 @@+# frozen_string_literal: true
+
+require 'rails_helper'
+
+describe 'Assigned Articles... | Add spec for Assigned Articles view and Feedback feature
|
diff --git a/spec/unit/provider/user/useradd_spec.rb b/spec/unit/provider/user/useradd_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/provider/user/useradd_spec.rb
+++ b/spec/unit/provider/user/useradd_spec.rb
@@ -37,11 +37,4 @@ }
include_examples "a useradd-based user provider", supported_useradd_options... | Remove super random failing test cruft from previous commit
|
diff --git a/lib/jakyll-slim.rb b/lib/jakyll-slim.rb
index abc1234..def5678 100644
--- a/lib/jakyll-slim.rb
+++ b/lib/jakyll-slim.rb
@@ -14,13 +14,7 @@ end
def convert(content)
- Slim::Template.new { content }.render
- end
- end
-
- class SlimLogicLessConverter < SlimConverter
- def convert(cont... | Remove SlimLogicLessConverter in favor of @config
|
diff --git a/config/initializers/restrict_parsers.rb b/config/initializers/restrict_parsers.rb
index abc1234..def5678 100644
--- a/config/initializers/restrict_parsers.rb
+++ b/config/initializers/restrict_parsers.rb
@@ -0,0 +1,4 @@+# Turn off XML parsing:
+# https://groups.google.com/forum/#!topic/rubyonrails-security... | Disable param parsers we don't use
These parsers have security vulnerabilities.
|
diff --git a/rb/spec/integration/selenium/webdriver/browser_connection_spec.rb b/rb/spec/integration/selenium/webdriver/browser_connection_spec.rb
index abc1234..def5678 100644
--- a/rb/spec/integration/selenium/webdriver/browser_connection_spec.rb
+++ b/rb/spec/integration/selenium/webdriver/browser_connection_spec.rb... | JariBakken: Enable browser connection spec on Android.
git-svn-id: 4179480af2c2519a5eb5e1e9b541cbdf5cf27696@15725 07704840-8298-11de-bf8c-fd130f914ac9
|
diff --git a/lib/liquid/i18n.rb b/lib/liquid/i18n.rb
index abc1234..def5678 100644
--- a/lib/liquid/i18n.rb
+++ b/lib/liquid/i18n.rb
@@ -1,5 +1,4 @@ require 'yaml'
-require 'delegate'
module Liquid
class I18n
| Remove delegate require from localization
|
diff --git a/lib/pixi_client.rb b/lib/pixi_client.rb
index abc1234..def5678 100644
--- a/lib/pixi_client.rb
+++ b/lib/pixi_client.rb
@@ -1,4 +1,5 @@ require 'pixi_client/version'
+require 'pixi_client/error'
require 'pixi_client/configuration'
require 'pixi_client/response_parser'
require 'pixi_client/response'
| Include the error class in the client
|
diff --git a/lib/proteus/kit.rb b/lib/proteus/kit.rb
index abc1234..def5678 100644
--- a/lib/proteus/kit.rb
+++ b/lib/proteus/kit.rb
@@ -17,8 +17,12 @@ if system "git ls-remote #{url(kit_name)} #{repo_name} > /dev/null 2>&1"
puts "Starting a new proteus-#{kit_name} project in #{repo_name}"
syste... | Make a first commit for the user
|
diff --git a/lib/paypal_express/ext/active_merchant/active_merchant.rb b/lib/paypal_express/ext/active_merchant/active_merchant.rb
index abc1234..def5678 100644
--- a/lib/paypal_express/ext/active_merchant/active_merchant.rb
+++ b/lib/paypal_express/ext/active_merchant/active_merchant.rb
@@ -13,6 +13,26 @@ def su... | Add invoice_id in refund call
|
diff --git a/app/controllers/georgia/users_controller.rb b/app/controllers/georgia/users_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/georgia/users_controller.rb
+++ b/app/controllers/georgia/users_controller.rb
@@ -22,12 +22,12 @@ end
def create
- @user = User.new(params[:user])
+ ... | Add strong parameters users controller
|
diff --git a/lib/ssrs/report.rb b/lib/ssrs/report.rb
index abc1234..def5678 100644
--- a/lib/ssrs/report.rb
+++ b/lib/ssrs/report.rb
@@ -22,7 +22,7 @@ document = self.document
REXML::XPath.each(document.root, "//Report/DataSources/DataSource/DataSourceReference") do |element|
text_node = element.g... | Use config to get upload prefix
|
diff --git a/lib/tasks/iso.rake b/lib/tasks/iso.rake
index abc1234..def5678 100644
--- a/lib/tasks/iso.rake
+++ b/lib/tasks/iso.rake
@@ -1,4 +1,26 @@ namespace :iso do
+ namespace :maintenance do
+ task :repair_image_permissions => :environment do
+ bucket = $s3_client.buckets.find(ENV['S3_BUCKET'])
+ to_... | Add photo maintenance rake task for repairing permissions
|
diff --git a/lib/twitter_api.rb b/lib/twitter_api.rb
index abc1234..def5678 100644
--- a/lib/twitter_api.rb
+++ b/lib/twitter_api.rb
@@ -8,7 +8,7 @@ end
def self.rorjobs_tweets
- client.user_timeline('rorjobs', count: 10, exclude_replies: true, include_rts: false)
+ client.user_timeline('rorjobs', ... | Increase number of ROR jobs tweets on home page to 20 at a time.
|
diff --git a/metasploit-erd.gemspec b/metasploit-erd.gemspec
index abc1234..def5678 100644
--- a/metasploit-erd.gemspec
+++ b/metasploit-erd.gemspec
@@ -4,21 +4,22 @@ require 'metasploit/erd/version'
Gem::Specification.new do |spec|
- spec.name = "metasploit-erd"
+ spec.name = 'metasploit-erd'
... | Add semantic version restrictions to gemspec
MSP-9815
Add `~>` versions to eliminate warnings from `gem build`.
|
diff --git a/controller.rb b/controller.rb
index abc1234..def5678 100644
--- a/controller.rb
+++ b/controller.rb
@@ -12,6 +12,9 @@ end
end
+ignore *%w{.gitignore LICENSE Gemfile Gemfile.lock Rakefile}
+ignore(/\.swp$/, %r{/\.git/}, %r{/\.sass-cache/})
+
before 'index.html.haml' do
@buttons = %w{Buttoner Hiding... | Exclude some junk from output directory
|
diff --git a/lib/apns-s3.rb b/lib/apns-s3.rb
index abc1234..def5678 100644
--- a/lib/apns-s3.rb
+++ b/lib/apns-s3.rb
@@ -24,7 +24,7 @@ bucketname: nil,
filename: nil
)
- unless pemfile_exist? filename
+ unless File.exist? filename
credentials = Aws::Credentials.new(
aws_access_key_id, ... | Revert the commit that modifies to pemfile_exist? method
|
diff --git a/lib/bouvier.rb b/lib/bouvier.rb
index abc1234..def5678 100644
--- a/lib/bouvier.rb
+++ b/lib/bouvier.rb
@@ -4,14 +4,14 @@ module Bouvier
class Client
-
+
include HTTParty
format :xml
- base_uri "http://www.eot.state.ma.us"
+ base_uri "http://www.massdot.state.ma.us"
# Bouvier::... | Update to use new URLs. |
diff --git a/lib/caprese.rb b/lib/caprese.rb
index abc1234..def5678 100644
--- a/lib/caprese.rb
+++ b/lib/caprese.rb
@@ -23,7 +23,7 @@ config.only_path_links ||= true
# If true, relationship data will not be serialized unless it is in `include`
- config.optimize_relationships ||= true
+ config.optimize_relatio... | Remove relationship optimization by default
Mostly because it is not JSON API compliant and that should be opt-in
|
diff --git a/refinerycms-acts-as-indexed.gemspec b/refinerycms-acts-as-indexed.gemspec
index abc1234..def5678 100644
--- a/refinerycms-acts-as-indexed.gemspec
+++ b/refinerycms-acts-as-indexed.gemspec
@@ -13,7 +13,7 @@
s.files = `git ls-files -- app/* lib/*`.split("\n")
- s.add_dependency 'refiner... | Allow refinerycms-core version from >= 3.0.0 to < 5.0 |
diff --git a/lib/instana.rb b/lib/instana.rb
index abc1234..def5678 100644
--- a/lib/instana.rb
+++ b/lib/instana.rb
@@ -19,8 +19,14 @@ def start
@agent = Instana::Agent.new
@collectors = []
+
@logger = Logger.new(STDOUT)
- @logger.info "Stan is on the scene. Starting Instana instrumentat... | Set log level according to environment
|
diff --git a/lib/rdg/cfg.rb b/lib/rdg/cfg.rb
index abc1234..def5678 100644
--- a/lib/rdg/cfg.rb
+++ b/lib/rdg/cfg.rb
@@ -31,6 +31,7 @@ def vertices
@context.graph.each_vertex.to_a
end
+ alias_method :nodes, :vertices
def successors(v)
@context.graph.each_adjacent(v).to_a
| Add nodes as an alias for vertices.
|
diff --git a/lib/tachyon.rb b/lib/tachyon.rb
index abc1234..def5678 100644
--- a/lib/tachyon.rb
+++ b/lib/tachyon.rb
@@ -13,30 +13,8 @@ end
def self.insert_record(klass, data)
- if klass.has_attribute?(:created_at) && klass.has_attribute?(:updated_at)
- defaults = { created_at: Time.now, updated_at: Time... | Revert to naive implementation as existing implementation does not work.
|
diff --git a/lib/bra/model/view.rb b/lib/bra/model/view.rb
index abc1234..def5678 100644
--- a/lib/bra/model/view.rb
+++ b/lib/bra/model/view.rb
@@ -21,7 +21,7 @@ def_delegator :@root, :deregister_from_updates
# Logs an error message in the bra log
- #
+ #
# @api public
# @examp... | Update compo URL finder use.
This moved in a recent version of compo.
|
diff --git a/nexmo.gemspec b/nexmo.gemspec
index abc1234..def5678 100644
--- a/nexmo.gemspec
+++ b/nexmo.gemspec
@@ -11,5 +11,6 @@ s.required_ruby_version = '>= 1.9.3'
s.add_development_dependency('rake', '~> 10.1')
s.add_development_dependency('webmock', '~> 1.18')
+ s.add_development_dependency('minitest', '... | Add minitest as a development dependency
|
diff --git a/lib/features2cards.rb b/lib/features2cards.rb
index abc1234..def5678 100644
--- a/lib/features2cards.rb
+++ b/lib/features2cards.rb
@@ -15,30 +15,55 @@ require "cucumber"
require "cucumber/treetop_parser/feature_en"
Cucumber.load_language("en")
+
+ Cucumber::Tree::Feature.class_eval do... | Print scenario titles on cards
|
diff --git a/app/forms/create_taxon.rb b/app/forms/create_taxon.rb
index abc1234..def5678 100644
--- a/app/forms/create_taxon.rb
+++ b/app/forms/create_taxon.rb
@@ -13,7 +13,7 @@ title: title,
content_id: content_id,
publishing_app: 'collections-publisher',
- rendering_app: 'collections-publish... | Use `collections` as rendering app for taxons
This app will return 404.
|
diff --git a/app/models/application.rb b/app/models/application.rb
index abc1234..def5678 100644
--- a/app/models/application.rb
+++ b/app/models/application.rb
@@ -22,8 +22,7 @@
INTEREST_OPTIONS = [
'Shaolin Cosmos Chi Kung',
- 'Shaolin Kung Fu',
- 'Tai Chi Chuan'
+ 'Shaolin Kung Fu'
]
def in... | Remove Tai Chi Chuan from interests
Since I don't currently teach it
|
diff --git a/spec/transactions_spec.rb b/spec/transactions_spec.rb
index abc1234..def5678 100644
--- a/spec/transactions_spec.rb
+++ b/spec/transactions_spec.rb
@@ -15,5 +15,13 @@
transaction.should be == ["OK", "OK", ["1", "2"]]
end
+
+ it "should execute all command after multi" do
+ @client.mult... | Add tests for `multi` command without block given.
|
diff --git a/lib/wakame/command.rb b/lib/wakame/command.rb
index abc1234..def5678 100644
--- a/lib/wakame/command.rb
+++ b/lib/wakame/command.rb
@@ -17,8 +17,8 @@ }
end
- def initialize(option)
- @options = option
+ def options=(path)
+ @options = path
end
def parse(args)
| Change parameter passing to WEB API
|
diff --git a/rails/benchmarks/bm_activerecord_create_string_columns.rb b/rails/benchmarks/bm_activerecord_create_string_columns.rb
index abc1234..def5678 100644
--- a/rails/benchmarks/bm_activerecord_create_string_columns.rb
+++ b/rails/benchmarks/bm_activerecord_create_string_columns.rb
@@ -0,0 +1,31 @@+require 'bundl... | FEATURE: Add new benchmark for Active Record.
* Creating a record with many string columns.
|
diff --git a/api/v3/routes/problems.rb b/api/v3/routes/problems.rb
index abc1234..def5678 100644
--- a/api/v3/routes/problems.rb
+++ b/api/v3/routes/problems.rb
@@ -2,24 +2,24 @@ module Routes
class Problems < Core
get '/problems/data-todos' do
- problems = ::Xapi.problems.select { |problem|
+ ... | Swap trackler into v3 problem routes
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -12,7 +12,13 @@ end
def default_url_options(*)
- { locale: I18n.locale == I18n.def... | Update lang selection logic for locale param
Signed-off-by: Hiroshi Miura <ff6fb3ed059786151e736af13627c08d24e9f922@linux.com>
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,3 +1,22 @@+# frozen_string_literal: true
class ApplicationController < ActionController:... | Add helpers and before_action for ApplicationController
|
diff --git a/app/controllers/instruments_controller.rb b/app/controllers/instruments_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/instruments_controller.rb
+++ b/app/controllers/instruments_controller.rb
@@ -26,7 +26,7 @@
def update
@instrument = Instrument.find(params[:id])
- if @instr... | Add options attributes for nest attributes in instrument controller
|
diff --git a/app/controllers/links/pages_controller.rb b/app/controllers/links/pages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/links/pages_controller.rb
+++ b/app/controllers/links/pages_controller.rb
@@ -1,6 +1,6 @@ class Links::PagesController < PagesController
def index
- pages = Comfy... | Return anything but unpublished articles through the article link search api |
diff --git a/app/controllers/sales_pages_controller.rb b/app/controllers/sales_pages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/sales_pages_controller.rb
+++ b/app/controllers/sales_pages_controller.rb
@@ -1,5 +1,6 @@ class SalesPagesController < ApplicationController
before_filter :authentica... | Update SalesPages Controller for update Action
Add the update action to the SalesPages controller.
|
diff --git a/app/controllers/v1/webhooks_controller.rb b/app/controllers/v1/webhooks_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/v1/webhooks_controller.rb
+++ b/app/controllers/v1/webhooks_controller.rb
@@ -1,3 +1,5 @@+require 'shellwords'
+
module V1
class WebhooksController < BaseController
... | Add missing require for 'shellwords'
|
diff --git a/app/models/translation.rb b/app/models/translation.rb
index abc1234..def5678 100644
--- a/app/models/translation.rb
+++ b/app/models/translation.rb
@@ -26,10 +26,12 @@
def self.data_type(text)
case text
- when Array then 'array'
- when String then 'string'
- when Float then 'float'
-... | Set valid type for boolean values
|
diff --git a/app/controllers/analytics_controller.rb b/app/controllers/analytics_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/analytics_controller.rb
+++ b/app/controllers/analytics_controller.rb
@@ -24,4 +24,4 @@ params.permit(users: []).to_h.symbolize_keys
end
-end+end
| Add missing trailing newline in the AnalyticsController
|
diff --git a/app/controllers/favorites_controller.rb b/app/controllers/favorites_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/favorites_controller.rb
+++ b/app/controllers/favorites_controller.rb
@@ -2,12 +2,11 @@ def create
@topic = Topic.find(params[:topic_id])
@post = @topic.posts.fi... | Change favorites controller to be more in line with the roadmap text.
|
diff --git a/app/models/spree/log_entry_decorator.rb b/app/models/spree/log_entry_decorator.rb
index abc1234..def5678 100644
--- a/app/models/spree/log_entry_decorator.rb
+++ b/app/models/spree/log_entry_decorator.rb
@@ -34,7 +34,8 @@ Braintree::Transaction::GooglePayDetails,
... | Add Thread::Mutex to the safe_load classes
|
diff --git a/config/initializers/cve_2015_3226_fix.rb b/config/initializers/cve_2015_3226_fix.rb
index abc1234..def5678 100644
--- a/config/initializers/cve_2015_3226_fix.rb
+++ b/config/initializers/cve_2015_3226_fix.rb
@@ -0,0 +1,13 @@+raise "Check monkey patch for CVE-2015-3226 is still needed" unless Rails::VERSION... | Patch Rails security issue as there's not a 3.2.x fix yet
|
diff --git a/app/uploaders/preview_image_uploader.rb b/app/uploaders/preview_image_uploader.rb
index abc1234..def5678 100644
--- a/app/uploaders/preview_image_uploader.rb
+++ b/app/uploaders/preview_image_uploader.rb
@@ -12,7 +12,7 @@ end
# Process files as they are uploaded:
- process resize_to_fit: [150, 10... | Save aspect ratio of uploaded preview images
|
diff --git a/app/models/instance_user.rb b/app/models/instance_user.rb
index abc1234..def5678 100644
--- a/app/models/instance_user.rb
+++ b/app/models/instance_user.rb
@@ -3,7 +3,7 @@ include InstanceUserSearchConcern
acts_as_tenant :instance, inverse_of: :instance_users
- enum role: { normal: 0, instructor: 1... | Remove auto_grader role from instance user.
|
diff --git a/app/models/liquid_layout.rb b/app/models/liquid_layout.rb
index abc1234..def5678 100644
--- a/app/models/liquid_layout.rb
+++ b/app/models/liquid_layout.rb
@@ -10,6 +10,9 @@ validates :experimental, inclusion: {in: [true, false]}
scope :campaigner_friendly, -> { where(experimental: false) }
+ scope... | Add new scopes for liquid layouts
|
diff --git a/test/unitwise/expression/matcher_test.rb b/test/unitwise/expression/matcher_test.rb
index abc1234..def5678 100644
--- a/test/unitwise/expression/matcher_test.rb
+++ b/test/unitwise/expression/matcher_test.rb
@@ -15,8 +15,8 @@ it "must be an Alternative list of names" do
subject.must_be_instance_... | Adjust matcher name expectation to support updated units
|
diff --git a/lib/logplex/publisher.rb b/lib/logplex/publisher.rb
index abc1234..def5678 100644
--- a/lib/logplex/publisher.rb
+++ b/lib/logplex/publisher.rb
@@ -7,7 +7,7 @@ class Publisher
def initialize(token, logplex_url=nil)
@token = token
- @logplex_url = logplex_url || 'https://logplex.her... | Use actual logplex production host by default
|
diff --git a/lib/pry-vterm_aliases.rb b/lib/pry-vterm_aliases.rb
index abc1234..def5678 100644
--- a/lib/pry-vterm_aliases.rb
+++ b/lib/pry-vterm_aliases.rb
@@ -25,6 +25,6 @@ end
case ENV['SHELL']
- when '/bin/bash' then require 'pry/aliases/bash'
+ when %r!/bash\Z! then require 'pry/aliases/bash'
end
... | Use a regex to detect bash.
|
diff --git a/lib/rspec_ssltls/util.rb b/lib/rspec_ssltls/util.rb
index abc1234..def5678 100644
--- a/lib/rspec_ssltls/util.rb
+++ b/lib/rspec_ssltls/util.rb
@@ -24,7 +24,7 @@ if options[:proxy]
proxy_uri = build_uri(options[:proxy])
proxy_server = Net::SSH::Proxy::HTTP.new(proxy_uri.host,
- ... | Fix to use proxy_uri.port not proxy_uri.host |
diff --git a/lib/see_your_requests.rb b/lib/see_your_requests.rb
index abc1234..def5678 100644
--- a/lib/see_your_requests.rb
+++ b/lib/see_your_requests.rb
@@ -7,7 +7,7 @@
route :get, :post, :put, :delete, :head, :options, '/' do
content_type :text
- ap request.env.reject { |k, v| k =~ /^rack.*/ }
+ ap ... | Print full request for now.
|
diff --git a/spec/lib/addic7ed/show_list_spec.rb b/spec/lib/addic7ed/show_list_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/addic7ed/show_list_spec.rb
+++ b/spec/lib/addic7ed/show_list_spec.rb
@@ -23,6 +23,10 @@ expect(Addic7ed::ShowList.find("Legacy.2013.UK")).to eq "Legacy_(2013)_(UK)"
end
+ it "han... | Add a test for shows containing a quote.
|
diff --git a/spec/syoboi_calendar/client_spec.rb b/spec/syoboi_calendar/client_spec.rb
index abc1234..def5678 100644
--- a/spec/syoboi_calendar/client_spec.rb
+++ b/spec/syoboi_calendar/client_spec.rb
@@ -0,0 +1,22 @@+require "spec_helper"
+
+describe "SyoboiCalendar::Client" do
+ before do
+ user = "testuserforrub... | Add spec for Client login
|
diff --git a/Casks/gog-galaxy.rb b/Casks/gog-galaxy.rb
index abc1234..def5678 100644
--- a/Casks/gog-galaxy.rb
+++ b/Casks/gog-galaxy.rb
@@ -1,8 +1,8 @@ cask :v1 => 'gog-galaxy' do
- version '1.0.0.836'
- sha256 '878319173e0f157981fd3d5009e451653024bdb8e3b4f0ff5565c491ba815f4d'
+ version '1.0.2.939'
+ sha256 '2c46d... | Upgrade GOG.com Galaxy Client to v1.0.2.939
|
diff --git a/Casks/nodeclipse.rb b/Casks/nodeclipse.rb
index abc1234..def5678 100644
--- a/Casks/nodeclipse.rb
+++ b/Casks/nodeclipse.rb
@@ -2,12 +2,13 @@ version '0.11-preview'
sha256 '01f630446313cb981ce2ee9b934977cfdbf318e09761dee244a3256f9a559003'
- url 'https://downloads.sourceforge.net/sourceforge/nodecli... | Replace preflight stanza with target rename
Use `:target` key to rename app for `nodeclipse` to `Nodeclipse.app`
rather than making a system call to `/bin/mv` in preflight.
Also update url to use `version`.
|
diff --git a/Casks/sassquatch.rb b/Casks/sassquatch.rb
index abc1234..def5678 100644
--- a/Casks/sassquatch.rb
+++ b/Casks/sassquatch.rb
@@ -2,6 +2,7 @@ version '1.5.0'
sha256 '9f9c688e473cc8fdffbee38c5d8f876726620a42dacdd6c2996faadfab714612'
+ # thoughtbot.github.io/sassquatch was verified as official when fir... | Fix `url` stanza comment for Sassquatch.
|
diff --git a/Casks/sql-editor.rb b/Casks/sql-editor.rb
index abc1234..def5678 100644
--- a/Casks/sql-editor.rb
+++ b/Casks/sql-editor.rb
@@ -1,7 +1,7 @@ class SqlEditor < Cask
- url 'http://www.malcolmhardie.com/sqleditor/releases/2.2/SQLEditor-2-2.zip'
+ url 'http://www.malcolmhardie.com/sqleditor/releases/2.2.1/SQL... | Update SQLEditor to v. 2.2.1
|
diff --git a/Casks/torbrowser.rb b/Casks/torbrowser.rb
index abc1234..def5678 100644
--- a/Casks/torbrowser.rb
+++ b/Casks/torbrowser.rb
@@ -6,7 +6,7 @@ gpg "#{url}.asc",
:key_id => '4e2c6e8793298290'
homepage 'https://www.torproject.org/projects/torbrowser.html'
- license :unknown # todo: change licens... | Update TorBrowser license to OSS |
diff --git a/cookbooks/yournavigation/recipes/default.rb b/cookbooks/yournavigation/recipes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/yournavigation/recipes/default.rb
+++ b/cookbooks/yournavigation/recipes/default.rb
@@ -46,4 +46,4 @@ libicu-dev
]
-apache_module "php7.0"
+apache_module "php7.2"
| Use PHP 7.2 on 18.04
|
diff --git a/tools/snippet-testing/language_handler/python_6.rb b/tools/snippet-testing/language_handler/python_6.rb
index abc1234..def5678 100644
--- a/tools/snippet-testing/language_handler/python_6.rb
+++ b/tools/snippet-testing/language_handler/python_6.rb
@@ -23,8 +23,9 @@
def replace_twilio_client_initializ... | Fix replace_twilio_client_initialization method return value
|
diff --git a/core/app/models/spree/payment_method.rb b/core/app/models/spree/payment_method.rb
index abc1234..def5678 100644
--- a/core/app/models/spree/payment_method.rb
+++ b/core/app/models/spree/payment_method.rb
@@ -23,7 +23,11 @@ end
def self.available(display_on = 'both')
- all.select { |p| p.act... | Cut down PaymentMethod.available to be more readable
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,10 +1,19 @@ class ApplicationController < ActionController::Base
- # Prevent CSRF attack... | Set CSRF token for Angular requests
|
diff --git a/test/integration/charge_flow_test.rb b/test/integration/charge_flow_test.rb
index abc1234..def5678 100644
--- a/test/integration/charge_flow_test.rb
+++ b/test/integration/charge_flow_test.rb
@@ -0,0 +1,24 @@+require 'test_helper'
+
+class ChargeFlowTest < ActionDispatch::IntegrationTest
+ # test "the tru... | Test payment form not displayed after payment made
|
diff --git a/test/integration/rack_attack_test.rb b/test/integration/rack_attack_test.rb
index abc1234..def5678 100644
--- a/test/integration/rack_attack_test.rb
+++ b/test/integration/rack_attack_test.rb
@@ -0,0 +1,57 @@+require 'test_helper'
+
+## SLOW TESTS ##
+class RackAttackTest < ActionDispatch::IntegrationTest
... | Add integration tests for rack attack
|
diff --git a/app/models/renalware/hd/preference_set.rb b/app/models/renalware/hd/preference_set.rb
index abc1234..def5678 100644
--- a/app/models/renalware/hd/preference_set.rb
+++ b/app/models/renalware/hd/preference_set.rb
@@ -15,9 +15,14 @@ has_paper_trail class_name: "Renalware::HD::Version"
validate... | Make validation condition more obvious
|
diff --git a/db/migrate/029_add_user_foreign_keys.rb b/db/migrate/029_add_user_foreign_keys.rb
index abc1234..def5678 100644
--- a/db/migrate/029_add_user_foreign_keys.rb
+++ b/db/migrate/029_add_user_foreign_keys.rb
@@ -0,0 +1,18 @@+class AddUserForeignKeys < ActiveRecord::Migration
+ def self.up
+ add_foreign_key... | Add foreign key constraints for users.
|
diff --git a/lib/tasks/deployment/20210715123116_baseload_variation_alerts.rake b/lib/tasks/deployment/20210715123116_baseload_variation_alerts.rake
index abc1234..def5678 100644
--- a/lib/tasks/deployment/20210715123116_baseload_variation_alerts.rake
+++ b/lib/tasks/deployment/20210715123116_baseload_variation_alerts.... | Add 2 new alert types
|
diff --git a/test/unit/release/processors_test.rb b/test/unit/release/processors_test.rb
index abc1234..def5678 100644
--- a/test/unit/release/processors_test.rb
+++ b/test/unit/release/processors_test.rb
@@ -1,47 +1,55 @@ require "test_helper"
require "./lib/roger/release"
-# Test Roger processors
-class Processors... | Make sure we reset the situation after we meddled with Processors.map
|
diff --git a/config/deploy/production.rb b/config/deploy/production.rb
index abc1234..def5678 100644
--- a/config/deploy/production.rb
+++ b/config/deploy/production.rb
@@ -5,3 +5,11 @@ role :web, domain
role :app, domain
role :db, domain, :primary => true
+
+namespace :deploy do
+ desc "Create newrelic symlink"
+ ... | Add task to create newrelic symlink
|
diff --git a/config/initializers/sass.rb b/config/initializers/sass.rb
index abc1234..def5678 100644
--- a/config/initializers/sass.rb
+++ b/config/initializers/sass.rb
@@ -3,7 +3,7 @@ module Sass::Script::Functions
def settings_style(setting)
assert_type setting, :String
- return_value = ActiveRecord::Base.... | Use defaults if table doesn't exist
|
diff --git a/roles/ic.rb b/roles/ic.rb
index abc1234..def5678 100644
--- a/roles/ic.rb
+++ b/roles/ic.rb
@@ -28,6 +28,15 @@ }
}
}
+ },
+ :sysfs => {
+ :cpufreq_ondemand_low => {
+ :comment => "Tune the ondemand CPU frequency governor for reduced scaling",
+ :parameters => {
+ "... | Reduce CPU up scaling for IC systems due to cooling pressure
|
diff --git a/spec/acceptance/adjunto_imagenes_spec.rb b/spec/acceptance/adjunto_imagenes_spec.rb
index abc1234..def5678 100644
--- a/spec/acceptance/adjunto_imagenes_spec.rb
+++ b/spec/acceptance/adjunto_imagenes_spec.rb
@@ -0,0 +1,24 @@+# encoding: utf-8
+
+require File.expand_path(File.dirname(__FILE__) + '/acceptanc... | Test de adjunto de imágenes.
En Chromium falla porque no dispara bien el evento, pero en realidad
funciona.
En Firefox falla porque en Firefox efectivamente el proceso falla, pero
sí dispara el evento. Así que vale para lo que quiero.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.