Rakefile in tbd-3.2.0 vs Rakefile in tbd-3.2.1
- old
+ new
@@ -1,31 +1,32 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec) do |t|
- t.rspec_opts = '--exclude-pattern \'spec/**/*suite_spec.rb\''
+ t.rspec_opts = "--exclude-pattern \'spec/**/*suite_spec.rb\'"
end
task default: :spec
desc "Update Library Files"
task :libraries do
- puts "Updating Library Files"
+ # puts "Updating Library Files"
require "fileutils"
libs = ["topolys", "osut", "oslg", "tbd"]
files = {}
-
+
$:.each do |path|
libs.each do |l|
next unless path.include?(l)
+
files[l] = Dir.glob(File.join(path, "#{l}/*.rb"))
files[l].delete_if { |f| f.include?("version.rb") } unless l == "topolys"
- puts "#{l} lib files:"
- files[l].each { |lf| puts "... #{lf}" }
- puts
+ # puts "#{l} lib files:"
+ # files[l].each { |lf| puts "... #{lf}" }
+ # puts
end
end
dirs = Dir.glob(File.join(__dir__, "lib/measures/*"))
@@ -36,10 +37,10 @@
end
end
desc "Update Measure"
task measure: [:libraries] do
- puts "Updating Measure"
+ # puts "Updating Measure"
require "openstudio"
require "open3"
cli = OpenStudio.getOpenStudioCLI