fe_core_ext 0.33.2 → 0.33.4
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/lib/fe_core_ext/core_ext/date.rb +2 -2
- data/lib/fe_core_ext/core_ext/pathname.rb +2 -2
- data/lib/fe_core_ext/core_ext/string.rb +2 -2
- data/lib/fe_core_ext/core_ext/time.rb +0 -4
- data/lib/fe_core_ext/gem_ext/ferrum.rb +6 -2
- data/lib/fe_core_ext/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1750ad948e04d5642ab30a16719be10f94946e269b1f8a6879d78779526b8c5f
|
4
|
+
data.tar.gz: a4fe5e983d9c4b4076930a0d05604341fae94b8390b82769858b426eeeb2bd66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9532a3b5fd86319bfdd8f4a04e844daae17597c7fbc223d01f25bbda97c3db237728aed86db641b721a0b32e1aaf08e4ef54c4e6fad06a243759a431760feff
|
7
|
+
data.tar.gz: b256f8de88542df3dadd151c85cff15fcffe0aab88f6042b38513f446ad1832c483f5aa41cd2c618a822ccfa907f4f2552473d7fc899918592337cbaf616138b
|
@@ -5,7 +5,7 @@ require "active_support/time"
|
|
5
5
|
|
6
6
|
module FeCoreExt
|
7
7
|
module CoreExt
|
8
|
-
module
|
8
|
+
module DateMethods
|
9
9
|
def end_of_month?
|
10
10
|
self == end_of_month
|
11
11
|
end
|
@@ -75,6 +75,6 @@ module FeCoreExt
|
|
75
75
|
end
|
76
76
|
|
77
77
|
class Date
|
78
|
-
include FeCoreExt::CoreExt::
|
78
|
+
include FeCoreExt::CoreExt::DateMethods
|
79
79
|
extend FeCoreExt::CoreExt::DateClassMethods
|
80
80
|
end
|
@@ -6,7 +6,7 @@ require "fileutils"
|
|
6
6
|
|
7
7
|
module FeCoreExt
|
8
8
|
module CoreExt
|
9
|
-
module
|
9
|
+
module PathnameMethods
|
10
10
|
def load_yaml
|
11
11
|
return unless exist?
|
12
12
|
YAML.load_file(self)
|
@@ -65,6 +65,6 @@ module FeCoreExt
|
|
65
65
|
end
|
66
66
|
|
67
67
|
class Pathname
|
68
|
+
include FeCoreExt::CoreExt::PathnameMethods
|
68
69
|
extend FeCoreExt::CoreExt::PathnameClassMethods
|
69
|
-
include FeCoreExt::CoreExt::Pathname
|
70
70
|
end
|
@@ -14,7 +14,7 @@ module FeCoreExt
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def integer?
|
17
|
-
|
17
|
+
to_integer.to_s == delete(",")
|
18
18
|
end
|
19
19
|
|
20
20
|
def to_decimal
|
@@ -42,7 +42,7 @@ module FeCoreExt
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def not_number?
|
45
|
-
to_i
|
45
|
+
to_i.zero? && match("0").nil?
|
46
46
|
end
|
47
47
|
|
48
48
|
def valid_number?
|
@@ -1,12 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'forwardable'
|
4
|
+
|
3
5
|
module Ferrum
|
4
6
|
class Browser
|
5
|
-
|
7
|
+
extend Forwardable
|
8
|
+
instance_delegate %i[wait_for_css wait_for_csses wait_for_xpath wait_for_xpaths] => :page
|
6
9
|
end
|
7
10
|
|
8
11
|
class Page
|
9
|
-
|
12
|
+
extend Forwardable
|
13
|
+
instance_delegate %i[wait_for_css wait_for_csses wait_for_xpath wait_for_xpaths] => :main_frame
|
10
14
|
end
|
11
15
|
|
12
16
|
class Frame
|
data/lib/fe_core_ext/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fe_core_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.33.
|
4
|
+
version: 0.33.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tetsu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|