From e055e374516f91d07228cb51525581a578ec143e Mon Sep 17 00:00:00 2001 From: Elmer Thomas Date: Tue, 7 Jan 2020 14:05:16 -0800 Subject: [PATCH] Add Makefile for automation --- .rubocop.yml | 2 ++ LICENSE.txt | 2 +- Makefile | 7 +++++++ test/test_ruby_http_client.rb | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 Makefile diff --git a/.rubocop.yml b/.rubocop.yml index 2a5c8de..4c98947 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -43,3 +43,5 @@ Style/ExtraSpacing: Enabled: true AllowForAlignment: false ForceEqualSignAlignment: false +Style/FrozenStringLiteralComment: + Enabled: false diff --git a/LICENSE.txt b/LICENSE.txt index 4e9ed16..46f2eff 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016-2018 SendGrid, Inc. +Copyright (c) 2016-2020 Twilio SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..89925c0 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +.PHONY: install test + +install: + gem install minitest + +test: + rake diff --git a/test/test_ruby_http_client.rb b/test/test_ruby_http_client.rb index 69517c2..746f3de 100644 --- a/test/test_ruby_http_client.rb +++ b/test/test_ruby_http_client.rb @@ -278,7 +278,7 @@ def test_use_cases_exists end def test_license_date_is_updated - license_end_year = IO.read('LICENSE.txt').match(/Copyright \(c\) 2016-(\d{4}) SendGrid/)[1].to_i + license_end_year = IO.read('LICENSE.txt').match(/Copyright \(c\) 2016-(\d{4}) Twilio SendGrid/)[1].to_i current_year = Time.new.year assert_equal(current_year, license_end_year) end