diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/models/user.rb b/app/models/user.rb
index abc1234..def5678 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -4,6 +4,7 @@ has_many :user_votes
has_many :items, through: :user_votes
+ validates :email, presence: true
validates :first_name, presence: true
validates :last_name, pr... | Fix Missing Validation For Email
|
diff --git a/app/models/raid.rb b/app/models/raid.rb
index abc1234..def5678 100644
--- a/app/models/raid.rb
+++ b/app/models/raid.rb
@@ -7,8 +7,16 @@ validates :name, :presence => true
validates :date, :presence => true
validates :account, :presence => true
- validates :requiredLevel, :numericality => { :only_... | Allow nil for required info
|
diff --git a/db/migrate/20130816172913_remove_not_null_constraint_from_references.rb b/db/migrate/20130816172913_remove_not_null_constraint_from_references.rb
index abc1234..def5678 100644
--- a/db/migrate/20130816172913_remove_not_null_constraint_from_references.rb
+++ b/db/migrate/20130816172913_remove_not_null_const... | Remove not null constraint from title and add it to citation
|
diff --git a/test/models/providers_test.rb b/test/models/providers_test.rb
index abc1234..def5678 100644
--- a/test/models/providers_test.rb
+++ b/test/models/providers_test.rb
@@ -0,0 +1,59 @@+require 'test_helper'
+
+class ProvidersTest < ActiveSupport::TestCase
+ test 'create instance with :atnd' do
+ assert_ins... | Create test for `Providers` module
|
diff --git a/mobit.gemspec b/mobit.gemspec
index abc1234..def5678 100644
--- a/mobit.gemspec
+++ b/mobit.gemspec
@@ -14,7 +14,9 @@ spec.homepage = 'https://github.com/rubybeast/mobit'
spec.license = 'MIT'
- spec.files = `git ls-files -z`.split("\x0")
+ spec.files = %w(README.md Rakef... | Clear files included in this gem
|
diff --git a/VENAppSwitchSDK.podspec b/VENAppSwitchSDK.podspec
index abc1234..def5678 100644
--- a/VENAppSwitchSDK.podspec
+++ b/VENAppSwitchSDK.podspec
@@ -9,8 +9,10 @@ s.homepage = "https://github.com/venmo/VENAppSwitchSDK"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Venmo"... | Edit podfile to bump to iOS 6, add social media URL, and add screenshot.
|
diff --git a/test/test_dtrace_multi_provider.rb b/test/test_dtrace_multi_provider.rb
index abc1234..def5678 100644
--- a/test/test_dtrace_multi_provider.rb
+++ b/test/test_dtrace_multi_provider.rb
@@ -0,0 +1,89 @@+#
+# Ruby-Dtrace
+# (c) 2008 Chris Andrews <chris@nodnol.org>
+#
+
+require 'dtrace'
+require 'dtrace/prov... | Fix multiple-providers bug - class variables defining probes weren't being
stored in the correct class...
|
diff --git a/muzak.gemspec b/muzak.gemspec
index abc1234..def5678 100644
--- a/muzak.gemspec
+++ b/muzak.gemspec
@@ -13,4 +13,5 @@ s.homepage = "https://github.com/muzak-project/muzak"
s.license = "MIT"
s.add_runtime_dependency "taglib-ruby", "~> 0.7"
+ s.add_runtime_dependency "mpv", "~> 1.1.0"
end
| gemspec: Add mpv as a runtime dependency.
|
diff --git a/test/markup_renderer_spec.rb b/test/markup_renderer_spec.rb
index abc1234..def5678 100644
--- a/test/markup_renderer_spec.rb
+++ b/test/markup_renderer_spec.rb
@@ -32,4 +32,12 @@ </code></pre>
END_OUTPUT
end
+
+ it "renders quote marks properly" do
+ subject.render(<<END_SOURCE).should == <<END_OUT... | Add a test covering MarkupRenderer's smartyness.
|
diff --git a/tasks/asset_trip.rake b/tasks/asset_trip.rake
index abc1234..def5678 100644
--- a/tasks/asset_trip.rake
+++ b/tasks/asset_trip.rake
@@ -3,4 +3,9 @@ task :bundle => :environment do
AssetTrip.bundle!
end
+
+ desc "Prune assets"
+ task :prune => :environment do
+ AssetTrip.prune!
+ end
end | Add rake task for pruning assets not in the current Manifest
|
diff --git a/tasks/metrics/ci.rake b/tasks/metrics/ci.rake
index abc1234..def5678 100644
--- a/tasks/metrics/ci.rake
+++ b/tasks/metrics/ci.rake
@@ -1,7 +1,7 @@ desc 'Run metrics with Heckle'
-task :ci => [ 'ci:metrics', :heckle ]
+task :ci => %w[ ci:metrics heckle ]
namespace :ci do
desc 'Run metrics'
- task :m... | Change to use a quoted array for the task list
|
diff --git a/config/software/openstack-project.rb b/config/software/openstack-project.rb
index abc1234..def5678 100644
--- a/config/software/openstack-project.rb
+++ b/config/software/openstack-project.rb
@@ -32,4 +32,5 @@ "#{install_dir}/#{name}",
"--system-site-packages"].join(" "), :env => env
command "#... | Add configuration to the omnibus builds
Some of the configurations files that may be needed by the OpenStack
services are not always available from the various config management
solutions, therefore, pull in any configs from the repo itself.
|
diff --git a/config/initializers/alchemy.rb b/config/initializers/alchemy.rb
index abc1234..def5678 100644
--- a/config/initializers/alchemy.rb
+++ b/config/initializers/alchemy.rb
@@ -6,6 +6,7 @@ action: 'index',
name: 'Store',
image: 'alchemy/solidus/alchemy_module_icon.png',
+ data: { turbolinks: fa... | Add data-turbolinks='false' to Solidus Subnav
This adds a `data` key specifying that the Solidus submenu should not
be using Turbolinks. It's harmless with Alchemy versions that don't
support it, and beneficial for ones that do.
|
diff --git a/recipes/agent_windows_install.rb b/recipes/agent_windows_install.rb
index abc1234..def5678 100644
--- a/recipes/agent_windows_install.rb
+++ b/recipes/agent_windows_install.rb
@@ -13,7 +13,7 @@ end
opts = []
-opts << "/SERVERURL=#{autoregister_values[:go_server_url]}"
+opts << "/SERVERURL='#{autoregiste... | Fix GO_SERVER_URL not being set correctly on windows.
|
diff --git a/spec/acceptance/relations_on_lists_spec.rb b/spec/acceptance/relations_on_lists_spec.rb
index abc1234..def5678 100644
--- a/spec/acceptance/relations_on_lists_spec.rb
+++ b/spec/acceptance/relations_on_lists_spec.rb
@@ -0,0 +1,22 @@+require 'kanren/list'
+require 'kanren/micro/goal'
+require 'kanren/micro/... | Add example of list equality
|
diff --git a/spec/rspec/rails/matchers/be_valid_spec.rb b/spec/rspec/rails/matchers/be_valid_spec.rb
index abc1234..def5678 100644
--- a/spec/rspec/rails/matchers/be_valid_spec.rb
+++ b/spec/rspec/rails/matchers/be_valid_spec.rb
@@ -16,11 +16,13 @@ subject.something = "something"
subject.should be_valid
+ ... | Add newfangled syntax to be_valid matcher
|
diff --git a/test/scripts/run_keyed_sale.rb b/test/scripts/run_keyed_sale.rb
index abc1234..def5678 100644
--- a/test/scripts/run_keyed_sale.rb
+++ b/test/scripts/run_keyed_sale.rb
@@ -0,0 +1,37 @@+$:<< "./lib" # uncomment this to run against a Git clone instead of an installed gem
+
+require "paytrace"
+require "paytr... | Check in a simple script showing how to process a sale, and void it.
|
diff --git a/recipes/_defaults.rb b/recipes/_defaults.rb
index abc1234..def5678 100644
--- a/recipes/_defaults.rb
+++ b/recipes/_defaults.rb
@@ -4,10 +4,12 @@ #
unless broker_attribute?(:broker, :id)
+ Chef::Log.warn('Default value for `broker.id` is deprecated and will be removed in the next major version')
nod... | Add deprecation warning for default broker config. |
diff --git a/clearwater.gemspec b/clearwater.gemspec
index abc1234..def5678 100644
--- a/clearwater.gemspec
+++ b/clearwater.gemspec
@@ -18,8 +18,8 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependency 'opal', '~> 0.7.0.beta1'
- spec.add_dependen... | Use release versions of opal and opal-jquery
|
diff --git a/test/compatibility/ancestry_test.rb b/test/compatibility/ancestry_test.rb
index abc1234..def5678 100644
--- a/test/compatibility/ancestry_test.rb
+++ b/test/compatibility/ancestry_test.rb
@@ -5,7 +5,7 @@ ActiveRecord::Migration.create_table("things") do |t|
t.string :name
t.string :slug
- t.intege... | Fix column type and assert conditions
|
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
@@ -1,7 +1,11 @@ require File.join(File.dirname(__FILE__), 'homebrew-php-requirement')
class PhpMetaRequirement ... | Fix php meta requirement to allow for non php56 installs
|
diff --git a/app/controllers/effective/datatables_controller.rb b/app/controllers/effective/datatables_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/effective/datatables_controller.rb
+++ b/app/controllers/effective/datatables_controller.rb
@@ -40,6 +40,8 @@ :data => [],
:recordsTot... | Include empty aggregates and charts in error json
|
diff --git a/app/controllers/api/search_controller.rb b/app/controllers/api/search_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/search_controller.rb
+++ b/app/controllers/api/search_controller.rb
@@ -12,6 +12,6 @@ private
def search_query_params
- params.require(:query).permit(:keywor... | Fix query parameter according to JSON API
|
diff --git a/app/controllers/spree/base_controller.rb b/app/controllers/spree/base_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/spree/base_controller.rb
+++ b/app/controllers/spree/base_controller.rb
@@ -1,7 +1,6 @@ # frozen_string_literal: true
require 'cancan'
-require_dependency 'spree/core/c... | Remove strong parameters and search helpers, they are not used in OFN
|
diff --git a/app/jobs/rails_zero/generate_site_job.rb b/app/jobs/rails_zero/generate_site_job.rb
index abc1234..def5678 100644
--- a/app/jobs/rails_zero/generate_site_job.rb
+++ b/app/jobs/rails_zero/generate_site_job.rb
@@ -2,8 +2,9 @@ class GenerateSiteJob
def run
RailsZero.pages_config.links.each do |p... | Fix capybara in generate site job.
|
diff --git a/app/models/notify_user/apn_connection.rb b/app/models/notify_user/apn_connection.rb
index abc1234..def5678 100644
--- a/app/models/notify_user/apn_connection.rb
+++ b/app/models/notify_user/apn_connection.rb
@@ -1,45 +1,41 @@-class APNConnection
+module NotifyUser
+ class APNConnection
- def initialize... | Put the `APNConnection` class under the `NotifyUser` module.
|
diff --git a/app/serializers/herd/asset_serializer.rb b/app/serializers/herd/asset_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/herd/asset_serializer.rb
+++ b/app/serializers/herd/asset_serializer.rb
@@ -1,7 +1,7 @@ module Herd
class AssetSerializer < ActiveModel::Serializer
attributes :id
... | Add Asset Class to Serializer |
diff --git a/app/controllers/users/invitations_controller.rb b/app/controllers/users/invitations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/users/invitations_controller.rb
+++ b/app/controllers/users/invitations_controller.rb
@@ -1,5 +1,6 @@ class Users::InvitationsController < Devise::Invitation... | Add sidebar to invitations controller
|
diff --git a/spec/github_authorized_keys_spec.rb b/spec/github_authorized_keys_spec.rb
index abc1234..def5678 100644
--- a/spec/github_authorized_keys_spec.rb
+++ b/spec/github_authorized_keys_spec.rb
@@ -0,0 +1,8 @@+require 'spec_helper'
+
+describe GithubAuthorizedKeys do
+ it "complains if the configuration file do... | Add in some specs, not implemented |
diff --git a/config/cronotab.rb b/config/cronotab.rb
index abc1234..def5678 100644
--- a/config/cronotab.rb
+++ b/config/cronotab.rb
@@ -18,4 +18,4 @@ SkyHopper::Application.load_tasks
Crono.perform(Operation_worker).every 30.seconds
-Crono.perform(ServerStateWorker).every 30.seconds
+Crono.perform(ServerStateWorker... | Set ServerStateWorker's interval to 5 mins
|
diff --git a/controller/init.rb b/controller/init.rb
index abc1234..def5678 100644
--- a/controller/init.rb
+++ b/controller/init.rb
@@ -25,8 +25,12 @@ end
realpath = File.realpath('./')
- layout_file = action.layout.to_a[1].to_s.gsub(realpath + '/themes/default/layouts/', '')
- action.view = realp... | Make sure the layout and view file exists before setting it, allows themes to inherit from the default theme.
|
diff --git a/lib/content_dump_loader.rb b/lib/content_dump_loader.rb
index abc1234..def5678 100644
--- a/lib/content_dump_loader.rb
+++ b/lib/content_dump_loader.rb
@@ -1,3 +1,6 @@+require "csv"
+require "zlib"
+
module ContentDumpLoader
ContentItem = Struct.new(:base_path,
:content_id,
| Add explicit requires for csv and zlib
For some reason these were not being automatically required on
integration.
|
diff --git a/cloudbit_client.gemspec b/cloudbit_client.gemspec
index abc1234..def5678 100644
--- a/cloudbit_client.gemspec
+++ b/cloudbit_client.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_runtime_dependency 'rest_client'
+ ... | Fix rest_client dependency in gemspec.
|
diff --git a/spec/em-rtmp/connect_request_spec.rb b/spec/em-rtmp/connect_request_spec.rb
index abc1234..def5678 100644
--- a/spec/em-rtmp/connect_request_spec.rb
+++ b/spec/em-rtmp/connect_request_spec.rb
@@ -15,12 +15,6 @@ request.parameters[:app].should eql "some_app"
end
- it 'should use the parameters as ... | Remove broken spec from adding overhead headers |
diff --git a/spec/models/property_element_spec.rb b/spec/models/property_element_spec.rb
index abc1234..def5678 100644
--- a/spec/models/property_element_spec.rb
+++ b/spec/models/property_element_spec.rb
@@ -18,7 +18,7 @@ describe 'callbacks' do
it 'sets is_active as true' do
- image = File.new(Rails.ro... | Move image file to public folder.
|
diff --git a/lib/spanx/notifier/base.rb b/lib/spanx/notifier/base.rb
index abc1234..def5678 100644
--- a/lib/spanx/notifier/base.rb
+++ b/lib/spanx/notifier/base.rb
@@ -10,18 +10,19 @@
protected
- def generate_block_ip_message(blocked_ip)
- violated_period = blocked_ip.period_check
- ... | Return error message when `host` command is not found in PATH |
diff --git a/lib/testjour/http_queue.rb b/lib/testjour/http_queue.rb
index abc1234..def5678 100644
--- a/lib/testjour/http_queue.rb
+++ b/lib/testjour/http_queue.rb
@@ -11,7 +11,7 @@ end
def self.redis
- @redis ||= Redis.new
+ @redis ||= Redis.new(:db => 11)
end
def redis
| Use a different Redis DB so it's not affected by our hook to flush all our keys
|
diff --git a/cookbooks/cumulus/test/integration/default/serverspec/license_spec.rb b/cookbooks/cumulus/test/integration/default/serverspec/license_spec.rb
index abc1234..def5678 100644
--- a/cookbooks/cumulus/test/integration/default/serverspec/license_spec.rb
+++ b/cookbooks/cumulus/test/integration/default/serverspec... | Update test to reflect setup changes
Fix the test to reflect the changes made to the test setup cookbook
|
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -1,14 +1,21 @@ class SearchController < ApplicationController
+ TYPE_ORDER = %w[
+ issue
+ topic
+ rep... | Fix order of result groups.
|
diff --git a/app/models/restaurant/ernst_young.rb b/app/models/restaurant/ernst_young.rb
index abc1234..def5678 100644
--- a/app/models/restaurant/ernst_young.rb
+++ b/app/models/restaurant/ernst_young.rb
@@ -0,0 +1,13 @@+# frozen_string_literal: true
+
+require 'open-uri'
+
+module Restaurant
+ class ErnstYoung < Bas... | Add Ernst & Young restaurant
|
diff --git a/app/models/spree/gateway/usa_epay.rb b/app/models/spree/gateway/usa_epay.rb
index abc1234..def5678 100644
--- a/app/models/spree/gateway/usa_epay.rb
+++ b/app/models/spree/gateway/usa_epay.rb
@@ -3,8 +3,6 @@ preference :source_key, :string
preference :pin, :string
- attr_accessible :preferred... | Update for Rails 4 compatibility
|
diff --git a/customerio.gemspec b/customerio.gemspec
index abc1234..def5678 100644
--- a/customerio.gemspec
+++ b/customerio.gemspec
@@ -20,7 +20,7 @@
gem.add_development_dependency('rake', '~> 10.5')
gem.add_development_dependency('rspec', '3.3.0')
- gem.add_development_dependency('webmock', '1.24.2')
+ gem.a... | Upgrade webmock and switch cache again, this time to gemspec
|
diff --git a/spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb b/spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/edge_gateway/configure_edge_gateway_services_spec.rb
+++ b/spec/integration/edge_gateway/configure_edge_gateway_... | Improve grammar in test description
|
diff --git a/test/spec/net/authorization_spec.rb b/test/spec/net/authorization_spec.rb
index abc1234..def5678 100644
--- a/test/spec/net/authorization_spec.rb
+++ b/test/spec/net/authorization_spec.rb
@@ -1,7 +1,7 @@ describe Net::Authorization do
context "Invalid params" do
it "expects valid token or basic par... | Fix Authorization specs in Android.
|
diff --git a/eway_rapid.gemspec b/eway_rapid.gemspec
index abc1234..def5678 100644
--- a/eway_rapid.gemspec
+++ b/eway_rapid.gemspec
@@ -19,8 +19,8 @@ spec.add_dependency 'json', '~> 2.1.0'
spec.add_dependency 'rest-client', '~> 2.0'
- spec.add_development_dependency 'bundler', '~> 1.17'
- spec.add_development... | Test removing dev dependency versions
|
diff --git a/examples/config.ru b/examples/config.ru
index abc1234..def5678 100644
--- a/examples/config.ru
+++ b/examples/config.ru
@@ -22,14 +22,31 @@ get '/auth/failure' do
MultiJson.encode(request.env)
end
+
+ get '/refresh_token' do
+ client_id = ENV['CONSUMER_KEY']
+ client_secret = ENV['CONSUMER... | Add refresh token url to example
|
diff --git a/config/initializers/connection_fix.rb b/config/initializers/connection_fix.rb
index abc1234..def5678 100644
--- a/config/initializers/connection_fix.rb
+++ b/config/initializers/connection_fix.rb
@@ -20,7 +20,7 @@ execute_without_retry(*args)
rescue ActiveRecord::StatementInvalid => e
... | Update warn message for MySQL fix |
diff --git a/config/initializers/login_settings.rb b/config/initializers/login_settings.rb
index abc1234..def5678 100644
--- a/config/initializers/login_settings.rb
+++ b/config/initializers/login_settings.rb
@@ -27,7 +27,7 @@
def to_lock_json(callback_url, options={})
lock_json
- .merge(callbackURL: callba... | Remove responseType from lock_json api
|
diff --git a/config/initializers/action_mailer.rb b/config/initializers/action_mailer.rb
index abc1234..def5678 100644
--- a/config/initializers/action_mailer.rb
+++ b/config/initializers/action_mailer.rb
@@ -7,6 +7,5 @@ am_config.smtp_settings ||= {}
am_config.smtp_settings[:enable_starttls_auto] = true if am_con... | Remove defaulting tls to true for actionmailer |
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb
index abc1234..def5678 100644
--- a/config/initializers/session_store.rb
+++ b/config/initializers/session_store.rb
@@ -1,9 +1,9 @@ # Be sure to restart your server when you modify this file.
options = if Rails.env.production?
-... | Revert "Fix cookie domain problems by specifying domains manually"
This reverts commit b229309ebfe80fec0c071bdf483c2a53e4e9a4c3.
|
diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb
index abc1234..def5678 100644
--- a/config/initializers/session_store.rb
+++ b/config/initializers/session_store.rb
@@ -1,6 +1,9 @@ SERVICE_DOMAIN = (url = ENV['SERVICE_URL']) ? URI.parse(url).host : nil
-{key: 'pvbs', expire_aft... | Make session configuration look like normal code.
It was distractingly weird and almost incomprehensible.
|
diff --git a/statistics.rb b/statistics.rb
index abc1234..def5678 100644
--- a/statistics.rb
+++ b/statistics.rb
@@ -0,0 +1,37 @@+#!/usr/bin/env ruby
+
+require 'pp'
+require 'rdf/raptor'
+require 'linkeddata'
+require 'rdf'
+require 'rdf/turtle'
+require 'rdf-lemon'
+require 'nokogiri'
+require 'pry'
+
+statistics = H... | Add the "Table 5" script
|
diff --git a/lib/doorkeeper/orm/active_record.rb b/lib/doorkeeper/orm/active_record.rb
index abc1234..def5678 100644
--- a/lib/doorkeeper/orm/active_record.rb
+++ b/lib/doorkeeper/orm/active_record.rb
@@ -25,11 +25,12 @@ Doorkeeper::Application.table_name
)
unless Doorkeeper::Applica... | Check should not abort the actual migration
So we allow for the migration to run.
|
diff --git a/lib/middleman/graphviz/extension.rb b/lib/middleman/graphviz/extension.rb
index abc1234..def5678 100644
--- a/lib/middleman/graphviz/extension.rb
+++ b/lib/middleman/graphviz/extension.rb
@@ -2,7 +2,6 @@
module Middleman
module Graphviz
- cattr_accessor :options
class Extension < Middleman::... | Fix middleman-graphviz on my Mac
Couldn't find any other instances of cattr_accessor :options in other middleman modules, so I commented it out and it worked OK. |
diff --git a/lib/puppet/type/jboss_confignode.rb b/lib/puppet/type/jboss_confignode.rb
index abc1234..def5678 100644
--- a/lib/puppet/type/jboss_confignode.rb
+++ b/lib/puppet/type/jboss_confignode.rb
@@ -21,6 +21,13 @@ newproperty(:properties) do
desc "Additional properties for node"
defaultto {}
+
+ d... | Fix for displaying changes with clientry
|
diff --git a/lib/recipes/deployment/migration.rb b/lib/recipes/deployment/migration.rb
index abc1234..def5678 100644
--- a/lib/recipes/deployment/migration.rb
+++ b/lib/recipes/deployment/migration.rb
@@ -27,8 +27,8 @@ else raise ArgumentError, "unknown migration target #{migrate_target.inspect}"
end
... | Use bundle exec when running rake db:migrate |
diff --git a/lib/relish/commands/push_command.rb b/lib/relish/commands/push_command.rb
index abc1234..def5678 100644
--- a/lib/relish/commands/push_command.rb
+++ b/lib/relish/commands/push_command.rb
@@ -20,6 +20,9 @@ resource = RestClient::Resource.new(url)
resource.post(tar_gz_data, :content_type =>... | Read API token from disk
|
diff --git a/lib/rrj/tools/gem/janus_instance.rb b/lib/rrj/tools/gem/janus_instance.rb
index abc1234..def5678 100644
--- a/lib/rrj/tools/gem/janus_instance.rb
+++ b/lib/rrj/tools/gem/janus_instance.rb
@@ -0,0 +1,38 @@+# frozen_string_literal: true
+
+module RubyRabbitmqJanus
+ module Tools
+ # @author VAILLANT Jere... | Add mongoid model for saving instance with session number
|
diff --git a/cookbooks/chef/attributes/default.rb b/cookbooks/chef/attributes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/chef/attributes/default.rb
+++ b/cookbooks/chef/attributes/default.rb
@@ -5,4 +5,4 @@ default[:chef][:server][:version] = "12.0.8-1"
# Set the default client version
-default[:chef][... | Update chef client to 12.9.41
|
diff --git a/lib/trawler/sources/json_fetcher.rb b/lib/trawler/sources/json_fetcher.rb
index abc1234..def5678 100644
--- a/lib/trawler/sources/json_fetcher.rb
+++ b/lib/trawler/sources/json_fetcher.rb
@@ -12,7 +12,7 @@ def get(url, &error_block)
error_block ||= -> r { raise "Fetch of #{url} failed. #... | Clean credentials in logged URL message
|
diff --git a/tty-screen.gemspec b/tty-screen.gemspec
index abc1234..def5678 100644
--- a/tty-screen.gemspec
+++ b/tty-screen.gemspec
@@ -18,6 +18,8 @@ spec.test_files = spec.files.grep(%r{^(spec)/})
spec.require_paths = ["lib"]
+ spec.required_ruby_version = '>= 2.0.0'
+
spec.add_development_dependency 'b... | Change to enforce ruby 2.0
|
diff --git a/lib/github.rb b/lib/github.rb
index abc1234..def5678 100644
--- a/lib/github.rb
+++ b/lib/github.rb
@@ -0,0 +1,44 @@+require 'retries'
+require 'octokit'
+
+module Provider
+ # GitHub SSH public key provider
+ class GitHub
+ # @param [Hash] options GitHub credentials for Octokit::Client
+ # @option... | Add GitHub provider for getting SSH keys
|
diff --git a/lib/generators/link_to_action/install_generator.rb b/lib/generators/link_to_action/install_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/link_to_action/install_generator.rb
+++ b/lib/generators/link_to_action/install_generator.rb
@@ -1,7 +1,7 @@ require 'rails/generators'
require 'rails/... | Fix plural -> singular for generator.
|
diff --git a/lib/scoped_search/oracle_enhanced.rb b/lib/scoped_search/oracle_enhanced.rb
index abc1234..def5678 100644
--- a/lib/scoped_search/oracle_enhanced.rb
+++ b/lib/scoped_search/oracle_enhanced.rb
@@ -1,4 +1,5 @@ require "scoped_search"
+require "scoped_search/oracle_enhanced/version"
module ScopedSearch
| Make sure VERSION constant is loaded
|
diff --git a/lib/smartystreets_ruby_sdk/errors.rb b/lib/smartystreets_ruby_sdk/errors.rb
index abc1234..def5678 100644
--- a/lib/smartystreets_ruby_sdk/errors.rb
+++ b/lib/smartystreets_ruby_sdk/errors.rb
@@ -11,7 +11,7 @@ REQUEST_ENTITY_TOO_LARGE = 'Request Entity Too Large: The request body has exceeded the maximum... | Revert "Added more to the Bad Request error message to help people debug easier."
This reverts commit dffa9fb73e0cd432be8439e304b5695aae5a4ac6.
|
diff --git a/lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb b/lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb
index abc1234..def5678 100644
--- a/lib/active_merchant/billing/gateways/paypal/paypal_express_response.rb
+++ b/lib/active_merchant/billing/gateways/paypal/paypal... | Use proper name in paypal express response address
|
diff --git a/features/step_definitions/setup_steps.rb b/features/step_definitions/setup_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/setup_steps.rb
+++ b/features/step_definitions/setup_steps.rb
@@ -1,5 +1,5 @@ Given /^the application is set up$/ do
- # Using smackaho.st to give us automatic ... | Use lvh.me instead of now-defunct smackaho.st.
|
diff --git a/ruby/unlucky_days.rb b/ruby/unlucky_days.rb
index abc1234..def5678 100644
--- a/ruby/unlucky_days.rb
+++ b/ruby/unlucky_days.rb
@@ -0,0 +1,24 @@+require "date"
+
+def unlucky_days(year)
+ dates = get_dates(year)
+
+ results = 0
+ dates.each do |date|
+ results += 1 if date.friday? && date.day == 13
+ end
... | Write okay solution for unlucky days
|
diff --git a/app/controllers/books_controller.rb b/app/controllers/books_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/books_controller.rb
+++ b/app/controllers/books_controller.rb
@@ -1,5 +1,5 @@ class BooksController < ApplicationController
- before_action do
+ before_action except: [:index] do
... | Add log-in exception for books index
|
diff --git a/app/controllers/drops_controller.rb b/app/controllers/drops_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/drops_controller.rb
+++ b/app/controllers/drops_controller.rb
@@ -1,5 +1,9 @@
class DropsController < ApplicationController
+
+ def new
+ @drop = Drop.new
+ end
def show... | Add new action for drop
|
diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/search_controller.rb
+++ b/app/controllers/search_controller.rb
@@ -1,8 +1,12 @@ class SearchController < ApplicationController
def search
- @query = Query.new(params[:query... | Use strong parameters for search
|
diff --git a/app/controllers/index_controller.rb b/app/controllers/index_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/index_controller.rb
+++ b/app/controllers/index_controller.rb
@@ -8,32 +8,32 @@ response = RestClient.get("https://www.inaturalist.org/observations.json")
parsed_response = JSO... | Refactor controller to call private methods; leaner request
|
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/pages_controller.rb
+++ b/app/controllers/pages_controller.rb
@@ -11,9 +11,11 @@ def faq
@cart = current_cart
end
+
+ def delivery
+ @cart = current_cart
+ end
... | Add method for delivery page
|
diff --git a/app/models/concerns/with_metadata.rb b/app/models/concerns/with_metadata.rb
index abc1234..def5678 100644
--- a/app/models/concerns/with_metadata.rb
+++ b/app/models/concerns/with_metadata.rb
@@ -6,11 +6,7 @@
validates_presence_of :metadata
- delegate :student?, :admin?, to: :metadata
-
- def... | Revert "Quick teacher exam fix"
This reverts commit 88a0dd8842fc4046a3b572432468737773d97b90.
|
diff --git a/app/helpers/spree/reviews_helper.rb b/app/helpers/spree/reviews_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/spree/reviews_helper.rb
+++ b/app/helpers/spree/reviews_helper.rb
@@ -1,7 +1,7 @@ module Spree::ReviewsHelper
def star(the_class)
- "<span class=\"#{the_class}\"> ✮ </spa... | Use helpers instead of html in helper, interpolate strings instead of concat
|
diff --git a/features/support/database_cleaner.rb b/features/support/database_cleaner.rb
index abc1234..def5678 100644
--- a/features/support/database_cleaner.rb
+++ b/features/support/database_cleaner.rb
@@ -2,7 +2,7 @@ require 'database_cleaner'
require 'database_cleaner/cucumber'
-DB_URI = 'sqlite://gateway/data/... | Use FigNetwon for test database location
|
diff --git a/examples/multi_select_paged.rb b/examples/multi_select_paged.rb
index abc1234..def5678 100644
--- a/examples/multi_select_paged.rb
+++ b/examples/multi_select_paged.rb
@@ -0,0 +1,9 @@+# encoding: utf-8
+
+require 'tty-prompt'
+
+prompt = TTY::Prompt.new
+
+alfabet = ('A'..'Z').to_a
+
+prompt.multi_select('... | Add multi select paged example.
|
diff --git a/spec/rails_app/config/initializers/secret_token.rb b/spec/rails_app/config/initializers/secret_token.rb
index abc1234..def5678 100644
--- a/spec/rails_app/config/initializers/secret_token.rb
+++ b/spec/rails_app/config/initializers/secret_token.rb
@@ -4,4 +4,9 @@ # If you change this key, all old signed co... | Address Rails 5.2 deprecation warning in specs
|
diff --git a/wkhtmltopdf-old.rb b/wkhtmltopdf-old.rb
index abc1234..def5678 100644
--- a/wkhtmltopdf-old.rb
+++ b/wkhtmltopdf-old.rb
@@ -6,8 +6,6 @@ sha256 'e6311c0d398d50c757d43d34f1f63c4b33010441e97d07e92647542419ab1a8b'
depends_on 'qt'
-
- conflicts_with 'wkhtmltopdf', :because => 'Same binary'
def inst... | Remove line that made install failing
|
diff --git a/spec/api/api_spec.rb b/spec/api/api_spec.rb
index abc1234..def5678 100644
--- a/spec/api/api_spec.rb
+++ b/spec/api/api_spec.rb
@@ -31,17 +31,17 @@ it 'posts job on queue' do
queue.stub(:push) { nil }
- post '/jobs', JSON.dump({
+ attributes = {
type: 'image',
... | Extend spec to test reference support.
|
diff --git a/spec/default_spec.rb b/spec/default_spec.rb
index abc1234..def5678 100644
--- a/spec/default_spec.rb
+++ b/spec/default_spec.rb
@@ -1,10 +1,36 @@ describe 'dotnetframework::default' do
-
- let(:chef_run) do
- ChefSpec::ServerRunner.new.converge(described_recipe)
+ describe '.NET is not installed' do
+... | Fix ChefSpec failures from new idempotence check
- Add ChefSpec test case for .NET already being installed
- Add ChefSpec test to ensure windows_reboot is properly notified
|
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index abc1234..def5678 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -11,7 +11,7 @@ require 'capybara/rails'
WebMock.disable_net_connect!(allow_localhost: true)
-Capybara.javascript_driver = :chrome
+Capybara.javascript_driver = :headless_chr... | Put it back into headless mode
|
diff --git a/spec/support/http.rb b/spec/support/http.rb
index abc1234..def5678 100644
--- a/spec/support/http.rb
+++ b/spec/support/http.rb
@@ -51,6 +51,8 @@
def try_catch
yield
+ rescue RestClient::SSLCertificateNotVerified
+ raise
rescue RestClient::Exception => e
e.response
end
| Improve error reporting in system tests
|
diff --git a/lib/jekyll/assets/plugins/proxy/optim.rb b/lib/jekyll/assets/plugins/proxy/optim.rb
index abc1234..def5678 100644
--- a/lib/jekyll/assets/plugins/proxy/optim.rb
+++ b/lib/jekyll/assets/plugins/proxy/optim.rb
@@ -8,14 +8,8 @@ module Assets
module Plugins
class ImageOptim < Proxy
+ conte... | Use a regexp for the content type.
|
diff --git a/lib/tasks/export_local_transactions.rake b/lib/tasks/export_local_transactions.rake
index abc1234..def5678 100644
--- a/lib/tasks/export_local_transactions.rake
+++ b/lib/tasks/export_local_transactions.rake
@@ -0,0 +1,15 @@+desc "Export Local Transactions' slugs, names, LGSL and optional LGIL codes as CSV... | Add a rake task to generate a CSV of Local Transactions
- Generates a CSV of the form "slug","lgsl","lgil","title".
- This might need to be done again in future, and across environments,
hence the rake task.
|
diff --git a/lib/three_seventy_api/helpers/request.rb b/lib/three_seventy_api/helpers/request.rb
index abc1234..def5678 100644
--- a/lib/three_seventy_api/helpers/request.rb
+++ b/lib/three_seventy_api/helpers/request.rb
@@ -14,7 +14,7 @@ end
def put(path, payload)
begin
- response = clie... | Add to_json to payload object.
|
diff --git a/Casks/wuala.rb b/Casks/wuala.rb
index abc1234..def5678 100644
--- a/Casks/wuala.rb
+++ b/Casks/wuala.rb
@@ -4,7 +4,7 @@
url 'https://cdn.wuala.com/files/WualaInstaller.dmg'
name 'Wuala'
- homepage 'http://wuala.com'
+ homepage 'https://www.wuala.com/'
license :unknown # todo: change license ... | Fix homepage to use SSL in Wuala 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/app/models/concerns/content_type.rb b/app/models/concerns/content_type.rb
index abc1234..def5678 100644
--- a/app/models/concerns/content_type.rb
+++ b/app/models/concerns/content_type.rb
@@ -1,6 +1,10 @@ module Concerns
module ContentType
extend ActiveSupport::Concern
+
+ included do
+ aft... | Make sure content types update their column.
|
diff --git a/lib/spontaneous/rack/back/changes.rb b/lib/spontaneous/rack/back/changes.rb
index abc1234..def5678 100644
--- a/lib/spontaneous/rack/back/changes.rb
+++ b/lib/spontaneous/rack/back/changes.rb
@@ -20,5 +20,10 @@ site.rerender
json({})
end
+
+ post '/rerender' do
+ site.rerender
+ ... | Add a 'rerender' command to the publish dialogue
which is a developer-only feature that allows the public site to be re-rendered using the current published content to pick up any template/asset changes
|
diff --git a/lib/tasks/fix_dangling_projects.rake b/lib/tasks/fix_dangling_projects.rake
index abc1234..def5678 100644
--- a/lib/tasks/fix_dangling_projects.rake
+++ b/lib/tasks/fix_dangling_projects.rake
@@ -0,0 +1,20 @@+desc 'Removes projects with missing owners'
+task :fix_dangling_projects do
+ [User, Group].each ... | Add task which fixes dangling projects
|
diff --git a/app/views/projects/show.rss.builder b/app/views/projects/show.rss.builder
index abc1234..def5678 100644
--- a/app/views/projects/show.rss.builder
+++ b/app/views/projects/show.rss.builder
@@ -1,6 +1,6 @@ xml.rss({:version => "2.0"}) do
xml.channel do
- xml.title("Square Build Server RSS Feed")
+ x... | Remove 'Square' from the title of the RSS feed
|
diff --git a/spec/helpers/application_helper/buttons/host_introspect_provide_spec.rb b/spec/helpers/application_helper/buttons/host_introspect_provide_spec.rb
index abc1234..def5678 100644
--- a/spec/helpers/application_helper/buttons/host_introspect_provide_spec.rb
+++ b/spec/helpers/application_helper/buttons/host_in... | Fix rspec expectation set on nil warning
|
diff --git a/ffi/spec_helper.rb b/ffi/spec_helper.rb
index abc1234..def5678 100644
--- a/ffi/spec_helper.rb
+++ b/ffi/spec_helper.rb
@@ -14,8 +14,10 @@
if need_to_compile_fixtures?
puts "[!] Compiling Ruby-FFI fixtures"
- unless system("make -f #{File.join(FIXTURE_DIR, 'GNUmakefile')}")
- raise "Fail... | Make sure the Ruby-FFI fixtures are compiled regardless of the current working directory.
|
diff --git a/app/forms/dataset_edit_form.rb b/app/forms/dataset_edit_form.rb
index abc1234..def5678 100644
--- a/app/forms/dataset_edit_form.rb
+++ b/app/forms/dataset_edit_form.rb
@@ -18,9 +18,9 @@ if valid?
previous = dataset.editable_attributes.as_json
commit = dataset.commits.build
- item = E... | Fix dataset edit form by Nora
|
diff --git a/app/helpers/sessions_helper.rb b/app/helpers/sessions_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/sessions_helper.rb
+++ b/app/helpers/sessions_helper.rb
@@ -1,22 +1,14 @@ module SessionsHelper
def sign_in(user)
- remember_token = User.new_remember_token
- cookies.permanent[remem... | Handle sign in with the session method
The recomended in method with an authentication token did not work,
therefore I used the sign in method. I still have to check why it
wasn't working, I do not yet understand how the sign in method works.
|
diff --git a/app/controllers/region_controller.rb b/app/controllers/region_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/region_controller.rb
+++ b/app/controllers/region_controller.rb
@@ -7,6 +7,7 @@ private
def load_vars
+ params[:iso]!="GL" or raise_404
@region = Region.where(iso: ... | Revert commit to restore raise_404 if region ISO is GL
|
diff --git a/app/services/mailchimp_subscriber.rb b/app/services/mailchimp_subscriber.rb
index abc1234..def5678 100644
--- a/app/services/mailchimp_subscriber.rb
+++ b/app/services/mailchimp_subscriber.rb
@@ -7,11 +7,15 @@
def subscribe(school, user)
list = @mailchimp_api.list_with_interests
- config = mail... | Fix error handling and update user types
|
diff --git a/spec/features/test_an_answer_spec.rb b/spec/features/test_an_answer_spec.rb
index abc1234..def5678 100644
--- a/spec/features/test_an_answer_spec.rb
+++ b/spec/features/test_an_answer_spec.rb
@@ -0,0 +1,59 @@+require 'rails_helper'
+
+describe "Test an answer", type: :feature, js: true do
+ let(:user) { c... | Create tests to 'test an answer' feature
|
diff --git a/spec/middlewares/raise_error_spec.rb b/spec/middlewares/raise_error_spec.rb
index abc1234..def5678 100644
--- a/spec/middlewares/raise_error_spec.rb
+++ b/spec/middlewares/raise_error_spec.rb
@@ -1,14 +1,44 @@ require "spec_helper"
describe BaseCRM::Middlewares::RaiseError do
+ before { @raise_error = ... | Test for error without content or non json content
|
diff --git a/pages/lib/brightcontent/pages/methods.rb b/pages/lib/brightcontent/pages/methods.rb
index abc1234..def5678 100644
--- a/pages/lib/brightcontent/pages/methods.rb
+++ b/pages/lib/brightcontent/pages/methods.rb
@@ -2,7 +2,7 @@ module Pages
module Methods
def current_page
- @current_page |... | Raise if page not found
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.