diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/app/admin/photos.rb b/app/admin/photos.rb
index abc1234..def5678 100644
--- a/app/admin/photos.rb
+++ b/app/admin/photos.rb
@@ -1,6 +1,11 @@ ActiveAdmin.register Photo do
belongs_to :poi, :optional => true
belongs_to :user, :optional => true
+
+ filter :user_id, :as => :numeric
+ filter :poi_id, :... | Fix photo list in admin backend.
|
diff --git a/app/controllers/storytime/pages_controller.rb b/app/controllers/storytime/pages_controller.rb
index abc1234..def5678 100644
--- a/app/controllers/storytime/pages_controller.rb
+++ b/app/controllers/storytime/pages_controller.rb
@@ -8,7 +8,7 @@
@page = Page.published.friendly.find(params[:id])... | Allow a page to be at the root url
|
diff --git a/lib/lazily/threading.rb b/lib/lazily/threading.rb
index abc1234..def5678 100644
--- a/lib/lazily/threading.rb
+++ b/lib/lazily/threading.rb
@@ -6,12 +6,11 @@
def in_threads(max_threads, &block)
collect do |item|
- Thread.new(item, &block)
+ Thread.new { block.call(item) }
... | Revert "Thread.new takes arguments. That's handy."
This reverts commit e7780633ac2473d3265903c4f680171b17217ee4.
It didn't work so well in Ruby 1.8.7.
|
diff --git a/spec/support/install_organisation_resolver.rb b/spec/support/install_organisation_resolver.rb
index abc1234..def5678 100644
--- a/spec/support/install_organisation_resolver.rb
+++ b/spec/support/install_organisation_resolver.rb
@@ -0,0 +1,34 @@+# This is an altered version of the #install_organisation_reso... | Make RSpec controller specs work with OrganisationResolvers.
|
diff --git a/lib/tasks/user.rake b/lib/tasks/user.rake
index abc1234..def5678 100644
--- a/lib/tasks/user.rake
+++ b/lib/tasks/user.rake
@@ -4,7 +4,7 @@ task :downgrade_expired => :environment do
User.pro_only.not_forever.joins(:payments).having("MAX(payments.date) < ?", 1.year.ago).group("users.id").each do |us... | Fix rake task to actually send emails
|
diff --git a/lib/thyme/server.rb b/lib/thyme/server.rb
index abc1234..def5678 100644
--- a/lib/thyme/server.rb
+++ b/lib/thyme/server.rb
@@ -27,11 +27,11 @@
get '/photo' do
pass unless request.accept?('application/json')
- content_type :json
conditions = { id: params[:id], set: { id: params[:... | Set Content-Type to JSON only when sending JSON
|
diff --git a/lib/honyomi/pdf.rb b/lib/honyomi/pdf.rb
index abc1234..def5678 100644
--- a/lib/honyomi/pdf.rb
+++ b/lib/honyomi/pdf.rb
@@ -22,3 +22,4 @@ end
end
end
+
| Add line feed at last
|
diff --git a/lib/yard/logging.rb b/lib/yard/logging.rb
index abc1234..def5678 100644
--- a/lib/yard/logging.rb
+++ b/lib/yard/logging.rb
@@ -1,7 +1,11 @@-require "logger"
+require 'logger'
module YARD
class Logger < ::Logger
+ def self.instance(pipe = STDERR)
+ @logger ||= new(pipe)
+ end
+
de... | Move YARD.logger into Logger class (make it a proper Singleton)
|
diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb
index abc1234..def5678 100644
--- a/config/initializers/wrap_parameters.rb
+++ b/config/initializers/wrap_parameters.rb
@@ -5,7 +5,7 @@
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty... | Change initializer to ruby 1.8.7 hash syntax
|
diff --git a/app/models/search_aspect.rb b/app/models/search_aspect.rb
index abc1234..def5678 100644
--- a/app/models/search_aspect.rb
+++ b/app/models/search_aspect.rb
@@ -1,11 +1,13 @@ # An aspect class that adds a search query term
class SearchAspect < Aspect
+ DEFAULT_LIMIT = 50000
+
def add_clause( query, pre... | Increase default Lucene limit to 50K
|
diff --git a/app/models/snapshot_diff.rb b/app/models/snapshot_diff.rb
index abc1234..def5678 100644
--- a/app/models/snapshot_diff.rb
+++ b/app/models/snapshot_diff.rb
@@ -9,5 +9,5 @@ validates_attachment_content_type :image,
content_type: /\Aimage\/.*\Z/
- validates_numerical... | Use the new "sexy" validations for SnapshotDiff
As pointed out by Rubocop. This resolves all of the cops for this file.
Change-Id: Id82cf7a6ba34c6de958ed3064ceae683a14f5fdf
|
diff --git a/app/models/spree/digital.rb b/app/models/spree/digital.rb
index abc1234..def5678 100644
--- a/app/models/spree/digital.rb
+++ b/app/models/spree/digital.rb
@@ -8,13 +8,13 @@ do_not_validate_attachment_file_type :attachment
validates_attachment_presence :attachment
- if Paperclip::Attachment.d... | Support setting the storage not using default_options
When paperclip was configured to use s3 by accessing the attachment definition
directly, the settings would not be picked up. |
diff --git a/app/models/spreedly_core.rb b/app/models/spreedly_core.rb
index abc1234..def5678 100644
--- a/app/models/spreedly_core.rb
+++ b/app/models/spreedly_core.rb
@@ -5,7 +5,7 @@ headers 'Content-Type' => 'text/xml'
base_uri "http://core.dev:3003/v1"
format :xml
-
+
def self.configure(api_login, api_... | Add ability to call authorize.
|
diff --git a/omnibus/files/pushy-server-cookbooks/opscode-pushy-server/libraries/helper.rb b/omnibus/files/pushy-server-cookbooks/opscode-pushy-server/libraries/helper.rb
index abc1234..def5678 100644
--- a/omnibus/files/pushy-server-cookbooks/opscode-pushy-server/libraries/helper.rb
+++ b/omnibus/files/pushy-server-co... | Use Mixlib::ShellOut; Chef::ShellOut is deprecated
|
diff --git a/app/models/calendar_invite.rb b/app/models/calendar_invite.rb
index abc1234..def5678 100644
--- a/app/models/calendar_invite.rb
+++ b/app/models/calendar_invite.rb
@@ -17,12 +17,11 @@ Icalendar::Calendar.new.tap do |calendar|
calendar.event do |event|
if outcome.poll_option.name.match /... | Use raw poll option name for dtstart
|
diff --git a/lib/state_handler/ca.rb b/lib/state_handler/ca.rb
index abc1234..def5678 100644
--- a/lib/state_handler/ca.rb
+++ b/lib/state_handler/ca.rb
@@ -3,8 +3,8 @@ ALLOWED_NUMBER_OF_EBT_CARD_DIGITS = [16]
def button_sequence(ebt_number)
- waiting_ebt_number = ebt_number.split('').join('w')
- "wwww1www... | Modify CA button sequence to one that more consistently seems to work
|
diff --git a/lib/tapfinder/search.rb b/lib/tapfinder/search.rb
index abc1234..def5678 100644
--- a/lib/tapfinder/search.rb
+++ b/lib/tapfinder/search.rb
@@ -16,7 +16,7 @@ end
def client
- @client ||= RestClient::Resource.new("#{Tapfinder.host}#{Tapfinder.search_path}")
+ @client ||= RestClient::Res... | Connect to Philly Tapfinder via https
At some point recently, Philly Tapfinder rolled out https support
and added 301s to redirect http => https, which caused errors in
beer_bot. This updates to connect via https now that we can.
|
diff --git a/freecodecampruby/fear_not_letter.rb b/freecodecampruby/fear_not_letter.rb
index abc1234..def5678 100644
--- a/freecodecampruby/fear_not_letter.rb
+++ b/freecodecampruby/fear_not_letter.rb
@@ -0,0 +1,33 @@+#Pseudocode
+=begin
+INPUT: Obtain a string
+STEPS:
+Create a letter array containing [a-z]
+Split the... | Create a method that returns the missing value in the sequence
|
diff --git a/gtk3/sample/misc/flowbox.rb b/gtk3/sample/misc/flowbox.rb
index abc1234..def5678 100644
--- a/gtk3/sample/misc/flowbox.rb
+++ b/gtk3/sample/misc/flowbox.rb
@@ -0,0 +1,76 @@+#!/usr/bin/env ruby
+=begin
+ flowbox.rb Ruby/GTK script
+
+ Adapted (or stolen) from http://python-gtk-3-tutorial.readthedocs.or... | Add new example for Gtk::FlowBox
|
diff --git a/Casks/fluid.rb b/Casks/fluid.rb
index abc1234..def5678 100644
--- a/Casks/fluid.rb
+++ b/Casks/fluid.rb
@@ -3,5 +3,5 @@ homepage 'http://fluidapp.com/'
version '1.6.1'
sha1 '7de2fe4372e9d055bd2bb6f5afcefa549740a7ce'
- link :app, 'Fluid.app'
+ link 'Fluid.app'
end
| Remove :app designation from Fluid link |
diff --git a/lib/capistrano/detect_migrations.rb b/lib/capistrano/detect_migrations.rb
index abc1234..def5678 100644
--- a/lib/capistrano/detect_migrations.rb
+++ b/lib/capistrano/detect_migrations.rb
@@ -16,7 +16,7 @@ end
def approved?
- $stdin.gets.strip == 'Y'
+ $stdin.gets.strip.downcase == 'y'... | Allow for either upper or lower case approval.
|
diff --git a/spec/core_ext_spec.rb b/spec/core_ext_spec.rb
index abc1234..def5678 100644
--- a/spec/core_ext_spec.rb
+++ b/spec/core_ext_spec.rb
@@ -19,7 +19,7 @@ end
it "should define Kernel.hexdump" do
- expect(Kernel).to be_kind_of(Hexdump::ModuleMethods)
+ expect(Kernel).to include(Hexdump::ModuleMetho... | Check if Hexdump::ModuleMethods is included into Kernel.
|
diff --git a/spec/geocoder_spec.rb b/spec/geocoder_spec.rb
index abc1234..def5678 100644
--- a/spec/geocoder_spec.rb
+++ b/spec/geocoder_spec.rb
@@ -6,6 +6,11 @@ let(:sf) { [-122.4022462, 37.7892022] }
let(:auckland) { [174.7758815, -36.7764613] }
+ it "Can have a configurable directory" do
+ test = LocalGeo... | Check directory can be configured
|
diff --git a/spec/progress_spec.rb b/spec/progress_spec.rb
index abc1234..def5678 100644
--- a/spec/progress_spec.rb
+++ b/spec/progress_spec.rb
@@ -25,12 +25,12 @@ ticker.to_hash.should == { "orz" => { "top" => 100, "current" => 10, "status" => "working" } }
end
- context "#tick!" do
+ context "#tic... | Correct progress spec to match API.
|
diff --git a/db/migrate/20130318140727_add_default_value_address_client.rb b/db/migrate/20130318140727_add_default_value_address_client.rb
index abc1234..def5678 100644
--- a/db/migrate/20130318140727_add_default_value_address_client.rb
+++ b/db/migrate/20130318140727_add_default_value_address_client.rb
@@ -0,0 +1,9 @@... | Add default value address client
|
diff --git a/lib/modules/active_storage_transfer.rb b/lib/modules/active_storage_transfer.rb
index abc1234..def5678 100644
--- a/lib/modules/active_storage_transfer.rb
+++ b/lib/modules/active_storage_transfer.rb
@@ -0,0 +1,28 @@+module ActiveStorageTransfer
+ def self.transfer only_dump=false
+ config = ActiveReco... | Add module to transfer ActiveStorage tables from backup db
|
diff --git a/lib/rubocop/cop/style/case_equality.rb b/lib/rubocop/cop/style/case_equality.rb
index abc1234..def5678 100644
--- a/lib/rubocop/cop/style/case_equality.rb
+++ b/lib/rubocop/cop/style/case_equality.rb
@@ -7,10 +7,10 @@ class CaseEquality < Cop
MSG = 'Avoid the use of the case equality operato... | Modify Style/CaseEquality to use NodePattern
|
diff --git a/lib/shopify_app/sessions_controller.rb b/lib/shopify_app/sessions_controller.rb
index abc1234..def5678 100644
--- a/lib/shopify_app/sessions_controller.rb
+++ b/lib/shopify_app/sessions_controller.rb
@@ -35,7 +35,7 @@
def authenticate
if shop_name = sanitize_shop_param(params)
- fullpag... | Use root_url from main_app when redirecting the user in authenticate
|
diff --git a/lib/ost.rb b/lib/ost.rb
index abc1234..def5678 100644
--- a/lib/ost.rb
+++ b/lib/ost.rb
@@ -2,7 +2,7 @@
module Ost
VERSION = "0.1.1"
- TIMEOUT = ENV["OST_TIMEOUT"] || 0
+ TIMEOUT = ENV["OST_TIMEOUT"] || 2
class Queue
attr :key
| Change default timeout to 2 seconds.
|
diff --git a/lib/docs/scrapers/node.rb b/lib/docs/scrapers/node.rb
index abc1234..def5678 100644
--- a/lib/docs/scrapers/node.rb
+++ b/lib/docs/scrapers/node.rb
@@ -23,17 +23,17 @@ HTML
version do
- self.release = '7.4.0'
+ self.release = '7.5.0'
self.base_url = 'https://nodejs.org/dist/late... | Update Node.js documentation (7.5.0, 6.9.5, 4.7.3)
|
diff --git a/lib/domgen/jaxb/helper.rb b/lib/domgen/jaxb/helper.rb
index abc1234..def5678 100644
--- a/lib/domgen/jaxb/helper.rb
+++ b/lib/domgen/jaxb/helper.rb
@@ -15,13 +15,13 @@ s
end
- def jaxb_field_annotation(field)
+ def jaxb_field_annotation(field, wrap_collections = true)
ns... | Make it possible to annotate non wrapped collections |
diff --git a/lib/engineyard/version.rb b/lib/engineyard/version.rb
index abc1234..def5678 100644
--- a/lib/engineyard/version.rb
+++ b/lib/engineyard/version.rb
@@ -1,4 +1,4 @@ module EY
- VERSION = '2.3.0'
+ VERSION = '2.3.1.pre'
ENGINEYARD_SERVERSIDE_VERSION = ENV['ENGINEYARD_SERVERSIDE_VERSION'] || '2.3.1'
end... | Add .pre for next release
|
diff --git a/lib/fluent/plugin/out_logio.rb b/lib/fluent/plugin/out_logio.rb
index abc1234..def5678 100644
--- a/lib/fluent/plugin/out_logio.rb
+++ b/lib/fluent/plugin/out_logio.rb
@@ -25,7 +25,7 @@ super
puts @host
puts @port
- @socket = TCPSocket.open(@host, 28777)
+ @socket = TCPSocket.... | Use port parameter instead of hardcoded number for connection
|
diff --git a/lib/signed_form-activeadmin.rb b/lib/signed_form-activeadmin.rb
index abc1234..def5678 100644
--- a/lib/signed_form-activeadmin.rb
+++ b/lib/signed_form-activeadmin.rb
@@ -15,6 +15,8 @@ define_method :build do |resource, options = {}, &block|
options[:signed] = true
... | Fix integration with arbre-style active admin form tag
Fields are added after the form has been rendered, so the signature needs to be updated
|
diff --git a/lib/node-elasticsearch.rb b/lib/node-elasticsearch.rb
index abc1234..def5678 100644
--- a/lib/node-elasticsearch.rb
+++ b/lib/node-elasticsearch.rb
@@ -5,10 +5,47 @@ include Elasticsearch::Persistence::Model
attribute :name, String
+ attribute :fqdn, String, default: :name
# TODO: li... | Node: Add fqdn and default to empty hashes.
Plus comment/stub magic.
|
diff --git a/node_linked_list.rb b/node_linked_list.rb
index abc1234..def5678 100644
--- a/node_linked_list.rb
+++ b/node_linked_list.rb
@@ -6,53 +6,74 @@ @next = next_node
end
- def to_s
- value.to_s
- end
end
class LinkedList
- include Enumerable
- attr_accessor :head
+ attr_accessor :head, :ta... | Complete node and linked list implementation
|
diff --git a/app/validators/city_and_state_validator.rb b/app/validators/city_and_state_validator.rb
index abc1234..def5678 100644
--- a/app/validators/city_and_state_validator.rb
+++ b/app/validators/city_and_state_validator.rb
@@ -4,10 +4,8 @@ if record.address_city.present? && record.address_state.present?
... | Solve problem with city and state validation
|
diff --git a/ohm-contrib.gemspec b/ohm-contrib.gemspec
index abc1234..def5678 100644
--- a/ohm-contrib.gemspec
+++ b/ohm-contrib.gemspec
@@ -21,7 +21,7 @@ s.require_paths = ["lib"]
s.rubyforge_project = "ohm-contrib"
- s.add_dependency "ohm", "~> 2.0"
+ s.add_dependency "ohm", "~> 2.0.0.rc1"
s.add_develop... | Fix ohm version on gemspec.
|
diff --git a/storage.rb b/storage.rb
index abc1234..def5678 100644
--- a/storage.rb
+++ b/storage.rb
@@ -13,11 +13,16 @@ raise NotImplementedError
end
- def fetch(key, *args)
- return self[key] if has_key?(key)
- return args.first if args.size == 1
-
- raise KeyError, key
+ ... | Allow passing a block to Moltrio::Config.fetch to compute a default
|
diff --git a/docs/_plugins/copy_images_directory.rb b/docs/_plugins/copy_images_directory.rb
index abc1234..def5678 100644
--- a/docs/_plugins/copy_images_directory.rb
+++ b/docs/_plugins/copy_images_directory.rb
@@ -1,15 +1,22 @@-class MyCustomCommand < Jekyll::Command
+require 'fileutils'
+
+class MyNewCommand < Jeky... | Fix docs image dir plugin
|
diff --git a/lib/sapience/extensions/notifications.rb b/lib/sapience/extensions/notifications.rb
index abc1234..def5678 100644
--- a/lib/sapience/extensions/notifications.rb
+++ b/lib/sapience/extensions/notifications.rb
@@ -1,5 +1,9 @@-require "active_support"
-require "active_support/notifications"
+begin
+ require ... | Load ActiveSupport only when available
|
diff --git a/AGEmojiKeyboard.podspec b/AGEmojiKeyboard.podspec
index abc1234..def5678 100644
--- a/AGEmojiKeyboard.podspec
+++ b/AGEmojiKeyboard.podspec
@@ -20,4 +20,5 @@ s.requires_arc = true
s.source_files = 'AGEmojiKeyboard/*.{h,m}'
+ s.resources = 'Resources/*.plist'
end
| Add plist in resources list in podspec
|
diff --git a/kiwi/app/models/question.rb b/kiwi/app/models/question.rb
index abc1234..def5678 100644
--- a/kiwi/app/models/question.rb
+++ b/kiwi/app/models/question.rb
@@ -7,4 +7,9 @@ has_many :votes, as: :votable
validates_presence_of :title, :content, :user_id
+
+ def best_answer
+ Answer.find_by(id: self... | Add best_answer getter method to Question model
|
diff --git a/example/account_stat.rb b/example/account_stat.rb
index abc1234..def5678 100644
--- a/example/account_stat.rb
+++ b/example/account_stat.rb
@@ -0,0 +1,24 @@+#!/bin/sh ruby
+# -*- encoding: utf-8 -*-
+
+###
+### Show account statuses
+### Kazuki Hamasaki (ashphy@ashphy.com)
+###
+
+require 'rubygems'
+requ... | Add analysis script of showing account statuses
|
diff --git a/RSSKit.podspec b/RSSKit.podspec
index abc1234..def5678 100644
--- a/RSSKit.podspec
+++ b/RSSKit.podspec
@@ -1,6 +1,6 @@ Pod::Spec.new do |s|
s.name = "RSSKit"
- s.version = "1.0.6"
+ s.version = "1.0.7"
s.license = {:type => "MIT", :file => "LICENSE"}
s.summary = "A RSS/Atom Parser in Swift"
... | Upgrade the version of podspec
|
diff --git a/db/migrate/20160308165211_move_network_port_cloud_subnet_id_to_network_ports_cloud_subnets.rb b/db/migrate/20160308165211_move_network_port_cloud_subnet_id_to_network_ports_cloud_subnets.rb
index abc1234..def5678 100644
--- a/db/migrate/20160308165211_move_network_port_cloud_subnet_id_to_network_ports_clou... | Use find_each instead of all to be more memory friendly
Use find_each instead of all to be more memory friendly
|
diff --git a/models/buy.rb b/models/buy.rb
index abc1234..def5678 100644
--- a/models/buy.rb
+++ b/models/buy.rb
@@ -11,7 +11,7 @@ property :rate_per_spot, Integer
property :election_cycle, Enum[:primary, :general]
- belongs_to :submitter, User
+ belongs_to :submitter, "User"
belongs_to :station
belong... | Use string for relationship class name |
diff --git a/unziper.rb b/unziper.rb
index abc1234..def5678 100644
--- a/unziper.rb
+++ b/unziper.rb
@@ -0,0 +1,32 @@+#!/usr/bin/ruby
+
+
+require './downloader.rb'
+require 'zip'
+
+module Unziper
+
+
+ def self.unzip(file)
+ Zip::File.open(file) do |zipfile|
+ zipfile.each do |entry|
+ # The 'next if... | Add a utility to unzip all files
|
diff --git a/lib/carrierwave/storage/webdav.rb b/lib/carrierwave/storage/webdav.rb
index abc1234..def5678 100644
--- a/lib/carrierwave/storage/webdav.rb
+++ b/lib/carrierwave/storage/webdav.rb
@@ -29,7 +29,7 @@ true
end
def url(options = {})
- "http://files.fu2.redcursor.net/#{path}... | Use the correct hostname for file uploads
|
diff --git a/tasks/buildr_artifact_patch.rake b/tasks/buildr_artifact_patch.rake
index abc1234..def5678 100644
--- a/tasks/buildr_artifact_patch.rake
+++ b/tasks/buildr_artifact_patch.rake
@@ -0,0 +1,46 @@+raise 'Patch already integrated into buildr code' unless Buildr::VERSION.to_s == '1.5.6'
+
+class URI::HTTP
+ pri... | Apply patch to work around Buildr password encoding issue
|
diff --git a/test/models/search/index_test.rb b/test/models/search/index_test.rb
index abc1234..def5678 100644
--- a/test/models/search/index_test.rb
+++ b/test/models/search/index_test.rb
@@ -4,6 +4,8 @@ test "concatenates multiple keywords" do
author = items(:one_author_stephen_king)
data = Search::Index.... | Make test insensitive to field ordering
|
diff --git a/features/support/env.rb b/features/support/env.rb
index abc1234..def5678 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -5,3 +5,10 @@ Before do
@aruba_timeout_seconds = 3600
end
+
+Aruba.configure do |config|
+ config.before_cmd do |cmd|
+ set_env('JRUBY_OPTS', "-X-C #{ENV['J... | Speed up performance on jruby
|
diff --git a/capistrano-technogate.gemspec b/capistrano-technogate.gemspec
index abc1234..def5678 100644
--- a/capistrano-technogate.gemspec
+++ b/capistrano-technogate.gemspec
@@ -7,7 +7,7 @@ s.version = Capistrano::Technogate::Version::STRING.dup
s.authors = ["Wael Nasreddine"]
s.email = ["wael.... | MISC: Add github projet page as the home page.
|
diff --git a/lib/delayed/performable_method.rb b/lib/delayed/performable_method.rb
index abc1234..def5678 100644
--- a/lib/delayed/performable_method.rb
+++ b/lib/delayed/performable_method.rb
@@ -1,7 +1,7 @@ module Delayed
class PerformableMethod < Struct.new(:object, :method, :args)
def initialize(object, met... | Allow asynchronous methods to be private
Change-Id: Ib552811667570f212b2eba78a0a852dee488b293
|
diff --git a/jekyll-commonmark.gemspec b/jekyll-commonmark.gemspec
index abc1234..def5678 100644
--- a/jekyll-commonmark.gemspec
+++ b/jekyll-commonmark.gemspec
@@ -20,7 +20,6 @@ spec.required_ruby_version = ">= 2.3.0"
spec.add_runtime_dependency "commonmarker", "~> 0.14"
- spec.add_runtime_dependency "jekyll",... | Remove gemspec dependency on Jekyll
So that it can be bundled with Jekyll directly
|
diff --git a/lib/cukestart/generator/structure.rb b/lib/cukestart/generator/structure.rb
index abc1234..def5678 100644
--- a/lib/cukestart/generator/structure.rb
+++ b/lib/cukestart/generator/structure.rb
@@ -17,7 +17,7 @@ empty_directory("#{project_name}/features")
empty_directory("#{project_name}/fea... | Create page folder if is not a front project
|
diff --git a/lib/jekyll/filters/url_filters.rb b/lib/jekyll/filters/url_filters.rb
index abc1234..def5678 100644
--- a/lib/jekyll/filters/url_filters.rb
+++ b/lib/jekyll/filters/url_filters.rb
@@ -32,12 +32,8 @@
private
def ensure_leading_slash(input)
- return input if input.nil? || input.empty?
-... | Consolidate ensure_leading_slash to 2 lines.
|
diff --git a/tests/aws/signed_params_tests.rb b/tests/aws/signed_params_tests.rb
index abc1234..def5678 100644
--- a/tests/aws/signed_params_tests.rb
+++ b/tests/aws/signed_params_tests.rb
@@ -8,10 +8,10 @@ end
tests('Keys should be canonicalised using Unicode NFC') do
- returns( Fog::AWS.escape( "\u{00e9}" )... | Fix the Unicode strings for Ruby 1.8.7
Can’t use \u{xxxx} :(
|
diff --git a/lib/dropbox/archive/authorization.rb b/lib/dropbox/archive/authorization.rb
index abc1234..def5678 100644
--- a/lib/dropbox/archive/authorization.rb
+++ b/lib/dropbox/archive/authorization.rb
@@ -1,3 +1,5 @@+require 'dropbox_sdk'
+
module Dropbox
module Archive
class Authorization
@@ -6,16 +8,19 @... | Fix syntax error, use $stdin for getting input, and add welcome message so there's some output from the task
|
diff --git a/lib/juici/helpers/form_helpers.rb b/lib/juici/helpers/form_helpers.rb
index abc1234..def5678 100644
--- a/lib/juici/helpers/form_helpers.rb
+++ b/lib/juici/helpers/form_helpers.rb
@@ -7,4 +7,5 @@ end
form << %Q{<button type="submit" class="btn">#{opts[:submit] || "submit"}</button>}
+ form << %Q{</... | Fix form helper not closing it's tags
|
diff --git a/lib/extensions/generic_view_paths.rb b/lib/extensions/generic_view_paths.rb
index abc1234..def5678 100644
--- a/lib/extensions/generic_view_paths.rb
+++ b/lib/extensions/generic_view_paths.rb
@@ -8,7 +8,7 @@ find_template_without_active_scaffold(original_template_path, format)
rescue Missing... | Fix find templates for namespaced controllers
|
diff --git a/lib/sequel/connection_pool/single.rb b/lib/sequel/connection_pool/single.rb
index abc1234..def5678 100644
--- a/lib/sequel/connection_pool/single.rb
+++ b/lib/sequel/connection_pool/single.rb
@@ -2,13 +2,13 @@ # It is just a wrapper around a single connection that uses the connection pool
# API.
class Se... | Fix the RDoc for the SingleConnectionPool
|
diff --git a/lib/cask/source/path_base.rb b/lib/cask/source/path_base.rb
index abc1234..def5678 100644
--- a/lib/cask/source/path_base.rb
+++ b/lib/cask/source/path_base.rb
@@ -15,8 +15,23 @@ end
def load
- require path
- Cask.const_get(cask_class_name).new
+ raise CaskError.new "File '#{path}' does not... | Improve error checking and messages on Cask load
Other Cask sources ultimately invoke the `load` method in the
abstract class Cask::Source::PathBase, so these changes apply
to all other sources.
|
diff --git a/lib/heroku/command/deploy.rb b/lib/heroku/command/deploy.rb
index abc1234..def5678 100644
--- a/lib/heroku/command/deploy.rb
+++ b/lib/heroku/command/deploy.rb
@@ -34,9 +34,9 @@ pack.deploy!(branch)
display('Deployment successful.'.green)
rescue Pack::NotFound
- error("\e[91mNo suita... | Use colors for pack exceptions, too
|
diff --git a/lib/kracken/authenticator.rb b/lib/kracken/authenticator.rb
index abc1234..def5678 100644
--- a/lib/kracken/authenticator.rb
+++ b/lib/kracken/authenticator.rb
@@ -34,7 +34,8 @@ Hashie::Mash.new({
provider: response_hash['provider'],
uid: response_hash['uid'],
- info: respons... | Include credential details in the `auth_hash` when creating a user
This will pass the credential details to the host app, allowing them to
collect the tokens needed for API access.
|
diff --git a/lib/modulr/sync_collector.rb b/lib/modulr/sync_collector.rb
index abc1234..def5678 100644
--- a/lib/modulr/sync_collector.rb
+++ b/lib/modulr/sync_collector.rb
@@ -7,9 +7,14 @@
private
def lib
- File.read(PATH_TO_MODULR_SYNC_JS)
+ output = File.read(PATH_TO_MODULR_SYNC_JS)
+ ... | Make main module global when handling more than one file at the same time. |
diff --git a/lib/chroma/color_modes.rb b/lib/chroma/color_modes.rb
index abc1234..def5678 100644
--- a/lib/chroma/color_modes.rb
+++ b/lib/chroma/color_modes.rb
@@ -3,7 +3,7 @@ class << self
private
- def build(name, *attrs)
+ def build(*attrs)
Class.new do
attr_accessor *(att... | Revert "Add conversion to_* methods to ColorModes classes"
This reverts commit 6a0b0ddd60932e3fda7acb26383954976e9f911c.
|
diff --git a/lib/convergence/config.rb b/lib/convergence/config.rb
index abc1234..def5678 100644
--- a/lib/convergence/config.rb
+++ b/lib/convergence/config.rb
@@ -2,11 +2,15 @@ require 'yaml'
class Convergence::Config
- attr_accessor :adapter, :database, :host, :port, :username, :password
+ ATTRIBUTES = %i[adapt... | Fix not to assign unnecessary instance variables
|
diff --git a/lib/rasti/app/interaction.rb b/lib/rasti/app/interaction.rb
index abc1234..def5678 100644
--- a/lib/rasti/app/interaction.rb
+++ b/lib/rasti/app/interaction.rb
@@ -12,13 +12,24 @@ end
def call(params)
- execute self.class.build_form(params)
+ Thread.current[thread_form_key] = s... | Move form argument to instance call scoped method (thread safe)
|
diff --git a/lib/salesforce_bulk/batch.rb b/lib/salesforce_bulk/batch.rb
index abc1234..def5678 100644
--- a/lib/salesforce_bulk/batch.rb
+++ b/lib/salesforce_bulk/batch.rb
@@ -1,9 +1,12 @@ module SalesforceBulk
class Batch
+ attr_accessor :created_at
attr_accessor :id
attr_accessor :job_id
+ a... | Add attr_accessors in Batch class called created_at, updated_at and processed_records.
|
diff --git a/lib/tasks/asset_manager.rake b/lib/tasks/asset_manager.rake
index abc1234..def5678 100644
--- a/lib/tasks/asset_manager.rake
+++ b/lib/tasks/asset_manager.rake
@@ -1,6 +1,6 @@ namespace :asset_manager do
- desc "Migrates Organisation logos to Asset Manager."
- task migrate_organisation_logos: :environmen... | Rename rake task migrate_organisation_logos -> migrate_assets
|
diff --git a/lib/tasks/sidekiq_stats.rake b/lib/tasks/sidekiq_stats.rake
index abc1234..def5678 100644
--- a/lib/tasks/sidekiq_stats.rake
+++ b/lib/tasks/sidekiq_stats.rake
@@ -0,0 +1,16 @@+require 'sidekiq/api'
+
+desc 'report basic sidekiq stats'
+task :sidekiq_stats do
+ stats = Sidekiq::Stats.new
+
+ log_info = {... | Add basic rake task to report sidekiq queue status
The task will be cron'd so that sidekiq status info
can be logged and shipped to kibana.
|
diff --git a/lib/tent-validator/runner.rb b/lib/tent-validator/runner.rb
index abc1234..def5678 100644
--- a/lib/tent-validator/runner.rb
+++ b/lib/tent-validator/runner.rb
@@ -19,7 +19,7 @@ require 'tent-validator/runner/cli'
def self.run(&block)
- paths = Dir[File.expand_path(File.join(File.dirname(__... | Allow validations to be organized into subdirs
|
diff --git a/lib/has_accounts/model.rb b/lib/has_accounts/model.rb
index abc1234..def5678 100644
--- a/lib/has_accounts/model.rb
+++ b/lib/has_accounts/model.rb
@@ -40,10 +40,7 @@ booking_template = BookingTemplate.find_by_code(template_code)
# Prepare booking parameters
- booking_para... | Drop reliance on .value_date on including class for has_accounts.
|
diff --git a/lib/polytexnic/mathjax.rb b/lib/polytexnic/mathjax.rb
index abc1234..def5678 100644
--- a/lib/polytexnic/mathjax.rb
+++ b/lib/polytexnic/mathjax.rb
@@ -25,8 +25,8 @@ EOS
end
- MATHJAX = '/MathJax/MathJax.js?config='
- AMS_HTML = MATHJAX + 'TeX-AMS_HTML'
+ MATHJAX = 'MathJax/MathJax.... | Fix MathJax path in self-contained HTML
[#53728737]
|
diff --git a/lib/retryable_typhoeus.rb b/lib/retryable_typhoeus.rb
index abc1234..def5678 100644
--- a/lib/retryable_typhoeus.rb
+++ b/lib/retryable_typhoeus.rb
@@ -10,19 +10,12 @@ DEFAULT_RETRIES = 10
class Request < Typhoeus::Request
+ attr_accessor :retries
+
def initialize(base_url, options = {})
... | Use attr_accessor instead of methods
|
diff --git a/lib/srtshifter/options.rb b/lib/srtshifter/options.rb
index abc1234..def5678 100644
--- a/lib/srtshifter/options.rb
+++ b/lib/srtshifter/options.rb
@@ -31,7 +31,7 @@
opts.on_tail('-h', '--help', 'Show this help message.') do
puts(opts)
- exit(0)
+ # exit(0)
e... | Remove exit method from Options
|
diff --git a/lib/transproc/function.rb b/lib/transproc/function.rb
index abc1234..def5678 100644
--- a/lib/transproc/function.rb
+++ b/lib/transproc/function.rb
@@ -13,7 +13,7 @@ alias_method :[], :call
def compose(other)
- self.class.new(-> *result { other[fn[*result]] }, args)
+ self.class.new(->... | Change result variable to input
|
diff --git a/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dictionary.rb b/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dictionary.rb
index abc1234..def5678 100644
--- a/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dictionary.rb
+++ b/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dicti... | Refactor mdJson writer module for 'dictionary'
include minitest modules
|
diff --git a/qtrix.gemspec b/qtrix.gemspec
index abc1234..def5678 100644
--- a/qtrix.gemspec
+++ b/qtrix.gemspec
@@ -18,6 +18,7 @@ gem.require_paths = ["lib"]
gem.add_dependency "redis-namespace", "~> 1.0.2"
gem.add_dependency "mixlib-cli", "1.3.0"
+ gem.add_development_dependency 'rake', '~> 0.9'
gem.add_d... | Add rake to gemfile for Travis
|
diff --git a/test/jenkins_github_test.rb b/test/jenkins_github_test.rb
index abc1234..def5678 100644
--- a/test/jenkins_github_test.rb
+++ b/test/jenkins_github_test.rb
@@ -8,13 +8,15 @@ def test_push
@stubs.post "/github-webhook/" do |env|
assert_equal 'jenkins.example.com', env[:url].host
+ assert_... | Add Authorization test to Jenkins (GitHub) hook
|
diff --git a/motion/core_ext/hash.rb b/motion/core_ext/hash.rb
index abc1234..def5678 100644
--- a/motion/core_ext/hash.rb
+++ b/motion/core_ext/hash.rb
@@ -2,7 +2,9 @@
class NSDictionary
def to_hash
- Hash.new(self)
+ Hash.new.tap do |h|
+ h.replace self
+ end
end
delegate :symbolize_keys,... | Fix symbolizing keys in NSDictionary instances |
diff --git a/rails_legit.gemspec b/rails_legit.gemspec
index abc1234..def5678 100644
--- a/rails_legit.gemspec
+++ b/rails_legit.gemspec
@@ -13,9 +13,7 @@ spec.homepage = ""
spec.license = "MIT"
- spec.files = `git ls-files`.split($/)
- spec.executables = spec.files.grep(%r{^bin/}) { |f| F... | Remove spec related files from gemspec
* This will reduce the number of files packaged. A good practice
although for this small a gem, it probably wouldn't make much
difference.
|
diff --git a/tasks/metrics/ci.rake b/tasks/metrics/ci.rake
index abc1234..def5678 100644
--- a/tasks/metrics/ci.rake
+++ b/tasks/metrics/ci.rake
@@ -1,7 +1,7 @@ desc 'Run metrics with Heckle'
-task :ci => [ 'ci:metrics', :heckle ]
+task :ci => %w[ ci:metrics heckle ]
namespace :ci do
desc 'Run metrics'
- task :m... | Change to use a quoted array for the task list
|
diff --git a/railties/lib/rails/commands/console.rb b/railties/lib/rails/commands/console.rb
index abc1234..def5678 100644
--- a/railties/lib/rails/commands/console.rb
+++ b/railties/lib/rails/commands/console.rb
@@ -4,6 +4,8 @@
module Rails
class Console
+ ENVIRONMENTS = %w(production development test)
+
... | Set RAILS_ENV before loading config/environment
|
diff --git a/omniauth-github.gemspec b/omniauth-github.gemspec
index abc1234..def5678 100644
--- a/omniauth-github.gemspec
+++ b/omniauth-github.gemspec
@@ -1,24 +1,32 @@ # -*- encoding: utf-8 -*-
-require File.expand_path('../lib/omniauth-cabify/version', __FILE__)
+
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_... | Update gemspec for Bundler gem style
|
diff --git a/pummel.rb b/pummel.rb
index abc1234..def5678 100644
--- a/pummel.rb
+++ b/pummel.rb
@@ -3,6 +3,8 @@ require 'rss/2.0'
require 'open-uri'
require 'sinatra'
+$: << File.join(File.dirname(__FILE__), 'vendor', 'ruby-oembed', 'lib')
+require 'oembed'
@@rss_url = "http://feeds.pinboard.in/rss/u:evaryont/"
... | Use the vendored directory to load Ruby-OEmbed
|
diff --git a/em-scheduled-timer.gemspec b/em-scheduled-timer.gemspec
index abc1234..def5678 100644
--- a/em-scheduled-timer.gemspec
+++ b/em-scheduled-timer.gemspec
@@ -20,7 +20,7 @@
spec.add_dependency "eventmachine", "~> 1.0"
- spec.add_development_dependency "bundler", "~> 1.3"
+ spec.add_development_depende... | Use a less stringent version number for the Bundler dependency
|
diff --git a/spec/models/renalware/hd/find_or_create_diary_by_week_query_spec.rb b/spec/models/renalware/hd/find_or_create_diary_by_week_query_spec.rb
index abc1234..def5678 100644
--- a/spec/models/renalware/hd/find_or_create_diary_by_week_query_spec.rb
+++ b/spec/models/renalware/hd/find_or_create_diary_by_week_query... | Remove before(:all) causing random spec error
|
diff --git a/rails_event_store-browser/rails_event_store-browser.gemspec b/rails_event_store-browser/rails_event_store-browser.gemspec
index abc1234..def5678 100644
--- a/rails_event_store-browser/rails_event_store-browser.gemspec
+++ b/rails_event_store-browser/rails_event_store-browser.gemspec
@@ -12,7 +12,7 @@ s.s... | Add missing directory to released gem.
|
diff --git a/homebrew/chruby-fish.rb b/homebrew/chruby-fish.rb
index abc1234..def5678 100644
--- a/homebrew/chruby-fish.rb
+++ b/homebrew/chruby-fish.rb
@@ -1,15 +1,15 @@ require 'formula'
class ChrubyFish < Formula
- homepage 'https://github.com/JeanMertz/chruby-fish#readme'
- url 'https://github.com/JeanMertz/ch... | Update Homebrew formula for v0.7.0
|
diff --git a/vagrant-puppet-modules.gemspec b/vagrant-puppet-modules.gemspec
index abc1234..def5678 100644
--- a/vagrant-puppet-modules.gemspec
+++ b/vagrant-puppet-modules.gemspec
@@ -9,7 +9,7 @@ spec.authors = ['Anis Safine']
spec.email = ['anis@poensis.fr']
spec.description = 'A Vagrant plugi... | Correct the name of librarian-puppet in description
|
diff --git a/Formula/jython.rb b/Formula/jython.rb
index abc1234..def5678 100644
--- a/Formula/jython.rb
+++ b/Formula/jython.rb
@@ -1,7 +1,8 @@ require 'formula'
class Jython <Formula
- url 'http://downloads.sourceforge.net/project/jython/jython/2.5.1/jython_installer-2.5.1.jar'
+ JAR = 'jython_installer-2.5.1.ja... | Remove duplication of Jar name in Jython.
|
diff --git a/spec/helpers/application_helper/buttons/set_ownership_spec.rb b/spec/helpers/application_helper/buttons/set_ownership_spec.rb
index abc1234..def5678 100644
--- a/spec/helpers/application_helper/buttons/set_ownership_spec.rb
+++ b/spec/helpers/application_helper/buttons/set_ownership_spec.rb
@@ -21,5 +21,10... | Add case Instance/Vm without ext_management_system
|
diff --git a/test/test_category.rb b/test/test_category.rb
index abc1234..def5678 100644
--- a/test/test_category.rb
+++ b/test/test_category.rb
@@ -0,0 +1,39 @@+# frozen_string_literal: true
+
+$LOAD_PATH.unshift(__dir__)
+
+require 'helper'
+
+describe Dimples::Category do
+ before do
+ @site = Dimples::Site.new(... | Add tests for the category class
|
diff --git a/lib/preprocessors/image-preprocessor.rb b/lib/preprocessors/image-preprocessor.rb
index abc1234..def5678 100644
--- a/lib/preprocessors/image-preprocessor.rb
+++ b/lib/preprocessors/image-preprocessor.rb
@@ -1,2 +1,2 @@ Pakyow::Assets.preprocessor :ico
-Pakyow::Assets.preprocessor :png, :jpg, :gif, fingerp... | Add svg to image preprocessor
|
diff --git a/UIImage-SolidColor.podspec b/UIImage-SolidColor.podspec
index abc1234..def5678 100644
--- a/UIImage-SolidColor.podspec
+++ b/UIImage-SolidColor.podspec
@@ -1,11 +1,11 @@ Pod::Spec.new do |spec|
spec.name = 'UIImage-SolidColor'
- spec.version = '1.0.0'
+ spec.version ... | Build bump to version 1.0.1.
|
diff --git a/rpush-redis.gemspec b/rpush-redis.gemspec
index abc1234..def5678 100644
--- a/rpush-redis.gemspec
+++ b/rpush-redis.gemspec
@@ -18,7 +18,7 @@ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_dependency "modis", "~> 2.0"
+ spec.add_dependency ... | Update modis for Rails 5.2 support
|
diff --git a/rss-dcterms.gemspec b/rss-dcterms.gemspec
index abc1234..def5678 100644
--- a/rss-dcterms.gemspec
+++ b/rss-dcterms.gemspec
@@ -19,4 +19,5 @@ gem.add_development_dependency 'pry'
gem.add_development_dependency 'pry-doc'
gem.add_development_dependency 'yard'
+ gem.add_development_dependency 'redcar... | Add redcarpet to deps to use Markdown
|
diff --git a/plugin.rb b/plugin.rb
index abc1234..def5678 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -7,7 +7,7 @@ enabled_site_setting :nntp_bridge_enabled
# install dependencies
-gem 'active_attr', '0.9.0'
+gem 'active_attr', '0.10.2'
gem 'thoughtafter-nntp', '1.0.0.3', require: false
gem 'rfc2047', '0.3', github:... | Upgrade active_attr to 0.10.2 to support latest Discourse
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.