growatt 0.1.3 → 0.2.0

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.
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+ require 'simplecov'
3
+ SimpleCov.start
4
+
5
+ $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
6
+ require 'minitest/autorun'
7
+ require 'minitest/spec'
8
+
9
+ require 'dotenv'
10
+ require 'growatt'
11
+
12
+ Dotenv.load
13
+
14
+ TEST_LOGGER = 'test.log'
15
+
16
+ File.delete(TEST_LOGGER) if File.exist?(TEST_LOGGER)
17
+
18
+ Growatt.reset
19
+ Growatt.configure do |config|
20
+ config.username = ENV['GROWATT_USERNAME']
21
+ config.password = ENV['GROWATT_PASSWORD']
22
+ config.logger = Logger.new(TEST_LOGGER)
23
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: growatt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janco Tanis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-30 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wrapi
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- description:
97
+ description:
98
98
  email: gems@jancology.com
99
99
  executables: []
100
100
  extensions: []
@@ -116,13 +116,16 @@ files:
116
116
  - lib/growatt/error.rb
117
117
  - lib/growatt/pagination.rb
118
118
  - lib/growatt/version.rb
119
+ - test/auth_test.rb
120
+ - test/client_test.rb
121
+ - test/test_helper.rb
119
122
  homepage: https://rubygems.org/gems/growatt
120
123
  licenses:
121
124
  - MIT
122
125
  metadata:
123
126
  homepage_uri: https://rubygems.org/gems/growatt
124
127
  source_code_uri: https://github.com/jancotanis/growatt
125
- post_install_message:
128
+ post_install_message:
126
129
  rdoc_options: []
127
130
  require_paths:
128
131
  - lib
@@ -137,8 +140,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
140
  - !ruby/object:Gem::Version
138
141
  version: '0'
139
142
  requirements: []
140
- rubygems_version: 3.2.3
141
- signing_key:
143
+ rubygems_version: 3.0.3.1
144
+ signing_key:
142
145
  specification_version: 4
143
146
  summary: A Ruby wrapper for the Growatt APIs (readonly)
144
- test_files: []
147
+ test_files:
148
+ - test/auth_test.rb
149
+ - test/client_test.rb
150
+ - test/test_helper.rb