lxi_rb 0.7.0 → 0.7.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: 77313b2200b1ba847066182454dd2ac2ef36adc61a4c356f441e685f7e27c4da
4
- data.tar.gz: a7ac41c3eb21734f6af0e3bbb42f83fce01a6323357a130b04042cf52b95fa46
3
+ metadata.gz: 16db8203baad2a623ffb1f95c926fa31ff5b1c9685abdc393247102abf19eed7
4
+ data.tar.gz: febac9291aa71726008a53911fd1019aee884b5bb0b9fdd2c9aade89f36b9dd5
5
5
  SHA512:
6
- metadata.gz: '067999e1c48acb5037f78b7fba4d503762f93550a6ba76f392912f2b8adda565fb1a5a6e5ac6858809dda85bc4420c405d294ab296a31adc96f095e0e01dbaf4'
7
- data.tar.gz: d8f1dda2cf1538daa27c09e338bafa33c05e16e399420e4c26b2936df10f878d732d0d6fd9bc030490c6c8e2de98a8922111d40b7bb8d350585fba1a3db67695
6
+ metadata.gz: 6cde8fd7f0588213d6146cd55faaadbc81a6ddeaae9a703e79012367079b61b86af2c3cbaaf14511ff7313233df7bf290817deff5b1321a52d87aed18ab7cebb
7
+ data.tar.gz: 5e8afc85c5d0d07aa565d827bde59d6b0300ca2fd43b6931a8040ee572bf9b15eef47a86d4913d416444198f0f61f847b25745bd4ba914ce1e1a2ab5dcebb803
data/.rubocop.yml ADDED
@@ -0,0 +1,55 @@
1
+ # Rubocop config for lxi_rb rubygem
2
+ AllCops:
3
+ TargetRubyVersion: 3.1
4
+ EnabledByDefault: true
5
+ AutoCorrect: true
6
+
7
+ require:
8
+ - rubocop-performance
9
+ - rubocop-rake
10
+ - rubocop-minitest
11
+
12
+ inherit_gem:
13
+ syntax_tree: config/rubocop.yml
14
+
15
+ Style/StringLiterals:
16
+ EnforcedStyle: single_quotes
17
+
18
+ Style/StringLiteralsInInterpolation:
19
+ Enabled: false
20
+
21
+ Layout/LineLength:
22
+ Max: 120
23
+
24
+ Metrics/MethodLength:
25
+ Max: 30
26
+
27
+ Metrics/BlockLength:
28
+ Max: 30
29
+
30
+ Metrics/ClassLength:
31
+ Enabled: false
32
+
33
+ Documentation:
34
+ Enabled: false
35
+
36
+ Style/Copyright:
37
+ Enabled: false
38
+
39
+ Style/DocumentationMethod:
40
+ Enabled: false
41
+
42
+ Lint/ConstantResolution:
43
+ Enabled: false
44
+
45
+ Bundler/GemComment:
46
+ Enabled: false
47
+
48
+ Style/ConstantVisibility:
49
+ Enabled: false
50
+
51
+ Style/IpAddresses:
52
+ Enabled: false
53
+
54
+ Style/MissingElse:
55
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,86 +1,102 @@
1
- # Changelog
1
+ ## Unreleased ([acccfa6..0c42910](https://github.com/robcarruthers/lxi_rb/compare/acccfa6..0c42910))
2
+ #### Bug Fixes
3
+ - **(linux)** Add liblxi library name - ([4192527](https://github.com/robcarruthers/lxi_rb/commit/4192527ada8d6c4b663f04e019e4d4a20a783b4a)) - [@robcarruthers](https://github.com/robcarruthers)
4
+ #### Miscellaneous Tasks
5
+ - **(ffi)** Add library flags - ([0c42910](https://github.com/robcarruthers/lxi_rb/commit/0c429109fa105a2c51ca2fc3677188106f5a4f43)) - [@robcarruthers](https://github.com/robcarruthers)
6
+ - **(ffi)** Add library flags - ([6e33cb5](https://github.com/robcarruthers/lxi_rb/commit/6e33cb58d39b86ef51ff5b16d65086b0f8664aac)) - [@robcarruthers](https://github.com/robcarruthers)
2
7
 
3
- All notable changes to this project will be documented in this file.
8
+ - - -
9
+ ## [v0.7.2](https://github.com/robcarruthers/lxi_rb/compare/v0.7.1..v0.7.2) - 2023-05-13
10
+ #### Bug Fixes
11
+ - **(linux)** Add liblxi library name - ([4192527](https://github.com/robcarruthers/lxi_rb/commit/4192527ada8d6c4b663f04e019e4d4a20a783b4a)) - [@robcarruthers](https://github.com/robcarruthers)
12
+ #### Documentation
13
+ - **(readme)** Update - ([b2e1d91](https://github.com/robcarruthers/lxi_rb/commit/b2e1d91ddd88ab798d63bb94a514b8c08e6253eb)) - [@robcarruthers](https://github.com/robcarruthers)
14
+ #### Miscellaneous Tasks
15
+ - **(ffi)** Add library flags - ([0c42910](https://github.com/robcarruthers/lxi_rb/commit/0c429109fa105a2c51ca2fc3677188106f5a4f43)) - [@robcarruthers](https://github.com/robcarruthers)
16
+ - **(ffi)** Add library flags - ([6e33cb5](https://github.com/robcarruthers/lxi_rb/commit/6e33cb58d39b86ef51ff5b16d65086b0f8664aac)) - [@robcarruthers](https://github.com/robcarruthers)
4
17
 
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
18
+ - - -
19
+
20
+
21
+ ## [v0.7.1](https://github.com/robcarruthers/lxi_rb/compare/v0.7.0..v0.7.1) - 2023-05-13
22
+ #### Miscellaneous Tasks
23
+ - **(Rubocop)** Fix offences - ([ba347f4](https://github.com/robcarruthers/lxi_rb/commit/ba347f4de9bbcafb28aa86a747f88ca725e4725e)) - [@robcarruthers](https://github.com/robcarruthers)
24
+ - **(version)** v0.7.1 - ([acccfa6](https://github.com/robcarruthers/lxi_rb/commit/acccfa6006795e4ac4b95eba6f89f74c1fb564bb)) - [@robcarruthers](https://github.com/robcarruthers)
7
25
 
8
26
  - - -
9
- ## [v0.7.0](https://github.com/robcarruthers/lxi_rb/compare/v0.6.4..v0.7.0) - 2023-05-11
27
+
28
+ ## [v0.7.0](https://github.com/robcarruthers/lxi_rb/compare/v0.6.4..v0.7.0) - 2023-05-13
29
+ #### Miscellaneous Tasks
30
+ - **(version)** v0.7.0 - ([f1879f2](https://github.com/robcarruthers/lxi_rb/commit/f1879f243826ac1ac58f2e06cc644b77b2e15cb0)) - [@robcarruthers](https://github.com/robcarruthers)
10
31
  #### Tests
11
32
  - **(Lxi)** Add Lxi module tests - ([627766f](https://github.com/robcarruthers/lxi_rb/commit/627766f3953486e54fc7bb67a3cb75701e1aa537)) - [@robcarruthers](https://github.com/robcarruthers)
12
33
 
13
34
  - - -
14
35
 
15
- ## [v0.6.4](https://github.com/robcarruthers/lxi_rb/compare/v0.6.3..v0.6.4) - 2023-05-11
16
- #### Miscellaneous Chores
36
+ ## [v0.6.4](https://github.com/robcarruthers/lxi_rb/compare/v0.6.3..v0.6.4) - 2023-05-13
37
+ #### Miscellaneous Tasks
17
38
  - **(bundle)** Update - ([dff65bb](https://github.com/robcarruthers/lxi_rb/commit/dff65bb2ba3424d55c35dbfc92b7fd7c6ff92388)) - [@robcarruthers](https://github.com/robcarruthers)
39
+ - **(version)** v0.6.4 - ([8ff7d94](https://github.com/robcarruthers/lxi_rb/commit/8ff7d94e611cb5be724d3cdc03d1dba5aafed778)) - [@robcarruthers](https://github.com/robcarruthers)
18
40
  #### Tests
19
41
  - **(device)** Add device tests - ([e8ec714](https://github.com/robcarruthers/lxi_rb/commit/e8ec714522eb034c8e130ccb8239ffc08bf63d8a)) - [@robcarruthers](https://github.com/robcarruthers)
20
42
 
21
43
  - - -
22
44
 
23
- ## [v0.6.3](https://github.com/robcarruthers/lxi_rb/compare/v0.6.2..v0.6.3) - 2023-05-10
24
- #### Miscellaneous Chores
45
+ ## [v0.6.3](https://github.com/robcarruthers/lxi_rb/compare/v0.6.2..v0.6.3) - 2023-05-13
46
+ #### Miscellaneous Tasks
25
47
  - **(bundle)** Update - ([9fbe7d8](https://github.com/robcarruthers/lxi_rb/commit/9fbe7d8aef4a65650d1231b8acdf8cb8392588d7)) - [@robcarruthers](https://github.com/robcarruthers)
48
+ - **(version)** v0.6.3 - ([6be7c69](https://github.com/robcarruthers/lxi_rb/commit/6be7c69445a781f4fb2a18e8a12b8252841fc807)) - [@robcarruthers](https://github.com/robcarruthers)
26
49
 
27
50
  - - -
28
51
 
29
- ## [v0.6.2](https://github.com/robcarruthers/lxi_rb/compare/v0.6.1..v0.6.2) - 2023-05-10
30
- #### Miscellaneous Chores
52
+ ## [v0.6.2](https://github.com/robcarruthers/lxi_rb/compare/v0.6.1..v0.6.2) - 2023-05-13
53
+ #### Miscellaneous Tasks
31
54
  - **(bundle)** Update - ([fd21961](https://github.com/robcarruthers/lxi_rb/commit/fd21961000df56b5834d414c33b8495feed37b7d)) - [@robcarruthers](https://github.com/robcarruthers)
55
+ - **(version)** v0.6.2 - ([afab06a](https://github.com/robcarruthers/lxi_rb/commit/afab06a12883de21d0628dfec4f91615c1eff4aa)) - [@robcarruthers](https://github.com/robcarruthers)
32
56
 
33
57
  - - -
34
58
 
35
- ## [v0.6.1](https://github.com/robcarruthers/lxi_rb/compare/v0.6.0..v0.6.1) - 2023-05-10
36
- #### Miscellaneous Chores
59
+ ## [v0.6.1](https://github.com/robcarruthers/lxi_rb/compare/v0.6.0..v0.6.1) - 2023-05-13
60
+ #### Miscellaneous Tasks
37
61
  - **(bundle)** Update - ([68d675e](https://github.com/robcarruthers/lxi_rb/commit/68d675e63747d5fa9115d62b98d0d6f99e320db0)) - [@robcarruthers](https://github.com/robcarruthers)
62
+ - **(version)** v0.6.1 - ([deb9710](https://github.com/robcarruthers/lxi_rb/commit/deb9710cf59f9b7960607e0bf6936f9ad8c2aba5)) - [@robcarruthers](https://github.com/robcarruthers)
38
63
 
39
64
  - - -
40
65
 
41
- ## [v0.6.0](https://github.com/robcarruthers/lxi_rb/compare/v0.5.0..v0.6.0) - 2023-05-10
42
- #### Miscellaneous Chores
66
+ ## [v0.6.0](https://github.com/robcarruthers/lxi_rb/compare/v0.5.0..v0.6.0) - 2023-05-13
67
+ #### Miscellaneous Tasks
43
68
  - **(bundle)** Update - ([df56919](https://github.com/robcarruthers/lxi_rb/commit/df5691903fa4c07fd0790920df85c45864fe754b)) - [@robcarruthers](https://github.com/robcarruthers)
69
+ - **(version)** v0.6.0 - ([2d69874](https://github.com/robcarruthers/lxi_rb/commit/2d6987451e7f713d7474f5550b9566ddc2a201d4)) - [@robcarruthers](https://github.com/robcarruthers)
44
70
 
45
71
  - - -
46
72
 
47
- ## [v0.5.0](https://github.com/robcarruthers/lxi_rb/compare/v0.4.10..v0.5.0) - 2023-05-10
48
- #### Miscellaneous Chores
73
+ ## [v0.5.0](https://github.com/robcarruthers/lxi_rb/compare/v0.4.10..v0.5.0) - 2023-05-13
74
+ #### Miscellaneous Tasks
49
75
  - **(bundle)** Update - ([11f21ab](https://github.com/robcarruthers/lxi_rb/commit/11f21ab0e0c85306537510bd4ca51275756483d1)) - [@robcarruthers](https://github.com/robcarruthers)
76
+ - **(version)** v0.5.0 - ([93fbb0a](https://github.com/robcarruthers/lxi_rb/commit/93fbb0a9b961a5a4fdf45d5aed3eaa6390fadb63)) - [@robcarruthers](https://github.com/robcarruthers)
50
77
 
51
78
  - - -
52
79
 
53
- ## [v0.4.10](https://github.com/robcarruthers/lxi_rb/compare/v0.4.9..v0.4.10) - 2023-05-10
80
+ ## [v0.4.10](https://github.com/robcarruthers/lxi_rb/compare/v0.4.9..v0.4.10) - 2023-05-13
54
81
  #### Bug Fixes
55
82
  - **(ffi)** Update LXI library location search - ([e557e9a](https://github.com/robcarruthers/lxi_rb/commit/e557e9a77a81eef89260dfa14a5b3e618d6f1879)) - [@robcarruthers](https://github.com/robcarruthers)
56
83
  #### Documentation
57
84
  - **(reademe)** Update header - ([50770ad](https://github.com/robcarruthers/lxi_rb/commit/50770ad38aaf0c7f96560a46cde0e9fa8fbaab89)) - [@robcarruthers](https://github.com/robcarruthers)
58
85
  - **(readme)** Update - ([4fca6cb](https://github.com/robcarruthers/lxi_rb/commit/4fca6cb18e102635307d1eb670607a8be279a5f6)) - [@robcarruthers](https://github.com/robcarruthers)
59
- #### Miscellaneous Chores
86
+ #### Miscellaneous Tasks
60
87
  - **(bundle)** Update - ([aed68fb](https://github.com/robcarruthers/lxi_rb/commit/aed68fbcc0cdb0ded4d9b634cf1c6f56438b526d)) - [@robcarruthers](https://github.com/robcarruthers)
61
88
  - **(bundle)** Update - ([7b3f51a](https://github.com/robcarruthers/lxi_rb/commit/7b3f51a096deebc065544f4078df99bebd22c805)) - [@robcarruthers](https://github.com/robcarruthers)
62
89
  - **(bundle)** Update - ([f4d10c1](https://github.com/robcarruthers/lxi_rb/commit/f4d10c1cb3ff920a21d2236890217bc63f1b6a18)) - [@robcarruthers](https://github.com/robcarruthers)
63
90
  - **(bundle)** Update - ([55fcd9a](https://github.com/robcarruthers/lxi_rb/commit/55fcd9afcef33da6552e872e29fb9550ee0d3faf)) - [@robcarruthers](https://github.com/robcarruthers)
64
91
  - **(changelog)** Updated - ([c30acfd](https://github.com/robcarruthers/lxi_rb/commit/c30acfd2ac37692f0353b45d2cf96e945e597a0b)) - [@robcarruthers](https://github.com/robcarruthers)
92
+ - **(version)** v0.4.10 - ([578e04c](https://github.com/robcarruthers/lxi_rb/commit/578e04cdc752c818ab60fdd8bdf4e3b7cb2a6f7d)) - [@robcarruthers](https://github.com/robcarruthers)
65
93
  - v0.4.12 - ([7f7e90e](https://github.com/robcarruthers/lxi_rb/commit/7f7e90eb2492edc5c9417e4b22db5321a64d9368)) - [@robcarruthers](https://github.com/robcarruthers)
66
94
  - v0.4.11 - ([e2c8a0f](https://github.com/robcarruthers/lxi_rb/commit/e2c8a0f1a2602e3f7cf2ddf8af8aef150e9ad217)) - [@robcarruthers](https://github.com/robcarruthers)
67
95
 
68
96
  - - -
69
97
 
70
-
71
- ## Unreleased ([83cae54..895952d](https://github.com/robcarruthers/lxi_rb/compare/83cae54..895952d))
72
- #### Bug Fixes
73
- - **(ffi)** Update LXI library location search - ([e557e9a](https://github.com/robcarruthers/lxi_rb/commit/e557e9a77a81eef89260dfa14a5b3e618d6f1879)) - [@robcarruthers](https://github.com/robcarruthers)
74
- #### Documentation
75
- - **(reademe)** Update header - ([50770ad](https://github.com/robcarruthers/lxi_rb/commit/50770ad38aaf0c7f96560a46cde0e9fa8fbaab89)) - [@robcarruthers](https://github.com/robcarruthers)
76
- - **(readme)** Update - ([4fca6cb](https://github.com/robcarruthers/lxi_rb/commit/4fca6cb18e102635307d1eb670607a8be279a5f6)) - [@robcarruthers](https://github.com/robcarruthers)
77
- #### Miscellaneous Chores
78
- - **(changelog)** Updated - ([c30acfd](https://github.com/robcarruthers/lxi_rb/commit/c30acfd2ac37692f0353b45d2cf96e945e597a0b)) - [@robcarruthers](https://github.com/robcarruthers)
79
-
80
- - - -
81
-
82
- ## [v0.4.9](https://github.com/robcarruthers/lxi_rb/compare/v0.4.8..v0.4.9) - 2023-05-10
83
- #### Miscellaneous Chores
98
+ ## [v0.4.9](https://github.com/robcarruthers/lxi_rb/compare/v0.4.8..v0.4.9) - 2023-05-13
99
+ #### Miscellaneous Tasks
84
100
  - **(rubocop)** Fix offences - ([d7c383e](https://github.com/robcarruthers/lxi_rb/commit/d7c383ea4619064804e2e57125224fed739b0566)) - [@robcarruthers](https://github.com/robcarruthers)
85
101
  - **(version)** v0.4.9 - ([83cae54](https://github.com/robcarruthers/lxi_rb/commit/83cae54e6c4c72afe77907a0957074c4e46ca76e)) - [@robcarruthers](https://github.com/robcarruthers)
86
102
  - Update .gitignore - ([43f4fc4](https://github.com/robcarruthers/lxi_rb/commit/43f4fc4ea9c70eeaec9d6ab4fa2c4c2eb18ab2bf)) - [@robcarruthers](https://github.com/robcarruthers)
@@ -88,35 +104,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
104
 
89
105
  - - -
90
106
 
91
- ## [v0.4.8](https://github.com/robcarruthers/lxi_rb/compare/v0.4.7..v0.4.8) - 2023-05-10
92
- #### Miscellaneous Chores
107
+ ## [v0.4.8](https://github.com/robcarruthers/lxi_rb/compare/v0.4.7..v0.4.8) - 2023-05-13
108
+ #### Miscellaneous Tasks
93
109
  - **(version)** v0.4.8 - ([297fe29](https://github.com/robcarruthers/lxi_rb/commit/297fe292b0f800c0a99db08308fb01af3b5ecf48)) - [@robcarruthers](https://github.com/robcarruthers)
94
110
  - Update .gitignore - ([bea47ce](https://github.com/robcarruthers/lxi_rb/commit/bea47cef4f6c236b4c16fd1465b957cee891dfb3)) - [@robcarruthers](https://github.com/robcarruthers)
95
111
 
96
112
  - - -
97
113
 
98
- ## [v0.4.7](https://github.com/robcarruthers/lxi_rb/compare/v0.4.6..v0.4.7) - 2023-05-10
99
- #### Miscellaneous Chores
114
+ ## [v0.4.7](https://github.com/robcarruthers/lxi_rb/compare/v0.4.6..v0.4.7) - 2023-05-13
115
+ #### Miscellaneous Tasks
100
116
  - **(bundle)** Update - ([7fa3ab3](https://github.com/robcarruthers/lxi_rb/commit/7fa3ab3f9abcac5fae1093c932d4e70cf3092920)) - [@robcarruthers](https://github.com/robcarruthers)
101
117
  - **(version)** v0.4.7 - ([eb7a001](https://github.com/robcarruthers/lxi_rb/commit/eb7a0015e900f47272141ba49ccd996c97414b89)) - [@robcarruthers](https://github.com/robcarruthers)
102
118
 
103
119
  - - -
104
120
 
105
- ## [v0.4.6](https://github.com/robcarruthers/lxi_rb/compare/v0.4.5..v0.4.6) - 2023-05-10
106
- #### Miscellaneous Chores
121
+ ## [v0.4.6](https://github.com/robcarruthers/lxi_rb/compare/v0.4.5..v0.4.6) - 2023-05-13
122
+ #### Miscellaneous Tasks
107
123
  - **(version)** v0.4.6 - ([5b0289c](https://github.com/robcarruthers/lxi_rb/commit/5b0289cf33ba76ae1737593f4c85eb7c6fcf3718)) - [@robcarruthers](https://github.com/robcarruthers)
108
124
 
109
125
  - - -
110
126
 
111
- ## [v0.4.5](https://github.com/robcarruthers/lxi_rb/compare/v0.4.4..v0.4.5) - 2023-05-10
127
+ ## [v0.4.5](https://github.com/robcarruthers/lxi_rb/compare/v0.4.4..v0.4.5) - 2023-05-13
112
128
  #### Documentation
113
129
  - **(changelog)** Update - ([ac74997](https://github.com/robcarruthers/lxi_rb/commit/ac7499725d8ba920215c25196e2514bf1af58465)) - [@robcarruthers](https://github.com/robcarruthers)
114
- #### Miscellaneous Chores
130
+ #### Miscellaneous Tasks
115
131
  - **(version)** v0.4.5 - ([7161638](https://github.com/robcarruthers/lxi_rb/commit/7161638fd76cc37d00ca9a10f0831fa210711fbc)) - [@robcarruthers](https://github.com/robcarruthers)
116
132
 
117
133
  - - -
118
134
 
119
- ## [v0.4.4](https://github.com/robcarruthers/lxi_rb/compare/d0d594119d79afe36f62a44688c216bbc2510f79..v0.4.4) - 2023-05-10
135
+ ## [v0.4.4](https://github.com/robcarruthers/lxi_rb/compare/d0d594119d79afe36f62a44688c216bbc2510f79..v0.4.4) - 2023-05-13
120
136
  #### Bug Fixes
121
137
  - **(Cog)** Update config - ([bc97116](https://github.com/robcarruthers/lxi_rb/commit/bc97116f3c152a37b398ded210dc9dfcb9d48238)) - [@robcarruthers](https://github.com/robcarruthers)
122
138
  #### Documentation
@@ -141,7 +157,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
141
157
  - **(Device)** Add query - ([5fb904b](https://github.com/robcarruthers/lxi_rb/commit/5fb904b469eb92bd7df1bd18874b2743f51cae4e)) - [@robcarruthers](https://github.com/robcarruthers)
142
158
  - **(device)** Init LXI Session - ([d326f6a](https://github.com/robcarruthers/lxi_rb/commit/d326f6a4c37f15a6b20ca3681fafa5e40588f81e)) - [@robcarruthers](https://github.com/robcarruthers)
143
159
  - **(ffi)** Add search class method - ([2bfa417](https://github.com/robcarruthers/lxi_rb/commit/2bfa41703f810145a6d6dffb9dd18220577a43a0)) - [@robcarruthers](https://github.com/robcarruthers)
144
- #### Miscellaneous Chores
160
+ #### Miscellaneous Tasks
145
161
  - **(CHANGELOG)** Update - ([003969a](https://github.com/robcarruthers/lxi_rb/commit/003969a1588609e528e5e91405a02871c7a31eaa)) - [@robcarruthers](https://github.com/robcarruthers)
146
162
  - **(Changelog)** Update - ([9a07697](https://github.com/robcarruthers/lxi_rb/commit/9a076972668e06728171eb68b92c37cd9364e85d)) - [@robcarruthers](https://github.com/robcarruthers)
147
163
  - **(Cog)** Update config - ([46f4e5d](https://github.com/robcarruthers/lxi_rb/commit/46f4e5d0c177849b14a7068761bb5068895b5027)) - [@robcarruthers](https://github.com/robcarruthers)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lxi_rb (0.6.4)
4
+ lxi_rb (0.7.1)
5
5
  ffi (~> 1.15)
6
6
 
7
7
  GEM
@@ -38,6 +38,13 @@ GEM
38
38
  unicode-display_width (>= 2.4.0, < 3.0)
39
39
  rubocop-ast (1.26.0)
40
40
  parser (>= 3.2.1.0)
41
+ rubocop-minitest (0.31.0)
42
+ rubocop (>= 1.39, < 2.0)
43
+ rubocop-performance (1.17.1)
44
+ rubocop (>= 1.7.0, < 2.0)
45
+ rubocop-ast (>= 0.4.0)
46
+ rubocop-rake (0.6.0)
47
+ rubocop (~> 1.0)
41
48
  ruby-progressbar (1.11.0)
42
49
  unicode-display_width (2.4.2)
43
50
 
@@ -51,6 +58,9 @@ DEPENDENCIES
51
58
  minitest-reporters (~> 1.4)
52
59
  rake (~> 13.0)
53
60
  rubocop (~> 1.21)
61
+ rubocop-minitest (~> 0.3)
62
+ rubocop-performance (~> 1.10)
63
+ rubocop-rake (~> 0.4)
54
64
 
55
65
  BUNDLED WITH
56
66
  2.4.10
data/README.md CHANGED
@@ -2,24 +2,31 @@
2
2
 
3
3
  [![Gem Version](https://img.shields.io/gem/v/lxi_rb?color=green)](https://badge.fury.io/rb/lxi_rb) ![Ruby](https://img.shields.io/static/v1?message=Ruby&color=red&logo=Ruby&logoColor=FFFFFF&label=v3.1.2) ![Ruby](https://img.shields.io/gitlab/license/robcarruthers/rfbeam?color=orange)
4
4
 
5
- Ruby wrapper for the [liblxi](https://github.com/lxi-tools/liblxi) library.
5
+ Ruby wrapper for the [liblxi](https://github.com/lxi-tools/liblxi) library, which offers a simple API for communicating with LXI compatible instruments.
6
6
 
7
7
  ## Installation
8
8
 
9
+ The gem requires the liblxi library to be installed on the system. The library can be installed and macOS or Linux using [Homebrew](https://brew.sh/)
10
+
11
+ ```shell
12
+ brew install liblxi
13
+ ```
14
+
9
15
  Install the gem and add to the application's Gemfile by executing:
10
16
 
11
- ``` shell
17
+ ```shell
12
18
  bundle add lxi_rb
13
19
  ```
14
20
 
15
21
  If bundler is not being used to manage dependencies, install the gem by executing:
16
- ``` shell
22
+
23
+ ```shell
17
24
  gem install lxi_rb
18
25
  ```
19
26
 
20
27
  ## Usage
21
28
 
22
- ``` ruby
29
+ ```ruby
23
30
  Lxi.search
24
31
  Searching for LXI devices - please wait...
25
32
 
@@ -48,7 +55,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
48
55
 
49
56
  ## Contributing
50
57
 
51
- Bug reports and pull requests are welcome on GitHub at <https://github.com/[USERNAME]/lxi_rb>.
58
+ Bug reports and pull requests are welcome on GitHub at <https://github.com/robcarruthers/lxi_rb>.
52
59
 
53
60
  ## License
54
61
 
data/lib/lxi/callbacks.rb CHANGED
@@ -1,18 +1,21 @@
1
1
  # frozen_string_literal: true
2
+ require 'ffi'
3
+
2
4
  module Lxi
5
+ include FFI
3
6
  # VXI11 Discovery Callbacks
4
7
  BroadcastCallback =
5
8
  FFI::Function.new(:void, %i[pointer pointer]) do |address, interface|
6
- puts "Broadcast: #{address.read_string}, #{interface.read_string}"
9
+ puts("Broadcast: #{address.read_string}, #{interface.read_string}")
7
10
  end
8
11
 
9
12
  DeviceCallback =
10
13
  FFI::Function.new(:void, %i[pointer pointer]) do |address, id|
11
- puts "Device: #{address.read_string}, #{id.read_string}"
14
+ puts("Device: #{address.read_string}, #{id.read_string}")
12
15
  end
13
16
 
14
17
  ServiceCallback =
15
18
  FFI::Function.new(:void, %i[pointer pointer pointer int]) do |address, id, service, port|
16
- puts "Service: #{address.read_string}, #{id.read_string}, #{service.read_string}, #{port}"
19
+ puts("Service: #{address.read_string}, #{id.read_string}, #{service.read_string}, #{port}")
17
20
  end
18
21
  end
data/lib/lxi/device.rb CHANGED
@@ -15,14 +15,14 @@ module Lxi
15
15
 
16
16
  connect
17
17
 
18
- yield self if block_given?
18
+ yield(self) if block_given?
19
19
  end
20
20
 
21
21
  def connect
22
22
  Lxi.init_lxi_session
23
23
 
24
24
  @id = Lxi.lxi_connect(@address, @port, @name, @timeout, @protocol)
25
- raise Error, 'LXI Connection Error' if @id == LXI_ERROR
25
+ raise(Error, 'LXI Connection Error') if @id == LXI_ERROR
26
26
 
27
27
  true
28
28
  end
@@ -33,27 +33,27 @@ module Lxi
33
33
  end
34
34
  alias close disconnect
35
35
 
36
- def send(message)
36
+ def write(message)
37
37
  bytes_sent = Lxi.lxi_send(@id, message, message.length, @timeout)
38
- raise Error, 'LXI communications error' unless bytes_sent.positive?
38
+ raise(Error, 'LXI communications error') unless bytes_sent.positive?
39
39
 
40
40
  bytes_sent
41
41
  end
42
- alias scpi send
43
- alias write send
42
+ alias scpi write
43
+ alias send write
44
44
 
45
45
  def read(length)
46
46
  message = FFI::MemoryPointer.new(:char, length)
47
47
  bytes_received = Lxi.lxi_receive(@id, message, length, @timeout)
48
- raise Error, 'LXI communications error' unless bytes_received.positive?
48
+ raise(Error, 'LXI communications error') unless bytes_received.positive?
49
49
 
50
50
  message.read_string
51
51
  end
52
52
  alias gets read
53
53
 
54
54
  def query(message)
55
- send message
56
- read 10_000
55
+ write(message)
56
+ read(10_000)
57
57
  end
58
58
  end
59
59
  end
data/lib/lxi/discovery.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  module Lxi
3
3
  # Search for LXI-11 instruments on the network and return hash of instruments
4
4
  def self.discover(timeout: 1000, type: :vxi11)
5
- raise Error, 'LXI Library Initialisation Error' unless lxi_init == LXI_OK
5
+ raise(Error, 'LXI Library Initialisation Error') unless lxi_init == LXI_OK
6
6
 
7
7
  devices = []
8
8
  device_callback =
@@ -14,7 +14,7 @@ module Lxi
14
14
  info[:device] = device_callback
15
15
 
16
16
  lxi_discover_internal(info, timeout, type)
17
- sleep 0.1
17
+ sleep(0.1)
18
18
  devices
19
19
  end
20
20
 
@@ -26,10 +26,10 @@ module Lxi
26
26
  info[:broadcast] = BroadcastCallback
27
27
  info[:device] = DeviceCallback
28
28
 
29
- puts "Searching for LXI devices - please wait...\n\n"
29
+ puts("Searching for LXI devices - please wait...\n\n")
30
30
 
31
31
  result = lxi_discover_internal(info, timeout, type)
32
32
 
33
- puts "Error during discovery: #{result}" if result.negative?
33
+ puts("Error during discovery: #{result}") if result.negative?
34
34
  end
35
35
  end
data/lib/lxi/functions.rb CHANGED
@@ -5,7 +5,8 @@ module Lxi
5
5
  module FFIFunctions
6
6
  extend FFI::Library
7
7
 
8
- ffi_lib 'liblxi'
8
+ ffi_lib %w[liblxi liblxi.so.1 /home/linuxbrew/.linuxbrew/lib/liblxi.so.1]
9
+ ffi_lib_flags :now, :global
9
10
 
10
11
  # Define liblxi structs
11
12
  class LxiInfo < FFI::Struct
data/lib/lxi/methods.rb CHANGED
@@ -2,6 +2,6 @@
2
2
  module Lxi
3
3
  # Initialise the LXI library
4
4
  def self.init_lxi_session
5
- raise Error, 'LXI Library Initialisation Error' unless Lxi.lxi_init == LXI_OK
5
+ raise(Error, 'LXI Library Initialisation Error') unless Lxi.lxi_init == LXI_OK
6
6
  end
7
7
  end
data/lib/lxi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lxi
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.2'
5
5
  end
data/lib/lxi_rb.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'lxi/version'
4
- require_relative 'lxi/functions'
5
- require_relative 'lxi/methods'
6
- require_relative 'lxi/constants'
7
3
  require_relative 'lxi/callbacks'
8
- require_relative 'lxi/discovery'
4
+ require_relative 'lxi/constants'
9
5
  require_relative 'lxi/device'
6
+ require_relative 'lxi/discovery'
7
+ require_relative 'lxi/functions'
8
+ require_relative 'lxi/methods'
9
+ require_relative 'lxi/version'
10
10
 
11
11
  module Lxi
12
12
  extend FFIFunctions
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lxi_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Carruthers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-11 00:00:00.000000000 Z
11
+ date: 2023-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -38,6 +38,34 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.8.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.14'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.14'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest-reporters
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.4'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.4'
41
69
  - !ruby/object:Gem::Dependency
42
70
  name: rake
43
71
  requirement: !ruby/object:Gem::Requirement
@@ -53,33 +81,61 @@ dependencies:
53
81
  - !ruby/object:Gem::Version
54
82
  version: '13.0'
55
83
  - !ruby/object:Gem::Dependency
56
- name: minitest
84
+ name: rubocop
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: '5.14'
89
+ version: '1.18'
62
90
  type: :development
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '5.14'
96
+ version: '1.18'
69
97
  - !ruby/object:Gem::Dependency
70
- name: minitest-reporters
98
+ name: rubocop-minitest
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
101
  - - "~>"
74
102
  - !ruby/object:Gem::Version
75
- version: '1.4'
103
+ version: '0.3'
76
104
  type: :development
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
108
  - - "~>"
81
109
  - !ruby/object:Gem::Version
82
- version: '1.4'
110
+ version: '0.3'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-performance
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.10'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.10'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.4'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.4'
83
139
  description: The gem includes methods required for discovering and communicating with
84
140
  LXI compliant devices
85
141
  email:
@@ -88,6 +144,7 @@ executables: []
88
144
  extensions: []
89
145
  extra_rdoc_files: []
90
146
  files:
147
+ - ".rubocop.yml"
91
148
  - ".tool-versions"
92
149
  - ".vscode/settings.json"
93
150
  - CHANGELOG.md
@@ -112,6 +169,7 @@ metadata:
112
169
  homepage_uri: https://github.com/robcarruthers/lxi_rb
113
170
  source_code_uri: https://github.com/robcarruthers/lxi_rb
114
171
  changelog_uri: https://github.com/robcarruthers/lxi_rb/blob/master/CHANGELOG.md
172
+ rubygems_mfa_required: 'true'
115
173
  post_install_message:
116
174
  rdoc_options: []
117
175
  require_paths: