diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/core/app/models/spree/stock_location.rb b/core/app/models/spree/stock_location.rb
index abc1234..def5678 100644
--- a/core/app/models/spree/stock_location.rb
+++ b/core/app/models/spree/stock_location.rb
@@ -13,6 +13,8 @@
scope :active, where(active: true)
+ after_create :populate_stock_items
+
... | Create Stock Items when Stock Location is created
|
diff --git a/config/initializers/asset_sync.rb b/config/initializers/asset_sync.rb
index abc1234..def5678 100644
--- a/config/initializers/asset_sync.rb
+++ b/config/initializers/asset_sync.rb
@@ -25,4 +25,14 @@ #
# Fail silently. Useful for environments such as Heroku
# config.fail_silently = true
+
+ config... | Add webpacker compiled scripts to asset sync
|
diff --git a/config/initializers/logstasher.rb b/config/initializers/logstasher.rb
index abc1234..def5678 100644
--- a/config/initializers/logstasher.rb
+++ b/config/initializers/logstasher.rb
@@ -0,0 +1,8 @@+if Object.const_defined?('LogStasher') && LogStasher.enabled
+ LogStasher.add_custom_fields do |fields|
+ #... | Configure custom fields for Logstash
|
diff --git a/gcra.gemspec b/gcra.gemspec
index abc1234..def5678 100644
--- a/gcra.gemspec
+++ b/gcra.gemspec
@@ -5,12 +5,12 @@ Gem::Specification.new do |spec|
spec.name = 'gcra'
spec.version = GCRA::VERSION
- spec.authors = ['Michael Frister']
- spec.email = ['michael.frister@barza... | Fix gemspec homepage path for next release |
diff --git a/lib/bundler/update_stdout.rb b/lib/bundler/update_stdout.rb
index abc1234..def5678 100644
--- a/lib/bundler/update_stdout.rb
+++ b/lib/bundler/update_stdout.rb
@@ -1,5 +1,22 @@ require "bundler/update_stdout/version"
require 'bundler/cli'
+
+# OVERRIDE
+module Bundler
+ class Definition
+ def lock(fil... | Copy and paste from bunlder
|
diff --git a/spec/models/rating/strictness_spec.rb b/spec/models/rating/strictness_spec.rb
index abc1234..def5678 100644
--- a/spec/models/rating/strictness_spec.rb
+++ b/spec/models/rating/strictness_spec.rb
@@ -0,0 +1,41 @@+require 'spec_helper'
+
+RSpec.describe Rating::Strictness do
+
+
+ describe '#adjusted_point... | WIP: Test mathematical edge case where applications count == 1
|
diff --git a/lib/chamber/core_ext/hash.rb b/lib/chamber/core_ext/hash.rb
index abc1234..def5678 100644
--- a/lib/chamber/core_ext/hash.rb
+++ b/lib/chamber/core_ext/hash.rb
@@ -0,0 +1,26 @@+class Hash
+ def symbolize_keys
+ dup.symbolize_keys!
+ end
+
+ def symbolize_keys!
+ keys.each do |key|
+ self[(key... | Add core extensions for a couple Hash methods so we don't have to include an external library
|
diff --git a/lib/opic.rb b/lib/opic.rb
index abc1234..def5678 100644
--- a/lib/opic.rb
+++ b/lib/opic.rb
@@ -6,7 +6,7 @@ include Singleton
@endpoint = "https://opic.osu.edu/"
singleton_class.class_eval do
- attr_accessor :api_key, :endpoint
+ attr_accessor :api_key, :endpoint, :error
end
class << ... | Store the last exception we got
|
diff --git a/lib/serp.rb b/lib/serp.rb
index abc1234..def5678 100644
--- a/lib/serp.rb
+++ b/lib/serp.rb
@@ -5,13 +5,12 @@
module Serp
-
def self.search_engine=(val)
@@search_engine = val
end
def self.search_engine
- @@search_engine || "http://www.google.com"
+ @@search_engine ||= "http://ww... | Set default value for search_engine properly
|
diff --git a/plugins/supervisor/check-supervisor.rb b/plugins/supervisor/check-supervisor.rb
index abc1234..def5678 100644
--- a/plugins/supervisor/check-supervisor.rb
+++ b/plugins/supervisor/check-supervisor.rb
@@ -1,4 +1,17 @@ #!/usr/bin/env ruby
+#
+# Check Supervisor
+# ===
+#
+# Check all supervisor processes are... | Add comments and copyright assignment
|
diff --git a/lib/firering/instantiator.rb b/lib/firering/instantiator.rb
index abc1234..def5678 100644
--- a/lib/firering/instantiator.rb
+++ b/lib/firering/instantiator.rb
@@ -10,8 +10,13 @@ attributes ||= Hash.new
attributes.each do |key, val|
+ setter = "#{key}="
value = ( key.to_s =~ ... | Handle extra API attributes with a warning.
Rather than die with a NoMethodError, just #warn about trying to set a non-existent attribute instead.
|
diff --git a/lib/fluent/plugin/out_dbi.rb b/lib/fluent/plugin/out_dbi.rb
index abc1234..def5678 100644
--- a/lib/fluent/plugin/out_dbi.rb
+++ b/lib/fluent/plugin/out_dbi.rb
@@ -4,7 +4,7 @@ Plugin.register_output('dbi', self)
config_param :dsn, :string
- config_param :keys, :string
+ config_param :keys, :array
... | Use :array type for keys parameter
|
diff --git a/lib/yarr.rb b/lib/yarr.rb
index abc1234..def5678 100644
--- a/lib/yarr.rb
+++ b/lib/yarr.rb
@@ -1,4 +1,5 @@ require "io/console"
+require "readline"
class YARR
def call
@@ -6,8 +7,7 @@ number = 0
loop do
number += 1
- prompt(number)
- expression = gets.chomp
+ expressio... | Use Readline for history and autocompletation
|
diff --git a/lib/models/team/team_bnet.rb b/lib/models/team/team_bnet.rb
index abc1234..def5678 100644
--- a/lib/models/team/team_bnet.rb
+++ b/lib/models/team/team_bnet.rb
@@ -7,22 +7,12 @@ RBattlenet.set_region(region: region, locale: "en_GB")
$errors = { :tracking => 0, :role => 0 }
if characters... | Revert "Workaround to attempt and fix empty responses."
This reverts commit 83366407f379f5ac1694d52422ceeeda54dd2c37.
|
diff --git a/lib/plenty_client/comment.rb b/lib/plenty_client/comment.rb
index abc1234..def5678 100644
--- a/lib/plenty_client/comment.rb
+++ b/lib/plenty_client/comment.rb
@@ -22,11 +22,11 @@ end
def create(body = {})
- post(CREATE_CATEGORY, body)
+ post(CREATE_COMMENT, body)
end
... | Fix incorrect endpoint in Comment
|
diff --git a/lib/rubocop/cop/lint/loop.rb b/lib/rubocop/cop/lint/loop.rb
index abc1234..def5678 100644
--- a/lib/rubocop/cop/lint/loop.rb
+++ b/lib/rubocop/cop/lint/loop.rb
@@ -8,28 +8,20 @@ MSG = 'Use Kernel#loop with break rather than ' +
'begin/end/until(or while).'
- def on_while(nod... | Migrate Loop cop to Parser 2.0.0.beta8
Now Parser generates `while_post` and `until_post` nodes for
`begin...end while/until` source.
So we just need to catch them.
https://github.com/whitequark/parser/commit/679b526
|
diff --git a/lib/stockboy/translations.rb b/lib/stockboy/translations.rb
index abc1234..def5678 100644
--- a/lib/stockboy/translations.rb
+++ b/lib/stockboy/translations.rb
@@ -4,35 +4,35 @@ module Stockboy
module Translations
- @translators ||= {}
+ @registry ||= {}
+ def self.register(name, callable)
... | Clean up code out of class << self
Make translations more in line with other Registry modules.
|
diff --git a/app/controllers/api/agendas_controller.rb b/app/controllers/api/agendas_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/agendas_controller.rb
+++ b/app/controllers/api/agendas_controller.rb
@@ -1,14 +1,10 @@ class Api::AgendasController < ApiController
def index
committee_id = pa... | Change API Agendas Query To Use Multiple Criteria
|
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -2,6 +2,8 @@
class ApplicationController < ActionController::Base
protect_from_forgery
... | Move helpre_method to beginning of file
|
diff --git a/app/helpers/config_helper.rb b/app/helpers/config_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/config_helper.rb
+++ b/app/helpers/config_helper.rb
@@ -19,7 +19,7 @@ end
def eoy_thermometer_config
- start_date = Date.new(2019, 11, 0o1)
+ start_date = Date.new(2019, 11, 29)
end... | Use EOY dates for the eoy thermometer data
|
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/events_helper.rb
+++ b/app/helpers/events_helper.rb
@@ -10,4 +10,8 @@ def badge_for_event(event, user)
'badge-info' if event.user_opted_in?(user)
end
+
+ def format_description(description... | Add helper method for formatting URLs as links
|
diff --git a/app/helpers/layout_helper.rb b/app/helpers/layout_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/layout_helper.rb
+++ b/app/helpers/layout_helper.rb
@@ -25,7 +25,7 @@ when :success
'alert-success'
when :error
- 'alert-error'
+ 'alert-danger'
when :notice
'al... | Fix class for error alert
|
diff --git a/app/controllers/ember_tests_controller.rb b/app/controllers/ember_tests_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/ember_tests_controller.rb
+++ b/app/controllers/ember_tests_controller.rb
@@ -6,7 +6,7 @@ private
def test_html_with_corrected_asset_urls
- test_html.gsub(%r{a... | Use Rails' configured asset prefix in tests
Don't assume assets are served from `/assets`
|
diff --git a/app/models/topic_category.rb b/app/models/topic_category.rb
index abc1234..def5678 100644
--- a/app/models/topic_category.rb
+++ b/app/models/topic_category.rb
@@ -20,9 +20,12 @@ t = topic.name.downcase.gsub(/\W/, "")
options.each do |key, value|
- values = [key.downcase.gsub(/\W/, ""... | Allow options to be array of strings
|
diff --git a/app/models/spree/shipping/rate_builder.rb b/app/models/spree/shipping/rate_builder.rb
index abc1234..def5678 100644
--- a/app/models/spree/shipping/rate_builder.rb
+++ b/app/models/spree/shipping/rate_builder.rb
@@ -19,7 +19,7 @@
private
- attr_reader :package, :shipping_method, :ship_time, :cal... | Fix rate builder to handle delivery window arrays with only one element
|
diff --git a/spec/_plugins/sitemap_generator_spec.rb b/spec/_plugins/sitemap_generator_spec.rb
index abc1234..def5678 100644
--- a/spec/_plugins/sitemap_generator_spec.rb
+++ b/spec/_plugins/sitemap_generator_spec.rb
@@ -28,6 +28,15 @@ end
end
+ it 'creates a sitemap file with no private page url' do
+ beg... | Add test for privpub page in site map. |
diff --git a/spec/factories/ext_management_system.rb b/spec/factories/ext_management_system.rb
index abc1234..def5678 100644
--- a/spec/factories/ext_management_system.rb
+++ b/spec/factories/ext_management_system.rb
@@ -12,8 +12,8 @@ zone
end
after(:create) do |ems|
- client_id = Rails.applicatio... | Use symbols instead of strings for accessing secrets.
|
diff --git a/spec/services/markdown_renderer_spec.rb b/spec/services/markdown_renderer_spec.rb
index abc1234..def5678 100644
--- a/spec/services/markdown_renderer_spec.rb
+++ b/spec/services/markdown_renderer_spec.rb
@@ -0,0 +1,13 @@+require 'rails_helper'
+
+describe MarkdownRenderer do
+ it 'renders a paragraph' do
... | Add specs for markdown renderer
|
diff --git a/lib/tent-validator/validators/without_authentication/app_validator.rb b/lib/tent-validator/validators/without_authentication/app_validator.rb
index abc1234..def5678 100644
--- a/lib/tent-validator/validators/without_authentication/app_validator.rb
+++ b/lib/tent-validator/validators/without_authentication/... | Update app registration post validation: add notification_post_types to app content
|
diff --git a/sciencemag_latest_news.gemspec b/sciencemag_latest_news.gemspec
index abc1234..def5678 100644
--- a/sciencemag_latest_news.gemspec
+++ b/sciencemag_latest_news.gemspec
@@ -6,8 +6,7 @@ Gem::Specification.new do |spec|
spec.name = "sciencemag_latest_news"
spec.version = SciencemagLatestN... | Update author name and remove email
|
diff --git a/wateringServer/spec/routing/sessions_routing_spec.rb b/wateringServer/spec/routing/sessions_routing_spec.rb
index abc1234..def5678 100644
--- a/wateringServer/spec/routing/sessions_routing_spec.rb
+++ b/wateringServer/spec/routing/sessions_routing_spec.rb
@@ -0,0 +1,15 @@+require 'rails_helper'
+
+describe... | Add tests for sessions routing
|
diff --git a/app/controllers/spree/checkout_controller_decorator.rb b/app/controllers/spree/checkout_controller_decorator.rb
index abc1234..def5678 100644
--- a/app/controllers/spree/checkout_controller_decorator.rb
+++ b/app/controllers/spree/checkout_controller_decorator.rb
@@ -1,6 +1,8 @@ Spree::CheckoutController.c... | Add permitted params for bank transfer
|
diff --git a/test/helper.rb b/test/helper.rb
index abc1234..def5678 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -6,6 +6,7 @@ require 'minitest/autorun'
require 'usesthis'
require 'json'
+require 'yaml'
def test_site
@test_site ||= UsesThis::Site.new(test_configuration)
@@ -27,15 +28,22 @@ end
def tes... | Split read_fixture into read_json_fixture and read_yaml_fixture.
|
diff --git a/test/helper.rb b/test/helper.rb
index abc1234..def5678 100644
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -14,8 +14,8 @@
def test_configuration
@config ||= Dimples::Configuration.new(
- 'source_path' => File.join(__dir__, 'build'),
- 'destination_path' => File.join(__dir__, 'site'),
+ 'sourc... | Update the source and destination paths.
|
diff --git a/app/controllers/stories_controller.rb b/app/controllers/stories_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/stories_controller.rb
+++ b/app/controllers/stories_controller.rb
@@ -30,10 +30,15 @@ end
def update
- if @story.update_attributes story_params
- redirect_to stor... | Include ajax request for update
|
diff --git a/features/step_definitions/view_steps.rb b/features/step_definitions/view_steps.rb
index abc1234..def5678 100644
--- a/features/step_definitions/view_steps.rb
+++ b/features/step_definitions/view_steps.rb
@@ -6,6 +6,7 @@ end
def check_details(details_selector, title, description, table)
+ page.wait_unti... | Add some waiting for selector to be found to get rid off random fails |
diff --git a/app/models/pull_request_downloader.rb b/app/models/pull_request_downloader.rb
index abc1234..def5678 100644
--- a/app/models/pull_request_downloader.rb
+++ b/app/models/pull_request_downloader.rb
@@ -16,7 +16,7 @@
def download_pull_requests
begin
- events = Octokit.user_events(login)
+ e... | Revert "Use Octokit client for now"
This reverts commit af2cc66975bc81594484d31089d392bc52b84763.
|
diff --git a/app/serializers/v3/word_serializer.rb b/app/serializers/v3/word_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/v3/word_serializer.rb
+++ b/app/serializers/v3/word_serializer.rb
@@ -19,9 +19,19 @@ #
class V3::WordSerializer < V3::ApplicationSerializer
- attributes :id, :position, :tex... | Add Page Number to Word Serializer
|
diff --git a/app/views/clients/index.json.jbuilder b/app/views/clients/index.json.jbuilder
index abc1234..def5678 100644
--- a/app/views/clients/index.json.jbuilder
+++ b/app/views/clients/index.json.jbuilder
@@ -1,4 +1,4 @@ json.array!(@clients) do |client|
- json.extract! client, :id, :first_name, :last_name, :phone... | Add clients dropdown on Add Sale
|
diff --git a/Formula/kdepimlibs.rb b/Formula/kdepimlibs.rb
index abc1234..def5678 100644
--- a/Formula/kdepimlibs.rb
+++ b/Formula/kdepimlibs.rb
@@ -0,0 +1,18 @@+require 'formula'
+
+class Kdepimlibs <Formula
+ url 'ftp://ftp.kde.org/pub/kde/stable/4.4.0/src/kdepimlibs-4.4.0.tar.bz2'
+ homepage 'http://www.kde.org/'
... | Add KDE PIM libraries version 4.4.0.
|
diff --git a/pkg/brew/watchexec.rb b/pkg/brew/watchexec.rb
index abc1234..def5678 100644
--- a/pkg/brew/watchexec.rb
+++ b/pkg/brew/watchexec.rb
@@ -0,0 +1,17 @@+class Watchexec < Formula
+ desc "Execute commands when watched files change"
+ homepage "https://github.com/mattgreen/watchexec"
+ url "https://github.com... | Add Homebrew formula to this repo
|
diff --git a/examples/create_authorization.rb b/examples/create_authorization.rb
index abc1234..def5678 100644
--- a/examples/create_authorization.rb
+++ b/examples/create_authorization.rb
@@ -5,7 +5,7 @@
card = client.cards.post(org,
::Io::Flow::V0::Models::CardForm.new(
- ... | Update example w/ a test auth
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -2,7 +2,7 @@ maintainer 'Chef Software, Inc.'
maintainer_email 'cookbooks@chef.io'
license 'Apache 2.0'
-description 'Installs/Configures tomcat'
+description 'Installs and configures A... | Improve description and use array for supports
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -2,9 +2,9 @@ maintainer 'Continuuity, Inc.'
maintainer_email 'ops@continuuity.com'
license 'Apache 2.0'
-description 'Installs/Configures hadoop'
+description 'Installs/Configures Hadoo... | Update description and version bump to 1.0.0 for release
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -18,5 +18,5 @@ depends 'apt', '>= 2.4'
depends 'build-essential'
depends 'chef-sugar'
-depends 'yum', '>= 3.0', '< 4.1'
+depends 'yum', '>= 3.0'
depends 'yum-epel'
| Remove upper bound on yum cookbook dependency
|
diff --git a/test/assert_raise.rb b/test/assert_raise.rb
index abc1234..def5678 100644
--- a/test/assert_raise.rb
+++ b/test/assert_raise.rb
@@ -20,3 +20,8 @@ assert_equal "error", exception.message
end
+test "catches a custom exception" do
+ assert_raise do
+ raise Class.new(Exception)
+ end
+end
| Add test for custom exception
|
diff --git a/wobbly.gemspec b/wobbly.gemspec
index abc1234..def5678 100644
--- a/wobbly.gemspec
+++ b/wobbly.gemspec
@@ -8,9 +8,9 @@ spec.version = Wobbly::VERSION
spec.authors = ["Eric Roberts"]
spec.email = ["ericroberts@gmail.com"]
- spec.summary = %q{TODO: Write a short summary. R... | Add short and long description. |
diff --git a/db/migrate/20131031175232_default_values_on_geocodings.rb b/db/migrate/20131031175232_default_values_on_geocodings.rb
index abc1234..def5678 100644
--- a/db/migrate/20131031175232_default_values_on_geocodings.rb
+++ b/db/migrate/20131031175232_default_values_on_geocodings.rb
@@ -0,0 +1,15 @@+Sequel.migrati... | Add default values on geocodings table
|
diff --git a/db/migrate/20140627185148_add_timestamps_to_gift_cards.rb b/db/migrate/20140627185148_add_timestamps_to_gift_cards.rb
index abc1234..def5678 100644
--- a/db/migrate/20140627185148_add_timestamps_to_gift_cards.rb
+++ b/db/migrate/20140627185148_add_timestamps_to_gift_cards.rb
@@ -0,0 +1,6 @@+class AddTimest... | Add timestamps to virtual gift cards
|
diff --git a/spec/api_classes/track_spec.rb b/spec/api_classes/track_spec.rb
index abc1234..def5678 100644
--- a/spec/api_classes/track_spec.rb
+++ b/spec/api_classes/track_spec.rb
@@ -2,10 +2,16 @@
describe LastFM::Track do
it "should define unrestricted methods" do
- LastFM::Track.unrestricted_methods.should ... | Check method definitions for Track
|
diff --git a/spec/rails/rack/tracer_spec.rb b/spec/rails/rack/tracer_spec.rb
index abc1234..def5678 100644
--- a/spec/rails/rack/tracer_spec.rb
+++ b/spec/rails/rack/tracer_spec.rb
@@ -17,7 +17,8 @@ it 'leaves the operation_name as it was' do
respond_with { response }
- expect(tracer.finished_spans.fi... | Use tracing matchers in rack module tests
|
diff --git a/spec/redditkit/comment_spec.rb b/spec/redditkit/comment_spec.rb
index abc1234..def5678 100644
--- a/spec/redditkit/comment_spec.rb
+++ b/spec/redditkit/comment_spec.rb
@@ -2,12 +2,12 @@
describe RedditKit::Comment, :vcr do
- it "should return replies" do
- comments = RedditKit.comments '1n002d'
- ... | Comment out the replies test while working on a fix.
|
diff --git a/lib/dot_grid/generator.rb b/lib/dot_grid/generator.rb
index abc1234..def5678 100644
--- a/lib/dot_grid/generator.rb
+++ b/lib/dot_grid/generator.rb
@@ -14,12 +14,16 @@
def initialize(params)
@file_name = params[:file_name] || "dotgrid.pdf"
- @page_size = params[:page_size] || "LETTER"
- ... | Add Ability to Specify Page Size
Added the ability to parse things like 13.3x5.4in in the page size.
|
diff --git a/lib/front_matter_ninja.rb b/lib/front_matter_ninja.rb
index abc1234..def5678 100644
--- a/lib/front_matter_ninja.rb
+++ b/lib/front_matter_ninja.rb
@@ -5,17 +5,19 @@ class FrontMatterNinja
attr_accessor :data, :content
+ DOCUMENT_MATCHER = /\A(---\s*\n.*?\n?)^((---|\.\.\.)\s*$\n?)(.*)/m
+ YAML_START... | Move regular expressions to constants
|
diff --git a/config/initializers/abstract_adapter.rb b/config/initializers/abstract_adapter.rb
index abc1234..def5678 100644
--- a/config/initializers/abstract_adapter.rb
+++ b/config/initializers/abstract_adapter.rb
@@ -1,4 +1,4 @@-if defined?(ActiveRecord::ConnectionAdaptors::AbstractAdaptor)
+if defined?(ActiveRecor... | Fix typo that stopped monkey patch working
|
diff --git a/spec/models/api_sampler/sample_spec.rb b/spec/models/api_sampler/sample_spec.rb
index abc1234..def5678 100644
--- a/spec/models/api_sampler/sample_spec.rb
+++ b/spec/models/api_sampler/sample_spec.rb
@@ -5,6 +5,7 @@ RSpec.describe Sample, type: :model do
subject { FactoryGirl.build(:sample) }
+ ... | Add the missing association validation to ApiSampler::Sample
|
diff --git a/thrift-rack-middleware.gemspec b/thrift-rack-middleware.gemspec
index abc1234..def5678 100644
--- a/thrift-rack-middleware.gemspec
+++ b/thrift-rack-middleware.gemspec
@@ -20,6 +20,7 @@
# specify any dependencies here; for example:
s.add_development_dependency "rspec", "~> 2.14.0"
+ s.add_developme... | Add rake as development dependency |
diff --git a/app/controllers/api/stateless/stateless_controller.rb b/app/controllers/api/stateless/stateless_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/api/stateless/stateless_controller.rb
+++ b/app/controllers/api/stateless/stateless_controller.rb
@@ -12,13 +12,13 @@ protected
de... | Rename authenticate_user_ -> authenticate_member_ (semantics)
|
diff --git a/spec/unit/mutant/reporter/null_spec.rb b/spec/unit/mutant/reporter/null_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/mutant/reporter/null_spec.rb
+++ b/spec/unit/mutant/reporter/null_spec.rb
@@ -0,0 +1,11 @@+require 'spec_helper'
+
+describe Mutant::Reporter::Null do
+ let(:object) { described_cl... | Add specs for null reporter
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -3,7 +3,7 @@ maintainer_email "k@treasure-data.com"
license "Apache 2.0"
description "Installs/Configures td-agent"
-long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
+lon... | Use `README.md` as the `long_description` of the cookbook
|
diff --git a/metadata.rb b/metadata.rb
index abc1234..def5678 100644
--- a/metadata.rb
+++ b/metadata.rb
@@ -19,3 +19,4 @@ depends 'bluepill', '~> 2.3'
depends 'accumulator'
depends 'ark'
+depends 'golang'
| Add dependency on golang for the ::source recipe. |
diff --git a/lib/vagrant-parallels/guest_cap/linux/mount_parallels_shared_folder.rb b/lib/vagrant-parallels/guest_cap/linux/mount_parallels_shared_folder.rb
index abc1234..def5678 100644
--- a/lib/vagrant-parallels/guest_cap/linux/mount_parallels_shared_folder.rb
+++ b/lib/vagrant-parallels/guest_cap/linux/mount_parall... | Use 'shell_expand_guest_path' guest capability to expand "~/" in shared folder mounts
This was copied from the official NFS mount capability
|
diff --git a/app/models/concerns/gobierto_common/has_vocabulary.rb b/app/models/concerns/gobierto_common/has_vocabulary.rb
index abc1234..def5678 100644
--- a/app/models/concerns/gobierto_common/has_vocabulary.rb
+++ b/app/models/concerns/gobierto_common/has_vocabulary.rb
@@ -26,7 +26,7 @@
define_singleton_me... | Return no vocabulary if configuration is blank
|
diff --git a/backend/app/helpers/spree/admin/adjustments_helper.rb b/backend/app/helpers/spree/admin/adjustments_helper.rb
index abc1234..def5678 100644
--- a/backend/app/helpers/spree/admin/adjustments_helper.rb
+++ b/backend/app/helpers/spree/admin/adjustments_helper.rb
@@ -24,7 +24,7 @@ parts = []
p... | Update helper to use display_amount
|
diff --git a/ruby/referral-code.rb b/ruby/referral-code.rb
index abc1234..def5678 100644
--- a/ruby/referral-code.rb
+++ b/ruby/referral-code.rb
@@ -0,0 +1,24 @@+# Testing referral code in chargify_api_ares gem
+
+gem 'chargify_api_ares', '=1.3.2'
+require 'chargify_api_ares'
+
+Chargify.configure do |c|
+ c.subdomain... | Add example of creating a subscription with a referral code
|
diff --git a/lib/pdf_generator/prince_pdf_generator.rb b/lib/pdf_generator/prince_pdf_generator.rb
index abc1234..def5678 100644
--- a/lib/pdf_generator/prince_pdf_generator.rb
+++ b/lib/pdf_generator/prince_pdf_generator.rb
@@ -2,7 +2,7 @@ include Vmdb::Logging
def self.executable
return @executable if defin... | Send 'which prince' failures to /dev/null.
|
diff --git a/lib/sanitize_email/custom_environments.rb b/lib/sanitize_email/custom_environments.rb
index abc1234..def5678 100644
--- a/lib/sanitize_email/custom_environments.rb
+++ b/lib/sanitize_email/custom_environments.rb
@@ -16,10 +16,10 @@
module ClassMethods
def consider_local?
- local_environ... | Use the oldschool RAILS_ENV constant to get the current environment, if the newfangled Rails.env isn't available.
|
diff --git a/lib/airbrake/rails.rb b/lib/airbrake/rails.rb
index abc1234..def5678 100644
--- a/lib/airbrake/rails.rb
+++ b/lib/airbrake/rails.rb
@@ -6,16 +6,14 @@ # Rails namespace holds all Rails-related functionality.
module Rails
def self.logger
+ # Rails.logger is not set in some Rake tasks such as
+... | Fix crash when airbrake:deploy used with RAILS_LOG_TO_STDOUT
|
diff --git a/lib/chaindrive/api.rb b/lib/chaindrive/api.rb
index abc1234..def5678 100644
--- a/lib/chaindrive/api.rb
+++ b/lib/chaindrive/api.rb
@@ -17,7 +17,7 @@ end
get ':id' do
- Gear.where(:name => params[:id], :status => true)
+ Gear.where(:name => params[:id], :status => true).order(:... | Order by the created_at field and limit to one.
This will always get the latest version.
|
diff --git a/core/spec/integration/integration_spec.rb b/core/spec/integration/integration_spec.rb
index abc1234..def5678 100644
--- a/core/spec/integration/integration_spec.rb
+++ b/core/spec/integration/integration_spec.rb
@@ -17,7 +17,7 @@
click_link "Add new"
fill_in "channel_title", with: channel_title
... | Test with the new confirm button
|
diff --git a/db/migrate/20190206235926_change_site_id_to_bigint.rb b/db/migrate/20190206235926_change_site_id_to_bigint.rb
index abc1234..def5678 100644
--- a/db/migrate/20190206235926_change_site_id_to_bigint.rb
+++ b/db/migrate/20190206235926_change_site_id_to_bigint.rb
@@ -0,0 +1,13 @@+class ChangeSiteIdToBigint < A... | Update site_id primary and foreign keys to bigint
|
diff --git a/web.rb b/web.rb
index abc1234..def5678 100644
--- a/web.rb
+++ b/web.rb
@@ -30,6 +30,8 @@ MU_CORE = RDF::Vocabulary.new(MU.to_uri.to_s + 'core/')
MU_EXT = RDF::Vocabulary.new(MU.to_uri.to_s + 'ext/')
+SERVICE_RESOURCE_BASE = 'http://mu.semte.ch/services/'
+
###
# Helpers
###
| Add service resource base URI
|
diff --git a/db/migrate/20130926133717_add_batch_number_to_push_sent_emails.rb b/db/migrate/20130926133717_add_batch_number_to_push_sent_emails.rb
index abc1234..def5678 100644
--- a/db/migrate/20130926133717_add_batch_number_to_push_sent_emails.rb
+++ b/db/migrate/20130926133717_add_batch_number_to_push_sent_emails.rb... | Correct class name of migration
|
diff --git a/lib/google_weather.rb b/lib/google_weather.rb
index abc1234..def5678 100644
--- a/lib/google_weather.rb
+++ b/lib/google_weather.rb
@@ -12,7 +12,7 @@ end
def weather
- @weather ||= self.class.get("/ig/api", :query => {:weather => @zip}, :format => :xml)['xml_api_reply']['weather']
+ @weather... | Use app locale to load weather, specify encoding
|
diff --git a/app/controllers/finders_controller.rb b/app/controllers/finders_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/finders_controller.rb
+++ b/app/controllers/finders_controller.rb
@@ -49,7 +49,6 @@ def finders_excluded_from_robots
[
'aaib-reports',
- 'international-develo... | Allow DFID finder to be crawled by robots
|
diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/welcome_controller.rb
+++ b/app/controllers/welcome_controller.rb
@@ -1,6 +1,6 @@ class WelcomeController < ApplicationController
def index
- @things = Thing.all.order(:na... | Fix n+1 query issue on home page
|
diff --git a/app/models/spree/product_decorator.rb b/app/models/spree/product_decorator.rb
index abc1234..def5678 100644
--- a/app/models/spree/product_decorator.rb
+++ b/app/models/spree/product_decorator.rb
@@ -1,7 +1,7 @@ Spree::Product.class_eval do
def option_values
- @_option_values ||= Spree::OptionValue... | Order options by variant position
|
diff --git a/lib/mailbox_reader.rb b/lib/mailbox_reader.rb
index abc1234..def5678 100644
--- a/lib/mailbox_reader.rb
+++ b/lib/mailbox_reader.rb
@@ -0,0 +1,15 @@+class MailboxReader
+ def self.run
+ mailboxes_config.each do |name, config|
+ retriever = Mail::IMAP.new(config)
+ retriever.find_and_delete(wh... | Add MailboxReader that fetches IMAP messages and saves them to InboundMail.
Gets hosts from config/mailboxes.yml.
|
diff --git a/lib/monkey/patcher.rb b/lib/monkey/patcher.rb
index abc1234..def5678 100644
--- a/lib/monkey/patcher.rb
+++ b/lib/monkey/patcher.rb
@@ -23,6 +23,10 @@
helper :release_logs
end
+
+ ApplicationHelper.class_eval do
+ include ReleaseLogsHelper
+ end
end
end
end
| Patch application helper to include our helper. |
diff --git a/lib/puppet/type/s3.rb b/lib/puppet/type/s3.rb
index abc1234..def5678 100644
--- a/lib/puppet/type/s3.rb
+++ b/lib/puppet/type/s3.rb
@@ -1,6 +1,6 @@ Puppet::Type.newtype(:s3) do
- @@doc = %q{Get files from S3
+ @doc = %q{Get files from S3
Example:
| Remove doubled at sign for S3 doc block
|
diff --git a/lib/spreedly/model.rb b/lib/spreedly/model.rb
index abc1234..def5678 100644
--- a/lib/spreedly/model.rb
+++ b/lib/spreedly/model.rb
@@ -8,7 +8,10 @@ field :token
field :created_at, :updated_at, type: :date_time
+ attr_reader :xml_doc
+
def initialize(xml_doc)
+ @xml_doc = xml_doc
... | Add xml_doc accessor on base Model to expose access to the raw XML, because sometimes that's handy to see :)
|
diff --git a/lib/typedeploy/kit.rb b/lib/typedeploy/kit.rb
index abc1234..def5678 100644
--- a/lib/typedeploy/kit.rb
+++ b/lib/typedeploy/kit.rb
@@ -6,14 +6,15 @@ def initialize(id, data)
@kid = id
@data = data
+ @api = Api.new
end
def publish
- Api.publish(@kid)
+ @api.publ... | Make calls on Api instance, not class. |
diff --git a/condensation.gemspec b/condensation.gemspec
index abc1234..def5678 100644
--- a/condensation.gemspec
+++ b/condensation.gemspec
@@ -23,6 +23,6 @@ spec.add_development_dependency "timecop"
spec.add_dependency "liquid", [">= 2.0", "<= 4.0"]
- spec.add_dependency "tzinfo", "~> 0"
+ spec.add_dependenc... | Update tzinfo dependency to enable for rails 4.1
|
diff --git a/spec/controllers/main_controller_spec.rb b/spec/controllers/main_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/main_controller_spec.rb
+++ b/spec/controllers/main_controller_spec.rb
@@ -0,0 +1,33 @@+require 'spec_helper'
+
+describe TimecopConsole::MainController do
+ before(:eac... | Add some basic controllers specs for MainController actions
|
diff --git a/spec/integration/building_module_spec.rb b/spec/integration/building_module_spec.rb
index abc1234..def5678 100644
--- a/spec/integration/building_module_spec.rb
+++ b/spec/integration/building_module_spec.rb
@@ -33,13 +33,15 @@
specify 'including a custom module with coercion disabled' do
user = E... | Update building module spec style |
diff --git a/app/serializers/project_serializer.rb b/app/serializers/project_serializer.rb
index abc1234..def5678 100644
--- a/app/serializers/project_serializer.rb
+++ b/app/serializers/project_serializer.rb
@@ -15,22 +15,8 @@ def build_commands
<<-TEXT
bundle install
- mkdir -p config
- echo '... | Remove not needed database.yml from serializer
We can now user the new model to create this file
|
diff --git a/test.rb b/test.rb
index abc1234..def5678 100644
--- a/test.rb
+++ b/test.rb
@@ -13,7 +13,7 @@
puts "status: #{status}"
-status = conn.send(0x0000112233440001, token, "dhello, from ruby land")
+status = conn.send(0x0000112233440001, token, "hello, from ruby land")
puts "status: #{status}"
| Remove now-unneeded 'd' prefix from sent message
|
diff --git a/QRSwift.podspec b/QRSwift.podspec
index abc1234..def5678 100644
--- a/QRSwift.podspec
+++ b/QRSwift.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "QRSwift"
- s.version = "0.4.0"
+ s.version = "0.4.1"
s.summary = "Swift framework for generating QR codes"
s.descrip... | Update podspec version to 0.4.1
|
diff --git a/ext/info_plist.rb b/ext/info_plist.rb
index abc1234..def5678 100644
--- a/ext/info_plist.rb
+++ b/ext/info_plist.rb
@@ -0,0 +1,18 @@+# encoding: UTF-8
+require 'CFPropertyList'
+
+class InfoPList
+ attr_accessor :data
+ attr_reader :file
+
+ def initialize(bundle_path)
+ @file = File.join(bundle_p... | Build system: factor out Info.plist manipulation
Allows for more flexible, if slightly more verbose, Info.plist
mainpulation.
|
diff --git a/test/shipping_materials/group_test.rb b/test/shipping_materials/group_test.rb
index abc1234..def5678 100644
--- a/test/shipping_materials/group_test.rb
+++ b/test/shipping_materials/group_test.rb
@@ -26,4 +26,19 @@ assert_equal "3,Derek,Hello\n", @group.labels.first.to_csv,
"The Group#label meth... | Add Group sort DSL test
|
diff --git a/init.rb b/init.rb
index abc1234..def5678 100644
--- a/init.rb
+++ b/init.rb
@@ -4,5 +4,5 @@ description 'Adds the pwauth authentication to Redmine. Requires `pwauth` to be installed.'
version '1.0'
url 'http://github.com/s3rvac/redmine_pwauth'
- author_url 'http://www.linkedin.com/in/petrzemek'
+ ... | Replace the original author_url to my new website.
|
diff --git a/test/worksheet/test_cond_format_21.rb b/test/worksheet/test_cond_format_21.rb
index abc1234..def5678 100644
--- a/test/worksheet/test_cond_format_21.rb
+++ b/test/worksheet/test_cond_format_21.rb
@@ -0,0 +1,90 @@+# -*- coding: utf-8 -*-
+require 'helper'
+require 'write_xlsx'
+require 'stringio'
+
+class T... | Add unit test for "stop if true" conditional formatting feature.
|
diff --git a/mixlib-versioning.gemspec b/mixlib-versioning.gemspec
index abc1234..def5678 100644
--- a/mixlib-versioning.gemspec
+++ b/mixlib-versioning.gemspec
@@ -15,4 +15,7 @@
spec.files = %w{LICENSE} + Dir.glob("lib/**/*")
spec.require_paths = ["lib"]
+
+ # we support EOL ruby because we use this in... | Support Ruby 2+ in the gemspec
This serves mostly as a reminder that this is a dep on
chef_client_updater and needs to support ancient Ruby releases until the
time we decide to kill that upgrade path off.
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/lib/poke.rb b/lib/poke.rb
index abc1234..def5678 100644
--- a/lib/poke.rb
+++ b/lib/poke.rb
@@ -1,11 +1,11 @@-require_relative "poke/modules"
+require_relative 'poke/modules'
require_relative 'poke/read_map'
-require_relative "poke/window"
-require_relative "poke/controls"
-require_relative "poke/map"
-re... | Change reqs to using single-quotes
|
diff --git a/html-pipeline-onebox.gemspec b/html-pipeline-onebox.gemspec
index abc1234..def5678 100644
--- a/html-pipeline-onebox.gemspec
+++ b/html-pipeline-onebox.gemspec
@@ -21,7 +21,7 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
- spec.add_dependen... | Change onebox gem version to less specific
|
diff --git a/ext/mkrf_conf.rb b/ext/mkrf_conf.rb
index abc1234..def5678 100644
--- a/ext/mkrf_conf.rb
+++ b/ext/mkrf_conf.rb
@@ -13,8 +13,8 @@ # I don't *think* you can use Calatrava.platform == :mac here as it seems
# RubyGems builds Ruby extensions without the dependencies declared in the gemspec.
if RUBY_PLA... | Update cocoapods and xcodeproj gem versions
|
diff --git a/filmbuff.gemspec b/filmbuff.gemspec
index abc1234..def5678 100644
--- a/filmbuff.gemspec
+++ b/filmbuff.gemspec
@@ -18,6 +18,8 @@ s.add_dependency('faraday_middleware', '~> 0.8')
s.add_development_dependency('minitest', '>= 1.4.0')
+ s.add_development_dependency('yard')
+ s.add_development_depende... | Add dev dependencies for documentation tools (YARD)
|
diff --git a/lib/adiwg/mdtranslator/readers/fgdc/fgdc_reader.rb b/lib/adiwg/mdtranslator/readers/fgdc/fgdc_reader.rb
index abc1234..def5678 100644
--- a/lib/adiwg/mdtranslator/readers/fgdc/fgdc_reader.rb
+++ b/lib/adiwg/mdtranslator/readers/fgdc/fgdc_reader.rb
@@ -20,7 +20,7 @@
# receive XML file
... | Format fgdc reader error messages
|
diff --git a/lib/scanny/checks/shell_expanding_methods_check.rb b/lib/scanny/checks/shell_expanding_methods_check.rb
index abc1234..def5678 100644
--- a/lib/scanny/checks/shell_expanding_methods_check.rb
+++ b/lib/scanny/checks/shell_expanding_methods_check.rb
@@ -7,22 +7,20 @@ def pattern
[
p... | Check only method calls with one argument
|
diff --git a/lib/seek/research_objects/acts_as_snapshottable.rb b/lib/seek/research_objects/acts_as_snapshottable.rb
index abc1234..def5678 100644
--- a/lib/seek/research_objects/acts_as_snapshottable.rb
+++ b/lib/seek/research_objects/acts_as_snapshottable.rb
@@ -1,6 +1,6 @@ module Seek #:nodoc:
module ResearchObje... | Make module name match filename
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.