diff stringlengths 65 26.7k | message stringlengths 7 9.92k |
|---|---|
diff --git a/site/_plugins/sort-by-date.rb b/site/_plugins/sort-by-date.rb
index abc1234..def5678 100644
--- a/site/_plugins/sort-by-date.rb
+++ b/site/_plugins/sort-by-date.rb
@@ -0,0 +1,8 @@+module JekyllBbc6musicaotd
+ class SortByDate < Jekyll::Generator
+ def generate(site)
+ site.data['2014'].sort!{|a,b|... | Sort albums by date before display.
|
diff --git a/spec/factories/user_emails.rb b/spec/factories/user_emails.rb
index abc1234..def5678 100644
--- a/spec/factories/user_emails.rb
+++ b/spec/factories/user_emails.rb
@@ -2,7 +2,7 @@ FactoryBot.define do
base_time = Time.zone.now.to_i
sequence :email do |n|
- "user_#{n}@domain_#{base_time}_name.com"
... | Use hyphen instead of underscore in FactoryBot emails domains.
Underscores are invalid in domain names and fail validation on the login
page.
|
diff --git a/spec/unit/gateway/new_spec.rb b/spec/unit/gateway/new_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/gateway/new_spec.rb
+++ b/spec/unit/gateway/new_spec.rb
@@ -0,0 +1,18 @@+require 'rom/sql/gateway'
+
+RSpec.describe ROM::SQL::Gateway, '#initialize' do
+ subject(:gateway) do
+ ROM::SQL::Gateway... | Add a spec for connecting via option hash
Refs #258
|
diff --git a/TheKeyOAuth2.podspec b/TheKeyOAuth2.podspec
index abc1234..def5678 100644
--- a/TheKeyOAuth2.podspec
+++ b/TheKeyOAuth2.podspec
@@ -1,11 +1,11 @@ Pod::Spec.new do |s|
s.name = "TheKeyOAuth2"
- s.version = "0.5.2"
+ s.version = "0.5.3"
s.summary = "TheKey OAuth2 Client Library... | Switch podspec to github and increase version.
|
diff --git a/core/spec/controllers/spree/products_controller_spec.rb b/core/spec/controllers/spree/products_controller_spec.rb
index abc1234..def5678 100644
--- a/core/spec/controllers/spree/products_controller_spec.rb
+++ b/core/spec/controllers/spree/products_controller_spec.rb
@@ -15,7 +15,7 @@ response.status.s... | Add (s) into product in test description [ci-skip]
|
diff --git a/lib/dm-types/flag.rb b/lib/dm-types/flag.rb
index abc1234..def5678 100644
--- a/lib/dm-types/flag.rb
+++ b/lib/dm-types/flag.rb
@@ -52,6 +52,7 @@
def self.typecast(value, property)
case value
+ when nil then nil
when Array then value.map {|v| v.to_sym}
else value... | Allow Flag property to be nullable.
Signed-off-by: Michael S. Klishin <17b9e1c64588c7fa6419b4d29dc1f4426279ba01@novemberain.com>
|
diff --git a/lib/dtrace/tracer.rb b/lib/dtrace/tracer.rb
index abc1234..def5678 100644
--- a/lib/dtrace/tracer.rb
+++ b/lib/dtrace/tracer.rb
@@ -0,0 +1,35 @@+#
+# Ruby-Dtrace
+# (c) 2007 Chris Andrews <chris@nodnol.org>
+#
+
+# Leopard's ruby-probe is DTracer, Solaris's is Tracer.
+
+class Dtrace
+ class Tracer
+
... | Add simple wrapper around the different ruby-probe classes (Leopard vs stock Joyent build)
git-svn-id: 40196796c19c0e7557af02d93710b150381d7241@94 f5dbc166-08e2-44d3-850c-36126807790f
|
diff --git a/lib/filmbuff/imdb.rb b/lib/filmbuff/imdb.rb
index abc1234..def5678 100644
--- a/lib/filmbuff/imdb.rb
+++ b/lib/filmbuff/imdb.rb
@@ -7,6 +7,7 @@ cache :store => 'memory', :timeout => 120
base_uri 'https://app.imdb.com'
+ format :json
def initialize
@locale = "en_US"
| Make HTTParty explicitly expect JSON
|
diff --git a/lib/rails_open311.rb b/lib/rails_open311.rb
index abc1234..def5678 100644
--- a/lib/rails_open311.rb
+++ b/lib/rails_open311.rb
@@ -31,9 +31,7 @@ jurisdiction_id = api_config['jurisdiction_id']
api_key = api_config['apikey']
- wrapper = Open311::ApiWrapper.from_url(url, api_key, jurisdiction_... | Remove rails logger injection from RailsOpen311. |
diff --git a/lib/squealer/time.rb b/lib/squealer/time.rb
index abc1234..def5678 100644
--- a/lib/squealer/time.rb
+++ b/lib/squealer/time.rb
@@ -1,5 +1,5 @@ class Time
def to_s
- self.strftime("%Y-%m-%d %H:%M:%S %Z")
+ strftime("%Y-%m-%d %H:%M:%S %Z")
end
end
| Remove the redundant, extraneous, pleonasm of self
|
diff --git a/attributes/default.rb b/attributes/default.rb
index abc1234..def5678 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -17,6 +17,6 @@ # limitations under the License.
#
-default['aws']['aws_sdk_version'] = '~> 2.0.22'
+default['aws']['aws_sdk_version'] = '~> 2.2.3'
default['aws']['datab... | Update to SDK version 2.2.3
There's been an enormous number of improvements and bug fixes between
our current release and 2.2.3
|
diff --git a/lib/tasks/velum.rake b/lib/tasks/velum.rake
index abc1234..def5678 100644
--- a/lib/tasks/velum.rake
+++ b/lib/tasks/velum.rake
@@ -1,24 +1,26 @@ # rubocop:disable Metrics/BlockLength
+
namespace :velum do
desc "Create a user"
task :create_user, [:email, :password] => :environment do |_, args|
- ... | Add a rake task for inserting a pillar
Due to redundancy, argument validation of velum:create_user was
abstracted out to a separate function.
|
diff --git a/filewatcher.gemspec b/filewatcher.gemspec
index abc1234..def5678 100644
--- a/filewatcher.gemspec
+++ b/filewatcher.gemspec
@@ -9,7 +9,7 @@
s.authors = ['Thomas Flemming']
s.email = ['thomas.flemming@gmail.com']
- s.homepage = 'http://github.com/thomasfl/filewatcher'
+ s.homepag... | Update home page in gem spec
|
diff --git a/cookbooks/homebrew/recipes/brew.rb b/cookbooks/homebrew/recipes/brew.rb
index abc1234..def5678 100644
--- a/cookbooks/homebrew/recipes/brew.rb
+++ b/cookbooks/homebrew/recipes/brew.rb
@@ -54,5 +54,6 @@ end
brew 'urlview'
brew 'utern'
+brew 'watch'
brew 'whalebrew'
brew 'yarn'
| Install watch command in macOS
|
diff --git a/cookbooks/vim/recipes/default.rb b/cookbooks/vim/recipes/default.rb
index abc1234..def5678 100644
--- a/cookbooks/vim/recipes/default.rb
+++ b/cookbooks/vim/recipes/default.rb
@@ -9,3 +9,29 @@ package 'vim' do
action :install
end
+
+directory '/home/mzp/.vim' do
+ owner 'mzp'
+ group 'mzp'
+ mode '0... | Fix vim recipe: install NeoBundle
|
diff --git a/fuci-travis.gemspec b/fuci-travis.gemspec
index abc1234..def5678 100644
--- a/fuci-travis.gemspec
+++ b/fuci-travis.gemspec
@@ -8,9 +8,9 @@ spec.version = Fuci::Travis::VERSION
spec.authors = ["Dave Jachimiak"]
spec.email = ["dave.jachimiak@gmail.com"]
- spec.description = %q... | Add homepage and summary to gemspec
|
diff --git a/ruby/arrays_drill2.rb b/ruby/arrays_drill2.rb
index abc1234..def5678 100644
--- a/ruby/arrays_drill2.rb
+++ b/ruby/arrays_drill2.rb
@@ -0,0 +1,6 @@+new_array = []
+p new_array
+
+new_array << "J.K. Rowling" << "George R. R. Martin" << "Suzanne Collins" << "Stephanie Meyer" << "J. R. R. Tolkein"
+
+p new_ar... | Add new array and delete array at index 2
|
diff --git a/test/rouge_filter_test.rb b/test/rouge_filter_test.rb
index abc1234..def5678 100644
--- a/test/rouge_filter_test.rb
+++ b/test/rouge_filter_test.rb
@@ -23,8 +23,4 @@ assert doc.css(".highlight-coffeescript").empty?
assert !doc.css(".highlight-ruby").empty?
end
-
- def test_version
- assert_... | Remove test for testing test setup.
|
diff --git a/app/helpers/timestamp_helper.rb b/app/helpers/timestamp_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/timestamp_helper.rb
+++ b/app/helpers/timestamp_helper.rb
@@ -6,7 +6,8 @@ tooltip: tooltip
}
- react_component :Timestamp, props, prerender: true, tag: :span
+ # react_compon... | Stop prerendering relative timestamps, for now
|
diff --git a/app/models/repository/access.rb b/app/models/repository/access.rb
index abc1234..def5678 100644
--- a/app/models/repository/access.rb
+++ b/app/models/repository/access.rb
@@ -3,6 +3,10 @@
OPTIONS = %w[public_r public_rw private_r private_rw]
DEFAULT_OPTION = OPTIONS[0]
+
+ def self.as_read_only(ac... | Move class methods to the top.
|
diff --git a/app/services/downloads_cache.rb b/app/services/downloads_cache.rb
index abc1234..def5678 100644
--- a/app/services/downloads_cache.rb
+++ b/app/services/downloads_cache.rb
@@ -1,23 +1,5 @@ module DownloadsCache
-
- def self.downloads_path(dir)
- "#{Rails.root}/public/downloads/#{dir}"
- end
-
- def s... | Use httparty to invoke cache cleaning on SAPI
|
diff --git a/app/models/action.rb b/app/models/action.rb
index abc1234..def5678 100644
--- a/app/models/action.rb
+++ b/app/models/action.rb
@@ -1,5 +1,6 @@ class Action < ActiveRecord::Base
- PICKUP, PLAY = %w(pickup play)
+ PICKUP = 'pickup'
+ PLAY = 'play'
belongs_to :player
@@ -10,9 +11,7 @@ scope :in_o... | Refactor Action constants for readability
|
diff --git a/app/models/person.rb b/app/models/person.rb
index abc1234..def5678 100644
--- a/app/models/person.rb
+++ b/app/models/person.rb
@@ -9,7 +9,6 @@ has_many :staff_assignments
has_many :staff_campuses, :through => :staff_assignments, :class_name => "Campus", :source => :campus
has_many :staffs
- has_m... | Revert "filter users by active flag"
This reverts commit 534a5270d812fc6b62a7875c9d8bfdc27c1cd35a.
|
diff --git a/gir_ffi-gtk.gemspec b/gir_ffi-gtk.gemspec
index abc1234..def5678 100644
--- a/gir_ffi-gtk.gemspec
+++ b/gir_ffi-gtk.gemspec
@@ -16,7 +16,7 @@ `git ls-files -z`.split("\0")
s.test_files = `git ls-files -z -- test`.split("\0")
- s.add_runtime_dependency('gir_ffi', ['~> 0.13.1'])
+ s.add_runtime_de... | Update gir_ffi to version 0.14.0 |
diff --git a/pathfinder_common.gemspec b/pathfinder_common.gemspec
index abc1234..def5678 100644
--- a/pathfinder_common.gemspec
+++ b/pathfinder_common.gemspec
@@ -15,7 +15,7 @@ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "pathfinder_common"
gem.require_paths = ["lib"]
- ... | Update the gemspec to correctly reference the VERSION constant.
|
diff --git a/spec/cabinet_spec.rb b/spec/cabinet_spec.rb
index abc1234..def5678 100644
--- a/spec/cabinet_spec.rb
+++ b/spec/cabinet_spec.rb
@@ -6,20 +6,20 @@ file_content = (0...50).map{('a'..'z').to_a[rand(26)]}.join
it "should create file" do
- cl.put(file_name, file_content).should eql(file_content.length... | Use == instead of eql() in tests
|
diff --git a/spec/default_spec.rb b/spec/default_spec.rb
index abc1234..def5678 100644
--- a/spec/default_spec.rb
+++ b/spec/default_spec.rb
@@ -2,8 +2,8 @@
describe 'mysql2_chef_gem_test::default' do
let(:chef_run) do
- ChefSpec::ServerRunner.new do |node|
- node.default['mysql2_chef_gem']['resource_name'... | Update the spec for the new test attribute
This spec is 100% useless, but it passes now.
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/arm-none-eabi-gdb.rb b/arm-none-eabi-gdb.rb
index abc1234..def5678 100644
--- a/arm-none-eabi-gdb.rb
+++ b/arm-none-eabi-gdb.rb
@@ -9,6 +9,10 @@ depends_on 'mpfr'
depends_on 'libmpc'
depends_on 'readline'
+
+ # Linux dependencies.
+ depends_on 'python@2' unless OS.mac?
+ depends_on 'guile' unles... | Add python and libguile dependencies for non macos targets.
|
diff --git a/recipes/_mac_os_x.rb b/recipes/_mac_os_x.rb
index abc1234..def5678 100644
--- a/recipes/_mac_os_x.rb
+++ b/recipes/_mac_os_x.rb
@@ -17,4 +17,6 @@ # limitations under the License.
#
-xcode_command_line_tools 'install'
+potentially_at_compile_time do
+ xcode_command_line_tools 'install'
+end
| Allow XCode command line tools to be installed at compile time
|
diff --git a/lib/gumboot/shared_examples/database_schema.rb b/lib/gumboot/shared_examples/database_schema.rb
index abc1234..def5678 100644
--- a/lib/gumboot/shared_examples/database_schema.rb
+++ b/lib/gumboot/shared_examples/database_schema.rb
@@ -0,0 +1,22 @@+RSpec.shared_examples 'Database Schema' do
+ context 'AAF... | Add shared examples to check database schema
Our existing apps don't have the correct collation set in their database
schema, so it's necessary to add a check which ensures we don't regress
once this has been fixed for an application.
|
diff --git a/lib/tasks/migrate_last_comment_created_at.rake b/lib/tasks/migrate_last_comment_created_at.rake
index abc1234..def5678 100644
--- a/lib/tasks/migrate_last_comment_created_at.rake
+++ b/lib/tasks/migrate_last_comment_created_at.rake
@@ -7,7 +7,7 @@ end
Board.find_each do |board|
- last_c... | Correct comment created at data migration |
diff --git a/spec/features/redirects_spec.rb b/spec/features/redirects_spec.rb
index abc1234..def5678 100644
--- a/spec/features/redirects_spec.rb
+++ b/spec/features/redirects_spec.rb
@@ -0,0 +1,17 @@+require 'rails_helper'
+
+describe 'redirects' do
+ it 'no such redirect /go/foo' do
+ visit '/go/foo'
+ expect... | Add spec for the general redirects controller.
|
diff --git a/spec/support/sign_in_helpers.rb b/spec/support/sign_in_helpers.rb
index abc1234..def5678 100644
--- a/spec/support/sign_in_helpers.rb
+++ b/spec/support/sign_in_helpers.rb
@@ -1,18 +1,19 @@ module SignInHelpers
def sign_in(user)
- visit '/users/sign_in'
- fill_in 'Email', :with => user.email
- ... | Use warden helpers rather than capybara walking through signing in for sign_in
|
diff --git a/Casks/baiduinput.rb b/Casks/baiduinput.rb
index abc1234..def5678 100644
--- a/Casks/baiduinput.rb
+++ b/Casks/baiduinput.rb
@@ -0,0 +1,13 @@+class Baiduinput < Cask
+ url 'http://shouji.baidu.com/download/1000e/baiduinput_mac_v3.2_1000e.dmg'
+ homepage 'http://wuxian.baidu.com/input/mac.html'
+ version ... | Add cask for Baidu Input Method.
|
diff --git a/Casks/tunnelbear.rb b/Casks/tunnelbear.rb
index abc1234..def5678 100644
--- a/Casks/tunnelbear.rb
+++ b/Casks/tunnelbear.rb
@@ -15,4 +15,9 @@ postflight do
suppress_move_to_applications
end
+
+ uninstall quit: 'com.tunnelbear.mac.TunnelBear',
+ launchctl: 'com.tunnelbear.mac.tbea... | Add zap stanza for TunnelBear
|
diff --git a/test/models/submission_test.rb b/test/models/submission_test.rb
index abc1234..def5678 100644
--- a/test/models/submission_test.rb
+++ b/test/models/submission_test.rb
@@ -1,6 +1,7 @@ # Encoding: utf-8
require 'test_helper'
+# Test submission model
class SubmissionTest < ActiveSupport::TestCase
# te... | Add header to submission model test
|
diff --git a/rgeo-geojson.gemspec b/rgeo-geojson.gemspec
index abc1234..def5678 100644
--- a/rgeo-geojson.gemspec
+++ b/rgeo-geojson.gemspec
@@ -12,7 +12,7 @@ spec.required_ruby_version = '>= 1.8.7'
spec.files = Dir["lib/**/*.rb", "test/**/*.rb", "*.rdoc", 'LICENSE.txt']
spec.extra_rdoc_files = Dir["*.rdoc"]
- ... | Update gemspe test file list
|
diff --git a/spec/factory_spec.rb b/spec/factory_spec.rb
index abc1234..def5678 100644
--- a/spec/factory_spec.rb
+++ b/spec/factory_spec.rb
@@ -48,4 +48,14 @@ end
end
end
+
+ describe 'talk' do
+ context 'basic' do
+ let(:talk) { FactoryGirl.create(:talk) }
+
+ it 'has a title' do
+ ... | Add spec for talk factory
|
diff --git a/builder/test/cloud-init_spec.rb b/builder/test/cloud-init_spec.rb
index abc1234..def5678 100644
--- a/builder/test/cloud-init_spec.rb
+++ b/builder/test/cloud-init_spec.rb
@@ -1,17 +1,27 @@ require_relative 'spec_helper'
-describe file('/var/lib/cloud/scripts/per-once/regenerate-machine-id') do
- it { s... | Update cloud-init tests to run in mounted SD image
|
diff --git a/hepta-theme.gemspec b/hepta-theme.gemspec
index abc1234..def5678 100644
--- a/hepta-theme.gemspec
+++ b/hepta-theme.gemspec
@@ -18,5 +18,5 @@ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.add_runtime_dependency "jekyll", "~> 3.3"
- spec.add_development_dependency "bu... | Update bundler requirement from ~> 1.12 to ~> 2.0
Updates the requirements on [bundler](https://github.com/bundler/bundler) to permit the latest version.
- [Release notes](https://github.com/bundler/bundler/releases)
- [Changelog](https://github.com/bundler/bundler/blob/master/CHANGELOG.md)
- [Commits](https://github.... |
diff --git a/example/spec/factories/issues.rb b/example/spec/factories/issues.rb
index abc1234..def5678 100644
--- a/example/spec/factories/issues.rb
+++ b/example/spec/factories/issues.rb
@@ -1,8 +1,8 @@ FactoryGirl.define do
factory :issue do
association :project, factory: :project
- association :creator, ... | Fix generated factory to pass spec
|
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index abc1234..def5678 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -0,0 +1,44 @@+# Lightly modified from the Python 2.6.5 formula.
+require 'formula'
+
+class Python3 <Formula
+ url 'http://www.python.org/ftp/python/3.... | Add a formula for Python 3 (specifically 3.1.2).
Based off of the Python 2.6.5 formula. Minor comment tweaks along with adding
an extra performance flag that works under both gcc and LLVM.
Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>
|
diff --git a/lib/arst/node.rb b/lib/arst/node.rb
index abc1234..def5678 100644
--- a/lib/arst/node.rb
+++ b/lib/arst/node.rb
@@ -8,6 +8,7 @@
module Node
+ # TODO: Rename to something more specific... from_raw_tree?
def self.from_options(options)
case options[:type]
when 'module' then ... | Add small TODO note for `ARST::Node`
|
diff --git a/lib/llt/db_handler/tasks.rb b/lib/llt/db_handler/tasks.rb
index abc1234..def5678 100644
--- a/lib/llt/db_handler/tasks.rb
+++ b/lib/llt/db_handler/tasks.rb
@@ -25,8 +25,10 @@ end
desc 'Loads the seed data - UNDUMPED CHANGES WILL BE LOST!'
- task :seed do
- exec "pg_restore --verbose --cl... | Add flexibility to db:seed rake task
Allow to pass a host and further options
|
diff --git a/lib/nats/nuid.rb b/lib/nats/nuid.rb
index abc1234..def5678 100644
--- a/lib/nats/nuid.rb
+++ b/lib/nats/nuid.rb
@@ -0,0 +1,62 @@+module NATS
+ class NUID
+ DIGITS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
+ BASE = 62
+ PREFIX_LENGTH = 12
+ SEQ_LENGTH = 10
+... | Add implementation of NUID inboxes
|
diff --git a/test/test_job_base.rb b/test/test_job_base.rb
index abc1234..def5678 100644
--- a/test/test_job_base.rb
+++ b/test/test_job_base.rb
@@ -5,7 +5,7 @@ class TestJobBase < Test::Unit::TestCase
- class JobE < Batch::Job::Base
+ class JobE < Batch::Job
positional_arg :pos_arg, 'A positional ar... | Update test for Job::Base -> Job change
|
diff --git a/lib/taxjar/configuration.rb b/lib/taxjar/configuration.rb
index abc1234..def5678 100644
--- a/lib/taxjar/configuration.rb
+++ b/lib/taxjar/configuration.rb
@@ -9,7 +9,8 @@ :format,
:proxy,
:user_agent,
- :connection_options ]
+ :connection_options,
+ :api_version ]
... | Add api_version attribute into Configuration
|
diff --git a/profiling/pure/body_framing_with_2k_payload.rb b/profiling/pure/body_framing_with_2k_payload.rb
index abc1234..def5678 100644
--- a/profiling/pure/body_framing_with_2k_payload.rb
+++ b/profiling/pure/body_framing_with_2k_payload.rb
@@ -17,16 +17,17 @@ puts "Doing a warmup run..."
15_000.times { AMQ::Proto... | Switch profiler to stackprof (Ruby 2.1+)
|
diff --git a/libraries/dsl.rb b/libraries/dsl.rb
index abc1234..def5678 100644
--- a/libraries/dsl.rb
+++ b/libraries/dsl.rb
@@ -31,3 +31,8 @@ Chef::Recipe.send(:include, EnterpriseChef::DSL)
Chef::Provider.send(:include, EnterpriseChef::DSL)
Chef::Resource.send(:include, EnterpriseChef::DSL)
+
+# We still have a sma... | Add DSL items to definitions
|
diff --git a/core/app/controllers/users_controller.rb b/core/app/controllers/users_controller.rb
index abc1234..def5678 100644
--- a/core/app/controllers/users_controller.rb
+++ b/core/app/controllers/users_controller.rb
@@ -12,7 +12,7 @@
def activities
respond_to do |format|
- format.json { render json: ... | Return the activites as the correct json
|
diff --git a/spec/features/projects/badges/coverage_spec.rb b/spec/features/projects/badges/coverage_spec.rb
index abc1234..def5678 100644
--- a/spec/features/projects/badges/coverage_spec.rb
+++ b/spec/features/projects/badges/coverage_spec.rb
@@ -0,0 +1,73 @@+require 'spec_helper'
+
+feature 'test coverage badge' do
... | Add feature specs for test coverage badge
|
diff --git a/spec/unit/resource/macos_user_defaults_spec.rb b/spec/unit/resource/macos_user_defaults_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/resource/macos_user_defaults_spec.rb
+++ b/spec/unit/resource/macos_user_defaults_spec.rb
@@ -28,4 +28,18 @@ it "has a default action of install" do
expect(re... | Add specs for the value coerce
Signed-off-by: Tim Smith <764ef62106582a09ed09dfa0b6bff7c05fd7d1e4@chef.io>
|
diff --git a/lib/conway.rb b/lib/conway.rb
index abc1234..def5678 100644
--- a/lib/conway.rb
+++ b/lib/conway.rb
@@ -4,6 +4,12 @@
def initialize
@grid = Grid.new 53, 7
+ end
+
+ def start
+ number_of_living_cells = (grid.width * grid.heigth * 0.2).round
+ # TODO fill closure
+ number_of_living_cells... | Add todo to start method. Also add new methods to check if cell is alive, as well as in/decrement.:
|
diff --git a/app.rb b/app.rb
index abc1234..def5678 100644
--- a/app.rb
+++ b/app.rb
@@ -28,6 +28,7 @@ result = $redis.get("dda:#{params[:command_id]}")
begin
+ logger.info result
result_json = JSON.parse(result)
{status: "ok", result: result_json}.to_json
rescue Exception => e
| Add logger to status endpoint
|
diff --git a/dsd.rb b/dsd.rb
index abc1234..def5678 100644
--- a/dsd.rb
+++ b/dsd.rb
@@ -22,15 +22,16 @@ end
end
-class String
- def to_proc
- eval "Proc.new { |*args| #{self} }"
+def parse_config(h)
+ $a = eval("ObservableArray.new { #{h["statusbar"]["update_code"]} }")
+
+ h["statusbar"]["items... | Implement basic configuration parser. It's ugly but it works.
|
diff --git a/Casks/mamp.rb b/Casks/mamp.rb
index abc1234..def5678 100644
--- a/Casks/mamp.rb
+++ b/Casks/mamp.rb
@@ -3,7 +3,7 @@ homepage 'http://www.mamp.info/en/index.html'
version '3.0.1'
sha256 'd43ff397203bef82f80dd237128026f3acc508cea114d560304e3793ca297e0f'
- install 'MAMP_3.0.1.pkg'
+ install 'MAMP_MA... | Fix MAMP install pkg name
|
diff --git a/lib/event_filter.rb b/lib/event_filter.rb
index abc1234..def5678 100644
--- a/lib/event_filter.rb
+++ b/lib/event_filter.rb
@@ -33,7 +33,7 @@ when TEAM
events.where(action: [Event::JOINED, Event::LEFT, Event::EXPIRED])
when ISSUE
- events.where(action: [Event::CREATED, Event::UPDATED, ... | Add hard coded event type filter
|
diff --git a/lib/cooperator.rb b/lib/cooperator.rb
index abc1234..def5678 100644
--- a/lib/cooperator.rb
+++ b/lib/cooperator.rb
@@ -3,6 +3,9 @@ require 'hashie'
module Cooperator
+ class Context < Hashie::Mash
+ end
+
module ClassMethods
def perform(context = nil)
action = new context
@@ -15,11 +18... | Use our own class for defining the context.
|
diff --git a/Kugel.podspec b/Kugel.podspec
index abc1234..def5678 100644
--- a/Kugel.podspec
+++ b/Kugel.podspec
@@ -19,5 +19,6 @@ s.requires_arc = true
s.osx.deployment_target = "10.9"
s.ios.deployment_target = "8.0"
+ s.tvos.deployment_target = "9.0"
end
| Add support for tvOS in Podspec
|
diff --git a/i18n_alchemy.gemspec b/i18n_alchemy.gemspec
index abc1234..def5678 100644
--- a/i18n_alchemy.gemspec
+++ b/i18n_alchemy.gemspec
@@ -19,7 +19,7 @@ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.add_dependency "activerecord", "~> 3.0.0"... | Update gemspec to work with rails 3.1 |
diff --git a/lib/travis/tasks.rb b/lib/travis/tasks.rb
index abc1234..def5678 100644
--- a/lib/travis/tasks.rb
+++ b/lib/travis/tasks.rb
@@ -22,7 +22,7 @@ module Roadie
def self.app
@_config ||= OpenStruct.new(roadie: OpenStruct.new(enabled: true, provider: nil, after_inlining: nil))
- @_application ||= Open... | Add root dir for Roadie.
|
diff --git a/lib/rspec2.rb b/lib/rspec2.rb
index abc1234..def5678 100644
--- a/lib/rspec2.rb
+++ b/lib/rspec2.rb
@@ -13,13 +13,13 @@
def example_pending(example)
super(example)
- @pending_count =+1
+ @pending_count +=1
tick PENDING
end
def example_failed(example)
super(example)
- @fa... | Fix the failed and pending counting.
|
diff --git a/lib/serverspec.rb b/lib/serverspec.rb
index abc1234..def5678 100644
--- a/lib/serverspec.rb
+++ b/lib/serverspec.rb
@@ -13,9 +13,10 @@ module RSpec::Core::Notifications
class FailedExampleNotification < ExampleNotification
def failure_lines
+ host = ENV['TARGET_HOST'] || Specinfra.configuratio... | Fix how to show host name in error
|
diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb
index abc1234..def5678 100644
--- a/app/mailers/application_mailer.rb
+++ b/app/mailers/application_mailer.rb
@@ -1,4 +1,4 @@ class ApplicationMailer < ActionMailer::Base
- default from: "colearn.xyz@gmail.com"
+ default from: "from@ex... | Revert "login using send grid"
This reverts commit 4fbb103dbb4337c1e027864f6a475aa1ebc41fe8.
|
diff --git a/lib/limbo/client.rb b/lib/limbo/client.rb
index abc1234..def5678 100644
--- a/lib/limbo/client.rb
+++ b/lib/limbo/client.rb
@@ -21,7 +21,7 @@
def post
headers = { "X-LIMBO-KEY" => Limbo.key,
- "content-type" => "application/json"}
+ "content-type" => "appli... | Fix encoding; always send json as utf-8
|
diff --git a/app/server/sonicpi/incomingosc.rb b/app/server/sonicpi/incomingosc.rb
index abc1234..def5678 100644
--- a/app/server/sonicpi/incomingosc.rb
+++ b/app/server/sonicpi/incomingosc.rb
@@ -0,0 +1,84 @@+#--
+# This file is part of Sonic Pi: http://sonic-pi.net
+# Full project source: https://github.com/samaaron/... | Add class to parse incoming OSC binary packets:
* Much simpler than osc-ruby equivalent |
diff --git a/lib/nats/version.rb b/lib/nats/version.rb
index abc1234..def5678 100644
--- a/lib/nats/version.rb
+++ b/lib/nats/version.rb
@@ -1,6 +1,6 @@ module NATS
# NOTE: These are all announced to the server on CONNECT
VERSION = "0.8.2".freeze
- LANG = (RUBY_PLATFORM == 'java' ? 'jruby' : 'ruby').freeze
+ ... | Use RUBY_ENGINE when announcing runtime on CONNECT
|
diff --git a/lib/sandwich/cli.rb b/lib/sandwich/cli.rb
index abc1234..def5678 100644
--- a/lib/sandwich/cli.rb
+++ b/lib/sandwich/cli.rb
@@ -21,6 +21,13 @@ :default => '-',
:on => :head
+ option :log_level,
+ :short => '-l LEVEL',
+ :long => '--log_level LEVEL',
+... | Add --log_level command line option
|
diff --git a/lib/secret_santa.rb b/lib/secret_santa.rb
index abc1234..def5678 100644
--- a/lib/secret_santa.rb
+++ b/lib/secret_santa.rb
@@ -16,4 +16,10 @@ end
end
end
+
+ def self.solicit_input
+ puts "Enter each name in the Secret Santa pool, separated by a space:"
+ names = gets.downcase.chomp
+... | Add method to solicit user input
|
diff --git a/lib/wyatt/record.rb b/lib/wyatt/record.rb
index abc1234..def5678 100644
--- a/lib/wyatt/record.rb
+++ b/lib/wyatt/record.rb
@@ -7,12 +7,12 @@ def self.add_field_to_class(field_name, type)
class_eval <<-RUBY
def #{field_name}
- @field_name
+ @#{field_name}
... | Fix unencapsulated string sub of the field name
|
diff --git a/logstream.gemspec b/logstream.gemspec
index abc1234..def5678 100644
--- a/logstream.gemspec
+++ b/logstream.gemspec
@@ -3,7 +3,7 @@
Gem::Specification.new do |s|
s.name = "logstream"
- s.version = "0.0.6"
+ s.version = "0.0.7"
s.date = Time.now.strftime("%Y-%m-%d")
s.author = "Barry Jaspan"
... | Update minimum versions of dependencies
|
diff --git a/app/helpers/date_time_helper.rb b/app/helpers/date_time_helper.rb
index abc1234..def5678 100644
--- a/app/helpers/date_time_helper.rb
+++ b/app/helpers/date_time_helper.rb
@@ -1,6 +1,6 @@ module DateTimeHelper
def short_date_format(date_time)
- date_time && date_time.strftime("%e %B %Y")
+ date_ti... | Swap '%e' for '%-d' in short_date_format
It's unlikely we really need ' 1' instead of '1', so let's use '%-d' which gives us no padding, instead of '%e' which gives us space-padding (or %d which gives us 0-padding).
|
diff --git a/app/jobs/odk/form_render_job.rb b/app/jobs/odk/form_render_job.rb
index abc1234..def5678 100644
--- a/app/jobs/odk/form_render_job.rb
+++ b/app/jobs/odk/form_render_job.rb
@@ -6,7 +6,7 @@ def perform(form)
form.odk_xml.attach(
io: StringIO.new(FormRenderer.new(form).xml),
- filen... | 11895: Change filename to form uuid
|
diff --git a/cookbook/metadata.rb b/cookbook/metadata.rb
index abc1234..def5678 100644
--- a/cookbook/metadata.rb
+++ b/cookbook/metadata.rb
@@ -1,6 +1,6 @@ name 'baragon'
-maintainer 'EverTrue, Inc.'
-maintainer_email 'eric.herot@evertrue.com'
+maintainer 'Tom Petr'
+maintainer_email 'tpetr@hub... | Change maintainer info to HubSpot
|
diff --git a/Casks/a-better-finder-rename.rb b/Casks/a-better-finder-rename.rb
index abc1234..def5678 100644
--- a/Casks/a-better-finder-rename.rb
+++ b/Casks/a-better-finder-rename.rb
@@ -4,9 +4,9 @@
url 'http://www.publicspace.net/download/ABFRX.dmg'
name 'A Better Finder Rename'
- appcast 'http://www.publics... | Upgrade "A Better Finder Rename" to v10
|
diff --git a/SloppySwiper.podspec b/SloppySwiper.podspec
index abc1234..def5678 100644
--- a/SloppySwiper.podspec
+++ b/SloppySwiper.podspec
@@ -1,37 +1,14 @@-#
-# Be sure to run `pod lib lint NAME.podspec' to ensure this is a
-# valid spec and remove all comments before submitting the spec.
-#
-# To learn more about a... | Improve .podspec (almost release-ready quality) |
diff --git a/app/models/concerns/loggable.rb b/app/models/concerns/loggable.rb
index abc1234..def5678 100644
--- a/app/models/concerns/loggable.rb
+++ b/app/models/concerns/loggable.rb
@@ -18,8 +18,10 @@ end
def modified_by
- if paper_trail.try(:originator)
- User.find(paper_trail.try(:or... | Fix intermittently failing specs by adding record existance check
|
diff --git a/resources/uninstall_package.rb b/resources/uninstall_package.rb
index abc1234..def5678 100644
--- a/resources/uninstall_package.rb
+++ b/resources/uninstall_package.rb
@@ -11,7 +11,7 @@ property :name, String, :name_property => true
property :installation_path, String
property :installer_cache_path, Stri... | [JLT-163581] Refactor uninstall recipes
* Fixed error in logs "Default value nil is invalid for property service_name "
|
diff --git a/spec/api_spec.rb b/spec/api_spec.rb
index abc1234..def5678 100644
--- a/spec/api_spec.rb
+++ b/spec/api_spec.rb
@@ -10,7 +10,6 @@ 'Accept-Encoding' => 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
'Authorization' => /\AOAuth/,
'Content-Type' => 'application/x-... | Fix spec for higher versions of OAuth gem
|
diff --git a/app/policies/discussion_policy.rb b/app/policies/discussion_policy.rb
index abc1234..def5678 100644
--- a/app/policies/discussion_policy.rb
+++ b/app/policies/discussion_policy.rb
@@ -1,10 +1,12 @@ DiscussionPolicy = Struct.new(:user, :discussion) do
def update?
+ return false unless user
user... | Fix bug with nil user.
|
diff --git a/app/presenters/image_presenter.rb b/app/presenters/image_presenter.rb
index abc1234..def5678 100644
--- a/app/presenters/image_presenter.rb
+++ b/app/presenters/image_presenter.rb
@@ -1,7 +1,7 @@ class ImagePresenter < LulalalaPresenter::Base
def linked_display
h.link_to(
- h.image_tag(h.image... | Set thumbnail width and height in view
To prevent layout reflow |
diff --git a/ng_classify.gemspec b/ng_classify.gemspec
index abc1234..def5678 100644
--- a/ng_classify.gemspec
+++ b/ng_classify.gemspec
@@ -19,10 +19,10 @@ s.test_files = Dir["test/**/*"]
s.require_paths = ['lib']
- s.add_runtime_dependency 'therubyracer', '~> 0.12', '>= 0.12.1'
- s.add_runtime_dependency 'co... | Update runtime dependency to extend rails support before 5
|
diff --git a/cookbooks/kernel/kernel-4.1.1.rb b/cookbooks/kernel/kernel-4.1.1.rb
index abc1234..def5678 100644
--- a/cookbooks/kernel/kernel-4.1.1.rb
+++ b/cookbooks/kernel/kernel-4.1.1.rb
@@ -22,5 +22,5 @@
execute "build kernel" do
user node["rbenv"]["user"]
- command "cd #{build_dir} && make && mv #{build_dir}/... | Use 2 core for kernel build
|
diff --git a/app/workers/data_import_worker.rb b/app/workers/data_import_worker.rb
index abc1234..def5678 100644
--- a/app/workers/data_import_worker.rb
+++ b/app/workers/data_import_worker.rb
@@ -0,0 +1,31 @@+#
+# Responsible for migrating data from the Opscode Community Site to Supermarket
+#
+class DataImportWorker
... | Migrate data every 6 hours starting at 3 UTC
|
diff --git a/app/services/process_hashtags_service.rb b/app/services/process_hashtags_service.rb
index abc1234..def5678 100644
--- a/app/services/process_hashtags_service.rb
+++ b/app/services/process_hashtags_service.rb
@@ -4,7 +4,7 @@ def call(status, tags = [])
tags = status.text.scan(Tag::HASHTAG_RE).map(&:f... | Call uniq on the string version of mb_chars tags
|
diff --git a/config/software/datadog-gohai.rb b/config/software/datadog-gohai.rb
index abc1234..def5678 100644
--- a/config/software/datadog-gohai.rb
+++ b/config/software/datadog-gohai.rb
@@ -2,15 +2,13 @@ default_version "last-stable"
always_build true
-go_path "/var/cache/omnibus/src/datadog-gohai"
-
env = {
... | Revert "use go_path as a variable"
This reverts commit 91bf251df91c3c70c7196c39a8b8e5b3d06e2ee3.
|
diff --git a/social_graph.gemspec b/social_graph.gemspec
index abc1234..def5678 100644
--- a/social_graph.gemspec
+++ b/social_graph.gemspec
@@ -0,0 +1,19 @@+# -*- encoding: utf-8 -*-
+lib = File.expand_path('../lib/', __FILE__)
+$:.unshift lib unless $:.include?(lib)
+
+Gem::Specification.new do |s|
+ s.name =... | Add gemspec, awaiting new gem name.
|
diff --git a/levels/contribute.rb b/levels/contribute.rb
index abc1234..def5678 100644
--- a/levels/contribute.rb
+++ b/levels/contribute.rb
@@ -1,5 +1,5 @@ difficulty 3
-description "This is the final level, the goal is to contribute to this repository by making a pull request on Github. Please note that this level i... | Fix typo: it's GitHub, not Github.
|
diff --git a/core/spec/classes/export_spec.rb b/core/spec/classes/export_spec.rb
index abc1234..def5678 100644
--- a/core/spec/classes/export_spec.rb
+++ b/core/spec/classes/export_spec.rb
@@ -4,16 +4,16 @@ it '#export' do
FactoryGirl.reload
- user = create :user, created_at: Time.at(0)
- user.updated_at... | Use more explicit timestamps to make it easier to verify fixture
|
diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb
index abc1234..def5678 100644
--- a/config/initializers/omniauth.rb
+++ b/config/initializers/omniauth.rb
@@ -11,7 +11,8 @@ "esi-location.read_online.v1",
"esi-location.read_ship_type.v1",
"esi-mail.read_mail.... | Add scope for character blueprints
|
diff --git a/percentable.gemspec b/percentable.gemspec
index abc1234..def5678 100644
--- a/percentable.gemspec
+++ b/percentable.gemspec
@@ -8,9 +8,9 @@ spec.version = Percentable::VERSION
spec.authors = ["Eric Roberts"]
spec.email = ["ericroberts@gmail.com"]
- spec.summary = %q{TODO:... | Add gem description, home page, dependency on rspec. |
diff --git a/app/models/logging/ip_address.rb b/app/models/logging/ip_address.rb
index abc1234..def5678 100644
--- a/app/models/logging/ip_address.rb
+++ b/app/models/logging/ip_address.rb
@@ -25,7 +25,8 @@ # validates_presence_of :longitude
# Converts an IPv4 address string to a 32-bit integer which can be st... | Fix spec test failure caused by nil ip address from request.remote_ip in test environment
git-svn-id: 9e5305ce09d475b8287d6587bfa7d171216f9abf@312 78829999-583a-0410-bd01-8a9b849fd409
|
diff --git a/spec/stemmer_spec.rb b/spec/stemmer_spec.rb
index abc1234..def5678 100644
--- a/spec/stemmer_spec.rb
+++ b/spec/stemmer_spec.rb
@@ -0,0 +1,17 @@+require "jruby-stemmer"
+
+describe JRuby::Stemmer do
+ it "stems a string" do
+ result = JRuby::Stemmer.stem("apple")
+ expect(result).to be == "appl"
+ ... | Add some tests, like a good little dev
|
diff --git a/spec/unit/in_spec.rb b/spec/unit/in_spec.rb
index abc1234..def5678 100644
--- a/spec/unit/in_spec.rb
+++ b/spec/unit/in_spec.rb
@@ -6,6 +6,36 @@ 'source' => { 'foo' => 'bar' },
'version' => { 'ref' => '61cebf' },
} }
+
+ let(:destination_directory) { Dir.mktmpdir }
+
+ after do
+ FileUtil... | Add new test cases (still skipping)
|
diff --git a/spec/lib/i18n/core_ext_spec.rb b/spec/lib/i18n/core_ext_spec.rb
index abc1234..def5678 100644
--- a/spec/lib/i18n/core_ext_spec.rb
+++ b/spec/lib/i18n/core_ext_spec.rb
@@ -1,4 +1,5 @@ require 'i18n'
+require 'i18n/core_ext'
RSpec.describe I18n::Backend::Base do
# Since #load_erb is a protected method... | Add in require for i18n monkey patch
|
diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb
index abc1234..def5678 100644
--- a/spec/spec_helper_acceptance.rb
+++ b/spec/spec_helper_acceptance.rb
@@ -18,6 +18,7 @@ # Install module and dependencies
hosts.each do |host|
copy_module_to(host, source: proj_root, module_nam... | Add missing dependency for Beaker tests
|
diff --git a/app/uploaders/avatar_uploader.rb b/app/uploaders/avatar_uploader.rb
index abc1234..def5678 100644
--- a/app/uploaders/avatar_uploader.rb
+++ b/app/uploaders/avatar_uploader.rb
@@ -11,8 +11,10 @@ process :cropper
def cropper
- manipulate! do |img|
- img.crop "#{model.avatar_crop_size}x#{model... | Fix failing tests introduced in commit 6d58088
|
diff --git a/lib/compo/movable.rb b/lib/compo/movable.rb
index abc1234..def5678 100644
--- a/lib/compo/movable.rb
+++ b/lib/compo/movable.rb
@@ -1,48 +1,46 @@-module Bra
- module Model
- # Helper mixin for objects that can be moved into other objects
+module Compo
+ # Helper mixin for objects that can be moved int... | Put Movable in the correct module.
|
diff --git a/lib/protocolist.rb b/lib/protocolist.rb
index abc1234..def5678 100644
--- a/lib/protocolist.rb
+++ b/lib/protocolist.rb
@@ -1,5 +1,4 @@ require 'active_support'
-require 'active_support/core_ext'
require 'protocolist/version'
require 'protocolist/model_additions'
@@ -9,10 +8,13 @@
module Protocolis... | Revert usage of class variables
Use class-level instance variables instead
|
diff --git a/app/models/photo.rb b/app/models/photo.rb
index abc1234..def5678 100644
--- a/app/models/photo.rb
+++ b/app/models/photo.rb
@@ -7,6 +7,7 @@ key :description, String
key :dimensions, Dimensions
key :etag, String
+ key :key, Key
key :last_modified, Time
key :o... | Store Photo Key as key
Store Photo Key as key
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.