diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/lib/exercism/use_cases/updates_user_exercise.rb b/lib/exercism/use_cases/updates_user_exercise.rb
index abc1234..def5678 100644
--- a/lib/exercism/use_cases/updates_user_exercise.rb
+++ b/lib/exercism/use_cases/updates_user_exercise.rb
@@ -13,6 +13,8 @@
exercise.user_id = user_id
exercise.st... | Save language/slug on user exercise
|
diff --git a/app/helpers/c3_helper.rb b/app/helpers/c3_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/c3_helper.rb
+++ b/app/helpers/c3_helper.rb
@@ -3,13 +3,13 @@ chart_id = opts[:id] || ('chart' + rand(10**8).to_s)
content_tag(:div, '', :id => chart_id) +
- javascript_tag(<<-EOJ)
-$.get("#{... | Fix rubocop warnings in C3Helper
|
diff --git a/lib/omniauth/strategies/wordpress_hosted.rb b/lib/omniauth/strategies/wordpress_hosted.rb
index abc1234..def5678 100644
--- a/lib/omniauth/strategies/wordpress_hosted.rb
+++ b/lib/omniauth/strategies/wordpress_hosted.rb
@@ -33,7 +33,7 @@
def raw_info
puts access_token.token
- @raw_i... | Update endpoints used by WP OAuth Server 3.1.3
|
diff --git a/lib/vidibus/secure/extensions/controller.rb b/lib/vidibus/secure/extensions/controller.rb
index abc1234..def5678 100644
--- a/lib/vidibus/secure/extensions/controller.rb
+++ b/lib/vidibus/secure/extensions/controller.rb
@@ -7,7 +7,7 @@ extend ActiveSupport::Concern
included do
- ... | Use helper_method only if available |
diff --git a/lib/aws/xray.rb b/lib/aws/xray.rb
index abc1234..def5678 100644
--- a/lib/aws/xray.rb
+++ b/lib/aws/xray.rb
@@ -24,9 +24,9 @@
class << self
# @param [String] name a logical name of this tracing context.
- def trace(name: nil)
+ def trace(name: nil, trace: Trace.generate)
nam... | Change to accept trace object
|
diff --git a/lib/lineprof.rb b/lib/lineprof.rb
index abc1234..def5678 100644
--- a/lib/lineprof.rb
+++ b/lib/lineprof.rb
@@ -18,7 +18,14 @@ private
def caller_filename(caller_lines)
- caller_lines.first.split(':').first || DEFAULT_PATTERN
+ filename = caller_lines.first.split(':').first
+
+ if... | Fix NULL pointer given error with no argument
It seems rblineprof requires regexp, not string.
```
$ bundle exec ruby example.rb
/app/lib/lineprof.rb:11:in `lineprof': NULL pointer given (ArgumentError)
from /app/lib/lineprof.rb:11:in `profile'
from example.rb:3:in `<main>'
```
I guess example.rb wor... |
diff --git a/lib/recog/db.rb b/lib/recog/db.rb
index abc1234..def5678 100644
--- a/lib/recog/db.rb
+++ b/lib/recog/db.rb
@@ -34,6 +34,8 @@ xml = Nokogiri::XML(fd.read(fd.stat.size))
end
+ raise "#{self.path} is invalid XML: #{xml.errors.join(',')}" unless xml.errors.empty?
+
xml.xpath("/fingerprint... | Abort when the XML has any errors
|
diff --git a/lib/generators/mailboxer/views_generator.rb b/lib/generators/mailboxer/views_generator.rb
index abc1234..def5678 100644
--- a/lib/generators/mailboxer/views_generator.rb
+++ b/lib/generators/mailboxer/views_generator.rb
@@ -0,0 +1,9 @@+class Mailboxer::ViewsGenerator < Rails::Generators::Base
+ source_roo... | Add generator for mailer views
|
diff --git a/lib/middleman-google-analytics/extension.rb b/lib/middleman-google-analytics/extension.rb
index abc1234..def5678 100644
--- a/lib/middleman-google-analytics/extension.rb
+++ b/lib/middleman-google-analytics/extension.rb
@@ -19,7 +19,7 @@ module InstanceMethods
def google_analytics_tag
o... | Use `ga_debug` only in development
Before, it checked if not in `build`. I think to check for development is more accurate. |
diff --git a/ruby/repl.rb b/ruby/repl.rb
index abc1234..def5678 100644
--- a/ruby/repl.rb
+++ b/ruby/repl.rb
@@ -42,3 +42,15 @@ include Rails.application.routes.url_helpers
nil
end
+
+module IntegrationTestPryHelpers
+ def puts_select(*args)
+ puts HTMLSelector.new(args) { nodeset document_root_element }.sele... | Use `puts_select` in integration tests
|
diff --git a/roles/web.rb b/roles/web.rb
index abc1234..def5678 100644
--- a/roles/web.rb
+++ b/roles/web.rb
@@ -16,7 +16,7 @@ :pool_idle_time => 3600
},
:web => {
- :status => "gpx_offline",
+ :status => "online",
:memcached_servers => %w[rails1.ams rails2.ams rails3.ams]
}
)
| Bring GPX access back online
|
diff --git a/spec/lib/heroku_config_manager_spec.rb b/spec/lib/heroku_config_manager_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/heroku_config_manager_spec.rb
+++ b/spec/lib/heroku_config_manager_spec.rb
@@ -0,0 +1,25 @@+require "spec_helper"
+require "heroku_config_manager"
+
+describe HerokuConfigManager do
... | Add specs for heroku config manager
|
diff --git a/spec/link_shrink/shrinker_base_spec.rb b/spec/link_shrink/shrinker_base_spec.rb
index abc1234..def5678 100644
--- a/spec/link_shrink/shrinker_base_spec.rb
+++ b/spec/link_shrink/shrinker_base_spec.rb
@@ -16,8 +16,8 @@ end
describe '#body_parameters' do
- it 'raises error due to other methods not ... | Update base_spec for new body_parameters default return
|
diff --git a/lib/buildkite/rspec/formatter.rb b/lib/buildkite/rspec/formatter.rb
index abc1234..def5678 100644
--- a/lib/buildkite/rspec/formatter.rb
+++ b/lib/buildkite/rspec/formatter.rb
@@ -5,19 +5,24 @@ class Formatter < ::RSpec::Core::Formatters::DocumentationFormatter
::RSpec::Core::Formatters.regist... | Add a max depth so it's not stupid
|
diff --git a/lib/diff_forward_plugin_patch.rb b/lib/diff_forward_plugin_patch.rb
index abc1234..def5678 100644
--- a/lib/diff_forward_plugin_patch.rb
+++ b/lib/diff_forward_plugin_patch.rb
@@ -0,0 +1,16 @@+module DiffForwardPluginPatch
+ def self.included(base)
+ base.send(:include, InstanceMethods)
+ ... | Include a patch to rewrite diff links automatically.
|
diff --git a/lib/habitica_cli/commands/add.rb b/lib/habitica_cli/commands/add.rb
index abc1234..def5678 100644
--- a/lib/habitica_cli/commands/add.rb
+++ b/lib/habitica_cli/commands/add.rb
@@ -4,10 +4,10 @@ module Commands
def self.add(env, type, text)
validate_type(type)
- response = env.api.post('t... | feat: Update to new tasks endpoint
|
diff --git a/lib/project/pro_motion/adapters/pm_cursor_adapter.rb b/lib/project/pro_motion/adapters/pm_cursor_adapter.rb
index abc1234..def5678 100644
--- a/lib/project/pro_motion/adapters/pm_cursor_adapter.rb
+++ b/lib/project/pro_motion/adapters/pm_cursor_adapter.rb
@@ -6,51 +6,16 @@ super()
@cursor = opts.f... | Fix up the interface mismatch from base adapter and let base adapter do the view work.
|
diff --git a/sparql/unquote_literals.ru b/sparql/unquote_literals.ru
index abc1234..def5678 100644
--- a/sparql/unquote_literals.ru
+++ b/sparql/unquote_literals.ru
@@ -6,6 +6,6 @@ }
WHERE {
?s ?p ?_o .
- FILTER (isLiteral(?_o) && strstarts(?_o, "\"") && strends(?_o, "\""))
+ FILTER (isLiteral(?_o) && strstarts(s... | Add explicit cast to string for Virtuoso
|
diff --git a/spec/indent/cython_spec.rb b/spec/indent/cython_spec.rb
index abc1234..def5678 100644
--- a/spec/indent/cython_spec.rb
+++ b/spec/indent/cython_spec.rb
@@ -4,9 +4,12 @@ before(:all) {
vim.command "new"
vim.command "set ft=cython"
- # vim.command("set indentexpr?").should include "GetPythonPE... | Fix cython tests that successful due to Vim segfaulting and vimrunner not handling it
|
diff --git a/spec/support/the_bundle.rb b/spec/support/the_bundle.rb
index abc1234..def5678 100644
--- a/spec/support/the_bundle.rb
+++ b/spec/support/the_bundle.rb
@@ -1,11 +1,9 @@ # frozen_string_literal: true
-require "support/helpers"
require "support/path"
module Spec
class TheBundle
- include Spec::He... | Remove unneded require and inclusion
|
diff --git a/jqtree-rails.gemspec b/jqtree-rails.gemspec
index abc1234..def5678 100644
--- a/jqtree-rails.gemspec
+++ b/jqtree-rails.gemspec
@@ -5,8 +5,8 @@ s.name = File.basename(__FILE__, '.gemspec')
s.version = JqTree::Rails::VERSION
s.platform = Gem::Platform::RUBY
- s.authors = ["Ryan Sc... | Add Mario User to gem owners
|
diff --git a/lib/spaux/chef/default_client.rb b/lib/spaux/chef/default_client.rb
index abc1234..def5678 100644
--- a/lib/spaux/chef/default_client.rb
+++ b/lib/spaux/chef/default_client.rb
@@ -0,0 +1,8 @@+config_file ::File.join('@work_dir', 'client.rb')
+cache_path ::File.join('@work_dir', '.chef')
+client_... | Add default chef-client configuration file
|
diff --git a/rails/spec/helpers/divisions_helper_spec.rb b/rails/spec/helpers/divisions_helper_spec.rb
index abc1234..def5678 100644
--- a/rails/spec/helpers/divisions_helper_spec.rb
+++ b/rails/spec/helpers/divisions_helper_spec.rb
@@ -1,15 +1,11 @@ require 'spec_helper'
-# Specs in this file have access to a helper... | Add commented out test exposing a division parsing bug
|
diff --git a/pakyow-core/lib/core/route_template_defaults.rb b/pakyow-core/lib/core/route_template_defaults.rb
index abc1234..def5678 100644
--- a/pakyow-core/lib/core/route_template_defaults.rb
+++ b/pakyow-core/lib/core/route_template_defaults.rb
@@ -1,5 +1,5 @@ Pakyow::Router.instance.set(:default) {
- template(:re... | Remove `data` from restful template
|
diff --git a/app/helpers/icon_helper.rb b/app/helpers/icon_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/icon_helper.rb
+++ b/app/helpers/icon_helper.rb
@@ -1,7 +1,6 @@ # frozen_string_literal: true
module IconHelper
-
def ion_icon(name, html_class = '')
"<i class='ion ion-#{name} #{html_class}'>... | Fix extra empty line after module beginning
Rubocop rule: Layout/EmptyLinesAroundModuleBody: Extra empty line detected at module body beginning
|
diff --git a/app/lib/http_connection.rb b/app/lib/http_connection.rb
index abc1234..def5678 100644
--- a/app/lib/http_connection.rb
+++ b/app/lib/http_connection.rb
@@ -18,23 +18,23 @@ def get(*args)
__getobj__.get(*args)
- rescue Faraday::Error::ResourceNotFound
+ rescue Faraday::ResourceNotFound
raise... | Fix breaking change in Faraday
|
diff --git a/tasks/hoe.rb b/tasks/hoe.rb
index abc1234..def5678 100644
--- a/tasks/hoe.rb
+++ b/tasks/hoe.rb
@@ -31,6 +31,7 @@
p.clean_globs |= GEM_CLEAN
p.spec_extras = GEM_EXTRAS if GEM_EXTRAS
+ p.need_tar = false
GEM_DEPENDENCIES.each do |dep|
p.extra_deps << dep
| [jdbc_drivers] Remove tar requirement to placate Windows
Signed-off-by: Alex Coles <60c6d277a8bd81de7fdde19201bf9c58a3df08f4@alexcolesportfolio.com>
|
diff --git a/tayu.gemspec b/tayu.gemspec
index abc1234..def5678 100644
--- a/tayu.gemspec
+++ b/tayu.gemspec
@@ -1,15 +1,15 @@ Gem::Specification.new do |s|
s.name = 'tayu'
- s.version = '0.0.2'
- s.date = '2012-11-09'
- s.summary = "Integrates PuppetDB with Rundeck"
- s.description = "Prov... | Prepare gemspec file for new version
|
diff --git a/test/boot.rb b/test/boot.rb
index abc1234..def5678 100644
--- a/test/boot.rb
+++ b/test/boot.rb
@@ -15,7 +15,8 @@ PLUGIN_ROOT = pwd + '..'
ADAPTER = ENV['DB'] || 'mysql'
-$LOAD_PATH << (PLUGIN_ROOT + 'lib') << (PLUGIN_ROOT + 'test/models')
+$LOAD_PATH << (PLUGIN_ROOT + 'lib')
+$LOAD_PATH << (PLUGIN_ROOT... | Split the LOAD_PATH additions in 2 lines (readability)
|
diff --git a/test/arelastic/filters/filter_test.rb b/test/arelastic/filters/filter_test.rb
index abc1234..def5678 100644
--- a/test/arelastic/filters/filter_test.rb
+++ b/test/arelastic/filters/filter_test.rb
@@ -1,7 +1,7 @@ require 'helper'
class Arelastic::FilterTest < Minitest::Test
- def test_or
+ def test_and... | Swap and & or test names |
diff --git a/test/jobs/populate_issues_job_test.rb b/test/jobs/populate_issues_job_test.rb
index abc1234..def5678 100644
--- a/test/jobs/populate_issues_job_test.rb
+++ b/test/jobs/populate_issues_job_test.rb
@@ -21,7 +21,7 @@
test "#populate_multi_issues creates issues" do
repo = repos(:issue_triage_sandbox)
... | Delete all jobs, don't destroy in test
|
diff --git a/test/unit/compute/test_collections.rb b/test/unit/compute/test_collections.rb
index abc1234..def5678 100644
--- a/test/unit/compute/test_collections.rb
+++ b/test/unit/compute/test_collections.rb
@@ -3,7 +3,7 @@ class UnitTestCollections < MiniTest::Test
def setup
Fog.mock!
- @client = Fog::Comp... | Add parameters to client mock to work without .fog
|
diff --git a/tools/check_interreplay_violations.rb b/tools/check_interreplay_violations.rb
index abc1234..def5678 100644
--- a/tools/check_interreplay_violations.rb
+++ b/tools/check_interreplay_violations.rb
@@ -0,0 +1,27 @@+#!/usr/bin/ruby
+
+# This script parses mcs_finder.log to infer which subsequences ended in
+#... | Add temp tool for inferring which interreplay resulted in violation
|
diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/user_mailer.rb
+++ b/app/mailers/user_mailer.rb
@@ -8,10 +8,6 @@ def confirmation_instructions user
sendgrid_category 'Welcome'
@user = user
- puts "Email: #{@user.email}"
- puts "Token... | Remove puts and method call.
|
diff --git a/app/models/data_average.rb b/app/models/data_average.rb
index abc1234..def5678 100644
--- a/app/models/data_average.rb
+++ b/app/models/data_average.rb
@@ -1,5 +1,4 @@ class DataAverage
-
def self.calculate!(identified_by, timeslot)
last = DataStore.from(identified_by, timeslot).last
@@ -24,7 +2... | Fix type in calculate next average
|
diff --git a/app/models/policy_group.rb b/app/models/policy_group.rb
index abc1234..def5678 100644
--- a/app/models/policy_group.rb
+++ b/app/models/policy_group.rb
@@ -20,7 +20,8 @@
searchable title: :name,
link: :search_link,
- content: :summary_or_name
+ content: :summary_or... | Fix policy group search description
|
diff --git a/app/models/relationship.rb b/app/models/relationship.rb
index abc1234..def5678 100644
--- a/app/models/relationship.rb
+++ b/app/models/relationship.rb
@@ -24,6 +24,11 @@ end
def ensure_unique_relationship
+ ensure_unique_caretaker if caretaker?
errors.add_to_base "These two people already... | Add check to ensure caretaker is unique when adding to a person.
|
diff --git a/bindings/ruby/satsolver.rb b/bindings/ruby/satsolver.rb
index abc1234..def5678 100644
--- a/bindings/ruby/satsolver.rb
+++ b/bindings/ruby/satsolver.rb
@@ -8,6 +8,3 @@
require 'satsolver/covenant'
require 'satsolver/dump'
-require 'satsolver/job'
-require 'satsolver/request'
-require 'satsolver/ruleinfo... | Remove includes of obsoleted files
Most 'to_s' type functions are now provided in C code for all languages.
|
diff --git a/lib/circleci/http.rb b/lib/circleci/http.rb
index abc1234..def5678 100644
--- a/lib/circleci/http.rb
+++ b/lib/circleci/http.rb
@@ -1,3 +1,5 @@+# encoding: utf-8
+
module CircleCi
class Http # @private
| Add utf-8 magic encoding comment
|
diff --git a/lib/poke/controls.rb b/lib/poke/controls.rb
index abc1234..def5678 100644
--- a/lib/poke/controls.rb
+++ b/lib/poke/controls.rb
@@ -5,7 +5,8 @@ BUTTONS = { up: Gosu::KbUp,
down: Gosu::KbDown,
left: Gosu::KbLeft,
- right: Gosu::KbRight }
+ right... | Add :q to Controls::BUTTONS constant
|
diff --git a/lib/scrapr/github.rb b/lib/scrapr/github.rb
index abc1234..def5678 100644
--- a/lib/scrapr/github.rb
+++ b/lib/scrapr/github.rb
@@ -6,6 +6,9 @@ base_uri 'https://api.github.com'
basic_auth ENV['GH_USER'], ENV['GH_PASS']
-
+
+ def get_user(username)
+ self.class.get("/users/#{username... | Add method to get a single user.
|
diff --git a/rslp.gemspec b/rslp.gemspec
index abc1234..def5678 100644
--- a/rslp.gemspec
+++ b/rslp.gemspec
@@ -4,7 +4,7 @@ Gem::Specification.new do |gem|
gem.name = 'rslp'
gem.version = '0.1.0'
- gem.license = 'Apache 2.0'
+ gem.license = 'Apache-2.0'
gem.author = 'Daniel J. Berger'
... | Fix license name (missing hyphen) and remove versioning for Rake.
|
diff --git a/app/models/composition.rb b/app/models/composition.rb
index abc1234..def5678 100644
--- a/app/models/composition.rb
+++ b/app/models/composition.rb
@@ -2,5 +2,10 @@ belongs_to :map
belongs_to :user
+ has_many :player_selections
+ has_many :player_heroes, through: :player_selections
+ has_many :pl... | Add some relations to Composition for players
|
diff --git a/app/models/development.rb b/app/models/development.rb
index abc1234..def5678 100644
--- a/app/models/development.rb
+++ b/app/models/development.rb
@@ -16,6 +16,8 @@
STATUSES = [:projected, :planning, :in_construction, :completed].freeze
enumerize :status, in: STATUSES, predicates: true
+
+ seriali... | Add serializer to get walkscore JSON string as a hash
|
diff --git a/app/models/wine_region.rb b/app/models/wine_region.rb
index abc1234..def5678 100644
--- a/app/models/wine_region.rb
+++ b/app/models/wine_region.rb
@@ -1,7 +1,7 @@ class WineRegion < ApplicationRecord
validates_presence_of :name
belongs_to :country
- belongs_to :state
+ belongs_to :state, optional:... | Add optional: true to the WineRegion model for belongs_to state assocciation
|
diff --git a/test/test_rails3_integration.rb b/test/test_rails3_integration.rb
index abc1234..def5678 100644
--- a/test/test_rails3_integration.rb
+++ b/test/test_rails3_integration.rb
@@ -17,7 +17,7 @@ test_suite_output = `rake test`
exit_status = $?
- assert exit_status.success?, "Rails 3 app's test... | Include rails3 test suite output on failure
|
diff --git a/test/unit/action_mailer_test.rb b/test/unit/action_mailer_test.rb
index abc1234..def5678 100644
--- a/test/unit/action_mailer_test.rb
+++ b/test/unit/action_mailer_test.rb
@@ -0,0 +1,57 @@+require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
+
+class ActionMailerTest < Test::Unit::TestCase
... | Add missing ActionMailer test from last commit
|
diff --git a/thor.gemspec b/thor.gemspec
index abc1234..def5678 100644
--- a/thor.gemspec
+++ b/thor.gemspec
@@ -13,6 +13,13 @@ spec.homepage = "http://whatisthor.com/"
spec.licenses = %w(MIT)
spec.name = "thor"
+ spec.metadata = {
+ "bug_tracker_uri" => "https://github.com/erikhuda/thor/issues",
+ "chan... | Add project metadata to the gemspec
As per https://guides.rubygems.org/specification-reference/#metadata,
add metadata to the gemspec file. This'll allow people to more easily
access the source code, raise issues and read the changelog. These
`bug_tracker_uri`, `changelog_uri`, `documentation_uri`,
`source_code_uri`, ... |
diff --git a/Casks/appcode.rb b/Casks/appcode.rb
index abc1234..def5678 100644
--- a/Casks/appcode.rb
+++ b/Casks/appcode.rb
@@ -1,6 +1,6 @@ cask :v1 => 'appcode' do
- version '3.1'
- sha256 '88c07d17b450f4ee4adfbe8ab412467e6b3148b36163257c194b1a099c33e0ee'
+ version '3.1.1'
+ sha256 'f549e0fdfb7dcd2a1553ca452a75c1... | Update AppCode to version 3.1.1
SHA has also been updated.
|
diff --git a/GPUImage.podspec b/GPUImage.podspec
index abc1234..def5678 100644
--- a/GPUImage.podspec
+++ b/GPUImage.podspec
@@ -2,15 +2,26 @@ s.name = 'GPUImage'
s.version = '0.1.2'
s.license = 'BSD'
- s.platform = :ios, '5.0'
s.summary = 'An open source iOS framework for GPU-based image and video p... | Add OS X support to Podspec. |
diff --git a/spec/support/shared_examples_for_achievement.rb b/spec/support/shared_examples_for_achievement.rb
index abc1234..def5678 100644
--- a/spec/support/shared_examples_for_achievement.rb
+++ b/spec/support/shared_examples_for_achievement.rb
@@ -16,4 +16,18 @@ described_class.title.should_not be_nil
des... | Add check if achievement has bubble parameters
|
diff --git a/lib/specinfra/command/freebsd/v10/package.rb b/lib/specinfra/command/freebsd/v10/package.rb
index abc1234..def5678 100644
--- a/lib/specinfra/command/freebsd/v10/package.rb
+++ b/lib/specinfra/command/freebsd/v10/package.rb
@@ -8,6 +8,18 @@ end
end
+ alias :check_is_installed_by_pkg :check_... | Add check_is_installed_by_[rpm, yum] for FreeBSD 10
|
diff --git a/spec/views/releases/index.html.haml_spec.rb b/spec/views/releases/index.html.haml_spec.rb
index abc1234..def5678 100644
--- a/spec/views/releases/index.html.haml_spec.rb
+++ b/spec/views/releases/index.html.haml_spec.rb
@@ -1,5 +1,10 @@ require 'rails_helper'
RSpec.describe "releases/index.html.haml", t... | Add test for index view
|
diff --git a/config/initializers/01_configure_from_env.rb b/config/initializers/01_configure_from_env.rb
index abc1234..def5678 100644
--- a/config/initializers/01_configure_from_env.rb
+++ b/config/initializers/01_configure_from_env.rb
@@ -13,9 +13,7 @@ end
if ENV['QUERY_CONCURRENCY']
- Pancakes::Config.from_env :... | Revert "Correct massive brain fart re: concurrency level setup."
This reverts commit 867d2373ff21a405bee1cefb8ff5ac7caadbaf6d.
|
diff --git a/db/migrate/20130806204555_scope_cms_learning_and_sniffer_in_element_type.rb b/db/migrate/20130806204555_scope_cms_learning_and_sniffer_in_element_type.rb
index abc1234..def5678 100644
--- a/db/migrate/20130806204555_scope_cms_learning_and_sniffer_in_element_type.rb
+++ b/db/migrate/20130806204555_scope_cms... | Migrate type to use scope
|
diff --git a/lib/airplay/protocol.rb b/lib/airplay/protocol.rb
index abc1234..def5678 100644
--- a/lib/airplay/protocol.rb
+++ b/lib/airplay/protocol.rb
@@ -10,15 +10,25 @@ @http.set_debug_output($stdout) if ENV.has_key?('HTTP_DEBUG')
end
- def put(resource, body = nil, headers = {})
- @request = Net::HTTP... | Add simplified requests for Airplay::Protocol
|
diff --git a/lib/ducktrap/params_hash/string/url_encoded.rb b/lib/ducktrap/params_hash/string/url_encoded.rb
index abc1234..def5678 100644
--- a/lib/ducktrap/params_hash/string/url_encoded.rb
+++ b/lib/ducktrap/params_hash/string/url_encoded.rb
@@ -1,4 +1,4 @@-module Ducktrap
+class Ducktrap
class ParamsHash
cl... | Fix toplevel class vs module
|
diff --git a/lib/docs/scrapers/cmake.rb b/lib/docs/scrapers/cmake.rb
index abc1234..def5678 100644
--- a/lib/docs/scrapers/cmake.rb
+++ b/lib/docs/scrapers/cmake.rb
@@ -22,7 +22,7 @@ HTML
version '3.6' do
- self.release = '3.6.0'
+ self.release = '3.6.2'
self.base_url = 'https://cmake.org/cm... | Update CMake documentation (3.6.2, 3.5.2)
|
diff --git a/lib/facter/java_version.rb b/lib/facter/java_version.rb
index abc1234..def5678 100644
--- a/lib/facter/java_version.rb
+++ b/lib/facter/java_version.rb
@@ -14,10 +14,6 @@ Facter.add(:java_version) do
setcode do
t_java = Facter::Util::Resolution.exec("java -version 2>&1")
- if t_java.nil?
- ... | Fix variable name, remove nil logic
If Java is not present, we should return nil |
diff --git a/test/facebook_canvas/middleware_test.rb b/test/facebook_canvas/middleware_test.rb
index abc1234..def5678 100644
--- a/test/facebook_canvas/middleware_test.rb
+++ b/test/facebook_canvas/middleware_test.rb
@@ -0,0 +1,91 @@+require 'test_helper'
+
+class FacebookCanvas::MiddlewareTest < ActiveSupport::TestCas... | Add unit tests for FacebookCanvas::Middleware
|
diff --git a/test/lib/troo/presenters/member_test.rb b/test/lib/troo/presenters/member_test.rb
index abc1234..def5678 100644
--- a/test/lib/troo/presenters/member_test.rb
+++ b/test/lib/troo/presenters/member_test.rb
@@ -10,7 +10,9 @@ before do
@card = Fabricate(:card,
external... | Add more testing for Presenters::Member. |
diff --git a/lib/rollbar/encoding.rb b/lib/rollbar/encoding.rb
index abc1234..def5678 100644
--- a/lib/rollbar/encoding.rb
+++ b/lib/rollbar/encoding.rb
@@ -19,7 +19,7 @@ require 'rollbar/encoding/encoder'
Rollbar::Encoding.encoding_class = Rollbar::Encoding::Encoder
else
+ require 'rollbar/encoding/legacy_encod... | Fix require order for Encoding module.
|
diff --git a/lib/sub_diff/builder.rb b/lib/sub_diff/builder.rb
index abc1234..def5678 100644
--- a/lib/sub_diff/builder.rb
+++ b/lib/sub_diff/builder.rb
@@ -8,7 +8,7 @@ end
def diff(*args, &block)
- builder.diff(*args, &block)
+ adapter.diff(*args, &block)
collection
end
@@ -22,15 +22... | Rename a variable for clarity
|
diff --git a/lib/tasks/uploader.rake b/lib/tasks/uploader.rake
index abc1234..def5678 100644
--- a/lib/tasks/uploader.rake
+++ b/lib/tasks/uploader.rake
@@ -7,7 +7,7 @@
namespace :du do
desc 'uploader test'
- task :uploader, [:name, :host] => :environment do |t, args|
+ task :uploader, [:name, :host, :token] => ... | Add token as argument to task
|
diff --git a/lib/tic_tac_toe/game.rb b/lib/tic_tac_toe/game.rb
index abc1234..def5678 100644
--- a/lib/tic_tac_toe/game.rb
+++ b/lib/tic_tac_toe/game.rb
@@ -29,6 +29,9 @@ end
def do_turn
+ @console.puts "\nIt is the #{@to_play}'s move.'"
+ @console.puts @board.board_to_string
+ @console.puts
... | Print the board before every turn
|
diff --git a/test/features/support/services/svc/user.rb b/test/features/support/services/svc/user.rb
index abc1234..def5678 100644
--- a/test/features/support/services/svc/user.rb
+++ b/test/features/support/services/svc/user.rb
@@ -0,0 +1,45 @@+# encoding: UTF-8
+
+require 'net/http'
+require 'uri'
+require 'json'
+re... | Add SVC::User services exists? and get
|
diff --git a/spec/controllers/best_boy_controller_spec.rb b/spec/controllers/best_boy_controller_spec.rb
index abc1234..def5678 100644
--- a/spec/controllers/best_boy_controller_spec.rb
+++ b/spec/controllers/best_boy_controller_spec.rb
@@ -1,24 +1,22 @@-require "spec_helper"
+require 'spec_helper'
describe BestBoyC... | Use let instead of before block
|
diff --git a/spec/lib/under_fire/album_toc_search_spec.rb b/spec/lib/under_fire/album_toc_search_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/under_fire/album_toc_search_spec.rb
+++ b/spec/lib/under_fire/album_toc_search_spec.rb
@@ -27,7 +27,7 @@ it "returns the correct query" do
subject.query.mu... | Fix error in TOC search spec
|
diff --git a/spec/tty/table/renderer/basic/filter_spec.rb b/spec/tty/table/renderer/basic/filter_spec.rb
index abc1234..def5678 100644
--- a/spec/tty/table/renderer/basic/filter_spec.rb
+++ b/spec/tty/table/renderer/basic/filter_spec.rb
@@ -0,0 +1,53 @@+# -*- encoding: utf-8 -*-
+
+require 'spec_helper'
+
+describe TTY... | Add tests for renderer filter option.
|
diff --git a/db/migrate/20130416004342_make_url_longer.rb b/db/migrate/20130416004342_make_url_longer.rb
index abc1234..def5678 100644
--- a/db/migrate/20130416004342_make_url_longer.rb
+++ b/db/migrate/20130416004342_make_url_longer.rb
@@ -1,6 +1,6 @@ class MakeUrlLonger < ActiveRecord::Migration
def up
- change... | Remove limit for postgres's sake
|
diff --git a/lib/cb/circuit_breaker.rb b/lib/cb/circuit_breaker.rb
index abc1234..def5678 100644
--- a/lib/cb/circuit_breaker.rb
+++ b/lib/cb/circuit_breaker.rb
@@ -4,19 +4,22 @@ @last_failure_time = nil
end
- def execute
+ def execute(&block)
update_state
raise Cb::CircuitBrokenException if @sta... | Move yielding to helper method |
diff --git a/lib/cb/utils/validator.rb b/lib/cb/utils/validator.rb
index abc1234..def5678 100644
--- a/lib/cb/utils/validator.rb
+++ b/lib/cb/utils/validator.rb
@@ -14,7 +14,7 @@
begin
json = JSON.parse(response.response.body)
- if json[json.keys[0]].empty?
+ if json.keys.any? && json[jso... | Check if keys exist before accessing
|
diff --git a/lib/configuration/yaml.rb b/lib/configuration/yaml.rb
index abc1234..def5678 100644
--- a/lib/configuration/yaml.rb
+++ b/lib/configuration/yaml.rb
@@ -26,13 +26,13 @@ end
def generate_segment(segment_config)
- segment_style = generate_style(segment_config['style'])
+ segment_style = generate_... | Remove useless parenthesis add white spaces
|
diff --git a/lib/hubdown/cli_parser.rb b/lib/hubdown/cli_parser.rb
index abc1234..def5678 100644
--- a/lib/hubdown/cli_parser.rb
+++ b/lib/hubdown/cli_parser.rb
@@ -9,10 +9,10 @@ :long => "--output OUTPUT",
:description => "Name of the file to write the converted markdown into"
- option :preview,
- :shor... | Switch params to -w for wrap
Decided that using bcat internally was a bad idea... wrap allows for a user to pipe the output to bcat
|
diff --git a/lib/modules/ga_tracker.rb b/lib/modules/ga_tracker.rb
index abc1234..def5678 100644
--- a/lib/modules/ga_tracker.rb
+++ b/lib/modules/ga_tracker.rb
@@ -0,0 +1,48 @@+module GaTracker
+ DIMENSIONS = {
+ "IP": 1,
+ "user_id": 2,
+ "organisation_id": 3,
+ "country_iso_code": 4,
+ "method_name":... | Add module for GA tracking using custom dimensions and metrics
|
diff --git a/lib/pad_utils/pad_menu.rb b/lib/pad_utils/pad_menu.rb
index abc1234..def5678 100644
--- a/lib/pad_utils/pad_menu.rb
+++ b/lib/pad_utils/pad_menu.rb
@@ -1,9 +1,9 @@ module PadUtils
- # Prompts user with a cli yes/no menu. Returns true or false.
+ # Prompt user with a cli yes/no menu. Returns true or fal... | Add a cli multiple choice menu builder
|
diff --git a/lib/postgres_db_driver.rb b/lib/postgres_db_driver.rb
index abc1234..def5678 100644
--- a/lib/postgres_db_driver.rb
+++ b/lib/postgres_db_driver.rb
@@ -4,7 +4,7 @@
class PostgresDbDriver < ActiveRecordDbDriver
def create_schema(schema_name)
- if ActiveRecord::Base.connection.select_all("SELEC... | Remove some ActiveRecord guff from driver
|
diff --git a/lib/superstore/railtie.rb b/lib/superstore/railtie.rb
index abc1234..def5678 100644
--- a/lib/superstore/railtie.rb
+++ b/lib/superstore/railtie.rb
@@ -6,8 +6,14 @@
initializer "superstore.config" do |app|
ActiveSupport.on_load :superstore do
- pathnames = [Rails.root.join('config', 'su... | Read from cassandra.yml first, then superstore.yml
|
diff --git a/OBSlider.podspec b/OBSlider.podspec
index abc1234..def5678 100644
--- a/OBSlider.podspec
+++ b/OBSlider.podspec
@@ -0,0 +1,14 @@+Pod::Spec.new do |s|
+ s.name = 'OBSlider'
+ s.version = '1.1.0'
+ s.license = 'MIT'
+ s.summary = 'A UISlider subclass that adds variable scrubbing speeds.'
+ s.home... | Add Podspec file to this repository for reference
|
diff --git a/capistrano-jetty.gemspec b/capistrano-jetty.gemspec
index abc1234..def5678 100644
--- a/capistrano-jetty.gemspec
+++ b/capistrano-jetty.gemspec
@@ -1,7 +1,6 @@ # coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
-require 'capistrano/jetty/ver... | Remove require for removed version file
|
diff --git a/casing.gemspec b/casing.gemspec
index abc1234..def5678 100644
--- a/casing.gemspec
+++ b/casing.gemspec
@@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'casing'
- s.version = '0.3.0'
+ s.version = '0.3.1'
s.summary = 'Convert the case of strings, symbols, and hash ... | Package version is increased from 0.3.0 to 0.3.1
|
diff --git a/torm.gemspec b/torm.gemspec
index abc1234..def5678 100644
--- a/torm.gemspec
+++ b/torm.gemspec
@@ -26,6 +26,6 @@
# Defaults from generating the gemspec
spec.add_development_dependency 'bundler', '~> 1.7'
- spec.add_development_dependency 'rake', '~> 10.0'
+ spec.add_development_dependency 'rake',... | Update rake requirement from ~> 10.0 to ~> 12.3
Updates the requirements on [rake](https://github.com/ruby/rake) to permit the latest version.
- [Release notes](https://github.com/ruby/rake/releases)
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc)
- [Commits](https://github.com/ruby/rake/compare/r... |
diff --git a/db/migrate/20140708123314_index_role_assignments_filtered_fields.rb b/db/migrate/20140708123314_index_role_assignments_filtered_fields.rb
index abc1234..def5678 100644
--- a/db/migrate/20140708123314_index_role_assignments_filtered_fields.rb
+++ b/db/migrate/20140708123314_index_role_assignments_filtered_f... | Speed up role assignments fetch
(ActionItem3197)
|
diff --git a/ptolemy.gemspec b/ptolemy.gemspec
index abc1234..def5678 100644
--- a/ptolemy.gemspec
+++ b/ptolemy.gemspec
@@ -14,4 +14,6 @@ gem.name = "ptolemy"
gem.require_paths = ["lib"]
gem.version = Ptolemy::VERSION
+
+ gem.add_dependency "treetop"
end
| Add Treetop as a dependency.
|
diff --git a/app/models/spree/gateway/pay_pal_express.rb b/app/models/spree/gateway/pay_pal_express.rb
index abc1234..def5678 100644
--- a/app/models/spree/gateway/pay_pal_express.rb
+++ b/app/models/spree/gateway/pay_pal_express.rb
@@ -5,7 +5,7 @@ preference :password, :string
preference :signature, :string
... | Allow mode to be set to 'live'
|
diff --git a/yard.gemspec b/yard.gemspec
index abc1234..def5678 100644
--- a/yard.gemspec
+++ b/yard.gemspec
@@ -16,7 +16,7 @@ s.homepage = "http://yardoc.org"
s.platform = Gem::Platform::RUBY
s.files = Dir.glob("{docs,bin,lib,spec,templates,benchmarks}/**/*") +
- ['LICENSE', 'LEGAL', 'READ... | Add CHANGELOG.md to gemspec files
|
diff --git a/view_data.rb b/view_data.rb
index abc1234..def5678 100644
--- a/view_data.rb
+++ b/view_data.rb
@@ -24,3 +24,6 @@ end
puts "average sentence length #{l.inject(:+) / 100.0}"
+
+lexicon_density = hash.map {|key,internal| internal.keys.count * 1.0 / hash.keys.count}.inject(:+) / hash.keys.count
+puts "lexi... | Add a script to get the "density" of the lexicon.
Signed-off-by: Sam Phippen <e5a09176608998a68778e11d5021c871e8fae93c@googlemail.com>
|
diff --git a/db/migrate/20150417115252_create_questions.rb b/db/migrate/20150417115252_create_questions.rb
index abc1234..def5678 100644
--- a/db/migrate/20150417115252_create_questions.rb
+++ b/db/migrate/20150417115252_create_questions.rb
@@ -3,7 +3,7 @@ create_table :questions do |t|
t.string :question_de... | Remove null false validation on answer for question migration
|
diff --git a/commands/helpful/wiki.rb b/commands/helpful/wiki.rb
index abc1234..def5678 100644
--- a/commands/helpful/wiki.rb
+++ b/commands/helpful/wiki.rb
@@ -17,17 +17,21 @@ if list == 'armor'
event << "<http://monsterhunteronline.in/armor/?search=#{search}>"
else
- wiki = IO.readlines("bo... | Fix monsters search not outputting anything
|
diff --git a/app/values/scanned_resource_pdf/renderer.rb b/app/values/scanned_resource_pdf/renderer.rb
index abc1234..def5678 100644
--- a/app/values/scanned_resource_pdf/renderer.rb
+++ b/app/values/scanned_resource_pdf/renderer.rb
@@ -4,7 +4,7 @@ delegate :manifest_builder, to: :scanned_resource_pdf
def init... | Make necessary directories for PDF derivative.
|
diff --git a/app/views/api/v1/orders/_order.json.jbuilder b/app/views/api/v1/orders/_order.json.jbuilder
index abc1234..def5678 100644
--- a/app/views/api/v1/orders/_order.json.jbuilder
+++ b/app/views/api/v1/orders/_order.json.jbuilder
@@ -1,3 +1,4 @@+json.id order.id
json.user order.user_id
json.status order.status... | Add id to order view partial
|
diff --git a/example/setup-exp.rb b/example/setup-exp.rb
index abc1234..def5678 100644
--- a/example/setup-exp.rb
+++ b/example/setup-exp.rb
@@ -0,0 +1,25 @@+defProperty('duration', 60*30, "Duration of the experiment")
+
+rt = defTopology("nodes", 'node1-1.grid.orbit-lab.org,node1-2.grid.orbit-lab.org,node1-3.grid.orbi... | Add example experiment to bring up all wireless resources.
|
diff --git a/example/template2.rb b/example/template2.rb
index abc1234..def5678 100644
--- a/example/template2.rb
+++ b/example/template2.rb
@@ -5,7 +5,7 @@ }
# Knock out the amazon builder as it is not needed by this template
- t.builders['amazon'] = '--'
+ t.builders['amazon'] = '~~'
# Define the prov... | Update template to reflect default knockout prefix change
|
diff --git a/Ambly.podspec b/Ambly.podspec
index abc1234..def5678 100644
--- a/Ambly.podspec
+++ b/Ambly.podspec
@@ -1,7 +1,7 @@ Pod::Spec.new do |s|
s.name = 'Ambly'
s.version = '0.3.0'
- s.license = { :type => 'Eclipse Public License 1.0', :file => 'LICENSE' }
+ s.... | Update license file in podspec
|
diff --git a/mongoid_genesis.gemspec b/mongoid_genesis.gemspec
index abc1234..def5678 100644
--- a/mongoid_genesis.gemspec
+++ b/mongoid_genesis.gemspec
@@ -2,17 +2,17 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
- s.name = "mongoid_genesis"
+ s.name = "mongoid-genesi... | Use dash in the gem name
|
diff --git a/db_nazi.gemspec b/db_nazi.gemspec
index abc1234..def5678 100644
--- a/db_nazi.gemspec
+++ b/db_nazi.gemspec
@@ -20,5 +20,4 @@ gem.add_development_dependency 'ritual', '~> 0.4.1'
gem.add_development_dependency 'minitest', '~> 3.1.0'
gem.add_development_dependency 'temporaries', '~> 0.3.0'
- gem.add... | Remove sqlite3 from gemspec so Travis can run jdbcmysql build.
|
diff --git a/mtg_search_parser.gemspec b/mtg_search_parser.gemspec
index abc1234..def5678 100644
--- a/mtg_search_parser.gemspec
+++ b/mtg_search_parser.gemspec
@@ -8,8 +8,7 @@ spec.version = MtgSearchParser::VERSION
spec.authors = ["Donald Plummer"]
spec.email = ["donald.plummer@gmail.com"]... | Add summary and homepage to gemspec
|
diff --git a/test/resque/test_helper.rb b/test/resque/test_helper.rb
index abc1234..def5678 100644
--- a/test/resque/test_helper.rb
+++ b/test/resque/test_helper.rb
@@ -1,5 +1,3 @@-require 'minitest/autorun'
-
require 'simplecov'
SimpleCov.start do
add_filter do |source_file|
@@ -9,6 +7,8 @@
require 'coveralls'
... | Move MiniTest initialization after SimpleCov.
This ensures accurate reporting.
|
diff --git a/yard.gemspec b/yard.gemspec
index abc1234..def5678 100644
--- a/yard.gemspec
+++ b/yard.gemspec
@@ -10,6 +10,7 @@ s.summary = "A documentation tool for consistent and usable documentation in Ruby."
s.files = Dir.glob("{bin,lib,test,templates}/**/*") + ['LICENSE.txt', 'README.pdf']
s.exec... | Add erubis as gem dep
git-svn-id: d05f03cd96514e1016f6c27423275d989868e1f9@798 a99b2113-df67-db11-8bcc-000c76553aea
|
diff --git a/MCHTTPRequestLogger.podspec b/MCHTTPRequestLogger.podspec
index abc1234..def5678 100644
--- a/MCHTTPRequestLogger.podspec
+++ b/MCHTTPRequestLogger.podspec
@@ -11,5 +11,5 @@ s.ios.deployment_target = '5.0'
s.osx.deployment_target = '10.7'
- s.dependency 'AFNetworking', '>= 1.0'
+ s.dependency 'AFN... | Fix a possible issue with AFNetworking dependency versioning.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.