diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/spec/oauth_container_spec.rb b/spec/oauth_container_spec.rb
index abc1234..def5678 100644
--- a/spec/oauth_container_spec.rb
+++ b/spec/oauth_container_spec.rb
@@ -1,5 +1,37 @@ require 'spec_helper'
+require 'dry-monads'
RSpec.describe WebBouncer::OauthContainer do
- pending "write it"
+ include Dry::... | Add simple tests for OauthContainer class
|
diff --git a/core/db/migrate/20150626200816_remove_shipping_method_id_from_spree_orders.rb b/core/db/migrate/20150626200816_remove_shipping_method_id_from_spree_orders.rb
index abc1234..def5678 100644
--- a/core/db/migrate/20150626200816_remove_shipping_method_id_from_spree_orders.rb
+++ b/core/db/migrate/2015062620081... | Remove shipping_method_id column from spree_orders
This is a relic from before spree separated shipments from orders.
|
diff --git a/lib/binman/rakefile.rb b/lib/binman/rakefile.rb
index abc1234..def5678 100644
--- a/lib/binman/rakefile.rb
+++ b/lib/binman/rakefile.rb
@@ -26,7 +26,7 @@ desc 'Build UNIX manual pages for bin/ scripts.'
task 'binman:man' => mkds do
#------------------------------------------------------------------------... | Revert "ensure 'binman:web' task works the first time thru"
This reverts commit dd0511e78e02546cac4903b5c6de6243607a8bba,
which was causing the following error under Ruby 2.3.0p0.
% rake build
mkdir -p man/man1
rake aborted!
LoadError: cannot load such file -- md2man/rakefile.rb
./lib/binman/rakefile.rb:29:... |
diff --git a/lib/creperie/loader.rb b/lib/creperie/loader.rb
index abc1234..def5678 100644
--- a/lib/creperie/loader.rb
+++ b/lib/creperie/loader.rb
@@ -6,7 +6,7 @@ # If we find a Gemfile using the method below and it contains Crepe
# as a dependency, we can safely assume we're in a Crepe application.
... | Return filepath from Loader as opposed to file contents
Signed-off-by: David Celis <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@davidcel.is>
|
diff --git a/recipes/_god.rb b/recipes/_god.rb
index abc1234..def5678 100644
--- a/recipes/_god.rb
+++ b/recipes/_god.rb
@@ -18,6 +18,7 @@ mode "0755"
end
+# Create god config file
file "/etc/god/master.conf" do
owner "root"
group "root"
@@ -27,7 +28,7 @@ home = node["practicingruby"]["deploy"]... | Add newline to god config file
|
diff --git a/lib/ettu/fresh_when.rb b/lib/ettu/fresh_when.rb
index abc1234..def5678 100644
--- a/lib/ettu/fresh_when.rb
+++ b/lib/ettu/fresh_when.rb
@@ -5,7 +5,7 @@ included do
alias_method :old_fresh_when, :fresh_when
- def fresh_when(record_or_options, additional_options)
+ def fresh_when(recor... | Allow additional_options to be optional
|
diff --git a/lib/frecon/database.rb b/lib/frecon/database.rb
index abc1234..def5678 100644
--- a/lib/frecon/database.rb
+++ b/lib/frecon/database.rb
@@ -27,12 +27,29 @@ def self.setup!
Mongoid.load!(File.join(File.dirname(__FILE__), 'mongoid.yml'), FReCon::ENVIRONMENT.variable)
- if FReCon::ENVIRONMENT.consol... | Database: Use more intelligent parsing solution for Logger.level sets
|
diff --git a/lib/lime/featurette.rb b/lib/lime/featurette.rb
index abc1234..def5678 100644
--- a/lib/lime/featurette.rb
+++ b/lib/lime/featurette.rb
@@ -0,0 +1,68 @@+module Lime
+
+ # Convenience method for creating a feature mixin.
+ #
+ # @example
+ #
+ # module MyStepDefinitions
+ # include Lime::Feature... | Move Featurette class to own file.
|
diff --git a/lib/tasks/install.rake b/lib/tasks/install.rake
index abc1234..def5678 100644
--- a/lib/tasks/install.rake
+++ b/lib/tasks/install.rake
@@ -10,7 +10,7 @@ task :migrations do
source = File.join(File.dirname(__FILE__), '..', '..', 'db')
destination = File.join(Rails.root, 'db')
- Spree... | Make FileUtilz inherit from right class, Spree => Spree::Core
|
diff --git a/lib/transproc/array.rb b/lib/transproc/array.rb
index abc1234..def5678 100644
--- a/lib/transproc/array.rb
+++ b/lib/transproc/array.rb
@@ -15,6 +15,7 @@ register(:group) do |array, key, keys|
grouped = Hash.new { |hash, key| hash[key] = [] }
array.each do |hash|
+ hash = hash.dup
c... | Make :group not mutate input
|
diff --git a/lib/yeah-web/server.rb b/lib/yeah-web/server.rb
index abc1234..def5678 100644
--- a/lib/yeah-web/server.rb
+++ b/lib/yeah-web/server.rb
@@ -1,5 +1,6 @@ require 'rack'
require 'opal'
+require 'tilt/erb'
class Yeah::Web::Server
def initialize(port = 1234)
| Fix cause of tilt/erb autoload warning
|
diff --git a/xcode/pbxproj_pp_uuid.rb b/xcode/pbxproj_pp_uuid.rb
index abc1234..def5678 100644
--- a/xcode/pbxproj_pp_uuid.rb
+++ b/xcode/pbxproj_pp_uuid.rb
@@ -0,0 +1,88 @@+#!/usr/bin/env ruby
+#
+# A script to get or set the provisioning profile UUID from a XCode .pbxproj files given its configuration name
+#
+requir... | Convert script from shell to ruby
|
diff --git a/test/alavetelitheme_test.rb b/test/alavetelitheme_test.rb
index abc1234..def5678 100644
--- a/test/alavetelitheme_test.rb
+++ b/test/alavetelitheme_test.rb
@@ -1,8 +1,8 @@-require 'test_helper'
-
+require File.expand_path(File.join(File.dirname(__FILE__), 'test_helper'))
class AlavetelithemeTest < ActiveS... | Fix require so that tests can be run from alaveteli Rails.root.
|
diff --git a/db/migrations/23_create_pact_versions_table.rb b/db/migrations/23_create_pact_versions_table.rb
index abc1234..def5678 100644
--- a/db/migrations/23_create_pact_versions_table.rb
+++ b/db/migrations/23_create_pact_versions_table.rb
@@ -1,7 +1,7 @@ require_relative 'migration_helper'
Sequel.migration do
... | fix(migration): Use change instead of up/down
|
diff --git a/sphero_robot.rb b/sphero_robot.rb
index abc1234..def5678 100644
--- a/sphero_robot.rb
+++ b/sphero_robot.rb
@@ -5,17 +5,38 @@ connection :sphero, :adaptor => :sphero, :port => '127.0.0.1:4560'
device :sphero, :driver => :sphero
+ def initialize(params={})
+ @lock = Mutex.new
+ super params
+ ... | Add mutex support for commands
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -1,6 +1,6 @@ name 'runit'
-maintainer 'Heavy Water Operations, LLC.'
-maintainer_email 'support@hw-ops.com'
+maintainer 'Chef Software, Inc.'
+maintainer_email 'cookbooks@chef.io'
license 'Apache 2.0'
descripti... | Update owner, add chef_version and additional platforms
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -4,6 +4,6 @@ license 'Apache 2.0'
description 'Installs/Configures Visual Studio 2012'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version '0.1.0'
+version (... | Make version configurable from CI
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -6,10 +6,11 @@ long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.4.0'
-supports 'ubuntu'
+supports 'ubuntu', '>= 12.04'
-depends 'sqlite'
depends 'build-essential'... | Define supported platforms and suggest cookbooks
|
diff --git a/lib/event_store/messaging/writer.rb b/lib/event_store/messaging/writer.rb
index abc1234..def5678 100644
--- a/lib/event_store/messaging/writer.rb
+++ b/lib/event_store/messaging/writer.rb
@@ -24,6 +24,7 @@
def write(msg)
messages << msg
+ msg
end
def writte... | Return message from the write method.
|
diff --git a/db/migrate/20160420102347_remove_appointed_person_for_england_and_wales_tag.rb b/db/migrate/20160420102347_remove_appointed_person_for_england_and_wales_tag.rb
index abc1234..def5678 100644
--- a/db/migrate/20160420102347_remove_appointed_person_for_england_and_wales_tag.rb
+++ b/db/migrate/20160420102347_... | Revert "Revert "Revert "Revert "Migration to remove an org created in error""""
|
diff --git a/lib/formulas/gunning_fog.rb b/lib/formulas/gunning_fog.rb
index abc1234..def5678 100644
--- a/lib/formulas/gunning_fog.rb
+++ b/lib/formulas/gunning_fog.rb
@@ -3,6 +3,16 @@ def score(text, stats)
percent = three_syllables(stats['word_count'], text['syllables'])
calc_score(stats['average_words_p... | Add per sentence gunning frog
|
diff --git a/lib/rails-html-sanitizer.rb b/lib/rails-html-sanitizer.rb
index abc1234..def5678 100644
--- a/lib/rails-html-sanitizer.rb
+++ b/lib/rails-html-sanitizer.rb
@@ -5,17 +5,19 @@
module Rails
module Html
- module Sanitizer
- def full_sanitizer
- Html::FullSanitizer
- end
+ class Sani... | Change Sanitizer to class with class methods.
|
diff --git a/lib/relish/commands/base.rb b/lib/relish/commands/base.rb
index abc1234..def5678 100644
--- a/lib/relish/commands/base.rb
+++ b/lib/relish/commands/base.rb
@@ -9,23 +9,21 @@
attr_writer :args
+ def self.option(name)
+ define_method(name) do
+ @options[name.to_s] |... | Fix specs, add a little DSL to the Command::Base for defining an option
|
diff --git a/lib/web_console/template.rb b/lib/web_console/template.rb
index abc1234..def5678 100644
--- a/lib/web_console/template.rb
+++ b/lib/web_console/template.rb
@@ -18,7 +18,7 @@
# Render a template (inferred from +template_paths+) as a plain string.
def render(template)
- view = View.new(templa... | Drop the Action View warnings for Rails 6
|
diff --git a/Casks/fluid.rb b/Casks/fluid.rb
index abc1234..def5678 100644
--- a/Casks/fluid.rb
+++ b/Casks/fluid.rb
@@ -1,13 +1,13 @@ cask :v1 => 'fluid' do
- version '1.8.3'
- sha256 '56438a946b281b009626a06cb099a7198e948bc8bef18a19c1bceb28bbe4d619'
+ version '1.8.4'
+ sha256 'ccb7d282e9613ebd1949f27e942b4cf516de... | Update Fluid to version 1.8.4
This commit changes the version number and the SHA. I have also
changed the licence type to commercial.
|
diff --git a/lib/miq_automation_engine/service_models/miq_ae_service_orchestration_template_vnfd.rb b/lib/miq_automation_engine/service_models/miq_ae_service_orchestration_template_vnfd.rb
index abc1234..def5678 100644
--- a/lib/miq_automation_engine/service_models/miq_ae_service_orchestration_template_vnfd.rb
+++ b/li... | Fix rubocop issues for NFV support
Fix rubocop issues for NFV support
(transferred from ManageIQ/manageiq@3ff720d354039416cef82df1c1a6dcee393f481c)
|
diff --git a/sassc-import_once.gemspec b/sassc-import_once.gemspec
index abc1234..def5678 100644
--- a/sassc-import_once.gemspec
+++ b/sassc-import_once.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependency "sassc", "~> 1.8"... | Allow newer sassc for m1 macs compatibility
Newer sassc versions use newer ffi versions,
which are needed for m1 macs.
|
diff --git a/src/modules/module_monkey.rb b/src/modules/module_monkey.rb
index abc1234..def5678 100644
--- a/src/modules/module_monkey.rb
+++ b/src/modules/module_monkey.rb
@@ -6,13 +6,11 @@ cfg_file = bot.base_path + "/" + filename
puts "Reading monkey config from '#{cfg_file}'"
@expressions = YAML.load_... | Remove debug from monkey module
Signed-off-by: Aki Saarinen <278bc57fbbff6b7b38435aea0f9d37e3d879167e@akisaarinen.fi>
|
diff --git a/lib/serializers/group_serializer.rb b/lib/serializers/group_serializer.rb
index abc1234..def5678 100644
--- a/lib/serializers/group_serializer.rb
+++ b/lib/serializers/group_serializer.rb
@@ -6,11 +6,6 @@ name: group.name,
transfer_count: group.transfer_count,
- user: {
... | Drop unneeded user info from Group serialization
|
diff --git a/lib/web_components_rails/railtie.rb b/lib/web_components_rails/railtie.rb
index abc1234..def5678 100644
--- a/lib/web_components_rails/railtie.rb
+++ b/lib/web_components_rails/railtie.rb
@@ -5,8 +5,11 @@ ActionView::Base.module_eval do
include WebComponentsRails::AssetTagHelper
end
- Ra... | Support runtime environments without asset pipeline
|
diff --git a/app/controllers/hovercard/users_controller.rb b/app/controllers/hovercard/users_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/hovercard/users_controller.rb
+++ b/app/controllers/hovercard/users_controller.rb
@@ -3,23 +3,9 @@ before_filter :find_user
def hovercard
- @chal... | Update the way user challenges, submissions and awards are loaded.
|
diff --git a/app/serializers/helpdesk_ticket_serializer.rb b/app/serializers/helpdesk_ticket_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/helpdesk_ticket_serializer.rb
+++ b/app/serializers/helpdesk_ticket_serializer.rb
@@ -2,6 +2,7 @@ attributes :id,
:student,
:task,
... | FIX: Add missing task def id to ticket serialiser
|
diff --git a/medium-editor-rails.gemspec b/medium-editor-rails.gemspec
index abc1234..def5678 100644
--- a/medium-editor-rails.gemspec
+++ b/medium-editor-rails.gemspec
@@ -16,6 +16,6 @@ gem.files = `git ls-files`.split($/)
gem.require_paths = ['lib']
- gem.add_dependency 'railties', '>= 3.0'
+ gem.add... | Change dependency railties to ~> 3.0
|
diff --git a/test/integration/stats_test.rb b/test/integration/stats_test.rb
index abc1234..def5678 100644
--- a/test/integration/stats_test.rb
+++ b/test/integration/stats_test.rb
@@ -2,7 +2,8 @@
class StatsTest < SystemTest
test "page params is not integer" do
- visit '/stats?page="3\">XSS"'
+ string_param... | Fix URI::InvalidURIError: bad URI(is not URI?) in stats test
rake-test 0.7.0 stopped formatting params in urls[1] if they were already
in rest format. Test was passing in previous versions as side effect of
path being escaped by Rack::Test:Untils.build_nested_query (`#{escape(params)}`).
Test was originally written fo... |
diff --git a/app/helpers/api/pages_helper.rb b/app/helpers/api/pages_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/api/pages_helper.rb
+++ b/app/helpers/api/pages_helper.rb
@@ -10,7 +10,7 @@
# List all images required for api/featured.json
def images_src_set(page)
- %w[medium_square medium large].... | Revert "Changed the order of images in the srcset attrib"
This reverts commit 33e665a8c0cb7ce36f3d5121fa0a7c164b6994e8.
|
diff --git a/config/software/libossp-uuid.rb b/config/software/libossp-uuid.rb
index abc1234..def5678 100644
--- a/config/software/libossp-uuid.rb
+++ b/config/software/libossp-uuid.rb
@@ -22,8 +22,7 @@ end
# ftp on ftp.ossp.org is unavaiable so we must use another mirror site.
-# From homebrew discussion, following... | Use www.mirrorservice.org because googlecode.com will be shutdown
|
diff --git a/app/models/retirement_manager.rb b/app/models/retirement_manager.rb
index abc1234..def5678 100644
--- a/app/models/retirement_manager.rb
+++ b/app/models/retirement_manager.rb
@@ -3,7 +3,7 @@ ems_ids = MiqServer.my_server.zone.ext_management_system_ids
[LoadBalancer, OrchestrationStack, Vm, Servic... | Switch the retired logic as proposed by tinaafitz
See: https://www.pivotaltracker.com/story/show/145237979
|
diff --git a/shepherd.gemspec b/shepherd.gemspec
index abc1234..def5678 100644
--- a/shepherd.gemspec
+++ b/shepherd.gemspec
@@ -14,6 +14,9 @@ s.description = %q{Check if/how your projects are growing up!}
s.date = Time.now.strftime('%Y-%m-%d')
+ s.add_development_dependency('yard', '~> 0.7.2')
+ s.add_... | Use rspec and yard in development
|
diff --git a/activerecord/lib/active_record/internal_metadata.rb b/activerecord/lib/active_record/internal_metadata.rb
index abc1234..def5678 100644
--- a/activerecord/lib/active_record/internal_metadata.rb
+++ b/activerecord/lib/active_record/internal_metadata.rb
@@ -35,7 +35,7 @@ # Creates a internal metadata t... | Use `key` as primary key in schema. |
diff --git a/open_badges.gemspec b/open_badges.gemspec
index abc1234..def5678 100644
--- a/open_badges.gemspec
+++ b/open_badges.gemspec
@@ -19,6 +19,6 @@
gem.add_dependency "activesupport", "~> 3.0"
- gem.add_development_dependency "rspec", "2.11.0"
+ gem.add_development_dependency "rspec", "2.14.0"
gem.add... | Update RSpec to 2.14.0 to fix ActiveSupport::Deprecation bug in Ruby 2.x.
|
diff --git a/lib/chef_zero/endpoints/user_association_requests_count_endpoint.rb b/lib/chef_zero/endpoints/user_association_requests_count_endpoint.rb
index abc1234..def5678 100644
--- a/lib/chef_zero/endpoints/user_association_requests_count_endpoint.rb
+++ b/lib/chef_zero/endpoints/user_association_requests_count_end... | Fix 404 in assoc. request count to be correct
|
diff --git a/core/spec/lib/factlink_api/user_manager_spec.rb b/core/spec/lib/factlink_api/user_manager_spec.rb
index abc1234..def5678 100644
--- a/core/spec/lib/factlink_api/user_manager_spec.rb
+++ b/core/spec/lib/factlink_api/user_manager_spec.rb
@@ -6,8 +6,8 @@ DateTime.stub!(now: time)
FactlinkApi::UserMan... | Revert "Fix UserManager Spec, check for valid_password"
This reverts commit 0080c2e92e03519a07684ca93ed123525c6e2d7e.
|
diff --git a/rakelib/node_package.rake b/rakelib/node_package.rake
index abc1234..def5678 100644
--- a/rakelib/node_package.rake
+++ b/rakelib/node_package.rake
@@ -3,12 +3,12 @@
namespace :node_package do
task :build do
- sh 'npm run build'
+ sh "npm run build"
end
desc "Has all examples and dummy a... | Disable symlinking of node package
|
diff --git a/app/controllers/api/memberships_controller.rb b/app/controllers/api/memberships_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/memberships_controller.rb
+++ b/app/controllers/api/memberships_controller.rb
@@ -9,7 +9,7 @@ end
def my_memberships
- @memberships = current_user.... | Order groups by full name in search dropdown
|
diff --git a/padrino-rpm.gemspec b/padrino-rpm.gemspec
index abc1234..def5678 100644
--- a/padrino-rpm.gemspec
+++ b/padrino-rpm.gemspec
@@ -16,6 +16,6 @@ s.summary = %q{Padrino Instrumentation for New Relic RPM}
s.files = `git ls-files`.split("\n")
- s.add_dependency(%q<newrelic_rpm>, "~> 3.3.5")
+ s.add_depe... | Maintain compatibility with newrelic ~3.3.3
As per #8 newrelic changed the signature of the dispatch methods in
3.3.3. This commit restores compatibilty with 3.3.3 and higher, closing
|
diff --git a/{{cookiecutter.role_project_name}}/spec/{{cookiecutter.role_name}}_spec.rb b/{{cookiecutter.role_project_name}}/spec/{{cookiecutter.role_name}}_spec.rb
index abc1234..def5678 100644
--- a/{{cookiecutter.role_project_name}}/spec/{{cookiecutter.role_name}}_spec.rb
+++ b/{{cookiecutter.role_project_name}}/spe... | Update spec for Alpine Linux.
|
diff --git a/app/controllers/api/v1/stats_controller.rb b/app/controllers/api/v1/stats_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/v1/stats_controller.rb
+++ b/app/controllers/api/v1/stats_controller.rb
@@ -6,15 +6,22 @@ before_action :require_api_key_or_authenticate_user!
def app
- ... | Add time range params to stats action; include errors count |
diff --git a/app/controllers/job_messages_controller.rb b/app/controllers/job_messages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/job_messages_controller.rb
+++ b/app/controllers/job_messages_controller.rb
@@ -11,16 +11,15 @@ def get
status = ActiveJob::Status.get(params[:job_id])
if ... | Use other flash keys for progress status messages
|
diff --git a/app/controllers/select_phone_controller.rb b/app/controllers/select_phone_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/select_phone_controller.rb
+++ b/app/controllers/select_phone_controller.rb
@@ -2,6 +2,8 @@ require 'evidence_query_string_builder'
class SelectPhoneController < Ap... | 3491: Disable CSRF protection on select-phone form
This is so that requests from old frontend wont be rejected because they
do not contain the csrf value.
Authors: 4128f4e12f262ed8971b6235be968af8ca8e7344@vixus0
|
diff --git a/app/forms/backend/page_translation_form.rb b/app/forms/backend/page_translation_form.rb
index abc1234..def5678 100644
--- a/app/forms/backend/page_translation_form.rb
+++ b/app/forms/backend/page_translation_form.rb
@@ -13,5 +13,5 @@ property :seo_slug, on: :seo
validates :title, presence: true
- v... | Add todo regarding saving the page seo.
|
diff --git a/lib/mongo_mapper/plugins/embedded_callbacks.rb b/lib/mongo_mapper/plugins/embedded_callbacks.rb
index abc1234..def5678 100644
--- a/lib/mongo_mapper/plugins/embedded_callbacks.rb
+++ b/lib/mongo_mapper/plugins/embedded_callbacks.rb
@@ -34,6 +34,9 @@ end
end
+# Need to monkey patch ActiveModel for now ... | Add note about ActiveModel::Validations monkey patch |
diff --git a/piperator.gemspec b/piperator.gemspec
index abc1234..def5678 100644
--- a/piperator.gemspec
+++ b/piperator.gemspec
@@ -5,21 +5,21 @@ require 'piperator/version'
Gem::Specification.new do |spec|
- spec.name = 'piperator'
- spec.version = Piperator::VERSION
- spec.authors = ['Vill... | Remove extra spaces from gemspec |
diff --git a/spec/chirp/runner_spec.rb b/spec/chirp/runner_spec.rb
index abc1234..def5678 100644
--- a/spec/chirp/runner_spec.rb
+++ b/spec/chirp/runner_spec.rb
@@ -26,8 +26,12 @@ $stderr = STDERR
end
- it 'does not explode' do
- expect { subject.run! }.to_not raise_error StandardError
+ %w(cpu ... | Make some assertions about script run output
|
diff --git a/spec/coffeescript_spec.rb b/spec/coffeescript_spec.rb
index abc1234..def5678 100644
--- a/spec/coffeescript_spec.rb
+++ b/spec/coffeescript_spec.rb
@@ -45,7 +45,7 @@
context "matching file extensions" do
it "matches .coffee files" do
- expect(converter.matches(".coffee")).to be_true
+ ex... | Use be(true) in spec because be_true has changed.
|
diff --git a/site-cookbooks/backup_restore/spec/recipes/backup_directory_spec.rb b/site-cookbooks/backup_restore/spec/recipes/backup_directory_spec.rb
index abc1234..def5678 100644
--- a/site-cookbooks/backup_restore/spec/recipes/backup_directory_spec.rb
+++ b/site-cookbooks/backup_restore/spec/recipes/backup_directory... | Add chef-spec for backup_directory recipe
|
diff --git a/app/models/entry.rb b/app/models/entry.rb
index abc1234..def5678 100644
--- a/app/models/entry.rb
+++ b/app/models/entry.rb
@@ -2,14 +2,14 @@ include Mongoid::Document
include Mongoid::Timestamps
- field :script, :type => Binary
- field :score, :type => Integer
+ field :script, type: Binary
+ fi... | Use new Hash syntax in Entry model
|
diff --git a/app/models/order.rb b/app/models/order.rb
index abc1234..def5678 100644
--- a/app/models/order.rb
+++ b/app/models/order.rb
@@ -9,7 +9,7 @@ def paypal_url(return_url, notify_url)
values = {
:business => 'nina.breznik@sosed.si',
- :cmd => '_xclick',
+ :cmd => '_s-xclick',
:upl... | Change from _xclick to _s-xclick
|
diff --git a/app/models/tweet.rb b/app/models/tweet.rb
index abc1234..def5678 100644
--- a/app/models/tweet.rb
+++ b/app/models/tweet.rb
@@ -12,6 +12,7 @@ end
def self.country_sentiment(country_code)
- tweets = Tweet.where(country_code: country_code)
+ tweets = Tweet.where("country_code = '#{country_code}' and s... | Add method Tweet to get overall average sentiment for a country
|
diff --git a/myrails-docker-unicorn/spec/Dockerfile_spec.rb b/myrails-docker-unicorn/spec/Dockerfile_spec.rb
index abc1234..def5678 100644
--- a/myrails-docker-unicorn/spec/Dockerfile_spec.rb
+++ b/myrails-docker-unicorn/spec/Dockerfile_spec.rb
@@ -16,6 +16,11 @@ expect(os_version).to include("Ubuntu 16")
end
... | Update How_to & spec tdd file
|
diff --git a/lib/dolphy/core.rb b/lib/dolphy/core.rb
index abc1234..def5678 100644
--- a/lib/dolphy/core.rb
+++ b/lib/dolphy/core.rb
@@ -1,5 +1,5 @@-require "dolphy/router"
-require "dolphy/template_engines"
+require 'dolphy/router'
+require 'dolphy/template_engines'
require 'rack'
module Dolphy
| Use ' instead of "
|
diff --git a/lib/mist/client.rb b/lib/mist/client.rb
index abc1234..def5678 100644
--- a/lib/mist/client.rb
+++ b/lib/mist/client.rb
@@ -12,7 +12,11 @@ timeout = args[:timeout] || 300
Mist.logger.debug "got server #{server}"
- client = MessagePack::RPC::Client.new(server, 18_800)
+ server_info ... | Allow the Client to handle server ports
Split out the hostname & port from the server name when connecting the RPC
client.
|
diff --git a/lib/node_module.rb b/lib/node_module.rb
index abc1234..def5678 100644
--- a/lib/node_module.rb
+++ b/lib/node_module.rb
@@ -0,0 +1,51 @@+require "node_module/version"
+require 'live_ast/to_ruby'
+require 'v8'
+
+module NodeModule
+
+ def self.included(base)
+ base.extend ClassMethods
+ end
+
+ module... | Implement the mixin (oh my god, my eyes!) |
diff --git a/lib/raml/parser.rb b/lib/raml/parser.rb
index abc1234..def5678 100644
--- a/lib/raml/parser.rb
+++ b/lib/raml/parser.rb
@@ -9,13 +9,26 @@ module Raml
class Parser
+ def initialize
+ Psych.add_domain_type 'include', 'include' do |_, value|
+ File.read(value)
+ end
+ end
+
de... | Fix includes - Psych was clearing out the !include
|
diff --git a/lib/runscope-rb.rb b/lib/runscope-rb.rb
index abc1234..def5678 100644
--- a/lib/runscope-rb.rb
+++ b/lib/runscope-rb.rb
@@ -26,7 +26,7 @@
def self.proxy_domain(address)
raise BucketNotSetError unless bucket
- subdomain = address.gsub(".","-")
+ subdomain = address.gsub("-", "--").gsub(".", "... | Replace dashes with double dashes
|
diff --git a/lib/sheet/write.rb b/lib/sheet/write.rb
index abc1234..def5678 100644
--- a/lib/sheet/write.rb
+++ b/lib/sheet/write.rb
@@ -23,7 +23,7 @@ end
def create_dir_if_doesnt_exist
- if ! Dir.exists?(Sheet.sheets_dir)
+ if ! File.directory?(Sheet.sheets_dir)
Dir.mkdir(Sheet.sheets_dir)
end... | Use File.directory? for 1.8 compatibility
|
diff --git a/lib/yard-virtus.rb b/lib/yard-virtus.rb
index abc1234..def5678 100644
--- a/lib/yard-virtus.rb
+++ b/lib/yard-virtus.rb
@@ -7,3 +7,12 @@ require File.join(_dir, "yard", "virtus", "handlers")
require File.join(_dir, "yard", "virtus", "declarations")
require File.join(_dir, "yard", "virtus", "code_objects... | Add a little rant about library name and how it should be required
|
diff --git a/lib/emcee/resolver.rb b/lib/emcee/resolver.rb
index abc1234..def5678 100644
--- a/lib/emcee/resolver.rb
+++ b/lib/emcee/resolver.rb
@@ -1,6 +1,9 @@ module Emcee
# Resolver is responsible for interfacing with Sprockets.
class Resolver
+ attr_reader :context, :directory
+ private :context, :direc... | Use instance variables in Resolver with accessors
|
diff --git a/lib/endpoints/base.rb b/lib/endpoints/base.rb
index abc1234..def5678 100644
--- a/lib/endpoints/base.rb
+++ b/lib/endpoints/base.rb
@@ -1,4 +1,4 @@-module Endpoints
+module Transferatu::Endpoints
# The base class for all Sinatra-based endpoints. Use sparingly.
class Base < Sinatra::Base
register... | Move Endpoints under proper module
|
diff --git a/lib/endpoints/base.rb b/lib/endpoints/base.rb
index abc1234..def5678 100644
--- a/lib/endpoints/base.rb
+++ b/lib/endpoints/base.rb
@@ -29,5 +29,11 @@ '{"error": "Invalid Login" }'
end
+ private
+
+ def token
+ request.env['HTTP_AUTHORIZATION']
+ end
+
end
end
| Create a method to extract the auth token from the header
|
diff --git a/lib/filters/filter.rb b/lib/filters/filter.rb
index abc1234..def5678 100644
--- a/lib/filters/filter.rb
+++ b/lib/filters/filter.rb
@@ -5,10 +5,10 @@ attr_reader :name, :selection_policy, :selected_values
private :selection_policy, :selected_values
- def initialize(name, param_value, selectio... | Change the way current param is calculated
|
diff --git a/gmail-slack-notifier.gemspec b/gmail-slack-notifier.gemspec
index abc1234..def5678 100644
--- a/gmail-slack-notifier.gemspec
+++ b/gmail-slack-notifier.gemspec
@@ -23,6 +23,7 @@ spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "travis"
spec.add_development_dependenc... | Add Rubocop gem to allow it to be run locally
|
diff --git a/DDMathParser.podspec b/DDMathParser.podspec
index abc1234..def5678 100644
--- a/DDMathParser.podspec
+++ b/DDMathParser.podspec
@@ -16,7 +16,7 @@ s.osx.deployment_target = '10.9'
s.watchos.deployment_target = '2.0'
- s.source_files = 'MathParser/*.{h,m,swift}'
+ s.source_files = 'MathParser/Source... | Fix source_files file path in podspec
The addition of the Swift Package file changed the file path for the math parser's source files. This change updates the podspec with the new source_files file path. |
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index abc1234..def5678 100644
--- a/lib/tasks/assets.rake
+++ b/lib/tasks/assets.rake
@@ -0,0 +1,19 @@+Rake::Task['assets:precompile']
+ .clear_prerequisites
+ .enhance(['assets:compile_environment'])
+
+namespace :assets do
+ # In this task, set prerequisit... | Add asset compilation task for webpack
|
diff --git a/Casks/beatport-pro.rb b/Casks/beatport-pro.rb
index abc1234..def5678 100644
--- a/Casks/beatport-pro.rb
+++ b/Casks/beatport-pro.rb
@@ -1,6 +1,6 @@ class BeatportPro < Cask
- version '2.0.5_124'
- sha256 '8c1c7dd3bc180eef7f5d12f258241522a659aab1f6dcdc8f077cf151952d1ff2'
+ version '2.1.0_133'
+ sha256 '... | Update Beatport Pro to v2.1.0 |
diff --git a/hanke-henry-calendar.gemspec b/hanke-henry-calendar.gemspec
index abc1234..def5678 100644
--- a/hanke-henry-calendar.gemspec
+++ b/hanke-henry-calendar.gemspec
@@ -19,5 +19,6 @@
gem.add_development_dependency 'rspec', '>= 2.0'
gem.add_development_dependency 'rake'
+ gem.add_development_dependency... | Add rdoc as development dependency
|
diff --git a/event_store-client-http.gemspec b/event_store-client-http.gemspec
index abc1234..def5678 100644
--- a/event_store-client-http.gemspec
+++ b/event_store-client-http.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'event_store-client-http'
- s.version = '0.0.3.5'... | Package version increased from 0.0.3.5 to 0.0.4.0
|
diff --git a/frontend/app/helpers/spree/navigation_helper.rb b/frontend/app/helpers/spree/navigation_helper.rb
index abc1234..def5678 100644
--- a/frontend/app/helpers/spree/navigation_helper.rb
+++ b/frontend/app/helpers/spree/navigation_helper.rb
@@ -1,39 +1,12 @@ module Spree
module NavigationHelper
- def cate... | Replace hardcoded categories with data fetches from spree_storefront.yaml file
|
diff --git a/app/controllers/manage/work_experiences_controller.rb b/app/controllers/manage/work_experiences_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/manage/work_experiences_controller.rb
+++ b/app/controllers/manage/work_experiences_controller.rb
@@ -5,12 +5,13 @@ respond_to :html, :json
... | Add missing authorize calls to work experiences controller
|
diff --git a/Casks/air-video-server-hd.rb b/Casks/air-video-server-hd.rb
index abc1234..def5678 100644
--- a/Casks/air-video-server-hd.rb
+++ b/Casks/air-video-server-hd.rb
@@ -1,6 +1,6 @@ cask :v1 => 'air-video-server-hd' do
- version '2.1.4'
- sha256 '7c516edccbc7556d798af330fada0498f9a57ddd91e325be69ad81c9357d241a... | Update Air Video Server HD to 2.2.0
|
diff --git a/week-4/defining-variables.rb b/week-4/defining-variables.rb
index abc1234..def5678 100644
--- a/week-4/defining-variables.rb
+++ b/week-4/defining-variables.rb
@@ -0,0 +1,39 @@+#Solution Below
+
+first_name = "Brian"
+last_name = "Wagner"
+age = 39
+
+
+# RSpec Tests. They are included in this file because... | Add response to lesson 4.2.1
|
diff --git a/app/controllers/gobierto_people/person_events_controller.rb b/app/controllers/gobierto_people/person_events_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/gobierto_people/person_events_controller.rb
+++ b/app/controllers/gobierto_people/person_events_controller.rb
@@ -3,14 +3,8 @@ in... | Move calendar_date_range calculation into method
|
diff --git a/spec/views/themes/index.html.haml_spec.rb b/spec/views/themes/index.html.haml_spec.rb
index abc1234..def5678 100644
--- a/spec/views/themes/index.html.haml_spec.rb
+++ b/spec/views/themes/index.html.haml_spec.rb
@@ -4,16 +4,16 @@ before(:each) do
assign(:themes, [
Theme.create!(
- :tit... | Fix for failed view spec
|
diff --git a/exercise-one/extended-euklid.rb b/exercise-one/extended-euklid.rb
index abc1234..def5678 100644
--- a/exercise-one/extended-euklid.rb
+++ b/exercise-one/extended-euklid.rb
@@ -0,0 +1,54 @@+# Ruby script to calculate ggT(a,b) via euklid
+@a = ARGV[0].to_i
+@b = ARGV[1].to_i
+
+# Function to validate our own... | Add own extended euklid algorithm implementation
|
diff --git a/lib/deep_cover/node/collections.rb b/lib/deep_cover/node/collections.rb
index abc1234..def5678 100644
--- a/lib/deep_cover/node/collections.rb
+++ b/lib/deep_cover/node/collections.rb
@@ -2,6 +2,7 @@
module DeepCover
class Node::Array < Node
+ include NodeBehavior::CoverWithNextInstruction
inc... | Make Array smarter. Fixes cases without the square brackets
|
diff --git a/lib/scss_lint/linter/hex_format.rb b/lib/scss_lint/linter/hex_format.rb
index abc1234..def5678 100644
--- a/lib/scss_lint/linter/hex_format.rb
+++ b/lib/scss_lint/linter/hex_format.rb
@@ -1,24 +1,20 @@ module SCSSLint
class Linter::HexFormat < Linter
include LinterRegistry
-
- def visit_prop(nod... | Simplify HexFormat linter string searching
The `HexFormat` linter was using `visit_prop` with a manual check to see
if the value of the property was a `Sass::Script::String`, rather than
just using `visit_script_string`.
Switching to `visit_script_string` simplifies the code.
Change-Id: I84a64b97071b74d9d37ff40360f4... |
diff --git a/lib/whatsapp/protocol/keystream.rb b/lib/whatsapp/protocol/keystream.rb
index abc1234..def5678 100644
--- a/lib/whatsapp/protocol/keystream.rb
+++ b/lib/whatsapp/protocol/keystream.rb
@@ -22,7 +22,7 @@
def decode(data)
# TODO: Hash check
- @rc4.decrypt(data.byteslice(4..-1))
+ ... | Fix problem with chunked stanza
|
diff --git a/lib/extensions/drivers_license_invalid_validator.rb b/lib/extensions/drivers_license_invalid_validator.rb
index abc1234..def5678 100644
--- a/lib/extensions/drivers_license_invalid_validator.rb
+++ b/lib/extensions/drivers_license_invalid_validator.rb
@@ -1,17 +1,16 @@-class DriversLicenseInvalidValidator ... | Change from .nil? to .blank?
|
diff --git a/lib/generators/georgia/upgrade/upgrade_generator.rb b/lib/generators/georgia/upgrade/upgrade_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/georgia/upgrade/upgrade_generator.rb
+++ b/lib/generators/georgia/upgrade/upgrade_generator.rb
@@ -1,16 +1,18 @@ # encoding: UTF-8
require 'rails/gen... | Fix same migration number error
|
diff --git a/lib/human_attribute_values/human_attribute_value.rb b/lib/human_attribute_values/human_attribute_value.rb
index abc1234..def5678 100644
--- a/lib/human_attribute_values/human_attribute_value.rb
+++ b/lib/human_attribute_values/human_attribute_value.rb
@@ -37,10 +37,10 @@ defaults << value.to_s
... | Tidy up code a bit
|
diff --git a/QuadernoKit.podspec b/QuadernoKit.podspec
index abc1234..def5678 100644
--- a/QuadernoKit.podspec
+++ b/QuadernoKit.podspec
@@ -11,7 +11,7 @@ s.platform = :ios, '6.1'
s.public_header_files = 'QuadernoKit/*.h'
- s.source_files = 'QuadernoKit/QuadernoKit.h'
+ s.source_files ... | Include more source files in CocoaPods specification
|
diff --git a/lib/rock_rms/resources/recurring_donation_detail.rb b/lib/rock_rms/resources/recurring_donation_detail.rb
index abc1234..def5678 100644
--- a/lib/rock_rms/resources/recurring_donation_detail.rb
+++ b/lib/rock_rms/resources/recurring_donation_detail.rb
@@ -5,15 +5,17 @@ module RecurringDonationDetail
... | Add FeeCoverageAmount when creating recurring donation detail
|
diff --git a/lib/trysail_blog_notification/parser/base_parser.rb b/lib/trysail_blog_notification/parser/base_parser.rb
index abc1234..def5678 100644
--- a/lib/trysail_blog_notification/parser/base_parser.rb
+++ b/lib/trysail_blog_notification/parser/base_parser.rb
@@ -15,6 +15,7 @@ # @param [Nokogiri::HTML::Documen... | Raise NotImplementedError in parse method
|
diff --git a/RKXMLReaderSerialization.podspec b/RKXMLReaderSerialization.podspec
index abc1234..def5678 100644
--- a/RKXMLReaderSerialization.podspec
+++ b/RKXMLReaderSerialization.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "RKXMLReaderSerialization"
- s.version = "0.20.0"
+ s.version ... | Switch version to 0.0.1 and add tag to Podspec
|
diff --git a/multi_json.gemspec b/multi_json.gemspec
index abc1234..def5678 100644
--- a/multi_json.gemspec
+++ b/multi_json.gemspec
@@ -13,7 +13,7 @@ spec.licenses = ['MIT']
spec.name = 'multi_json'
spec.require_paths = ['lib']
- spec.required_rubygems_version = Gem::Requirement.new(">= 1.3.6")
+ spec.requir... | Use of custom objects is not necessary here
|
diff --git a/app/helpers/jwt_helper.rb b/app/helpers/jwt_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/jwt_helper.rb
+++ b/app/helpers/jwt_helper.rb
@@ -22,6 +22,7 @@ attrs[:tool_consumer_instance_guid] = params[:tool_consumer_instance_guid]
attrs[:context_id] = params[:context_id]
attrs... | feature: Add Canvas account ID to the JWT
We need a secure way to determine the account ID associated with the request. Storing it in the JWT on the LTI launch will allow us to do this.
|
diff --git a/app/models/forem/forum.rb b/app/models/forem/forum.rb
index abc1234..def5678 100644
--- a/app/models/forem/forum.rb
+++ b/app/models/forem/forum.rb
@@ -19,7 +19,7 @@ alias_attribute :title, :name
# Fix for #339
- default_scope { order('name ASC') }
+ default_scope { order(:name) }
d... | Update Forem::Forum order in the default_scope
Fix to avoid ambiguous column errors
Fixes #533
Fixes #529
|
diff --git a/app/models/reservation.rb b/app/models/reservation.rb
index abc1234..def5678 100644
--- a/app/models/reservation.rb
+++ b/app/models/reservation.rb
@@ -24,7 +24,7 @@
enum status: %w(disapproved pending approved)
- validates :item_id, presence: true
+ validates :item, presence: true
validates :co... | Validate association instead of attribute
|
diff --git a/app/models/spree/sound.rb b/app/models/spree/sound.rb
index abc1234..def5678 100644
--- a/app/models/spree/sound.rb
+++ b/app/models/spree/sound.rb
@@ -3,14 +3,16 @@
validate :no_attachment_errors
- has_attached_file :attachment,
- presence: true,
- styles: {
- mp3:... | Add security validation as required by paperclip 4.0.0 and later
https://github.com/thoughtbot/paperclip#security-validations
|
diff --git a/atomic.gemspec b/atomic.gemspec
index abc1234..def5678 100644
--- a/atomic.gemspec
+++ b/atomic.gemspec
@@ -7,7 +7,7 @@ s.date = Time.now.strftime('YYYY-MM-DD')
s.description = "An atomic reference implementation for JRuby and green or GIL-threaded impls"
s.email = ["headius@headius.com", "mental@r... | Add ext dir for Java stuff.
|
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 '6509svn'
- sha256 '5beb028c999cebf8112413c46821b348d2584139fbe2070704522ade4... | Update HandbrakeCLI Nightly to v6536svn
HandBrakeCLI Nightly Build 6536svn released 2014-11-21.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.