openstudio-analysis 1.0.0.rc10 → 1.0.0.rc11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 730a32510cb39282ef25487714f4b5e5c850ef61
4
- data.tar.gz: b1b239cc0d42b7679e6587a12e0a645165f376cd
3
+ metadata.gz: 69b6efe3f7d39b16404e283429ad3939f553f940
4
+ data.tar.gz: b53c9ff9fbd921a9a378dee5cc7e942d243111ea
5
5
  SHA512:
6
- metadata.gz: bceff944862e1563f30f59cf098d8b0d5c4f31464774b094d9684e014e10cad4a62862be075410adf6e774aba0d7d9b3ceb0a9fe44ce9307b15f04329aa2bf2d
7
- data.tar.gz: 4ee216a32f6a788ffb57f72f1c61e2b575b50fe1e52485745046ab76d6133eb00b38d4aa74feaf55a441eb348814196fda00d2c42075b399542daaa58b5e4091
6
+ metadata.gz: aa11be16247530bf66ae49746553f8fc333b3a40bf1eb5463b5594223b51180ae2875caa4656a3b0b7d598906f5a952e69148018e47762c5ed1bbfa72607e8e2
7
+ data.tar.gz: 3df5b63325a9e636c5793aca233601ea5c9d2dcb05df88cbdf15d898aae34503cd9493993992381155080261748a182fca360a1dcce323258039024b499d3c8b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  OpenStudio Analysis Gem Change Log
2
2
  ==================================
3
3
 
4
+ Version 1.0.0.rc11 (Unreleased)
5
+ ------------------
6
+ * Default path to ServerApi logfile to ~/os_server_api.log. This can be overridden by setting the log_path options key in the initializer.
7
+
4
8
  Version 1.0.0.rc10
5
9
  ------------------
6
10
  * Fix boolean data type in datapoints translator
@@ -9,9 +9,13 @@ module OpenStudio
9
9
  BATCH_RUN_METHODS = %w(lhs preflight single_run repeat_run doe diag baseline_perturbation batch_datapoints).freeze
10
10
 
11
11
  def initialize(options = {})
12
- defaults = { hostname: 'http://localhost:8080' }
12
+ defaults = { hostname: 'http://localhost:8080', log_path: File.expand_path('~/os_server_api.log') }
13
13
  options = defaults.merge(options)
14
- @logger = ::Logger.new('faraday.log')
14
+ if ENV['OS_SERVER_LOG_PATH']
15
+ @logger = ::Logger.new(ENV['OS_SERVER_LOG_PATH'] + '/os_server_api.log')
16
+ else
17
+ @logger = ::Logger.new(options[:log_path])
18
+ end
15
19
 
16
20
  @hostname = options[:hostname]
17
21
 
@@ -1,5 +1,5 @@
1
1
  module OpenStudio
2
2
  module Analysis
3
- VERSION = '1.0.0.rc10'.freeze
3
+ VERSION = '1.0.0.rc11'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstudio-analysis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc10
4
+ version: 1.0.0.rc11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Long
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-17 00:00:00.000000000 Z
11
+ date: 2016-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday