openstudio-recommendation-engine 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,11 +23,9 @@ module OpenStudio
23
23
  def initialize(model, path_to_measures)
24
24
  @model = model
25
25
  @path_to_measures = path_to_measures
26
-
27
- init
28
26
  end
29
27
 
30
- def init
28
+ def check_measures
31
29
  measure_checks = Dir.glob("#{@path_to_measures}/**/recommendation.rb")
32
30
 
33
31
  applicable_measures = []
@@ -36,7 +34,7 @@ module OpenStudio
36
34
  require "#{File.expand_path(measure)}"
37
35
 
38
36
  measure_class_name = File.basename(File.expand_path("../..",measure))
39
- puts "measure class name is: #{measure_class_name}"
37
+ puts "checking #{measure_class_name}"
40
38
 
41
39
  measure = Object.const_get(measure_class_name).new
42
40
 
@@ -54,7 +52,7 @@ module OpenStudio
54
52
  end
55
53
 
56
54
  applicable_measures_json = JSON.pretty_generate(applicable_measures)
57
- puts applicable_measures_json
55
+
58
56
  return applicable_measures_json
59
57
 
60
58
  end
@@ -19,6 +19,6 @@
19
19
 
20
20
  module OpenStudio
21
21
  module RecommendationEngine
22
- VERSION = "0.1.1"
22
+ VERSION = "0.1.2"
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-recommendation-engine
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nicholas Long