diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/serializers/full_manga_serializer.rb b/app/serializers/full_manga_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/full_manga_serializer.rb
+++ b/app/serializers/full_manga_serializer.rb
@@ -2,10 +2,10 @@ embed :ids, include: true
attributes :cover_image,
- :cover_im... | Fix serializer to properly serialize relationship for castings
|
diff --git a/SharedInstanceGCD.podspec b/SharedInstanceGCD.podspec
index abc1234..def5678 100644
--- a/SharedInstanceGCD.podspec
+++ b/SharedInstanceGCD.podspec
@@ -1,11 +1,11 @@ Pod::Spec.new do |s|
s.name = "SharedInstanceGCD"
- s.version = "1.0.1"
+ s.version = "1.0.2"
s.summary = "A c... | Fix tag reference in podspec
Thanks to @Keithbsmiley for the tip to keep it in sync with the
podspec version.
|
diff --git a/spec/class2/exercise6_spec.rb b/spec/class2/exercise6_spec.rb
index abc1234..def5678 100644
--- a/spec/class2/exercise6_spec.rb
+++ b/spec/class2/exercise6_spec.rb
@@ -4,19 +4,42 @@ end
before do
- allow_any_instance_of(Kernel).to receive(:gets).and_return('i want a raise')
+ allow_any_instanc... | Improve specs for class 2 exercise 6
|
diff --git a/spec/controller_macro_spec.rb b/spec/controller_macro_spec.rb
index abc1234..def5678 100644
--- a/spec/controller_macro_spec.rb
+++ b/spec/controller_macro_spec.rb
@@ -1,6 +1,12 @@ require 'spec_helper'
describe 'serve_resource', type: :controller do
+ shared_examples "a controller serving the User cla... | Use a shared example to DRY up specs. |
diff --git a/spec/first_click_free_spec.rb b/spec/first_click_free_spec.rb
index abc1234..def5678 100644
--- a/spec/first_click_free_spec.rb
+++ b/spec/first_click_free_spec.rb
@@ -4,6 +4,6 @@ describe "#permitted_domains" do
subject { described_class.permitted_domains }
it { should have_at_least(10).items ... | Update spec to check for all search providers listed in domains.yml, not just google
|
diff --git a/sprockets-illusionist.gemspec b/sprockets-illusionist.gemspec
index abc1234..def5678 100644
--- a/sprockets-illusionist.gemspec
+++ b/sprockets-illusionist.gemspec
@@ -20,5 +20,5 @@
spec.add_development_dependency 'bundler', '~> 1.5'
spec.add_development_dependency 'rake'
- spec.add_dependency 'spr... | Support sprockets up to 3.0
|
diff --git a/spec/routing/targets_routing_spec.rb b/spec/routing/targets_routing_spec.rb
index abc1234..def5678 100644
--- a/spec/routing/targets_routing_spec.rb
+++ b/spec/routing/targets_routing_spec.rb
@@ -0,0 +1,34 @@+require 'spec_helper'
+
+describe TargetsController do
+ describe "routing" do
+
+ it "#index"... | Add routing spec for targets
|
diff --git a/spec/system/types/mysql_user_spec.rb b/spec/system/types/mysql_user_spec.rb
index abc1234..def5678 100644
--- a/spec/system/types/mysql_user_spec.rb
+++ b/spec/system/types/mysql_user_spec.rb
@@ -0,0 +1,35 @@+require 'spec_helper_system'
+
+describe 'mysql_user' do
+
+ describe 'setup' do
+ it 'should ... | Add rspec-system test for mysql_user.
|
diff --git a/db/migrate/20140617193351_add_and_remove_indexes_on_topic_links.rb b/db/migrate/20140617193351_add_and_remove_indexes_on_topic_links.rb
index abc1234..def5678 100644
--- a/db/migrate/20140617193351_add_and_remove_indexes_on_topic_links.rb
+++ b/db/migrate/20140617193351_add_and_remove_indexes_on_topic_link... | Add index on topic_links post_id. Remove a redundant index.
|
diff --git a/db/migrate/20200309222710_add_root_account_id_to_lti_line_items.rb b/db/migrate/20200309222710_add_root_account_id_to_lti_line_items.rb
index abc1234..def5678 100644
--- a/db/migrate/20200309222710_add_root_account_id_to_lti_line_items.rb
+++ b/db/migrate/20200309222710_add_root_account_id_to_lti_line_item... | Add root_account_id to Lti::LineItems table
closes PLAT-5481
flag=none
Test plan
- n/a
Change-Id: I0be294ede5e44d91c8d2edc29728df115fa04ced
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/229399
Tested-by: Service Cloud Jenkins <9144042a601061f88f1e1d7a1753ea3e2972119d@instructure.com>
Reviewed-by: Weston... |
diff --git a/core/spec/poltergeist_style_overrides.rb b/core/spec/poltergeist_style_overrides.rb
index abc1234..def5678 100644
--- a/core/spec/poltergeist_style_overrides.rb
+++ b/core/spec/poltergeist_style_overrides.rb
@@ -4,8 +4,8 @@ (<<-'SNIPPET'
<style>
* { transition: none !important; }
- ... | Use a monospace font to avoid kerning issues.
|
diff --git a/spec/codeclimate_ci/api_requester_spec.rb b/spec/codeclimate_ci/api_requester_spec.rb
index abc1234..def5678 100644
--- a/spec/codeclimate_ci/api_requester_spec.rb
+++ b/spec/codeclimate_ci/api_requester_spec.rb
@@ -21,4 +21,18 @@ expect(WebMock).to have_requested(:get, endpoint)
end
end
+
+ ... | Add spec for connection_established method in api requester spec
|
diff --git a/spec/codeclimate_ci/configuration_spec.rb b/spec/codeclimate_ci/configuration_spec.rb
index abc1234..def5678 100644
--- a/spec/codeclimate_ci/configuration_spec.rb
+++ b/spec/codeclimate_ci/configuration_spec.rb
@@ -0,0 +1,27 @@+require 'spec_helper'
+
+module CodeclimateCi
+ describe Configuration do
+ ... | Add spec for Configuration class
|
diff --git a/app/forms/rubygem_form.rb b/app/forms/rubygem_form.rb
index abc1234..def5678 100644
--- a/app/forms/rubygem_form.rb
+++ b/app/forms/rubygem_form.rb
@@ -1,8 +1,19 @@ require 'reform/rails'
class ExistsInRubygemsDotOrgValidator < ActiveModel::EachValidator
- def validate_each(record, attribute, value)
+ ... | Check if gem name has valid format
|
diff --git a/app/models/choice_user.rb b/app/models/choice_user.rb
index abc1234..def5678 100644
--- a/app/models/choice_user.rb
+++ b/app/models/choice_user.rb
@@ -1,4 +1,14 @@ class ChoiceUser < ActiveRecord::Base
belongs_to :user
belongs_to :choice
+
+ after_create :add_survey_users_record
+
+ private
+
+ d... | Add trigger to ChoiceUser model to auto-create SurveyUser records
|
diff --git a/tests.rb b/tests.rb
index abc1234..def5678 100644
--- a/tests.rb
+++ b/tests.rb
@@ -1,3 +1,5 @@+#!/usr/bin/env ruby
+
utf = IO.read("index.html")
em = utf.scan(/<em[^>]*>&#([^;]*);<\/em>/)
| Add ruby shebang to test and chmod +x
|
diff --git a/app/controllers/rhinoart/omniauth_callbacks_controller.rb b/app/controllers/rhinoart/omniauth_callbacks_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/rhinoart/omniauth_callbacks_controller.rb
+++ b/app/controllers/rhinoart/omniauth_callbacks_controller.rb
@@ -7,7 +7,10 @@
if @us... | Make omniauth_callbacks redirect after sign_in
|
diff --git a/app/services/external_api_ambassadors/uber_api_service.rb b/app/services/external_api_ambassadors/uber_api_service.rb
index abc1234..def5678 100644
--- a/app/services/external_api_ambassadors/uber_api_service.rb
+++ b/app/services/external_api_ambassadors/uber_api_service.rb
@@ -18,7 +18,7 @@ end
de... | Fix uber service nil bug
|
diff --git a/features/step_definitions/setup_steps.rb b/features/step_definitions/setup_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/setup_steps.rb
+++ b/features/step_definitions/setup_steps.rb
@@ -1,5 +1,5 @@ Given /^the application is set up$/ do
- # Using lvh.me to give us automatic resol... | Use a .com domain that belongs to us for localhost resolution.
Enough of dealing with funny domains like smackaho.st and lvh.me
run by third parties.
(cherry picked from commit 9f83156bc7bf55351e24bf902fe28d5baa195266)
|
diff --git a/features/step_definitions/setup_steps.rb b/features/step_definitions/setup_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/setup_steps.rb
+++ b/features/step_definitions/setup_steps.rb
@@ -1,5 +1,5 @@ Given /^the application is set up$/ do
- # Using smackaho.st to give us automatic ... | Use a .com domain that belongs to us for localhost resolution.
Enough of dealing with funny domains like smackaho.st and lvh.me
run by third parties.
(cherry picked from commit 9f83156bc7bf55351e24bf902fe28d5baa195266)
Conflicts:
features/step_definitions/setup_steps.rb
|
diff --git a/spec/darwin/dev/packages_version_spec.rb b/spec/darwin/dev/packages_version_spec.rb
index abc1234..def5678 100644
--- a/spec/darwin/dev/packages_version_spec.rb
+++ b/spec/darwin/dev/packages_version_spec.rb
@@ -16,5 +16,5 @@
describe command('terraform --version') do
its(:exit_status) { should eq 0... | test: BUMP terraform spec to `v0.11`
|
diff --git a/spec/dummy/config/initializers/assets.rb b/spec/dummy/config/initializers/assets.rb
index abc1234..def5678 100644
--- a/spec/dummy/config/initializers/assets.rb
+++ b/spec/dummy/config/initializers/assets.rb
@@ -8,4 +8,5 @@
# Precompile additional assets.
# application.js, application.css, and all non-J... | Add todo regarding filthy tree.js
|
diff --git a/spec/examples/library_with_fines_spec.rb b/spec/examples/library_with_fines_spec.rb
index abc1234..def5678 100644
--- a/spec/examples/library_with_fines_spec.rb
+++ b/spec/examples/library_with_fines_spec.rb
@@ -31,7 +31,6 @@ it "should be re-parsable via .from_xml" do
lib_reparsed = LibraryWithFine... | Drop debug statement in spec
|
diff --git a/spec/jobs/reports_generation_job_spec.rb b/spec/jobs/reports_generation_job_spec.rb
index abc1234..def5678 100644
--- a/spec/jobs/reports_generation_job_spec.rb
+++ b/spec/jobs/reports_generation_job_spec.rb
@@ -20,8 +20,27 @@ end
context 'executes perform' do
-
- before { campaign.save }
+ le... | Fix rspec for reports generation job
|
diff --git a/db/migrate/20160620141513_add_webhook_to_organizations.rb b/db/migrate/20160620141513_add_webhook_to_organizations.rb
index abc1234..def5678 100644
--- a/db/migrate/20160620141513_add_webhook_to_organizations.rb
+++ b/db/migrate/20160620141513_add_webhook_to_organizations.rb
@@ -1,6 +1,6 @@ class AddWebhoo... | Cut invalid option `:unique` passed to `add_column`
|
diff --git a/TheSpot/app/controllers/spots_controller.rb b/TheSpot/app/controllers/spots_controller.rb
index abc1234..def5678 100644
--- a/TheSpot/app/controllers/spots_controller.rb
+++ b/TheSpot/app/controllers/spots_controller.rb
@@ -12,6 +12,12 @@ end
private
+
+ def spot_params
+ params.require(:user).... | Add strong params for spots
|
diff --git a/lib/puppet/provider/mikrotik_logging_rule/mikrotik_api.rb b/lib/puppet/provider/mikrotik_logging_rule/mikrotik_api.rb
index abc1234..def5678 100644
--- a/lib/puppet/provider/mikrotik_logging_rule/mikrotik_api.rb
+++ b/lib/puppet/provider/mikrotik_logging_rule/mikrotik_api.rb
@@ -11,10 +11,13 @@ end
... | Allow multiple logging topics to be managed in 1 rule. |
diff --git a/serverspec/spec/common/man_spec.rb b/serverspec/spec/common/man_spec.rb
index abc1234..def5678 100644
--- a/serverspec/spec/common/man_spec.rb
+++ b/serverspec/spec/common/man_spec.rb
@@ -1,5 +1,5 @@ require 'spec_helper'
describe command('which man') do
- it { should return_exit_status 0 }
+ its(:exi... | Change test script to follow Serverspec V2
|
diff --git a/seo_meta.gemspec b/seo_meta.gemspec
index abc1234..def5678 100644
--- a/seo_meta.gemspec
+++ b/seo_meta.gemspec
@@ -6,10 +6,10 @@ s.email = 'parndt@gmail.com'
s.version = '1.1.1'
s.description = 'SEO Meta tags plugin for Ruby on Rails'
- s.date = '2011-05-2... | Allow use of more versions of generators
|
diff --git a/spec/features/user_account_spec.rb b/spec/features/user_account_spec.rb
index abc1234..def5678 100644
--- a/spec/features/user_account_spec.rb
+++ b/spec/features/user_account_spec.rb
@@ -10,7 +10,7 @@ fill_in "Email", with: @email
page.find('#user_password').set "secrets"
fill_in "Pass... | Fix a broken spec, oops!
|
diff --git a/spec/models/alternate_name_spec.rb b/spec/models/alternate_name_spec.rb
index abc1234..def5678 100644
--- a/spec/models/alternate_name_spec.rb
+++ b/spec/models/alternate_name_spec.rb
@@ -1,24 +1,22 @@ require 'spec_helper'
describe AlternateName do
- before (:each) do
- @an = FactoryGirl.create(:al... | Fix model tests for alternate names.
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,5 +1,5 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks ... | Make those patch requests work again.
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -14,6 +14,9 @@ def current_format
document_types.fetch(params.fetch(:document_type, n... | Refactor current_format to use a Struct
This commit changes `current_format` to be a hash of Structs.
/cc @h-lame
|
diff --git a/app/controllers/restaurants_controller.rb b/app/controllers/restaurants_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/restaurants_controller.rb
+++ b/app/controllers/restaurants_controller.rb
@@ -1,5 +1,5 @@ class RestaurantsController < ApplicationController
- before_action :set_post,... | Fix typo in before action
|
diff --git a/lib/citrus/core/execute_build_service.rb b/lib/citrus/core/execute_build_service.rb
index abc1234..def5678 100644
--- a/lib/citrus/core/execute_build_service.rb
+++ b/lib/citrus/core/execute_build_service.rb
@@ -16,13 +16,27 @@ def start(build)
path = workspace_builder.create_workspace(build... | Move publishing to private methods.
They make visual clutter and I'd love to see them somewhere else
so aspects maybe?
|
diff --git a/lib/fastly_nsq/message_queue/listener.rb b/lib/fastly_nsq/message_queue/listener.rb
index abc1234..def5678 100644
--- a/lib/fastly_nsq/message_queue/listener.rb
+++ b/lib/fastly_nsq/message_queue/listener.rb
@@ -4,7 +4,7 @@ @topic = topic
@channel = channel
@processor = processor ... | Test wants this built at instantiation |
diff --git a/app/services/asset_disposition_service.rb b/app/services/asset_disposition_service.rb
index abc1234..def5678 100644
--- a/app/services/asset_disposition_service.rb
+++ b/app/services/asset_disposition_service.rb
@@ -1,7 +1,8 @@ #------------------------------------------------------------------------------... | Fix up the asset disposition service to limit to a specific organization and set the default fiscal year to the current planning year.
|
diff --git a/Casks/textexpander.rb b/Casks/textexpander.rb
index abc1234..def5678 100644
--- a/Casks/textexpander.rb
+++ b/Casks/textexpander.rb
@@ -2,11 +2,14 @@ if MacOS.release == :snow_leopard
version '3.4.2'
sha256 '87859d7efcbfe479e7b78686d4d3f9be9983b2c7d68a6122acea10d4efbb1bfa'
- elsif MacOS.releas... | Update TextExpander to version 5.0
This commit updates the logic for determining which version of
TextExpander to install. Version 5.0 is only supported on Yosemite
and upwards, so I've modified the existing 4.3.6 case to be for
Lion to Mavericks only, and added a new case for Yosemite upwards.
I ran `shasum -a 256` ... |
diff --git a/starscope.gemspec b/starscope.gemspec
index abc1234..def5678 100644
--- a/starscope.gemspec
+++ b/starscope.gemspec
@@ -4,7 +4,7 @@ gem.name = 'starscope'
gem.version = StarScope::VERSION
gem.summary = "A code indexer and analyzer"
- gem.description = "A tool like the venera... | Add golang to the gem description
|
diff --git a/FSImageViewer.podspec b/FSImageViewer.podspec
index abc1234..def5678 100644
--- a/FSImageViewer.podspec
+++ b/FSImageViewer.podspec
@@ -16,7 +16,6 @@ s.requires_arc = true
s.source_files = 'FSImageViewer/FS*.{h,m}'
- s.resources = 'FSImageViewer.bundle'
s.framework = 'Foundation', 'UIKit',... | Remove resources from the podspec.
|
diff --git a/recipes/apt_pgdg_postgresql.rb b/recipes/apt_pgdg_postgresql.rb
index abc1234..def5678 100644
--- a/recipes/apt_pgdg_postgresql.rb
+++ b/recipes/apt_pgdg_postgresql.rb
@@ -1,4 +1,4 @@-if not %w(jessie squeeze wheezy sid lucid precise saucy trusty utopic wily).include? node['postgresql']['pgdg']['release_ap... | Add 16.04 Xenial to the allowed list |
diff --git a/test/dummy/app/models/user.rb b/test/dummy/app/models/user.rb
index abc1234..def5678 100644
--- a/test/dummy/app/models/user.rb
+++ b/test/dummy/app/models/user.rb
@@ -1,5 +1,5 @@ class User < ActiveRecord::Base
- if Rails.version[0..2] == '3.2'
+ if Rails.version[0] == '3'
attr_accessible :email, :... | Use attr_accessible for any rails 3 builds
|
diff --git a/lib/hotspots/exit.rb b/lib/hotspots/exit.rb
index abc1234..def5678 100644
--- a/lib/hotspots/exit.rb
+++ b/lib/hotspots/exit.rb
@@ -9,7 +9,7 @@ end
def perform
- puts @message
+ $stderr.puts @message
exit @code
end
end
@@ -23,7 +23,7 @@ end
d... | Send error messages to STDERR
|
diff --git a/lib/kaminari-i18n.rb b/lib/kaminari-i18n.rb
index abc1234..def5678 100644
--- a/lib/kaminari-i18n.rb
+++ b/lib/kaminari-i18n.rb
@@ -0,0 +1,23 @@+require 'rails'
+module KaminariI18n
+ class Engine < ::Rails::Engine
+ end
+
+ class Railtie < ::Rails::Railtie #:nodoc:
+ initializer 'kaminari-i18n' do... | Add railtie to load locales automatically
Based on https://github.com/svenfuchs/rails-i18n/blob/master/lib/rails_i18n/railtie.rb
|
diff --git a/db/migrate/20130804154805_setup_hstore.rb b/db/migrate/20130804154805_setup_hstore.rb
index abc1234..def5678 100644
--- a/db/migrate/20130804154805_setup_hstore.rb
+++ b/db/migrate/20130804154805_setup_hstore.rb
@@ -3,7 +3,7 @@ # Creating hstore extension in a given database requires
# superuser ... | Fix check for production hstore migration.
|
diff --git a/lib/tasks/admin.rake b/lib/tasks/admin.rake
index abc1234..def5678 100644
--- a/lib/tasks/admin.rake
+++ b/lib/tasks/admin.rake
@@ -3,10 +3,10 @@ namespace :admin do
desc "Creates role."
- task :create_role, :role, :needs => :environment do |t, args|
+ task :create_role, [:role] => :environm... | Fix create role rake task deprecation warrning.
|
diff --git a/security/cve_2010_1330_spec.rb b/security/cve_2010_1330_spec.rb
index abc1234..def5678 100644
--- a/security/cve_2010_1330_spec.rb
+++ b/security/cve_2010_1330_spec.rb
@@ -0,0 +1,21 @@+require_relative '../spec_helper'
+
+describe "String#gsub" do
+
+ it "resists CVE-2010-1330 by raising an exception on i... | Write a spec for CVE-2010-1330
|
diff --git a/app/models/competitions/concerns/competition/categories.rb b/app/models/competitions/concerns/competition/categories.rb
index abc1234..def5678 100644
--- a/app/models/competitions/concerns/competition/categories.rb
+++ b/app/models/competitions/concerns/competition/categories.rb
@@ -1,6 +1,15 @@ module Con... | Add category_names to allow shared create_races across competitions. Add source_events? method to scope results by source events or not.
|
diff --git a/MPMessagePack.podspec b/MPMessagePack.podspec
index abc1234..def5678 100644
--- a/MPMessagePack.podspec
+++ b/MPMessagePack.podspec
@@ -11,11 +11,9 @@
s.dependency "GHODictionary"
- s.platform = :ios, "6.0"
s.ios.deployment_target = "6.0"
s.ios.source_files = "MPMessagePack/**/*.{c,h,m}", "RPC... | Remove `platform` attributes in lieu of `deployment_target`
Fixes problem that causes pod install to error out with:
Reference:
https://guides.cocoapods.org/syntax/podspec.html#platform
|
diff --git a/db/data_migration/20150427095111_archive_all_worldwide_priorities.rb b/db/data_migration/20150427095111_archive_all_worldwide_priorities.rb
index abc1234..def5678 100644
--- a/db/data_migration/20150427095111_archive_all_worldwide_priorities.rb
+++ b/db/data_migration/20150427095111_archive_all_worldwide_p... | Archive all Published Worldwide Priorities
This commit adds a data migration to archive all published Worldwide Priorities.
|
diff --git a/db/migrate/20200309152257_change_query_id_in_gdata_visualizations.rb b/db/migrate/20200309152257_change_query_id_in_gdata_visualizations.rb
index abc1234..def5678 100644
--- a/db/migrate/20200309152257_change_query_id_in_gdata_visualizations.rb
+++ b/db/migrate/20200309152257_change_query_id_in_gdata_visua... | Add migration to change reference in visualizations table from query to dataset
|
diff --git a/TransitionKit.podspec b/TransitionKit.podspec
index abc1234..def5678 100644
--- a/TransitionKit.podspec
+++ b/TransitionKit.podspec
@@ -8,4 +8,6 @@ s.source = { :git => 'https://github.com/blakewatters/TransitionKit.git', :tag => '1.1.1' }
s.source_files = 'Code'
s.requires_arc = true
+ s.ios.de... | Add explicit iOS and OS X deployment targets
|
diff --git a/app/models/contact.rb b/app/models/contact.rb
index abc1234..def5678 100644
--- a/app/models/contact.rb
+++ b/app/models/contact.rb
@@ -10,9 +10,9 @@
def formatted_birthday
if !birthday.nil?
- "#{birthday.month}/#{birthday.day}/#{birthday.year}"
+ "Birthday: #{birthday.month}/#{birthday.... | Change the notice message for missing birthday field
|
diff --git a/app/models/project.rb b/app/models/project.rb
index abc1234..def5678 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -17,7 +17,7 @@ square: '200x200#',
medium: '300x300>'
},
- default_url: "/images/:style/missing.png",
+ default_url: "https://#{Rails.application.secrets.s3_h... | Fix url path for default image.
|
diff --git a/app/models/request.rb b/app/models/request.rb
index abc1234..def5678 100644
--- a/app/models/request.rb
+++ b/app/models/request.rb
@@ -1,6 +1,6 @@ class Request < ActiveRecord::Base
#eval("attr_accessible #{column_names.map { |cn| cn.to_sym }.to_s.gsub(/\[|\]/,"")}")
- set_primary_key "service_request... | Change set_primary_key to self.primary_key= per deprecation warning
|
diff --git a/app/models/request.rb b/app/models/request.rb
index abc1234..def5678 100644
--- a/app/models/request.rb
+++ b/app/models/request.rb
@@ -16,7 +16,7 @@ # Difference is returned in seconds; set to 45 minutes
(Time.now - created_at) <= 2700
else
- !is_fullfilled
+ !is_fulfilled
... | Fix typo in active? method.
|
diff --git a/lib/algorithmia/data/data_file.rb b/lib/algorithmia/data/data_file.rb
index abc1234..def5678 100644
--- a/lib/algorithmia/data/data_file.rb
+++ b/lib/algorithmia/data/data_file.rb
@@ -31,7 +31,6 @@ end
def delete
- raise AlgorithmiaNotFound.new("File not found.") if !self.exists?
res... | Remove existence check for deleting files
|
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb
index abc1234..def5678 100644
--- a/spec/spec_helper_acceptance.rb
+++ b/spec/spec_helper_acceptance.rb
@@ -0,0 +1,22 @@+require 'beaker-rspec'
+
+hosts.each do |host|
+ # Install Puppet
+ on host, install_puppet
+end
+
+RSpec.configure do |... | Add default spec acceptance helper
|
diff --git a/lib/crystal_api/store_endpoint.rb b/lib/crystal_api/store_endpoint.rb
index abc1234..def5678 100644
--- a/lib/crystal_api/store_endpoint.rb
+++ b/lib/crystal_api/store_endpoint.rb
@@ -5,7 +5,7 @@ class StoreEndpoint
attr_reader :base_url, :token
- class Response < Value.new(:parsed, :raw)
+ ... | Add parsed json to response
|
diff --git a/app/controllers/api/items_controller.rb b/app/controllers/api/items_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/items_controller.rb
+++ b/app/controllers/api/items_controller.rb
@@ -3,6 +3,7 @@ item_type_id = params[:item_type_id]
number = params[:number]
agenda_id =... | Add Search Into Sections For API Items
|
diff --git a/db/migrate/20170630075028_add_index_to_searcher_records.rb b/db/migrate/20170630075028_add_index_to_searcher_records.rb
index abc1234..def5678 100644
--- a/db/migrate/20170630075028_add_index_to_searcher_records.rb
+++ b/db/migrate/20170630075028_add_index_to_searcher_records.rb
@@ -7,6 +7,7 @@ d.u... | Add project_id to Groonga table via pgroonga index
|
diff --git a/lib/nark/event_gateway_emitter.rb b/lib/nark/event_gateway_emitter.rb
index abc1234..def5678 100644
--- a/lib/nark/event_gateway_emitter.rb
+++ b/lib/nark/event_gateway_emitter.rb
@@ -36,7 +36,7 @@ end
def post data
- response = @faraday.post do |request|
+ response = faraday.post do |... | Use memoiser instead of private instance
|
diff --git a/lib/psd/renderer/clipping_mask.rb b/lib/psd/renderer/clipping_mask.rb
index abc1234..def5678 100644
--- a/lib/psd/renderer/clipping_mask.rb
+++ b/lib/psd/renderer/clipping_mask.rb
@@ -12,7 +12,7 @@ mask_node = mask_node.next_sibling
end
- @mask = Canvas.new(mask_node)
+ @... | Apply mask to clipping mask before clipping
|
diff --git a/lib/thinking_sphinx/core/index.rb b/lib/thinking_sphinx/core/index.rb
index abc1234..def5678 100644
--- a/lib/thinking_sphinx/core/index.rb
+++ b/lib/thinking_sphinx/core/index.rb
@@ -2,7 +2,7 @@ extend ActiveSupport::Concern
included do
- attr_reader :reference, :offset
+ attr_reader :referen... | Index options need to be accessible for SphinxQL middleware.
|
diff --git a/app/services/update_course_revisions.rb b/app/services/update_course_revisions.rb
index abc1234..def5678 100644
--- a/app/services/update_course_revisions.rb
+++ b/app/services/update_course_revisions.rb
@@ -17,7 +17,6 @@ end
def update_caches
- Article.update_all_caches(@course.articles)
Ar... | Fix renaming call to Artice.update_all_caches
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -17,7 +17,7 @@ # limitations under the License.
#
-default[:rackspace][:fog_version] = nil
+default[:rackspace][:fog_version] = "1.10.1"
default[:rackspace][:rackspace_... | Use older version of fog to prevent json gem version collisions.
|
diff --git a/features/step_definitions/cucumber_steps.rb b/features/step_definitions/cucumber_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/cucumber_steps.rb
+++ b/features/step_definitions/cucumber_steps.rb
@@ -1,13 +1,9 @@ Given /^a passing scenario "(.+)" with:$/ do |name, body|
@test_cas... | Stop warnings when running features
|
diff --git a/lib/shared_infrastructure/runner/rails.rb b/lib/shared_infrastructure/runner/rails.rb
index abc1234..def5678 100644
--- a/lib/shared_infrastructure/runner/rails.rb
+++ b/lib/shared_infrastructure/runner/rails.rb
@@ -1,5 +1,11 @@ module Runner
class Rails < Base
+ def main
+ builder = super
+ ... | Create fake directory for unit file.
|
diff --git a/app/models/repositories/list_repository.rb b/app/models/repositories/list_repository.rb
index abc1234..def5678 100644
--- a/app/models/repositories/list_repository.rb
+++ b/app/models/repositories/list_repository.rb
@@ -0,0 +1,11 @@+module ListRepository
+ extend self
+
+ def find_by_date(date)
+ List... | Add list repository. The repository is an interface to the database and handles mapping entities (pure Ruby objects) to data models (Mongoid documents)
|
diff --git a/spec/requests/geckoboard/widgets_spec.rb b/spec/requests/geckoboard/widgets_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/geckoboard/widgets_spec.rb
+++ b/spec/requests/geckoboard/widgets_spec.rb
@@ -0,0 +1,27 @@+# frozen_string_literal: true
+
+RSpec.describe 'Widgets', type: :request, allow_f... | Add missing geckoboard request spec
|
diff --git a/app/controllers/admin/statistical_release_announcements_controller.rb b/app/controllers/admin/statistical_release_announcements_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/statistical_release_announcements_controller.rb
+++ b/app/controllers/admin/statistical_release_announcemen... | Use consistent naming for release announcements in controller code
|
diff --git a/app/controllers/regions_controller.rb b/app/controllers/regions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/regions_controller.rb
+++ b/app/controllers/regions_controller.rb
@@ -1,5 +1,4 @@ class RegionsController < ApplicationController
-# inherit_resources
layout 'home'
@@ -9... | Remove inherited resources from regions-controller
|
diff --git a/app/models/course/lesson_plan_item.rb b/app/models/course/lesson_plan_item.rb
index abc1234..def5678 100644
--- a/app/models/course/lesson_plan_item.rb
+++ b/app/models/course/lesson_plan_item.rb
@@ -0,0 +1,26 @@+class Course::LessonPlanItem < ActiveRecord::Base
+ actable
+ stampable
+ validates :base_e... | Add lesson plan item model
|
diff --git a/app/models/miq_widget_set/set_data.rb b/app/models/miq_widget_set/set_data.rb
index abc1234..def5678 100644
--- a/app/models/miq_widget_set/set_data.rb
+++ b/app/models/miq_widget_set/set_data.rb
@@ -1,7 +1,7 @@ module MiqWidgetSet::SetData
extend ActiveSupport::Concern
- SET_DATA_COLS = %i[col1 col2... | Remove col3 from dashboard widgets
|
diff --git a/Casks/clion-eap.rb b/Casks/clion-eap.rb
index abc1234..def5678 100644
--- a/Casks/clion-eap.rb
+++ b/Casks/clion-eap.rb
@@ -1,6 +1,6 @@ cask :v1 => 'clion-eap' do
- version '141.102.4'
- sha256 '63227a0613d0406087b045b9eb17fadcc9affaed9707e2adcce7d0c0d37ae2a0'
+ version '141.351.4'
+ sha256 '3be78cf010... | Upgrade CLion EAP.app to build 141.351.4
|
diff --git a/Casks/scala-ide.rb b/Casks/scala-ide.rb
index abc1234..def5678 100644
--- a/Casks/scala-ide.rb
+++ b/Casks/scala-ide.rb
@@ -3,5 +3,5 @@ homepage 'http://scala-ide.org/'
version '3.0.2'
sha1 '5d467d9054d940cf7e2f750ff60aa3bd11e8dae3'
- link 'eclipse/Eclipse.app'
+ link 'eclipse/Eclipse.app', :targ... | Rename application link to 'Scala IDE'
This is useful to install the Scala IDE together with other Eclipse installations. |
diff --git a/lib/twitter/client/friends_and_followers.rb b/lib/twitter/client/friends_and_followers.rb
index abc1234..def5678 100644
--- a/lib/twitter/client/friends_and_followers.rb
+++ b/lib/twitter/client/friends_and_followers.rb
@@ -3,7 +3,6 @@ module FriendsAndFollowers
# TODO: Optional merge user into ... | Remove remaining calls to authenticate
|
diff --git a/factory_inspector.gemspec b/factory_inspector.gemspec
index abc1234..def5678 100644
--- a/factory_inspector.gemspec
+++ b/factory_inspector.gemspec
@@ -6,7 +6,7 @@ gem.email = ["david.kennedy@examtime.com"]
gem.description = %q{This very simple gem generates reports on how FactoryGirl factor... | Add GitHub page as homepage
|
diff --git a/app/models/commute.rb b/app/models/commute.rb
index abc1234..def5678 100644
--- a/app/models/commute.rb
+++ b/app/models/commute.rb
@@ -29,14 +29,10 @@
private
def is_float(input)
- if (input.nil? || input.blank?)
- return false
- end
- if (input.is_a? Float)
+ begin
+ Float(... | Improve validity checking for coordinate inputs
|
diff --git a/app/models/species.rb b/app/models/species.rb
index abc1234..def5678 100644
--- a/app/models/species.rb
+++ b/app/models/species.rb
@@ -19,8 +19,27 @@ false
end
+ # Return the species list as 1 array
def self.all
+ (self.freshwater + self.saltwater).sort
+ end
+
+ # Find only the saltwate... | Add scope methods to Species
Added `freshwater`, `saltwater` and `all` to the Species model.
|
diff --git a/OMPromises.podspec b/OMPromises.podspec
index abc1234..def5678 100644
--- a/OMPromises.podspec
+++ b/OMPromises.podspec
@@ -13,7 +13,7 @@ s.default_subspec = 'Core'
s.subspec 'Core' do |cs|
- cs.source_files = 'OMPromises/*.{h,m}'
+ cs.source_files = 'OMPromises/**.{h,m}'
cs.public_header... | Fix bug in podspec file
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -17,8 +17,8 @@ # config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
-... | Set default locales and load paths
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -14,7 +14,7 @@
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for findi... | Use US Eastern Time as default time zone
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -6,7 +6,7 @@ # you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
-RETENTION_TIME = 3.days
+RETENTION_TIME = 12.hours
module Passen... | Reduce retention time to 12 hours
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -13,7 +13,6 @@ config.assets.version = '1.0sc'
config.serve_static_assets = true
- config.assets.initialize_on_precompile = false
config.action_controlle... | Remove flag to not initialize on precompile.
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -24,6 +24,11 @@ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my',... | Fix web-font (heroku)
heroku upload test-5 (Firefox)
Rails 4
|
diff --git a/S2MToolbox.podspec b/S2MToolbox.podspec
index abc1234..def5678 100644
--- a/S2MToolbox.podspec
+++ b/S2MToolbox.podspec
@@ -1,10 +1,10 @@ Pod::Spec.new do |s|
s.name = "S2MToolbox"
s.version = "0.0.1"
- s.summary = "iOS Categories"
+ s.summary = "iOS Categories."
s.homepag... | UPDATE podspec, removing some warnings from pod spec lint |
diff --git a/test/integration/systemd/serverspec/required_files_spec.rb b/test/integration/systemd/serverspec/required_files_spec.rb
index abc1234..def5678 100644
--- a/test/integration/systemd/serverspec/required_files_spec.rb
+++ b/test/integration/systemd/serverspec/required_files_spec.rb
@@ -3,7 +3,7 @@ require 'sp... | Correct typo in systemd integration tests |
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -6,7 +6,8 @@
default['homebrew']['formulas'] = [
'git',
- 'packer'
+ 'packer',
+ 'mtr'
]
default['homebrew']['casks'] = [
| Add homebrew formula for mtr
|
diff --git a/app/concerns/couriers/fusionable.rb b/app/concerns/couriers/fusionable.rb
index abc1234..def5678 100644
--- a/app/concerns/couriers/fusionable.rb
+++ b/app/concerns/couriers/fusionable.rb
@@ -31,7 +31,7 @@ photo = Photo.find id
table.select("ROWID", "WHERE name='#{photo.key}'").m... | Fix to_fusion call in Fusionable Courier
|
diff --git a/TSMessages.podspec b/TSMessages.podspec
index abc1234..def5678 100644
--- a/TSMessages.podspec
+++ b/TSMessages.podspec
@@ -14,7 +14,7 @@
s.author = { "Felix Krause" => "krausefx@gmail.com" }
- s.source = { :git => "https://github.com/toursprung/TSMessages.git", :tag => "#{s.version}"}
+... | Update podspec for local fork
|
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/pages_controller.rb
+++ b/app/controllers/pages_controller.rb
@@ -6,7 +6,7 @@ def email
tpl = (params[:layout] || 'hero').to_sym
tpl = :hero unless [:email, :hero, :simp... | Fix email template demo page |
diff --git a/app/controllers/gobierto_admin/gobierto_common/api/terms_controller.rb b/app/controllers/gobierto_admin/gobierto_common/api/terms_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/gobierto_admin/gobierto_common/api/terms_controller.rb
+++ b/app/controllers/gobierto_admin/gobierto_common/api... | Check admin permissions to create terms via API
|
diff --git a/app/decorators/service_decorator.rb b/app/decorators/service_decorator.rb
index abc1234..def5678 100644
--- a/app/decorators/service_decorator.rb
+++ b/app/decorators/service_decorator.rb
@@ -4,6 +4,10 @@ end
def fileicon
- try(:picture) ? "/pictures/#{picture.basename}" : "100/service.png"
+ ... | Add single_quad definition for the Service model
|
diff --git a/PHYExtendedAppDelegate.podspec b/PHYExtendedAppDelegate.podspec
index abc1234..def5678 100644
--- a/PHYExtendedAppDelegate.podspec
+++ b/PHYExtendedAppDelegate.podspec
@@ -5,7 +5,7 @@ s.homepage = "http://rallyapp.io"
s.license = 'MIT'
s.author = { "Matt Ricketson" => "ma... | Switch source url to Github
|
diff --git a/merb-auth-more/lib/merb-auth-more/mixins/salted_user/dm_salted_user.rb b/merb-auth-more/lib/merb-auth-more/mixins/salted_user/dm_salted_user.rb
index abc1234..def5678 100644
--- a/merb-auth-more/lib/merb-auth-more/mixins/salted_user/dm_salted_user.rb
+++ b/merb-auth-more/lib/merb-auth-more/mixins/salted_us... | Update to DM 1.0.0 compat.
|
diff --git a/recipes/configure.rb b/recipes/configure.rb
index abc1234..def5678 100644
--- a/recipes/configure.rb
+++ b/recipes/configure.rb
@@ -1,5 +1,9 @@ file node['remote_syslog2']['config_file'] do
- content node['remote_syslog2']['config'].to_hash.to_yaml
+ # Using JSON.parse(x.to_json) to convert Chef::Node::I... | Fix generated config file on Chef 11.14.
The config file generated looks like this on Chef 11.14 and
remote_syslog2 can't understand it:
files: !ruby/array:Chef::Node::ImmutableArray
- /foo/bar
exclude_files: !ruby/array:Chef::Node::ImmutableArray []
exclude_patterns: !ruby/array:Chef::Node::Immutable... |
diff --git a/spec/controllers/users_controller_spec.rb b/spec/controllers/users_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/users_controller_spec.rb
+++ b/spec/controllers/users_controller_spec.rb
@@ -0,0 +1,103 @@+require File.expand_path('../../spec_helper', __FILE__)
+describe UsersContro... | Add User controller spec file
- Add User controller spec file
|
diff --git a/spec/features/survey_notification_spec.rb b/spec/features/survey_notification_spec.rb
index abc1234..def5678 100644
--- a/spec/features/survey_notification_spec.rb
+++ b/spec/features/survey_notification_spec.rb
@@ -9,14 +9,26 @@ let(:survey_assignment) { create(:survey_assignment, survey:) }
before... | Add test that would have caught the CSRF error with survey_notification updates
|
diff --git a/app/models/product.rb b/app/models/product.rb
index abc1234..def5678 100644
--- a/app/models/product.rb
+++ b/app/models/product.rb
@@ -23,9 +23,19 @@ when 'day'
amounts
when 'week'
-
+ summary = Hash.new(0)
+ amounts.each do |date, count|
+ period_end = [date.end_of_week, ... | Add algorithm for sold per week and month
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.