plc_access 0.1.2 → 0.1.3

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: 508b6323047d55f073eb5d46d05919284b5d09c9c5cdf417df67a60642d1c097
4
- data.tar.gz: '017940d773f256fec40e4fd0ac70a6efe491354401a20c9b23a99a47fe0b66c8'
3
+ metadata.gz: 3f4f7913359b4f1b4f637c20481709661b056a264b76280ffe8a0948d2bbe1a3
4
+ data.tar.gz: b126188a9c855a3f2dd9a368edc32d022daf5b03274d0f4201aa34ee3dbff5ee
5
5
  SHA512:
6
- metadata.gz: f73eca7c987f0ae58e02ff3e0b4526fce468c75d19cf16f45f0d80cff5655b5b7b6536a020fc69be177ac47e900df18737aef637d63a55a128b2b02ee63e7da0
7
- data.tar.gz: 8595aa8ca039870ec747a1646a36923ee8558f98099ebc593dae70c9df435402fd749019a6b539e0017e4ed0d4879b3196aa38f1c384f55fc668cf10a09380e7
6
+ metadata.gz: dbca94f874f0a4792036f4bb99d46ff71f1d0360666c81bcef68b80fa9fad7cf3c272e2d5fa7d624409c80167715f928e5c53c95db8bdbf1f5f94c297a33ba62
7
+ data.tar.gz: 117d893285cc51e0de947495ac02b5e3348b6bf818ad1d7d20c1a77ad935fd56472d747922ebd3f9836331ff2d10d540e7aa7877374136689637515e4c7d024d
data/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGES
2
2
 
3
+ ## 0.1.3
4
+
5
+ - Rename Array#as_string to Array#to_string
6
+ - Rename String#to_ushort to String#as_ushort
7
+
3
8
  ## 0.1.2
4
9
 
5
10
  - Be able to access the type value that you want to get.
@@ -43,7 +43,7 @@ module ActAsType
43
43
  pack("f*").unpack("S*")
44
44
  end
45
45
 
46
- def as_string length=nil, encoding=Encoding::UTF_8
46
+ def to_string length=nil, encoding=Encoding::UTF_8
47
47
  s = pack("v*")
48
48
  if length
49
49
  s = s[0, length].delete("\000")
@@ -55,7 +55,7 @@ module ActAsType
55
55
 
56
56
  refine String do
57
57
 
58
- def to_ushort length=nil, encoding=Encoding::UTF_8
58
+ def as_ushort length=nil, encoding=Encoding::UTF_8
59
59
  a = self.encode(encoding).unpack("v*")
60
60
  return a unless length
61
61
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlcAccess
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plc_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katsuyoshi Ito
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-11 00:00:00.000000000 Z
11
+ date: 2023-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: serialport