update_license.rb in openstudio-analysis-1.0.0 vs update_license.rb in openstudio-analysis-1.0.1

- old
+ new

@@ -4,11 +4,11 @@ erb_regex = /^<%.*#.\*{79}.*#.\*{79}.%>$/m js_regex = /^\/\* @preserve.*Copyright.*license.{2}\*\//m ruby_header_text = <<EOT # ******************************************************************************* -# OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. +# OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # (1) Redistributions of source code must retain the above copyright notice, @@ -43,11 +43,11 @@ ruby_header_text.strip! erb_header_text = <<EOT <% # ******************************************************************************* - # OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. + # OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC. # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # (1) Redistributions of source code must retain the above copyright notice, @@ -82,11 +82,11 @@ EOT erb_header_text.strip! js_header_text = <<EOT /* @preserve - * OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved. + * OpenStudio(R), Copyright (c) 2008-2019, Alliance for Sustainable Energy, LLC. All rights reserved. * Use of this source code is governed by a BSD-style license that can be found at openstudio.net/license. */ EOT js_header_text.strip! @@ -94,10 +94,11 @@ { glob: 'lib/**/*.rb', license: ruby_header_text, regex: ruby_regex }, { glob: 'spec/openstudio/**/*.rb', license: ruby_header_text, regex: ruby_regex }, { glob: 'spec/integration/**/*.rb', license: ruby_header_text, regex: ruby_regex }, # single files - { glob: 'Rakefile', license: ruby_header_text, regex: ruby_regex } + { glob: 'Rakefile', license: ruby_header_text, regex: ruby_regex }, + { glob: 'spec/spec_helper.rb', license: ruby_header_text, regex: ruby_regex } ] paths.each do |path| Dir[path[:glob]].each do |file| puts "Updating license in file #{file}"