thefox-ext 1.5.1 → 1.7.0
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 +5 -5
- data/.editorconfig +6 -5
- data/.env.example +2 -0
- data/.github/workflows/ci.yml +42 -0
- data/.github/workflows/release.yml +36 -0
- data/.gitignore +2 -5
- data/CHANGELOG-v1.md +83 -0
- data/LICENSE +21 -0
- data/README.md +17 -13
- data/bin/.gitignore +1 -0
- data/bin/install.sh +51 -0
- data/bin/release.sh +37 -0
- data/bin/setup.sh +17 -0
- data/bin/test.sh +13 -0
- data/bin/uninstall.sh +24 -0
- data/lib/thefox-ext/console.rb +47 -47
- data/lib/thefox-ext/ext/array.rb +35 -31
- data/lib/thefox-ext/ext/date.rb +42 -42
- data/lib/thefox-ext/ext/false.rb +6 -6
- data/lib/thefox-ext/ext/hash.rb +62 -62
- data/lib/thefox-ext/ext/integer.rb +3 -3
- data/lib/thefox-ext/ext/nil.rb +3 -3
- data/lib/thefox-ext/ext/string.rb +63 -63
- data/lib/thefox-ext/ext/true.rb +6 -6
- data/lib/thefox-ext/version.rb +5 -5
- data/thefox-ext.code-workspace +32 -0
- data/thefox-ext.gemspec +5 -5
- metadata +20 -11
- data/.gitlab-ci.yml +0 -56
- data/.travis.yml +0 -19
- data/Makefile +0 -8
- data/Makefile.common +0 -58
- data/thefox-ext.sublime-project +0 -10
data/lib/thefox-ext/ext/true.rb
CHANGED
data/lib/thefox-ext/version.rb
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"folders": [
|
|
3
|
+
{
|
|
4
|
+
"path": "."
|
|
5
|
+
}
|
|
6
|
+
],
|
|
7
|
+
"settings": {},
|
|
8
|
+
"tasks": {
|
|
9
|
+
"version": "2.0.0",
|
|
10
|
+
"tasks": [
|
|
11
|
+
{
|
|
12
|
+
"label": "Setup",
|
|
13
|
+
"type": "shell",
|
|
14
|
+
"command": "./bin/setup.sh",
|
|
15
|
+
"group": "build",
|
|
16
|
+
"presentation": {
|
|
17
|
+
"reveal": "always",
|
|
18
|
+
"panel": "dedicated"
|
|
19
|
+
}
|
|
20
|
+
}, {
|
|
21
|
+
"label": "Test",
|
|
22
|
+
"type": "shell",
|
|
23
|
+
"command": "./bin/test.sh",
|
|
24
|
+
"group": "build",
|
|
25
|
+
"presentation": {
|
|
26
|
+
"reveal": "always",
|
|
27
|
+
"panel": "dedicated"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
data/thefox-ext.gemspec
CHANGED
|
@@ -11,16 +11,16 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.date = TheFox::Ext::DATE
|
|
12
12
|
spec.author = 'Christian Mayer'
|
|
13
13
|
spec.email = 'christian@fox21.at'
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
spec.summary = %q{Extended Ruby Classes}
|
|
16
16
|
spec.description = %q{This gem extents some of the basic Ruby classes by missing functionalities.}
|
|
17
17
|
spec.homepage = TheFox::Ext::HOMEPAGE
|
|
18
|
-
spec.license = '
|
|
19
|
-
|
|
18
|
+
spec.license = 'MIT'
|
|
19
|
+
|
|
20
20
|
spec.files = `git ls-files -z`.split("\x0").reject{ |f| f.match(%r{^(test|spec|features)/}) }
|
|
21
21
|
spec.require_paths = ['lib']
|
|
22
|
-
spec.required_ruby_version = '>=2.
|
|
23
|
-
|
|
22
|
+
spec.required_ruby_version = ['>=2.3.0', '<3.0']
|
|
23
|
+
|
|
24
24
|
spec.add_development_dependency 'minitest', '~>5.8'
|
|
25
25
|
spec.add_development_dependency 'simplecov', '~>0.13'
|
|
26
26
|
spec.add_development_dependency 'simplecov-phpunit', '~>1.0'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thefox-ext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christian Mayer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|
|
@@ -59,13 +59,20 @@ extensions: []
|
|
|
59
59
|
extra_rdoc_files: []
|
|
60
60
|
files:
|
|
61
61
|
- ".editorconfig"
|
|
62
|
+
- ".env.example"
|
|
63
|
+
- ".github/workflows/ci.yml"
|
|
64
|
+
- ".github/workflows/release.yml"
|
|
62
65
|
- ".gitignore"
|
|
63
|
-
-
|
|
64
|
-
- ".travis.yml"
|
|
66
|
+
- CHANGELOG-v1.md
|
|
65
67
|
- Gemfile
|
|
66
|
-
-
|
|
67
|
-
- Makefile.common
|
|
68
|
+
- LICENSE
|
|
68
69
|
- README.md
|
|
70
|
+
- bin/.gitignore
|
|
71
|
+
- bin/install.sh
|
|
72
|
+
- bin/release.sh
|
|
73
|
+
- bin/setup.sh
|
|
74
|
+
- bin/test.sh
|
|
75
|
+
- bin/uninstall.sh
|
|
69
76
|
- lib/thefox-ext.rb
|
|
70
77
|
- lib/thefox-ext/console.rb
|
|
71
78
|
- lib/thefox-ext/ext/array.rb
|
|
@@ -77,11 +84,11 @@ files:
|
|
|
77
84
|
- lib/thefox-ext/ext/string.rb
|
|
78
85
|
- lib/thefox-ext/ext/true.rb
|
|
79
86
|
- lib/thefox-ext/version.rb
|
|
87
|
+
- thefox-ext.code-workspace
|
|
80
88
|
- thefox-ext.gemspec
|
|
81
|
-
- thefox-ext.sublime-project
|
|
82
89
|
homepage: https://github.com/TheFox/ext.rb
|
|
83
90
|
licenses:
|
|
84
|
-
-
|
|
91
|
+
- MIT
|
|
85
92
|
metadata: {}
|
|
86
93
|
post_install_message:
|
|
87
94
|
rdoc_options: []
|
|
@@ -91,15 +98,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
91
98
|
requirements:
|
|
92
99
|
- - ">="
|
|
93
100
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: 2.
|
|
101
|
+
version: 2.3.0
|
|
102
|
+
- - "<"
|
|
103
|
+
- !ruby/object:Gem::Version
|
|
104
|
+
version: '3.0'
|
|
95
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
106
|
requirements:
|
|
97
107
|
- - ">="
|
|
98
108
|
- !ruby/object:Gem::Version
|
|
99
109
|
version: '0'
|
|
100
110
|
requirements: []
|
|
101
|
-
|
|
102
|
-
rubygems_version: 2.6.11
|
|
111
|
+
rubygems_version: 3.0.3
|
|
103
112
|
signing_key:
|
|
104
113
|
specification_version: 4
|
|
105
114
|
summary: Extended Ruby Classes
|
data/.gitlab-ci.yml
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
before_script:
|
|
2
|
-
- gem update --system
|
|
3
|
-
- gem install bundler -v '~>1.13'
|
|
4
|
-
- bundler --version
|
|
5
|
-
- make
|
|
6
|
-
|
|
7
|
-
stages:
|
|
8
|
-
- test
|
|
9
|
-
- release
|
|
10
|
-
|
|
11
|
-
test_21:
|
|
12
|
-
image: ruby:2.1
|
|
13
|
-
stage: test
|
|
14
|
-
environment: test
|
|
15
|
-
only:
|
|
16
|
-
- tags
|
|
17
|
-
script:
|
|
18
|
-
- make test
|
|
19
|
-
|
|
20
|
-
test_22:
|
|
21
|
-
image: ruby:2.2
|
|
22
|
-
stage: test
|
|
23
|
-
environment: test
|
|
24
|
-
only:
|
|
25
|
-
- tags
|
|
26
|
-
script:
|
|
27
|
-
- make test
|
|
28
|
-
|
|
29
|
-
test_23:
|
|
30
|
-
image: ruby:2.3
|
|
31
|
-
stage: test
|
|
32
|
-
environment: test
|
|
33
|
-
only:
|
|
34
|
-
- tags
|
|
35
|
-
script:
|
|
36
|
-
- make test
|
|
37
|
-
|
|
38
|
-
test_24:
|
|
39
|
-
image: ruby:2.4.0
|
|
40
|
-
stage: test
|
|
41
|
-
environment: test
|
|
42
|
-
only:
|
|
43
|
-
- tags
|
|
44
|
-
script:
|
|
45
|
-
- make test
|
|
46
|
-
|
|
47
|
-
release:
|
|
48
|
-
image: ruby:2.4.0
|
|
49
|
-
stage: release
|
|
50
|
-
environment: gem
|
|
51
|
-
only:
|
|
52
|
-
- tags
|
|
53
|
-
script:
|
|
54
|
-
- mkdir -p ~/.gem
|
|
55
|
-
- 'printf "%s\n:rubygems_api_key: %s" "---" "${RUBYGEMSORG_API_KEY}" > ~/.gem/credentials; chmod 0600 ~/.gem/credentials'
|
|
56
|
-
- make release
|
data/.travis.yml
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- 2.1
|
|
4
|
-
- 2.2
|
|
5
|
-
- 2.3
|
|
6
|
-
- 2.4.0
|
|
7
|
-
- ruby-head
|
|
8
|
-
sudo: required
|
|
9
|
-
before_install:
|
|
10
|
-
- gem update --system
|
|
11
|
-
- gem install bundler -v '~>1.13'
|
|
12
|
-
- bundler --version
|
|
13
|
-
install:
|
|
14
|
-
- make
|
|
15
|
-
- gem build thefox-ext.gemspec
|
|
16
|
-
- gem install thefox-ext-*.gem
|
|
17
|
-
- gem list -l thefox-ext
|
|
18
|
-
script:
|
|
19
|
-
- make test
|
data/Makefile
DELETED
data/Makefile.common
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# Ruby Common Big 2016-11-08
|
|
3
|
-
|
|
4
|
-
MV = mv -nv
|
|
5
|
-
RM = rm -rfd
|
|
6
|
-
MKDIR = mkdir -p
|
|
7
|
-
CHMOD = chmod
|
|
8
|
-
BUNDLER = bundler
|
|
9
|
-
BUNDLER_OPTIONS = --jobs=5 --retry=3
|
|
10
|
-
GEMSPEC_FILE = $(GEM_NAME).gemspec
|
|
11
|
-
|
|
12
|
-
.PHONY: all
|
|
13
|
-
all: setup $(ALL_TARGETS_EXT)
|
|
14
|
-
|
|
15
|
-
.PHONY: setup
|
|
16
|
-
setup: .setup
|
|
17
|
-
|
|
18
|
-
.setup:
|
|
19
|
-
which ruby &> /dev/null
|
|
20
|
-
which $(BUNDLER) &> /dev/null
|
|
21
|
-
ruby -v
|
|
22
|
-
$(BUNDLER) install $(BUNDLER_OPTIONS)
|
|
23
|
-
touch $@
|
|
24
|
-
|
|
25
|
-
.PHONY: install
|
|
26
|
-
install:
|
|
27
|
-
gem_file=$$(gem build $(GEMSPEC_FILE) 2> /dev/null | grep 'File:' | tail -1 | awk '{ print $$2 }'); \
|
|
28
|
-
gem install $$gem_file; \
|
|
29
|
-
$(RM) $$gem_file
|
|
30
|
-
|
|
31
|
-
.PHONY: uninstall
|
|
32
|
-
uninstall:
|
|
33
|
-
gem uninstall $(GEM_NAME)
|
|
34
|
-
|
|
35
|
-
.PHONY: update
|
|
36
|
-
update:
|
|
37
|
-
$(BUNDLER) update
|
|
38
|
-
|
|
39
|
-
.PHONY: clean
|
|
40
|
-
clean:
|
|
41
|
-
$(RM) .bundle .setup Gemfile.lock
|
|
42
|
-
|
|
43
|
-
.PHONY: release
|
|
44
|
-
release: | releases
|
|
45
|
-
set -e; \
|
|
46
|
-
gem_file=$$(gem build $(GEMSPEC_FILE) | grep 'File:' | tail -1 | awk '{ print $$2 }'); \
|
|
47
|
-
dst="releases/$$gem_file"; \
|
|
48
|
-
[ ! -f $$dst ]; \
|
|
49
|
-
$(MV) $$gem_file releases; \
|
|
50
|
-
gem push $$dst; \
|
|
51
|
-
echo 'done'
|
|
52
|
-
|
|
53
|
-
releases:
|
|
54
|
-
$(MKDIR) $@
|
|
55
|
-
|
|
56
|
-
tmp:
|
|
57
|
-
$(MKDIR) $@
|
|
58
|
-
$(CHMOD) u=rwx,go-rwx $@
|