diff
stringlengths
65
26.7k
message
stringlengths
7
9.92k
diff --git a/gigasecond/gigasecond_test.rb b/gigasecond/gigasecond_test.rb index abc1234..def5678 100644 --- a/gigasecond/gigasecond_test.rb +++ b/gigasecond/gigasecond_test.rb @@ -6,26 +6,26 @@ class GigasecondTest < MiniTest::Unit::TestCase def test_1 - gs = Gigasecond.new(Date.new(2011, 4, 25)) + gs = Gig...
Replace constructor by factory method for more expressiveness in Gigasecond
diff --git a/singel.gemspec b/singel.gemspec index abc1234..def5678 100644 --- a/singel.gemspec +++ b/singel.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'singel' - s.version = '0.1.0' + s.version = '0.1.1' s.date = Date.today.to_s s.platform = Gem::Platform::RUBY s...
Bump version to 0.1.1 and resolve rubocop
diff --git a/app/models/item.rb b/app/models/item.rb index abc1234..def5678 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -5,5 +5,6 @@ belongs_to :origin, polymorphic: true has_many :user_votes + has_many :motion has_and_belongs_to_many :wards end
Fix Item Not Deleting Do To Foreign Key Violation Because a motion association for has_many is not been set up which is coursing the error.
diff --git a/app/models/link.rb b/app/models/link.rb index abc1234..def5678 100644 --- a/app/models/link.rb +++ b/app/models/link.rb @@ -4,7 +4,7 @@ key :url, String key :title, String - key :comment, String + key :comment, String, :default => "" key :user_id, ObjectId timestamps!
Add default text for text field
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,9 +1,4 @@ class User < ActiveRecord::Base -# roles for user: - rolify :role_cname => 'Admin' - rolify :role_cname => 'Subject' - rolify :role_cname => 'Experimenter' - # Inclu...
Remove rolify declarations from User model
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -3,5 +3,10 @@ has_many :plans, through: :user_plans has_many :comments + before_save { self.email = email.downcase } + validates :name, presence: true, length: { maximum: 50 }...
Add validations to User model
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -26,7 +26,7 @@ end def pbs - runs.where(id: runs.group(:category_id).map do |run| + runs.where(id: runs.select('distinct category_id').map do |run| pb_for(run.categ...
Fix selecting PBs from postgres
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,10 +1,3 @@ class User < ActiveRecord::Base - serialize :user_attributes - acts_as_authentic do |c| - c.validations_scope = :username - c.validate_password_field = false - ...
Remove Authlogic code from the User model
diff --git a/app/models/user.rb b/app/models/user.rb index abc1234..def5678 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -4,4 +4,7 @@ :confirmable, :lockable, :validatable, :timeoutable attr_accessible :name, :email, :password, :password_confirmation, :remember_me + + validates :name, :pr...
Update User Model for Validations Update the User model to include presence/uniqueness validations for both name and email attributes.
diff --git a/archivable.gemspec b/archivable.gemspec index abc1234..def5678 100644 --- a/archivable.gemspec +++ b/archivable.gemspec @@ -20,4 +20,5 @@ spec.add_development_dependency "bundler", "~> 1.5" spec.add_development_dependency "rake" + spec.add_development_dependency "rspec" end
Add rspec to the gemspec.
diff --git a/cookbooks/wt_streamingconfigservice/files/default/tests/default_test.rb b/cookbooks/wt_streamingconfigservice/files/default/tests/default_test.rb index abc1234..def5678 100644 --- a/cookbooks/wt_streamingconfigservice/files/default/tests/default_test.rb +++ b/cookbooks/wt_streamingconfigservice/files/defau...
Test loops through all healthchecks, confirming each is true. Former-commit-id: ebbfcd8223572296cc0226b45a68dccd324481a0 [formerly 5049e9a44beafce59c3ad6e0d20105359bc65802] [formerly 1066ac4056f721944974b7a04ade196b72d035e8 [formerly 643da89e4ceb13f31fa7f21ec08cd486be4e78c0]] Former-commit-id: 1512e2fcfd7b801b1e60b50...
diff --git a/bench/bench_new.rb b/bench/bench_new.rb index abc1234..def5678 100644 --- a/bench/bench_new.rb +++ b/bench/bench_new.rb @@ -0,0 +1,38 @@+=begin ++----------+------+-----+---------+-----------------+----------------+ +| Field | Type | Null | Key | Default | Extra | ++-------------+---...
Add a "new only" benchmark from JRUBY-2184. git-svn-id: 0d15740d2b2329e9094a4e8932733054e5d3e04c@1115 8ba958d5-0c1a-0410-94a6-a65dfc1b28a6
diff --git a/spec/factories.rb b/spec/factories.rb index abc1234..def5678 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -20,8 +20,8 @@ Factory.define :github_user, :class => User do |u| # This user doesnt have a username or email set up in their profile - u.email 'vendors@circleci.com' - u.password '...
Update the dummy user & pass
diff --git a/spec/factories.rb b/spec/factories.rb index abc1234..def5678 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -2,8 +2,8 @@ FactoryGirl.define do factory :appointment do - title { Faker::Lorem.word } - description { Faker::Lorem.sentence } + sequence(:title) { |n| "appttitle#{n}...
Update appointment factory to use sequence instead of Faker
diff --git a/spec/root_spec.rb b/spec/root_spec.rb index abc1234..def5678 100644 --- a/spec/root_spec.rb +++ b/spec/root_spec.rb @@ -0,0 +1,15 @@+describe 'Root page' do + let(:root_page) { CGTest::RootPage.new(@br) } + + before(:each) do + root_page.goto + end + + it 'should have posts that contain text' do + ...
Add root page posts content test
diff --git a/spec/data_spec.rb b/spec/data_spec.rb index abc1234..def5678 100644 --- a/spec/data_spec.rb +++ b/spec/data_spec.rb @@ -5,30 +5,21 @@ before do @keypair = OpenSSL::PKey::RSA.new(2048) @data = Faker::Lorem.paragraphs.join(" ") - @secret = "Secret secret, I've got a secret." + @secret = "pa...
Change tests to use command line OpenSSL as baseline comparison.
diff --git a/boost_info.gemspec b/boost_info.gemspec index abc1234..def5678 100644 --- a/boost_info.gemspec +++ b/boost_info.gemspec @@ -19,4 +19,5 @@ spec.add_development_dependency "bundler", "~> 1.7" spec.add_development_dependency "rake", "~> 10.0" + spec.add_development_dependency "minitest", "~> 5.6" end...
Add minitest for Travis CI
diff --git a/spec/http_spec.rb b/spec/http_spec.rb index abc1234..def5678 100644 --- a/spec/http_spec.rb +++ b/spec/http_spec.rb @@ -11,7 +11,7 @@ let(:path) { '/valid/path.html' } let(:code) { 200 } let(:content) { 'some content' } - let(:response) { stub(code: code, content: content) } + let(:resp...
Fix deprecation (stub -> double)
diff --git a/split-api.gemspec b/split-api.gemspec index abc1234..def5678 100644 --- a/split-api.gemspec +++ b/split-api.gemspec @@ -19,7 +19,7 @@ gem.add_dependency 'sinatra' gem.add_dependency 'multi_json' - gem.add_development_dependency 'bundler', '~> 1.0' + gem.add_development_dependency 'bundler', ...
Update bundler requirement from ~> 1.0 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.c...
diff --git a/github-auth.gemspec b/github-auth.gemspec index abc1234..def5678 100644 --- a/github-auth.gemspec +++ b/github-auth.gemspec @@ -4,21 +4,21 @@ require 'github/auth/version' Gem::Specification.new do |spec| - spec.name = "github-auth" + spec.name = 'github-auth' spec.version =...
Use single quotes instead of magic double quotes
diff --git a/google.rb b/google.rb index abc1234..def5678 100644 --- a/google.rb +++ b/google.rb @@ -0,0 +1,26 @@+require 'octokit' + +def most_used(languages) + languages + .methods(false) + .reject { |m| m.to_s.include?('=') || m.to_s.include?('?') } + .max_by { |m| languages.send(m) } + .to_s +end + +# ...
Add sample use of octokit.
diff --git a/hotspots.gemspec b/hotspots.gemspec index abc1234..def5678 100644 --- a/hotspots.gemspec +++ b/hotspots.gemspec @@ -21,5 +21,6 @@ s.test_files = `git ls-files -- {test}/*`.split("\n") s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.requir...
Correct development dependency in gemspec
diff --git a/app/models/cpe.rb b/app/models/cpe.rb index abc1234..def5678 100644 --- a/app/models/cpe.rb +++ b/app/models/cpe.rb @@ -10,4 +10,20 @@ class CPE < ActiveRecord::Base has_and_belongs_to_many :cves, :class_name => "CVE" + + def split + self.cpe.split(':') + end + + def vendor + split[2] + ...
CPE: Add convenience CPE splitting methods
diff --git a/knife-google.gemspec b/knife-google.gemspec index abc1234..def5678 100644 --- a/knife-google.gemspec +++ b/knife-google.gemspec @@ -18,6 +18,6 @@ s.required_ruby_version = ">= 2.5" s.add_dependency "knife-cloud", ">= 2.0.0" - s.add_dependency "google-api-client", ">= 0.23.9", "< 0.38.0" # eac...
Update google-api-client requirement from >= 0.23.9, < 0.38.0 to >= 0.23.9, < 0.39.0 Updates the requirements on [google-api-client](https://github.com/google/google-api-ruby-client) to permit the latest version. - [Release notes](https://github.com/google/google-api-ruby-client/releases) - [Changelog](https://github....
diff --git a/spec/disclosure_spec.rb b/spec/disclosure_spec.rb index abc1234..def5678 100644 --- a/spec/disclosure_spec.rb +++ b/spec/disclosure_spec.rb @@ -21,4 +21,56 @@ Disclosure.configuration.owner_class.should eq "Administrator" end + + describe "react_to!" do + + let(:model) { Disclosure::Issue.new ...
Add passing specs for react_to method
diff --git a/spec/usi/client_spec.rb b/spec/usi/client_spec.rb index abc1234..def5678 100644 --- a/spec/usi/client_spec.rb +++ b/spec/usi/client_spec.rb @@ -4,6 +4,61 @@ it do expect(client.engine).to be_instance_of USI::Engine + end + end + + describe '#usi' do + let(:client) { USI::Client.new("sp...
Add same specs for USI::Client * It is better than none specs.
diff --git a/callcredit.gemspec b/callcredit.gemspec index abc1234..def5678 100644 --- a/callcredit.gemspec +++ b/callcredit.gemspec @@ -6,7 +6,7 @@ gem.add_runtime_dependency 'nokogiri', '~> 1.4' gem.add_runtime_dependency 'unicode_utils', '~> 1.4.0' - gem.add_development_dependency 'rspec', ...
Update rspec requirement to ~> 3.7.0 Updates the requirements on [rspec](https://github.com/rspec/rspec) to permit the latest version.
diff --git a/test/opal/runtime/def_spec.rb b/test/opal/runtime/def_spec.rb index abc1234..def5678 100644 --- a/test/opal/runtime/def_spec.rb +++ b/test/opal/runtime/def_spec.rb @@ -0,0 +1,23 @@+def def_test_bar + 42 +end + +def self.def_test_foo + "bar" +end + +$top_level_object = self + +describe "Defining top level...
Add specs for defining methods on main object
diff --git a/test/test_rake_cpu_counter.rb b/test/test_rake_cpu_counter.rb index abc1234..def5678 100644 --- a/test/test_rake_cpu_counter.rb +++ b/test/test_rake_cpu_counter.rb @@ -1,4 +1,4 @@-require_relative 'helper' +require File.expand_path('../helper', __FILE__) class TestRakeCpuCounter < Rake::TestCase
Use 1.8-compatible way of loading helper
diff --git a/spec/fabricators/group_fabricator.rb b/spec/fabricators/group_fabricator.rb index abc1234..def5678 100644 --- a/spec/fabricators/group_fabricator.rb +++ b/spec/fabricators/group_fabricator.rb @@ -1,5 +1,5 @@ Fabricator(:group) do - title Faker::Education.school + title Faker::Education.school...
Update group fabricator to generate a limited length title.
diff --git a/spec/battlenetapi_spec.rb b/spec/battlenetapi_spec.rb index abc1234..def5678 100644 --- a/spec/battlenetapi_spec.rb +++ b/spec/battlenetapi_spec.rb @@ -1,21 +1,17 @@ require 'battlenet/api' describe Battlenet::Client do - it "should allow you to configure it for a valid region" do - Battlenet.config...
Add unit test to test for spaces in realm name
diff --git a/db/migrate/20200206072901_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.active_storage.rb b/db/migrate/20200206072901_add_foreign_key_constraint_to_active_storage_attachments_for_blob_id.active_storage.rb index abc1234..def5678 100644 --- a/db/migrate/20200206072901_add_foreign_key_c...
Add migration for active storage fk constraint
diff --git a/lib/fog/core/connection.rb b/lib/fog/core/connection.rb index abc1234..def5678 100644 --- a/lib/fog/core/connection.rb +++ b/lib/fog/core/connection.rb @@ -2,7 +2,6 @@ class Connection def initialize(url, persistent=false, params={}) - Excon.defaults[:headers]['User-Agent'] ||= "fog/#{Fog::VE...
Revert "[core] Adds fog User-Agent header" This reverts commit a07f3203a6d501d8091495ddd475213ce9d84912. The change made a dependency on Fog::VERSION which is defined in `lib/fog` forcing more of the system to be loaded in some cases. Github issue #1310
diff --git a/lib/http/request_stream.rb b/lib/http/request_stream.rb index abc1234..def5678 100644 --- a/lib/http/request_stream.rb +++ b/lib/http/request_stream.rb @@ -16,6 +16,7 @@ def add_body_type_headers case @body when NilClass + @request_header << CRLF when String @reques...
Normalize CRLF appending in header creation Signed-off-by: Sam Phippen <e5a09176608998a68778e11d5021c871e8fae93c@googlemail.com>
diff --git a/lib/capistrano/s3.rb b/lib/capistrano/s3.rb index abc1234..def5678 100644 --- a/lib/capistrano/s3.rb +++ b/lib/capistrano/s3.rb @@ -1,3 +1,4 @@+require 'capistrano' require 'capistrano/s3/publisher' unless Capistrano::Configuration.respond_to?(:instance) @@ -10,6 +11,7 @@ end _cset :deployment...
Set default bucket_write_options & specify require
diff --git a/lib/liquid/range_lookup.rb b/lib/liquid/range_lookup.rb index abc1234..def5678 100644 --- a/lib/liquid/range_lookup.rb +++ b/lib/liquid/range_lookup.rb @@ -16,7 +16,9 @@ end def evaluate(context) - context.evaluate(@start_obj).to_i..context.evaluate(@end_obj).to_i + start_int = Utils.t...
Use to_integer for range lookup arguments
diff --git a/lib/lysergide/fisherman.rb b/lib/lysergide/fisherman.rb index abc1234..def5678 100644 --- a/lib/lysergide/fisherman.rb +++ b/lib/lysergide/fisherman.rb @@ -4,6 +4,7 @@ include Lysergide::Database class Lysergide::Fisherman < Sinatra::Base + # Default (post-receive-lys) hook post '/hook' do # The he...
Fix missing user id in builds
diff --git a/lib/neural_nets/network.rb b/lib/neural_nets/network.rb index abc1234..def5678 100644 --- a/lib/neural_nets/network.rb +++ b/lib/neural_nets/network.rb @@ -5,6 +5,15 @@ @sizes = sizes initialize_biases initialize_weights + end + + ## + # Return the output of the network if "a" ...
Add feed forward method to propagate activations.
diff --git a/bench/bench.rb b/bench/bench.rb index abc1234..def5678 100644 --- a/bench/bench.rb +++ b/bench/bench.rb @@ -1,8 +1,9 @@ require 'benchmark' require 'radix_tree' # gem install radix_tree require 'avl_tree' +require 'openssl' -random = Random.new(0) +#random = Random.new(0) TIMES = 100000 key_size = ...
Make it work on 1.8 Use OpenSSL::Random instead of Random#bytes
diff --git a/lib/client/client.rb b/lib/client/client.rb index abc1234..def5678 100644 --- a/lib/client/client.rb +++ b/lib/client/client.rb @@ -4,7 +4,7 @@ require "json" class ApiClient - VENDOR_ENDPOINT = "https://api.replicated.com" + VENDOR_HOST = "api.replicated.com" VERB_MAP = { :get => Net:...
Make initializing connection more explicit Use a hardcoded hostname to the api server, and the default HTTPS port from the URI module to instantiate the connection. The `URI.parse` format was unclear.
diff --git a/lib/tasks/delayed_tasks.rb b/lib/tasks/delayed_tasks.rb index abc1234..def5678 100644 --- a/lib/tasks/delayed_tasks.rb +++ b/lib/tasks/delayed_tasks.rb @@ -3,10 +3,12 @@ include Rake::DSL if defined?(Rake::DSL) def add_delayed_tasks Rake::Task.tasks.each do |task| - task "delay:#{tas...
Support rake arguments e.g. delay:crawl:id[11:12:13]
diff --git a/lib/twitter/null_object.rb b/lib/twitter/null_object.rb index abc1234..def5678 100644 --- a/lib/twitter/null_object.rb +++ b/lib/twitter/null_object.rb @@ -1,14 +1,14 @@ require 'singleton' module Twitter - class NullObject < BasicObject - include ::Singleton + class NullObject + include Singlet...
Revert "NullObject inherits from BasicObject" This reverts commit 88bdab8a7737e2fe2af1dc862dd73785537f7220.
diff --git a/lib/mytime/client.rb b/lib/mytime/client.rb index abc1234..def5678 100644 --- a/lib/mytime/client.rb +++ b/lib/mytime/client.rb @@ -9,7 +9,7 @@ # project_id: Optional project_id to restrict data returned # def project(project_id = nil) - account = config_details + account = My...
Determine project and task ids from project config file
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 @@ -41,6 +41,8 @@ @buttons_pressed.last end + private + def toggle_pause if @window.paused == false @window.paused = true
Add private call to Controls
diff --git a/lib/github_v3_api/users_api.rb b/lib/github_v3_api/users_api.rb index abc1234..def5678 100644 --- a/lib/github_v3_api/users_api.rb +++ b/lib/github_v3_api/users_api.rb @@ -35,6 +35,12 @@ user_data = @connection.get("/users/#{username}") GitHubV3API::User.new_with_all_data(self, user_data) ...
Add 'all' wrapper for '/users' api
diff --git a/circle-cli.gemspec b/circle-cli.gemspec index abc1234..def5678 100644 --- a/circle-cli.gemspec +++ b/circle-cli.gemspec @@ -6,8 +6,8 @@ Gem::Specification.new do |spec| spec.name = 'circle-cli' spec.version = Circle::CLI::VERSION - spec.authors = ['Jean Boussier'] - spec.email ...
Update gemspec for new ownership.
diff --git a/test/test-app.rb b/test/test-app.rb index abc1234..def5678 100644 --- a/test/test-app.rb +++ b/test/test-app.rb @@ -16,4 +16,9 @@ get "/search" assert_true(last_response.ok?) end + + def test_registers + get "/registers.opml" + assert_true(last_response.ok?) + end end
Add a test for /registers.opml
diff --git a/test/test_dsl.rb b/test/test_dsl.rb index abc1234..def5678 100644 --- a/test/test_dsl.rb +++ b/test/test_dsl.rb @@ -4,7 +4,7 @@ class TestDsl < Minitest::Test class Pair - def initialize(&blk) + def entry(&blk) instance_eval(&blk) end @@ -22,14 +22,14 @@ end class Tree - ...
Adjust DSL tests a bit
diff --git a/delivery/reliable_delivery.rb b/delivery/reliable_delivery.rb index abc1234..def5678 100644 --- a/delivery/reliable_delivery.rb +++ b/delivery/reliable_delivery.rb @@ -3,7 +3,8 @@ require 'delivery/delivery' module ReliableDelivery - include BestEffortDelivery + include DeliveryProtocol + import Best...
Change reliable delivery to use module import system.
diff --git a/lib/tasks/users.rake b/lib/tasks/users.rake index abc1234..def5678 100644 --- a/lib/tasks/users.rake +++ b/lib/tasks/users.rake @@ -0,0 +1,25 @@+namespace :users do + desc "Event organizers get user accounts" + task give_accounts_to_accountless_organizers: :environment do + organizerless_events = Even...
Add rake task to create User accounts for event organizers Close #270
diff --git a/lib/udongo/config.rb b/lib/udongo/config.rb index abc1234..def5678 100644 --- a/lib/udongo/config.rb +++ b/lib/udongo/config.rb @@ -1,12 +1,12 @@ module Udongo class Config - attr_reader :i18n - attr_accessor :default_locale, :locales, :prefix_routes_with_locale, :host, :time_...
Use method_missing to remove useless code.
diff --git a/lib/mustermann/equality_map.rb b/lib/mustermann/equality_map.rb index abc1234..def5678 100644 --- a/lib/mustermann/equality_map.rb +++ b/lib/mustermann/equality_map.rb @@ -28,7 +28,7 @@ # @param [Object] object to be stored # @return [Object] same as the second parameter def track(key, object...
Fix wrong hash key deletion
diff --git a/lib/simplecov/merge_helpers.rb b/lib/simplecov/merge_helpers.rb index abc1234..def5678 100644 --- a/lib/simplecov/merge_helpers.rb +++ b/lib/simplecov/merge_helpers.rb @@ -22,11 +22,14 @@ def merge_resultset(hash) new_resultset = {} (keys + hash.keys).each do |filename| - new_resul...
Fix merger of coverage when a file is not available in all of the resultsets
diff --git a/dev/scratch/console/people.rb b/dev/scratch/console/people.rb index abc1234..def5678 100644 --- a/dev/scratch/console/people.rb +++ b/dev/scratch/console/people.rb @@ -0,0 +1,7 @@+def people refresh: false + @people = nil if refresh + @people ||= [ + { name: "Neil", fav_color: "blue", likes: [ "cat", ...
Add some temp data for console
diff --git a/lib/biz/week_time/abstract.rb b/lib/biz/week_time/abstract.rb index abc1234..def5678 100644 --- a/lib/biz/week_time/abstract.rb +++ b/lib/biz/week_time/abstract.rb @@ -2,9 +2,9 @@ module WeekTime class Abstract + extend Forwardable + include Comparable - - extend Forwardable ...
Move `Forwardable` reference above `Comparable` Since `Forwardable` is adding class methods and `Comparable is adding instance methods.
diff --git a/lib/gir_ffi/interface_base.rb b/lib/gir_ffi/interface_base.rb index abc1234..def5678 100644 --- a/lib/gir_ffi/interface_base.rb +++ b/lib/gir_ffi/interface_base.rb @@ -1,8 +1,8 @@+require 'gir_ffi/type_base' + module GirFFI module InterfaceBase - def gir_ffi_builder - self.const_get :GIR_FFI_BU...
Replace duplicate method with included module
diff --git a/spec/cli/lexer_spec.rb b/spec/cli/lexer_spec.rb index abc1234..def5678 100644 --- a/spec/cli/lexer_spec.rb +++ b/spec/cli/lexer_spec.rb @@ -0,0 +1,27 @@+require File.expand_path('../spec_helper', __FILE__) +require 'opal/parser' + +describe Opal::Lexer do + it "sets correct line information for each token...
Add simple specs for lexing line numbers
diff --git a/lib/film_snob/url_to_video.rb b/lib/film_snob/url_to_video.rb index abc1234..def5678 100644 --- a/lib/film_snob/url_to_video.rb +++ b/lib/film_snob/url_to_video.rb @@ -1,5 +1,5 @@-Dir.entries(File.join(File.dirname(__FILE__), "video_sites")).each do |file| - require "film_snob/video_sites/#{file}" unless ...
Improve autoloading video sites by convention Only require .rb files. Also, no need to check for . and .. close #72 (PR)
diff --git a/lib/intrinsic/intrinsicism.rb b/lib/intrinsic/intrinsicism.rb index abc1234..def5678 100644 --- a/lib/intrinsic/intrinsicism.rb +++ b/lib/intrinsic/intrinsicism.rb @@ -19,6 +19,7 @@ def property_block(name, type) ->(value = nil) do unless value.nil? + @properties[name.t...
Convert value to type and then assign to hash
diff --git a/lib/consort.rb b/lib/consort.rb index abc1234..def5678 100644 --- a/lib/consort.rb +++ b/lib/consort.rb @@ -1,7 +1,7 @@ require 'consort/version' -require 'active_record' -require 'mongoid' +#require 'active_record' +#require 'mongoid' require 'consort/active_record/mongoid' require 'consort/mongoid/...
Stop requiring active_record and mongoid.
diff --git a/Casks/atom.rb b/Casks/atom.rb index abc1234..def5678 100644 --- a/Casks/atom.rb +++ b/Casks/atom.rb @@ -1,6 +1,6 @@ cask :v1 => 'atom' do - version '1.0.5' - sha256 'ed4c55e059195111d9d12ec379849d8d3509062496fcf61102fc98d1ff8ba12e' + version '1.0.6' + sha256 '212643e118a6d1844a6dfb03481b314a99db7f0f5c7...
Upgrade Atom to version 1.0.6.
diff --git a/lib/lita/handlers/hal_9000.rb b/lib/lita/handlers/hal_9000.rb index abc1234..def5678 100644 --- a/lib/lita/handlers/hal_9000.rb +++ b/lib/lita/handlers/hal_9000.rb @@ -1,6 +1,8 @@ module Lita module Handlers class Hal9000 < Handler + config :hal_image, default: 'http://bit.ly/1SHSAcQ' + ...
Make image hal shows configurable Default to the Wikimedia 256px image.
diff --git a/app/controllers/items_controller.rb b/app/controllers/items_controller.rb index abc1234..def5678 100644 --- a/app/controllers/items_controller.rb +++ b/app/controllers/items_controller.rb @@ -1,14 +1,12 @@ class ItemsController < ApplicationController - def index @section = Section.find(params[:s...
Add thumb size to be sent via json through index route
diff --git a/test/sg_mailer/base_test.rb b/test/sg_mailer/base_test.rb index abc1234..def5678 100644 --- a/test/sg_mailer/base_test.rb +++ b/test/sg_mailer/base_test.rb @@ -3,10 +3,17 @@ module SGMailer class BaseTest < Minitest::Test class SendGridMailer < SGMailer::Base + default from: { name: 'Genadi', ...
Bring the very first SGMailer::Base tests
diff --git a/config/schedule.rb b/config/schedule.rb index abc1234..def5678 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -21,6 +21,8 @@ set :output, "log/cron.log" +#TODO This value should be updated to a more realistic one once this goes to +# production. every 1.minute do runner "SearchTerm...
[search-improvements] Add reminder that the periodicity of score calculation is too small
diff --git a/lib/extjs-mvc.rb b/lib/extjs-mvc.rb index abc1234..def5678 100644 --- a/lib/extjs-mvc.rb +++ b/lib/extjs-mvc.rb @@ -16,6 +16,8 @@ require 'model/data_mapper' elsif defined?(MongoMapper) require 'model/mongo_mapper' + else + raise StandardError.new("extjs-mvc could not de...
Raise an exception if no ORM detected.
diff --git a/lib/rspec_clickable_output.rb b/lib/rspec_clickable_output.rb index abc1234..def5678 100644 --- a/lib/rspec_clickable_output.rb +++ b/lib/rspec_clickable_output.rb @@ -6,7 +6,7 @@ class Metadata def self.relative_path(line) - prefix = "txmt://open?url=file://" + prefix = "subl://...
Use subl:// prefix instead of txtm://
diff --git a/interactor.gemspec b/interactor.gemspec index abc1234..def5678 100644 --- a/interactor.gemspec +++ b/interactor.gemspec @@ -1,3 +1,5 @@+require "English" + Gem::Specification.new do |spec| spec.name = "interactor" spec.version = "3.1.1" @@ -9,7 +11,7 @@ spec.homepage = "https://github.com/co...
Use clear global variable name Recommended by standard
diff --git a/lib/vagrant-bindfs/version.rb b/lib/vagrant-bindfs/version.rb index abc1234..def5678 100644 --- a/lib/vagrant-bindfs/version.rb +++ b/lib/vagrant-bindfs/version.rb @@ -4,7 +4,7 @@ VERSION = "0.4.7" SOURCE_VERSION = "1.13.1" - SOURCE_URL = "https://github.com/mpartel/bindfs/a...
Rollback to bindfs.org to download source tarballs
diff --git a/lib/well_read_faker/source.rb b/lib/well_read_faker/source.rb index abc1234..def5678 100644 --- a/lib/well_read_faker/source.rb +++ b/lib/well_read_faker/source.rb @@ -4,11 +4,12 @@ class Source include Mutex_m - attr_reader :path_to_book + attr_reader :path_to_book, :options - def init...
Add options argument to Source::new
diff --git a/spec/roadmapster_wizeline_api_roadmap_spec.rb b/spec/roadmapster_wizeline_api_roadmap_spec.rb index abc1234..def5678 100644 --- a/spec/roadmapster_wizeline_api_roadmap_spec.rb +++ b/spec/roadmapster_wizeline_api_roadmap_spec.rb @@ -23,4 +23,10 @@ expect(roadmap[:name]).to eq('Untitled') expect(roa...
Add test for creation of units
diff --git a/lib/oboe/ruby.rb b/lib/oboe/ruby.rb index abc1234..def5678 100644 --- a/lib/oboe/ruby.rb +++ b/lib/oboe/ruby.rb @@ -19,8 +19,13 @@ # will instead be detected at load time and initialization is # automatic. def load - Oboe::Loading.load_access_key - Oboe::Inst.load_instrume...
Check gem load state before loading instrumentation
diff --git a/lib/slugworth.rb b/lib/slugworth.rb index abc1234..def5678 100644 --- a/lib/slugworth.rb +++ b/lib/slugworth.rb @@ -31,6 +31,6 @@ end def processed_slug - send(slug_attribute).parameterize + public_send(slug_attribute).parameterize end end
Use public_send instead of just send for conventions, yay!
diff --git a/test/test_link.rb b/test/test_link.rb index abc1234..def5678 100644 --- a/test/test_link.rb +++ b/test/test_link.rb @@ -5,19 +5,24 @@ require 'helper' describe 'Link' do - subject do - filename = 'the.other.setup.yml' - path = File.join(test_site.source_paths[:links], 'inspired', filename) - U...
Clean up the link tests.
diff --git a/lib/vlad/copy.rb b/lib/vlad/copy.rb index abc1234..def5678 100644 --- a/lib/vlad/copy.rb +++ b/lib/vlad/copy.rb @@ -0,0 +1,23 @@+# -*- coding: utf-8 -*- +require 'vlad' + +namespace :vlad do + + set :copy, {} + + desc "Copy fiels" + task :copy do + print "Copying files to server: " + copy.each do ...
Copy files to shared (config/database.yml for example) for symlinking
diff --git a/linter.gemspec b/linter.gemspec index abc1234..def5678 100644 --- a/linter.gemspec +++ b/linter.gemspec @@ -19,7 +19,7 @@ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.ad...
Update rubocop version in gemspec to ~> 0.58.0
diff --git a/event_store-messaging.gemspec b/event_store-messaging.gemspec index abc1234..def5678 100644 --- a/event_store-messaging.gemspec +++ b/event_store-messaging.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |s| s.name = 'event_store-messaging' s.summary = 'Messaging primitives for EventStore using the...
Package version is increased from 0.1.12 to 0.1.13
diff --git a/templates/config/application.rb b/templates/config/application.rb index abc1234..def5678 100644 --- a/templates/config/application.rb +++ b/templates/config/application.rb @@ -35,5 +35,6 @@ # Generators config.generators.test_framework :rspec, view_specs: false config.generators.template_engi...
Set Sass format to :sass.
diff --git a/timevalue.gemspec b/timevalue.gemspec index abc1234..def5678 100644 --- a/timevalue.gemspec +++ b/timevalue.gemspec @@ -1,10 +1,10 @@ Gem::Specification.new do |s| s.name = 'timevalue' s.version = '0.0.1' - s.date = '2013-12-21' + s.date = '2014-06-13' s.summary = "Time value of money calculations...
Update gemspec author name to include 'jr'
diff --git a/lib/flame/static.rb b/lib/flame/static.rb index abc1234..def5678 100644 --- a/lib/flame/static.rb +++ b/lib/flame/static.rb @@ -22,10 +22,7 @@ content_type File.extname(file) response[Rack::CACHE_CONTROL] = 'no-cache' response['Last-Modified'] = file_time.httpdate - # 'Content-Disposition'...
Remove unnecessary halt from Static module
diff --git a/test/unit/featured_link_test.rb b/test/unit/featured_link_test.rb index abc1234..def5678 100644 --- a/test/unit/featured_link_test.rb +++ b/test/unit/featured_link_test.rb @@ -2,22 +2,22 @@ class FeaturedLinkTest < ActiveSupport::TestCase test "should not be valid without a url" do - link = build(:...
Add positive test for FeaturedLink Also update the negative tests so the models would otherwise be valid if it wasn't for the attribute we are testing.
diff --git a/lib/kosher_bacon.rb b/lib/kosher_bacon.rb index abc1234..def5678 100644 --- a/lib/kosher_bacon.rb +++ b/lib/kosher_bacon.rb @@ -7,6 +7,7 @@ # An app's spec files are immediately after RubyMotion's. before_app_specs = config.spec_files.index { |file| !file.start_with?(config.motiondir) } confi...
Set env variable for test/unit style output
diff --git a/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureCatalog.rb b/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureCatalog.rb index abc1234..def5678 100644 --- a/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_featureCatalog.rb +++ b/lib/adiwg/mdtranslator/writers/iso19115_1...
Add dictionary support to iso19115-1 writer
diff --git a/machete-dsl.gemspec b/machete-dsl.gemspec index abc1234..def5678 100644 --- a/machete-dsl.gemspec +++ b/machete-dsl.gemspec @@ -8,9 +8,9 @@ gem.version = Machete::DSL::VERSION gem.authors = ["Piotr Niełacny"] gem.email = ["piotr.nielacny@gmail.com"] - gem.description = %q{TOD...
Update info about gem in .gemspec file
diff --git a/lib/draper/rspec_integration.rb b/lib/draper/rspec_integration.rb index abc1234..def5678 100644 --- a/lib/draper/rspec_integration.rb +++ b/lib/draper/rspec_integration.rb @@ -14,6 +14,9 @@ config.around do |example| if :decorator == example.metadata[:type] ApplicationController.new.set...
Add request and params support to the Draper spec harness
diff --git a/lib/html/proofer/checks/html.rb b/lib/html/proofer/checks/html.rb index abc1234..def5678 100644 --- a/lib/html/proofer/checks/html.rb +++ b/lib/html/proofer/checks/html.rb @@ -3,13 +3,30 @@ class HtmlCheck < ::HTML::Proofer::CheckRunner # new html5 tags (source: http://www.w3schools.com/html/html5_new...
Add support for validation of all svg elements.
diff --git a/lib/juknife/scraping/context.rb b/lib/juknife/scraping/context.rb index abc1234..def5678 100644 --- a/lib/juknife/scraping/context.rb +++ b/lib/juknife/scraping/context.rb @@ -20,7 +20,7 @@ end def text(selector) - find(selector)&.text&.strip + find(selector)&.text&.strip&.gsub...
Fix to replace space sequence with one space
diff --git a/cmis-ruby.gemspec b/cmis-ruby.gemspec index abc1234..def5678 100644 --- a/cmis-ruby.gemspec +++ b/cmis-ruby.gemspec @@ -19,8 +19,8 @@ s.required_ruby_version = '>= 1.9.3' - s.add_dependency 'faraday', '~> 0.9' - s.add_dependency 'faraday_middleware', '~> 0.9' + s.add_depen...
Upgrade faraday dependency, to get rid of deprecation warning when using Ruby 2.7.
diff --git a/lib/captainslog.rb b/lib/captainslog.rb index abc1234..def5678 100644 --- a/lib/captainslog.rb +++ b/lib/captainslog.rb @@ -7,8 +7,12 @@ @history ||= 6 end + def today + @today ||= Date.today + end + def tomorrow - @tomorrow ||= Date.today + 1 + @tomorrow ||= today + 1 end de...
Print stardate and log title
diff --git a/lib/classloader.rb b/lib/classloader.rb index abc1234..def5678 100644 --- a/lib/classloader.rb +++ b/lib/classloader.rb @@ -1,6 +1,9 @@ class ClassLoaderContext def initialize(classloader) @classloader = classloader + + @name = nil + @execute_block = nil end def name(name = nil) @@ -9...
Define instance variables in initialize and only execute block if not nil
diff --git a/lib/rom/support/class_macros.rb b/lib/rom/support/class_macros.rb index abc1234..def5678 100644 --- a/lib/rom/support/class_macros.rb +++ b/lib/rom/support/class_macros.rb @@ -7,12 +7,25 @@ args.each do |name| mod.module_eval <<-RUBY, __FILE__, __LINE__ + 1 + @@macros = [#{args.ma...
Add Mapper.base_relation and inheritance of macros
diff --git a/core/db/migrate/20140213184916_add_more_indexes.rb b/core/db/migrate/20140213184916_add_more_indexes.rb index abc1234..def5678 100644 --- a/core/db/migrate/20140213184916_add_more_indexes.rb +++ b/core/db/migrate/20140213184916_add_more_indexes.rb @@ -0,0 +1,14 @@+class AddMoreIndexes < ActiveRecord::Migra...
Add some more db indexes to assist with query performance Fixes #4338
diff --git a/lib/active_decorator/railtie.rb b/lib/active_decorator/railtie.rb index abc1234..def5678 100644 --- a/lib/active_decorator/railtie.rb +++ b/lib/active_decorator/railtie.rb @@ -13,6 +13,7 @@ end ActiveSupport.on_load(:action_mailer) do require 'active_decorator/monkey/abstract_controll...
Add ViewContext::Filter include to ActionMailer::Base When 'ActionMailer::Base' is delivered by Model or Worker(like ActiveJob), 'ActiveDecorator::ViewContext.current' is 'nil' and cannot use view helper methods in decorator. the reason is that 'ActionMailer::Base' inherits 'AbstractController::Base', but only ActionC...
diff --git a/Casks/luyten.rb b/Casks/luyten.rb index abc1234..def5678 100644 --- a/Casks/luyten.rb +++ b/Casks/luyten.rb @@ -2,6 +2,7 @@ version '0.4.7' sha256 '612bd58de0d3ef23fbb9803d302f0af7d3f03e5fcf06cadd69521f0e57637045' + # github.com/deathmarine/Luyten was verified as official when first introduced to t...
Fix `url` stanza comment for Luyten.
diff --git a/Casks/puppet.rb b/Casks/puppet.rb index abc1234..def5678 100644 --- a/Casks/puppet.rb +++ b/Casks/puppet.rb @@ -1,10 +1,10 @@ cask :v1 => 'puppet' do - version '3.7.3' - sha256 'f673b9c45dbefa410efa6d7f74ea820a1b01b4f659f142c92310f8ab3df477af' + version '3.7.4' + sha256 '8eb17151199cc8c726fd64a56aba20b...
Update Puppet to 3.7.4, set license License assigned based on https://github.com/puppetlabs/puppet/blob/master/LICENSE
diff --git a/lib/mocha/integration/mini_test/adapter.rb b/lib/mocha/integration/mini_test/adapter.rb index abc1234..def5678 100644 --- a/lib/mocha/integration/mini_test/adapter.rb +++ b/lib/mocha/integration/mini_test/adapter.rb @@ -1,6 +1,6 @@ require 'mocha/api' require 'mocha/integration/assertion_counter' -require...
Fix require statement for MiniTest::Adapter.
diff --git a/lib/brick_ftp/utils/chunk_io.rb b/lib/brick_ftp/utils/chunk_io.rb index abc1234..def5678 100644 --- a/lib/brick_ftp/utils/chunk_io.rb +++ b/lib/brick_ftp/utils/chunk_io.rb @@ -1,3 +1,5 @@+require 'tempfile' + module BrickFTP module Utils class ChunkIO @@ -37,16 +39,19 @@ end def eac...
Use `File` instead of `StringIO`.
diff --git a/lib/chatops_deployer/globals.rb b/lib/chatops_deployer/globals.rb index abc1234..def5678 100644 --- a/lib/chatops_deployer/globals.rb +++ b/lib/chatops_deployer/globals.rb @@ -2,12 +2,7 @@ WORKSPACE = ENV['DEPLOYER_WORKSPACE'] || '/var/www' DEPLOYER_HOST = ENV['DEPLOYER_HOST'] || '127.0.0.1.xip.io' ...
Remove remaining traces of LOG_DIR var
diff --git a/lib/pliny/sidekiq/middleware/server/log.rb b/lib/pliny/sidekiq/middleware/server/log.rb index abc1234..def5678 100644 --- a/lib/pliny/sidekiq/middleware/server/log.rb +++ b/lib/pliny/sidekiq/middleware/server/log.rb @@ -1,8 +1,7 @@ module Pliny::Sidekiq::Middleware module Server class Log - de...
Use Pliny::Metrics.count instead of assuming l2met
diff --git a/test/integration/users_login_test.rb b/test/integration/users_login_test.rb index abc1234..def5678 100644 --- a/test/integration/users_login_test.rb +++ b/test/integration/users_login_test.rb @@ -4,7 +4,7 @@ class UsersLoginTest < ActionDispatch::IntegrationTest def setup login = LoginPage.instance...
Fix broken test for rendering @login_path