diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/extensions/arel_groups.rb b/lib/extensions/arel_groups.rb
index abc1234..def5678 100644
--- a/lib/extensions/arel_groups.rb
+++ b/lib/extensions/arel_groups.rb
@@ -0,0 +1,14 @@+# this is from https://github.com/rails/arel/pull/435
+# this allows sorting and where clauses to work with virtual_attribute ... | Patch Arel Grouping to provide more functionality
This allows arel attributes (that are groups) to be used
in where clauses and sort clauses
|
diff --git a/committee.gemspec b/committee.gemspec
index abc1234..def5678 100644
--- a/committee.gemspec
+++ b/committee.gemspec
@@ -4,8 +4,8 @@
s.summary = "A collection of Rack middleware to support JSON Schema."
- s.authors = ["Brandur", "geemus (Wesley Beary)"]
- s.email = ["brandur@mute... | Add ota42y to authors in gemspec |
diff --git a/hook.rb b/hook.rb
index abc1234..def5678 100644
--- a/hook.rb
+++ b/hook.rb
@@ -14,6 +14,9 @@ payload = JSON.parse(request.body.read)
commits = payload["commits"]
repo = payload['repository']['full_name']
+
+ # Set status to 'pending' before performing check
+ report_status(repo, commit, 'pending... | Set the status to pending before running checks
|
diff --git a/lib/logstash-logger/logger.rb b/lib/logstash-logger/logger.rb
index abc1234..def5678 100644
--- a/lib/logstash-logger/logger.rb
+++ b/lib/logstash-logger/logger.rb
@@ -27,7 +27,7 @@
def format_message(severity, time, progname, message)
data = message
- if data.is_a?(String) && data[0] == '{'
... | Use start_with? to detect JSON
|
diff --git a/init.rb b/init.rb
index abc1234..def5678 100644
--- a/init.rb
+++ b/init.rb
@@ -5,7 +5,7 @@ #
# Release.
#
- def release
+ def index
puts "Test"
end
end
| Switch to root level for the release task.
|
diff --git a/lib/servitude/pretty_print.rb b/lib/servitude/pretty_print.rb
index abc1234..def5678 100644
--- a/lib/servitude/pretty_print.rb
+++ b/lib/servitude/pretty_print.rb
@@ -1,4 +1,3 @@-require 'pry'
module Servitude
module PrettyPrint
| Remove 'require' statement loading Pry
|
diff --git a/libraries/package_provider.rb b/libraries/package_provider.rb
index abc1234..def5678 100644
--- a/libraries/package_provider.rb
+++ b/libraries/package_provider.rb
@@ -0,0 +1,40 @@+#
+# Cookbook Name:: freebsd
+# Libraries:: package_provider
+#
+# Copyright 2012, ZephirWorks
+#
+# Licensed under the Apache... | Fix older versions of FreeBSD to build packages from ports.
Signed-off-by: jtimberman <d6955d9721560531274cb8f50ff595a9bd39d66f@opscode.com>
|
diff --git a/omniauth.gemspec b/omniauth.gemspec
index abc1234..def5678 100644
--- a/omniauth.gemspec
+++ b/omniauth.gemspec
@@ -17,7 +17,7 @@ spec.licenses = ['MIT']
spec.name = 'omniauth'
spec.require_paths = ['lib']
- spec.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
+ spec.re... | Use of custom objects is not necessary here
|
diff --git a/Casks/live-interior-3d-pro.rb b/Casks/live-interior-3d-pro.rb
index abc1234..def5678 100644
--- a/Casks/live-interior-3d-pro.rb
+++ b/Casks/live-interior-3d-pro.rb
@@ -2,6 +2,7 @@ version :latest
sha256 :no_check
+ # amazonaws.com/belightsoft was verified as official when first introduced to the ca... | Fix `url` stanza comment for Live Interior 3D Pro.
|
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/registrations_controller.rb
+++ b/app/controllers/registrations_controller.rb
@@ -1,21 +1,24 @@ # app/controllers/registrations_controller.rb
class RegistrationsCon... | Improve RegistrationsController code organizartion and remove redundancy
|
diff --git a/LunchOverflow/spec/models/user_spec.rb b/LunchOverflow/spec/models/user_spec.rb
index abc1234..def5678 100644
--- a/LunchOverflow/spec/models/user_spec.rb
+++ b/LunchOverflow/spec/models/user_spec.rb
@@ -7,4 +7,11 @@ it { should have_db_column(:email).of_type(:string) }
it { should have_db_column(... | Add validation tests for User
|
diff --git a/console_helper.rb b/console_helper.rb
index abc1234..def5678 100644
--- a/console_helper.rb
+++ b/console_helper.rb
@@ -16,7 +16,7 @@ require 'bundler/setup'
Bundler.require
- $pixiv = Pixiv.new(id, password) do |agent|
+ $pixiv = Pixiv.client(id, password) do |agent|
agent.user_agent_alias =... | Use Pixiv.client instead of Pixiv.new
|
diff --git a/utils/hyperloglog/hll-err.rb b/utils/hyperloglog/hll-err.rb
index abc1234..def5678 100644
--- a/utils/hyperloglog/hll-err.rb
+++ b/utils/hyperloglog/hll-err.rb
@@ -18,7 +18,7 @@ elements << ele
i += 1
}
- r.pfadd('hll',*elements)
+ r.pfadd('hll',elements)
... | Fix HyperLogLog test script for new redis-rb API.
|
diff --git a/test/integration/lib/interactor/snapshooter.rb b/test/integration/lib/interactor/snapshooter.rb
index abc1234..def5678 100644
--- a/test/integration/lib/interactor/snapshooter.rb
+++ b/test/integration/lib/interactor/snapshooter.rb
@@ -8,9 +8,7 @@ include Shared
def create_screenshot
- ... | Move Snapshooter temp file logic to a helper method
|
diff --git a/oembed.gemspec b/oembed.gemspec
index abc1234..def5678 100644
--- a/oembed.gemspec
+++ b/oembed.gemspec
@@ -15,7 +15,7 @@ gem.require_paths = ["lib"]
gem.version = Oembed::VERSION
- gem.add_development_dependency 'rspec', '~> 2.11.0'
- gem.add_development_dependency 'simplecov', '~> 0.6.4'
-... | Upgrade to the latest development gems
|
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
@@ -1,5 +1,11 @@ # Good Guess
-
+def good_guess?(integer)
+ if integer == 42
+ return true
+ else
+ return false
+ end
+en... | Create method that takes an integer
|
diff --git a/noir.gemspec b/noir.gemspec
index abc1234..def5678 100644
--- a/noir.gemspec
+++ b/noir.gemspec
@@ -20,7 +20,7 @@
spec.required_ruby_version = '>= 1.9.2'
- spec.add_development_dependency 'bundler', '~> 1.9'
+ spec.add_development_dependency 'bundler', '~> 1.7'
spec.add_development_dependency 'r... | Downgrade bundler version for compatible to 1.9.x
|
diff --git a/yell_adapters/ses_adapter.rb b/yell_adapters/ses_adapter.rb
index abc1234..def5678 100644
--- a/yell_adapters/ses_adapter.rb
+++ b/yell_adapters/ses_adapter.rb
@@ -6,7 +6,7 @@ include Yell::Helpers::Base
include Yell::Helpers::Formatter
- attr_accessor :ses, :body_text, :email_config
+ attr_access... | Define custom subject on SesAdapter
|
diff --git a/test/helper.rb b/test/helper.rb
index abc1234..def5678 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -1,30 +1,31 @@-require 'simplecov'
-
-module SimpleCov::Configuration
- def clean_filters
- @filters = []
- end
-end
-
-SimpleCov.configure do
- clean_filters
- load_adapter 'test_frameworks'
-... | Comment out many lines to simplify dependency
|
diff --git a/test/helper.rb b/test/helper.rb
index abc1234..def5678 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -7,6 +7,14 @@ $stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
+
+if ENV["COVERAGE"]
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter "/test/"
+ en... | Include simplecov for future testing
|
diff --git a/lib/g5_authenticatable_api/grape_helpers.rb b/lib/g5_authenticatable_api/grape_helpers.rb
index abc1234..def5678 100644
--- a/lib/g5_authenticatable_api/grape_helpers.rb
+++ b/lib/g5_authenticatable_api/grape_helpers.rb
@@ -1,7 +1,22 @@ module G5AuthenticatableApi
module GrapeHelpers
def authentica... | Implement check for presence of access token
|
diff --git a/lib/paginate_alphabetically/view_helpers.rb b/lib/paginate_alphabetically/view_helpers.rb
index abc1234..def5678 100644
--- a/lib/paginate_alphabetically/view_helpers.rb
+++ b/lib/paginate_alphabetically/view_helpers.rb
@@ -28,7 +28,7 @@ end
def current_letter(available_letters)
- params[:l... | Remove defensive 'upcase' that errored on nil
A lowercase letter shouldn't have been generated, it would
only ever have been typed in, so rather than a verbose fix,
let's not worry about it.
|
diff --git a/lib/rack-cas/session_store/active_record.rb b/lib/rack-cas/session_store/active_record.rb
index abc1234..def5678 100644
--- a/lib/rack-cas/session_store/active_record.rb
+++ b/lib/rack-cas/session_store/active_record.rb
@@ -33,7 +33,7 @@ end
def destroy_session(env, sid, options)
- session ... | Fix bug in deleting active record sessions
|
diff --git a/refinerycms-acts-as-indexed.gemspec b/refinerycms-acts-as-indexed.gemspec
index abc1234..def5678 100644
--- a/refinerycms-acts-as-indexed.gemspec
+++ b/refinerycms-acts-as-indexed.gemspec
@@ -13,7 +13,7 @@
s.files = `git ls-files -- app/* lib/*`.split("\n")
- s.add_dependency 'refiner... | Allow refinerycms-core version from >= 3.0.0 to < 4.0 |
diff --git a/Casks/handbrakecli-nightly.rb b/Casks/handbrakecli-nightly.rb
index abc1234..def5678 100644
--- a/Casks/handbrakecli-nightly.rb
+++ b/Casks/handbrakecli-nightly.rb
@@ -1,6 +1,6 @@ cask :v1 => 'handbrakecli-nightly' do
- version '6822svn'
- sha256 '06b3024888643041779f4ac301266739ef6a6c4a30972a951aec881fb... | Update HandbrakeCLI Nightly to v6859svn
HandBrakeCLI Nightly v6859svn built 2015-02-02.
|
diff --git a/life.rb b/life.rb
index abc1234..def5678 100644
--- a/life.rb
+++ b/life.rb
@@ -1,3 +1,30 @@ #! /usr/bin/env ruby
-puts "hello world"
+require 'ncurses'
+
+class Life
+ def initialise_screen
+ Ncurses.initscr
+ end
+
+ def print_hello_world
+ Ncurses.mvaddstr(4, 19, "Hello, world!");
+ end
+
+ ... | Print hello world with ncurses
|
diff --git a/spec/models/agency_spec.rb b/spec/models/agency_spec.rb
index abc1234..def5678 100644
--- a/spec/models/agency_spec.rb
+++ b/spec/models/agency_spec.rb
@@ -18,7 +18,7 @@ expect(agency2).to be_invalid
end
- it 'updates slug if article title is updated' do
+ it 'updates slug if agency title is upd... | Add geocoding specs for agency model
|
diff --git a/spec/models/course_spec.rb b/spec/models/course_spec.rb
index abc1234..def5678 100644
--- a/spec/models/course_spec.rb
+++ b/spec/models/course_spec.rb
@@ -1,5 +1,10 @@ require 'rails_helper'
RSpec.describe Course, :type => :model do
- pending "add some examples to (or delete) #{__FILE__}"
+ it "has a... | Add course model test (for factory)
|
diff --git a/spec/models/invite_spec.rb b/spec/models/invite_spec.rb
index abc1234..def5678 100644
--- a/spec/models/invite_spec.rb
+++ b/spec/models/invite_spec.rb
@@ -6,4 +6,8 @@ invite.key.should_not be_empty
invite.key.should satisfy { |key| key.length > 16 }
end
+
+ it 'should require a description' d... | Test that description must be provided
|
diff --git a/lib/comma/extractors.rb b/lib/comma/extractors.rb
index abc1234..def5678 100644
--- a/lib/comma/extractors.rb
+++ b/lib/comma/extractors.rb
@@ -1,17 +1,7 @@-# csv do
-# grain_type :name
-# bhc_site :state, :name => 'Site'
-# bin_grade :code
-#
-# trade_price_per_ton
-# traded_quantity
-# cre... | Remove obsolete gsubbing of whitespace
|
diff --git a/spec/controllers/sessions_controller_spec.rb b/spec/controllers/sessions_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/sessions_controller_spec.rb
+++ b/spec/controllers/sessions_controller_spec.rb
@@ -1,5 +1,26 @@ require 'rails_helper'
describe SessionsController do
+ before... | Add tests for the SessionsController
Describe the redirections after sign in with controller specs.
|
diff --git a/spec/system/conceal_event_group_flow_spec.rb b/spec/system/conceal_event_group_flow_spec.rb
index abc1234..def5678 100644
--- a/spec/system/conceal_event_group_flow_spec.rb
+++ b/spec/system/conceal_event_group_flow_spec.rb
@@ -0,0 +1,41 @@+# frozen_string_literal: true
+
+require 'rails_helper'
+
+# Skipp... | Add system test for conceal event group flow (currently skipped pending resolution of transactional fixtures issue).
|
diff --git a/phaxio.gemspec b/phaxio.gemspec
index abc1234..def5678 100644
--- a/phaxio.gemspec
+++ b/phaxio.gemspec
@@ -17,7 +17,7 @@ gem.licenses = ['MIT']
gem.required_ruby_version = '>= 2.0'
- gem.add_dependency 'faraday', '~> 0.10'
+ gem.add_dependency 'faraday', '~> 0.10', '>= 1.0.1'
gem.add_depe... | Update gemspec to support faraday >= 1.0.1
Faraday was updated to 1.0.0 last year- allow newer versions to be supported. |
diff --git a/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_bearingDistanceResolution.rb b/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_bearingDistanceResolution.rb
index abc1234..def5678 100644
--- a/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_bearingDistanceResolution.rb
+++ b/lib/adiwg/mdtr... | Add mdJson readers for 'bearingDistanceResolution'
include minitest
|
diff --git a/spec/controllers/backend/webserver_controller_spec.rb b/spec/controllers/backend/webserver_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/backend/webserver_controller_spec.rb
+++ b/spec/controllers/backend/webserver_controller_spec.rb
@@ -0,0 +1,21 @@+require 'rails_helper'
+
+desc... | Add spec for testing the webserver restart.
|
diff --git a/spec/helpers/ems_cloud_helper/textual_summary_spec.rb b/spec/helpers/ems_cloud_helper/textual_summary_spec.rb
index abc1234..def5678 100644
--- a/spec/helpers/ems_cloud_helper/textual_summary_spec.rb
+++ b/spec/helpers/ems_cloud_helper/textual_summary_spec.rb
@@ -1,25 +1,23 @@ require "spec_helper"
desc... | Remove extra contexts and create a common one
|
diff --git a/Casks/tortoisehg.rb b/Casks/tortoisehg.rb
index abc1234..def5678 100644
--- a/Casks/tortoisehg.rb
+++ b/Casks/tortoisehg.rb
@@ -1,8 +1,8 @@ cask 'tortoisehg' do
- version '3.2.4'
- sha256 'c529539e20f4ff2f6d181a5c7f64ad5dcd9346605011ab4c3725c7cedf6b5a8c'
+ version '3.7.2'
+ sha256 'e429dadbc8d2f0c78479... | Update TortoiseHg to version 3.7.2
Update TortoiseHg to version 3.7.2
|
diff --git a/app/concerns/dry_runnable.rb b/app/concerns/dry_runnable.rb
index abc1234..def5678 100644
--- a/app/concerns/dry_runnable.rb
+++ b/app/concerns/dry_runnable.rb
@@ -1,10 +1,8 @@ module DryRunnable
+ extend ActiveSupport::Concern
+
def dry_run!
- readonly!
-
- class << self
- prepend Sandbox
-... | Make DryRunnable wrap Agent instead of extending an Agent instance
This allows DryRunnable to work with other concerns that override the
behavior of create_event(), such as SortableEvents.
|
diff --git a/summarizer/paragraphizer.rb b/summarizer/paragraphizer.rb
index abc1234..def5678 100644
--- a/summarizer/paragraphizer.rb
+++ b/summarizer/paragraphizer.rb
@@ -4,17 +4,17 @@
data[:counter_points].each_with_index do |points, index|
p, c = points
- paragraph += Presenter.clean(p["String"])[... | Correct order and punctuation of plain summaries
Previously punctuation was stripped as commas were inserted. Negated
points should also be listed immediately after the contrasting ones.
|
diff --git a/lib/conjur/audit-api.rb b/lib/conjur/audit-api.rb
index abc1234..def5678 100644
--- a/lib/conjur/audit-api.rb
+++ b/lib/conjur/audit-api.rb
@@ -0,0 +1,41 @@+#
+# Copyright (C) 2013 Conjur Inc
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy of
+# this software and associat... | Add host methods for audit.
|
diff --git a/pugbot.gemspec b/pugbot.gemspec
index abc1234..def5678 100644
--- a/pugbot.gemspec
+++ b/pugbot.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |gem|
gem.name = "pugbot"
- gem.version = "0.1.1.hotfix.1"
+ gem.version = "0.1.2"
gem.authors = ["Xzanth"]
gem.description... | Increment version number as hotfix version doesn't work
|
diff --git a/UICollectionViewRightAlignedLayout.podspec b/UICollectionViewRightAlignedLayout.podspec
index abc1234..def5678 100644
--- a/UICollectionViewRightAlignedLayout.podspec
+++ b/UICollectionViewRightAlignedLayout.podspec
@@ -1,4 +1,4 @@-version = "0.0.2"
+version = "0.0.3"
Pod::Spec.new do |s|
s.name ... | Update podspec to version 0.0.3
|
diff --git a/app/controllers/api/v1/nightbot_controller.rb b/app/controllers/api/v1/nightbot_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/nightbot_controller.rb
+++ b/app/controllers/api/v1/nightbot_controller.rb
@@ -7,8 +7,19 @@ when 'current'
track = Play.where.not(played_at: ni... | Add playlist and request support to Nightbot API
|
diff --git a/app/controllers/api/v1/sessions_controller.rb b/app/controllers/api/v1/sessions_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/sessions_controller.rb
+++ b/app/controllers/api/v1/sessions_controller.rb
@@ -1,13 +1,30 @@-class Api::V1::SessionsController < Devise::SessionsControlle... | Add custom session controller for API-based login/logout
|
diff --git a/app/decorators/configured_system_decorator.rb b/app/decorators/configured_system_decorator.rb
index abc1234..def5678 100644
--- a/app/decorators/configured_system_decorator.rb
+++ b/app/decorators/configured_system_decorator.rb
@@ -2,8 +2,4 @@ def self.fonticon
'ff ff-configured-system'
end
-
- ... | Drop the fileicon in ConfiguredSystemDecorator
|
diff --git a/backend/lib/tasks/rubocop_brakeman_rspec.rake b/backend/lib/tasks/rubocop_brakeman_rspec.rake
index abc1234..def5678 100644
--- a/backend/lib/tasks/rubocop_brakeman_rspec.rake
+++ b/backend/lib/tasks/rubocop_brakeman_rspec.rake
@@ -0,0 +1,55 @@+require 'rubocop/rake_task'
+require 'rspec/core/rake_task'
+
... | Write rubocop rspec and test rakefile
|
diff --git a/imaginary-client.gemspec b/imaginary-client.gemspec
index abc1234..def5678 100644
--- a/imaginary-client.gemspec
+++ b/imaginary-client.gemspec
@@ -18,6 +18,7 @@ gem.require_paths = ["lib"]
gem.add_dependency 'httmultiparty', '>= 0.3.8'
+ gem.add_dependency 'httparty', '>= 0.10.0'
gem.add_deve... | Make sure we're using a safe version of httparty. |
diff --git a/week-6/guessing-game/my_solution.rb b/week-6/guessing-game/my_solution.rb
index abc1234..def5678 100644
--- a/week-6/guessing-game/my_solution.rb
+++ b/week-6/guessing-game/my_solution.rb
@@ -6,30 +6,78 @@
# Pseudocode
-# Input:
-# Output:
+# Input: integer (it is called guess)
+# Output: whether you s... | Include refactored solution in guessing game
|
diff --git a/src/main/resources/model/physical_element.rb b/src/main/resources/model/physical_element.rb
index abc1234..def5678 100644
--- a/src/main/resources/model/physical_element.rb
+++ b/src/main/resources/model/physical_element.rb
@@ -1,5 +1,5 @@ class PhysicalElement
- attr_accessor :order, :orderlabel #, :ty... | Add field 'id' to physical info
|
diff --git a/lib/scss_lint/engine.rb b/lib/scss_lint/engine.rb
index abc1234..def5678 100644
--- a/lib/scss_lint/engine.rb
+++ b/lib/scss_lint/engine.rb
@@ -11,7 +11,7 @@ attr_reader :contents, :filename, :lines, :tree
def initialize(scss_or_filename)
- if File.exists?(scss_or_filename)
+ if File.e... | Fix Rubocop lints in Engine class
Change-Id: Ib6135d18727a078277810f78ecfc516085e1362d
Reviewed-on: http://gerrit.causes.com/36708
Tested-by: jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@causes.com>
Reviewed-by: Shane da Silva <6f6e68d1df92f30cb4b3ce35260ddf94a402f33d@causes.com>
|
diff --git a/lib/tic_tac_toe/game.rb b/lib/tic_tac_toe/game.rb
index abc1234..def5678 100644
--- a/lib/tic_tac_toe/game.rb
+++ b/lib/tic_tac_toe/game.rb
@@ -17,6 +17,8 @@ def get_move
got_input = false
while not got_input
+ @console.print "Enter your move [0-8]: "
+ @console.oflush
... | Add a move entry prompt
|
diff --git a/bin/geocode_cita.rb b/bin/geocode_cita.rb
index abc1234..def5678 100644
--- a/bin/geocode_cita.rb
+++ b/bin/geocode_cita.rb
@@ -0,0 +1,25 @@+#!/usr/bin/env ruby
+
+require 'csv'
+require 'geocoder'
+require 'json'
+
+locations = []
+
+# "REGION","DELIVERY BUREAU","PRIMARY CONTACT","POSTAL ADDRESS","Phone n... | Add script to process CitA csv
|
diff --git a/app/controllers/admin/events_controller.rb b/app/controllers/admin/events_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/admin/events_controller.rb
+++ b/app/controllers/admin/events_controller.rb
@@ -1,15 +1,13 @@ class Admin::EventsController < Admin::BaseController
before_filter :a... | Fix authorization check on the /admin/events page
|
diff --git a/app/serializers/invitation_serializer.rb b/app/serializers/invitation_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/invitation_serializer.rb
+++ b/app/serializers/invitation_serializer.rb
@@ -7,6 +7,6 @@ has_one :inviter, serializer: UserSerializer, root: :users
def url
- invi... | Fix failing confirmation on invite to poll
|
diff --git a/app/services/firebase_cloud_messaging.rb b/app/services/firebase_cloud_messaging.rb
index abc1234..def5678 100644
--- a/app/services/firebase_cloud_messaging.rb
+++ b/app/services/firebase_cloud_messaging.rb
@@ -17,16 +17,9 @@ NotificationsJob.perform_later(to.map{|u| u.id}, {
title: report.au... | Remove whole report info from NotificationData and add report_id.
|
diff --git a/spec/examples/hotel_booking_spec.rb b/spec/examples/hotel_booking_spec.rb
index abc1234..def5678 100644
--- a/spec/examples/hotel_booking_spec.rb
+++ b/spec/examples/hotel_booking_spec.rb
@@ -0,0 +1,95 @@+require 'spec_helper'
+require 'active_support/time'
+
+describe 'Hotel Booking Example' do
+
+ modu... | Add example for creating requests
|
diff --git a/spec/unit/init_service_suse_spec.rb b/spec/unit/init_service_suse_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/init_service_suse_spec.rb
+++ b/spec/unit/init_service_suse_spec.rb
@@ -2,7 +2,7 @@
describe 'chef-client::init_service' do
- os = { platform: 'suse', version: '11.03', conf_dir: 'sy... | Update suse version to match Fauxhai
|
diff --git a/app/controllers/messages_controller.rb b/app/controllers/messages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/messages_controller.rb
+++ b/app/controllers/messages_controller.rb
@@ -1,7 +1,8 @@ class MessagesController < ApplicationController
def create
@thread = MessageThread... | Rework message creation since created_by isn't mass assignable.
|
diff --git a/pronto.gemspec b/pronto.gemspec
index abc1234..def5678 100644
--- a/pronto.gemspec
+++ b/pronto.gemspec
@@ -24,5 +24,5 @@ s.add_dependency 'rugged', '~> 0.19.0'
s.add_dependency 'thor', '~> 0.18.0'
s.add_development_dependency 'rake', '~> 10.1.0'
- s.add_development_dependency 'rspec', '~> 2.13.0'... | Update rspec version from 2.13.0 to 2.14.0
|
diff --git a/app.rb b/app.rb
index abc1234..def5678 100644
--- a/app.rb
+++ b/app.rb
@@ -42,7 +42,8 @@ def check_backend
NullWorker.perform_async(rand(30))
:ok
- rescue
+ rescue => e
+ puts e
:fail
end
| Print error message for NullWorker
|
diff --git a/app/models/container_image_registry.rb b/app/models/container_image_registry.rb
index abc1234..def5678 100644
--- a/app/models/container_image_registry.rb
+++ b/app/models/container_image_registry.rb
@@ -1,9 +1,15 @@ class ContainerImageRegistry < ApplicationRecord
belongs_to :ext_management_system, :fo... | Add a :service_container_groups field to conserve the number of pods running the registry service functionality
|
diff --git a/app/models/i18n_content_translation.rb b/app/models/i18n_content_translation.rb
index abc1234..def5678 100644
--- a/app/models/i18n_content_translation.rb
+++ b/app/models/i18n_content_translation.rb
@@ -1,5 +1,5 @@ class I18nContentTranslation < ActiveRecord::Base
def self.existing_languages
- self.... | Fix deprecation warning for `.uniq` usage
|
diff --git a/app/models/registrant_event_sign_up.rb b/app/models/registrant_event_sign_up.rb
index abc1234..def5678 100644
--- a/app/models/registrant_event_sign_up.rb
+++ b/app/models/registrant_event_sign_up.rb
@@ -3,6 +3,7 @@ #validates :event_category, :presence => true, :if => "signed_up"
validates :signed_u... | Add validation for event age range on sign-up
|
diff --git a/lib/cenit/redis.rb b/lib/cenit/redis.rb
index abc1234..def5678 100644
--- a/lib/cenit/redis.rb
+++ b/lib/cenit/redis.rb
@@ -10,7 +10,7 @@
def client
unless instance_variable_defined?(:@redis_client)
- client = ::Redis.new
+ client = ::Redis.new(host: ENV["REDIS_HOST"], po... | Add support for config Redis conection
|
diff --git a/lib/excel_rails.rb b/lib/excel_rails.rb
index abc1234..def5678 100644
--- a/lib/excel_rails.rb
+++ b/lib/excel_rails.rb
@@ -18,7 +18,7 @@ def disposition(download, filename)
download = true if (filename && download == nil)
disposition = download ? "attachment;" : "inline;"
- ... | Add quoting to filename part of Content-Disposition header.
|
diff --git a/spec/lib/tasks/dev_seed_spec.rb b/spec/lib/tasks/dev_seed_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/tasks/dev_seed_spec.rb
+++ b/spec/lib/tasks/dev_seed_spec.rb
@@ -0,0 +1,18 @@+require 'rails_helper'
+require 'rake'
+
+describe 'rake db:dev_seed' do
+ before do
+ Rake.application.rake_requi... | Add spec for 'rake db:dev_seed' task
|
diff --git a/app/controllers/wireless_networks_controller.rb b/app/controllers/wireless_networks_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/wireless_networks_controller.rb
+++ b/app/controllers/wireless_networks_controller.rb
@@ -36,7 +36,7 @@ end
def all_joins
- "INNER JOIN locat... | Make Wireless network location join optional
|
diff --git a/spec/support/settings_helper.rb b/spec/support/settings_helper.rb
index abc1234..def5678 100644
--- a/spec/support/settings_helper.rb
+++ b/spec/support/settings_helper.rb
@@ -2,6 +2,11 @@ settings = Config::Options.new.merge!(hash)
stub_const("Settings", settings)
allow(Vmdb::Settings).to receive(... | Add stub_template_settings for testing access to template config
|
diff --git a/lib/vapebot/irc.rb b/lib/vapebot/irc.rb
index abc1234..def5678 100644
--- a/lib/vapebot/irc.rb
+++ b/lib/vapebot/irc.rb
@@ -3,6 +3,7 @@ def register
send_nick
send_user
+ sleep 3
send_pass
end
| Add in delay to allow nickserv to prompt.
|
diff --git a/test/hw1_part5_test.rb b/test/hw1_part5_test.rb
index abc1234..def5678 100644
--- a/test/hw1_part5_test.rb
+++ b/test/hw1_part5_test.rb
@@ -5,9 +5,14 @@ attr_accessor_with_history :bar
end
+class Bar
+ attr_accessor_with_history :foo
+ attr_accessor_with_history :bar
+end
+
class TestAdvanced... | Add multiple attr_accessor_with_history test to part5
|
diff --git a/lib/dirigible/request.rb b/lib/dirigible/request.rb
index abc1234..def5678 100644
--- a/lib/dirigible/request.rb
+++ b/lib/dirigible/request.rb
@@ -38,7 +38,7 @@
Utils.handle_api_error(response) unless (200..399).include?(response.status)
- Utils.parse_message(response.body)
+ Utils.par... | Send response to parse_message. Not response.body.
|
diff --git a/FCModel.podspec b/FCModel.podspec
index abc1234..def5678 100644
--- a/FCModel.podspec
+++ b/FCModel.podspec
@@ -5,7 +5,7 @@ s.homepage = 'https://github.com/marcoarment/FCModel'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Marco Arment' => 'me@marco.org' }
- s.source = { :git =... | Use spec version as the source tag.
|
diff --git a/lib/flatware/fireable.rb b/lib/flatware/fireable.rb
index abc1234..def5678 100644
--- a/lib/flatware/fireable.rb
+++ b/lib/flatware/fireable.rb
@@ -11,8 +11,6 @@ while message = monitor.recv
if message == :EVENT_ACCEPTED
break
- else
- puts message
end
... | Remove socket lifecycle puts for monitor
|
diff --git a/requiregems.rb b/requiregems.rb
index abc1234..def5678 100644
--- a/requiregems.rb
+++ b/requiregems.rb
@@ -15,9 +15,9 @@ require 'RestClient'
rescue LoadError
puts "You're missing the gem `rest-client`. Would you like to install this now? (y/n)"
- input = gets
+ input = gets.chomp
if input == '... | Fix require gems not working (maybe?)
|
diff --git a/lib/ripl/color_result.rb b/lib/ripl/color_result.rb
index abc1234..def5678 100644
--- a/lib/ripl/color_result.rb
+++ b/lib/ripl/color_result.rb
@@ -13,6 +13,7 @@ end
def format_result(result)
+ return super if !config[:color_result_engine]
format_prompt(result) + inspect_result(resul... | Allow coloring to be disabled with false or nil
|
diff --git a/lib/spontaneous/facet.rb b/lib/spontaneous/facet.rb
index abc1234..def5678 100644
--- a/lib/spontaneous/facet.rb
+++ b/lib/spontaneous/facet.rb
@@ -30,7 +30,8 @@
def load_indexes!
paths.expanded(:config).each do |config_path|
- load(config_path / "indexes.rb" )
+ index_file = con... | Make loading of indexes.rb dependent on its existance
|
diff --git a/lib/wp_op/post_writer.rb b/lib/wp_op/post_writer.rb
index abc1234..def5678 100644
--- a/lib/wp_op/post_writer.rb
+++ b/lib/wp_op/post_writer.rb
@@ -25,7 +25,22 @@ end
def create_file_contents_for post
+ content = create_meta post
+ content += post.content
+ content
+ end
+ def create_me... | Create actual post content for file
|
diff --git a/riddle.gemspec b/riddle.gemspec
index abc1234..def5678 100644
--- a/riddle.gemspec
+++ b/riddle.gemspec
@@ -14,9 +14,7 @@
s.rubyforge_project = 'riddle'
- s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
- s.executables = `git ... | Stop packaging test files with the gem
It drastically reduces the size of the gem, from 1.9M to 32K. The
default for new gems (created by bundler) is not to include test files.
See bundler/bundler#3207
|
diff --git a/rulers.gemspec b/rulers.gemspec
index abc1234..def5678 100644
--- a/rulers.gemspec
+++ b/rulers.gemspec
@@ -8,12 +8,14 @@ gem.version = Rulers::VERSION
gem.authors = ["Baozi Wu"]
gem.email = ["baojjeu@gmail.com"]
- gem.description = %q{TODO: Write a gem description}
- gem.su... | Add descriptions and runtime dependency
|
diff --git a/source/util.rb b/source/util.rb
index abc1234..def5678 100644
--- a/source/util.rb
+++ b/source/util.rb
@@ -1,7 +1,11 @@ def to_number(ns)
- if ns.include? '.'
- return ns.to_f
+ if ns.class == String
+ if ns.include? '.'
+ return ns.to_f
+ else
+ return ns.... | Fix to_number to work with numbers.
|
diff --git a/lib/llt/diff/alignment/difference/nrefs.rb b/lib/llt/diff/alignment/difference/nrefs.rb
index abc1234..def5678 100644
--- a/lib/llt/diff/alignment/difference/nrefs.rb
+++ b/lib/llt/diff/alignment/difference/nrefs.rb
@@ -1,5 +1,8 @@ module LLT
module Diff::Alignment::Difference
+
+ # This whole class ... | Add comment about possible deprecation of Nrefs
|
diff --git a/lib/tasks/temporary/factual_migration.rake b/lib/tasks/temporary/factual_migration.rake
index abc1234..def5678 100644
--- a/lib/tasks/temporary/factual_migration.rake
+++ b/lib/tasks/temporary/factual_migration.rake
@@ -0,0 +1,25 @@+namespace :temporary do
+ desc 'Fill in city from old Factual imports'
+ ... | :elephant: Migrate cities for Factual imports
|
diff --git a/samples/elb.rb b/samples/elb.rb
index abc1234..def5678 100644
--- a/samples/elb.rb
+++ b/samples/elb.rb
@@ -13,9 +13,7 @@
puts "", "Your Load Balancers", ""
-p $elb.describe_load_balancers
-
-$elb.describe_load_balancers.describe_load_balancers_result.load_balancer_descriptions.each do |elb|
+$elb.desc... | Update ELB sample to work with collapsed Result
|
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -35,19 +35,19 @@ def port_offset
base = case ENV["AKER_ENV"]
when /jruby/
- 108
+ 17
when /1.9/
- 207
+ 26
... | Use mutually prime port offsets to prevent overlap.
|
diff --git a/db/migrate/20150611164132_migrate_user_login.rb b/db/migrate/20150611164132_migrate_user_login.rb
index abc1234..def5678 100644
--- a/db/migrate/20150611164132_migrate_user_login.rb
+++ b/db/migrate/20150611164132_migrate_user_login.rb
@@ -20,7 +20,7 @@ validator.validate user
end
- u... | Set login even on deleted users |
diff --git a/gitlab_git.gemspec b/gitlab_git.gemspec
index abc1234..def5678 100644
--- a/gitlab_git.gemspec
+++ b/gitlab_git.gemspec
@@ -11,7 +11,7 @@ s.homepage =
'https://gitlab.com/gitlab-org/gitlab_git'
- s.add_dependency('github-linguist', '~> 5.1.0')
+ s.add_dependency('github-linguist', '>= 5.1', '... | Update github-linguist requirement to >= 5.1, < 5.3
Updates the requirements on [github-linguist](https://github.com/github/linguist) to permit the latest version.
- [Release notes](https://github.com/github/linguist/releases) |
diff --git a/SDColor.podspec b/SDColor.podspec
index abc1234..def5678 100644
--- a/SDColor.podspec
+++ b/SDColor.podspec
@@ -7,6 +7,7 @@ spec.source = { :git => 'https://github.com/steam/SDColor.git', :tag => "#{spec.version}" }
spec.description = 'Use hexidecimal values to create UIColor objects.'
spec.... | Add UIKit dependency to podspec
Signed-off-by: Sean Doughety <58cdf895b71f84481e06f521739b30fbd55e8539@gmail.com>
|
diff --git a/rails-sandbox-assets.gemspec b/rails-sandbox-assets.gemspec
index abc1234..def5678 100644
--- a/rails-sandbox-assets.gemspec
+++ b/rails-sandbox-assets.gemspec
@@ -15,5 +15,5 @@ gem.require_paths = ["lib"]
gem.version = SandboxAssets::VERSION
- gem.add_dependency 'rails', '~> 3.1'
+ gem.add_... | Add support to Rails 4
|
diff --git a/schema.gemspec b/schema.gemspec
index abc1234..def5678 100644
--- a/schema.gemspec
+++ b/schema.gemspec
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
s.name = 'schema'
s.summary = "Primitives for schema and structure"
- s.version = '0.1.2.0'
+ s.version = '0.2.0.0'
s.description = ' '
s.aut... | Package version increased from 0.1.2.0 to 0.2.0.0
|
diff --git a/test/app_root/config/environment.rb b/test/app_root/config/environment.rb
index abc1234..def5678 100644
--- a/test/app_root/config/environment.rb
+++ b/test/app_root/config/environment.rb
@@ -1,7 +1,6 @@ require 'config/boot'
Rails::Initializer.run do |config|
- config.plugin_paths << '..'
config.pl... | Remove old additional plugin load paths
|
diff --git a/app/helpers/layouts_helper.rb b/app/helpers/layouts_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/layouts_helper.rb
+++ b/app/helpers/layouts_helper.rb
@@ -9,7 +9,7 @@ end
def gauges_tracking_code
- views["gauges_tracking_code"]
+ institution_views["gauges_tracking_code"]
end
... | Change old views var to institution_views with nyulibraries_templates change
|
diff --git a/app/models/helpdesk_ticket.rb b/app/models/helpdesk_ticket.rb
index abc1234..def5678 100644
--- a/app/models/helpdesk_ticket.rb
+++ b/app/models/helpdesk_ticket.rb
@@ -24,4 +24,19 @@ self.is_resolved = true
self.save!
end
+
+ # Unit for ticket
+ def unit
+ project.unit
+ end
+
+ # Studen... | ENHANCE: Add convenience methods to helpdesk ticket model
|
diff --git a/test/unit/sitemap_generator_test.rb b/test/unit/sitemap_generator_test.rb
index abc1234..def5678 100644
--- a/test/unit/sitemap_generator_test.rb
+++ b/test/unit/sitemap_generator_test.rb
@@ -0,0 +1,15 @@+require "test_helper"
+require "elasticsearch/sitemap"
+
+class SitemapGeneratorTest < MiniTest::Unit:... | Add basic test for sitemap generation
Check to make sure both fully qualified urls and path only urls are
correctly handled when generating the sitemap.
|
diff --git a/models/scoreset.rb b/models/scoreset.rb
index abc1234..def5678 100644
--- a/models/scoreset.rb
+++ b/models/scoreset.rb
@@ -20,12 +20,12 @@ puts "found music!" if music
raise MusicMismatchError.new(song_name, music ? music.name : nil)
end
- DIFFICULTY.each do |diff, diff_num|
+... | Fix bug (use DIFFICULTY as Array)
|
diff --git a/db/migrate/20100329124227_add_started_to_backup_job.rb b/db/migrate/20100329124227_add_started_to_backup_job.rb
index abc1234..def5678 100644
--- a/db/migrate/20100329124227_add_started_to_backup_job.rb
+++ b/db/migrate/20100329124227_add_started_to_backup_job.rb
@@ -0,0 +1,9 @@+class AddStartedToBackupJob... | Add migration to store the started timestamp. Not used yet
|
diff --git a/All_Permutations/solution.rb b/All_Permutations/solution.rb
index abc1234..def5678 100644
--- a/All_Permutations/solution.rb
+++ b/All_Permutations/solution.rb
@@ -0,0 +1,29 @@+#http://www.geeksforgeeks.org/write-a-c-program-to-print-all-permutations-of-a-given-string/
+
+# Preorder
+$string_arr = %w( a b... | Add first iteration on all permutation
|
diff --git a/docs/analytics_scripts/wikidata_stats.rb b/docs/analytics_scripts/wikidata_stats.rb
index abc1234..def5678 100644
--- a/docs/analytics_scripts/wikidata_stats.rb
+++ b/docs/analytics_scripts/wikidata_stats.rb
@@ -0,0 +1,17 @@+load "#{Rails.root}/lib/wikidata_summary_parser.rb"
+
+campaign = Campaign.find_by... | Add scratch code for analyzing wikidata contribs for courses
|
diff --git a/app/helpers/gend_images_helper.rb b/app/helpers/gend_images_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/gend_images_helper.rb
+++ b/app/helpers/gend_images_helper.rb
@@ -15,7 +15,7 @@
def gend_thumb_url_for(gend_image)
url_for(
- controller: :gend_thumbs,
+ controller: '/ge... | Use absolute path for controller in gend thumbs url helper
It needs this to point to the root namespace when the helper is used
from the API namespace.
|
diff --git a/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name}}_db_sync_spec.rb b/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name}}_db_sync_spec.rb
index abc1234..def5678 100644
--- a/puppet-{{cookiecutter.project_name}}/spec/classes/{{cookiecutter.project_name... | Include deps class in unit test for sync
Change-Id: Ia8fd8c95fe1572b9132899ed76d1ca6386220900
|
diff --git a/rdl.gemspec b/rdl.gemspec
index abc1234..def5678 100644
--- a/rdl.gemspec
+++ b/rdl.gemspec
@@ -4,13 +4,20 @@
Gem::Specification.new do |s|
s.name = 'rdl'
- s.version = '1.0.0.rc1'
- s.date = '2015-12-16'
- s.summary = "Ruby type and contract system"
- s.description = s.summa... | Add require_all dependency, fix description
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.