thanoscase 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f792fa9959f2ff2fd2206df53e6b1492a2522b32e3ce67ac993d0ffe79e8da67
4
+ data.tar.gz: 97fd0d27a0500f35ab4e5df34267261f610d6d411b25a938dab49f15055834cb
5
+ SHA512:
6
+ metadata.gz: af128c4219dfc60d4d4d22f40aa7f758a02a9d3bd4bffecb9c605b8c87ea3faec7f9f6394a6cc61064fbf08756df19416f896b0ddba18e832204231fd27e42a0
7
+ data.tar.gz: d4bf26356bc722f6cb72973b99ef38c93dc9831ecb43daff1a356d0d3114d5390bc52f220c456c20d2ad40e2c663228815c6592069168b2044cbe295336b3632
data/lib/thanoscase.rb ADDED
@@ -0,0 +1 @@
1
+ require "thanoscase/string"
@@ -0,0 +1,12 @@
1
+ class String
2
+ def thanoscase!
3
+ return self if empty?
4
+ half_universe = length/2
5
+ half_universe.times { slice!(rand(length))}
6
+ self
7
+ end
8
+
9
+ def thanoscase
10
+ dup.thanoscase!
11
+ end
12
+ end
@@ -0,0 +1,18 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'thanoscase'
3
+ s.version = '0.0.1'
4
+ s.date = '2019-04-27'
5
+ s.summary = 'Thanos gem'
6
+ s.description = 'A simple way to wipe out half the universe'
7
+ s.authors = ['Nicolas Sebastian Vidal']
8
+ s.email = 'nicolas.s.vidal@gmail.com'
9
+ s.homepage = ''
10
+ s.files = `git ls-files -z`.split("\x0").reject do |f|
11
+ f.match(%r{^(test|spec|features)/})
12
+ end
13
+ s.bindir = 'bin'
14
+ s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
15
+ s.require_paths = ['lib']
16
+ s.required_ruby_version = '>= 2.5.0'
17
+ s.license = 'MIT'
18
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: thanoscase
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Nicolas Sebastian Vidal
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-04-27 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple way to wipe out half the universe
14
+ email: nicolas.s.vidal@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/thanoscase.rb
20
+ - lib/thanoscase/string.rb
21
+ - thanoscase.gemspec
22
+ homepage: ''
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 2.5.0
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 2.7.3
43
+ signing_key:
44
+ specification_version: 4
45
+ summary: Thanos gem
46
+ test_files: []