italian-ruby 1.6.1 → 1.7.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4efa4cc8f6cd18b0a142f65caec3dcb8e1c5b18348fe11f6a44991e4a7989a2
|
4
|
+
data.tar.gz: 2f7231a9e938478fcf7675b6ab32bff17cd7efb62556b85b4e7bb0499ce9da3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 739ef7d6a56f155662cc2e5644c5038db561e11c3f6170daab290fc400ccfd6c25799501de293c5da1146cd0179d586639f95eddeba6488d307a06469aa13445
|
7
|
+
data.tar.gz: 1eb53d352c9d3d6a216acb5101cc8b16c07e5f1bd8c129138bc455764c1481a233c6fd1c49fd15bd2fce28a8f0b4ed168adc961586301214fb94734dd84f663c
|
@@ -42,4 +42,21 @@ class Integer
|
|
42
42
|
Time.now + self
|
43
43
|
end
|
44
44
|
|
45
|
+
##
|
46
|
+
# Restituisce la rappresentazione in byte (unsigned char) del numero intero.
|
47
|
+
def u8
|
48
|
+
raise RangeError, "#{self} out of u8 range" if (self >= 256)
|
49
|
+
self.chr
|
50
|
+
end
|
51
|
+
|
52
|
+
##
|
53
|
+
# Restituisce la rappresentazione in byte (unsigned short) del numero intero.
|
54
|
+
def u16
|
55
|
+
raise RangeError, "#{self} out of u16 range" if (self >= 65536)
|
56
|
+
return "#{self.u8}#{0.u8}" if self < 256
|
57
|
+
first_byte = self & 0b000000011111111
|
58
|
+
second_byte = self >> 8
|
59
|
+
"#{first_byte.u8}#{second_byte.u8}"
|
60
|
+
end
|
61
|
+
|
45
62
|
end
|
data/lib/italian/ruby/metodi.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: italian-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Ballardin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- lib/italian/ruby/metodi.rb
|
124
124
|
- lib/italian/ruby/metodi/array.rb
|
125
125
|
- lib/italian/ruby/metodi/date.rb
|
126
|
+
- lib/italian/ruby/metodi/date_time.rb
|
126
127
|
- lib/italian/ruby/metodi/false_class.rb
|
127
128
|
- lib/italian/ruby/metodi/hash.rb
|
128
129
|
- lib/italian/ruby/metodi/integer.rb
|
@@ -155,7 +156,7 @@ metadata:
|
|
155
156
|
homepage_uri: https://github.com/Pluvie/italian-ruby
|
156
157
|
source_code_uri: https://github.com/Pluvie/italian-ruby
|
157
158
|
changelog_uri: https://github.com/Pluvie/italian-ruby/CHANGELOG.md
|
158
|
-
post_install_message:
|
159
|
+
post_install_message:
|
159
160
|
rdoc_options: []
|
160
161
|
require_paths:
|
161
162
|
- lib
|
@@ -171,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
172
|
version: '0'
|
172
173
|
requirements: []
|
173
174
|
rubygems_version: 3.2.3
|
174
|
-
signing_key:
|
175
|
+
signing_key:
|
175
176
|
specification_version: 4
|
176
177
|
summary: Program in Ruby writing in Italian.
|
177
178
|
test_files: []
|