pvoutput 1.0.0 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8838c12458d732306134a95d095732b0601b943a57bd327591390893fde07197
4
- data.tar.gz: b302c36decace96a670043a6642bbd19b1a1c8ab08266e8dde4b3c7f8f23f92a
3
+ metadata.gz: 12f23ce00da08b8c11d608678814059ea944ceb96690cf9472d10bc4c28cc9bf
4
+ data.tar.gz: be107b5aa1b8b11fd0a7fb728a5c8ee8cd0b71ca7b57b59a3c4330d42fd5da29
5
5
  SHA512:
6
- metadata.gz: 9b60f6fbe559f1fc9a15b9debcf5703eaa42aa95bbe35aa7ae3fd8016197d279ce8f3c62414a2c1faa05adfaf7efccbfe2dd9bd0044ec28f239855b0b1492080
7
- data.tar.gz: 3e203a8ce6c1c1309ec1ad22f37267f94d74820b6c4a332b36a94c818c1bee9ae2442223b31d45c3b6c243a0887c4023a1e9b22c2f6deadf24c10022854d7f32
6
+ metadata.gz: 9f7fb19d50a77f73aea7d86f323a8f8c6c55ebba5e02fb5c79248f6821da91e4046f94f40e3032cf682d8a5a258200ace172dad73e7bd70bae089c52c95ebba3
7
+ data.tar.gz: 4c22868b8b80f8202a8cde10ff1b131dd3e4f2de66a83ebd8c68c25ec466a3e5819021fbaa6bfd86323a1ae5dcda960c35e6e17ea342d55aa30053ee372645d8
data/.rubocop.yml CHANGED
@@ -35,3 +35,6 @@ Layout/HashAlignment:
35
35
 
36
36
  Style/OptionalBooleanParameter:
37
37
  Enabled: false
38
+
39
+ RSpec/MultipleExpectations:
40
+ Max: 2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ # 1.1.0 (2021-07-12)
4
+
5
+ * add_batch_output is now using addoutput with a batch size of 1 in regular mode and 100 in donation mode (@jwillemsen)
6
+
7
+ # Changelog
8
+
3
9
  # 1.0.0 (2021-02-14)
4
10
 
5
11
  * Require a minimum of Ruby 2.5 (@jwillemsen)
@@ -11,9 +11,10 @@ module PVOutput
11
11
  def initialize(system_id, api_key, donation_mode = false)
12
12
  @system_id = system_id.to_s
13
13
  @api_key = api_key.to_s
14
- # The batch operations have default limit of 30 sets of data in one request, when you
15
- # are using the donation mode the limit is 100 sets
16
- @batch_size = 30
14
+
15
+ # The add_batch_output operation has a default limit of 1 sets of data in one
16
+ # request, when you are using the donation mode the limit is 100 sets
17
+ @batch_size = 1
17
18
  @batch_size = 100 if donation_mode
18
19
 
19
20
  self.class.headers 'X-Pvoutput-Apikey' => @api_key, 'X-Pvoutput-SystemId' => @system_id
@@ -103,7 +104,7 @@ module PVOutput
103
104
  :data => data.chop,
104
105
  }
105
106
 
106
- post_request('/service/r2/addbatchoutput.jsp', :body => params)
107
+ post_request('/service/r2/addoutput.jsp', :body => params)
107
108
  end
108
109
  end
109
110
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PVOutput
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pvoutput
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Ferlito
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-13 00:00:00.000000000 Z
11
+ date: 2021-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  requirements: []
211
- rubygems_version: 3.1.4
211
+ rubygems_version: 3.1.6
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: Library to speak to the PVOutput API