diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -5,31 +5,20 @@ # Auditorium.create(movietheater_id: 1)
# Seats belong to an auditorium
-Auditorium.create(movietheater_id: 1)
+# 10.times do
+# Seat.create(
+# auditorium_id: 1,
+# ... | Add seed data for seats for each auditorium.
|
diff --git a/db/seeds.rb b/db/seeds.rb
index abc1234..def5678 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -8,9 +8,18 @@
require 'net/http'
require 'uri'
+require 'json'
def open(url)
Net::HTTP.get(URI.parse(url))
end
-page_content = open('http://data.cityofnewyork.us/resource/n3p6-zve2.json')+page_content... | Add call to socrata open data API to create school seed data
|
diff --git a/lib/sandbox_event.rb b/lib/sandbox_event.rb
index abc1234..def5678 100644
--- a/lib/sandbox_event.rb
+++ b/lib/sandbox_event.rb
@@ -1,4 +1,4 @@ class SandboxEvent < ActiveRecord::Base
self.table_name = "atomic.events"
- establish_connection("redshift_sandbox")
- end+ establish_connection(ENV[... | Support overriding of sandbox database via ENV var
|
diff --git a/lib/controls/id.rb b/lib/controls/id.rb
index abc1234..def5678 100644
--- a/lib/controls/id.rb
+++ b/lib/controls/id.rb
@@ -9,7 +9,7 @@
third_prefix = ['8', '9', 'A', 'B'].sample
- "#{first_octet}-4000-#{third_prefix}000-0000-000000000000"
+ "#{first_octet}-0000-4000-#{third_prefix}000-... | Swap second and third octets
|
diff --git a/lib/versatile_rjs.rb b/lib/versatile_rjs.rb
index abc1234..def5678 100644
--- a/lib/versatile_rjs.rb
+++ b/lib/versatile_rjs.rb
@@ -7,9 +7,24 @@ require 'versatile_rjs/railtie'
module VersatileRJS
- VERSION = '0.0.2'
+ VERSION = '0.1.0'
class <<self
attr_accessor :javascript_framework, :debu... | Add alias debug_rjs? / implementation_class_of method
|
diff --git a/scan.rb b/scan.rb
index abc1234..def5678 100644
--- a/scan.rb
+++ b/scan.rb
@@ -0,0 +1,102 @@+#!/usr/bin/ruby
+
+##require 'rubygems'
+require 'sinatra'
+
+## Configuration
+SCANWEB_HOME = File.dirname(__FILE__)
+SCRIPT_FILE = SCANWEB_HOME + "/scan.sh"
+OUTPUT_DIR = '/export/work/scan'
+#OUTPUT_DIR = 'c:/t... | Set the port to 10080.
|
diff --git a/test/unit/types/integer_range_type_test.rb b/test/unit/types/integer_range_type_test.rb
index abc1234..def5678 100644
--- a/test/unit/types/integer_range_type_test.rb
+++ b/test/unit/types/integer_range_type_test.rb
@@ -5,18 +5,22 @@ assert_equal [4, 5], type.encode(4..5)
assert_equal [4, nil], ty... | Add a few more edge case tests.
1) Because ruby supports max..min style ranges, some fiddling is
necessary.
2) Ensure that [nil, nil] is handled. This is a valid postgres range
that could be decoded
|
diff --git a/marpa.rb b/marpa.rb
index abc1234..def5678 100644
--- a/marpa.rb
+++ b/marpa.rb
@@ -2,16 +2,17 @@
class Marpa
attr_accessor :chart, :source, :state_machine, :state_size
- attr_accessor :previous_chart
+ attr_accessor :previous_chart, :charts
def initialize grammar
@state_machine = StateMac... | Save all charts in an array.
|
diff --git a/places/social_stream-places.gemspec b/places/social_stream-places.gemspec
index abc1234..def5678 100644
--- a/places/social_stream-places.gemspec
+++ b/places/social_stream-places.gemspec
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
s.name = "social_stream-places"
s.version = SocialStream::Places::V... | Remove tilde from Carolina's last name
|
diff --git a/lib/git_crecord.rb b/lib/git_crecord.rb
index abc1234..def5678 100644
--- a/lib/git_crecord.rb
+++ b/lib/git_crecord.rb
@@ -7,7 +7,7 @@ def self.main(argv)
if argv.include?('--version')
puts VERSION
- 0
+ true
else
run
end
@@ -20,7 +20,7 @@ return false if fil... | Use booleans as return-values of the program
|
diff --git a/lib/tescha/pack.rb b/lib/tescha/pack.rb
index abc1234..def5678 100644
--- a/lib/tescha/pack.rb
+++ b/lib/tescha/pack.rb
@@ -19,28 +19,29 @@
if __FILE__ == $PROGRAM_NAME
require 'tescha/meta_test'
+ include Tescha
- instance_in_test = Tescha::Pack.new 'An empty test pack' do
+ instance_in_test = P... | Delete some verbose expressions in spec
|
diff --git a/lib/tracker_api.rb b/lib/tracker_api.rb
index abc1234..def5678 100644
--- a/lib/tracker_api.rb
+++ b/lib/tracker_api.rb
@@ -27,6 +27,7 @@ autoload :Project, 'tracker_api/endpoints/project'
autoload :Projects, 'tracker_api/endpoints/projects'
autoload :Stories, 'tracker_api/endpoints/stories'
... | Add Story Endpoint to Endpoints module declaration
While attempting to call ```.story([id])``` on a project object, received error:
> NameError: uninitialized constant Tracker::Endpoints::Story
Found we weren't actually including that endpoint. =) |
diff --git a/lib/travis/logs.rb b/lib/travis/logs.rb
index abc1234..def5678 100644
--- a/lib/travis/logs.rb
+++ b/lib/travis/logs.rb
@@ -34,7 +34,7 @@
def version
@version ||=
- `git rev-parse HEAD 2>/dev/null || echo ${SOURCE_VERSION:-fafafaf}`.strip
+ `git rev-parse HEAD 2>/dev/null... | Switch to env var with correct deployed version
|
diff --git a/actioncable/test/test_helper.rb b/actioncable/test/test_helper.rb
index abc1234..def5678 100644
--- a/actioncable/test/test_helper.rb
+++ b/actioncable/test/test_helper.rb
@@ -4,7 +4,6 @@ require "active_support/testing/autorun"
require "puma"
-require "mocha/minitest"
require "rack/mock"
begin
| Remove mocha from ActionCable tests
Q.E.D.
|
diff --git a/test/unit/recipes/default_spec.rb b/test/unit/recipes/default_spec.rb
index abc1234..def5678 100644
--- a/test/unit/recipes/default_spec.rb
+++ b/test/unit/recipes/default_spec.rb
@@ -2,7 +2,7 @@
describe 'g5-rbenv::default' do
let(:chef_run) do
- ChefSpec::Runner.new do |node|
+ ChefSpec::SoloR... | Update unit tests for latest ChefSpec
|
diff --git a/at_most.gemspec b/at_most.gemspec
index abc1234..def5678 100644
--- a/at_most.gemspec
+++ b/at_most.gemspec
@@ -8,14 +8,13 @@ spec.version = AtMost::VERSION
spec.authors = ["Kristian Freeman"]
spec.email = ["kristian@kristianfreeman.com"]
- spec.description = %q{TODO: Write a... | Update Gemspec, getting prepared for version 0.0.1 release
|
diff --git a/hive-runner-android.gemspec b/hive-runner-android.gemspec
index abc1234..def5678 100644
--- a/hive-runner-android.gemspec
+++ b/hive-runner-android.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = 'hive-runner-android'
- s.version = '1.1.2'
+ s.version = '1.1.3'
s.date ... | Use hive-runner 2.0.5 or greater
|
diff --git a/spec/octocatalog-diff/integration/examples_spec.rb b/spec/octocatalog-diff/integration/examples_spec.rb
index abc1234..def5678 100644
--- a/spec/octocatalog-diff/integration/examples_spec.rb
+++ b/spec/octocatalog-diff/integration/examples_spec.rb
@@ -0,0 +1,60 @@+# frozen_string_literal: true
+
+require_r... | Add tests for example settings and example APIv1 catalog builder
|
diff --git a/mayhem-rails.gemspec b/mayhem-rails.gemspec
index abc1234..def5678 100644
--- a/mayhem-rails.gemspec
+++ b/mayhem-rails.gemspec
@@ -18,6 +18,8 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
+ spec.add_runtime_dependency 'mayhem', '0.0.2'
+
spec.a... | Add mayhem gem as a dependency
|
diff --git a/main.rb b/main.rb
index abc1234..def5678 100644
--- a/main.rb
+++ b/main.rb
@@ -2,14 +2,21 @@
$main_info = {};
-proj_list = Dir['/home/ethan/games/kerbal/CKAN-meta/*']
+ckan_dir = '/home/ethan/games/kerbal/CKAN-meta'
-proj_list.each do |proj|
- versions = Dir["#{proj}/*.ckan"]
- versions.each do |v|
... | Switch to parsing Git history to find CKAN files to read
|
diff --git a/ab/ab.rb b/ab/ab.rb
index abc1234..def5678 100644
--- a/ab/ab.rb
+++ b/ab/ab.rb
@@ -1,11 +1,16 @@ #!/usr/bin/env ruby
-url = 'http://127.0.0.1:4100/articles'
-server = 'unicorn_6'
+server, port = *ARGV
+server ||= 'unamed_server'
+port ||= '3000'
+
+url = "http://127.0.0.1:#{port}/articles"
users = [1, ... | Update script to receive server and port
|
diff --git a/lib/constellation/runner.rb b/lib/constellation/runner.rb
index abc1234..def5678 100644
--- a/lib/constellation/runner.rb
+++ b/lib/constellation/runner.rb
@@ -5,10 +5,9 @@ class Runner < Thor
include Thor::Actions
- @@config = Config.new
-
def initialize(*)
super
+ @config = C... | Change config to an instance variable
|
diff --git a/rb/spec/integration/selenium/webdriver/mouse_spec.rb b/rb/spec/integration/selenium/webdriver/mouse_spec.rb
index abc1234..def5678 100644
--- a/rb/spec/integration/selenium/webdriver/mouse_spec.rb
+++ b/rb/spec/integration/selenium/webdriver/mouse_spec.rb
@@ -26,14 +26,15 @@ text.should == "Dropped... | JariBakken: Add missing wait to double/context click spec.
git-svn-id: aa1aa1384423cb28c2b1e29129bb3a91de1d9196@14055 07704840-8298-11de-bf8c-fd130f914ac9
|
diff --git a/lib/materialize_renderer.rb b/lib/materialize_renderer.rb
index abc1234..def5678 100644
--- a/lib/materialize_renderer.rb
+++ b/lib/materialize_renderer.rb
@@ -0,0 +1,9 @@+class MaterializeRenderer < MaterializePagination::Rails
+
+ # @return [String] rendered pagination link
+ def page_number(page)
+ ... | Create a helper for materialize will paginate gem
|
diff --git a/raygun_client.gemspec b/raygun_client.gemspec
index abc1234..def5678 100644
--- a/raygun_client.gemspec
+++ b/raygun_client.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'raygun_client'
- s.version = '0.2.0.0'
+ s.version = '0.2.0.1'
s.summary = 'Client f... | Package version is increased from 0.2.0.0 to 0.2.0.1
(Changed logging when posting to Raygun is complete)
|
diff --git a/lib/thrift_client/thrift.rb b/lib/thrift_client/thrift.rb
index abc1234..def5678 100644
--- a/lib/thrift_client/thrift.rb
+++ b/lib/thrift_client/thrift.rb
@@ -1,5 +1,15 @@ module Thrift
class BufferedTransport
+ def timeout=(timeout)
+ @transport.timeout = timeout
+ end
+
+ def timeout
+ ... | Add support for specifying client-side timeouts when using FramedTransport |
diff --git a/spec/ehrmagerd/translator_spec.rb b/spec/ehrmagerd/translator_spec.rb
index abc1234..def5678 100644
--- a/spec/ehrmagerd/translator_spec.rb
+++ b/spec/ehrmagerd/translator_spec.rb
@@ -2,8 +2,8 @@
describe Ehrmagerd::Translator do
it 'translates a string into ehrmagerd-speak' do
- test_string1 = "Oh... | Update spec to use the test post request's string
|
diff --git a/spec/integration/negative_spec.rb b/spec/integration/negative_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/negative_spec.rb
+++ b/spec/integration/negative_spec.rb
@@ -19,6 +19,28 @@ expect(subject.to_tex).to eq('-\left(1 + 2 + 3\right)')
end
end
+
+ describe 'when it... | Add more specs over negativity
|
diff --git a/test/fakeweb_helper.rb b/test/fakeweb_helper.rb
index abc1234..def5678 100644
--- a/test/fakeweb_helper.rb
+++ b/test/fakeweb_helper.rb
@@ -1,6 +1,6 @@ require 'fakeweb'
-FakeWeb.allow_net_connect = false
+FakeWeb.allow_net_connect = %r[^https?://codeclimate.com/]
def fake(routes)
routes.map { |k, ... | Allow FakeWeb to connection to CodeClimate.
|
diff --git a/lib/diesel/testing/application.rb b/lib/diesel/testing/application.rb
index abc1234..def5678 100644
--- a/lib/diesel/testing/application.rb
+++ b/lib/diesel/testing/application.rb
@@ -7,11 +7,19 @@ class Application < Rails::Application
config.encoding = "utf-8"
config.action_mailer.defau... | Fix deprecation warning introduced in Rails 3.1.x
Somehow, the path manipulation on 3.1.x is not working on 3.0.x either. You've been warned. |
diff --git a/lib/dm-salesforce/soap_wrapper.rb b/lib/dm-salesforce/soap_wrapper.rb
index abc1234..def5678 100644
--- a/lib/dm-salesforce/soap_wrapper.rb
+++ b/lib/dm-salesforce/soap_wrapper.rb
@@ -2,6 +2,8 @@
module DataMapperSalesforce
class SoapWrapper
+ class ClassesFailedToGenerate < StandardError; end
+
... | Check whether the classes actually do get generated
|
diff --git a/lib/pah/partials/_rack_timeout.rb b/lib/pah/partials/_rack_timeout.rb
index abc1234..def5678 100644
--- a/lib/pah/partials/_rack_timeout.rb
+++ b/lib/pah/partials/_rack_timeout.rb
@@ -1,4 +1,15 @@+rack_timeout = <<RACK_TIMEOUT
+
+use Rack::Timeout
+RACK_TIMEOUT
+
+in_root do
+ inject_into_file 'config.ru'... | Add on , to configure rack-timeout into application middleware.
|
diff --git a/spec/support/postgres_matchers.rb b/spec/support/postgres_matchers.rb
index abc1234..def5678 100644
--- a/spec/support/postgres_matchers.rb
+++ b/spec/support/postgres_matchers.rb
@@ -1,39 +1,68 @@ require 'rspec/expectations'
# NOTE: This matcher does not work for multiple NOTIFY statements on the same... | Update postgres matcher to accept blocks
|
diff --git a/lib/modulr/global_export_collector.rb b/lib/modulr/global_export_collector.rb
index abc1234..def5678 100644
--- a/lib/modulr/global_export_collector.rb
+++ b/lib/modulr/global_export_collector.rb
@@ -7,11 +7,26 @@ end
def to_js(buffer = '')
- buffer << "var #{@global} = (function() {\n"... | Allow the global export method to handle nested namespaces. |
diff --git a/lib/volt/page/path_string_renderer.rb b/lib/volt/page/path_string_renderer.rb
index abc1234..def5678 100644
--- a/lib/volt/page/path_string_renderer.rb
+++ b/lib/volt/page/path_string_renderer.rb
@@ -6,6 +6,7 @@ require 'volt/page/string_template_renderer'
module Volt
+ class ViewLookupException < Exce... | Make PathStringRenderer use the attrs hash as the model, so you can access properties as models in the view. |
diff --git a/lib/yahoo_gemini_client/collection.rb b/lib/yahoo_gemini_client/collection.rb
index abc1234..def5678 100644
--- a/lib/yahoo_gemini_client/collection.rb
+++ b/lib/yahoo_gemini_client/collection.rb
@@ -25,7 +25,7 @@ JSON.parse(response.body).with_indifferent_access[:response]
else
# T... | Make error message more accurate and descriptive.
|
diff --git a/test/locotimezone_errors_test.rb b/test/locotimezone_errors_test.rb
index abc1234..def5678 100644
--- a/test/locotimezone_errors_test.rb
+++ b/test/locotimezone_errors_test.rb
@@ -0,0 +1,29 @@+require 'test_helper'
+
+class LocotimezoneErrorsTest < Minitest::Test
+
+ describe 'testing error handling' do
+... | Include test coverage for the handling and raising exceptions.
|
diff --git a/lib/acme/client/resources/authorization.rb b/lib/acme/client/resources/authorization.rb
index abc1234..def5678 100644
--- a/lib/acme/client/resources/authorization.rb
+++ b/lib/acme/client/resources/authorization.rb
@@ -25,7 +25,7 @@ end
def assign_attributes(body)
- @expires = Time.parse(body['e... | Use ISO8601 format for time parsing
|
diff --git a/test/unit/validation_info_test.rb b/test/unit/validation_info_test.rb
index abc1234..def5678 100644
--- a/test/unit/validation_info_test.rb
+++ b/test/unit/validation_info_test.rb
@@ -5,10 +5,10 @@ should 'validate the presence of validation methodology description' do
info = ValidationInfo.new
... | rails3: Fix ValidationInfoTest unit test. Change deprecated call for method invalid?(attr) in ActiveModel::Errors class by [:attr].any?
|
diff --git a/lib/database_cleaner/generic/truncation.rb b/lib/database_cleaner/generic/truncation.rb
index abc1234..def5678 100644
--- a/lib/database_cleaner/generic/truncation.rb
+++ b/lib/database_cleaner/generic/truncation.rb
@@ -6,7 +6,7 @@ raise ArgumentError, "The only valid options are :only and :excep... | Fix typo in Truncation options error message |
diff --git a/NotificationObserverHelper.podspec b/NotificationObserverHelper.podspec
index abc1234..def5678 100644
--- a/NotificationObserverHelper.podspec
+++ b/NotificationObserverHelper.podspec
@@ -9,4 +9,5 @@ s.license = { :type => 'MIT', :file => 'LICENSE'}
s.authors = { 'RATNA PAUL SAKA' => 'pauljas... | Update swift version to 4.2 in podspec.
|
diff --git a/plugins/provisioners/salt/errors.rb b/plugins/provisioners/salt/errors.rb
index abc1234..def5678 100644
--- a/plugins/provisioners/salt/errors.rb
+++ b/plugins/provisioners/salt/errors.rb
@@ -4,7 +4,7 @@ module Salt
module Errors
class SaltError < Vagrant::Errors::VagrantError
- error_... | Fix salt provisioner error namespace to be more consistent with other provisioners
|
diff --git a/plugins/system/check-raid-status.rb b/plugins/system/check-raid-status.rb
index abc1234..def5678 100644
--- a/plugins/system/check-raid-status.rb
+++ b/plugins/system/check-raid-status.rb
@@ -0,0 +1,66 @@+#! /usr/bin/env ruby
+
+# Exit status codes
+EXIT_OK = 0
+EXIT_WARNING = 1
+EXIT_CRIT = 2
+exit_code =... | Add monitor to check for the status of a raid array
This monitor will read '/proc/mdstat' and parse it for several values.
[n/m] where n is the total number of devices and m is the number of working devics.
[UUU_UU] where U means the specific component is up and _ means that it is down
It will also check for a recov... |
diff --git a/childprocess.gemspec b/childprocess.gemspec
index abc1234..def5678 100644
--- a/childprocess.gemspec
+++ b/childprocess.gemspec
@@ -18,10 +18,10 @@ s.test_files = `git ls-files -- spec/*`.split("\n")
s.require_paths = ["lib"]
- s.add_development_dependency "rspec", [">= 2.0.0"]
- s.add_developm... | Remove arrays from dep specification
|
diff --git a/spec/features/projects/gfm_autocomplete_load_spec.rb b/spec/features/projects/gfm_autocomplete_load_spec.rb
index abc1234..def5678 100644
--- a/spec/features/projects/gfm_autocomplete_load_spec.rb
+++ b/spec/features/projects/gfm_autocomplete_load_spec.rb
@@ -1,12 +1,10 @@ require 'spec_helper'
describe... | Use admin user in tests
|
diff --git a/spec/unit/request/protocol/class_methods/get_spec.rb b/spec/unit/request/protocol/class_methods/get_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/request/protocol/class_methods/get_spec.rb
+++ b/spec/unit/request/protocol/class_methods/get_spec.rb
@@ -18,7 +18,14 @@ context 'with "ftp"' do
l... | Fix specs to accept jruby exception message formats
|
diff --git a/ooxml_parser.gemspec b/ooxml_parser.gemspec
index abc1234..def5678 100644
--- a/ooxml_parser.gemspec
+++ b/ooxml_parser.gemspec
@@ -10,7 +10,7 @@ s.description = 'Parse OOXML files (docx, xlsx, pptx)'
s.email = ['shockwavenn@gmail.com', 'rzagudaev@gmail.com']
s.files = `git ls-files lib LICENSE.txt... | Revert "Temporary install specific version of nokogiri"
|
diff --git a/spec/acceptance/onetemplate_spec.rb b/spec/acceptance/onetemplate_spec.rb
index abc1234..def5678 100644
--- a/spec/acceptance/onetemplate_spec.rb
+++ b/spec/acceptance/onetemplate_spec.rb
@@ -1,17 +1,44 @@ require 'spec_helper_acceptance'
describe 'onetemplate type' do
+ before :all do
+ pp = <<-EOS... | Update acceptance tests for onetemplate
|
diff --git a/spec/features/idea_features_spec.rb b/spec/features/idea_features_spec.rb
index abc1234..def5678 100644
--- a/spec/features/idea_features_spec.rb
+++ b/spec/features/idea_features_spec.rb
@@ -30,7 +30,10 @@
expect(page).to have_content(title)
expect(page).to have_content(description)
- ... | Change Idea feeature spec expectaions
Expect each tag string to appear individually. The tags are seen with a
bunch of extra HTML cruft between them, making the tests fail each
time. Explicitly expecting each tag individually allows the returned
page to pass the spec.
|
diff --git a/app/presenters/search_presenter.rb b/app/presenters/search_presenter.rb
index abc1234..def5678 100644
--- a/app/presenters/search_presenter.rb
+++ b/app/presenters/search_presenter.rb
@@ -21,7 +21,7 @@ end
def format_date(timestamp)
- return nil if timestamp.blank?
+ raise ArgumentError, "Time... | Revert "Make date field in DocumentSearch optional"
This reverts commit 230461613f1a51d4cb93d415e27001c4dd66c748.
Date fields were made optional because of a problem in a publishing API
republishing task which was not saving the dates correctly. This caused
errors in finder-frontend because Atom feeds for finders rel... |
diff --git a/app/services/processor_resolver.rb b/app/services/processor_resolver.rb
index abc1234..def5678 100644
--- a/app/services/processor_resolver.rb
+++ b/app/services/processor_resolver.rb
@@ -21,8 +21,8 @@
def available_names_for
[
+ feed.processor,
feed.name,
- feed.processor,
... | Use explicit processor option as a default
|
diff --git a/les_09/modules/accessors.rb b/les_09/modules/accessors.rb
index abc1234..def5678 100644
--- a/les_09/modules/accessors.rb
+++ b/les_09/modules/accessors.rb
@@ -0,0 +1,25 @@+module Accessors
+ def self.included(base)
+ base.extend ClassMethods
+ end
+
+ module ClassMethods
+ def attr_accessor_with_... | Add Accessors module with attr_accessor_with_history method
|
diff --git a/db/migrate/20101110121308_set_file_size_not_null_in_project_files.rb b/db/migrate/20101110121308_set_file_size_not_null_in_project_files.rb
index abc1234..def5678 100644
--- a/db/migrate/20101110121308_set_file_size_not_null_in_project_files.rb
+++ b/db/migrate/20101110121308_set_file_size_not_null_in_proj... | Fix migration which doesn't work unless you update your code one commit at a time.
Nugi, don't write this type of code in migrations. Stick to SQL commands and simple migration tasks.
|
diff --git a/features/fixtures/rails_integrations/app/lib/tasks/resque_setup.rake b/features/fixtures/rails_integrations/app/lib/tasks/resque_setup.rake
index abc1234..def5678 100644
--- a/features/fixtures/rails_integrations/app/lib/tasks/resque_setup.rake
+++ b/features/fixtures/rails_integrations/app/lib/tasks/resqu... | Add a default Resque QUEUE to run
|
diff --git a/lib/rrj/tools/bin/config.rb b/lib/rrj/tools/bin/config.rb
index abc1234..def5678 100644
--- a/lib/rrj/tools/bin/config.rb
+++ b/lib/rrj/tools/bin/config.rb
@@ -14,6 +14,7 @@ Config.load_and_set_settings(config_conf)
end
rescue LoadError => exception
- p 'Don\'t use gem config'
+ p "Don't use gem ... | Write exception when anther error to 'LoadError'
|
diff --git a/lib/sidekiq/logging/json.rb b/lib/sidekiq/logging/json.rb
index abc1234..def5678 100644
--- a/lib/sidekiq/logging/json.rb
+++ b/lib/sidekiq/logging/json.rb
@@ -22,7 +22,7 @@ end
def process_message(message)
- result = message.match(/INFO: (done|start)(: ([0-9\.]+) sec)?$/)
+ ... | Fix parsing for runtime, status when the status is reported failure.
|
diff --git a/lib/docs/scrapers/node.rb b/lib/docs/scrapers/node.rb
index abc1234..def5678 100644
--- a/lib/docs/scrapers/node.rb
+++ b/lib/docs/scrapers/node.rb
@@ -23,12 +23,12 @@ HTML
version do
- self.release = '6.2.2'
+ self.release = '6.3.1'
self.base_url = 'https://nodejs.org/api/'
... | Update Node.js documentation (6.3.1, 4.4.7)
|
diff --git a/lib/doorkeeper/request.rb b/lib/doorkeeper/request.rb
index abc1234..def5678 100644
--- a/lib/doorkeeper/request.rb
+++ b/lib/doorkeeper/request.rb
@@ -7,7 +7,7 @@
module Doorkeeper
module Request
- extend self
+ module_function
def authorization_strategy(strategy)
get_strategy str... | Use module_function instead of extending self
|
diff --git a/lib/em-socksify/errors.rb b/lib/em-socksify/errors.rb
index abc1234..def5678 100644
--- a/lib/em-socksify/errors.rb
+++ b/lib/em-socksify/errors.rb
@@ -2,7 +2,7 @@ module Socksify
class SOCKSError < Exception
- def self.define (message)
+ def self.define(message)
Class.new(self)... | Remove space between method call and parentheses.
Avoid `warning: parentheses after method name is interpreted as an argument list, not a decomposed argument`
|
diff --git a/lib/github_merge/merge.rb b/lib/github_merge/merge.rb
index abc1234..def5678 100644
--- a/lib/github_merge/merge.rb
+++ b/lib/github_merge/merge.rb
@@ -10,5 +10,17 @@
def local!
config = YAML.load_file @file
+ repo_dir = clone_repos(config)
+ end
+
+ def clone_repos(config)
+ repo_dir = "#... | Clone repos based on YAML config
|
diff --git a/lib/analytics_instrumentation/analytics_mapping.rb b/lib/analytics_instrumentation/analytics_mapping.rb
index abc1234..def5678 100644
--- a/lib/analytics_instrumentation/analytics_mapping.rb
+++ b/lib/analytics_instrumentation/analytics_mapping.rb
@@ -22,7 +22,7 @@
replaceAllTokens(analysis, params, ... | Use string instead of symbol to look up parameters
|
diff --git a/lib/safer_dates/enforcers/attribute_typecasting.rb b/lib/safer_dates/enforcers/attribute_typecasting.rb
index abc1234..def5678 100644
--- a/lib/safer_dates/enforcers/attribute_typecasting.rb
+++ b/lib/safer_dates/enforcers/attribute_typecasting.rb
@@ -6,7 +6,12 @@
def self.fallback_string_to_time(strin... | Allow date only formats for datetime instantiation
|
diff --git a/modules/mongodb/lib/puppet/type/mongodb_replset.rb b/modules/mongodb/lib/puppet/type/mongodb_replset.rb
index abc1234..def5678 100644
--- a/modules/mongodb/lib/puppet/type/mongodb_replset.rb
+++ b/modules/mongodb/lib/puppet/type/mongodb_replset.rb
@@ -9,6 +9,13 @@
newproperty(:members, :array_matching ... | Make sure members doesn't contain arbiter
|
diff --git a/spec/messages_spec.rb b/spec/messages_spec.rb
index abc1234..def5678 100644
--- a/spec/messages_spec.rb
+++ b/spec/messages_spec.rb
@@ -4,6 +4,14 @@
describe '#inform_creation_of_social_media_links' do
let(:message) { messagable.inform_creation_of_social_media_links }
+
+ it 'outputs a message ... | Bring code coverage back up
|
diff --git a/pages/brightcontent-pages.gemspec b/pages/brightcontent-pages.gemspec
index abc1234..def5678 100644
--- a/pages/brightcontent-pages.gemspec
+++ b/pages/brightcontent-pages.gemspec
@@ -18,7 +18,7 @@ s.add_dependency "brightcontent-core", version
s.add_dependency "brightcontent-attachments", version
... | Update jquery-ui-rails dependency in gemspec |
diff --git a/spec/resource_spec.rb b/spec/resource_spec.rb
index abc1234..def5678 100644
--- a/spec/resource_spec.rb
+++ b/spec/resource_spec.rb
@@ -1,5 +1,5 @@-$LOAD_PATH.unshift File.dirname(__FILE__)
-require 'spec_helper'
+require_relative 'spec_helper'
+
require 'wright/resource'
include Wright
| Use require_relative in resource spec
|
diff --git a/patch.rb b/patch.rb
index abc1234..def5678 100644
--- a/patch.rb
+++ b/patch.rb
@@ -15,4 +15,39 @@ def tag_name
type
end
-end+end
+
+# Print JSON posted to Appium
+# Requires from lib/selenium/webdriver/remote.rb
+require 'selenium/webdriver/remote/capabilities'
+require 'selenium/webdriver/remot... | Print JSON sent to Appium
|
diff --git a/app/controllers/hook_controller.rb b/app/controllers/hook_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/hook_controller.rb
+++ b/app/controllers/hook_controller.rb
@@ -3,7 +3,7 @@ MAX_SIZE = 100 * 1024
def digest
- status = :ok
+ status = :accepted
json = {}
if re... | Add | Responding hook requests with Accepted status code
|
diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/main_controller.rb
+++ b/app/controllers/main_controller.rb
@@ -1,13 +1,11 @@ class MainController < ApplicationController
- before_filter :check_for_mobile
+ before_filter :check_for... | Fix bug in check_for_mobile method that was preventing correct rendering
|
diff --git a/recipes/default.rb b/recipes/default.rb
index abc1234..def5678 100644
--- a/recipes/default.rb
+++ b/recipes/default.rb
@@ -38,5 +38,6 @@
include_recipe "mysql"
include_recipe "apache2"
+include_recipe "apache2::mod_php5"
include_recipe "composer"
include_recipe "laravel::laravel"
| Fix installation of PHP for Apache
|
diff --git a/convert_waze_data.rb b/convert_waze_data.rb
index abc1234..def5678 100644
--- a/convert_waze_data.rb
+++ b/convert_waze_data.rb
@@ -0,0 +1,15 @@+require 'json'
+require 'hashie'
+
+mercator = IO.read("waze/1396867493_mercator.txt")
+hash = JSON.parse mercator
+msg = Hashie::Mash.new hash
+File.open("proj_i... | Add script to convert from Waze Mercator projection to WGS84 used by Open Street Map et.al.
|
diff --git a/app/controllers/conversations_controller.rb b/app/controllers/conversations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/conversations_controller.rb
+++ b/app/controllers/conversations_controller.rb
@@ -2,9 +2,17 @@
before_action :get_mailbox
before_action :get_conversation, exc... | Modify index action for sentbox and trash'
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -26,7 +26,9 @@ frontend/base-ie6.css
frontend/base-ie7.css
frontend/base-ie8.css
- )
+ )
+
+ config.assets.prefix = '/contacts-assets'
... | Change assets prefix to contacts-assets
Matches changes made in puppet config
|
diff --git a/railties/helpers/application_controller.rb b/railties/helpers/application_controller.rb
index abc1234..def5678 100644
--- a/railties/helpers/application_controller.rb
+++ b/railties/helpers/application_controller.rb
@@ -5,8 +5,7 @@ helper :all # include all helpers, all the time
# See ActionControll... | Update the generated controller to not include the deprecated :secret option to protect_from_forgery
|
diff --git a/pages/db/migrate/20140105190324_add_custom_slug_to_refinery_pages.rb b/pages/db/migrate/20140105190324_add_custom_slug_to_refinery_pages.rb
index abc1234..def5678 100644
--- a/pages/db/migrate/20140105190324_add_custom_slug_to_refinery_pages.rb
+++ b/pages/db/migrate/20140105190324_add_custom_slug_to_refin... | Fix checking :custom_slug existence to use column_exists?
|
diff --git a/lib/docs/scrapers/react_native.rb b/lib/docs/scrapers/react_native.rb
index abc1234..def5678 100644
--- a/lib/docs/scrapers/react_native.rb
+++ b/lib/docs/scrapers/react_native.rb
@@ -3,7 +3,7 @@ self.name = 'React Native'
self.slug = 'react_native'
self.type = 'react'
- self.release = '0.... | Update React Native documentation (0.22)
|
diff --git a/build-scripts/emscripten/config.rb b/build-scripts/emscripten/config.rb
index abc1234..def5678 100644
--- a/build-scripts/emscripten/config.rb
+++ b/build-scripts/emscripten/config.rb
@@ -1,23 +1,23 @@ #!/usr/bin/false
NAME = "emscripten"
-VERSION = "1.37.27"
+VERSION = "1.38.11"
RELEASE = "1"
FILES... | Update build scripts for Emscripten 1.38.11
|
diff --git a/lib/finite_machine/async_proxy.rb b/lib/finite_machine/async_proxy.rb
index abc1234..def5678 100644
--- a/lib/finite_machine/async_proxy.rb
+++ b/lib/finite_machine/async_proxy.rb
@@ -3,8 +3,10 @@ module FiniteMachine
# An asynchronous messages proxy
class AsyncProxy
+ include Threadable
+ incl... | Change async proxy to use thread context and threadsafe attribute.
|
diff --git a/lib/lambra/library/code_loader.rb b/lib/lambra/library/code_loader.rb
index abc1234..def5678 100644
--- a/lib/lambra/library/code_loader.rb
+++ b/lib/lambra/library/code_loader.rb
@@ -29,12 +29,9 @@ script = Rubinius::CompiledMethod::Script.new(cm, file, true)
be = Rubinius::BlockEnvir... | Make it work with rbx-head
|
diff --git a/lib/modalfields/standardfields.rb b/lib/modalfields/standardfields.rb
index abc1234..def5678 100644
--- a/lib/modalfields/standardfields.rb
+++ b/lib/modalfields/standardfields.rb
@@ -10,6 +10,7 @@ date
binary :limit=>nil
boolean
+ timestamp
end
ModalFields.alias :timestamp=>:datetime
| Add timestamp to the predefined field types
|
diff --git a/lib/tasks/panopticon.rake b/lib/tasks/panopticon.rake
index abc1234..def5678 100644
--- a/lib/tasks/panopticon.rake
+++ b/lib/tasks/panopticon.rake
@@ -14,7 +14,8 @@ title: "Business finance and support finder",
description: "Find business finance, support, grants and loans backed by the g... | Update registered routes to match new scheme.
They should now be full paths, not just slugs.
|
diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb
index abc1234..def5678 100644
--- a/config/initializers/rack_attack.rb
+++ b/config/initializers/rack_attack.rb
@@ -2,7 +2,7 @@ Rack::Attack.throttled_response = ->(env) { [429, {}, [ActionView::Base.new.render(file: 'public/429.html')... | Add throttling data for airbrake exception
|
diff --git a/lib/tumblargh/node/tag.rb b/lib/tumblargh/node/tag.rb
index abc1234..def5678 100644
--- a/lib/tumblargh/node/tag.rb
+++ b/lib/tumblargh/node/tag.rb
@@ -8,6 +8,10 @@ n = name.split(':')
if n.size == 2
@type = "#{n.first.camelize.to_sym}Tag"
+
+ raise "There's an unclosed... | Raise if theres an unclosed block found. Will improve this with debugging in the future.
|
diff --git a/config/initializers/xmstdn/secureheaders.rb b/config/initializers/xmstdn/secureheaders.rb
index abc1234..def5678 100644
--- a/config/initializers/xmstdn/secureheaders.rb
+++ b/config/initializers/xmstdn/secureheaders.rb
@@ -5,7 +5,7 @@ secure: true,
httponly: true,
samesite: {
- strict: ... | :pill: Fix a bug that user cannot remote follow
|
diff --git a/spec/support/capybara_helpers.rb b/spec/support/capybara_helpers.rb
index abc1234..def5678 100644
--- a/spec/support/capybara_helpers.rb
+++ b/spec/support/capybara_helpers.rb
@@ -38,7 +38,7 @@
# Simulate a browser restart by clearing the session cookie.
def clear_browser_session
- page.driver.re... | Rename remove_cookie -> delete_cookie in Capybara helper for Selenium driver
|
diff --git a/test/integration/install_certificate/controls/install_certificate.rb b/test/integration/install_certificate/controls/install_certificate.rb
index abc1234..def5678 100644
--- a/test/integration/install_certificate/controls/install_certificate.rb
+++ b/test/integration/install_certificate/controls/install_ce... | Test cert and key with x509_certificate and key_rsa, respectively |
diff --git a/tests_isolated/acceptance/admin/calculations_test.rb b/tests_isolated/acceptance/admin/calculations_test.rb
index abc1234..def5678 100644
--- a/tests_isolated/acceptance/admin/calculations_test.rb
+++ b/tests_isolated/acceptance/admin/calculations_test.rb
@@ -3,7 +3,7 @@ require_relative "../acceptance_tes... | Fix name clash in test
|
diff --git a/rakelib/console.rake b/rakelib/console.rake
index abc1234..def5678 100644
--- a/rakelib/console.rake
+++ b/rakelib/console.rake
@@ -1,3 +1,11 @@+# This requires Cycript to be installed on the device:
+#
+# $ apt-get install cycript
+#
+# This task then loads the helpers, defined in the file with the same... | Add some doc about Cycript.
|
diff --git a/config/environments/development.rb b/config/environments/development.rb
index abc1234..def5678 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -16,5 +16,11 @@ # Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
-# Uncomment... | Update the code that reloads plugin app directories to more robust code
|
diff --git a/config/local.rb b/config/local.rb
index abc1234..def5678 100644
--- a/config/local.rb
+++ b/config/local.rb
@@ -1,11 +1,7 @@ I18n.available_locales = Noosfero.available_locales
-Noosfero.default_locale = 'pt_BR'
+Noosfero.default_locale = 'es_ES'
FastGettext.locale = Noosfero.default_locale
FastGettext.d... | Change default language to es_ES
|
diff --git a/config/initializers/live_events.rb b/config/initializers/live_events.rb
index abc1234..def5678 100644
--- a/config/initializers/live_events.rb
+++ b/config/initializers/live_events.rb
@@ -19,7 +19,7 @@ LiveEvents.logger = Rails.logger
LiveEvents.cache = Rails.cache
LiveEvents.statsd = InstStatsd::S... | Increase live events max queue size
closes PLAT-4551
Test Plan:
- n/a
Change-Id: I6a82092fcddf5f382443193f0e5d73eb8913c6d4
Reviewed-on: https://gerrit.instructure.com/198003
Tested-by: Jenkins
Reviewed-by: Weston Dransfield <e9203059795dc94e28a8831c65eb7869e818825e@instructure.com>
QA-Review: Weston Dransfield <e92... |
diff --git a/test/integration/middleware_test.rb b/test/integration/middleware_test.rb
index abc1234..def5678 100644
--- a/test/integration/middleware_test.rb
+++ b/test/integration/middleware_test.rb
@@ -1,6 +1,6 @@ require 'test_helper'
-class FacebookCanvas::MiddlewareTest < ActionDispatch::IntegrationTest
+class ... | Rename integration test class to avoid future name clashes
|
diff --git a/test/test_ocf_physical_container.rb b/test/test_ocf_physical_container.rb
index abc1234..def5678 100644
--- a/test/test_ocf_physical_container.rb
+++ b/test/test_ocf_physical_container.rb
@@ -0,0 +1,46 @@+# coding: utf-8
+require_relative 'helper'
+require 'epub/ocf/physical_container'
+
+class TestOCFPhys... | Add test cases for OCF::PhysicalContainer::Zipruby
|
diff --git a/badcards.gemspec b/badcards.gemspec
index abc1234..def5678 100644
--- a/badcards.gemspec
+++ b/badcards.gemspec
@@ -19,7 +19,7 @@ spec.require_paths = ["lib"]
spec.add_development_dependency "bundler", "~> 1.5"
- spec.add_development_dependency "rake"
- spec.add_development_dependency "rspec"
- s... | Remove open-ended, pessimistic gemspec dependency
|
diff --git a/spec/features/invalid_oauth_spec.rb b/spec/features/invalid_oauth_spec.rb
index abc1234..def5678 100644
--- a/spec/features/invalid_oauth_spec.rb
+++ b/spec/features/invalid_oauth_spec.rb
@@ -11,6 +11,6 @@ error_message = I18n.t('error.oauth_invalid')
visit '/courses'
expect(page).to have_con... | Update auth spec to look for 'Log in' instead of 'Login'
|
diff --git a/spec/javascripts/fixtures/emojis.rb b/spec/javascripts/fixtures/emojis.rb
index abc1234..def5678 100644
--- a/spec/javascripts/fixtures/emojis.rb
+++ b/spec/javascripts/fixtures/emojis.rb
@@ -8,9 +8,11 @@ end
it 'emojis/emojis.json' do |example|
- # Copying the emojis.json from the public folder
... | Fix for mismatch in EE on FIXTURE_PATHS to FIXTURE_PATH
Signed-off-by: Rémy Coutable <4ea0184b9df19e0786dd00b28e6daa4d26baeb3e@rymai.me>
|
diff --git a/app/lenses/date_range_lens.rb b/app/lenses/date_range_lens.rb
index abc1234..def5678 100644
--- a/app/lenses/date_range_lens.rb
+++ b/app/lenses/date_range_lens.rb
@@ -7,9 +7,9 @@
attr_accessor :pairs, :range_builder
- def initialize(*args)
- super(*args)
+ def initialize(options:, **args)
... | Fix meal report lens bug
|
diff --git a/app/models/anonymous_block.rb b/app/models/anonymous_block.rb
index abc1234..def5678 100644
--- a/app/models/anonymous_block.rb
+++ b/app/models/anonymous_block.rb
@@ -3,7 +3,7 @@ require "digest"
class AnonymousBlock < ApplicationRecord
- belongs_to :user
+ belongs_to :user, optional: true
belongs... | Allow anonymous blocks without an owner
|
diff --git a/app/services/person_search.rb b/app/services/person_search.rb
index abc1234..def5678 100644
--- a/app/services/person_search.rb
+++ b/app/services/person_search.rb
@@ -10,7 +10,12 @@
name_matches, query_matches, fuzzy_matches = perform_searches
exact_matches = name_matches.select { |p| p.name ==... | Join search results with push() instead of +()
|
diff --git a/lib/authcop/railtie.rb b/lib/authcop/railtie.rb
index abc1234..def5678 100644
--- a/lib/authcop/railtie.rb
+++ b/lib/authcop/railtie.rb
@@ -37,6 +37,6 @@ end
console do
- AuthCop.unsafe!
+ AuthCop.unsafe! unless ENV["AUTHCOP"]
end
-end+end
| Allow console to start in safe mode when AUTHCOP environment variable is present
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.