diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/test/mactag/tag/gem_test.rb b/test/mactag/tag/gem_test.rb
index abc1234..def5678 100644
--- a/test/mactag/tag/gem_test.rb
+++ b/test/mactag/tag/gem_test.rb
@@ -12,4 +12,31 @@ end
end
+ context "gem without version" do
+ context "one gem" do
+ setup do
+ Dir.stubs(:glob).returns("... | Test other cases aswell in gem tag test using stubs.
|
diff --git a/lib/vim-flavor/stringextension.rb b/lib/vim-flavor/stringextension.rb
index abc1234..def5678 100644
--- a/lib/vim-flavor/stringextension.rb
+++ b/lib/vim-flavor/stringextension.rb
@@ -10,7 +10,7 @@ end
def to_flavors_path
- "#{self}/flavors"
+ "#{self}/pack/flavors/start"
... | Update to_flavors_path to install as Vim packages
|
diff --git a/lib/wheaties/responses/welcome.rb b/lib/wheaties/responses/welcome.rb
index abc1234..def5678 100644
--- a/lib/wheaties/responses/welcome.rb
+++ b/lib/wheaties/responses/welcome.rb
@@ -4,6 +4,13 @@ # RPL_ENDOFMOTD
def on_376
log(:debug, "Connection established")
+
+ perf... | Add ability to perform commands automatically once a connection is established
|
diff --git a/jekyll-fridge.gemspec b/jekyll-fridge.gemspec
index abc1234..def5678 100644
--- a/jekyll-fridge.gemspec
+++ b/jekyll-fridge.gemspec
@@ -4,7 +4,7 @@
Gem::Specification.new do |spec|
spec.add_development_dependency 'bundler', '~> 1.0'
- spec.add_dependency 'jekyll', '~> 2.5.3'
+ spec.add_dependency 'j... | chore(gemspec): Update jekyll version dependency to get it working with jekyll v3
|
diff --git a/stradivari.gemspec b/stradivari.gemspec
index abc1234..def5678 100644
--- a/stradivari.gemspec
+++ b/stradivari.gemspec
@@ -24,4 +24,5 @@
spec.add_runtime_dependency 'pg_search'
spec.add_runtime_dependency 'ransack'
+ spec.add_runtime_dependency 'haml', [">= 3.1", "< 5.0"]
end
| Add HAML as a dependency
|
diff --git a/spec/ffi/async_callback_spec.rb b/spec/ffi/async_callback_spec.rb
index abc1234..def5678 100644
--- a/spec/ffi/async_callback_spec.rb
+++ b/spec/ffi/async_callback_spec.rb
@@ -14,9 +14,10 @@ it ":int (0x7fffffff) argument" do
v = 0xdeadbeef
called = false
- LibTest.testAsyncCallback(... | Tweak the async callback spec to hold a ref to the callback proc, so it doesn't get garbage collected during the thread deferal
|
diff --git a/deferrer.gemspec b/deferrer.gemspec
index abc1234..def5678 100644
--- a/deferrer.gemspec
+++ b/deferrer.gemspec
@@ -22,5 +22,5 @@ spec.add_dependency "multi_json"
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
- spec.add_development_dependency "rspec"
+ ... | Use old version of rspec
|
diff --git a/spec/bundler/lockfile_parser_spec.rb b/spec/bundler/lockfile_parser_spec.rb
index abc1234..def5678 100644
--- a/spec/bundler/lockfile_parser_spec.rb
+++ b/spec/bundler/lockfile_parser_spec.rb
@@ -0,0 +1,94 @@+# frozen_string_literal: true
+require "spec_helper"
+require "bundler/lockfile_parser"
+
+describ... | Add lockfile parser unit tests
|
diff --git a/lib/aviator/openstack/volume/v1/public/create_volume.rb b/lib/aviator/openstack/volume/v1/public/create_volume.rb
index abc1234..def5678 100644
--- a/lib/aviator/openstack/volume/v1/public/create_volume.rb
+++ b/lib/aviator/openstack/volume/v1/public/create_volume.rb
@@ -24,7 +24,7 @@ }
}
... | Send all optional params on create volume
|
diff --git a/MsgPackSerialization.podspec b/MsgPackSerialization.podspec
index abc1234..def5678 100644
--- a/MsgPackSerialization.podspec
+++ b/MsgPackSerialization.podspec
@@ -7,7 +7,7 @@ s.social_media_url = 'https://twitter.com/mattt'
s.authors = { 'Mattt Thompson' => 'm@mattt.me' }
s.source = { :git => '... | Add msgpack_src to pod source files.
|
diff --git a/app/controllers/index.rb b/app/controllers/index.rb
index abc1234..def5678 100644
--- a/app/controllers/index.rb
+++ b/app/controllers/index.rb
@@ -18,7 +18,7 @@ end
get '/signup' do
- erb :sign_up
+ erb :signup
#sign up form
end
| Correct name of signup erb
|
diff --git a/General/bottles-of-beer.rb b/General/bottles-of-beer.rb
index abc1234..def5678 100644
--- a/General/bottles-of-beer.rb
+++ b/General/bottles-of-beer.rb
@@ -0,0 +1,10 @@+def beer (bottles)
+ (bottles).downto(0) do |bottle|
+ word = bottle == 1 ? 'bottle' : 'bottles'
+ bottle = bottle == 0 ? 'no more'... | Solve bottles of beer problem in Ruby
|
diff --git a/app/models/ability.rb b/app/models/ability.rb
index abc1234..def5678 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -8,9 +8,13 @@ if user.has_role? :admin
can :manage, :all
elsif user.has_role? :user
- can :manage, Farm, user_id: user.id
+ can :manage, Farm do |... | Update CanCan abilities to support multiple owners.
|
diff --git a/app/models/machine.rb b/app/models/machine.rb
index abc1234..def5678 100644
--- a/app/models/machine.rb
+++ b/app/models/machine.rb
@@ -8,7 +8,7 @@
attr_accessible :theme_id, :service_id, :operating_system_id, :site_id, :physical_rack_id, :cddvd_id, :mainteneur_id, :nom, :ancien_nom, :sousreseau_ip, :q... | Include :site association in Machine default_scope
|
diff --git a/app/models/section.rb b/app/models/section.rb
index abc1234..def5678 100644
--- a/app/models/section.rb
+++ b/app/models/section.rb
@@ -9,4 +9,7 @@
default_scope { desc(:sort) }
+ validates :name, presence: true
+ validates :name, uniqueness: true
+
end
| Add custom validators to the name field when saving the scetion.
|
diff --git a/jekyll-watch.gemspec b/jekyll-watch.gemspec
index abc1234..def5678 100644
--- a/jekyll-watch.gemspec
+++ b/jekyll-watch.gemspec
@@ -9,9 +9,8 @@ spec.homepage = "https://github.com/jekyll/jekyll-watch"
spec.license = "MIT"
- spec.files = `git ls-files -z`.split("\x0")
+ spec.file... | Remove test files from gem bundle.
Fixes https://github.com/jekyll/jekyll-sass-converter/issues/24.
|
diff --git a/test/test_start.rb b/test/test_start.rb
index abc1234..def5678 100644
--- a/test/test_start.rb
+++ b/test/test_start.rb
@@ -9,7 +9,7 @@ sftp = mock('sftp')
# TODO: figure out how to verify a block is passed, and call it later.
# I suspect this is hard to do properly with mocha.
- Net::SFTP... | Add test to cover protocol version passing
|
diff --git a/lib/celluloid/uuid.rb b/lib/celluloid/uuid.rb
index abc1234..def5678 100644
--- a/lib/celluloid/uuid.rb
+++ b/lib/celluloid/uuid.rb
@@ -8,7 +8,7 @@ module UUID
values = SecureRandom.hex(9).match(/(.{8})(.{4})(.{3})(.{3})/)
PREFIX = "#{values[1]}-#{values[2]}-4#{values[3]}-8#{values[4]}".freeze
... | Use a block size that aligns with hexadecimal UUIDs
|
diff --git a/lib/active_record/annotate/dumper.rb b/lib/active_record/annotate/dumper.rb
index abc1234..def5678 100644
--- a/lib/active_record/annotate/dumper.rb
+++ b/lib/active_record/annotate/dumper.rb
@@ -2,11 +2,11 @@ module Annotate
module Dumper
class << self
- def dump(table_name, connectio... | Fix bug with Rails 5.2
https://github.com/ka8725/migration_data/issues/34#issuecomment-428790873
|
diff --git a/ci/cruise_config.rb b/ci/cruise_config.rb
index abc1234..def5678 100644
--- a/ci/cruise_config.rb
+++ b/ci/cruise_config.rb
@@ -1,5 +1,5 @@ Project.configure do |project|
- project.build_command = 'sudo gem update --system 1.6.2 && ruby ci/ci_build.rb'
+ project.build_command = 'sudo gem update --system ... | Allow CI to use the latest rubygems version
|
diff --git a/atspi_app_driver.gemspec b/atspi_app_driver.gemspec
index abc1234..def5678 100644
--- a/atspi_app_driver.gemspec
+++ b/atspi_app_driver.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = 'atspi_app_driver'
- s.version = '0.0.1'
+ s.version = '0.0.2'
s.summary = 'Test GNOME application... | Prepare version 0.0.2 for release
|
diff --git a/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb b/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
index abc1234..def5678 100644
--- a/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
+++ b/actionpack/lib/actio... | Fix system tests transactions not closed between examples
|
diff --git a/spec/rspec/rails/configuration_spec.rb b/spec/rspec/rails/configuration_spec.rb
index abc1234..def5678 100644
--- a/spec/rspec/rails/configuration_spec.rb
+++ b/spec/rspec/rails/configuration_spec.rb
@@ -1,26 +1,20 @@ require "spec_helper"
-describe "configuration" do
- before do
- @orig_render_views... | Update spec to remove hooks.
This changes to nearly mirrors how the configuration is tested in rspec-core.
Instead of setting up a new configuration object each test run, we clone
the existing object. This does two things:
- prevents polluting the actual test configuration
- instead of creating a new configuration it... |
diff --git a/lib/conjure/server.rb b/lib/conjure/server.rb
index abc1234..def5678 100644
--- a/lib/conjure/server.rb
+++ b/lib/conjure/server.rb
@@ -1,15 +1,7 @@ require "conjure/digital_ocean/droplet"
module Conjure
- class Server
- def initialize(server)
- @server = server
- end
-
- def ip_address
-... | Change Server to initialize with ip address |
diff --git a/lib/em-rtmp/logger.rb b/lib/em-rtmp/logger.rb
index abc1234..def5678 100644
--- a/lib/em-rtmp/logger.rb
+++ b/lib/em-rtmp/logger.rb
@@ -10,12 +10,6 @@
class << self
attr_accessor :level
- end
-
- def self.log(level, message)
- @@file ||= File.open('/Users/jcoene/Desktop/em... | Remove logging to file directly |
diff --git a/lib/ljax_rails/action_view_monkey.rb b/lib/ljax_rails/action_view_monkey.rb
index abc1234..def5678 100644
--- a/lib/ljax_rails/action_view_monkey.rb
+++ b/lib/ljax_rails/action_view_monkey.rb
@@ -6,7 +6,7 @@ if options[:locals] && options[:locals].delete(:remote)
partial = options.delete :pa... | Mark as an ljax element
|
diff --git a/bin/generate/design.rb b/bin/generate/design.rb
index abc1234..def5678 100644
--- a/bin/generate/design.rb
+++ b/bin/generate/design.rb
@@ -1,17 +1,17 @@ <% clock = aModuleInfo.clock_port.name rescue "YOUR_CLOCK_SIGNAL_HERE" %>
# Simulates the design under test for one clock cycle.
def DUT.cycle!
- <%= ... | Fix 'ArgumentError: "VpiHigh" is not a valid VPI property'
This is done by replacing .high! and .low! wigh .t! and .f! in generated
*_design.rb files.
This only affects generation of files using "ruby-vpi generate".
|
diff --git a/lib/grape/kaminari.rb b/lib/grape/kaminari.rb
index abc1234..def5678 100644
--- a/lib/grape/kaminari.rb
+++ b/lib/grape/kaminari.rb
@@ -21,8 +21,8 @@
def self.paginate(options = {})
options.reverse_merge!(
- per_page: 10,
- max_per_page: false
+ per_pag... | Use Kaminari's default config for (max_)per_page
Use Kaminari's config which is generated from running `rails g kaminari:config`.
You will still need to call `paginate` outside the `get`. I was looking for a way to do this automatically but couldn't think of an easy/quick implementation. |
diff --git a/page_object_stubs.gemspec b/page_object_stubs.gemspec
index abc1234..def5678 100644
--- a/page_object_stubs.gemspec
+++ b/page_object_stubs.gemspec
@@ -1,6 +1,8 @@ require_relative 'lib/page_object_stubs/version'
Gem::Specification.new do |spec|
+ spec.required_ruby_version = '>= 1.9.3'
+
spec.name ... | Add required ruby version to gemspec
|
diff --git a/lib/chartkick.rb b/lib/chartkick.rb
index abc1234..def5678 100644
--- a/lib/chartkick.rb
+++ b/lib/chartkick.rb
@@ -15,9 +15,21 @@ # use Enumerable so it can be called on arrays
module Enumerable
def chart_json
- if is_a?(Hash) && (key = keys.first) && key.is_a?(Array) && key.size == 2
- group_... | Use arrays instead of hashes to preserve order when converting to json
|
diff --git a/bootstrap-sass.gemspec b/bootstrap-sass.gemspec
index abc1234..def5678 100644
--- a/bootstrap-sass.gemspec
+++ b/bootstrap-sass.gemspec
@@ -1,6 +1,6 @@ Gem::Specification.new do |s|
s.name = "bootstrap-sass"
- s.version = '2.0.4.1'
+ s.version = '2.1.0.0'
s.authors = ["Thomas McDonald"]
s.email ... | Bump working version to 2.1.0.0
|
diff --git a/breath_depth_search.rb b/breath_depth_search.rb
index abc1234..def5678 100644
--- a/breath_depth_search.rb
+++ b/breath_depth_search.rb
@@ -46,3 +46,12 @@ end
breath_first_search(root)
+
+def depth_first_search(node)
+ puts node.value
+ node.children.each do |child|
+ depth_first_search(child)
+ e... | Complete depth first search method
|
diff --git a/spec/examples_spec.rb b/spec/examples_spec.rb
index abc1234..def5678 100644
--- a/spec/examples_spec.rb
+++ b/spec/examples_spec.rb
@@ -10,6 +10,10 @@ e '13483 74205 .@.@{.}{.@\%}W;\@*\/', 13483.lcm(74205)
end
+ describe "Hailstone Sequence (Collatz Conjecture)" do
+ e '13[.{.1>}{{.2%}{.3*1+}{... | Add Hailstone Sequence (Collatz Conjecture) example.
|
diff --git a/spec/patterns_spec.rb b/spec/patterns_spec.rb
index abc1234..def5678 100644
--- a/spec/patterns_spec.rb
+++ b/spec/patterns_spec.rb
@@ -2,6 +2,12 @@ require 'patterns_module/patterns'
describe Patterns do
+
+ describe "constants" do
+ it "contains patterns as constants" do
+ expect(Patterns::PU... | Write tests for constants in pattern module
|
diff --git a/spec/forecast_spec.rb b/spec/forecast_spec.rb
index abc1234..def5678 100644
--- a/spec/forecast_spec.rb
+++ b/spec/forecast_spec.rb
@@ -20,6 +20,20 @@ FileUtils.remove_entry_secure(Forecaster.configuration.cache_dir)
end
+ it "requires curl" do
+ curl_path = Forecaster.configuration.curl_path
... | Add tests for curl and wgrib2
|
diff --git a/spec/producer_spec.rb b/spec/producer_spec.rb
index abc1234..def5678 100644
--- a/spec/producer_spec.rb
+++ b/spec/producer_spec.rb
@@ -6,6 +6,14 @@
let(:topic) { 'rspec' }
let(:brokers) { 'localhost:1337' }
+
+ context 'with a bad broker configuration' do
+ let(:brokers) { '' }
+
+ it 'shoul... | Add test case that exits the ruby interpreter (to be fixed real soon)
|
diff --git a/spec/requests_spec.rb b/spec/requests_spec.rb
index abc1234..def5678 100644
--- a/spec/requests_spec.rb
+++ b/spec/requests_spec.rb
@@ -13,12 +13,12 @@ end
it 'returns 200 status for post request' do
- post '/', {}
+ post '/', {test: "value"}
expect(last_response).to be_ok
... | Add body to POST and PUT requests in spec.
|
diff --git a/test/no_visit_method_error_test.rb b/test/no_visit_method_error_test.rb
index abc1234..def5678 100644
--- a/test/no_visit_method_error_test.rb
+++ b/test/no_visit_method_error_test.rb
@@ -1,11 +1,12 @@ require 'minitest/autorun'
require_relative '../lib/eavi/no_visit_method_error'
+require_relative 'fix... | Use fixtures in NoVisitMethodError tests
|
diff --git a/spec/support/seeds.rb b/spec/support/seeds.rb
index abc1234..def5678 100644
--- a/spec/support/seeds.rb
+++ b/spec/support/seeds.rb
@@ -7,7 +7,7 @@ # leaves them there when deleting the rest (see spec/spec_helper.rb).
# You can add more entries here if you need them for your tests.
-if Spree::Country.wh... | Fix order dependent reports spec
Depending on the order of spec execution, it was possible that a factory
created the default state "Alabama" with the default country "USA"
instead of using the usual seed data of "Victoria" in "Australia". Some
specs rely on "Victoria" though and we now make sure that it's created
eve... |
diff --git a/lib/pagerduty/base.rb b/lib/pagerduty/base.rb
index abc1234..def5678 100644
--- a/lib/pagerduty/base.rb
+++ b/lib/pagerduty/base.rb
@@ -22,7 +22,7 @@ output << "#{URI.encode(key.to_s)}=#{URI.encode(val)}"
end
end
- uri.query = "?#{output.join("&")}"
+ uri.query = "#{outp... | Fix of nill values v2
|
diff --git a/sensu/plugins/check-os-api.rb b/sensu/plugins/check-os-api.rb
index abc1234..def5678 100644
--- a/sensu/plugins/check-os-api.rb
+++ b/sensu/plugins/check-os-api.rb
@@ -36,6 +36,8 @@ "ceilometer meter-list -l 1"
when "barbican"
"openstack secret list -l 1"
+ when "aodh"
+ "ceilomet... | Add aodh api service check
|
diff --git a/app/serializers/post_serializer.rb b/app/serializers/post_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/post_serializer.rb
+++ b/app/serializers/post_serializer.rb
@@ -8,7 +8,7 @@ end
def markdown_body
- product_markdown(product, object.body.truncate(300))
+ product_markdow... | Stop truncating text posts in previews.
|
diff --git a/examples/init.rb b/examples/init.rb
index abc1234..def5678 100644
--- a/examples/init.rb
+++ b/examples/init.rb
@@ -3,11 +3,9 @@ Moltin.configure do |config|
config.client_id = 'YOUR_CLIENT_ID'
config.client_secret = 'YOUR_CLIENT_SECRET'
- config.base_url = 'https://api.yourdomain.com'
+ config.ba... | Fix Rubocop offenses in examples/ |
diff --git a/app/views/api/skins/show.json.ruby b/app/views/api/skins/show.json.ruby
index abc1234..def5678 100644
--- a/app/views/api/skins/show.json.ruby
+++ b/app/views/api/skins/show.json.ruby
@@ -6,6 +6,6 @@ },
token: @skin.token,
properties: @skin.properties.in_chronological_order.map do |p|
- {timesta... | Use epoch format for timestamp |
diff --git a/heroku_dataclip/heroku_dataclip.rb b/heroku_dataclip/heroku_dataclip.rb
index abc1234..def5678 100644
--- a/heroku_dataclip/heroku_dataclip.rb
+++ b/heroku_dataclip/heroku_dataclip.rb
@@ -1,18 +1,18 @@-class HerokuDataclipPlugin < Scout::Plugin
+class HerokuDataclip < Scout::Plugin
OPTIONS=<<-EOS
d... | Fix minor formatting issues in HerokuDataclip
|
diff --git a/app/jobs/slack_invite_job.rb b/app/jobs/slack_invite_job.rb
index abc1234..def5678 100644
--- a/app/jobs/slack_invite_job.rb
+++ b/app/jobs/slack_invite_job.rb
@@ -3,10 +3,11 @@
def perform(email)
uri = URI.parse 'https://agileventures.slack.com/api/users.admin.invite'
- Net::HTTP.post_form(uri... | Return proper response from invite job
|
diff --git a/lib/tasks/feeder.rake b/lib/tasks/feeder.rake
index abc1234..def5678 100644
--- a/lib/tasks/feeder.rake
+++ b/lib/tasks/feeder.rake
@@ -0,0 +1,8 @@+namespace :feeder do
+ desc "Publishes podcasts with episodes that are now released"
+ task :release_episodes => :environment do
+ puts "rake: release_epi... | Add a task to schedule for releasing episodes
|
diff --git a/app/models/challenge_post.rb b/app/models/challenge_post.rb
index abc1234..def5678 100644
--- a/app/models/challenge_post.rb
+++ b/app/models/challenge_post.rb
@@ -44,7 +44,7 @@ def rank_score
return unless persisted?
- gravity = 1.8 # adjust as necessary
+ gravity = 2 # adjust as necessary
... | Add more weight to time since submission
|
diff --git a/app/models/storytime/role.rb b/app/models/storytime/role.rb
index abc1234..def5678 100644
--- a/app/models/storytime/role.rb
+++ b/app/models/storytime/role.rb
@@ -5,6 +5,14 @@ has_many :allowed_actions, through: :permissions, source: :action
validates :name, uniqueness: true
+
+ def editor?
... | Add editor and writer checks
|
diff --git a/app/models/yahoo/location.rb b/app/models/yahoo/location.rb
index abc1234..def5678 100644
--- a/app/models/yahoo/location.rb
+++ b/app/models/yahoo/location.rb
@@ -11,6 +11,9 @@
def fullname
"#{name}, #{admin1}, #{country}"
+ rescue TypeError => e
+ msg = "[Yahoo] Errored in request wi... | Add some debugging for a Yahoo API crash
|
diff --git a/lib/utility/logger.rb b/lib/utility/logger.rb
index abc1234..def5678 100644
--- a/lib/utility/logger.rb
+++ b/lib/utility/logger.rb
@@ -1,6 +1,8 @@+require 'digest/md5'
class Logger
+
def initialize
- @file = File.new("logs/#{Time.now.strftime('%Y-%m-%d')}.log", 'a')
+ @file = File.new("../logs/#... | Add unique IDs to log files
|
diff --git a/lib/wheelie/router.rb b/lib/wheelie/router.rb
index abc1234..def5678 100644
--- a/lib/wheelie/router.rb
+++ b/lib/wheelie/router.rb
@@ -0,0 +1,41 @@+module Wheelie
+ class Router
+
+ attr_accessor :model
+
+ def initialize(model)
+ self.model = model
+ end
+
+ def index
+ plural_path... | Create Wheelie::Routes, which offers path generation (e.g. users_path)
|
diff --git a/lib/wikitext/rails.rb b/lib/wikitext/rails.rb
index abc1234..def5678 100644
--- a/lib/wikitext/rails.rb
+++ b/lib/wikitext/rails.rb
@@ -25,4 +25,10 @@ end
end
-ActionView::Base.register_template_handler :wikitext, Wikitext::TemplateHandler
+if ActionView::Template.respond_to? :register_template_handle... | Update Rails adapater for 2.1.0
Fix breakage caused by API changes in Rails 2.1.0_RC1 while retaining
compatibility with Rails 2.0.2.
Signed-off-by: Wincent Colaiuta <c76ac2e9cd86441713c7dfae92c451f3e6d17fdc@wincent.com>
|
diff --git a/lib/outpost/model/authentication.rb b/lib/outpost/model/authentication.rb
index abc1234..def5678 100644
--- a/lib/outpost/model/authentication.rb
+++ b/lib/outpost/model/authentication.rb
@@ -10,7 +10,6 @@ before_validation :generate_username, on: :create, if: -> { self.username.blank? }
... | Return guard for generate_username; no need to validate e-mail presence
|
diff --git a/lib/yard/handlers/method_handler.rb b/lib/yard/handlers/method_handler.rb
index abc1234..def5678 100644
--- a/lib/yard/handlers/method_handler.rb
+++ b/lib/yard/handlers/method_handler.rb
@@ -3,7 +3,7 @@
def process
mscope = scope
- meth = statement.tokens.to_s[/^def\s+([\s\w\:\.=<>\?^%\/\*... | Add extra punctuation chars to method name
|
diff --git a/lib/appflux_ruby/bugflux_config.rb b/lib/appflux_ruby/bugflux_config.rb
index abc1234..def5678 100644
--- a/lib/appflux_ruby/bugflux_config.rb
+++ b/lib/appflux_ruby/bugflux_config.rb
@@ -36,7 +36,7 @@ # This is the URL to API that accepts notifications generated by this gem.
# Should be somet... | Use https to report exceptions
|
diff --git a/lib/blockscore/errors/api_error.rb b/lib/blockscore/errors/api_error.rb
index abc1234..def5678 100644
--- a/lib/blockscore/errors/api_error.rb
+++ b/lib/blockscore/errors/api_error.rb
@@ -19,9 +19,9 @@ def initialize(response)
@http_body = JSON.parse(response.body, symbolize_names: true)
- ... | Upgrade to assume error elements are always present
|
diff --git a/lib/capistrano/tasks/database.rake b/lib/capistrano/tasks/database.rake
index abc1234..def5678 100644
--- a/lib/capistrano/tasks/database.rake
+++ b/lib/capistrano/tasks/database.rake
@@ -1,3 +1,8 @@+def system_v(cmd)
+ info "Execute '#{cmd}'"
+ system cmd
+end
+
desc 'Copy database from the server to y... | Make cap task db2local more robust and verbose
- "--password=" instead of "-p " for compatibility with different mysql versions
- log all locally executed commands
|
diff --git a/lib/govuk_seed_crawler/get_urls.rb b/lib/govuk_seed_crawler/get_urls.rb
index abc1234..def5678 100644
--- a/lib/govuk_seed_crawler/get_urls.rb
+++ b/lib/govuk_seed_crawler/get_urls.rb
@@ -1,4 +1,4 @@-require 'govuk_mirrrorer/indexer'
+require 'govuk_mirrorer/indexer'
module GovukSeedCrawler
class Get... | Fix typo when requiring GovukMirrorer::Indexer
|
diff --git a/lib/fastly/string.rb b/lib/fastly/string.rb
index abc1234..def5678 100644
--- a/lib/fastly/string.rb
+++ b/lib/fastly/string.rb
@@ -1,7 +1,7 @@ # add an underscore method to String, so we can easily convert CamelCase to
# camel_case for CacheSetting and RequestSetting objects.
class String
- if !instanc... | Use slightly more straightforward method check
|
diff --git a/lib/keyed_archive.rb b/lib/keyed_archive.rb
index abc1234..def5678 100644
--- a/lib/keyed_archive.rb
+++ b/lib/keyed_archive.rb
@@ -1,5 +1,18 @@+require 'cfpropertylist'
+
+require "keyed_archive/unpacked_objects"
require "keyed_archive/version"
-module KeyedArchive
- # Your code goes here...
+class Ke... | Add implementation for initializing a new keyed archive.
|
diff --git a/lib/metadata_hook.rb b/lib/metadata_hook.rb
index abc1234..def5678 100644
--- a/lib/metadata_hook.rb
+++ b/lib/metadata_hook.rb
@@ -10,7 +10,13 @@ test_framework: {
name: 'hspec',
version: '2',
- test_extension: 'hs'
+ test_extension: 'hs',
+ template: <<has... | Add hspec template to metadata
|
diff --git a/lib/request_rules.rb b/lib/request_rules.rb
index abc1234..def5678 100644
--- a/lib/request_rules.rb
+++ b/lib/request_rules.rb
@@ -1,24 +1,74 @@+# assert_request Rails Plugin
+#
+# (c) Copyright 2007 by West Arete Computing, Inc.
+
module AssertRequest
- # Holds the definition of the rules for a valid r... | Add full documentation for this file.
git-svn-id: 36d0598828eae866924735253b485a592756576c@8095 da5c320b-a5ec-0310-b7f9-e4d854caa1e2
|
diff --git a/lib/slappy/client.rb b/lib/slappy/client.rb
index abc1234..def5678 100644
--- a/lib/slappy/client.rb
+++ b/lib/slappy/client.rb
@@ -6,20 +6,23 @@ class Client
def initialize
Slack.configure { |config| config.token = ENV['SLACK_TOKEN'] }
- @client = Slack.realtime
@listeners = {}
+... | Use Slack Client to cache
|
diff --git a/lib/tasks/neo4j.rake b/lib/tasks/neo4j.rake
index abc1234..def5678 100644
--- a/lib/tasks/neo4j.rake
+++ b/lib/tasks/neo4j.rake
@@ -0,0 +1,15 @@+namespace :envelopes do
+ desc 'Imports documents into Neo4j'
+ task :environment do
+ end
+
+ desc 'Imports a JSON-LD file from Credential Registry.'
+ task... | Add rake task to import all envelopes into Neo4j
|
diff --git a/lib/jammit-s3.rb b/lib/jammit-s3.rb
index abc1234..def5678 100644
--- a/lib/jammit-s3.rb
+++ b/lib/jammit-s3.rb
@@ -13,10 +13,11 @@ class JammitRailtie < Rails::Railtie
initializer "set asset host and asset id" do
config.after_initialize do
+ protocol = Jammit.configuration[:ss... | Use https protocol when SSL is enabled.
|
diff --git a/lib/roxml/xml.rb b/lib/roxml/xml.rb
index abc1234..def5678 100644
--- a/lib/roxml/xml.rb
+++ b/lib/roxml/xml.rb
@@ -4,6 +4,10 @@ require 'libxml'
XML_PARSER = 'libxml' # :nodoc:
rescue LoadError
+ warn <<WARNING
+ROXML is unable to locate libxml on your system, and so is falling back... | Put out a warning if libxm lisn't found
|
diff --git a/spec/exlibris/aleph/config_spec.rb b/spec/exlibris/aleph/config_spec.rb
index abc1234..def5678 100644
--- a/spec/exlibris/aleph/config_spec.rb
+++ b/spec/exlibris/aleph/config_spec.rb
@@ -1,6 +1,16 @@ module Exlibris
module Aleph
describe Config do
+ subject(:config) { Config }
+ describe... | Add an example to the Config spec
|
diff --git a/spec/factories/ci/job_artifacts.rb b/spec/factories/ci/job_artifacts.rb
index abc1234..def5678 100644
--- a/spec/factories/ci/job_artifacts.rb
+++ b/spec/factories/ci/job_artifacts.rb
@@ -1,7 +1,4 @@-require "#{Rails.root}/spec/support/fixture_helpers.rb"
-
include ActionDispatch::TestProcess
-include Fix... | Revert "Add FixtureHelpers for FactoryGirl"
This reverts commit 3603e7c3a2cfd88e8441c5d76303645776349117.
|
diff --git a/spec/requests/static_pages_spec.rb b/spec/requests/static_pages_spec.rb
index abc1234..def5678 100644
--- a/spec/requests/static_pages_spec.rb
+++ b/spec/requests/static_pages_spec.rb
@@ -25,6 +25,14 @@ it_should_behave_like 'all static pages'
end
+ describe 'FAQ page' do
+ before { visit faq_... | Add FAQ to request specs
|
diff --git a/spec/server/models/so_line_spec.rb b/spec/server/models/so_line_spec.rb
index abc1234..def5678 100644
--- a/spec/server/models/so_line_spec.rb
+++ b/spec/server/models/so_line_spec.rb
@@ -2,9 +2,9 @@
class SoLineSpec < Skr::TestCase
- it "can be instantiated" do
- model = SoLine.new
- ... | Test that correct uoms are present
|
diff --git a/test/workbook/worksheet/auto_filter/tc_filter_column.rb b/test/workbook/worksheet/auto_filter/tc_filter_column.rb
index abc1234..def5678 100644
--- a/test/workbook/worksheet/auto_filter/tc_filter_column.rb
+++ b/test/workbook/worksheet/auto_filter/tc_filter_column.rb
@@ -5,4 +5,9 @@ def setup
end
+
... | Add dummy test for filter column so it shuts up on 1.8.7
|
diff --git a/Casks/netnewswire.rb b/Casks/netnewswire.rb
index abc1234..def5678 100644
--- a/Casks/netnewswire.rb
+++ b/Casks/netnewswire.rb
@@ -4,7 +4,7 @@
url "http://cdn.netnewswireapp.com/releases/NetNewsWire-#{version}.zip"
appcast 'https://updates.blackpixel.com/updates?app=nnw',
- :sha256 => '1ad... | Fix appcast hash for NewNewsWire |
diff --git a/spree_embedded_videos.gemspec b/spree_embedded_videos.gemspec
index abc1234..def5678 100644
--- a/spree_embedded_videos.gemspec
+++ b/spree_embedded_videos.gemspec
@@ -1,7 +1,7 @@ Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'spree-embedded-videos'
- s.version ... | Fix version number to be independent of spree version.
|
diff --git a/change-image/dell/barclamps/provisioner/chef/cookbooks/provisioner/recipes/base.rb b/change-image/dell/barclamps/provisioner/chef/cookbooks/provisioner/recipes/base.rb
index abc1234..def5678 100644
--- a/change-image/dell/barclamps/provisioner/chef/cookbooks/provisioner/recipes/base.rb
+++ b/change-image/d... | Set the default parameters for chef-client on startup
|
diff --git a/spec/customization_engine_spec.rb b/spec/customization_engine_spec.rb
index abc1234..def5678 100644
--- a/spec/customization_engine_spec.rb
+++ b/spec/customization_engine_spec.rb
@@ -8,21 +8,33 @@ let(:test_key) { I18n.t('account.show.change_credentials_link') }
let!(:default_path) { I18n.load_path }... | Make customization engine spec less prone to flaky failures
|
diff --git a/spec/heroku/command/stack_spec.rb b/spec/heroku/command/stack_spec.rb
index abc1234..def5678 100644
--- a/spec/heroku/command/stack_spec.rb
+++ b/spec/heroku/command/stack_spec.rb
@@ -20,7 +20,7 @@ === example Available Stacks
aspen-mri-1.8.6
bamboo-ree-1.8.7
- cedar (beta)
+ cedar-10 (beta)
* bam... | Update spec to match the new behavior of stacks
|
diff --git a/api/spec/spec_helper.rb b/api/spec/spec_helper.rb
index abc1234..def5678 100644
--- a/api/spec/spec_helper.rb
+++ b/api/spec/spec_helper.rb
@@ -11,7 +11,7 @@ require 'spree/core/testing_support/factories'
RSpec.configure do |config|
- config.backtrace_clean_patterns = [/gems\/activesupport/, /gems\/act... | Remove AS + AP + RSpec stuff from API backtrace
|
diff --git a/lib/airbrake/cli/project_factory.rb b/lib/airbrake/cli/project_factory.rb
index abc1234..def5678 100644
--- a/lib/airbrake/cli/project_factory.rb
+++ b/lib/airbrake/cli/project_factory.rb
@@ -2,13 +2,11 @@ # Responsible for creating projects when needed.
# Creates them from XML received.
class ProjectFac... | Use getters instead of handwriten methods
|
diff --git a/csv_monster.gemspec b/csv_monster.gemspec
index abc1234..def5678 100644
--- a/csv_monster.gemspec
+++ b/csv_monster.gemspec
@@ -14,6 +14,6 @@ gem.files = `git ls-files`.split($\)
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
- gem.add_development_dependency "rake"
+ gem.ad... | Update sec vuln as per GH
|
diff --git a/app/models/gazetteer.rb b/app/models/gazetteer.rb
index abc1234..def5678 100644
--- a/app/models/gazetteer.rb
+++ b/app/models/gazetteer.rb
@@ -4,13 +4,18 @@ return [] if attributes[:area].blank?
stop_type_codes = StopType.codes_for_transport_mode(attributes[:transport_mode_id])
localities = ... | Use name when finding stops, don't require area for routes.
|
diff --git a/lib/grpc/kit/queue/worker/runner.rb b/lib/grpc/kit/queue/worker/runner.rb
index abc1234..def5678 100644
--- a/lib/grpc/kit/queue/worker/runner.rb
+++ b/lib/grpc/kit/queue/worker/runner.rb
@@ -18,9 +18,7 @@ GRPC.logger.error("class #{@worker_class} does not exist")
exit
... | Simplify GRPC::Kit::Queue::Worker::RunnerNERD_tree_1rungit push origin improvement/update-dependencies
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -24,9 +24,12 @@ # from config/locales/*.rb,yml are auto loaded.
#
- # config.i18n.default_locale = :de
+
config.i18n.load_path +=
Dir[Rails.ro... | Set :en as the default and fallback language
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -24,5 +24,6 @@ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', ... | Fix for assets precompile for engines
|
diff --git a/config/application.rb b/config/application.rb
index abc1234..def5678 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -6,6 +6,7 @@ require 'action_controller/railtie'
require 'action_view/railtie'
require 'rails/test_unit/railtie'
+require 'restclient/components'
# Require the gems li... | Implement HTTP API proxy request caching
|
diff --git a/lib/rakuten_web_service/response.rb b/lib/rakuten_web_service/response.rb
index abc1234..def5678 100644
--- a/lib/rakuten_web_service/response.rb
+++ b/lib/rakuten_web_service/response.rb
@@ -11,22 +11,21 @@ @json[key]
end
- def []=(key, value)
- @json[key] = value
- end
-
def ... | Define methods of RWS::Response to fetch overall information
|
diff --git a/appsignal-mongo.gemspec b/appsignal-mongo.gemspec
index abc1234..def5678 100644
--- a/appsignal-mongo.gemspec
+++ b/appsignal-mongo.gemspec
@@ -13,7 +13,7 @@ s.summary = 'Add instrument calls to mongodb queries '\
'made with mongo. For use with Appsignal.'
s.description = ... | Fix typo in the gem description
|
diff --git a/library/tempfile/initialize_spec.rb b/library/tempfile/initialize_spec.rb
index abc1234..def5678 100644
--- a/library/tempfile/initialize_spec.rb
+++ b/library/tempfile/initialize_spec.rb
@@ -5,7 +5,7 @@ before(:each) do
@tempfile = Tempfile.allocate
end
-
+
after(:each) do
@tempfile.cl... | Add spec ensuring tempfile gets created w/ 0600 (kinda important)
|
diff --git a/irb.d/looksee.rb b/irb.d/looksee.rb
index abc1234..def5678 100644
--- a/irb.d/looksee.rb
+++ b/irb.d/looksee.rb
@@ -1,7 +1,10 @@ #!/usr/bin/env ruby
# -*- ruby -*-
-if defined? lp
- alias :m :lp
+#
+# Alias Looksee's :ls method to :m
+#
+if defined? ls
+ alias :m :ls
usage "m", "Lists methods defin... | Update to work with Looksee 1.0.2
|
diff --git a/plugins/provisioners/shell/config.rb b/plugins/provisioners/shell/config.rb
index abc1234..def5678 100644
--- a/plugins/provisioners/shell/config.rb
+++ b/plugins/provisioners/shell/config.rb
@@ -10,32 +10,36 @@ @upload_path = "/tmp/vagrant-shell"
end
- def validate(env, errors)
+ ... | Update shell provisioner to latest validation api
|
diff --git a/lib/glimpse/views/active_record.rb b/lib/glimpse/views/active_record.rb
index abc1234..def5678 100644
--- a/lib/glimpse/views/active_record.rb
+++ b/lib/glimpse/views/active_record.rb
@@ -21,7 +21,7 @@ end
def formatted_duration
- "%.2f" % (duration * 1000)
+ "%.2fms" % (durati... | Add ms after duration for ActiveRecord
|
diff --git a/config/initializers/carrierwave.rb b/config/initializers/carrierwave.rb
index abc1234..def5678 100644
--- a/config/initializers/carrierwave.rb
+++ b/config/initializers/carrierwave.rb
@@ -3,9 +3,9 @@ config.fog_credentials = {
provider: 'AWS',
host: 's3.amazonaws.com',
- endpoint: 'h... | Fix the aws bucket region
|
diff --git a/lib/padrino-contrib/auto_locale.rb b/lib/padrino-contrib/auto_locale.rb
index abc1234..def5678 100644
--- a/lib/padrino-contrib/auto_locale.rb
+++ b/lib/padrino-contrib/auto_locale.rb
@@ -24,14 +24,20 @@ def switch_to_lang(lang)
request.path_info.sub(/\/#{I18n.locale}/, "/#{lang}") if op... | Make AutoLocale transparently prepend/strip locale
* AutoLocale should alter request.path_info, so our controllers do not
need to handle locale path parts in their mappings.
* Conversely, the URL helpers should prepend the locale to the path.
* Solution inspired by Sven Fuch's excellent Routing Filter for Rails:
h... |
diff --git a/db/migrate/20170614135807_change_partner_nullables.rb b/db/migrate/20170614135807_change_partner_nullables.rb
index abc1234..def5678 100644
--- a/db/migrate/20170614135807_change_partner_nullables.rb
+++ b/db/migrate/20170614135807_change_partner_nullables.rb
@@ -1,6 +1,12 @@ class ChangePartnerNullables <... | Change migration to make possible to move forward if Partner records exist without names.
|
diff --git a/lib/rubella/weighting/per_value.rb b/lib/rubella/weighting/per_value.rb
index abc1234..def5678 100644
--- a/lib/rubella/weighting/per_value.rb
+++ b/lib/rubella/weighting/per_value.rb
@@ -2,21 +2,49 @@ module Weighting
# Gets an input object and prepares the data for the output.
- #
- # This... | Add source code to Weighting::PerValue
Runs, but I didn't test it so far.
|
diff --git a/lib/source_finder/option_parser.rb b/lib/source_finder/option_parser.rb
index abc1234..def5678 100644
--- a/lib/source_finder/option_parser.rb
+++ b/lib/source_finder/option_parser.rb
@@ -0,0 +1,38 @@+module SourceFinder
+ # Brings in command-line options to configure SourceFinder--usable
+ # with the ru... | Add space for common command-line option parser
|
diff --git a/lib/tag_sidebar/lib/tag_sidebar.rb b/lib/tag_sidebar/lib/tag_sidebar.rb
index abc1234..def5678 100644
--- a/lib/tag_sidebar/lib/tag_sidebar.rb
+++ b/lib/tag_sidebar/lib/tag_sidebar.rb
@@ -5,12 +5,13 @@ setting :maximum_tags, 20
def tags
- @tags ||= Tag.find_all_with_article_counters(maximum_tags.... | Fix call to find_all_with_article_counters in tag sidebar
|
diff --git a/app/jobs/merge_variants.rb b/app/jobs/merge_variants.rb
index abc1234..def5678 100644
--- a/app/jobs/merge_variants.rb
+++ b/app/jobs/merge_variants.rb
@@ -8,6 +8,7 @@ ActiveRecord::Base.transaction do
transfer_evidence_items
remove_suggested_changes
+ transfer_flags
transfer_... | Add handling of flags during variant merging
|
diff --git a/app/mailers/sync_mailer.rb b/app/mailers/sync_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/sync_mailer.rb
+++ b/app/mailers/sync_mailer.rb
@@ -1,5 +1,5 @@ class SyncMailer < ActionMailer::Base
- default from: "DO NOT REPLY <inside-government@digital.cabinet-office.gov.uk>"
+ default from: "D... | Use trade-tariff-alerts@digital.cabinet-office.gov.uk as support email
HMRC will also need to be notified that an error has occured
|
diff --git a/app/models/access_token.rb b/app/models/access_token.rb
index abc1234..def5678 100644
--- a/app/models/access_token.rb
+++ b/app/models/access_token.rb
@@ -26,10 +26,10 @@
def self.build_for(ontology_version)
repository = ontology_version.repository
- AccessToken.new(
- {repository: reposi... | Put `{` on the same line as `(`.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.