italian-ruby 0.1.3 → 0.1.4

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: e13700d6b40a1bc4f9ee4d845c80af9fe4ae332f2288528e6c147635c77a2c4a
4
- data.tar.gz: d58597618f2be747a849f21661ac214cd635c872f472573242da2793d84b1cad
3
+ metadata.gz: dd774098bcb33b2e700150f139251c1204df936ed46335399f8496878433735c
4
+ data.tar.gz: 72d1e3737f3be559b06b004a8db34f255c5c8250e3597a344f70c196dc8add5a
5
5
  SHA512:
6
- metadata.gz: 42101231651471d35934bb0d82743f710d406b516d8c4bcd2f12d5fe72eac1829bcfcab4664dd01e818e485595bdb07b45921838c502263749d30e1e8f509d2c
7
- data.tar.gz: 732f903acf2f910ed472debace2c58865144973ae5583a3de55fff7aa70f0025f07ab736df3e5261ce1e81c1408148b0b1319bd69880f2f38e9b76784c2e6ce9
6
+ metadata.gz: a37a877777250f3a9e63cdf07ba696151bd50424aac75c6cc32d8e76648fa895882fa5ffacf4d886f76e7f8bb35308748be67ef8b71e32c01d57c2fab1408558
7
+ data.tar.gz: 33e4bd01e41bf0cf6fdc130b917dee6eb3b8982ae35ae5d1a04d7896d152cdfa4852a857b64ba162a7a94d81922a3d89f2e88e95e1b5c3d9b3e3136167945d22
@@ -13,5 +13,7 @@ require_relative "core_ext/object"
13
13
  require_relative "core_ext/array"
14
14
  require_relative "core_ext/hash"
15
15
  require_relative "core_ext/string"
16
+ require_relative "core_ext/integer"
17
+ require_relative "core_ext/enumerator"
16
18
 
17
19
  $VERBOSE = original_verbosity
@@ -0,0 +1,8 @@
1
+ ##
2
+ # Core Ext - Enumerator
3
+ #
4
+ # Alias di metodi della classe Enumerator.
5
+
6
+ class Enumerator
7
+ alias :mappa :map
8
+ end
@@ -75,11 +75,17 @@ module RSpec
75
75
 
76
76
  class VerifyingMessageExpectation
77
77
  alias :con :with
78
+ alias :esattamente :exactly
79
+ alias :volte :times
80
+ alias :volta :times
78
81
  end
79
82
 
80
83
  module Matchers
81
84
  class Receive
82
85
  alias :con :with
86
+ alias :esattamente :exactly
87
+ alias :volte :times
88
+ alias :volta :times
83
89
  end
84
90
  end
85
91
  end
@@ -0,0 +1,10 @@
1
+ ##
2
+ # Core Ext - Integer
3
+ #
4
+ # Alias di metodi della classe Integer.
5
+
6
+ class Integer
7
+ alias :volte :times
8
+ end
9
+
10
+ Intero = Integer
@@ -34,7 +34,7 @@ module Kernel
34
34
  end
35
35
 
36
36
  def richiedi_tutti(dir)
37
- caller_location_dir = File.dirname caller_locations.first.absolute_path
37
+ caller_location_dir = "#{File.dirname caller_locations.first.absolute_path}/#{dir}"
38
38
  raise LoadError.new("cannot load such directory -- #{dir}") unless Dir.exist? caller_location_dir
39
39
 
40
40
  Dir["#{caller_location_dir}/**/*.ir"].each do |file|
@@ -7,6 +7,7 @@ class Object
7
7
  class << self
8
8
  alias :nuovo :new
9
9
  alias :nuova :new
10
+ alias :ottieni_costante :const_get
10
11
  end
11
12
 
12
13
  alias :nullo? :nil?
@@ -1,10 +1,11 @@
1
1
  ##
2
- # Core Ext - Stringhe
2
+ # Core Ext - String
3
3
  #
4
4
  # Alias di metodi della classe String.
5
5
 
6
6
  class String
7
7
  alias :congela :freeze
8
+ alias :in_simbolo :to_sym
8
9
  end
9
10
 
10
11
  Stringa = String
@@ -1,5 +1,5 @@
1
1
  module Italian
2
2
  module Ruby
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
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.1.3
4
+ version: 0.1.4
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-03-29 00:00:00.000000000 Z
11
+ date: 2020-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby2ruby
@@ -89,12 +89,14 @@ files:
89
89
  - lib/italian/ruby/core_ext.rb
90
90
  - lib/italian/ruby/core_ext/array.rb
91
91
  - lib/italian/ruby/core_ext/class.rb
92
+ - lib/italian/ruby/core_ext/enumerator.rb
92
93
  - lib/italian/ruby/core_ext/file.rb
93
94
  - lib/italian/ruby/core_ext/gems/fabrication.rb
94
95
  - lib/italian/ruby/core_ext/gems/hanami.rb
95
96
  - lib/italian/ruby/core_ext/gems/mongoid.rb
96
97
  - lib/italian/ruby/core_ext/gems/rspec.rb
97
98
  - lib/italian/ruby/core_ext/hash.rb
99
+ - lib/italian/ruby/core_ext/integer.rb
98
100
  - lib/italian/ruby/core_ext/kernel.rb
99
101
  - lib/italian/ruby/core_ext/main.rb
100
102
  - lib/italian/ruby/core_ext/module.rb