diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/libraries/helpers.rb b/libraries/helpers.rb
index abc1234..def5678 100644
--- a/libraries/helpers.rb
+++ b/libraries/helpers.rb
@@ -6,7 +6,7 @@ elsif p && p.is_a?(Array)
p.join(',')
elsif p && p.is_a?(Range)
- "#{p.first}:#{p.last} "
+ "#{p.first}:#{p.last}"
end
... | Remove extra space after port range
Resolves #79
|
diff --git a/lib/stuffed_bunny.rb b/lib/stuffed_bunny.rb
index abc1234..def5678 100644
--- a/lib/stuffed_bunny.rb
+++ b/lib/stuffed_bunny.rb
@@ -4,7 +4,7 @@ module StuffedBunny
# Call this in a test's setup method to stub the Bunny gem.
- def reset!
+ def self.reset!
Bunny.reset_exchanges
end
| Make the `reset!` method callable...
|
diff --git a/lib/tinytable/text_formatter.rb b/lib/tinytable/text_formatter.rb
index abc1234..def5678 100644
--- a/lib/tinytable/text_formatter.rb
+++ b/lib/tinytable/text_formatter.rb
@@ -45,11 +45,11 @@
def row(r)
append VERTICAL
- r.each_with_index { |c, i| col(c, i) }
+ r.each_with_index { |c... | Rename 'col' method to 'cell'
|
diff --git a/lib/tmuxpowerline.rb b/lib/tmuxpowerline.rb
index abc1234..def5678 100644
--- a/lib/tmuxpowerline.rb
+++ b/lib/tmuxpowerline.rb
@@ -1,10 +1,14 @@ require 'configuration/yaml'
class TmuxPowerline
- def initialize(configuration_loader)
+ def initialize(configuration_loader=Configuration::Yaml.new)
... | Define a default configuration loader and add a method to load the configuration
|
diff --git a/config/environments/production.rb b/config/environments/production.rb
index abc1234..def5678 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -28,8 +28,9 @@ domain: ENV['MAILGUN_DOMAIN']
}
+ roqua_server_app_path = "https://#{ENV['SCREENSMART_URL']}" if EN... | Include https in root url
|
diff --git a/lib/models/page.rb b/lib/models/page.rb
index abc1234..def5678 100644
--- a/lib/models/page.rb
+++ b/lib/models/page.rb
@@ -1,12 +1,12 @@ class Page < Sequel::Model
def before_create
- self.slug = Title.new(title).slug
+ self.slug = Title.new(self.title).slug
end
def before_save
self.... | Make it clear that we use Sequel::Model attributes
|
diff --git a/lib/swagger/api.rb b/lib/swagger/api.rb
index abc1234..def5678 100644
--- a/lib/swagger/api.rb
+++ b/lib/swagger/api.rb
@@ -12,7 +12,7 @@ end
def operations http_methods, opts = {}
- operations = http_methods.map { |m| Operation.new self, m, opts }
+ operations = Array(http_methods).ma... | Allow single strings for operations. |
diff --git a/bureaucrat.gemspec b/bureaucrat.gemspec
index abc1234..def5678 100644
--- a/bureaucrat.gemspec
+++ b/bureaucrat.gemspec
@@ -9,7 +9,7 @@
s.specification_version = 2 if s.respond_to? :specification_version=
- s.files = ["lib/bureaucrat/fields.rb", "lib/bureaucrat/forms.rb", "lib/bureaucrat/formsets.... | Remove reference to unused file
|
diff --git a/app/admin/venue.rb b/app/admin/venue.rb
index abc1234..def5678 100644
--- a/app/admin/venue.rb
+++ b/app/admin/venue.rb
@@ -21,7 +21,7 @@ attributes_table do
row :single_events do |preset|
ul do
- venue.single_events.map { |s| li(link_to(s.name, edit_admin_single_event_path(s... | Use full name, prevents empty list items
|
diff --git a/timeliness.gemspec b/timeliness.gemspec
index abc1234..def5678 100644
--- a/timeliness.gemspec
+++ b/timeliness.gemspec
@@ -11,6 +11,7 @@ s.homepage = %q{http://github.com/adzap/timeliness}
s.summary = %q{Date/time parsing for the control freak.}
s.description = %q{Fast date/time parser with... | Add license name to the gemspec. |
diff --git a/lesson6/let_it_be_refactor.rb b/lesson6/let_it_be_refactor.rb
index abc1234..def5678 100644
--- a/lesson6/let_it_be_refactor.rb
+++ b/lesson6/let_it_be_refactor.rb
@@ -0,0 +1,27 @@+# Lesson 6 - Gospel Song Chord Progression
+# Let It Be - Refactor
+use_synth :piano
+
+define :gospel_chord do |pitch, pitch_... | Add in a refactored version of let it be
|
diff --git a/spec/cloud_payments/models/order_spec.rb b/spec/cloud_payments/models/order_spec.rb
index abc1234..def5678 100644
--- a/spec/cloud_payments/models/order_spec.rb
+++ b/spec/cloud_payments/models/order_spec.rb
@@ -0,0 +1,59 @@+require 'spec_helper'
+
+describe CloudPayments::Order do
+ subject{ described_cl... | Add coverage for order model
|
diff --git a/spec/unit/nutrella/configuration_spec.rb b/spec/unit/nutrella/configuration_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/nutrella/configuration_spec.rb
+++ b/spec/unit/nutrella/configuration_spec.rb
@@ -5,48 +5,32 @@
describe "#initialize" do
it "succeeds when configuration exists and... | Increase abstraction in the spec.
|
diff --git a/init.rb b/init.rb
index abc1234..def5678 100644
--- a/init.rb
+++ b/init.rb
@@ -24,17 +24,18 @@ end
# include Sortable and Searchable into all controllers
-class ::ApplicationController < ActionController::Base
- class << self
- alias_method :amberbit_scaffold_original_inherited, :inherited
- end
+... | Disable autoincluding of Sortable and Searchable controller modules
|
diff --git a/init.rb b/init.rb
index abc1234..def5678 100644
--- a/init.rb
+++ b/init.rb
@@ -3,7 +3,8 @@ include AssertRequest
# In production mode, trap assert_request's RequestError exceptions, and
- # render a 404 response instead.
+ # render a 404 response instead of the default 500. Comment out the
+ # ... | Add comment about how to disable the current exception
behavior in production (a 404 response).
git-svn-id: 36d0598828eae866924735253b485a592756576c@8097 da5c320b-a5ec-0310-b7f9-e4d854caa1e2
|
diff --git a/lib/better_sjr/renderer_extensions.rb b/lib/better_sjr/renderer_extensions.rb
index abc1234..def5678 100644
--- a/lib/better_sjr/renderer_extensions.rb
+++ b/lib/better_sjr/renderer_extensions.rb
@@ -1,5 +1,13 @@ module BetterSJR
+ # Wraps JavaScript formatted templates in a try-catch statement when rende... | Add code documentation to RendererExtensions module
|
diff --git a/lib/apilint/lint/deep_path.rb b/lib/apilint/lint/deep_path.rb
index abc1234..def5678 100644
--- a/lib/apilint/lint/deep_path.rb
+++ b/lib/apilint/lint/deep_path.rb
@@ -6,8 +6,19 @@ # TODO: Configure a prefix. Ex: :prefix => '/admin/api/'
def check(request, _response)
- return if reque... | Add config options in DeepPath lint
|
diff --git a/lib/camel_caser/middleware.rb b/lib/camel_caser/middleware.rb
index abc1234..def5678 100644
--- a/lib/camel_caser/middleware.rb
+++ b/lib/camel_caser/middleware.rb
@@ -25,11 +25,12 @@ Rack::Request
end.new(env)
if request.post?
- if env["rack.request.form_hash"]... | Clean up if - strategy
|
diff --git a/app/models/login_observer.rb b/app/models/login_observer.rb
index abc1234..def5678 100644
--- a/app/models/login_observer.rb
+++ b/app/models/login_observer.rb
@@ -1,4 +1,5 @@ class LoginObserver < ActiveRecord::Observer
+ unloadable
# mail the user after signing up
def after_request_activation(lo... | Make the login observer unloadable as this appears to prevent the observer from not working in development
|
diff --git a/app/models/miq_reportable.rb b/app/models/miq_reportable.rb
index abc1234..def5678 100644
--- a/app/models/miq_reportable.rb
+++ b/app/models/miq_reportable.rb
@@ -8,9 +8,7 @@ end
Ruport::Data::Table.new(:data => data.collect(&:last),
- :column_names => data.co... | Remove unused options from Ruport::Data::Table.new call
|
diff --git a/app/services/iiif_service.rb b/app/services/iiif_service.rb
index abc1234..def5678 100644
--- a/app/services/iiif_service.rb
+++ b/app/services/iiif_service.rb
@@ -1,4 +1,17 @@ class IiifService < Spotlight::Resources::IiifService
+ def self.iiif_response(url)
+ resp = Faraday.get(url)
+ if resp.suc... | Allow for 404 when reindexing.
|
diff --git a/lib/firehose/server/message_filter.rb b/lib/firehose/server/message_filter.rb
index abc1234..def5678 100644
--- a/lib/firehose/server/message_filter.rb
+++ b/lib/firehose/server/message_filter.rb
@@ -3,6 +3,8 @@ # A no-op message filter. This class is meant to be
# extended by users for implementi... | Add attr_reader for MessageFilter channel & params
|
diff --git a/lib/http/exceptions/http_exception.rb b/lib/http/exceptions/http_exception.rb
index abc1234..def5678 100644
--- a/lib/http/exceptions/http_exception.rb
+++ b/lib/http/exceptions/http_exception.rb
@@ -6,7 +6,7 @@ def initialize(options = {})
@original_exception = options[:original_exception]
... | Fix spelling typo in exception message
The correct spelling is "occurred" (not occured).
Per:
https://www.grammarly.com/blog/occurred-occured-ocurred/ |
diff --git a/lib/es_easy_query/executor.rb b/lib/es_easy_query/executor.rb
index abc1234..def5678 100644
--- a/lib/es_easy_query/executor.rb
+++ b/lib/es_easy_query/executor.rb
@@ -14,7 +14,9 @@ end
def index(index_name)
- new(index_name: index_name)
+ instance = self.class.new(query_class)
+ ... | Allow changing index at execution and definition time
|
diff --git a/lib/sidekiq_unique_jobs/middleware/client/unique_jobs.rb b/lib/sidekiq_unique_jobs/middleware/client/unique_jobs.rb
index abc1234..def5678 100644
--- a/lib/sidekiq_unique_jobs/middleware/client/unique_jobs.rb
+++ b/lib/sidekiq_unique_jobs/middleware/client/unique_jobs.rb
@@ -1,5 +1,4 @@ require 'sidekiq_un... | Remove require for testing inline
|
diff --git a/lib/middleman-alias/alias-resource.rb b/lib/middleman-alias/alias-resource.rb
index abc1234..def5678 100644
--- a/lib/middleman-alias/alias-resource.rb
+++ b/lib/middleman-alias/alias-resource.rb
@@ -21,6 +21,7 @@ %[
<html>
<head>
+ <link rel="canonical" href="#... | Add rel=canonical URL to alias page
See https://support.google.com/webmasters/answer/139066
|
diff --git a/lib/taiwan_validator/ubn_validator.rb b/lib/taiwan_validator/ubn_validator.rb
index abc1234..def5678 100644
--- a/lib/taiwan_validator/ubn_validator.rb
+++ b/lib/taiwan_validator/ubn_validator.rb
@@ -10,11 +10,10 @@ results = digits.zip(MULTIPLIER).map do |op1, op2|
digit = op1 * op2
... | Fix error when 7th digit == "7"
|
diff --git a/lib/vagrant-butcher/action/cleanup.rb b/lib/vagrant-butcher/action/cleanup.rb
index abc1234..def5678 100644
--- a/lib/vagrant-butcher/action/cleanup.rb
+++ b/lib/vagrant-butcher/action/cleanup.rb
@@ -27,6 +27,8 @@ rescue
# The dir wasn't empty.
end
+ else
+ ... | Add message that key was not deleted on error
|
diff --git a/feeder.gemspec b/feeder.gemspec
index abc1234..def5678 100644
--- a/feeder.gemspec
+++ b/feeder.gemspec
@@ -17,7 +17,7 @@ DESC
s.license = "MIT"
- s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
+ s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakef... | Update gemspec to point to markdown'd README
|
diff --git a/lib/rails_patch/components.rb b/lib/rails_patch/components.rb
index abc1234..def5678 100644
--- a/lib/rails_patch/components.rb
+++ b/lib/rails_patch/components.rb
@@ -5,9 +5,9 @@
# By default, this logs *WAY* too much data for us when we're doing sidebars--I've seen ~2M
# per hit. This has... | Rename orig_component_logging to something more descriptive, at pdcawley's request
git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@1020 820eb932-12ee-0310-9ca8-eeb645f39767
|
diff --git a/lib/tasks/datagrid_tasks.rake b/lib/tasks/datagrid_tasks.rake
index abc1234..def5678 100644
--- a/lib/tasks/datagrid_tasks.rake
+++ b/lib/tasks/datagrid_tasks.rake
@@ -1,15 +1,15 @@ namespace :datagrid do
- def copy_template(path)
- gem_app = File.expand_path("../../../app", __FILE__)
- rails_ap... | Refactor rake task a little
|
diff --git a/lib/tasks/setup_exchange.rake b/lib/tasks/setup_exchange.rake
index abc1234..def5678 100644
--- a/lib/tasks/setup_exchange.rake
+++ b/lib/tasks/setup_exchange.rake
@@ -0,0 +1,7 @@+task :setup_exchange do
+ config = YAML.load_file(Rails.root.join("config", "rabbitmq.yml"))[Rails.env].symbolize_keys
+
+ bu... | Add task to setup exchange for RabbitMQ
We need the exchange and it's queues in E2E testing this rake task
allows for them to be setup using the existing config in publishing-api.
|
diff --git a/lib/vagrant/action/vm/boot.rb b/lib/vagrant/action/vm/boot.rb
index abc1234..def5678 100644
--- a/lib/vagrant/action/vm/boot.rb
+++ b/lib/vagrant/action/vm/boot.rb
@@ -24,7 +24,7 @@ def wait_for_boot
@env.ui.info I18n.t("vagrant.actions.vm.boot.waiting")
- @env.env.config.ssh.... | Use the env["key"] style instead of env.env.key
|
diff --git a/by_star.gemspec b/by_star.gemspec
index abc1234..def5678 100644
--- a/by_star.gemspec
+++ b/by_star.gemspec
@@ -16,6 +16,8 @@
s.add_development_dependency "bundler", ">= 1.0.0"
s.add_development_dependency "sqlite3"
+ s.add_development_dependency "pg"
+ s.add_development_dependency "mysql2"
s.a... | Add pg and mysql2 dependencies to gemspec
This is so that when 'bundle install' runs on Travis, it has the depenencies so the mysql and pg builds can run
|
diff --git a/spec/capybara_helper.rb b/spec/capybara_helper.rb
index abc1234..def5678 100644
--- a/spec/capybara_helper.rb
+++ b/spec/capybara_helper.rb
@@ -9,12 +9,14 @@ selected_driver.to_s.start_with? 'selenium'
end
-Capybara.server_port = 31337
Capybara.default_driver = selected_driver
-# TODO: fix the test... | Include Capybara server port on URL for Selenium
|
diff --git a/closed_issues.rb b/closed_issues.rb
index abc1234..def5678 100644
--- a/closed_issues.rb
+++ b/closed_issues.rb
@@ -6,14 +6,14 @@ require_relative 'sprint_statistics'
fq_repo = File.join(ORGANIZATION, PROJECT)
ss = SprintStatistics.new(ACCESS_TOKEN)
-milestone = ss.client.milestones(fq_repo, :ti... | Fix code for detecting the correct milestone.
You can't filter by :title in the api
|
diff --git a/spec/controllers/comments_controller_spec.rb b/spec/controllers/comments_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/comments_controller_spec.rb
+++ b/spec/controllers/comments_controller_spec.rb
@@ -6,6 +6,8 @@ @user = create(:user)
@idea = create(:idea)
@co... | Use devise to sign in the test user.
Creating a new comment or editing an existing one requires users to be signed in/authenticated (as specified in the comments controller).
Without signing in, trying to request the new & edit actions from the controller would fail the authentication and return false. This is not wha... |
diff --git a/js_image_paths.gemspec b/js_image_paths.gemspec
index abc1234..def5678 100644
--- a/js_image_paths.gemspec
+++ b/js_image_paths.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependency("rails", "~> 4.0")
+ spec.ad... | Support rails 5 in dependencies
|
diff --git a/lib/fappu/manga.rb b/lib/fappu/manga.rb
index abc1234..def5678 100644
--- a/lib/fappu/manga.rb
+++ b/lib/fappu/manga.rb
@@ -7,7 +7,9 @@ URL = "https://api.fakku.net/manga"
attr_accessor :title, :url, :description, :language, :category, :date, :filesize,
- :favorites, :comments, :pages, :pos... | Add artists, images, series label。
|
diff --git a/lib/islay/pages.rb b/lib/islay/pages.rb
index abc1234..def5678 100644
--- a/lib/islay/pages.rb
+++ b/lib/islay/pages.rb
@@ -55,8 +55,8 @@ @features = bool
end
- def content(slug, name, type)
- @contents[slug] = {:slug => slug, :name => name, :type => type}
+ def content(sl... | Allow content definitions to take an options hash (for grouping)
|
diff --git a/lib/petscan_api.rb b/lib/petscan_api.rb
index abc1234..def5678 100644
--- a/lib/petscan_api.rb
+++ b/lib/petscan_api.rb
@@ -35,6 +35,6 @@ end
def typical_errors
- [Errno::EHOSTUNREACH]
+ [Errno::EHOSTUNREACH, Faraday::TimeoutError]
end
end
| Add timeout as common PetScan API error
This seems to be a nontrivial problem with some PetScan queries, such as for psid 16065109
|
diff --git a/lib/relex/token.rb b/lib/relex/token.rb
index abc1234..def5678 100644
--- a/lib/relex/token.rb
+++ b/lib/relex/token.rb
@@ -1,16 +1,6 @@ module Relex
class Token
- attr_reader :palavras_reservadas, :delimitadores, :operadores_aritmeticos, :identificadores, :strings_numericas, :comando_atribuicao, :op... | Remove regexps de Token. Elas devem estar em cli.rb
|
diff --git a/lib/wixy/caesar.rb b/lib/wixy/caesar.rb
index abc1234..def5678 100644
--- a/lib/wixy/caesar.rb
+++ b/lib/wixy/caesar.rb
@@ -5,7 +5,7 @@ class Caesar
def initialize(config = Config.new)
@text_alphabet = Alphabet.AZ
- @cipher_alphabet = Alphabet.AZ :shift => config.shift
+ @cipher_alp... | Revert "Use 1.8-compatible hash syntax"
This reverts commit 20a33e072956d1d034ba948fee00bafcdaa4e747.
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -27,5 +27,6 @@ source node['xquartz']['url']
checksum node['xquartz']['checksum']
volumes_dir "XQuartz-#{node['xquartz']['version']}"
+ package_id "org.macosforge.xquartz.pkg"... | Use package_id to ensure idempotency of pkg install.
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -12,6 +12,20 @@ package 'dsc20'
package 'cassandra20'
+execute "Set cassandra listening address" do
+ command "sed -i -e 's/localhost/#{node['fqdn']}/g' /etc/cassandra/conf/cassandr... | Set FQDN for cassandra listen and RPC then start datastax and cassandra
|
diff --git a/recipes/upgrade.rb b/recipes/upgrade.rb
index abc1234..def5678 100644
--- a/recipes/upgrade.rb
+++ b/recipes/upgrade.rb
@@ -19,7 +19,11 @@
case node['platform_family']
when 'debian', 'ubuntu'
- packages = %w(libssl1.0.0 openssl)
+ packages = if platform?('debian') && node['platform_version'].to_i >= 9... | Fix failures on Debian 9
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/redirector.gemspec b/redirector.gemspec
index abc1234..def5678 100644
--- a/redirector.gemspec
+++ b/redirector.gemspec
@@ -15,7 +15,7 @@
s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile",
"README.md", "redirector.gemspec", "HISTORY"]
- s.test_files = Dir["test/**/*"]
+ s.t... | Update test files defination in gemspec
|
diff --git a/app/controllers/permit_steps_controller.rb b/app/controllers/permit_steps_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/permit_steps_controller.rb
+++ b/app/controllers/permit_steps_controller.rb
@@ -9,8 +9,18 @@
def show
@permit = current_permit
+
+ case step
+
+ when ... | Make it possible to skip steps
|
diff --git a/app/services/search/conditions/abstract.rb b/app/services/search/conditions/abstract.rb
index abc1234..def5678 100644
--- a/app/services/search/conditions/abstract.rb
+++ b/app/services/search/conditions/abstract.rb
@@ -40,7 +40,7 @@
def order
order_conditions = RademadeAdmin::Search::... | Fix default table order field
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,10 +1,5 @@ Rails.application.routes.draw do
resources :communities, :defaults => { :format => 'json' } do
- resources :events do
- resources :tickets
- end
- resour... | Fix review delete routing of non-create controller
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -5,7 +5,7 @@ namespace :v1 do
mount_devise_token_auth_for 'User', at: 'auth'
- resources :users, only: [:index, :show], param: :nickname
+ resources :users, only: [:inde... | Allow user url with username with a dot
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -27,6 +27,6 @@
match ':controller/:action/:id'
match ':controller/:action'
- match 'tasks/*path/:id' => 'tasks#show'
+ match 'tasks/*path/:id' => 'tasks#edit'
end
| Fix default route (show -> edit)
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -32,5 +32,5 @@ end
end
- resources :discussion_boards, :only => [ :edit ]
+ resources :discussion_boards, :only => [ :edit, :update ]
end
| Update Routing for DiscussionBoard update Action
Add a route for the DiscussionBoard update action.
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -17,9 +17,12 @@ end
resources :courses, :only => [ :create ]
+ resources :blogs, :only => [ :create ]
end
resources :courses, :only => [ :edit, :update ] do
resour... | Add Blog create and edit Routes
Update the routing file to include Blog create and edit routes.
|
diff --git a/spec/feature/login_register_spec.rb b/spec/feature/login_register_spec.rb
index abc1234..def5678 100644
--- a/spec/feature/login_register_spec.rb
+++ b/spec/feature/login_register_spec.rb
@@ -5,17 +5,21 @@ @user = create(:user)
end
- scenario 'Signing in with correct credentials' do
+ given(:sig... | Improve descriptions for sign in tests
|
diff --git a/config/initializers/redis.rb b/config/initializers/redis.rb
index abc1234..def5678 100644
--- a/config/initializers/redis.rb
+++ b/config/initializers/redis.rb
@@ -1 +1,3 @@-$redis = Redis.new(url: ENV["REDIS_URL"]) if ENV['REDIS_URL']
+redis_connection = Redis.new(url: ENV["REDIS_URL"]) if ENV['REDIS_URL'... | Use Redis namespaced to current env
|
diff --git a/generators/layout_files/layout_files_generator.rb b/generators/layout_files/layout_files_generator.rb
index abc1234..def5678 100644
--- a/generators/layout_files/layout_files_generator.rb
+++ b/generators/layout_files/layout_files_generator.rb
@@ -1,5 +1,5 @@ class LayoutFilesGenerator < Rails::Generator::... | Fix to generator (remove missing file screen.css)
|
diff --git a/paperclip-storage-ftp.gemspec b/paperclip-storage-ftp.gemspec
index abc1234..def5678 100644
--- a/paperclip-storage-ftp.gemspec
+++ b/paperclip-storage-ftp.gemspec
@@ -5,6 +5,7 @@ gem.description = %q{Allow Paperclip attachments to be stored on FTP servers}
gem.summary = %q{Allow Paperclip att... | Add MIT license info to gemspec [ci skip]
|
diff --git a/resources/check.rb b/resources/check.rb
index abc1234..def5678 100644
--- a/resources/check.rb
+++ b/resources/check.rb
@@ -19,6 +19,8 @@
actions :add, :remove
+default_action :add
+
state_attrs :command,
:command_name,
:critical_condition,
@@ -27,13 +29,7 @@
# Name of the ... | Update LWRP to use default_action vs. initialize method
|
diff --git a/resources/model.rb b/resources/model.rb
index abc1234..def5678 100644
--- a/resources/model.rb
+++ b/resources/model.rb
@@ -1,7 +1,7 @@ actions :create, :delete
default_action :create
-attribute :name, :kind_of => Symbol, :name_attribute => true, :required => true
+attribute :name, :kind_of => String, :... | Fix Symbols as name attribute broken with chef-client 12.5
|
diff --git a/lib/dry/types/value.rb b/lib/dry/types/value.rb
index abc1234..def5678 100644
--- a/lib/dry/types/value.rb
+++ b/lib/dry/types/value.rb
@@ -3,7 +3,7 @@ module Dry
module Types
class Value < Struct
- def self.new(*, &_block)
+ def self.new(*)
super.freeze
end
end
| Refactor `Value.new` removing unnecessary &_block
|
diff --git a/db/migrate/20160624040512_create_trails.rb b/db/migrate/20160624040512_create_trails.rb
index abc1234..def5678 100644
--- a/db/migrate/20160624040512_create_trails.rb
+++ b/db/migrate/20160624040512_create_trails.rb
@@ -1,6 +1,13 @@ class CreateTrails < ActiveRecord::Migration
def change
create_tab... | Update trails migration to include info from API
|
diff --git a/lib/related/helpers.rb b/lib/related/helpers.rb
index abc1234..def5678 100644
--- a/lib/related/helpers.rb
+++ b/lib/related/helpers.rb
@@ -1,5 +1,5 @@ require 'base64'
-require 'digest/sha2'
+require 'digest/md5'
module Related
module Helpers
@@ -7,8 +7,8 @@ # Generate a unique id
def gener... | Use MD5 instead of SHA to generate ids. Makes more sense and is faster.
|
diff --git a/lib/thread_variable.rb b/lib/thread_variable.rb
index abc1234..def5678 100644
--- a/lib/thread_variable.rb
+++ b/lib/thread_variable.rb
@@ -3,13 +3,13 @@ module ThreadVariable
def thread_variable *names
names.each do |name|
+ namespace = (self.name || self.object_id.to_s).to_sym
+
defin... | Define namespace outside of method to avoid recalculating
Since the method is defined as a closure, we can pre-calculate it and it
will always use that namespace. This should give a slight speed-up for
the getters and setters.
|
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
@@ -29,9 +29,9 @@ def send_to_printer(path)
# My ip is 192.168.101.99
if RUBY_PLATFORM =~ /darwin/
- `lpr -P #{@printer} -o raw #{path} -h 192.168... | Remove path declaration from send_to_printer method
|
diff --git a/Library/Homebrew/unpack_strategy/directory.rb b/Library/Homebrew/unpack_strategy/directory.rb
index abc1234..def5678 100644
--- a/Library/Homebrew/unpack_strategy/directory.rb
+++ b/Library/Homebrew/unpack_strategy/directory.rb
@@ -16,7 +16,9 @@
def extract_to_dir(unpack_dir, basename:, verbose:)
... | Use `cp` instead of `FileUtils.copy_entry`.
|
diff --git a/react-native-idle-timer.podspec b/react-native-idle-timer.podspec
index abc1234..def5678 100644
--- a/react-native-idle-timer.podspec
+++ b/react-native-idle-timer.podspec
@@ -9,7 +9,7 @@ s.description = package['description']
s.license = package['license']
s.author = package['aut... | Fix homepage value in podspec for cocoapods 1.0+ |
diff --git a/main.rb b/main.rb
index abc1234..def5678 100644
--- a/main.rb
+++ b/main.rb
@@ -20,7 +20,7 @@
store.transaction do
unless info == store['info']
- msg = "5ngayvang has been updated! Check it out #{NGAYVANG_URL}"
+ msg = "5ngayvang has been updated! New info: #{info}. Check it out #{NGAYVANG_URL}"... | Add new info to msg
|
diff --git a/plugins/guests/tinycore/cap/configure_networks.rb b/plugins/guests/tinycore/cap/configure_networks.rb
index abc1234..def5678 100644
--- a/plugins/guests/tinycore/cap/configure_networks.rb
+++ b/plugins/guests/tinycore/cap/configure_networks.rb
@@ -7,6 +7,11 @@ def self.configure_networks(machine, n... | Add support for DHCP on tinycore
|
diff --git a/cookbooks/rs_utils/recipes/setup_timezone.rb b/cookbooks/rs_utils/recipes/setup_timezone.rb
index abc1234..def5678 100644
--- a/cookbooks/rs_utils/recipes/setup_timezone.rb
+++ b/cookbooks/rs_utils/recipes/setup_timezone.rb
@@ -23,7 +23,7 @@ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.... | Test if logic on timezone.
|
diff --git a/Casks/omnigraffle5.rb b/Casks/omnigraffle5.rb
index abc1234..def5678 100644
--- a/Casks/omnigraffle5.rb
+++ b/Casks/omnigraffle5.rb
@@ -0,0 +1,10 @@+cask :v1 => 'omnigraffle5' do
+ version '5.4.4'
+ sha256 '7bcc64093f46bd4808b1a4cb86cf90c0380a5c5ffffd55ce8f742712818558df'
+
+ url "http://www.omnigroup.c... | Add OmniGraffle 5 Standard cask
Fix token name
Add OmniGraffle 5 Standard cask
Fix token name
|
diff --git a/ConnectMe/rADMeNow.rb b/ConnectMe/rADMeNow.rb
index abc1234..def5678 100644
--- a/ConnectMe/rADMeNow.rb
+++ b/ConnectMe/rADMeNow.rb
@@ -1,9 +1,10 @@-# @author Marius Küng
-# @version 0.1 (2013-11-22)
+# @author Marius Küng and Livio Bieri
# open smb://fsemu18.edu.ds.fhnw.ch/e_18_data11\$/
-load(File.joi... | Make use of require 'require_relative' gem
|
diff --git a/test/integration/search_test.rb b/test/integration/search_test.rb
index abc1234..def5678 100644
--- a/test/integration/search_test.rb
+++ b/test/integration/search_test.rb
@@ -13,4 +13,14 @@
assert_response :bad_request
end
+
+ test 'should return search results by search id' do
+ get search_u... | Add test for Search Results
|
diff --git a/Casks/bluestacks.rb b/Casks/bluestacks.rb
index abc1234..def5678 100644
--- a/Casks/bluestacks.rb
+++ b/Casks/bluestacks.rb
@@ -8,4 +8,24 @@ license :closed
app 'BlueStacks.app'
+
+ uninstall :launchctl => [
+ 'com.BlueStacks.AppPlayer.bstservice_helper',
+ ... | Add uninstall and zap stanzas for BlueStacks
|
diff --git a/Casks/mini-metro.rb b/Casks/mini-metro.rb
index abc1234..def5678 100644
--- a/Casks/mini-metro.rb
+++ b/Casks/mini-metro.rb
@@ -1,7 +1,7 @@ class MiniMetro < Cask
- url 'http://static.dinopoloclub.com/minimetro/builds/alpha12/MiniMetro-alpha12-osx.zip'
+ url 'http://static.dinopoloclub.com/minimetro/buil... | Update Mini Metro to Alpha 12a
|
diff --git a/Diff.podspec b/Diff.podspec
index abc1234..def5678 100644
--- a/Diff.podspec
+++ b/Diff.podspec
@@ -17,23 +17,11 @@ "Wojtek Czekalski" => "me@wczekalski.com"
}
+ s.source = { :git => "https://github.com/tonyarnold/Diff.git", :tag => "0.6" }
+ s.source_files = "Sources/Diff"
+
s.platforms = { ... | Fix Podspec to use new pod_target_xcconfig property
|
diff --git a/spec/models/spree/payment_method/klarna_credit_spec.rb b/spec/models/spree/payment_method/klarna_credit_spec.rb
index abc1234..def5678 100644
--- a/spec/models/spree/payment_method/klarna_credit_spec.rb
+++ b/spec/models/spree/payment_method/klarna_credit_spec.rb
@@ -1,21 +1,51 @@ # frozen_string_literal: ... | Add klarna payment method missing specs
|
diff --git a/spec/unit/data_mapper/mapper/class_methods/map_spec.rb b/spec/unit/data_mapper/mapper/class_methods/map_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/data_mapper/mapper/class_methods/map_spec.rb
+++ b/spec/unit/data_mapper/mapper/class_methods/map_spec.rb
@@ -1,11 +1,15 @@ require 'spec_helper'
... | Kill a mutation in Mapper.map
|
diff --git a/PBWebViewController.podspec b/PBWebViewController.podspec
index abc1234..def5678 100644
--- a/PBWebViewController.podspec
+++ b/PBWebViewController.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = 'PBWebViewController'
- s.version = '0.3'
+ s.version = '0.4'
s.summary = ... | Prepare a new version for Cocoapods
|
diff --git a/barebones.gemspec b/barebones.gemspec
index abc1234..def5678 100644
--- a/barebones.gemspec
+++ b/barebones.gemspec
@@ -1,9 +1,10 @@ require "./lib/barebones/version"
+require "date"
Gem::Specification.new do |s|
s.name = "barebones"
s.version = "0.1.1"
- s.date = "2015-10-19"
+... | Change gemspec date to automatically update
|
diff --git a/db/seeds/demo/demo_data/fake_intervention.rb b/db/seeds/demo/demo_data/fake_intervention.rb
index abc1234..def5678 100644
--- a/db/seeds/demo/demo_data/fake_intervention.rb
+++ b/db/seeds/demo/demo_data/fake_intervention.rb
@@ -8,7 +8,7 @@ (1..28).to_a.sample
)
@educator = Educator.first_or... | Update fake Intervention to look like ATP w/ number of hours
|
diff --git a/Contacts/spec/models/contact_spec.rb b/Contacts/spec/models/contact_spec.rb
index abc1234..def5678 100644
--- a/Contacts/spec/models/contact_spec.rb
+++ b/Contacts/spec/models/contact_spec.rb
@@ -7,7 +7,8 @@
context "writing to the database" do
it "saves without errors" do
- # Tests whether f... | Make comment on model test clearer |
diff --git a/db/migrate/20160815160730_create_functions.rb b/db/migrate/20160815160730_create_functions.rb
index abc1234..def5678 100644
--- a/db/migrate/20160815160730_create_functions.rb
+++ b/db/migrate/20160815160730_create_functions.rb
@@ -3,8 +3,8 @@ create_table :functions do |t|
t.belongs_to :user, f... | Change duration time for functions to date
|
diff --git a/examples/free_guest_subscriber.rb b/examples/free_guest_subscriber.rb
index abc1234..def5678 100644
--- a/examples/free_guest_subscriber.rb
+++ b/examples/free_guest_subscriber.rb
@@ -0,0 +1,36 @@+require 'noam-lemma'
+
+# This is an example of a Ruby Lemma that publishes message and *also* uses the
+# "Gu... | Add an example of a free guest subscriber.
|
diff --git a/spec/endpoints/content_upload_spec.rb b/spec/endpoints/content_upload_spec.rb
index abc1234..def5678 100644
--- a/spec/endpoints/content_upload_spec.rb
+++ b/spec/endpoints/content_upload_spec.rb
@@ -0,0 +1,41 @@+describe DropboxApi::Endpoints::ContentUpload do
+ shared_examples_for "is calculated and app... | Add spec for Content-Length header.
|
diff --git a/NTAnalytics.podspec b/NTAnalytics.podspec
index abc1234..def5678 100644
--- a/NTAnalytics.podspec
+++ b/NTAnalytics.podspec
@@ -1,12 +1,12 @@ Pod::Spec.new do |s|
s.name = "NTAnalytics"
- s.version = "0.15"
+ s.version = "0.50"
s.summary = "NTAnalytics - A Provider-based syst... | Update posspec version to 0.50
|
diff --git a/AttributedLib.podspec b/AttributedLib.podspec
index abc1234..def5678 100644
--- a/AttributedLib.podspec
+++ b/AttributedLib.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = 'AttributedLib'
- s.version = '1.0.0'
+ s.version = '1.1.0'
s.summary = 'A Modern ... | Increment pod version to 1.1.0
|
diff --git a/spec/support/transactional_command.rb b/spec/support/transactional_command.rb
index abc1234..def5678 100644
--- a/spec/support/transactional_command.rb
+++ b/spec/support/transactional_command.rb
@@ -0,0 +1,37 @@+module TransactionalCommand
+end
+
+RSpec.shared_examples_for TransactionalCommand do
+ descr... | Add a shared context for testing transactionality
|
diff --git a/UKPostcodeValidator.podspec b/UKPostcodeValidator.podspec
index abc1234..def5678 100644
--- a/UKPostcodeValidator.podspec
+++ b/UKPostcodeValidator.podspec
@@ -13,7 +13,5 @@ s.requires_arc = true
s.source_files = 'Classes'
- s.resources = 'Resources'
-
s.public_header_files = 'Classes/**/*.h'
e... | Fix podspec (remove resources reference)
|
diff --git a/LINK/usr/bin/evm_failover_monitor.rb b/LINK/usr/bin/evm_failover_monitor.rb
index abc1234..def5678 100644
--- a/LINK/usr/bin/evm_failover_monitor.rb
+++ b/LINK/usr/bin/evm_failover_monitor.rb
@@ -1,6 +1,6 @@ #!/bin/env ruby
-require_relative '/var/www/miq/vmdb/gems/pending/bundler_setup'
+require 'manage... | Use manageiq-gems-pending gem instead of require_relative
The gems-pending code was moved into a gem, so we cannot use a path
to require the bundler environment anymore.
Requiring the gem directly gives us the same effect.
|
diff --git a/spec/table_spec.rb b/spec/table_spec.rb
index abc1234..def5678 100644
--- a/spec/table_spec.rb
+++ b/spec/table_spec.rb
@@ -4,34 +4,34 @@
before { @table = Table.new(schema_file) }
- it 'find the right count of tables in the schema' do
+ it 'finds the right count of tables in the schema' do
ex... | Fix some typos in spec
|
diff --git a/spec/texas_spec.rb b/spec/texas_spec.rb
index abc1234..def5678 100644
--- a/spec/texas_spec.rb
+++ b/spec/texas_spec.rb
@@ -23,6 +23,12 @@ run_scenario "texasrc"
end
+ it "run scenario for .texasrc with --merge-config and fail" do
+ lambda {
+ run_scenario "texasrc", :merge_conf... | Add failing acceptance test to test --merge-config parameter
|
diff --git a/app/controllers/api/councillors_controller.rb b/app/controllers/api/councillors_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/councillors_controller.rb
+++ b/app/controllers/api/councillors_controller.rb
@@ -1,5 +1,6 @@ class Api::CouncillorsController < ApiController
def index
+... | Add Email Search For API Counctillor
|
diff --git a/spec/controllers/device_tokens_controller_spec.rb b/spec/controllers/device_tokens_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/device_tokens_controller_spec.rb
+++ b/spec/controllers/device_tokens_controller_spec.rb
@@ -5,10 +5,13 @@ let(:user1) { FactoryGirl.create(:user) }
... | Add pending spec for updating user attributes
|
diff --git a/lib/active_crew/backends/inline_backend.rb b/lib/active_crew/backends/inline_backend.rb
index abc1234..def5678 100644
--- a/lib/active_crew/backends/inline_backend.rb
+++ b/lib/active_crew/backends/inline_backend.rb
@@ -4,6 +4,12 @@ class Queue
def size
0
+ end
+
+ d... | Extend inline backend with mock
|
diff --git a/lib/config.rb b/lib/config.rb
index abc1234..def5678 100644
--- a/lib/config.rb
+++ b/lib/config.rb
@@ -5,6 +5,7 @@ class Config
def file_set
Valise::Set.define do
+ ro "."
ro "config/"
ro "~/.timepulse"
ro "~/"
| Add current directory to valise
|
diff --git a/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb b/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb
index abc1234..def5678 100644
--- a/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb
+++ b/buildserver/cookbooks/fdroidbuild-general/recipes/default.rb
@@ -1,5 +1,5 @@
-%... | Add cmake to build server
|
diff --git a/lib/grit/ext/diff.rb b/lib/grit/ext/diff.rb
index abc1234..def5678 100644
--- a/lib/grit/ext/diff.rb
+++ b/lib/grit/ext/diff.rb
@@ -1,5 +1,7 @@ module Grit
class Diff
+ attr_reader :repo
+
def hunks
header_lines.each_with_index
.map { |header, index|
| Make repo attr_reader on Grit::Diff
|
diff --git a/lib/rack/pygments.rb b/lib/rack/pygments.rb
index abc1234..def5678 100644
--- a/lib/rack/pygments.rb
+++ b/lib/rack/pygments.rb
@@ -13,11 +13,11 @@ raise Exception, "Pygmentize is missing"
end
end
-
+
def call(env)
if env["PATH_INFO"] !~ /.*\.css$/
status, headers... | Update to work with current Rack
There isn't a @body instance variable in the part
of the Rack response representing the body. Using
[]#each to yield Strings as per the Rack spec.
|
diff --git a/lib/request_error.rb b/lib/request_error.rb
index abc1234..def5678 100644
--- a/lib/request_error.rb
+++ b/lib/request_error.rb
@@ -1,4 +1,26 @@+# assert_request Rails Plugin
+#
+# (c) Copyright 2007 by West Arete Computing, Inc.
+
module AssertRequest
- # This is the exception that we raise when we find... | Add full documentation for this file.
git-svn-id: 36d0598828eae866924735253b485a592756576c@8096 da5c320b-a5ec-0310-b7f9-e4d854caa1e2
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.