italian-ruby 0.5.2 → 0.5.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ba6eff51f267ac8f099d264a604955140e66b533ab606e5fa6b3e1acc1530f6
|
4
|
+
data.tar.gz: 6048bf44445588f02e935de05d506b0abb02ff056933cfd995d0009f05f65d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c84af0beabc7681edb21e089847fec904a7be8fb7088b7fd5d944f5c388dae678da2e9e27285c104768c545ba53422a0f1ffa8db5060bc1ece4c2128636cbd5
|
7
|
+
data.tar.gz: 1ee066bfcd60196aa82715e44df6e4d1433891cbcdd18157398095c987e50d3dfb87c9fc246575be96b6ac402cc03f664c665fe260ba4cabfaba554c57fe3048
|
@@ -51,7 +51,9 @@ class Array
|
|
51
51
|
alias :trova :find
|
52
52
|
alias :cerniera :zip
|
53
53
|
alias :ordina :sort
|
54
|
+
alias :ordina! :sort!
|
54
55
|
alias :ordina_per :sort_by
|
56
|
+
alias :ordina_per! :sort_by!
|
55
57
|
alias :raggruppa_per :group_by
|
56
58
|
alias :indice :index
|
57
59
|
alias :indice_da_destra :rindex
|
@@ -9,6 +9,14 @@ class Date
|
|
9
9
|
class << self
|
10
10
|
alias :oggi :today
|
11
11
|
alias :converti :parse
|
12
|
+
|
13
|
+
def domani
|
14
|
+
oggi + 1
|
15
|
+
end
|
16
|
+
|
17
|
+
def ieri
|
18
|
+
oggi - 1
|
19
|
+
end
|
12
20
|
end
|
13
21
|
|
14
22
|
alias :anno_prossimo :next_year
|
@@ -21,6 +29,7 @@ class Date
|
|
21
29
|
def due_anni_fa
|
22
30
|
self.prev_year.prev_year
|
23
31
|
end
|
32
|
+
alias :due_anni_precedenti :due_anni_fa
|
24
33
|
end
|
25
34
|
|
26
35
|
Data = Date
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module BSON
|
2
|
+
class ObjectId
|
3
|
+
class << self
|
4
|
+
alias :converti :from_string
|
5
|
+
end
|
6
|
+
|
7
|
+
alias :in_stringa :to_s
|
8
|
+
|
9
|
+
def to_json(*args)
|
10
|
+
"\"#{self.to_s}\""
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
IdOggetto = BSON::ObjectId
|
15
|
+
|
16
|
+
class String
|
17
|
+
def in_id
|
18
|
+
BSON::ObjectId self
|
19
|
+
rescue BSON::ObjectId::Invalid
|
20
|
+
self
|
21
|
+
end
|
22
|
+
end
|
@@ -5,6 +5,9 @@ module RSpec
|
|
5
5
|
def self.descrivi(*args, &block)
|
6
6
|
describe *args, &block
|
7
7
|
end
|
8
|
+
def self.variabili_condivise(*args, &block)
|
9
|
+
shared_context *args, &block
|
10
|
+
end
|
8
11
|
|
9
12
|
##
|
10
13
|
# Core
|
@@ -19,6 +22,10 @@ module RSpec
|
|
19
22
|
def risposta(*args, &block)
|
20
23
|
last_response *args, &block
|
21
24
|
end
|
25
|
+
|
26
|
+
class << self
|
27
|
+
alias :includi_variabili :include_context
|
28
|
+
end
|
22
29
|
end
|
23
30
|
|
24
31
|
module Hooks
|
data/lib/italian/ruby/version.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: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francesco Ballardin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby2ruby
|
@@ -94,6 +94,7 @@ files:
|
|
94
94
|
- lib/italian/ruby/core_ext/errors.rb
|
95
95
|
- lib/italian/ruby/core_ext/file.rb
|
96
96
|
- lib/italian/ruby/core_ext/float.rb
|
97
|
+
- lib/italian/ruby/core_ext/gems/bson.rb
|
97
98
|
- lib/italian/ruby/core_ext/gems/fabrication.rb
|
98
99
|
- lib/italian/ruby/core_ext/gems/hanami.rb
|
99
100
|
- lib/italian/ruby/core_ext/gems/rack_test.rb
|