diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/controllers/api/v1/base_controller_v1.rb b/app/controllers/api/v1/base_controller_v1.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/base_controller_v1.rb
+++ b/app/controllers/api/v1/base_controller_v1.rb
@@ -2,6 +2,13 @@ class BaseControllerV1 < ApplicationController
respond_to... | Add CORS headers to API endpoints
|
diff --git a/app/controllers/api/v1/reports_controller.rb b/app/controllers/api/v1/reports_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/reports_controller.rb
+++ b/app/controllers/api/v1/reports_controller.rb
@@ -8,15 +8,14 @@ # GET api/v1/reports/:id
def show
offering = Portal::Of... | Enable authorization in Report API
[#114840697]
|
diff --git a/app/controllers/course/courses_controller.rb b/app/controllers/course/courses_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/course/courses_controller.rb
+++ b/app/controllers/course/courses_controller.rb
@@ -1,6 +1,8 @@ # frozen_string_literal: true
class Course::CoursesController < Co... | Load todos for course students in course homepage
|
diff --git a/lib/everything/blog/s3_site.rb b/lib/everything/blog/s3_site.rb
index abc1234..def5678 100644
--- a/lib/everything/blog/s3_site.rb
+++ b/lib/everything/blog/s3_site.rb
@@ -26,6 +26,8 @@ end
end
+ include Everything::Logger::LogIt
+
attr_reader :output_files
def initial... | Add info messages to s3 site
|
diff --git a/lib/restulicious/collection.rb b/lib/restulicious/collection.rb
index abc1234..def5678 100644
--- a/lib/restulicious/collection.rb
+++ b/lib/restulicious/collection.rb
@@ -13,7 +13,7 @@ end
def each(&block)
- send(collection_key).each { |item| block.call(item) }
+ send(collection_key).... | Fix include Enumerable to honor interface
|
diff --git a/lib/specinfra/configuration.rb b/lib/specinfra/configuration.rb
index abc1234..def5678 100644
--- a/lib/specinfra/configuration.rb
+++ b/lib/specinfra/configuration.rb
@@ -36,7 +36,7 @@ def method_missing(meth, val=nil)
key = meth.to_s
key.gsub!(/=$/, '')
- if val
+ if... | Set value when val is not nil.
Before fixing it, we cannot set false with this condition
|
diff --git a/test/tc_causal_delivery.rb b/test/tc_causal_delivery.rb
index abc1234..def5678 100644
--- a/test/tc_causal_delivery.rb
+++ b/test/tc_causal_delivery.rb
@@ -9,22 +9,37 @@ end
class TestCausalDelivery < Test::Unit::TestCase
+ def register_sent_cb(bud, q)
+ bud.register_callback(:pipe_sent) do
+ q... | Tweak causal delivery test case.
|
diff --git a/app/api/v1/blocks.rb b/app/api/v1/blocks.rb
index abc1234..def5678 100644
--- a/app/api/v1/blocks.rb
+++ b/app/api/v1/blocks.rb
@@ -8,13 +8,11 @@ resource :blocks do
resource :preview do
get do
+ block_type = params[:block_type]
+ return f... | Add check to prevent unwanted block_type parameter
|
diff --git a/spec/workers/asset_file_metadata_worker_spec.rb b/spec/workers/asset_file_metadata_worker_spec.rb
index abc1234..def5678 100644
--- a/spec/workers/asset_file_metadata_worker_spec.rb
+++ b/spec/workers/asset_file_metadata_worker_spec.rb
@@ -18,7 +18,7 @@
worker.perform(asset.id.to_s)
- expect(ass... | Use be_within RSpec matcher to make spec example less brittle
Mongoid rounds Time objects to 3 decimal places. By using the be_within
matcher we can make this assertion less flakey.
|
diff --git a/app/models/export.rb b/app/models/export.rb
index abc1234..def5678 100644
--- a/app/models/export.rb
+++ b/app/models/export.rb
@@ -43,17 +43,16 @@
def create_spreadsheet
return if @created
- begin
- book = SpreadsheetExporter.new.master_inventory
- book.write tempfile
- rescue => ... | Drop unneeded begin/end and add more info to logging
|
diff --git a/app/models/wizard.rb b/app/models/wizard.rb
index abc1234..def5678 100644
--- a/app/models/wizard.rb
+++ b/app/models/wizard.rb
@@ -41,4 +41,8 @@ end
end
+ def pick_up
+ 'I throw myself to the ground and pick myself up again.'
+ end
+
end
| Throw self to ground and GET me
|
diff --git a/Library/Formula/objective-caml.rb b/Library/Formula/objective-caml.rb
index abc1234..def5678 100644
--- a/Library/Formula/objective-caml.rb
+++ b/Library/Formula/objective-caml.rb
@@ -6,10 +6,10 @@ @md5='fe011781f37f6b41fe08e0706969a89e'
def install
+ system "./configure --prefix #{prefix}"
+ ... | Update OCaml recipe per spicyj suggestion.
|
diff --git a/models/rules_enum.rb b/models/rules_enum.rb
index abc1234..def5678 100644
--- a/models/rules_enum.rb
+++ b/models/rules_enum.rb
@@ -9,5 +9,6 @@
GROUP_CREATE_GROUP = 'GROUP_CREATE_GROUP'
GROUP_DELETE_GROUP = 'GROUP_DELETE_GROUP'
+ GROUP_MANAGE_GROUPS = 'GROUP_MANAGE_GROUPS'
end | Create a new rule: GROUP_MANAGE_GROUPS.
|
diff --git a/ENVLicenseParser.podspec b/ENVLicenseParser.podspec
index abc1234..def5678 100644
--- a/ENVLicenseParser.podspec
+++ b/ENVLicenseParser.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "ENVLicenseParser"
- s.version = "1.0.0"
+ s.version = "1.0.1"
s... | Add missing public header files
|
diff --git a/week-5/pgs2_2.rb b/week-5/pgs2_2.rb
index abc1234..def5678 100644
--- a/week-5/pgs2_2.rb
+++ b/week-5/pgs2_2.rb
@@ -0,0 +1,13 @@+ items = "carrots apples cereal pizza"
+
+def groceries(items)
+ word_array = items.split(' ')
+ grocery_list = Hash.new
+ word_array.each do |item|
+ grocery_list[item] = ... | Create GPS week 5 file
|
diff --git a/tools/snippet-testing/language_handler/curl_language_handler.rb b/tools/snippet-testing/language_handler/curl_language_handler.rb
index abc1234..def5678 100644
--- a/tools/snippet-testing/language_handler/curl_language_handler.rb
+++ b/tools/snippet-testing/language_handler/curl_language_handler.rb
@@ -30,... | Remove lower and greater than symbols from curl snippets when testing
|
diff --git a/spec/controllers/ops_controller/settings/analysis_profiles_spec.rb b/spec/controllers/ops_controller/settings/analysis_profiles_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/ops_controller/settings/analysis_profiles_spec.rb
+++ b/spec/controllers/ops_controller/settings/analysis_profiles_spe... | Add spec test to check flash message for Analysis Profile to be created
|
diff --git a/db/migrate/20190518184430_add_published_version_to_gplan_nodes.rb b/db/migrate/20190518184430_add_published_version_to_gplan_nodes.rb
index abc1234..def5678 100644
--- a/db/migrate/20190518184430_add_published_version_to_gplan_nodes.rb
+++ b/db/migrate/20190518184430_add_published_version_to_gplan_nodes.rb... | Add migration to include a published_version column in gplan_nodes
|
diff --git a/veritrans.gemspec b/veritrans.gemspec
index abc1234..def5678 100644
--- a/veritrans.gemspec
+++ b/veritrans.gemspec
@@ -13,7 +13,7 @@ s.test_files = []
s.require_paths = ["lib"]
- #s.executables = ["veritrans"]
+ s.executables = ["veritrans"]
#s.add_runtime_dependency "addressable"
#s.a... | Edit executable settings in gemfile |
diff --git a/cookbooks/universe_ubuntu/recipes/default.rb b/cookbooks/universe_ubuntu/recipes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/universe_ubuntu/recipes/default.rb
+++ b/cookbooks/universe_ubuntu/recipes/default.rb
@@ -37,3 +37,9 @@ checksum '73b51715a12b6382dd4df3dd1905b531bd6792d4aa7273b2377a0... | Install anaconda as vagrant user
|
diff --git a/app/decorators/controllers/forem/topics_controller_decorator.rb b/app/decorators/controllers/forem/topics_controller_decorator.rb
index abc1234..def5678 100644
--- a/app/decorators/controllers/forem/topics_controller_decorator.rb
+++ b/app/decorators/controllers/forem/topics_controller_decorator.rb
@@ -1,5... | Hide footer advert in forum threads.
|
diff --git a/spec/features/groups/labels/subscription_spec.rb b/spec/features/groups/labels/subscription_spec.rb
index abc1234..def5678 100644
--- a/spec/features/groups/labels/subscription_spec.rb
+++ b/spec/features/groups/labels/subscription_spec.rb
@@ -11,7 +11,7 @@ gitlab_sign_in user
end
- scenari... | Improve scenario description for the group labels subscription spec
|
diff --git a/spec/support/it_behaves_like_maps_json_fields.rb b/spec/support/it_behaves_like_maps_json_fields.rb
index abc1234..def5678 100644
--- a/spec/support/it_behaves_like_maps_json_fields.rb
+++ b/spec/support/it_behaves_like_maps_json_fields.rb
@@ -1,12 +1,12 @@ shared_examples_for 'maps JSON fields' do |mapped... | Fix described_class nesting changes in rspec
described_class now returns the nested class, not
the outer class. So we need to adjust our specs. |
diff --git a/Rakefile.d/cucumber.rake b/Rakefile.d/cucumber.rake
index abc1234..def5678 100644
--- a/Rakefile.d/cucumber.rake
+++ b/Rakefile.d/cucumber.rake
@@ -13,10 +13,11 @@
namespace :cucumber do
task :setup do
+ current_gemfile = ENV['BUNDLE_GEMFILE']
Bundler.with_clean_env do
gemfile = "cucumb... | Create rails app after passing BUNDLE_GEMFILE env var to the subshell
|
diff --git a/henson.gemspec b/henson.gemspec
index abc1234..def5678 100644
--- a/henson.gemspec
+++ b/henson.gemspec
@@ -24,7 +24,7 @@ gem.add_dependency "thor", "~> 0.16.0"
# development dependencies
- gem.add_development_dependency "mocha", "~> 0.12.7"
+ gem.add_development_dependency "mocha"... | Update mocha for ruby 2.x fixes
|
diff --git a/lib/generators/spree_return_requests/install/install_generator.rb b/lib/generators/spree_return_requests/install/install_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/spree_return_requests/install/install_generator.rb
+++ b/lib/generators/spree_return_requests/install/install_generator.rb... | Update generator to work with Spree 2.2
|
diff --git a/test/fixtures/cookbooks/test/recipes/default.rb b/test/fixtures/cookbooks/test/recipes/default.rb
index abc1234..def5678 100644
--- a/test/fixtures/cookbooks/test/recipes/default.rb
+++ b/test/fixtures/cookbooks/test/recipes/default.rb
@@ -1,4 +1,4 @@-apt_update 'update' if platform_family?('ubuntu')
+apt_... | Fix bad platform_family check in test
Cookstyle fixed this
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/spec/changelog_spec.lint.rb b/spec/changelog_spec.lint.rb
index abc1234..def5678 100644
--- a/spec/changelog_spec.lint.rb
+++ b/spec/changelog_spec.lint.rb
@@ -1,4 +1,4 @@-SimpleCov.command_name "lint"
+SimpleCov.command_name "lint" if ENV["COVERAGE"] == true
RSpec.describe "Changelog" do
subject(:ch... | Fix crash when running specs without coverage
|
diff --git a/spec/features/basic_spec.rb b/spec/features/basic_spec.rb
index abc1234..def5678 100644
--- a/spec/features/basic_spec.rb
+++ b/spec/features/basic_spec.rb
@@ -0,0 +1,60 @@+require 'spec_helper'
+require 'json'
+require "net/http"
+require "uri"
+
+describe 'Basic tests of all public curricular Lab interac... | Add basic tests of all public curricular interactives
[#67779220]
It will load each interactive and run it for 0.5s if there is a 'play'
button available.
|
diff --git a/pubsubhub.gemspec b/pubsubhub.gemspec
index abc1234..def5678 100644
--- a/pubsubhub.gemspec
+++ b/pubsubhub.gemspec
@@ -20,6 +20,8 @@ spec.files = Dir['lib/**/*.rb']
spec.require_paths = ['lib']
+ spec.required_ruby_version = '>= 2.0.0'
+
spec.add_development_dependency 'bundler', '~> 1.... | Add dependency on Ruby 2.0.0
I'm about to import the PubSubHub files from the causes.git repo, and
they effectively depend on Ruby 2.0.0 because they use 2.0.0 syntax.
Make that dependency explicit in the gemspec.
Change-Id: I9fb4711004b402eb8e5e1150a28e0382a410daad
Reviewed-on: https://gerrit.causes.com/26272
Revie... |
diff --git a/spec/models/article_spec.rb b/spec/models/article_spec.rb
index abc1234..def5678 100644
--- a/spec/models/article_spec.rb
+++ b/spec/models/article_spec.rb
@@ -2,19 +2,20 @@
describe Article do
let(:user) { User.create!(username: "sampleuser", permission_level: "author", password: "password") }
- let... | Correct article specs (all passing)
|
diff --git a/spec/concurrent/set_spec.rb b/spec/concurrent/set_spec.rb
index abc1234..def5678 100644
--- a/spec/concurrent/set_spec.rb
+++ b/spec/concurrent/set_spec.rb
@@ -2,6 +2,44 @@ module Concurrent
RSpec.describe Set do
let!(:set) { described_class.new }
+
+ describe '.[]' do
+ describe 'when init... | Add specs for Set initialization behavior
|
diff --git a/config/schedule.rb b/config/schedule.rb
index abc1234..def5678 100644
--- a/config/schedule.rb
+++ b/config/schedule.rb
@@ -5,8 +5,6 @@
# We need Rake to use our own environment
job_type :rake, "cd :path && govuk_setenv whitehall bundle exec rake :task --silent :output"
-# We need Rails to use our own e... | Use export:redirector_mappings in the cron job
This replaces the old and now removed script.
Additionally clean up the now unused job_type.
|
diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb
index abc1234..def5678 100644
--- a/spec/cli_spec.rb
+++ b/spec/cli_spec.rb
@@ -14,9 +14,9 @@ after(:each) { Wright::CLI.send(:private, :parse) }
it 'parses -e COMMAND' do
- argv = %w[-e foo -e bar -- --baz]
- @cli.parse(argv).must_equal %w[--baz]
- ... | Fix rubocop warnings (%w[] array literals)
|
diff --git a/spec/support/fake_github.rb b/spec/support/fake_github.rb
index abc1234..def5678 100644
--- a/spec/support/fake_github.rb
+++ b/spec/support/fake_github.rb
@@ -0,0 +1,35 @@+require 'sinatra/base'
+
+class FakeGitHub < Sinatra::Base
+ get '/user/repos' do
+ json_response 200, 'repos.json'
+ end
+
+ ge... | Create a fake github service
|
diff --git a/spec/models/comment_spec.rb b/spec/models/comment_spec.rb
index abc1234..def5678 100644
--- a/spec/models/comment_spec.rb
+++ b/spec/models/comment_spec.rb
@@ -1,5 +1,18 @@ require 'rails_helper'
RSpec.describe Comment, type: :model do
- pending "add some examples to (or delete) #{__FILE__}"
+ let(:qu... | Add tests for comment model
|
diff --git a/spec/models/product_spec.rb b/spec/models/product_spec.rb
index abc1234..def5678 100644
--- a/spec/models/product_spec.rb
+++ b/spec/models/product_spec.rb
@@ -16,9 +16,9 @@ expect(product.categories.last.name).to eq('Travel Gear')
end
- it 'shows quantity sold' do
- expect(product.sold).to eq... | Revise product spec for quantity sold per day
|
diff --git a/lib/skywriter/resource_property/ec2/security_group_rule.rb b/lib/skywriter/resource_property/ec2/security_group_rule.rb
index abc1234..def5678 100644
--- a/lib/skywriter/resource_property/ec2/security_group_rule.rb
+++ b/lib/skywriter/resource_property/ec2/security_group_rule.rb
@@ -6,6 +6,9 @@ pro... | Add missing properties to Security Group Rule resource property type
|
diff --git a/spec/percona/sm-tools_spec.rb b/spec/percona/sm-tools_spec.rb
index abc1234..def5678 100644
--- a/spec/percona/sm-tools_spec.rb
+++ b/spec/percona/sm-tools_spec.rb
@@ -0,0 +1,19 @@+require 'spec_helper'
+
+# sm-list-dbs
+
+describe command('sm-list-dbs mysql') do
+ its(:exit_status) { should eq 0 }
+end
+... | Add test for sm-tools: sm-list-dbs
|
diff --git a/Casks/virtualbox-extension-pack.rb b/Casks/virtualbox-extension-pack.rb
index abc1234..def5678 100644
--- a/Casks/virtualbox-extension-pack.rb
+++ b/Casks/virtualbox-extension-pack.rb
@@ -0,0 +1,24 @@+cask :v1 => 'virtualbox-extension-pack' do
+ version '5.0.0-101573'
+ sha256 'c357e36368883df821ed092d26... | Add VirtualBox Extension Pack v5.0.0-101573
installs and uninstalls using VBoxManage (part of VirtualBox)
|
diff --git a/Casks/gopanda.rb b/Casks/gopanda.rb
index abc1234..def5678 100644
--- a/Casks/gopanda.rb
+++ b/Casks/gopanda.rb
@@ -0,0 +1,7 @@+class Gopanda < Cask
+ url 'http://pandanet-igs.com/gopanda2/installer/stable/mac-32/gopanda2-mac-32.zip'
+ homepage 'http://pandanet-igs.com/communities/gopanda2'
+ version 'l... | Add Go Panda (Client for Pandanet - The Internet Go Server)
|
diff --git a/Casks/airdroid.rb b/Casks/airdroid.rb
index abc1234..def5678 100644
--- a/Casks/airdroid.rb
+++ b/Casks/airdroid.rb
@@ -4,7 +4,7 @@
url "http://dl.airdroid.com/AirDroid_Desktop_Client_#{version}.dmg"
name 'AirDroid'
- homepage 'http://airdroid.com'
+ homepage 'https://www.airdroid.com/'
license... | Fix homepage to use SSL in AirDroid 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/Sqwiggle.podspec b/Sqwiggle.podspec
index abc1234..def5678 100644
--- a/Sqwiggle.podspec
+++ b/Sqwiggle.podspec
@@ -12,7 +12,7 @@ s.public_header_files = "iOSSDK/*.h"
s.source_files = "iOSSDK/*.{h,m}"
- s.dependency 'AFNetworking', "~> 2.0.3"
+ s.dependency 'AFNetworking', "~> 2.3.1"
s.dependen... | Update podspec to use AFNetworking 2.3.1
|
diff --git a/ceo.gemspec b/ceo.gemspec
index abc1234..def5678 100644
--- a/ceo.gemspec
+++ b/ceo.gemspec
@@ -8,8 +8,8 @@ s.name = "ceo"
s.version = CEO::VERSION.dup
s.authors = ['Jesse Herrick']
- s.email = ['me@jesse.codes']
- s.homepage = "TODO"
+ s.email = ['jesse@littlelines... | Update gemspec with homepage and diff. email
|
diff --git a/poltergeist-suppressor.gemspec b/poltergeist-suppressor.gemspec
index abc1234..def5678 100644
--- a/poltergeist-suppressor.gemspec
+++ b/poltergeist-suppressor.gemspec
@@ -8,8 +8,8 @@ spec.version = Poltergeist::Suppressor::VERSION
spec.authors = ["Kazato Sugimoto"]
spec.email =... | Add a description to gemspec
|
diff --git a/app/helpers/sufia/blacklight_override.rb b/app/helpers/sufia/blacklight_override.rb
index abc1234..def5678 100644
--- a/app/helpers/sufia/blacklight_override.rb
+++ b/app/helpers/sufia/blacklight_override.rb
@@ -1,25 +1,5 @@ module Sufia
module BlacklightOverride
- # TODO: we can remove this override... | Remove methods that moved to curation_concerns
|
diff --git a/Formula/jython.rb b/Formula/jython.rb
index abc1234..def5678 100644
--- a/Formula/jython.rb
+++ b/Formula/jython.rb
@@ -3,10 +3,16 @@ class Jython <Formula
url "http://downloads.sourceforge.net/project/jython/jython/2.5.1/jython_installer-2.5.1.jar",
:using => :nounzip
- md5 '2ee978eff4306b23753b3... | Update Jython HEAD to 2.5.2rc3
|
diff --git a/example/free_guest.rb b/example/free_guest.rb
index abc1234..def5678 100644
--- a/example/free_guest.rb
+++ b/example/free_guest.rb
@@ -0,0 +1,39 @@+require 'noam-lemma'
+
+# This is an example of a Ruby Lemma that publishes message and *also* uses the
+# "Guest" model of connection. This Lemma will advert... | Add an example of a free guest.
|
diff --git a/add-vault-tokens.gemspec b/add-vault-tokens.gemspec
index abc1234..def5678 100644
--- a/add-vault-tokens.gemspec
+++ b/add-vault-tokens.gemspec
@@ -19,7 +19,7 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
- spec.add_dependency "vault"
+ sp... | Upgrade to vault client 0.2.0
This is the latest version, so we might as well use it.
|
diff --git a/plugins/networking/app/models/networking/security_group.rb b/plugins/networking/app/models/networking/security_group.rb
index abc1234..def5678 100644
--- a/plugins/networking/app/models/networking/security_group.rb
+++ b/plugins/networking/app/models/networking/security_group.rb
@@ -2,7 +2,7 @@
module Ne... | Fix wrong base model class for SecurityGroup
|
diff --git a/tests/functional/get_tests.rb b/tests/functional/get_tests.rb
index abc1234..def5678 100644
--- a/tests/functional/get_tests.rb
+++ b/tests/functional/get_tests.rb
@@ -32,7 +32,7 @@
def test_static_jpg
assert_same_static '/small.gif'
- assert_same_static '/small.jpg'
+ assert_s... | Use correct method to read binary file in Ruby.
|
diff --git a/lib/event_girl_client.rb b/lib/event_girl_client.rb
index abc1234..def5678 100644
--- a/lib/event_girl_client.rb
+++ b/lib/event_girl_client.rb
@@ -11,8 +11,8 @@ attr_reader :api_token, :url
def initialize(url, api_token)
- @url = url
- @api_token = api_token
+ @url = url.to_s
+ ... | Make url and api_token nil-safe |
diff --git a/db/migrate/20091002164750_make_documents_title_and_subtitle_text.rb b/db/migrate/20091002164750_make_documents_title_and_subtitle_text.rb
index abc1234..def5678 100644
--- a/db/migrate/20091002164750_make_documents_title_and_subtitle_text.rb
+++ b/db/migrate/20091002164750_make_documents_title_and_subtitle... | Add migration to convert title and subtitle to "text" fields from varchar(255).
|
diff --git a/lib/henson/source/git.rb b/lib/henson/source/git.rb
index abc1234..def5678 100644
--- a/lib/henson/source/git.rb
+++ b/lib/henson/source/git.rb
@@ -7,6 +7,20 @@ @name = name
@repo = repo
@options = opts
+
+ if branch = @options.fetch(:branch, nil)
+ @target_r... | Store the ref type for internal use
|
diff --git a/lib/mako/view_helpers.rb b/lib/mako/view_helpers.rb
index abc1234..def5678 100644
--- a/lib/mako/view_helpers.rb
+++ b/lib/mako/view_helpers.rb
@@ -12,6 +12,6 @@ #
# @return [String]
def last_updated
- Time.now.strftime('%m %b %Y %H:%M:%S')
+ Time.now.strftime('%d %b %Y %H:%M:%S')
end
end... | Fix bug where last_updated returned wrong date
|
diff --git a/feathericon-sass.gemspec b/feathericon-sass.gemspec
index abc1234..def5678 100644
--- a/feathericon-sass.gemspec
+++ b/feathericon-sass.gemspec
@@ -16,6 +16,6 @@
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
- s.add_runtime_dependency 'sass', '>= 3.2'
- s.add_dev... | Replace eol ruby-sass to sassc
|
diff --git a/exe/build_database.rb b/exe/build_database.rb
index abc1234..def5678 100644
--- a/exe/build_database.rb
+++ b/exe/build_database.rb
@@ -0,0 +1,18 @@+#!/usr/bin/env ruby -I lib
+
+require 'bundler'
+Bundler.require(:default)
+
+require_relative '../lib/flickr_to_google_photos'
+
+flickr = FlickrToGooglePhot... | Add script to biuld database
|
diff --git a/Casks/font-anonymous-pro.rb b/Casks/font-anonymous-pro.rb
index abc1234..def5678 100644
--- a/Casks/font-anonymous-pro.rb
+++ b/Casks/font-anonymous-pro.rb
@@ -2,7 +2,7 @@ url 'http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip'
homepage 'http://www.marksimonson.com/fonts/view/ano... | Update Anonymous Pro to sha256 checksums
|
diff --git a/rb/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb b/rb/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb
index abc1234..def5678 100644
--- a/rb/lib/selenium/webdriver/common/driver_extensions/uploads_files.rb
+++ b/rb/lib/selenium/webdriver/common/driver_extensions/uploads_... | JariBakken: Fix error in the file_detector example.
r15466
|
diff --git a/Casks/datagrip.rb b/Casks/datagrip.rb
index abc1234..def5678 100644
--- a/Casks/datagrip.rb
+++ b/Casks/datagrip.rb
@@ -0,0 +1,11 @@+cask :v1 => 'datagrip' do
+ version '1.0'
+ sha256 '32640fd394c57b4c5625e254971d423e84b3e39c0dede63cad17620be52ca155'
+
+ url "https://download.jetbrains.com/datagrip/data... | Add cask for first stable release of DataGrip
|
diff --git a/spec/integration/mapping_relations_spec.rb b/spec/integration/mapping_relations_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/mapping_relations_spec.rb
+++ b/spec/integration/mapping_relations_spec.rb
@@ -0,0 +1,35 @@+# encoding: utf-8
+
+require 'spec_helper'
+
+describe 'Mapping relations'... | Add integration spec showing relation mapping
|
diff --git a/spec/lib/disable_email_interceptor_spec.rb b/spec/lib/disable_email_interceptor_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/disable_email_interceptor_spec.rb
+++ b/spec/lib/disable_email_interceptor_spec.rb
@@ -13,6 +13,9 @@ end
after do
+ # Removing interceptor from the list because unr... | Add a comment in interceptor spec.
|
diff --git a/DeallocationChecker.podspec b/DeallocationChecker.podspec
index abc1234..def5678 100644
--- a/DeallocationChecker.podspec
+++ b/DeallocationChecker.podspec
@@ -12,8 +12,6 @@ s.author = { "Arkadiusz Holko" => "fastred@fastred.org" }
s.social_media_url = ""
s.ios.deployment_target = "8.... | Remove macOS and watchOS platforms from podspec
|
diff --git a/evertrue_app_assets.gemspec b/evertrue_app_assets.gemspec
index abc1234..def5678 100644
--- a/evertrue_app_assets.gemspec
+++ b/evertrue_app_assets.gemspec
@@ -11,4 +11,11 @@
s.add_dependency 'itunes-search-api', '~> 0'
s.add_dependency 'httparty', '~> 0.10', '>= 0.10.0'
+
+ # General
+ s.add_deve... | Add Bundler, Rake, & Fury as dev gems to Gemspec
Ensures we have all the tools we need to build & ship a release
|
diff --git a/config/initializers/cve_2015_3226_fix.rb b/config/initializers/cve_2015_3226_fix.rb
index abc1234..def5678 100644
--- a/config/initializers/cve_2015_3226_fix.rb
+++ b/config/initializers/cve_2015_3226_fix.rb
@@ -0,0 +1,13 @@+raise "Check monkey patch for CVE-2015-3226 is still needed" unless Rails::VERSION... | Patch Rails security issue not fixed in a 3.2.x
|
diff --git a/config/initializers/non_digest_assets.rb b/config/initializers/non_digest_assets.rb
index abc1234..def5678 100644
--- a/config/initializers/non_digest_assets.rb
+++ b/config/initializers/non_digest_assets.rb
@@ -1,6 +1,6 @@ NonStupidDigestAssets.whitelist += [
- "logo.gif",
- "logo-small.gif",
+ /logo\.... | Allow more assets without digests.
|
diff --git a/app/mailers/invitations_mailer.rb b/app/mailers/invitations_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/invitations_mailer.rb
+++ b/app/mailers/invitations_mailer.rb
@@ -5,8 +5,9 @@ @event_dates = event_dates
@event_venue = event_venue
@days_to_confirm = Setting.get.days_to_conf... | [168] Fix showing contact_mail in mails
|
diff --git a/app/controllers/index.rb b/app/controllers/index.rb
index abc1234..def5678 100644
--- a/app/controllers/index.rb
+++ b/app/controllers/index.rb
@@ -15,9 +15,13 @@
access_token = client.auth_code.get_token(params[:code], :redirect_uri => 'http://localhost:9393/callback')
response = access_token.get('... | Delete Tests and Fix Up Login Routes
|
diff --git a/app/models/sidekiq/monitor/job.rb b/app/models/sidekiq/monitor/job.rb
index abc1234..def5678 100644
--- a/app/models/sidekiq/monitor/job.rb
+++ b/app/models/sidekiq/monitor/job.rb
@@ -6,6 +6,8 @@ serialize :args
serialize :result
+ after_destroy :destroy_in_queue
+
STATUSES = [
... | Destroy the corresponding Sidekiq::Job when a Sidekiq::Monitor::Job is destroyed |
diff --git a/tco_method.gemspec b/tco_method.gemspec
index abc1234..def5678 100644
--- a/tco_method.gemspec
+++ b/tco_method.gemspec
@@ -8,8 +8,8 @@ spec.version = TCOMethod::VERSION
spec.authors = ["Danny Guinther"]
spec.email = ["dannyguinther@gmail.com"]
- spec.summary = %q{Simplif... | Fix gemspec summary and description
|
diff --git a/jquery-qtip2-rails.gemspec b/jquery-qtip2-rails.gemspec
index abc1234..def5678 100644
--- a/jquery-qtip2-rails.gemspec
+++ b/jquery-qtip2-rails.gemspec
@@ -8,14 +8,14 @@ gem.summary = %q{qTip2 packaged for the Rails 3.1+ asset pipeline}
gem.homepage = "http://github.com/tkrotoff/jquery-qtip... | Update gemspec file
Using Bundler version 1.1.5
|
diff --git a/app/controllers/songs.rb b/app/controllers/songs.rb
index abc1234..def5678 100644
--- a/app/controllers/songs.rb
+++ b/app/controllers/songs.rb
@@ -7,6 +7,10 @@ 'show single song'
end
-put '/songs/:id/edit' do
+put '/songs/:id' do
+ 'edit single song'
+end
+delete 'songs/:id' do
+ 'delete single s... | Create DELETE route for single song
|
diff --git a/spec/aoede/attributes/base_spec.rb b/spec/aoede/attributes/base_spec.rb
index abc1234..def5678 100644
--- a/spec/aoede/attributes/base_spec.rb
+++ b/spec/aoede/attributes/base_spec.rb
@@ -0,0 +1,35 @@+require 'spec_helper'
+
+describe Aoede::Attributes::Base do
+ let(:filename) { File.expand_path('Test - ... | Add base spec for Attributes::Base
|
diff --git a/spec/support/search_spec_helper.rb b/spec/support/search_spec_helper.rb
index abc1234..def5678 100644
--- a/spec/support/search_spec_helper.rb
+++ b/spec/support/search_spec_helper.rb
@@ -15,7 +15,8 @@ settings: described_class.tire.settings
}
- index.create(opts) or raise "unable to create... | Improve error message when index creation fails.
|
diff --git a/lib/analytical/modules/google_tag_manager.rb b/lib/analytical/modules/google_tag_manager.rb
index abc1234..def5678 100644
--- a/lib/analytical/modules/google_tag_manager.rb
+++ b/lib/analytical/modules/google_tag_manager.rb
@@ -0,0 +1,40 @@+module Analytical
+ module Modules
+ class GoogleTagManager
+ ... | Add Google Tag Manager module
|
diff --git a/ext/did_you_mean/extconf.rb b/ext/did_you_mean/extconf.rb
index abc1234..def5678 100644
--- a/ext/did_you_mean/extconf.rb
+++ b/ext/did_you_mean/extconf.rb
@@ -1,10 +1,10 @@ require 'mkmf'
case RUBY_VERSION
-when /1.9.3/, /2.0.0/, /2.1.0/, /2.1.1/, /2.2.0/
+when /1.9.3/, /2.0.0/, /^2.1.\d/, /2.2.0/
a... | Add support for Ruby 2.1.2
|
diff --git a/test/integration/default/serverspec/localhost/cron_spec.rb b/test/integration/default/serverspec/localhost/cron_spec.rb
index abc1234..def5678 100644
--- a/test/integration/default/serverspec/localhost/cron_spec.rb
+++ b/test/integration/default/serverspec/localhost/cron_spec.rb
@@ -27,3 +27,13 @@ it {... | Add serverspec for the LWRP
|
diff --git a/app/settings/settings.rb b/app/settings/settings.rb
index abc1234..def5678 100644
--- a/app/settings/settings.rb
+++ b/app/settings/settings.rb
@@ -1,26 +1,26 @@ require 'yaml'
module Settings
- extend self
-
+ class << self
@_settings = {}
- def load
- @_settings = YAML.load_file("#{Rails.... | Modify Settings as class singleton
|
diff --git a/lib/spree/hub/handler/add_product_handler.rb b/lib/spree/hub/handler/add_product_handler.rb
index abc1234..def5678 100644
--- a/lib/spree/hub/handler/add_product_handler.rb
+++ b/lib/spree/hub/handler/add_product_handler.rb
@@ -43,10 +43,12 @@
private
def set_up_shipping_category
- ... | Add defaults to product shipping_category
|
diff --git a/app/controllers/index.rb b/app/controllers/index.rb
index abc1234..def5678 100644
--- a/app/controllers/index.rb
+++ b/app/controllers/index.rb
@@ -1,7 +1,7 @@ get '/' do
- redirect '/homepage'
+ erb :'homepage/index'
end
-get '/homepage' do
- erb :'homepage/index'
+get '/dashboard' do
+ erb :'/... | Change homepage route to '/' and create get dashboard route
|
diff --git a/0_code_wars/7_caffeine_buzz.rb b/0_code_wars/7_caffeine_buzz.rb
index abc1234..def5678 100644
--- a/0_code_wars/7_caffeine_buzz.rb
+++ b/0_code_wars/7_caffeine_buzz.rb
@@ -0,0 +1,19 @@+# http://www.codewars.com/kata/5434283682b0fdb0420000e6/
+# iteration 1
+def caffeineBuzz(n)
+ if n % 3 == 0 && n % 4 == ... | Add code wars (7) caffeine buzz
|
diff --git a/0_code_wars/combine_objects.rb b/0_code_wars/combine_objects.rb
index abc1234..def5678 100644
--- a/0_code_wars/combine_objects.rb
+++ b/0_code_wars/combine_objects.rb
@@ -0,0 +1,19 @@+# http://www.codewars.com/kata/56bd9e4b0d0b64eaf5000819
+# --- iteration 1 ---
+def combine(*objects)
+ objects.reduce({}... | Add code wars (7) - combine objects
|
diff --git a/lib/greek_string/container.rb b/lib/greek_string/container.rb
index abc1234..def5678 100644
--- a/lib/greek_string/container.rb
+++ b/lib/greek_string/container.rb
@@ -17,9 +17,11 @@ @container.flat_map { |letter| letter.to_s(args) }
end
- def method_missing(meth, *args)
- @container.m... | Refactor change method_missing to select_by_type
|
diff --git a/lib/migrate.rb b/lib/migrate.rb
index abc1234..def5678 100644
--- a/lib/migrate.rb
+++ b/lib/migrate.rb
@@ -1,6 +1,9 @@ # Since we've designed metrics/docs tables to revolve around
# the pods table, but be independent of each other, we can
# run all trunk migrations first, then all others.
+#
+
+# NOTE S... | Add note (implying why versions are necessary).
|
diff --git a/smartview.gemspec b/smartview.gemspec
index abc1234..def5678 100644
--- a/smartview.gemspec
+++ b/smartview.gemspec
@@ -8,7 +8,7 @@ spec.email = 'adam.b.gardiner@gmail.com'
spec.require_paths = ['lib']
spec.files = ['README.rdoc', 'COPYING'] + Dir['lib/**/*.rb']
- spec.version = '0.0.2'
+ ... | Update gem version to 0.0.3
|
diff --git a/cf_spec/integration/deploy_a_rails51_app_spec.rb b/cf_spec/integration/deploy_a_rails51_app_spec.rb
index abc1234..def5678 100644
--- a/cf_spec/integration/deploy_a_rails51_app_spec.rb
+++ b/cf_spec/integration/deploy_a_rails51_app_spec.rb
@@ -1,9 +1,8 @@ require 'cf_spec_helper'
describe 'Rails 5.1 (We... | Revert "Make sure rails51 uses ruby buildpack"
[#142382213]
This reverts commit cb72ad960b8893a534764be51ac7dcecae96efcc.
|
diff --git a/lib/stevenson/deployers/s3.rb b/lib/stevenson/deployers/s3.rb
index abc1234..def5678 100644
--- a/lib/stevenson/deployers/s3.rb
+++ b/lib/stevenson/deployers/s3.rb
@@ -13,12 +13,22 @@ end
def deploy!(directory)
- Dir.glob("#{directory}/**/*").each do |file|
+ entries_for(direct... | Refactor S3 deployment for single file deployment
|
diff --git a/app/helpers/application_helper/button/old_dialogs_edit_delete.rb b/app/helpers/application_helper/button/old_dialogs_edit_delete.rb
index abc1234..def5678 100644
--- a/app/helpers/application_helper/button/old_dialogs_edit_delete.rb
+++ b/app/helpers/application_helper/button/old_dialogs_edit_delete.rb
@@ ... | Correct name of class according to name of file
|
diff --git a/LoremIpsum.podspec b/LoremIpsum.podspec
index abc1234..def5678 100644
--- a/LoremIpsum.podspec
+++ b/LoremIpsum.podspec
@@ -3,7 +3,6 @@ s.version = "2.0.0-beta.1"
s.summary = "A lightweight lorem ipsum and image placeholders generator for Objective-C."
s.homepage = "https://github.com... | Remove reference to missing screenshot.
|
diff --git a/app/models/submission.rb b/app/models/submission.rb
index abc1234..def5678 100644
--- a/app/models/submission.rb
+++ b/app/models/submission.rb
@@ -2,7 +2,7 @@ validates :full_name, :age, :email, :codeacademy_username, :description, :html, :css, :js, :ror, :db,
:programming_others, :english,... | Add spaces in Submission age validator
|
diff --git a/lib/unparser/emitter/float.rb b/lib/unparser/emitter/float.rb
index abc1234..def5678 100644
--- a/lib/unparser/emitter/float.rb
+++ b/lib/unparser/emitter/float.rb
@@ -14,9 +14,10 @@ private
def dispatch
- if value.eql?(INFINITY)
+ case value
+ when INFINITY
wri... | Change to case over if else
|
diff --git a/app/controllers/saml_controller.rb b/app/controllers/saml_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/saml_controller.rb
+++ b/app/controllers/saml_controller.rb
@@ -17,7 +17,7 @@ unless @user.blank?
auto_login @user
User.increment_counter(:visit_count, @user.i... | Use the CourseRouter to retrieve the current course
|
diff --git a/app/controllers/shop_controller.rb b/app/controllers/shop_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/shop_controller.rb
+++ b/app/controllers/shop_controller.rb
@@ -12,9 +12,8 @@
@order = nil
@most_recent_item = nil
- if current_member
- @order = current_member.cur... | Use a guard clasue in shop controller
|
diff --git a/lib/analyze_staff_table.rb b/lib/analyze_staff_table.rb
index abc1234..def5678 100644
--- a/lib/analyze_staff_table.rb
+++ b/lib/analyze_staff_table.rb
@@ -0,0 +1,35 @@+require 'csv'
+
+class AnalyzeStaffTable < Struct.new(:path)
+
+ def contents
+ encoding_options = {
+ invalid: :replace,
+ ... | Add code for parsing/searching educator file dump
+ Useful for hunting for educators with missing / incomplete data
+ i.e. #6
|
diff --git a/lib/certmeister/version.rb b/lib/certmeister/version.rb
index abc1234..def5678 100644
--- a/lib/certmeister/version.rb
+++ b/lib/certmeister/version.rb
@@ -1,7 +1,24 @@-require 'semver'
+begin
-module Certmeister
+ require 'semver'
- VERSION = SemVer.find.format("%M.%m.%p%s") unless defined?(VERSION)... | Work around chick-egg problem with semver2
Our gemspec uses semver2 to get our version number. Bundler uses our
gemspec to get our version unumber. We use bundler to install semver2.
|
diff --git a/app/controllers/concerns/last_active_classroom.rb b/app/controllers/concerns/last_active_classroom.rb
index abc1234..def5678 100644
--- a/app/controllers/concerns/last_active_classroom.rb
+++ b/app/controllers/concerns/last_active_classroom.rb
@@ -13,7 +13,7 @@ if last_active_arr.any?
limit ... | Fix calling first on nil
|
diff --git a/HTAutocompleteTextField.podspec b/HTAutocompleteTextField.podspec
index abc1234..def5678 100644
--- a/HTAutocompleteTextField.podspec
+++ b/HTAutocompleteTextField.podspec
@@ -1,11 +1,11 @@ Pod::Spec.new do |s|
s.name = "HTAutocompleteTextField"
- s.version = "1.2.6"
+ s.version = "1... | Update podspec to point to 1.3.0
|
diff --git a/lib/db_charmer/db_magic.rb b/lib/db_charmer/db_magic.rb
index abc1234..def5678 100644
--- a/lib/db_charmer/db_magic.rb
+++ b/lib/db_charmer/db_magic.rb
@@ -14,9 +14,7 @@ # Set up slaves pool
opt[:slaves] ||= []
opt[:slaves] << opt[:slave] if opt[:slave]
- db_magic_slaves(op... | Enable master-slave stuff only when there are some slaves
|
diff --git a/lib/zipline.rb b/lib/zipline.rb
index abc1234..def5678 100644
--- a/lib/zipline.rb
+++ b/lib/zipline.rb
@@ -18,7 +18,7 @@ module Zipline
def zipline(files, zipname = 'zipline.zip')
zip_generator = ZipGenerator.new(files)
- headers['Content-Disposition'] = "attachment; filename=#{zipname}"
+ h... | Use zip filename in Content-Disposition as quoted string.
|
diff --git a/voicemail.gemspec b/voicemail.gemspec
index abc1234..def5678 100644
--- a/voicemail.gemspec
+++ b/voicemail.gemspec
@@ -17,12 +17,10 @@ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = ["lib"]
- s.add_runtime_dependency %q<adhearsion>, [">= 2.0.0"]
- s.add_r... | Update .gemspec to require adhearsion 2.4, and not require adhearsion-asterisk
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.