muflax 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -14
- data/lib/muflax/align.rb +1 -1
- data/lib/muflax/array.rb +1 -1
- data/lib/muflax/blank.rb +1 -1
- data/lib/muflax/debug.rb +1 -1
- data/lib/muflax/deep_dup.rb +1 -1
- data/lib/muflax/dir.rb +1 -1
- data/lib/muflax/enumerable.rb +1 -1
- data/lib/muflax/file.rb +9 -15
- data/lib/muflax/hash.rb +1 -1
- data/lib/muflax/kernel.rb +1 -1
- data/lib/muflax/library.rb +1 -1
- data/lib/muflax/math.rb +1 -1
- data/lib/muflax/num.rb +1 -1
- data/lib/muflax/objects.rb +1 -1
- data/lib/muflax/panes.rb +1 -1
- data/lib/muflax/regex.rb +1 -1
- data/lib/muflax/reservoir.rb +1 -1
- data/lib/muflax/string.rb +1 -1
- data/lib/muflax/table.rb +1 -1
- data/lib/muflax/time.rb +1 -1
- data/lib/muflax.rb +1 -1
- data/muflax.gemspec +4 -4
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c63b7f0eb3dd3fb2b9a57ee17f9612016f4ab416166d8c026f7383e9b7f42f8
|
4
|
+
data.tar.gz: c9a4316cbb4edd15b01656ec4790cda909b20252cd61149b31fe59004e3a9d91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eae6330fbcf0b008de22ca9544e7a49fbf6b558ba0a1503afb69a6c326839c7dac7c893f8f36949a2b626d117f1390e2b333c6fc5eceea2296ea1055876ec24a
|
7
|
+
data.tar.gz: af3e207def4401b83e0c4b3a06e5250d3492a4f447e685702a1ae71b256d9b580e37fed608006bf9c559ec6f45753d6adc8a03f7b944e39b6f0dacdaf82adec0
|
data/Gemfile.lock
CHANGED
@@ -1,37 +1,37 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
muflax (0.
|
4
|
+
muflax (0.6.0)
|
5
5
|
awesome_print (~> 1)
|
6
6
|
debug_inspector (~> 0.0)
|
7
7
|
fast_blank (~> 1)
|
8
8
|
highline (< 1.7)
|
9
|
-
|
9
|
+
optimist (~> 3)
|
10
|
+
pry (~> 0.14)
|
10
11
|
range_math (~> 1)
|
11
|
-
trollop (~> 2.1.3)
|
12
12
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
awesome_print (1.
|
17
|
-
coderay (1.1.
|
16
|
+
awesome_print (1.9.2)
|
17
|
+
coderay (1.1.3)
|
18
18
|
debug_inspector (0.0.3)
|
19
|
-
fast_blank (1.0.
|
19
|
+
fast_blank (1.0.1)
|
20
20
|
highline (1.6.21)
|
21
|
-
method_source (0.
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
method_source (1.0.0)
|
22
|
+
optimist (3.0.1)
|
23
|
+
pry (0.14.1)
|
24
|
+
coderay (~> 1.1)
|
25
|
+
method_source (~> 1.0)
|
26
|
+
rake (13.0.6)
|
26
27
|
range_math (1.0.1)
|
27
|
-
trollop (2.1.3)
|
28
28
|
|
29
29
|
PLATFORMS
|
30
30
|
ruby
|
31
31
|
|
32
32
|
DEPENDENCIES
|
33
33
|
muflax!
|
34
|
-
rake (~>
|
34
|
+
rake (~> 13)
|
35
35
|
|
36
36
|
BUNDLED WITH
|
37
|
-
1.
|
37
|
+
2.1.4
|
data/lib/muflax/align.rb
CHANGED
data/lib/muflax/array.rb
CHANGED
data/lib/muflax/blank.rb
CHANGED
data/lib/muflax/debug.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: utf-8 -*-
|
3
|
-
# Copyright
|
3
|
+
# Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2013
|
4
4
|
# License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
|
5
5
|
|
6
6
|
# This is very stupid and shouldn't be used in real code, which is why I will use it in real code.
|
data/lib/muflax/deep_dup.rb
CHANGED
data/lib/muflax/dir.rb
CHANGED
data/lib/muflax/enumerable.rb
CHANGED
data/lib/muflax/file.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: utf-8 -*-
|
3
|
-
# Copyright
|
3
|
+
# Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2013
|
4
4
|
# License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
|
5
5
|
|
6
6
|
class File
|
7
|
-
def self.save name,
|
7
|
+
def self.save name, &blk
|
8
8
|
name = File.expand_path(name)
|
9
9
|
|
10
10
|
# make sure directory exists
|
@@ -12,26 +12,20 @@ class File
|
|
12
12
|
FileUtils.mkdir_p dir if not Dir.exists? dir
|
13
13
|
|
14
14
|
# now open it
|
15
|
-
case
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
f = File.open(name, "w", &blk)
|
20
|
-
else
|
21
|
-
raise "unsupported file format: #{as}"
|
22
|
-
end
|
15
|
+
file = case name
|
16
|
+
when /\.gz$/ ; Zlib::GzipWriter.open(name, &blk)
|
17
|
+
else ; File.open(name, "w", &blk)
|
18
|
+
end
|
23
19
|
|
24
|
-
|
20
|
+
file
|
25
21
|
end
|
26
22
|
|
27
23
|
def self.load name
|
28
24
|
name = File.expand_path(name)
|
29
25
|
|
30
26
|
file = case name
|
31
|
-
when /\.gz$/
|
32
|
-
|
33
|
-
else
|
34
|
-
File.open(name)
|
27
|
+
when /\.gz$/ ; Zlib::GzipReader.open(name)
|
28
|
+
else ; File.open(name)
|
35
29
|
end
|
36
30
|
|
37
31
|
file
|
data/lib/muflax/hash.rb
CHANGED
data/lib/muflax/kernel.rb
CHANGED
data/lib/muflax/library.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: utf-8 -*-
|
3
|
-
# Copyright
|
3
|
+
# Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2013
|
4
4
|
# License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
|
5
5
|
|
6
6
|
def require_local lib_name, location=caller_locations.first.path
|
data/lib/muflax/math.rb
CHANGED
data/lib/muflax/num.rb
CHANGED
data/lib/muflax/objects.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- encoding: utf-8 -*-
|
3
|
-
# Copyright
|
3
|
+
# Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2013
|
4
4
|
# License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
|
5
5
|
|
6
6
|
# make it possible to track data in attributes
|
data/lib/muflax/panes.rb
CHANGED
data/lib/muflax/regex.rb
CHANGED
data/lib/muflax/reservoir.rb
CHANGED
data/lib/muflax/string.rb
CHANGED
data/lib/muflax/table.rb
CHANGED
data/lib/muflax/time.rb
CHANGED
data/lib/muflax.rb
CHANGED
data/muflax.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "muflax"
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.6.0"
|
4
4
|
|
5
5
|
s.authors = ["muflax"]
|
6
6
|
s.summary = "muflax standard library"
|
@@ -16,9 +16,9 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.add_dependency "debug_inspector", "~> 0.0"
|
17
17
|
s.add_dependency "fast_blank", "~> 1"
|
18
18
|
s.add_dependency "highline", "< 1.7"
|
19
|
-
s.add_dependency "pry", "~> 0.
|
19
|
+
s.add_dependency "pry", "~> 0.14"
|
20
20
|
s.add_dependency "range_math", "~> 1"
|
21
|
-
s.add_dependency "
|
21
|
+
s.add_dependency "optimist", "~> 3"
|
22
22
|
|
23
|
-
s.add_development_dependency "rake", "~>
|
23
|
+
s.add_development_dependency "rake", "~> 13"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muflax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- muflax
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.14'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
82
|
+
version: '0.14'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: range_math
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,33 +95,33 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: optimist
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '3'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '3'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
117
|
+
version: '13'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '13'
|
125
125
|
description: collection of stuff muflax always uses in scripts
|
126
126
|
email: mail@muflax.com
|
127
127
|
executables: []
|
@@ -161,7 +161,7 @@ homepage: http://github.com/muflax/ruby-muflax
|
|
161
161
|
licenses:
|
162
162
|
- AGPL-3.0+
|
163
163
|
metadata: {}
|
164
|
-
post_install_message:
|
164
|
+
post_install_message:
|
165
165
|
rdoc_options: []
|
166
166
|
require_paths:
|
167
167
|
- lib
|
@@ -176,8 +176,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
- !ruby/object:Gem::Version
|
177
177
|
version: '0'
|
178
178
|
requirements: []
|
179
|
-
rubygems_version: 3.
|
180
|
-
signing_key:
|
179
|
+
rubygems_version: 3.1.6
|
180
|
+
signing_key:
|
181
181
|
specification_version: 4
|
182
182
|
summary: muflax standard library
|
183
183
|
test_files: []
|