processing 0.5.9 → 0.5.10

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: dc09a8449addb3b52cabf9db00a7a17bdd3948f1688d646b640840a1817720c8
4
- data.tar.gz: 714facfed2f5fbdf53e6effc6ae09ba2e79532e0299cc4fd6d0603bdc5586e4b
3
+ metadata.gz: a6f8de5ad0bdc4fa06ebd896bb4ca1d251f110514ae5b829c54860e7cb05e760
4
+ data.tar.gz: dc34a861ca6f57b8a7dbeceba4038bf244299519476c81344d384f574584da60
5
5
  SHA512:
6
- metadata.gz: b18d8b34949120d10d89d7c7aa4d6b9aa0b882018299a30dbd99228597a1b5a7560ec0da504ecb476eafe909711759a0c76f6ab943c27637f82c99367a7391eb
7
- data.tar.gz: b6311cd10bbf1081b7e953045917e146f12dcbf01adf8c36c95e21688a226b3c8802618f3863f6f28b76c4fd4aecc6af1ad1193e93a26d63640735c720bfa243
6
+ metadata.gz: 8f8d5a50f1986020d2d86ebcca58f35e2973fdc5d3637b8b951ec416e2ac44d8dfd11f7eb5f75e0e336625e969651ba69af1eb5eabe034a033467caba5c4a265
7
+ data.tar.gz: 4f66a4794db94888ae7a78b366373c32076ba1f5506fb6915baeb7c7afc98e07df9d1766ecd1228fb89bd979c288cc8a5fdf3ca3cd21314bb5d811abf8f75d21
data/ChangeLog.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # processing ChangeLog
2
2
 
3
3
 
4
+ ## [v0.5.10] - 2023-05-19
5
+
6
+ - Vector#array takes parameter for number of dimensions
7
+
8
+
4
9
  ## [v0.5.9] - 2023-05-18
5
10
 
6
11
  - Update dependencies
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.9
1
+ 0.5.10
@@ -149,10 +149,12 @@ module Processing
149
149
 
150
150
  # Returns x, y, z as an array
151
151
  #
152
+ # @param n [Numeric] number of dimensions
153
+ #
152
154
  # @return [Array] array of x, y, z
153
155
  #
154
- def array()
155
- @point.to_a 3
156
+ def array(n = 3)
157
+ @point.to_a n
156
158
  end
157
159
 
158
160
  alias to_a array
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: processing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - xordog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-17 00:00:00.000000000 Z
11
+ date: 2023-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xot