diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/libdetect.rb b/lib/libdetect.rb
index abc1234..def5678 100644
--- a/lib/libdetect.rb
+++ b/lib/libdetect.rb
@@ -14,7 +14,7 @@ File.exist? DARWIN_LIBCLANG
ENV['LIBCLANG'] = DARWIN_LIBCLANG
when /linux/
- prog = 'llvm-config-3.4'
+ prog = 'llvm-config'
if find_executable(prog)
... | Use the generic llvm-config for library detection
|
diff --git a/lib/tasks/legislation_proposals.rake b/lib/tasks/legislation_proposals.rake
index abc1234..def5678 100644
--- a/lib/tasks/legislation_proposals.rake
+++ b/lib/tasks/legislation_proposals.rake
@@ -0,0 +1,10 @@+namespace :legislation_proposals do
+ desc "Calculate cached votes score for existing legislation... | Add rake task to calculate cached voted score
Run this task it's only necessary if already existing legislation proposals in DB.
|
diff --git a/lib/inkling/attribute_initialization.rb b/lib/inkling/attribute_initialization.rb
index abc1234..def5678 100644
--- a/lib/inkling/attribute_initialization.rb
+++ b/lib/inkling/attribute_initialization.rb
@@ -4,7 +4,7 @@ def initialize_attributes(attributes = {})
attributes.each do |key, val|
... | Handle case where _at field is already a time
|
diff --git a/lib/kumo_dockercloud/haproxy_service.rb b/lib/kumo_dockercloud/haproxy_service.rb
index abc1234..def5678 100644
--- a/lib/kumo_dockercloud/haproxy_service.rb
+++ b/lib/kumo_dockercloud/haproxy_service.rb
@@ -12,7 +12,9 @@
raise KumoDockerCloud::Error.new('Could not get instances of the haproxy cont... | Make haproxy disable call multithreaded
|
diff --git a/features/step_definitions/format_steps.rb b/features/step_definitions/format_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/format_steps.rb
+++ b/features/step_definitions/format_steps.rb
@@ -1,3 +1,11 @@+CSVLib = if RUBY_VERSION =~ /^1.8/
+ require 'fastercsv'
+ ... | Add support for running features with ruby 1.8.7 (CSV)
|
diff --git a/lib/opml_file.rb b/lib/opml_file.rb
index abc1234..def5678 100644
--- a/lib/opml_file.rb
+++ b/lib/opml_file.rb
@@ -23,7 +23,7 @@ original_name.gsub(/[^\w\.\-]/, '_')
end
- protected
+ private
def save(content)
written = 0
| Use private modifier since no inheritance or whatsoever
|
diff --git a/lib/rubocop/cop/rspec/describe_class.rb b/lib/rubocop/cop/rspec/describe_class.rb
index abc1234..def5678 100644
--- a/lib/rubocop/cop/rspec/describe_class.rb
+++ b/lib/rubocop/cop/rspec/describe_class.rb
@@ -20,8 +20,6 @@ class DescribeClass < Cop
include RuboCop::RSpec::TopLevelDescribe
-... | Add node matcher for rails metadata
|
diff --git a/lib/sequent/web/sinatra/form_helpers.rb b/lib/sequent/web/sinatra/form_helpers.rb
index abc1234..def5678 100644
--- a/lib/sequent/web/sinatra/form_helpers.rb
+++ b/lib/sequent/web/sinatra/form_helpers.rb
@@ -1,4 +1,5 @@ require_relative 'form'
+require 'rack/csrf'
module Sequent
module Web
| Add missing require for rack/csrf |
diff --git a/lib/safety_pin/query_builder.rb b/lib/safety_pin/query_builder.rb
index abc1234..def5678 100644
--- a/lib/safety_pin/query_builder.rb
+++ b/lib/safety_pin/query_builder.rb
@@ -8,6 +8,9 @@ results = JSON.parse(response)
paths = results.fetch("hits").map {|hit| hit.fetch("path") }
paths.m... | Raise QueryBuilderError with helpful status
|
diff --git a/DeskKit/DeskKit.podspec b/DeskKit/DeskKit.podspec
index abc1234..def5678 100644
--- a/DeskKit/DeskKit.podspec
+++ b/DeskKit/DeskKit.podspec
@@ -10,6 +10,5 @@ s.source_files = 'DeskKit/DeskKit/*.{h,m}', 'DeskKit/DeskKit/**/*.{h,m}'
s.resources = 'DeskKit/DeskKit/**/*.{png,storyboard}'
s.requires_a... | Update podspec to point to DeskAPIClient 1.1.4 and enable bitcode.
|
diff --git a/test/cookbooks/test/recipes/default.rb b/test/cookbooks/test/recipes/default.rb
index abc1234..def5678 100644
--- a/test/cookbooks/test/recipes/default.rb
+++ b/test/cookbooks/test/recipes/default.rb
@@ -6,3 +6,12 @@ php_fpm_pool 'test-pool' do
action :install
end
+
+# add a channel
+php_pear_channel '... | Test all the resources in the resource test suite
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/lib/open_exchange_rates.rb b/lib/open_exchange_rates.rb
index abc1234..def5678 100644
--- a/lib/open_exchange_rates.rb
+++ b/lib/open_exchange_rates.rb
@@ -6,7 +6,7 @@ require "open_exchange_rates/rates"
module OpenExchangeRates
- BASE_URL = "http://openexchangerates.org/api".freeze
+ BASE_URL = "http... | Change API base url to use HTTPS
https://github.com/vlado/open_exchange_rates/pull/9#issuecomment-239127834
|
diff --git a/LRImageManager.podspec b/LRImageManager.podspec
index abc1234..def5678 100644
--- a/LRImageManager.podspec
+++ b/LRImageManager.podspec
@@ -1,11 +1,11 @@ Pod::Spec.new do |s|
s.name = 'LRImageManager'
- s.version = '0.2'
+ s.version = '0.3'
s.license = 'MIT'
s.summary = 'Objective-C simp... | Make podspec point to version 0.3
|
diff --git a/spec/features/companies/company_adds_offer_spec.rb b/spec/features/companies/company_adds_offer_spec.rb
index abc1234..def5678 100644
--- a/spec/features/companies/company_adds_offer_spec.rb
+++ b/spec/features/companies/company_adds_offer_spec.rb
@@ -2,6 +2,7 @@
RSpec.describe "Company adds Offer" do
... | Fix feature spec for adding offers
|
diff --git a/spec/lib/admin_module/pages/login_page_400_spec.rb b/spec/lib/admin_module/pages/login_page_400_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/admin_module/pages/login_page_400_spec.rb
+++ b/spec/lib/admin_module/pages/login_page_400_spec.rb
@@ -19,7 +19,16 @@ config.ams_version = "4.0.0"
... | Add support for testing with live v4.0.0 site
Use AM_LIVE_BASE_URL_400 env var to specify base url to test with.
|
diff --git a/lib/queueing_rabbit/job.rb b/lib/queueing_rabbit/job.rb
index abc1234..def5678 100644
--- a/lib/queueing_rabbit/job.rb
+++ b/lib/queueing_rabbit/job.rb
@@ -11,7 +11,7 @@ end
def queue_name
- @queue_name ||= self.name.split('::')[-1]
+ @queue_name ||= (self.name.split('::')[-1] if self.... | Allow including Job module to anonymous classes.
|
diff --git a/Library/Formula/solr.rb b/Library/Formula/solr.rb
index abc1234..def5678 100644
--- a/Library/Formula/solr.rb
+++ b/Library/Formula/solr.rb
@@ -10,9 +10,9 @@ end_script
class Solr <Formula
- url 'http://apache.deathculture.net/lucene/solr/1.3.0/apache-solr-1.3.0.tgz'
+ url 'http://apache.deathculture.... | Update Solr Formula to 1.4.0
|
diff --git a/HTDelegateProxy.podspec b/HTDelegateProxy.podspec
index abc1234..def5678 100644
--- a/HTDelegateProxy.podspec
+++ b/HTDelegateProxy.podspec
@@ -5,7 +5,7 @@ s.homepage = "https://github.com/hoteltonight/HTDelegateProxy"
s.license = 'MIT'
s.author = { "Jacob Jennings" => "jacob.r.jenni... | Update HTDelegateProxt.podspec with 0.0.2 version and tag.
|
diff --git a/cmake30.rb b/cmake30.rb
index abc1234..def5678 100644
--- a/cmake30.rb
+++ b/cmake30.rb
@@ -22,8 +22,8 @@
class Cmake30 < Formula
homepage 'http://www.cmake.org/'
- url 'http://www.cmake.org/files/v3.0/cmake-3.0.0.tar.gz'
- sha1 '4dfd9ee9b829c77175d655f22322f14747f11ad2'
+ url 'http://www.cmake.org... | Upgrade CMake 3 to v3.0.2 |
diff --git a/merb-gen/lib/generators/templates/component/model/spec/models/%file_name%_spec.rb b/merb-gen/lib/generators/templates/component/model/spec/models/%file_name%_spec.rb
index abc1234..def5678 100644
--- a/merb-gen/lib/generators/templates/component/model/spec/models/%file_name%_spec.rb
+++ b/merb-gen/lib/gene... | [merb-gen] Fix for generation of namespaced model specs
[#1233 state:resolved] |
diff --git a/spec/controllers/revision_feedback_controller_spec.rb b/spec/controllers/revision_feedback_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/revision_feedback_controller_spec.rb
+++ b/spec/controllers/revision_feedback_controller_spec.rb
@@ -21,10 +21,6 @@
it 'calls RevisionFe... | Fix warning for stubbing initialize
|
diff --git a/spec/unit/puppet/provider/package/appdmg_eula_spec.rb b/spec/unit/puppet/provider/package/appdmg_eula_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/puppet/provider/package/appdmg_eula_spec.rb
+++ b/spec/unit/puppet/provider/package/appdmg_eula_spec.rb
@@ -0,0 +1,45 @@+#! /usr/bin/env ruby
+require ... | Add spec for appdmg_eula package provider
|
diff --git a/lib/tasks/blogo_tasks.rake b/lib/tasks/blogo_tasks.rake
index abc1234..def5678 100644
--- a/lib/tasks/blogo_tasks.rake
+++ b/lib/tasks/blogo_tasks.rake
@@ -14,8 +14,8 @@
namespace :blogo do
- desc 'Create admin user'
- task :create_admin, [:name, :email, :password] => :environment do |task, args|
+ ... | Rename rake task create_admin -> create_user
|
diff --git a/lib/tasks/multi_spork.rake b/lib/tasks/multi_spork.rake
index abc1234..def5678 100644
--- a/lib/tasks/multi_spork.rake
+++ b/lib/tasks/multi_spork.rake
@@ -1,10 +1,12 @@ require 'active_record'
require 'multi_spork'
+require 'ruby-debug'
namespace :multi_spork do
namespace :testdbs do
desc "Clo... | Add debugging instruction to debug why rake task failing
|
diff --git a/app/controllers/spots_controller.rb b/app/controllers/spots_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/spots_controller.rb
+++ b/app/controllers/spots_controller.rb
@@ -5,7 +5,7 @@ @spots = Spot.all
@spots = @spots.order(:favorites_count)
if session[:user_id]
- @use... | Fix typo in spot controller
|
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -1,5 +1,8 @@ class UsersController < ApplicationController
before_action :authenticate_user!, except: [:new, :cre... | Add http basic auth to users controller
|
diff --git a/app/features/album/album_creator.rb b/app/features/album/album_creator.rb
index abc1234..def5678 100644
--- a/app/features/album/album_creator.rb
+++ b/app/features/album/album_creator.rb
@@ -10,9 +10,8 @@
def insert_all_photos
@added_images_count = 0
- filenames = valid_keys.map { |key| key.gs... | Remove prefix stripping since it's not used
|
diff --git a/app/models/ontology/hets_options.rb b/app/models/ontology/hets_options.rb
index abc1234..def5678 100644
--- a/app/models/ontology/hets_options.rb
+++ b/app/models/ontology/hets_options.rb
@@ -1,6 +1,8 @@ module Ontology::HetsOptions
extend ActiveSupport::Concern
+ # Hets has some trouble inferring th... | Add comment on extensions/input types hash.
|
diff --git a/config/initializers/edition_services.rb b/config/initializers/edition_services.rb
index abc1234..def5678 100644
--- a/config/initializers/edition_services.rb
+++ b/config/initializers/edition_services.rb
@@ -1,7 +1,7 @@ Whitehall.edition_services.subscribe(/^(force_publish|publish)$/) { |event, edition, op... | Move indexing listener to back of the queue
To minimise the chance that the search indexing job is picked up before
a scheduled-edition publishing transaction is complete, we move have the
search indexer listener register itself last.
|
diff --git a/config/initializers/panopticon_hosts.rb b/config/initializers/panopticon_hosts.rb
index abc1234..def5678 100644
--- a/config/initializers/panopticon_hosts.rb
+++ b/config/initializers/panopticon_hosts.rb
@@ -1,7 +1,7 @@ require 'panopticon_api'
PanopticonApi.endpoint = case Rails.env.to_s
-when 'develop... | Allow setting an alternative panopticon endpoint during development.
|
diff --git a/app/view_models/effort_show_view.rb b/app/view_models/effort_show_view.rb
index abc1234..def5678 100644
--- a/app/view_models/effort_show_view.rb
+++ b/app/view_models/effort_show_view.rb
@@ -3,7 +3,8 @@ class EffortShowView < EffortWithLapSplitRows
delegate :full_name, :bib_number, :gender, :split_ti... | Fix stop removal in efforts/show view for multi-lap events.
|
diff --git a/frontend/spec/support/shared_contexts/locales.rb b/frontend/spec/support/shared_contexts/locales.rb
index abc1234..def5678 100644
--- a/frontend/spec/support/shared_contexts/locales.rb
+++ b/frontend/spec/support/shared_contexts/locales.rb
@@ -10,6 +10,7 @@ end
after do
+ I18n.locale = :en # rese... | Remove order-dependency from locale specs
This commit removes an implicit order dependency in the frontend locale
specs.
|
diff --git a/cookbooks/wt_heatmaps/recipes/import.rb b/cookbooks/wt_heatmaps/recipes/import.rb
index abc1234..def5678 100644
--- a/cookbooks/wt_heatmaps/recipes/import.rb
+++ b/cookbooks/wt_heatmaps/recipes/import.rb
@@ -21,7 +21,6 @@ owner "hadoop"
group "hadoop"
mode 00500
- recursive true
end
cron "logs... | Fix a bad recursive call
Former-commit-id: 69f08a332dfa56d3d3bfcfa931b629981c9cc809 [formerly 5c2f208bc5ddeee63749b54bd759439f6d4ef817] [formerly 1ca3c18e5cbcac9d566e32d2d6b320a49ecc8079 [formerly 1b5d8b976f3af6d1ec351ddbf0c2d8c02267f67d [formerly 0319a6768f65170052c8cd512440579ce2390ad1]]]
Former-commit-id: 59600bf9... |
diff --git a/lib/analysis/analyze_assessments_table.rb b/lib/analysis/analyze_assessments_table.rb
index abc1234..def5678 100644
--- a/lib/analysis/analyze_assessments_table.rb
+++ b/lib/analysis/analyze_assessments_table.rb
@@ -24,6 +24,22 @@ @parsed_csv ||= CSV.parse(contents, csv_options)
end
+ def assessm... | Add new summary methods for inspecting exported assessments CSV
|
diff --git a/lib/git_find_committer/repository.rb b/lib/git_find_committer/repository.rb
index abc1234..def5678 100644
--- a/lib/git_find_committer/repository.rb
+++ b/lib/git_find_committer/repository.rb
@@ -14,7 +14,7 @@ end
def pull_master
- `git pull origin master`
+ `cd #{@config.tmp_repo_path... | Change directory before git pull origin master
|
diff --git a/lib/sorcery/model/temporary_token.rb b/lib/sorcery/model/temporary_token.rb
index abc1234..def5678 100644
--- a/lib/sorcery/model/temporary_token.rb
+++ b/lib/sorcery/model/temporary_token.rb
@@ -12,7 +12,7 @@
# Random code, used for salt and temporary tokens.
def self.generate_random_token
... | Use urlsafe_base64 for url sensitive chars
|
diff --git a/rails-pipeline.gemspec b/rails-pipeline.gemspec
index abc1234..def5678 100644
--- a/rails-pipeline.gemspec
+++ b/rails-pipeline.gemspec
@@ -22,8 +22,4 @@ s.add_dependency "aws-sdk"
s.add_dependency "ruby-protocol-buffers"
- #s.add_development_dependency "sqlite3"
- #s.add_development_dependency "r... | Remove dev dependencies from gemspec
- doesn't work with test env, so they're in Gemfile anyway.
|
diff --git a/lib/github_api/response/jsonize.rb b/lib/github_api/response/jsonize.rb
index abc1234..def5678 100644
--- a/lib/github_api/response/jsonize.rb
+++ b/lib/github_api/response/jsonize.rb
@@ -7,7 +7,11 @@ dependency 'multi_json'
define_parser do |body|
- ::MultiJson.load body
+ if MultiJso... | Support older version of multi_json for backwards compatibility with other gems.
|
diff --git a/templates/ruby/lib/http_client/response_handler.rb b/templates/ruby/lib/http_client/response_handler.rb
index abc1234..def5678 100644
--- a/templates/ruby/lib/http_client/response_handler.rb
+++ b/templates/ruby/lib/http_client/response_handler.rb
@@ -11,7 +11,11 @@ {{if .Api.Response.Formats.Json}}
... | Return plain body on error when parsing response for json
|
diff --git a/lib/queue_classic_delayed/setup.rb b/lib/queue_classic_delayed/setup.rb
index abc1234..def5678 100644
--- a/lib/queue_classic_delayed/setup.rb
+++ b/lib/queue_classic_delayed/setup.rb
@@ -8,7 +8,7 @@ # Raises RuntimeError if something goes wrong.
def self.create
sql = """
- C... | Use QC::Delayed::TABLE_NAME instead of a static string |
diff --git a/lib/stacks/virtual_name_service.rb b/lib/stacks/virtual_name_service.rb
index abc1234..def5678 100644
--- a/lib/stacks/virtual_name_service.rb
+++ b/lib/stacks/virtual_name_service.rb
@@ -5,6 +5,7 @@
def configure()
@ports = [53]
+ add_vip_network :mgmt
end
def realserver_prod_fqdns
| Make nemeservers create vips on the mgmt network
|
diff --git a/lib/stash/wrapper/stash_wrapper.rb b/lib/stash/wrapper/stash_wrapper.rb
index abc1234..def5678 100644
--- a/lib/stash/wrapper/stash_wrapper.rb
+++ b/lib/stash/wrapper/stash_wrapper.rb
@@ -15,7 +15,7 @@ object_node :stash_administrative, 'stash_administrative', class: StashAdministrative
descri... | Disable Rubocop warning re: long parameter lists
|
diff --git a/lib/rss.rb b/lib/rss.rb
index abc1234..def5678 100644
--- a/lib/rss.rb
+++ b/lib/rss.rb
@@ -9,11 +9,11 @@ response = Net::HTTP.get_response( URI.parse(url) )
# check if redirect is needed
- if response.code.to_s == '301' || response.code.to_s == '302'
+ if response.kind_of? Net::HT... | Use kind_of object to check if http call was successfully.
|
diff --git a/test/tzinfo-data/tzinfo/data/version.rb b/test/tzinfo-data/tzinfo/data/version.rb
index abc1234..def5678 100644
--- a/test/tzinfo-data/tzinfo/data/version.rb
+++ b/test/tzinfo-data/tzinfo/data/version.rb
@@ -1,5 +1,5 @@ #--
-# Copyright (c) 2012 Philip Ross
+# Copyright (c) 2012-2013 Philip Ross
#
# Per... | Fix reference to 'TZInfo Data' instead of 'TZInfo::Data'.
|
diff --git a/lib/dotenv-schema.rb b/lib/dotenv-schema.rb
index abc1234..def5678 100644
--- a/lib/dotenv-schema.rb
+++ b/lib/dotenv-schema.rb
@@ -4,9 +4,9 @@ module Dotenv
class << self
def load_with_validation(*filenames)
- env_before = ENV.to_h
+ env_before = ENV.to_hash
load_without_validatio... | Use ENV.to_hash instead of ENV.to_h
|
diff --git a/lib/json_response.rb b/lib/json_response.rb
index abc1234..def5678 100644
--- a/lib/json_response.rb
+++ b/lib/json_response.rb
@@ -1,4 +1,6 @@-require 'activesupport'
+require 'rubygems'
+require 'json'
+require 'json/pure'
class JsonResponse
| Remove active support, and simply use the json lib.
|
diff --git a/cookbooks/rs_utils/recipes/setup_ssh.rb b/cookbooks/rs_utils/recipes/setup_ssh.rb
index abc1234..def5678 100644
--- a/cookbooks/rs_utils/recipes/setup_ssh.rb
+++ b/cookbooks/rs_utils/recipes/setup_ssh.rb
@@ -22,7 +22,7 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE S... | Use if instead of unless to check existance of key.
|
diff --git a/lib/rspec/rails/example/request_example_group.rb b/lib/rspec/rails/example/request_example_group.rb
index abc1234..def5678 100644
--- a/lib/rspec/rails/example/request_example_group.rb
+++ b/lib/rspec/rails/example/request_example_group.rb
@@ -48,7 +48,7 @@ metadata[:type] = :request
before ... | Fix typo => router to routes
|
diff --git a/lib/travis/api/v3/services/repository/migrate.rb b/lib/travis/api/v3/services/repository/migrate.rb
index abc1234..def5678 100644
--- a/lib/travis/api/v3/services/repository/migrate.rb
+++ b/lib/travis/api/v3/services/repository/migrate.rb
@@ -11,7 +11,7 @@ current_user = access_control.user
... | Unify names of migration feature flags
|
diff --git a/lib/openlogi/item.rb b/lib/openlogi/item.rb
index abc1234..def5678 100644
--- a/lib/openlogi/item.rb
+++ b/lib/openlogi/item.rb
@@ -12,6 +12,7 @@ property :price, coerce: Integer
property :unit_price, coerce: Integer
property :barcode
+ property :jancode
property :international_info, ... | Add jancode to Item class
|
diff --git a/modules/govuk/lib/facter/vdc.rb b/modules/govuk/lib/facter/vdc.rb
index abc1234..def5678 100644
--- a/modules/govuk/lib/facter/vdc.rb
+++ b/modules/govuk/lib/facter/vdc.rb
@@ -2,12 +2,6 @@
Facter.add("vdc") do
setcode do
- env_octet = Facter.value(:ipaddress).split('.')[2].to_i
- vdc = Facter.va... | Remove logic for inferring membership of the DR VDCs.
The disaster-recovery VDCs (VMWare "virtual datacentres") no longer
exist; they were part of the old VMWare-based installation when parts of
GOV.UK were hosted in Carrenza and UKCloud.
This logic had a bug where the heuristic for telling whether a machine
was a DR... |
diff --git a/lib/therm_control.rb b/lib/therm_control.rb
index abc1234..def5678 100644
--- a/lib/therm_control.rb
+++ b/lib/therm_control.rb
@@ -9,6 +9,7 @@ set_temp = SetTemp.first
temp = Temp.discover.values.first.f
r = Reading.new(temp_f: temp)
+ r.set_temp = set_temp.temp
... | Save the set temp at reading
|
diff --git a/libraries/lib_apt.rb b/libraries/lib_apt.rb
index abc1234..def5678 100644
--- a/libraries/lib_apt.rb
+++ b/libraries/lib_apt.rb
@@ -0,0 +1,48 @@+class Chef
+ class Provider
+ class Package
+ class Apt
+
+ def install_package(name, version)
+ rescued = false
+ begin
+ ... | [COOK-2458] Update package cache on install failure and retry
Fix to update the aptitude package cache and retry when an apt-get
install fails.
|
diff --git a/morpheus.gemspec b/morpheus.gemspec
index abc1234..def5678 100644
--- a/morpheus.gemspec
+++ b/morpheus.gemspec
@@ -18,6 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_development_dependency "bundler", "~> 1.3"
- spec.add_developme... | Add RSpec 3 to specs |
diff --git a/euler17.rb b/euler17.rb
index abc1234..def5678 100644
--- a/euler17.rb
+++ b/euler17.rb
@@ -0,0 +1,60 @@+=begin
+
+If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total.
+
+If all the numbers from 1 to 1000 (one thousand) in... | Add solution to problem 17
|
diff --git a/db/migrate/20140929204155_migrate_tos_setting.rb b/db/migrate/20140929204155_migrate_tos_setting.rb
index abc1234..def5678 100644
--- a/db/migrate/20140929204155_migrate_tos_setting.rb
+++ b/db/migrate/20140929204155_migrate_tos_setting.rb
@@ -1,7 +1,7 @@ class MigrateTosSetting < ActiveRecord::Migration
... | FIX: Use `cmd_tuples` instead of checking row index for migration.
|
diff --git a/tasks/http_doc.thor b/tasks/http_doc.thor
index abc1234..def5678 100644
--- a/tasks/http_doc.thor
+++ b/tasks/http_doc.thor
@@ -11,18 +11,23 @@ :desc => "Base URL for API URLs"
def build(*paths)
base_url = options[:base_url] || "http://localhost/"
- paths.each do |path|
+ paths = paths.ma... | Allow file names on build command line.
|
diff --git a/app.rb b/app.rb
index abc1234..def5678 100644
--- a/app.rb
+++ b/app.rb
@@ -31,6 +31,7 @@
get '/dashboard' do
@boards = LeanKitKanban::Board.all[0]
+ @boards.sort!{|a,b| a["Title"].to_s.downcase <=> b["Title"].to_s.downcase}
haml :dashboard
end
| Add sorting of the boards.
|
diff --git a/app.rb b/app.rb
index abc1234..def5678 100644
--- a/app.rb
+++ b/app.rb
@@ -1,6 +1,3 @@-# Sinatra app for local development
-# $ ruby app.rb
-
require 'rubygems'
require 'sinatra'
| Remove comments; same in README |
diff --git a/app.rb b/app.rb
index abc1234..def5678 100644
--- a/app.rb
+++ b/app.rb
@@ -15,16 +15,14 @@ enable :sessions
set :session_secret, 'my sooper secret'
- config = YAML.load_file(File.join('config', 'config.yml'))
-
- set :username, config['username']
- set :password, config['password']
+ set :usern... | Use env vars instead of config file for google creds.
|
diff --git a/lib/mongo_mapper/plugins/associations/belongs_to_association.rb b/lib/mongo_mapper/plugins/associations/belongs_to_association.rb
index abc1234..def5678 100644
--- a/lib/mongo_mapper/plugins/associations/belongs_to_association.rb
+++ b/lib/mongo_mapper/plugins/associations/belongs_to_association.rb
@@ -17,... | Fix type of type_key_name field to be String |
diff --git a/test/test_helper.rb b/test/test_helper.rb
index abc1234..def5678 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -4,7 +4,7 @@ require 'plugin_test_helper'
# Run the migrations
-ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate")
+ActiveRecord::Migrator.migrate("#{Rails.root}/db/migr... | Use Rails.root instead of RAILS_ROOT in preparation for the Rails 2.1 release
|
diff --git a/rbkit.gemspec b/rbkit.gemspec
index abc1234..def5678 100644
--- a/rbkit.gemspec
+++ b/rbkit.gemspec
@@ -14,6 +14,7 @@ if s.respond_to? :required_rubygems_version=
s.required_rubygems_version = Gem::Requirement.new(">= 0")
end
+ s.required_ruby_version = '>= 2.1.0'
s.authors = ["Hemant Kumar",... | Add required_ruby_version gemspec and set it to >= 2.1.0
|
diff --git a/lib/salesforce_bulk/batch_result_collection.rb b/lib/salesforce_bulk/batch_result_collection.rb
index abc1234..def5678 100644
--- a/lib/salesforce_bulk/batch_result_collection.rb
+++ b/lib/salesforce_bulk/batch_result_collection.rb
@@ -0,0 +1,36 @@+module SalesforceBulk
+ class BatchResultCollection < Arr... | Add first draft of BatchResultCollection class.
|
diff --git a/lib/schema_generator/handmade_schema_copier.rb b/lib/schema_generator/handmade_schema_copier.rb
index abc1234..def5678 100644
--- a/lib/schema_generator/handmade_schema_copier.rb
+++ b/lib/schema_generator/handmade_schema_copier.rb
@@ -4,9 +4,11 @@ FileUtils.mkdir_p("dist/formats/#{schema_name}/publi... | Update handmade schema copier to also copy notification schemas
|
diff --git a/test/helper.rb b/test/helper.rb
index abc1234..def5678 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -1,5 +1,7 @@ require 'test/unit'
require_relative '../lib/main'
+require_relative '../lib/solvebio'
+ENV['SOLVEBIO_API_HOST'] ||= 'http://api.solvebio.com'
def local_api?
ENV['SOLVEBIO_API_HO... | Set up environment better for Travis testing.
|
diff --git a/task/build_metadata.rake b/task/build_metadata.rake
index abc1234..def5678 100644
--- a/task/build_metadata.rake
+++ b/task/build_metadata.rake
@@ -0,0 +1,18 @@+# frozen_string_literal: true
+file "lib/bundler/generated/build_metadata.rb" => [".git/HEAD", __FILE__] do |t|
+ build_metadata = {
+ :built_... | Add a rake task to generate build metadata
|
diff --git a/supercharged.gemspec b/supercharged.gemspec
index abc1234..def5678 100644
--- a/supercharged.gemspec
+++ b/supercharged.gemspec
@@ -23,7 +23,7 @@ s.add_dependency "strong_parameters"
s.add_development_dependency "sqlite3"
- s.add_development_dependency "minitest"
+ s.add_development_dependency "mi... | Revert "minitest no version in dependency"
This reverts commit c81858eba75f7415986f4d321c514a5f4c73cd35.
|
diff --git a/features/step_definitions/game_steps.rb b/features/step_definitions/game_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/game_steps.rb
+++ b/features/step_definitions/game_steps.rb
@@ -0,0 +1,11 @@+When(/^I see the home page$/) do
+ visit root_path
+end
+
+When(/^I click "([^"]*)"$/... | Add feature steps for first scenario
|
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb
index abc1234..def5678 100644
--- a/config/initializers/secret_token.rb
+++ b/config/initializers/secret_token.rb
@@ -9,4 +9,10 @@
# Make sure your secret_key_base is kept private
# if you're sharing your code publicly.
-Workparty... | Set secret token from ENV in production and raise error if not done
|
diff --git a/app/controllers/task.rb b/app/controllers/task.rb
index abc1234..def5678 100644
--- a/app/controllers/task.rb
+++ b/app/controllers/task.rb
@@ -1,6 +1,11 @@ get '/task/:id' do |id|
@task = Task.find(id)
- @task.description
+ erb :'task/single', locals: {task: @task}
+end
+
+get '/tasks/all' do
+ @ta... | Add all and use view for single display
|
diff --git a/omnibus_overrides.rb b/omnibus_overrides.rb
index abc1234..def5678 100644
--- a/omnibus_overrides.rb
+++ b/omnibus_overrides.rb
@@ -1,7 +1,7 @@ # THIS IS NOW HAND MANAGED, JUST EDIT THE THING
# .travis.yml and appveyor.yml consume this,
# try to keep it machine-parsable.
-override :rubygems, version: "2.... | Upgrade to Rubygems 2.6.13 to resolve CVEs
http://blog.rubygems.org/2017/08/27/2.6.13-released.html
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/gif_bot.rb b/gif_bot.rb
index abc1234..def5678 100644
--- a/gif_bot.rb
+++ b/gif_bot.rb
@@ -3,20 +3,28 @@
class GifBot < Sinatra::Base
post "/" do
- return error("I need text and trigger_word parameters") unless params_present?
- search_term = params[:text].gsub(params[:trigger_word], "").strip
... | Return meaningful message when no gif found.
|
diff --git a/cookbooks/wt_logpreproc/metadata.rb b/cookbooks/wt_logpreproc/metadata.rb
index abc1234..def5678 100644
--- a/cookbooks/wt_logpreproc/metadata.rb
+++ b/cookbooks/wt_logpreproc/metadata.rb
@@ -4,7 +4,7 @@ license "All rights reserved"
description "Installs/Configures Webtrends Log Preprocesso... | Add setting for number of Net Acuity connections
Former-commit-id: cca98e318665998559b3057695e34a10458cb1cf [formerly 153a9ca4e9621a202cd53bde075acd080ff9b5eb] [formerly 56b1a1729009943000bc3033f9cca4aeb81ab935 [formerly 15a41a6a19e9bcf1bbae178451cb480fa6b5bd7d]]
Former-commit-id: da764446f9762b16e724b7bb4288882aa186... |
diff --git a/app/controllers/app.rb b/app/controllers/app.rb
index abc1234..def5678 100644
--- a/app/controllers/app.rb
+++ b/app/controllers/app.rb
@@ -14,27 +14,27 @@ module PushApp
class App < Sinatra::Base
before do
- error 415 unless request.media_type == 'text/yaml'
content_type 'tex... | Refactor and add some more error messages.
|
diff --git a/scheduled_tasks/poll_injection_responses_task.rb b/scheduled_tasks/poll_injection_responses_task.rb
index abc1234..def5678 100644
--- a/scheduled_tasks/poll_injection_responses_task.rb
+++ b/scheduled_tasks/poll_injection_responses_task.rb
@@ -0,0 +1,18 @@+require 'chronic'
+
+# https://github.com/ssoroka/... | Add task to poll queue
|
diff --git a/CHTCollectionViewWaterfallLayout.podspec b/CHTCollectionViewWaterfallLayout.podspec
index abc1234..def5678 100644
--- a/CHTCollectionViewWaterfallLayout.podspec
+++ b/CHTCollectionViewWaterfallLayout.podspec
@@ -7,7 +7,17 @@ s.license = 'MIT'
s.author = { "Nelson" => "chiahsien@gmail.com" }... | Update podspec
- There are two subspec: ObjC and Swift
- Default subspec is ObjC
|
diff --git a/spec/presenters/tree_node/vm_or_template_spec.rb b/spec/presenters/tree_node/vm_or_template_spec.rb
index abc1234..def5678 100644
--- a/spec/presenters/tree_node/vm_or_template_spec.rb
+++ b/spec/presenters/tree_node/vm_or_template_spec.rb
@@ -15,7 +15,6 @@ template_microsoft
template_redhat
... | Remove extra *_xen reference from specs
follow-up to ManageIQ/manageiq#20250
|
diff --git a/lib/mumukit/templates/with_structured_results.rb b/lib/mumukit/templates/with_structured_results.rb
index abc1234..def5678 100644
--- a/lib/mumukit/templates/with_structured_results.rb
+++ b/lib/mumukit/templates/with_structured_results.rb
@@ -16,7 +16,7 @@
def extract_result(result)
separator = s... | Replace [1] for last fixes problem when running run_tests!
|
diff --git a/Casks/gitx-l.rb b/Casks/gitx-l.rb
index abc1234..def5678 100644
--- a/Casks/gitx-l.rb
+++ b/Casks/gitx-l.rb
@@ -0,0 +1,6 @@+class GitxL < Cask
+ url 'https://github.com/downloads/laullon/gitx/GitX-L_v0.8.4.zip'
+ homepage 'http://gitx.laullon.com/'
+ version '0.8.4'
+end
+
| Add cask for laullon version of GitX git gui.
More up to date and developed than original GitX client.
|
diff --git a/attributes/berkshelf.rb b/attributes/berkshelf.rb
index abc1234..def5678 100644
--- a/attributes/berkshelf.rb
+++ b/attributes/berkshelf.rb
@@ -1,2 +1,2 @@-default.base.berkshelf_version = '2.0.14'
+default.base.berkshelf_version = '2.0.16'
default.base.berkshelf_solve_version = '0.8.2'
| Update Berkshelf to fix Ridley dep issue .. :/
|
diff --git a/app/controllers/middleware_datasource_controller.rb b/app/controllers/middleware_datasource_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/middleware_datasource_controller.rb
+++ b/app/controllers/middleware_datasource_controller.rb
@@ -15,7 +15,7 @@ :skip => true,
:hawk... | Fix MW Datasource removal toast text
|
diff --git a/app/controllers/spree/admin/suppliers_controller.rb b/app/controllers/spree/admin/suppliers_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/spree/admin/suppliers_controller.rb
+++ b/app/controllers/spree/admin/suppliers_controller.rb
@@ -2,8 +2,6 @@ module Spree
module Admin
class... | Remove respond_to as it is not needed |
diff --git a/ruby_inspector.gemspec b/ruby_inspector.gemspec
index abc1234..def5678 100644
--- a/ruby_inspector.gemspec
+++ b/ruby_inspector.gemspec
@@ -20,7 +20,7 @@ spec.executables = spec.files.grep(/^exe\//) { |f| File.basename(f) }
spec.require_paths = ['lib']
- spec.add_development_dependency 'bundler',... | Rollback to older version of bundler
|
diff --git a/lib/danger/ci_source/azure_pipelines.rb b/lib/danger/ci_source/azure_pipelines.rb
index abc1234..def5678 100644
--- a/lib/danger/ci_source/azure_pipelines.rb
+++ b/lib/danger/ci_source/azure_pipelines.rb
@@ -19,7 +19,7 @@ #
class AzurePipelines < CI
def self.validates_as_ci?(env)
- env.key? ... | Fix run with Azure Pipelines as CI Source and Azure Repos Git as Request Source
|
diff --git a/lib/reponaut/github.rb b/lib/reponaut/github.rb
index abc1234..def5678 100644
--- a/lib/reponaut/github.rb
+++ b/lib/reponaut/github.rb
@@ -19,6 +19,10 @@
def repos
JSON.parse(repo_data).map { |e| Repository.new(e) }
+ end
+
+ def to_s
+ username
end
privat... | Define to_s methods for GitHub::Client and Repository
|
diff --git a/private_attr.gemspec b/private_attr.gemspec
index abc1234..def5678 100644
--- a/private_attr.gemspec
+++ b/private_attr.gemspec
@@ -16,4 +16,6 @@ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_path... | Add rake as dev dependency, per travis-ci
|
diff --git a/spec/extensions/hash_aliases_spec.rb b/spec/extensions/hash_aliases_spec.rb
index abc1234..def5678 100644
--- a/spec/extensions/hash_aliases_spec.rb
+++ b/spec/extensions/hash_aliases_spec.rb
@@ -1,6 +1,6 @@ require File.join(File.dirname(File.expand_path(__FILE__)), "spec_helper")
-describe "filter_havi... | Fix typo in spec suite description
|
diff --git a/spec/factories/adjustment_factory.rb b/spec/factories/adjustment_factory.rb
index abc1234..def5678 100644
--- a/spec/factories/adjustment_factory.rb
+++ b/spec/factories/adjustment_factory.rb
@@ -0,0 +1,9 @@+FactoryBot.define do
+ factory :adjustment, class: Spree::Adjustment do
+ association(:adjustab... | Bring adjustment factory from spree_core
|
diff --git a/spec/noir/command/completion_spec.rb b/spec/noir/command/completion_spec.rb
index abc1234..def5678 100644
--- a/spec/noir/command/completion_spec.rb
+++ b/spec/noir/command/completion_spec.rb
@@ -33,5 +33,17 @@ expect(Noir::Command::Completion.suggestions(list)).to_not include('subsubcommand')
e... | Add subcommands test in Noir::Command::Completion
|
diff --git a/app/controllers/spree/products_controller_decorator.rb b/app/controllers/spree/products_controller_decorator.rb
index abc1234..def5678 100644
--- a/app/controllers/spree/products_controller_decorator.rb
+++ b/app/controllers/spree/products_controller_decorator.rb
@@ -2,7 +2,7 @@ ProductsController.class_... | Add sidebar to product page.
|
diff --git a/rails/app/models/office.rb b/rails/app/models/office.rb
index abc1234..def5678 100644
--- a/rails/app/models/office.rb
+++ b/rails/app/models/office.rb
@@ -1,3 +1,5 @@ class Office < ActiveRecord::Base
self.table_name = "pw_moffice"
+
+ belongs_to :member, foreign_key: :person, primary_key: :person
en... | Add other side of association to Office model
|
diff --git a/watir/lib/watir/loader.rb b/watir/lib/watir/loader.rb
index abc1234..def5678 100644
--- a/watir/lib/watir/loader.rb
+++ b/watir/lib/watir/loader.rb
@@ -3,11 +3,9 @@ module Watir
class Browser
class << self
+
def new(browser=nil, *args)
- if browser && browser.to_sym != :ie && Watir.dr... | Add support for Watir::Browser.start, Watir::Browser.attach and any other Watir::Browser methods.
|
diff --git a/services/stock_info.rb b/services/stock_info.rb
index abc1234..def5678 100644
--- a/services/stock_info.rb
+++ b/services/stock_info.rb
@@ -32,7 +32,7 @@
def quotes
today = Date.today
- start_of_week = today - 5
+ start_of_week = today - 10
@_quotes ||= MarketBeat.quotes(sy... | Include last 10 days in history
|
diff --git a/Casks/firefox-nightly.rb b/Casks/firefox-nightly.rb
index abc1234..def5678 100644
--- a/Casks/firefox-nightly.rb
+++ b/Casks/firefox-nightly.rb
@@ -5,6 +5,7 @@ url "https://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-#{version}.en-US.mac.dmg"
homepage 'https://nightly.mozilla.... | Add tag stanza to firefox nightly
|
diff --git a/lib/formtastic/inputs/datalist_input.rb b/lib/formtastic/inputs/datalist_input.rb
index abc1234..def5678 100644
--- a/lib/formtastic/inputs/datalist_input.rb
+++ b/lib/formtastic/inputs/datalist_input.rb
@@ -2,7 +2,7 @@ module Inputs
# Outputs a label and a text field, along with a datalist tag
... | Improve intent of the regex used to strip out _id, and other PR fixes
|
diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/static_pages_controller.rb
+++ b/app/controllers/static_pages_controller.rb
@@ -1,5 +1,7 @@ class StaticPagesController < ApplicationController
def home
- @ideas ... | Select ideas for slides show
|
diff --git a/lib/shoulda/matchers/assertion_error.rb b/lib/shoulda/matchers/assertion_error.rb
index abc1234..def5678 100644
--- a/lib/shoulda/matchers/assertion_error.rb
+++ b/lib/shoulda/matchers/assertion_error.rb
@@ -1,6 +1,7 @@ module Shoulda
module Matchers
- if defined?(Test::Unit::AssertionFailedError)
+ ... | Fix the build on Ruby 1.8 using Test::Unit
|
diff --git a/Gem.gemspec b/Gem.gemspec
index abc1234..def5678 100644
--- a/Gem.gemspec
+++ b/Gem.gemspec
@@ -15,6 +15,6 @@ spec.email = ["envygeeks@gmail.com"]
spec.add_development_dependency("rspec", "~> 2.14")
- spec.add_development_dependency("envygeeks-coveralls", "~> 0.1")
- spec.add_development_dependenc... | Allow any version of those depends.
|
diff --git a/site-cookbooks/backup_restore/recipes/setup.rb b/site-cookbooks/backup_restore/recipes/setup.rb
index abc1234..def5678 100644
--- a/site-cookbooks/backup_restore/recipes/setup.rb
+++ b/site-cookbooks/backup_restore/recipes/setup.rb
@@ -1,4 +1,13 @@ include_recipe 'cron'
+
+package 'zlib-devel' do
+ action... | Add required packages to build nokogiri.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.