everythingrb 0.2.2 → 0.2.3

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: 637e088cea35038c9cea8b54e127e795ddb06c1d7c0011e55accd5930cf2217d
4
- data.tar.gz: '059758659229885856daaa52dfcfd33e6b4bdad6e29923e71e3dd887f7de390d'
3
+ metadata.gz: 8567a1a0f80fd1582946019cd0c378f916648f70d9a9087944f83f5ba29669be
4
+ data.tar.gz: 8f42ce110e7c57529f591615d7612d75556497fc3e80fe56f0ece352847df709
5
5
  SHA512:
6
- metadata.gz: 97b3766b8382f7e160e5996ce03497368770450cc76d91acfa094c80dc9812ae1d27ed66d95988e9918bdd3b6887b84bcc52ed4df70aacac5453872bab0104ca
7
- data.tar.gz: f4991d65bf9ef6a3398e0808fa4d794816e4e53874ee712a66f18728ff6cd495d7f2f1f2a86ee40af5a3e5a435b78ff10defca50ea120bd423af30cf5953a90e
6
+ metadata.gz: 065ef8975736ca530d915f4d7780b1a35a6e85834f735aadbc244f5c05bd39845be26bd07102e52e649e9946769b255fb50d951ea4b335204d55c75eae213828
7
+ data.tar.gz: 6edcdc737cd2dda4395d5b685c463c3af0d2fedab7d1737193105a43ce4365e0b63bdbeb7bac336868b0dea1e9857d9e0d33b55ba0f693ab818f607611ca864d
data/CHANGELOG.md CHANGED
@@ -23,6 +23,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
23
 
24
24
  ### Removed
25
25
 
26
+ ## [0.2.3] - 12025-03-09
27
+
28
+ ### Added
29
+
30
+ - Added `Symbol#with_quotes` and `Symbol#in_quotes`
31
+
32
+
26
33
  ## [0.2.2] - 12025-03-03
27
34
 
28
35
  ### Added
@@ -97,7 +104,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
97
104
 
98
105
  - Added alias `each` to `each_pair` in OpenStruct for better enumerable compatibility
99
106
 
100
- [unreleased]: https://github.com/itsthedevman/everythingrb/compare/v0.2.2...HEAD
107
+ [unreleased]: https://github.com/itsthedevman/everythingrb/compare/v0.2.3...HEAD
108
+ [0.2.3]: https://github.com/itsthedevman/everythingrb/compare/v0.2.2...v0.2.3
101
109
  [0.2.2]: https://github.com/itsthedevman/everythingrb/compare/v0.2.1...v0.2.2
102
110
  [0.2.1]: https://github.com/itsthedevman/everythingrb/compare/v0.2.0...v0.2.1
103
111
  [0.2.0]: https://github.com/itsthedevman/everythingrb/compare/v0.1.2...v0.2.0
data/README.md CHANGED
@@ -42,6 +42,8 @@ I'm currently looking for opportunities where I can tackle meaningful problems a
42
42
  - [to_struct](#to_struct-1)
43
43
  - [to_deep_h](#to_deep_h)
44
44
  - [with_quotes / in_quotes](#with_quotes--in_quotes)
45
+ - [Symbol](#symbol)
46
+ - [with_quotes / in_quotes](#with_quotes--in_quotes-1)
45
47
  - [Requirements](#requirements)
46
48
  - [Contributing](#contributing)
47
49
  - [License](#license)
@@ -319,6 +321,16 @@ Wraps the string in double quotes
319
321
  # => "\"Hello World\""
320
322
  ```
321
323
 
324
+ ### Symbol
325
+
326
+ #### `with_quotes` / `in_quotes`
327
+ Wraps the symbol in double quotes
328
+
329
+ ```ruby
330
+ :hello_world.with_quotes
331
+ # => :"\"hello_world\""
332
+ ```
333
+
322
334
  ## Contributing
323
335
 
324
336
  1. Fork it
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Symbol
4
+ #
5
+ # Returns self wrapped in double quotes.
6
+ #
7
+ # @return [Symbol]
8
+ #
9
+ def with_quotes
10
+ :"\"#{self}\""
11
+ end
12
+
13
+ alias_method :in_quotes, :with_quotes
14
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Everythingrb
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
data/lib/everythingrb.rb CHANGED
@@ -10,6 +10,7 @@ require_relative "everythingrb/core/hash"
10
10
  require_relative "everythingrb/core/module"
11
11
  require_relative "everythingrb/core/ostruct"
12
12
  require_relative "everythingrb/core/string"
13
+ require_relative "everythingrb/core/symbol"
13
14
 
14
15
  module Everythingrb
15
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: everythingrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-03 00:00:00.000000000 Z
11
+ date: 2025-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ostruct
@@ -63,8 +63,8 @@ files:
63
63
  - lib/everythingrb/core/module.rb
64
64
  - lib/everythingrb/core/ostruct.rb
65
65
  - lib/everythingrb/core/string.rb
66
+ - lib/everythingrb/core/symbol.rb
66
67
  - lib/everythingrb/version.rb
67
- - sig/everythingrb.rbs
68
68
  homepage: https://github.com/itsthedevman/everythingrb
69
69
  licenses:
70
70
  - MIT
data/sig/everythingrb.rbs DELETED
@@ -1,4 +0,0 @@
1
- module Everythingrb
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end