urbanopt-reporting 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88fd3280248540278799a2b19f5d970ad199bf75acab0efe08bd3c4c11d7ec75
4
- data.tar.gz: 32acb1d1523bcbd7bbcf86c8eeec200f4c03bd86ee12ccefd4f936888a3bdb4b
3
+ metadata.gz: c05852788af7d42e924ebbc180c721c4f21fe0dec668732acfa09e4a2909f4f0
4
+ data.tar.gz: 807e962c78c6af22fa5f15af8c3ec1f45b534a65b19fa6212073deb253ff9be2
5
5
  SHA512:
6
- metadata.gz: 5520b1958d1037868b5daf041d618bf0be93673235bf65d21ccb8e7f5354ea52ac12e1b4b0d39bb9f6dcf09c6f648c8eeb53136365162bfd0f31858f826a9822
7
- data.tar.gz: f0b2ddc2128321e99b3590924db5b2ac29c7deb9f31f326f2639ff9efcaf44aa86e223e1b56801ba24e05333e38d5cd4be80983f48d997e61f2451f1617a6ee9
6
+ metadata.gz: 0e187629e9ebcf371b55186e5c5765384667d09a29ecbc91cb112af8368d3719e4dbe63f21aed8ba7a6a5ffe5a2bcc110bb76dcb0d5e83e888eee4f7dd2144f4
7
+ data.tar.gz: f7b23ae1f1a8d769f550553efc6ef824eae83075d838a3247772c67725c1fb079d863cf28e1d1661d9cf81363a43b8870d3375c38cf094328d7060ef80ecaba6
@@ -0,0 +1,41 @@
1
+ name: nightly_build
2
+
3
+ on:
4
+ # push:
5
+ schedule:
6
+ # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
7
+ # 5 am UTC (11pm MDT the day before) every weekday night in MDT
8
+ - cron: '22 5 * * 2-6'
9
+
10
+ # Cancels an existing job (of the same workflow) if it is still running
11
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-only-cancel-in-progress-jobs-or-runs-for-the-current-workflow
12
+ # concurrency:
13
+ # group: ${{ github.workflow }}-${{ github.ref }}
14
+ # cancel-in-progress: true
15
+
16
+ env:
17
+ # This env var should enforce develop branch of all dependencies
18
+ FAVOR_LOCAL_GEMS: true
19
+ GEM_DEVELOPER_KEY: ${{ secrets.GEM_DEVELOPER_KEY }}
20
+
21
+ jobs:
22
+ weeknight-tests:
23
+ # Pinned to `ubuntu-20.04`. When ubuntu-latest adopts 22.04 it would break for us since 22 only supports Ruby 3.1
24
+ # https://github.com/ruby/setup-ruby#supported-platforms
25
+ runs-on: ubuntu-20.04
26
+ container:
27
+ image: docker://nrel/openstudio:3.4.0
28
+ steps:
29
+ - name: Checkout code
30
+ uses: actions/checkout@v3
31
+ - name: Update gems
32
+ run: |
33
+ bundle update
34
+ - name: Run Rspec
35
+ run: bundle exec rspec
36
+ # coveralls action docs: https://github.com/marketplace/actions/coveralls-github-action
37
+ - name: Coveralls
38
+ uses: coverallsapp/github-action@master
39
+ with:
40
+ github-token: ${{ secrets.GITHUB_TOKEN }}
41
+ path-to-lcov: "./coverage/lcov/urbanopt-reporting-gem.lcov"
data/CHANGELOG.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # URBANopt Reporting Gem
2
2
 
3
+ ## Version 0.6.2
4
+ Date Range: 06/28/22 - 08/17/22
5
+
6
+ - Fixed [#118]( https://github.com/urbanopt/urbanopt-reporting-gem/pull/118 ), set up actions with coveralls
7
+ - Fixed [#119]( https://github.com/urbanopt/urbanopt-reporting-gem/pull/119 ), emissions bug fix
8
+
3
9
  ## Version 0.6.1
4
- Date Range: 05/10-22 - 06/27/22:
10
+ Date Range: 05/10-22 - 06/27/22
5
11
 
6
12
  - Fixed [#114]( https://github.com/urbanopt/urbanopt-reporting-gem/pull/114 ), added natural gas, propane and fuel oil emissions reporting
7
13
 
8
14
  ## Version 0.6.0
9
- Date Range: 11/22/21 - 05/09/22:
15
+ Date Range: 11/22/21 - 05/09/22
10
16
 
11
17
  - Fixed [#95]( https://github.com/urbanopt/urbanopt-reporting-gem/pull/95 ), adding additional PV fields to UO output reports
12
18
  - Fixed [#98]( https://github.com/urbanopt/urbanopt-reporting-gem/issues/98 ), add RNM results fields to schema
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # URBANopt Reporting Gem
2
2
 
3
+ [![Coverage Status](https://coveralls.io/repos/github/urbanopt/urbanopt-reporting-gem/badge.svg?branch=develop)](https://coveralls.io/github/urbanopt/urbanopt-reporting-gem?branch=develop)
4
+
3
5
  The URBANopt<sup>&trade;</sup> Reporting Gem defines the URABNopt reports (Scenario and Feature reports). It also includes the default reporting measure which query results from the energyplus sql database and reports it in the Feature reports.
4
6
 
5
7
 
@@ -27,9 +29,9 @@ Or install it yourself as:
27
29
  Check out the repository and then execute:
28
30
 
29
31
  $ bundle install
30
- $ bundle update
32
+ $ bundle update
31
33
  $ bundle exec rake
32
-
34
+
33
35
  ## Releasing
34
36
 
35
37
  * Update CHANGELOG.md
@@ -222,7 +222,7 @@ module URBANopt
222
222
  result[:comfort_result] = comfort_result_hash if @comfort_result
223
223
 
224
224
  emissions_hash = @emissions if @emissions
225
- #emissions_hash.delete_if { |k, v| v.nil? }
225
+ emissions_hash.delete_if { |k, v| v.nil? }
226
226
  result[:emissions] = emissions_hash if @emissions
227
227
 
228
228
  # validates +reporting_period+ properties against schema for reporting period.
@@ -40,6 +40,6 @@
40
40
 
41
41
  module URBANopt
42
42
  module Reporting
43
- VERSION = '0.6.1'.freeze
43
+ VERSION = '0.6.2'.freeze
44
44
  end
45
45
  end
@@ -26,6 +26,9 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'bundler', '>= 2.1.0'
27
27
  spec.add_development_dependency 'rake', '~> 13.0'
28
28
  spec.add_development_dependency 'rspec', '~> 3.9'
29
+ spec.add_development_dependency 'simplecov', '~> 0.18.2'
30
+ spec.add_development_dependency 'simplecov-lcov', '~> 0.8.0'
31
+
29
32
  spec.add_runtime_dependency 'json_pure', '~> 2.3'
30
33
  spec.add_runtime_dependency 'json-schema', '~> 2.8'
31
34
  spec.add_runtime_dependency 'openstudio-extension', '~> 0.5.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urbanopt-reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rawad El Kontar
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-06-27 00:00:00.000000000 Z
12
+ date: 2022-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -53,6 +53,34 @@ dependencies:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '3.9'
56
+ - !ruby/object:Gem::Dependency
57
+ name: simplecov
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: 0.18.2
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: 0.18.2
70
+ - !ruby/object:Gem::Dependency
71
+ name: simplecov-lcov
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: 0.8.0
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: 0.8.0
56
84
  - !ruby/object:Gem::Dependency
57
85
  name: json_pure
58
86
  requirement: !ruby/object:Gem::Requirement
@@ -106,6 +134,7 @@ files:
106
134
  - ".github/ISSUE_TEMPLATE/bug_report.md"
107
135
  - ".github/ISSUE_TEMPLATE/feature_request.md"
108
136
  - ".github/pull_request_template.md"
137
+ - ".github/workflows/nightly_build.yml"
109
138
  - ".gitignore"
110
139
  - ".rdoc_options"
111
140
  - ".rubocop.yml"