demo_thanoscase 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 869333f6fb9f129a5126cf8d114311fc08f2033002ab1f870243a9f43abf3f32
4
+ data.tar.gz: 280675f1ab04b3254bf0433bac4297a92a8f9c56bddff016954f9f4c67bca3fa
5
+ SHA512:
6
+ metadata.gz: f6f910f79b26689487a17a47278c2475decd4372a1cfa5efb3dad0f659cc7806738d2a7f38d5e0cceca50bc058ec68863f0a8bfdf0082746989ca92b5653dec0
7
+ data.tar.gz: 2cb283ead4cccb2c44921babd7479391690a05f01bf734356840220d7e6989e3b361dadf74c4b37d753310b305f51383fb623746058c1277181ad74fb66d3bd8
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ .DS_Store
2
+ results.html
3
+ pkg
4
+ html
5
+ .idea
6
+ .byebug_history
7
+ coverage
8
+ *.gem
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Nicolas Sebastian Vidal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # demo_thanoscase
2
+ Wipes out your strings from the universe
@@ -0,0 +1,19 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'demo_thanoscase'
3
+ s.version = '0.0.1'
4
+ s.date = '2019-04-26'
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 = 'http://rubygems.org/gems/demo_thanoscase'
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
+
18
+ s.license = 'MIT'
19
+ end
@@ -0,0 +1 @@
1
+ require 'demo_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
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: demo_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-26 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
+ - ".gitignore"
20
+ - LICENSE
21
+ - README.md
22
+ - demo_thanoscase.gemspec
23
+ - lib/demo_thanoscase.rb
24
+ - lib/demo_thanoscase/string.rb
25
+ homepage: http://rubygems.org/gems/demo_thanoscase
26
+ licenses:
27
+ - MIT
28
+ metadata: {}
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: 2.5.0
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubygems_version: 3.0.3
45
+ signing_key:
46
+ specification_version: 4
47
+ summary: Thanos gem
48
+ test_files: []