rails_extensions_core 0.0.7 → 0.0.8
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/rails_extensions_core.rb +73 -27
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87e2c8735228336c4287021e9da58588ec2346ccf31cf6601396730d3531a139
|
4
|
+
data.tar.gz: c040683e8114f5279f6e5b79f2f672cf6a4987d83713fd8b9c3972285ebfd34a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 778db6419228fc3407093b79f953411a02689320494d5dda968858fbd2a9fdf4def83e97234ae9b93ec72c57345c7df29402838330b80526da429c7903bd5649
|
7
|
+
data.tar.gz: 810e73d0804cfbf728c666c8405a63d665976e162faa68d81c8bbf21a90c87996752543563434cc488d04997a70cb9f640ae8731511b3bc6951941e4aedd8c00
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
@@ -1,29 +1,75 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require '
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
3
|
+
require 'configurations'
|
4
|
+
|
5
|
+
module RailsExtensions
|
6
|
+
include Configurations
|
7
|
+
|
8
|
+
configurable(
|
9
|
+
Boolean,
|
10
|
+
include: %i[
|
11
|
+
compact_map current_day current_month current_week day_of_week display_military display_user find_bang find_dupes
|
12
|
+
first_dupe google_format hash_only input in_utc month_and_year month_year overlaps pipe to_bool to_dec to_i
|
13
|
+
to_or_sentence to_sort_i to_x usd_to_f usd_to_i yesno logger_cycle
|
14
|
+
]
|
15
|
+
)
|
16
|
+
configuration_defaults do |c|
|
17
|
+
c.include.compact_map = true
|
18
|
+
c.include.current_day = true
|
19
|
+
c.include.current_month = true
|
20
|
+
c.include.current_week = true
|
21
|
+
c.include.day_of_week = true
|
22
|
+
c.include.display_military = true
|
23
|
+
c.include.display_user = true
|
24
|
+
c.include.find_bang = true
|
25
|
+
c.include.find_dupes = true
|
26
|
+
c.include.first_dupe = true
|
27
|
+
c.include.google_format = true
|
28
|
+
c.include.hash_only = true
|
29
|
+
c.include.input = true
|
30
|
+
c.include.in_utc = true
|
31
|
+
c.include.month_and_year = true
|
32
|
+
c.include.month_year = true
|
33
|
+
c.include.overlaps = true
|
34
|
+
c.include.pipe = true
|
35
|
+
c.include.to_bool = true
|
36
|
+
c.include.to_dec = true
|
37
|
+
c.include.to_i = true
|
38
|
+
c.include.to_or_sentence = true
|
39
|
+
c.include.to_sort_i = true
|
40
|
+
c.include.to_x = true
|
41
|
+
c.include.usd_to_f = true
|
42
|
+
c.include.usd_to_i = true
|
43
|
+
c.include.yesno = true
|
44
|
+
c.include.logger_cycle = true
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
require 'compact_map_extension' if RailsExtensions.configuration.include.compact_map
|
49
|
+
require 'current_day_extension' if RailsExtensions.configuration.include.current_day
|
50
|
+
require 'current_month_extension' if RailsExtensions.configuration.include.current_month
|
51
|
+
require 'current_week_extension' if RailsExtensions.configuration.include.current_week
|
52
|
+
require 'day_of_week_extension' if RailsExtensions.configuration.include.day_of_week
|
53
|
+
require 'display_military_extension' if RailsExtensions.configuration.include.display_military
|
54
|
+
require 'display_user_extension' if RailsExtensions.configuration.include.display_user
|
55
|
+
require 'find_bang_extension' if RailsExtensions.configuration.include.find_bang
|
56
|
+
require 'find_dupes_extension' if RailsExtensions.configuration.include.find_dupes
|
57
|
+
require 'first_dupe_extension' if RailsExtensions.configuration.include.first_dupe
|
58
|
+
require 'google_format_extension' if RailsExtensions.configuration.include.google_format
|
59
|
+
require 'hash_only_extension' if RailsExtensions.configuration.include.hash_only
|
60
|
+
require 'input_extension' if RailsExtensions.configuration.include.input
|
61
|
+
require 'in_utc_extension' if RailsExtensions.configuration.include.in_utc
|
62
|
+
require 'month_and_year_extension' if RailsExtensions.configuration.include.month_and_year
|
63
|
+
require 'month_year_extension' if RailsExtensions.configuration.include.month_year
|
64
|
+
require 'overlaps_extension' if RailsExtensions.configuration.include.overlaps
|
65
|
+
require 'pipe_extension' if RailsExtensions.configuration.include.pipe
|
66
|
+
require 'to_bool_extension' if RailsExtensions.configuration.include.to_bool
|
67
|
+
require 'to_dec_extension' if RailsExtensions.configuration.include.to_dec
|
68
|
+
require 'to_i_extension' if RailsExtensions.configuration.include.to_i
|
69
|
+
require 'to_or_sentence_extension' if RailsExtensions.configuration.include.to_or_sentence
|
70
|
+
require 'to_sort_i_extension' if RailsExtensions.configuration.include.to_sort_i
|
71
|
+
require 'to_x_extension' if RailsExtensions.configuration.include.to_x
|
72
|
+
require 'usd_to_f_extension' if RailsExtensions.configuration.include.usd_to_f
|
73
|
+
require 'usd_to_i_extension' if RailsExtensions.configuration.include.usd_to_i
|
74
|
+
require 'yesno_extension' if RailsExtensions.configuration.include.yesno
|
75
|
+
require 'logger_cycle_extension' if RailsExtensions.configuration.include.logger_cycle
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_extensions_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcus Wyatt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: configurations
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.2.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.2.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: logger_cycle_extension
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.0.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.0.1
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: compact_map_extension
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|