diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/helpers/timeline_helper.rb b/app/helpers/timeline_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/timeline_helper.rb
+++ b/app/helpers/timeline_helper.rb
@@ -25,7 +25,7 @@ def detail_link_timeline_content(model)
if model.course.show_see_details_link_in_timeline?
content_tag(:p) ... | Fix broken link in timeline helper
|
diff --git a/app/models/concerns/wp_post.rb b/app/models/concerns/wp_post.rb
index abc1234..def5678 100644
--- a/app/models/concerns/wp_post.rb
+++ b/app/models/concerns/wp_post.rb
@@ -15,6 +15,10 @@ # Use gmt date to ignore timezone settings in WordPress
self.published_at = json['date_gmt']
self.order ... | Allow wp posts to call 'update_post' without saving the model
|
diff --git a/spec/support/shared_examples/redirect_for_non_students.rb b/spec/support/shared_examples/redirect_for_non_students.rb
index abc1234..def5678 100644
--- a/spec/support/shared_examples/redirect_for_non_students.rb
+++ b/spec/support/shared_examples/redirect_for_non_students.rb
@@ -1,39 +1,33 @@ RSpec.shared_... | Use a shared example within a shared example. OMG!
|
diff --git a/lib/new_card.rb b/lib/new_card.rb
index abc1234..def5678 100644
--- a/lib/new_card.rb
+++ b/lib/new_card.rb
@@ -23,7 +23,6 @@ 'idList'=>"#{@list_id}",
'due'=>nil,
'desc'=>'https://buildkite.com/conversation/tc-i18n-hygiene',
- 'labels'=>['name'=>'TC','color'=>'green'],
... | Remove unecessary label values in favour of idLabel
|
diff --git a/lib/rman/cli.rb b/lib/rman/cli.rb
index abc1234..def5678 100644
--- a/lib/rman/cli.rb
+++ b/lib/rman/cli.rb
@@ -8,12 +8,16 @@ store = RDoc::RI::Store.new(RDoc::RI::Paths.system_dir)
store.load_all
options = RDoc::Options.new
- options.op_dir = "doc"
+ options.op_dir = output_d... | Install man pages in ~/.man
|
diff --git a/lib/dressing/runner/base.rb b/lib/dressing/runner/base.rb
index abc1234..def5678 100644
--- a/lib/dressing/runner/base.rb
+++ b/lib/dressing/runner/base.rb
@@ -17,6 +17,8 @@ Dressing.current_session = Capybara::Session.new driver
run_test
update_status
+ ensure
+ drive... | Quit the driver after runs. |
diff --git a/assignments/ruby/crypto-square/example.rb b/assignments/ruby/crypto-square/example.rb
index abc1234..def5678 100644
--- a/assignments/ruby/crypto-square/example.rb
+++ b/assignments/ruby/crypto-square/example.rb
@@ -20,7 +20,7 @@ plaintext_segments.map do |segment|
# There has to be a better way... | Use Range's `...` excluding the size.
|
diff --git a/lib/sunlight.rb b/lib/sunlight.rb
index abc1234..def5678 100644
--- a/lib/sunlight.rb
+++ b/lib/sunlight.rb
@@ -1,4 +1,3 @@-require 'rubygems'
require 'json'
require 'cgi'
require 'ym4r/google_maps/geocoding'
| Remove require 'rubygems' to be a good Ruby citizen. |
diff --git a/lib/lita/handlers/google.rb b/lib/lita/handlers/google.rb
index abc1234..def5678 100644
--- a/lib/lita/handlers/google.rb
+++ b/lib/lita/handlers/google.rb
@@ -8,6 +8,10 @@ route(/^google\s+(.+)/i, :search, command: true, help: {
"google QUERY" => "Return the first Google search result for Q... | Add default value for config attribute.
|
diff --git a/spec/lib/rspec/matcher_file_spec.rb b/spec/lib/rspec/matcher_file_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/rspec/matcher_file_spec.rb
+++ b/spec/lib/rspec/matcher_file_spec.rb
@@ -21,7 +21,9 @@ end
it "writes the contents to the file" do
- #
+ contents = File.read("lib/rspe... | Test contents of matcher file
|
diff --git a/lib/qml/data/query_model.rb b/lib/qml/data/query_model.rb
index abc1234..def5678 100644
--- a/lib/qml/data/query_model.rb
+++ b/lib/qml/data/query_model.rb
@@ -2,11 +2,6 @@ module Data
# {QueryModel} provides a list model implementation with database backends like ActiveRecord.
class QueryModel... | Make cache constants private in QueryModel
|
diff --git a/lib/tasks/data_hygiene.rake b/lib/tasks/data_hygiene.rake
index abc1234..def5678 100644
--- a/lib/tasks/data_hygiene.rake
+++ b/lib/tasks/data_hygiene.rake
@@ -0,0 +1,12 @@+namespace :data_hygiene do
+ desc "See which documents don't have content IDs"
+ task :inspect_content_ids => [:environment] do
+ ... | Add rake task to inspect missing content_ids
`rake data_hygiene:inspect_content_ids` will give you a list of
publishing apps and the number of content items with / without
content_id in the database. We'll use this to verify we're sending the
content_id for all documents.
|
diff --git a/web/lib/assets/umakadata/lib/umakadata/sparql_helper.rb b/web/lib/assets/umakadata/lib/umakadata/sparql_helper.rb
index abc1234..def5678 100644
--- a/web/lib/assets/umakadata/lib/umakadata/sparql_helper.rb
+++ b/web/lib/assets/umakadata/lib/umakadata/sparql_helper.rb
@@ -5,27 +5,18 @@
module SparqlHel... | Revert "retry query on SocketError"
This reverts commit fab9bb3bfc18d8a2aa5b6a0186616cb2f6f8394e.
|
diff --git a/vintner.gemspec b/vintner.gemspec
index abc1234..def5678 100644
--- a/vintner.gemspec
+++ b/vintner.gemspec
@@ -15,7 +15,7 @@ gem.require_paths = ["lib"]
gem.version = Vintner::VERSION
- gem.add_dependency 'active_support'
+ gem.add_dependency 'activesupport', '~> 3.2.6'
gem.add_dependenc... | Use the right activesupport gem
|
diff --git a/lib/browserify_pipeline/transformer/six_to_fiveify.rb b/lib/browserify_pipeline/transformer/six_to_fiveify.rb
index abc1234..def5678 100644
--- a/lib/browserify_pipeline/transformer/six_to_fiveify.rb
+++ b/lib/browserify_pipeline/transformer/six_to_fiveify.rb
@@ -4,7 +4,7 @@ module Transformer
class... | Apply to .js files as well
|
diff --git a/stapler.gemspec b/stapler.gemspec
index abc1234..def5678 100644
--- a/stapler.gemspec
+++ b/stapler.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = "stapler"
- s.version = "0.4.0"
+ s.version = "0.4.1"
s.date = Time.now.strftime('%Y-%m-%d... | Fix caching for super-long bundle URLs |
diff --git a/stretch.gemspec b/stretch.gemspec
index abc1234..def5678 100644
--- a/stretch.gemspec
+++ b/stretch.gemspec
@@ -18,6 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_development_dependency "bundler", "~> 1.3"
+ spec.add_development_d... | Add minitest as a development dependency
|
diff --git a/lyricfy.gemspec b/lyricfy.gemspec
index abc1234..def5678 100644
--- a/lyricfy.gemspec
+++ b/lyricfy.gemspec
@@ -17,7 +17,9 @@ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
+ gem.add_runtime_dependency "rake"
gem.add_runtime_dependency "nokogiri", [">=... | Add Webmock and VCR dependencies
|
diff --git a/addresses.gemspec b/addresses.gemspec
index abc1234..def5678 100644
--- a/addresses.gemspec
+++ b/addresses.gemspec
@@ -5,7 +5,7 @@ s.name = "addresses"
s.authors = ["Wilbert Ribeiro", "Joice Taciana"]
s.email = ["wkelyson@gmail.com", "joicetaciana@gmail.com"]
- s.version = '1... | Upgrade to Rails 6 compatibility
|
diff --git a/lib/emcee/processors/script_processor.rb b/lib/emcee/processors/script_processor.rb
index abc1234..def5678 100644
--- a/lib/emcee/processors/script_processor.rb
+++ b/lib/emcee/processors/script_processor.rb
@@ -18,7 +18,7 @@ private
def inline_scripts(doc)
- doc.css("script").each do |node... | Select only <script>'s with `src` attribute
|
diff --git a/time_service.rb b/time_service.rb
index abc1234..def5678 100644
--- a/time_service.rb
+++ b/time_service.rb
@@ -11,18 +11,18 @@ end
def start_service
- @thread = Thread.new {
+ @thread = Thread.new do
while @active
current_time = Time.new
time = if current_time.min.zer... | Fix identation and use %l in strftime
|
diff --git a/gemdiff.gemspec b/gemdiff.gemspec
index abc1234..def5678 100644
--- a/gemdiff.gemspec
+++ b/gemdiff.gemspec
@@ -21,7 +21,7 @@
spec.add_dependency "launchy", "~> 2.4"
spec.add_dependency "octokit", "~> 4.0"
- spec.add_dependency "thor", "~> 0.19"
+ spec.add_dependency "thor", "~> 1.0"
spec.add... | Bump thor gem in gemspec to "~> 1.0"
|
diff --git a/core/file/stat/zero_spec.rb b/core/file/stat/zero_spec.rb
index abc1234..def5678 100644
--- a/core/file/stat/zero_spec.rb
+++ b/core/file/stat/zero_spec.rb
@@ -0,0 +1,13 @@+require File.expand_path('../../../../spec_helper', __FILE__)
+require File.expand_path('../../../../shared/file/zero', __FILE__)
+req... | Revert "/dev/null is symbolic link on i386-solaris"
This reverts commit 89c50a2583698b361d42584f37db7877992e1b02.
|
diff --git a/files/private-chef-upgrades/001/016_add_org_tables_osc_hash_types.rb b/files/private-chef-upgrades/001/016_add_org_tables_osc_hash_types.rb
index abc1234..def5678 100644
--- a/files/private-chef-upgrades/001/016_add_org_tables_osc_hash_types.rb
+++ b/files/private-chef-upgrades/001/016_add_org_tables_osc_h... | Add partybus migration update db schema to 2.4.0
This adds org association and org user tables.
It also adds the OSC hash password types to the password_hash_type enum.
This is in support of upgrades from OSC.
|
diff --git a/app/controllers/interview_start_time_defence_requests_controller.rb b/app/controllers/interview_start_time_defence_requests_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/interview_start_time_defence_requests_controller.rb
+++ b/app/controllers/interview_start_time_defence_requests_contr... | Refactor interview start time controller to use DefenceRequestConcern methods.
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,5 @@ Books::Application.routes.draw do
- match "auth/:provider/callback" => "sessions#create"
+ match "auth/:provider/callback" => "sessions#create", via: [:get, :post]
get "auth/... | Set explicit methods for match route
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -21,6 +21,7 @@
get "/about", to: "home#about", as: "about_page"
get "/dashboard", to: "dashboard#index", as: "dashboard_page"
+ post "/main_account", to: "accounts#main_account", as: "... | Add route to update main account
|
diff --git a/config/routes.rb b/config/routes.rb
index abc1234..def5678 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -3,7 +3,7 @@ # Frontend routes
namespace :products, :path => Refinery::Products.shop_path do
root to: "products#index", via: :get
- get '/categories/*path', to: 'categories#show',... | Add ability to have custom path for categories
|
diff --git a/toggl-weekly/blockspring.rb b/toggl-weekly/blockspring.rb
index abc1234..def5678 100644
--- a/toggl-weekly/blockspring.rb
+++ b/toggl-weekly/blockspring.rb
@@ -0,0 +1,67 @@+require 'blockspring'
+require 'rest-client'
+require 'json'
+
+def week_start( date, offset_from_sunday=0 )
+ date - (date.wday - of... | Add first slack bot: Toggl-Weekly
Toggl-Weekly os a slackbot running on blockspring. It let's me add a
slackbot without a server and it's easily sharable so others can use it
too which is awesome.
What it does
you get your current weekly hourly report. So how many hours have you
worked. Might be extended shortly but ... |
diff --git a/db/migrate/20141120183514_populate_aleph_id_from_user_attributes.rb b/db/migrate/20141120183514_populate_aleph_id_from_user_attributes.rb
index abc1234..def5678 100644
--- a/db/migrate/20141120183514_populate_aleph_id_from_user_attributes.rb
+++ b/db/migrate/20141120183514_populate_aleph_id_from_user_attri... | Move class eval outside of loop
|
diff --git a/db/migrate/20190630113109_add_confidential_to_applications.rb b/db/migrate/20190630113109_add_confidential_to_applications.rb
index abc1234..def5678 100644
--- a/db/migrate/20190630113109_add_confidential_to_applications.rb
+++ b/db/migrate/20190630113109_add_confidential_to_applications.rb
@@ -0,0 +1,13 @... | Add a `confidential` attribute to oauth applications
|
diff --git a/wak.gemspec b/wak.gemspec
index abc1234..def5678 100644
--- a/wak.gemspec
+++ b/wak.gemspec
@@ -8,8 +8,8 @@ spec.version = Wak::VERSION
spec.authors = ["Bob Van Landuyt"]
spec.email = ["bob@vanlanduyt.co"]
- spec.summary = %q{TODO: Write a short summary. Required.}
- spe... | Add small discriptions to gemspec
|
diff --git a/test/dummy/app/models/category.rb b/test/dummy/app/models/category.rb
index abc1234..def5678 100644
--- a/test/dummy/app/models/category.rb
+++ b/test/dummy/app/models/category.rb
@@ -8,6 +8,13 @@ =end
class Category < ActiveRecord::Base
+
+ ##
+ #
+ #
+
+ attr_protected :permalink, :position, :as =... | Mark permalink and position as protected attributes.
|
diff --git a/knife-bluebox.gemspec b/knife-bluebox.gemspec
index abc1234..def5678 100644
--- a/knife-bluebox.gemspec
+++ b/knife-bluebox.gemspec
@@ -13,8 +13,8 @@ s.email = "support@bluebox.net"
s.homepage = "http://wiki.opscode.com/display/chef"
- s.add_dependency "chef", ">= 0.9.14"
- s.... | Update chef and fog dependency versions, now excludes chef 0.9.x.
This will keep the gem in line with other knife-* plugins using the fog
gem. Upcoming changes will depend on API changes in the Chef gem
starting at 0.10.10.
|
diff --git a/lib/deploytracking.rb b/lib/deploytracking.rb
index abc1234..def5678 100644
--- a/lib/deploytracking.rb
+++ b/lib/deploytracking.rb
@@ -9,7 +9,7 @@ def self.notify(api_key, data)
puts "[DeployTracking] Tracking Deployment to #{DEPLOY_TRACKING_HOST}"
- params = {'api_key' => api_key}
+ params... | Send back the version of the gem |
diff --git a/lib/gnawrnip/rspec.rb b/lib/gnawrnip/rspec.rb
index abc1234..def5678 100644
--- a/lib/gnawrnip/rspec.rb
+++ b/lib/gnawrnip/rspec.rb
@@ -5,18 +5,14 @@ Gnawrnip.ready!
end
- # https://github.com/jnicklas/capybara/blob/master/lib/capybara/rspec.rb
- fetch_current_example = RSpec.respond_to?(:curren... | Remove `get current_example` method for RSpec 2.x
|
diff --git a/lib/gooru/response.rb b/lib/gooru/response.rb
index abc1234..def5678 100644
--- a/lib/gooru/response.rb
+++ b/lib/gooru/response.rb
@@ -1,16 +1,41 @@ module Gooru
class Response
attr_reader :data
+ attr_reader :status
def initialize(weary_response)
@data = parse(weary_response.body... | Handle more Gooru error possibilities.
|
diff --git a/lib/generators/nifty/layout/templates/error_messages_helper.rb b/lib/generators/nifty/layout/templates/error_messages_helper.rb
index abc1234..def5678 100644
--- a/lib/generators/nifty/layout/templates/error_messages_helper.rb
+++ b/lib/generators/nifty/layout/templates/error_messages_helper.rb
@@ -7,8 +7,... | Use html_safe translated messages. This will let you use this format: "<strong>%{attribute}</strong> %{message}" and renders it properly
|
diff --git a/test/system/sessions_test.rb b/test/system/sessions_test.rb
index abc1234..def5678 100644
--- a/test/system/sessions_test.rb
+++ b/test/system/sessions_test.rb
@@ -0,0 +1,40 @@+require 'application_system_test_case'
+
+class SessionsTest < ApplicationSystemTestCase
+ setup do
+ create :user
+ end
+
+ ... | Write system tests for authentication
|
diff --git a/test/test_jekyll_mentions.rb b/test/test_jekyll_mentions.rb
index abc1234..def5678 100644
--- a/test/test_jekyll_mentions.rb
+++ b/test/test_jekyll_mentions.rb
@@ -44,6 +44,7 @@ end
should "not touch non-HTML pages" do
+ @mentions.generate(@site)
assert_equal "test @test test", page_with_nam... | Make sure to generate the site in the test about the non-HTML files.
|
diff --git a/Kiwi.podspec b/Kiwi.podspec
index abc1234..def5678 100644
--- a/Kiwi.podspec
+++ b/Kiwi.podspec
@@ -9,6 +9,8 @@ s.framework = 'SenTestingKit'
s.ios.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '$(inherited) "$(SDKROOT)/Developer/Library/Frameworks" "$(DEVELOPER_LIBRARY_DIR)/Frameworks"' }
s.os... | Update deployment target in pod spec
|
diff --git a/test/unit/contact_test.rb b/test/unit/contact_test.rb
index abc1234..def5678 100644
--- a/test/unit/contact_test.rb
+++ b/test/unit/contact_test.rb
@@ -11,11 +11,9 @@ end
test "should import contact details from contactotron" do
- %w[ http https ].each do |protocol|
- FakeWeb.register_uri(:g... | Make test work regardless of environment.
For reasons that aren't quite clear to me, the server returned by
Plek.current.find("contactotron") is different on the CI server. This change
makes the test work there, too.
|
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb
index abc1234..def5678 100644
--- a/config/initializers/sidekiq.rb
+++ b/config/initializers/sidekiq.rb
@@ -1,11 +1,9 @@-if Rails.env.production? || Rails.env.staging?
- redis_jobs_url = ENV.fetch("OFN_REDIS_JOBS_URL", "redis://localhost:6381... | Configure Sidekiq in development also
|
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb
index abc1234..def5678 100644
--- a/config/initializers/sidekiq.rb
+++ b/config/initializers/sidekiq.rb
@@ -1,6 +1,6 @@ require "sidekiq"
-redis_config = { namespace: "signon_sidekiq" }
+redis_config = { namespace: "signon" }
redis_config[:... | Change Redis namespace to match app name.
|
diff --git a/c7decrypt.gemspec b/c7decrypt.gemspec
index abc1234..def5678 100644
--- a/c7decrypt.gemspec
+++ b/c7decrypt.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = 'c7decrypt'
- s.version = '0.0.1'
+ s.version = '0.0.2'
s.authors = ["Jonathan Claudius"]
s.date = '2012-09-07'
s.email = ... | Bump gem version to 0.0.2
|
diff --git a/rails_reseed.gemspec b/rails_reseed.gemspec
index abc1234..def5678 100644
--- a/rails_reseed.gemspec
+++ b/rails_reseed.gemspec
@@ -20,4 +20,5 @@
spec.add_development_dependency "bundler", "~> 1.7"
spec.add_development_dependency "rake", "~> 10.0"
+ spec.add_development_dependency "rspec", "~> 3.2.... | Add rspec gem to dev dependencies
|
diff --git a/week-4/good-guess/my_solution.rb b/week-4/good-guess/my_solution.rb
index abc1234..def5678 100644
--- a/week-4/good-guess/my_solution.rb
+++ b/week-4/good-guess/my_solution.rb
@@ -8,6 +8,6 @@ if argument == 42
return true
else
- return false
+ return false
end
end
| Fix spacing on good guess
|
diff --git a/roles/fullsave.rb b/roles/fullsave.rb
index abc1234..def5678 100644
--- a/roles/fullsave.rb
+++ b/roles/fullsave.rb
@@ -5,6 +5,30 @@ :hosted_by => "FullSave",
:location => "Toulouse, France",
:networking => {
+ :firewall => {
+ :inet => [
+ {
+ :action => "ACCEPT",
+ ... | Enable SNMP access to naga
|
diff --git a/lib/atlas/molecule_node.rb b/lib/atlas/molecule_node.rb
index abc1234..def5678 100644
--- a/lib/atlas/molecule_node.rb
+++ b/lib/atlas/molecule_node.rb
@@ -15,6 +15,9 @@
attribute :from_energy, NodeAttributes::EnergyToMolecules
+ # Molecule nodes define output capacity; the capacity of all non-l... | Add `output_capacity` to molecule nodes
|
diff --git a/lib/color_decomposition.rb b/lib/color_decomposition.rb
index abc1234..def5678 100644
--- a/lib/color_decomposition.rb
+++ b/lib/color_decomposition.rb
@@ -4,6 +4,9 @@
module ColorDecomposition
def self.quadtree(path, similarity)
+ unless similarity.between?(0, 100)
+ raise ArgumentError, 'Sim... | Raise error if similarity value is not between 0 and 100
|
diff --git a/lib/http/request_stream.rb b/lib/http/request_stream.rb
index abc1234..def5678 100644
--- a/lib/http/request_stream.rb
+++ b/lib/http/request_stream.rb
@@ -13,19 +13,12 @@ end
end
- # Stream the request to a socket
- def stream
- self.add_headers
-
+ def add_body_type_headers
... | Break body type specific header appending into own function
this is done because I'm going to make it join them all with CRLFs
in a bit, but for now just breaking things into their own methods
Signed-off-by: Sam Phippen <e5a09176608998a68778e11d5021c871e8fae93c@googlemail.com>
|
diff --git a/lib/maildir/unique_name.rb b/lib/maildir/unique_name.rb
index abc1234..def5678 100644
--- a/lib/maildir/unique_name.rb
+++ b/lib/maildir/unique_name.rb
@@ -45,19 +45,6 @@ Socket.gethostname
end
- def secure_random(bytes=8)
- # File.read("/dev/urandom", bytes).unpack("H*")[0]
- raise "Not im... | Remove unused methods in UniqueName |
diff --git a/lib/pacer/transform/cap.rb b/lib/pacer/transform/cap.rb
index abc1234..def5678 100644
--- a/lib/pacer/transform/cap.rb
+++ b/lib/pacer/transform/cap.rb
@@ -14,17 +14,29 @@
protected
- def attach_pipe(end_pipe)
+ def pipe_source
+ s, e = super
+ if not s and not e
+ ... | Fix the creation of SideEffectCapPipe directly after the sources. |
diff --git a/seed_tray.gemspec b/seed_tray.gemspec
index abc1234..def5678 100644
--- a/seed_tray.gemspec
+++ b/seed_tray.gemspec
@@ -18,7 +18,7 @@ spec.test_files = Dir["test/**/*"]
spec.files = Dir["{lib,app}/**/*"]
- spec.add_dependency "rails", "~> 4.2.5"
+ spec.add_dependency "rails", ">= 4.0"
spec.a... | Change rails dependency to all rails 5.o to be used
|
diff --git a/lib/tasks/mongo_rates.rake b/lib/tasks/mongo_rates.rake
index abc1234..def5678 100644
--- a/lib/tasks/mongo_rates.rake
+++ b/lib/tasks/mongo_rates.rake
@@ -4,7 +4,7 @@ desc 'Update Recommendations.'
task :recommendations, [:person, :id, :strategy] => :environment do |t, args|
options = {}
- op... | Fix issue with the rake task
An error would be raised whenever you didn't specify the strategy.
This'll properly convert the strategy to a symbol only when it is
specified.
|
diff --git a/lib/tasks/set_locales.rake b/lib/tasks/set_locales.rake
index abc1234..def5678 100644
--- a/lib/tasks/set_locales.rake
+++ b/lib/tasks/set_locales.rake
@@ -0,0 +1,7 @@+task :set_locales => :environment do
+ Rails.logger.info("-------- Set locales --------")
+ Topic.all.each do |t|
+ t.update!(locale: ... | Set locale of topic and user
|
diff --git a/core/time/shared/gmt_offset.rb b/core/time/shared/gmt_offset.rb
index abc1234..def5678 100644
--- a/core/time/shared/gmt_offset.rb
+++ b/core/time/shared/gmt_offset.rb
@@ -4,4 +4,25 @@ Time.new.send(@method).should == 10800
end
end
+
+ it "returns the correct offset for US Eastern time zon... | Add rudimentary checks for daylight savings time zone changes. |
diff --git a/lib/harfbuzz.rb b/lib/harfbuzz.rb
index abc1234..def5678 100644
--- a/lib/harfbuzz.rb
+++ b/lib/harfbuzz.rb
@@ -1,7 +1,46 @@-require 'harfbuzz.bundle'
+require 'ffi'
-# require 'harfbuzz/blob'
-# require 'harfbuzz/face'
-# require 'harfbuzz/font'
-# require 'harfbuzz/buffer'
-# require 'harfbuzz/shaping'... | Revert "Move version checking into extension."
This reverts commit a1c17fd0d328ed6572f70853227eed0d5bf02043.
|
diff --git a/spec/units/stacker_bee/middleware/raise_on_http_errors_spec.rb b/spec/units/stacker_bee/middleware/raise_on_http_errors_spec.rb
index abc1234..def5678 100644
--- a/spec/units/stacker_bee/middleware/raise_on_http_errors_spec.rb
+++ b/spec/units/stacker_bee/middleware/raise_on_http_errors_spec.rb
@@ -1,5 +1,... | Use `skip` instead of `pending`
|
diff --git a/spec/brewery_db/resources/search_spec.rb b/spec/brewery_db/resources/search_spec.rb
index abc1234..def5678 100644
--- a/spec/brewery_db/resources/search_spec.rb
+++ b/spec/brewery_db/resources/search_spec.rb
@@ -28,13 +28,13 @@ end
end
- context "#upc", :vcr do
+ context '#upc', :vcr do
sub... | Make consistent use of single-quotes
|
diff --git a/spec/controllers/tags_controller_spec.rb b/spec/controllers/tags_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/tags_controller_spec.rb
+++ b/spec/controllers/tags_controller_spec.rb
@@ -23,11 +23,6 @@ @tag = create(:tag)
@tag.questions << create(:question)
end
- ... | Add passing tests; final fix
|
diff --git a/spec/routing/attachments_routing_spec.rb b/spec/routing/attachments_routing_spec.rb
index abc1234..def5678 100644
--- a/spec/routing/attachments_routing_spec.rb
+++ b/spec/routing/attachments_routing_spec.rb
@@ -8,13 +8,9 @@
it "recognizes and generates #download" do
{
- :get => "/uploa... | Update the spec for the attachment download.
|
diff --git a/spec/serializers/item_serializer_spec.rb b/spec/serializers/item_serializer_spec.rb
index abc1234..def5678 100644
--- a/spec/serializers/item_serializer_spec.rb
+++ b/spec/serializers/item_serializer_spec.rb
@@ -2,9 +2,10 @@
require 'rails_helper'
-RSpec.describe Bragi::UserSerializer do
- let(:item) ... | Handle change in AMS 0.10.6
|
diff --git a/mongoid.gemspec b/mongoid.gemspec
index abc1234..def5678 100644
--- a/mongoid.gemspec
+++ b/mongoid.gemspec
@@ -20,7 +20,7 @@ s.add_dependency("activemodel", ["~> 3.1"])
s.add_dependency("tzinfo", ["~> 0.3.22"])
s.add_dependency("moped", ["~> 1.0.0.rc"])
- s.add_dependency("origin", ["~> 1.0.0.rc"... | Update origin dependency to 1.0.0
|
diff --git a/mongoid.gemspec b/mongoid.gemspec
index abc1234..def5678 100644
--- a/mongoid.gemspec
+++ b/mongoid.gemspec
@@ -21,7 +21,7 @@
s.add_dependency("activemodel", ["~> 4.0.0.rc1"])
s.add_dependency("tzinfo", ["~> 0.3.22"])
- s.add_dependency("moped", ["~> 1.4.2"])
+ s.add_dependency("moped", ["~> 1.4"]... | Allow gemspec to use 1.x mopeds higher than 1.4
|
diff --git a/db/migrate/1424991704_add_htcat_source.rb b/db/migrate/1424991704_add_htcat_source.rb
index abc1234..def5678 100644
--- a/db/migrate/1424991704_add_htcat_source.rb
+++ b/db/migrate/1424991704_add_htcat_source.rb
@@ -0,0 +1,11 @@+Sequel.migration do
+ no_transaction
+
+ up do
+ execute "ALTER TYPE targ... | Make htcat valid transfer source
|
diff --git a/mongoid.gemspec b/mongoid.gemspec
index abc1234..def5678 100644
--- a/mongoid.gemspec
+++ b/mongoid.gemspec
@@ -14,6 +14,7 @@ s.summary = "Elegant Persistance in Ruby for MongoDB."
s.description = "Mongoid is an ODM (Object Document Mapper) Framework for MongoDB, written in Ruby."
+ s.required_... | Add minimum ruby version requirement
This only specifies "1.9" rather than "1.9.3" since it appears
that JRuby in 1.9 mode reports its version as "1.9", without
the third version number segment.
|
diff --git a/lib/core_ext.rb b/lib/core_ext.rb
index abc1234..def5678 100644
--- a/lib/core_ext.rb
+++ b/lib/core_ext.rb
@@ -1,5 +1,6 @@-require 'core_ext/kernel'
-require 'core_ext/pathname'
-require 'core_ext/string'
-require 'core_ext/array'
-require 'core_ext/argv'
+require_relative 'core_ext/kernel'
+require_relat... | Use relative_requires for lib integrity
|
diff --git a/resources/chef-repo/site-cookbooks/mysql_cookbook/recipes/default.rb b/resources/chef-repo/site-cookbooks/mysql_cookbook/recipes/default.rb
index abc1234..def5678 100644
--- a/resources/chef-repo/site-cookbooks/mysql_cookbook/recipes/default.rb
+++ b/resources/chef-repo/site-cookbooks/mysql_cookbook/recipe... | Create site-cookbook for delete unknown user.
|
diff --git a/test/integration/ohaiplugins/serverspec/localhost/sshd_spec.rb b/test/integration/ohaiplugins/serverspec/localhost/sshd_spec.rb
index abc1234..def5678 100644
--- a/test/integration/ohaiplugins/serverspec/localhost/sshd_spec.rb
+++ b/test/integration/ohaiplugins/serverspec/localhost/sshd_spec.rb
@@ -4,7 +4,... | Fix the fix for the sshd test
|
diff --git a/lib/pushable.rb b/lib/pushable.rb
index abc1234..def5678 100644
--- a/lib/pushable.rb
+++ b/lib/pushable.rb
@@ -44,21 +44,23 @@ end
module ClassMethods
+ attr_accessor :pushes
+
+ def pushable
+ @pushes = { create: :collections,
+ update: [ :collections, :instances ],
+ ... | Change Default Push Events and Channels
|
diff --git a/app/helpers/actions_helper.rb b/app/helpers/actions_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/actions_helper.rb
+++ b/app/helpers/actions_helper.rb
@@ -29,7 +29,9 @@ def action_names(action)
actions = []
action.actions.each do |action_name|
- actions << action_label(action_... | Check if action_label has a value because array contains empty strings.
|
diff --git a/app/models/service_version.rb b/app/models/service_version.rb
index abc1234..def5678 100644
--- a/app/models/service_version.rb
+++ b/app/models/service_version.rb
@@ -3,13 +3,19 @@ belongs_to :user
validates :spec, swagger_spec: true
before_create :set_version_number
- before_validation :read_spe... | Refactor JSON parsing of spec file to attr setter
This way we avoid trying to parse a file on other flows (such as service version
updates when its state change)
|
diff --git a/Currier.podspec b/Currier.podspec
index abc1234..def5678 100644
--- a/Currier.podspec
+++ b/Currier.podspec
@@ -9,7 +9,7 @@ s.version = ‘0.2.0’
s.summary = 'Fantastically easy function currying in Swift.’
s.description = <<-DESC
-Produces a curried version of almost any other... | Update podspec file with new parameter count.
|
diff --git a/builder/test-integration/spec/hypriotos-image/cmdline_serial_spec.rb b/builder/test-integration/spec/hypriotos-image/cmdline_serial_spec.rb
index abc1234..def5678 100644
--- a/builder/test-integration/spec/hypriotos-image/cmdline_serial_spec.rb
+++ b/builder/test-integration/spec/hypriotos-image/cmdline_se... | Fix test for kgdboc= entry in cmdline.txt
Signed-off-by: Dieter Reuter <554783fc552b5b2a46dd3d7d7b9b2cce9a82c122@me.com>
|
diff --git a/app/controllers/document_search_engine/documents_controller.rb b/app/controllers/document_search_engine/documents_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/document_search_engine/documents_controller.rb
+++ b/app/controllers/document_search_engine/documents_controller.rb
@@ -7,6 +7,... | Use full-text search in controller
|
diff --git a/script/generate-permitted-next-nodes-for-all-flows.rb b/script/generate-permitted-next-nodes-for-all-flows.rb
index abc1234..def5678 100644
--- a/script/generate-permitted-next-nodes-for-all-flows.rb
+++ b/script/generate-permitted-next-nodes-for-all-flows.rb
@@ -0,0 +1,11 @@+flows = SmartAnswer::FlowRegis... | Add script to generate permitted next nodes for all flows
I'm about to change all the flows to use the mechanism for automatically
detecting permitted next nodes. Although the existing tests, particularly
the regression tests should give a lot of confidence that nothing gets
broken, I'm hoping to compare the results ... |
diff --git a/LolayKat.podspec b/LolayKat.podspec
index abc1234..def5678 100644
--- a/LolayKat.podspec
+++ b/LolayKat.podspec
@@ -16,7 +16,6 @@ }
s.source_files = '*.{h,m}'
s.requires_arc = true
- s.frameworks = 'XCTest','Foundation', 'QuartzCore', 'EventKit', 'UIKit'
+ s.frameworks = 'QuartzCore... | Update podspec to remove XCTest
|
diff --git a/examples/address_book/app/schemas/contacts_controller_schema.rb b/examples/address_book/app/schemas/contacts_controller_schema.rb
index abc1234..def5678 100644
--- a/examples/address_book/app/schemas/contacts_controller_schema.rb
+++ b/examples/address_book/app/schemas/contacts_controller_schema.rb
@@ -1,7... | Adjust to new DSL syntax.
|
diff --git a/test/controllers/maps_controller_test.rb b/test/controllers/maps_controller_test.rb
index abc1234..def5678 100644
--- a/test/controllers/maps_controller_test.rb
+++ b/test/controllers/maps_controller_test.rb
@@ -2,7 +2,7 @@
class MapsControllerTest < ActionDispatch::IntegrationTest
test "loads index J... | Make test more explicit with exact path
|
diff --git a/bosh_cli_plugin_aws/migrations/20130412183544_create_rds_dbs.rb b/bosh_cli_plugin_aws/migrations/20130412183544_create_rds_dbs.rb
index abc1234..def5678 100644
--- a/bosh_cli_plugin_aws/migrations/20130412183544_create_rds_dbs.rb
+++ b/bosh_cli_plugin_aws/migrations/20130412183544_create_rds_dbs.rb
@@ -8,7... | Revert "Revert "Boostrap no longer creates an RDS database for a public mysql offering.""
This reverts commit 952bb0c6d3118e1231689f90e2b87048ee83bf22.
|
diff --git a/test/integration/mobile_messages_test.rb b/test/integration/mobile_messages_test.rb
index abc1234..def5678 100644
--- a/test/integration/mobile_messages_test.rb
+++ b/test/integration/mobile_messages_test.rb
@@ -6,4 +6,14 @@
class MobileMessagesTest < MobileIntegrationTest
include MessagingTests
+
+ ... | Fix the cookie bar failure in messaging tests
```
Capybara::Poltergeist::MouseEventFailed: Firing a click at co-ordinates
[30.5, 433.5] failed. Poltergeist detected another element with CSS
selector 'html body div#cookie-bar p' at this position. It may be
overlapping the element you are trying to interact with. If you... |
diff --git a/each_in_batches.gemspec b/each_in_batches.gemspec
index abc1234..def5678 100644
--- a/each_in_batches.gemspec
+++ b/each_in_batches.gemspec
@@ -20,6 +20,6 @@
spec.add_dependency "activerecord", ">= 3.2", "<= 5.2.3"
spec.add_development_dependency "bundler"
- spec.add_development_dependency "rake", ... | Update rake to version 13.0.4 |
diff --git a/db/migrate/20160902112213_add_locale_to_announcements.rb b/db/migrate/20160902112213_add_locale_to_announcements.rb
index abc1234..def5678 100644
--- a/db/migrate/20160902112213_add_locale_to_announcements.rb
+++ b/db/migrate/20160902112213_add_locale_to_announcements.rb
@@ -2,6 +2,6 @@
class AddLocaleTo... | Fix migration for better reversibility
|
diff --git a/panties.gemspec b/panties.gemspec
index abc1234..def5678 100644
--- a/panties.gemspec
+++ b/panties.gemspec
@@ -19,6 +19,7 @@ spec.require_paths = ["lib"]
spec.add_dependency 'httparty', '~> 0.13.0'
+ spec.add_dependency 'nokogiri', '~> 1.4'
spec.add_development_dependency "bundler", "~> 1.6"
... | Add nokogiri to gem dependencies. |
diff --git a/packstack/puppet/modules/packstack/lib/facter/is_virtual_packstack.rb b/packstack/puppet/modules/packstack/lib/facter/is_virtual_packstack.rb
index abc1234..def5678 100644
--- a/packstack/puppet/modules/packstack/lib/facter/is_virtual_packstack.rb
+++ b/packstack/puppet/modules/packstack/lib/facter/is_virt... | Revert "Better Hardware Virt Support checking"
is_virtual_packstack custom fact checks if packstack is running on a
virtualized system. So checking for 'vmx' or 'svm' flags is useless !
This reverts commit 5c357a8dd3c04a4eac7f9a106ae64ea5bc38eecc.
Change-Id: I81f9444a787712cb1c5e676256d6a7c6ebdf84bf
|
diff --git a/UITextView+UIControl.podspec b/UITextView+UIControl.podspec
index abc1234..def5678 100644
--- a/UITextView+UIControl.podspec
+++ b/UITextView+UIControl.podspec
@@ -1,5 +1,11 @@ Pod::Spec.new do |s|
s.name = 'UITextView+UIControl'
+ s.summary = 'A UIControl-like API addition to UITextView.... | Update podspec to pass linter
|
diff --git a/app/controllers/renalware/clinical_summaries_controller.rb b/app/controllers/renalware/clinical_summaries_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/renalware/clinical_summaries_controller.rb
+++ b/app/controllers/renalware/clinical_summaries_controller.rb
@@ -8,7 +8,7 @@ def sho... | Use the medications scope for clinical summary
Resolves #519
|
diff --git a/exercises/rna-transcription/.meta/generator/rna_transcription_case.rb b/exercises/rna-transcription/.meta/generator/rna_transcription_case.rb
index abc1234..def5678 100644
--- a/exercises/rna-transcription/.meta/generator/rna_transcription_case.rb
+++ b/exercises/rna-transcription/.meta/generator/rna_trans... | Remove exception test generator for rna transcription exercise
|
diff --git a/db/migrate/20130329200919_create_consultations_variants.rb b/db/migrate/20130329200919_create_consultations_variants.rb
index abc1234..def5678 100644
--- a/db/migrate/20130329200919_create_consultations_variants.rb
+++ b/db/migrate/20130329200919_create_consultations_variants.rb
@@ -1,6 +1,8 @@ class Creat... | Fix the migration - we need id column |
diff --git a/db/migrate/20210211115125_migrate_shipment_fees_to_shipments.rb b/db/migrate/20210211115125_migrate_shipment_fees_to_shipments.rb
index abc1234..def5678 100644
--- a/db/migrate/20210211115125_migrate_shipment_fees_to_shipments.rb
+++ b/db/migrate/20210211115125_migrate_shipment_fees_to_shipments.rb
@@ -1,4... | Add model definition to migration
|
diff --git a/development-vm/replication/close_and_delete_old_indices.rb b/development-vm/replication/close_and_delete_old_indices.rb
index abc1234..def5678 100644
--- a/development-vm/replication/close_and_delete_old_indices.rb
+++ b/development-vm/replication/close_and_delete_old_indices.rb
@@ -12,7 +12,7 @@ resp = ... | Deal with edge case when index doesn't exist
|
diff --git a/app/controllers/line_controller.rb b/app/controllers/line_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/line_controller.rb
+++ b/app/controllers/line_controller.rb
@@ -1,4 +1,10 @@ class LineController < ApplicationController
def callback
+ unless Line::Callback.validate_signature... | Add - Add Line callback
|
diff --git a/examples/address_book/app/controllers/application_controller.rb b/examples/address_book/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/examples/address_book/app/controllers/application_controller.rb
+++ b/examples/address_book/app/controllers/application_controller.rb
@@ -2,4... | Use request validation error handler.
|
diff --git a/app/controllers/api_controller.rb b/app/controllers/api_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api_controller.rb
+++ b/app/controllers/api_controller.rb
@@ -14,7 +14,11 @@
def set_content_type
if ['json', 'xml', 'msgpack'].include? params[:format].to_s
- response.co... | Fix api controller content types |
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -1,17 +1,15 @@ class HomeController < ApplicationController
-
+
#@contact_form.request = request
def index
-... | Remove contacto from show action
|
diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/home_controller.rb
+++ b/app/controllers/home_controller.rb
@@ -7,7 +7,7 @@ skip_before_filter :ensure_org_url_if_org_user
def app_status
- return head(500) if Cartodb.confi... | Return 503 code if disable file is used (instead of 500)
|
diff --git a/app/controllers/pacs_controller.rb b/app/controllers/pacs_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/pacs_controller.rb
+++ b/app/controllers/pacs_controller.rb
@@ -1,4 +1,8 @@ class PacsController < EmbeddedToolsController
+ def canonical
+ "https://www.moneyhelper.org.uk/#{loca... | Set canonical url for PACS
|
diff --git a/activerecord-stream.gemspec b/activerecord-stream.gemspec
index abc1234..def5678 100644
--- a/activerecord-stream.gemspec
+++ b/activerecord-stream.gemspec
@@ -8,9 +8,9 @@ spec.version = ActiveRecord::Stream::VERSION
spec.authors = ["Scott Fleckenstein"]
spec.email = ["nullstyle... | Update gemspec descriptions and dependencies
|
diff --git a/integration-tests/apps/alacarte/job-timeout/long_running_job.rb b/integration-tests/apps/alacarte/job-timeout/long_running_job.rb
index abc1234..def5678 100644
--- a/integration-tests/apps/alacarte/job-timeout/long_running_job.rb
+++ b/integration-tests/apps/alacarte/job-timeout/long_running_job.rb
@@ -3,2... | Use a CountDownLatch instead of sleep for jobs_timeout_spec
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.