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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b4db210e85b86a1cc9f78d42abc77fca5a34be25487ec5c2cee020fce7d7c6c
4
- data.tar.gz: 76cee357b557092ee070207346b7ef60c6450ab46e090635672080fab9f63a0c
3
+ metadata.gz: 6c63b7f0eb3dd3fb2b9a57ee17f9612016f4ab416166d8c026f7383e9b7f42f8
4
+ data.tar.gz: c9a4316cbb4edd15b01656ec4790cda909b20252cd61149b31fe59004e3a9d91
5
5
  SHA512:
6
- metadata.gz: 66c636e241ac329d61d22a45e3ccd035d5d5f966772816cbadf115219d5c8ebf94585f8ff1bbf051a58c9f43885025e6ef74e6ef57f681bf7bb5129fb2a7944d
7
- data.tar.gz: f107567d3b6af5a79603b4360e6e43528cf0a6a38b4c979e054b059a173907b466f0d6aae2be0fc6a1e618a0f9ee09482f5961a96202e83c044da5747ad42c88
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.5.2)
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
- pry (~> 0.10)
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.8.0)
17
- coderay (1.1.2)
16
+ awesome_print (1.9.2)
17
+ coderay (1.1.3)
18
18
  debug_inspector (0.0.3)
19
- fast_blank (1.0.0)
19
+ fast_blank (1.0.1)
20
20
  highline (1.6.21)
21
- method_source (0.9.2)
22
- pry (0.12.2)
23
- coderay (~> 1.1.0)
24
- method_source (~> 0.9.0)
25
- rake (12.3.3)
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 (~> 12)
34
+ rake (~> 13)
35
35
 
36
36
  BUNDLED WITH
37
- 1.17.3
37
+ 2.1.4
data/lib/muflax/align.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2017
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2017
4
4
  # License: GNU APGLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  module Enumerable
data/lib/muflax/array.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2013
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 Array
data/lib/muflax/blank.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2017
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2017
4
4
  # License: GNU APGLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  class Object
data/lib/muflax/debug.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2013
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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2017
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2017
4
4
  # License: GNU APGLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  class Object
data/lib/muflax/dir.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2014
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2014
4
4
  # License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  class Dir
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2013
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
  module Enumerable
data/lib/muflax/file.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2013
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, as: :text, &blk
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 as
16
- when :anki
17
- f = CSV.open(name, "w", :col_sep => "\t", &blk)
18
- when :text
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
- f
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
- Zlib::GzipReader.open(name)
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
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2013
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
  # simple auto-vivifying hash
data/lib/muflax/kernel.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2014
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2014
4
4
  # License: GNU GPL 3 <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  module Kernel
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2013
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
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2018
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2018
4
4
  # License: GNU APGLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  module Math
data/lib/muflax/num.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2017
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2017
4
4
  # License: GNU APGLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  class Numeric
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2013
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
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2017
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2017
4
4
  # License: GNU GPLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  module Kernel
data/lib/muflax/regex.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2013
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 String
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2019
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2019
4
4
  # License: GNU APGLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  require "forwardable"
data/lib/muflax/string.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2013
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 String
data/lib/muflax/table.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2017
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2017
4
4
  # License: GNU GPLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  class Table
data/lib/muflax/time.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- encoding: utf-8 -*-
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2017
3
+ # Copyright Freya Dorn <freya.siv.dorn@gmail.com>, 2017
4
4
  # License: GNU APGLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
5
5
 
6
6
  class Numeric
data/lib/muflax.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # coding: utf-8
3
- # Copyright Steffie Dorn <mail@muflax.com>, 2013
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
  # ruby libs
data/muflax.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "muflax"
3
- s.version = "0.5.2"
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.10"
19
+ s.add_dependency "pry", "~> 0.14"
20
20
  s.add_dependency "range_math", "~> 1"
21
- s.add_dependency "trollop", "~> 2.1.3"
21
+ s.add_dependency "optimist", "~> 3"
22
22
 
23
- s.add_development_dependency "rake", "~> 12"
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.5.2
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: 2019-09-11 00:00:00.000000000 Z
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.10'
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.10'
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: trollop
98
+ name: optimist
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.1.3
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: 2.1.3
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: '12'
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: '12'
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.0.6
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: []