remap 2.1.21 → 2.1.22

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: 6059a8e8a4e40adb0f1db63ef878bb3a709bc89762d0bb8c5966095eede375e4
4
- data.tar.gz: 8171ccc4cde280b094b63bab9ab03083ef6ad4ecffe96782288ebddd645b17b2
3
+ metadata.gz: a243cc530ffa8fca52cc84b20e3e5e5c89a369fa3022e76875b97c1b23f32424
4
+ data.tar.gz: 1b82bce8c377f1ee96e1e4ce90ff918697b57ce5b80ccd3d8084f157bfa2e71f
5
5
  SHA512:
6
- metadata.gz: 057c64e1bea9e32c0b8217c95396092e0c7b7fec328c865a9b35edb5dad2861cd9e4cd51b7f4e80297e2d7aed26f60127dea1d699723630816a7c9ad0a4f9a13
7
- data.tar.gz: 37b33ecd641d500b0a5dfaf642b9ceb9a6d17af2030583427f49e7536e6200b6122e4fff3ef7088118b2bd0ee2f8009f79ab716362ac0457158a1b1506522800
6
+ metadata.gz: 810a6b0e590fa0a24e808dd6107d45452363404eeaffaa434b175e08a22f7fa3b5fc18eb11c4fa0095c608cdddbd516bf0aaa6431858c306e03bc13180797d4a
7
+ data.tar.gz: e23f0a726b628264ee62262f148cc1c24be7690985fec312c17f0407e1b70f1f5e3bc6907811b308b74eabf8fa091b0dfff5da52ad746d00a7669673b481305f
data/lib/remap/base.rb CHANGED
@@ -212,7 +212,7 @@ module Remap
212
212
  # @option method (:new) [Symbol]
213
213
  # @option strategy (:argument) [:argument, :keywords, :none]
214
214
  #
215
- # @example A mapper, which mapps a value at [:a] to [:b]
215
+ # @example A mapper, which maps a value at [:a] to [:b]
216
216
  # class Mapper < Remap::Base
217
217
  # define do
218
218
  # map :a, to: :b
@@ -4,7 +4,7 @@ module Remap
4
4
  module Extensions
5
5
  module Hash
6
6
  refine ::Hash do
7
- def formated
7
+ def formatted
8
8
  JSON.neat_generate(self, sort: true, wrap: 40, aligned: true, around_colon: 1)
9
9
  end
10
10
  end
@@ -43,7 +43,7 @@ module Remap
43
43
  end
44
44
  alias_method :fetch, :get
45
45
 
46
- def formated
46
+ def formatted
47
47
  self
48
48
  end
49
49
  end
data/lib/remap/failure.rb CHANGED
@@ -30,7 +30,7 @@ module Remap
30
30
  end
31
31
 
32
32
  def exception
33
- Error.new(attributes.formated)
33
+ Error.new(attributes.formatted)
34
34
  end
35
35
  end
36
36
  end
data/lib/remap/notice.rb CHANGED
@@ -15,7 +15,7 @@ module Remap
15
15
  end
16
16
 
17
17
  def inspect
18
- "#<%s %s>" % [self.class, to_hash.formated]
18
+ "#<%s %s>" % [self.class, to_hash.formatted]
19
19
  end
20
20
  alias to_s inspect
21
21
 
@@ -25,7 +25,7 @@ module Remap
25
25
  # })
26
26
  #
27
27
  # output = map.call(state) do |failure|
28
- # raise failure.exeception
28
+ # # ...
29
29
  # end
30
30
  #
31
31
  # output.fetch(:value) # => { nickname: "John" }
@@ -88,7 +88,7 @@ module Remap
88
88
  # @return [self]
89
89
  def _(&block)
90
90
  unless block
91
- return _ { raise ArgumentError, "Input: #{self} output: #{_1.formated}" }
91
+ return _ { raise ArgumentError, "Input: #{self} output: #{_1.formatted}" }
92
92
  end
93
93
 
94
94
  unless (result = Schema.call(self)).success?
@@ -117,7 +117,7 @@ module Remap
117
117
 
118
118
  # @return [String]
119
119
  def inspect
120
- "#<State %s>" % compact_blank.formated
120
+ "#<State %s>" % compact_blank.formatted
121
121
  end
122
122
 
123
123
  # Merges {self} with {other} and returns a new state
data/lib/remap/types.rb CHANGED
@@ -26,7 +26,7 @@ module Remap
26
26
 
27
27
  next input if result.success?
28
28
 
29
- error[result.errors.to_h.formated]
29
+ error[result.errors.to_h.formatted]
30
30
  end
31
31
  end
32
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remap
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.21
4
+ version: 2.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander