pvoutput 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/CHANGELOG.md +6 -0
- data/lib/pvoutput/client.rb +5 -4
- data/lib/pvoutput/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12f23ce00da08b8c11d608678814059ea944ceb96690cf9472d10bc4c28cc9bf
|
4
|
+
data.tar.gz: be107b5aa1b8b11fd0a7fb728a5c8ee8cd0b71ca7b57b59a3c4330d42fd5da29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f7fb19d50a77f73aea7d86f323a8f8c6c55ebba5e02fb5c79248f6821da91e4046f94f40e3032cf682d8a5a258200ace172dad73e7bd70bae089c52c95ebba3
|
7
|
+
data.tar.gz: 4c22868b8b80f8202a8cde10ff1b131dd3e4f2de66a83ebd8c68c25ec466a3e5819021fbaa6bfd86323a1ae5dcda960c35e6e17ea342d55aa30053ee372645d8
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/pvoutput/client.rb
CHANGED
@@ -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
|
-
|
15
|
-
#
|
16
|
-
|
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/
|
107
|
+
post_request('/service/r2/addoutput.jsp', :body => params)
|
107
108
|
end
|
108
109
|
end
|
109
110
|
end
|
data/lib/pvoutput/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|