19cah 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +7 -0
  2. data/19cah.gemspec +56 -0
  3. data/Rakefile +151 -0
  4. data/bin/19cah +3 -0
  5. data/lib/19cah.rb +84 -0
  6. metadata +47 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b3b9bf56d31cd7020a8d17fbb9fb253772bb9b82
4
+ data.tar.gz: 18a2eff48a66efa9b175ec6e7a694c0f5660471d
5
+ SHA512:
6
+ metadata.gz: e878fe1e39e379af7052b426a43e913c6e94fd72ca8706d8f48b24147ef571952d8470307213def4b050fdfb09941990518eb4e1ae01b38c2c24a2753ea51724
7
+ data.tar.gz: b52bd5f336e98c9e8db8ee7b82dd53d9659417cf387eab1bdf0c8cfe34344bf60f5282f13a2beb3926b9a83a0902c98186bb6ce89dfc3a58ea6700308103fe7d
@@ -0,0 +1,56 @@
1
+ ## This is the rakegem gemspec template. Make sure you read and understand
2
+ ## all of the comments. Some sections require modification, and others can
3
+ ## be deleted if you don't need them. Once you understand the contents of
4
+ ## this file, feel free to delete any comments that begin with two hash marks.
5
+ ## You can find comprehensive Gem::Specification documentation, at
6
+ ## http://docs.rubygems.org/read/chapter/20
7
+
8
+ Gem::Specification.new do |s|
9
+ s.specification_version = 2 if s.respond_to? :specification_version=
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.rubygems_version = '2.3.3'
12
+
13
+ ## Leave these as is they will be modified for you by the rake gemspec task.
14
+ ## If your rubyforge_project name is different, then edit it and comment out
15
+ ## the sub! line in the Rakefile
16
+ s.name = '19cah'
17
+ s.version = '0.0.1'
18
+ s.date = '2018-07-10'
19
+ s.rubyforge_project = '19cah-gem'
20
+
21
+ ## Make sure your summary is short. The description may be as long
22
+ ## as you like.
23
+ s.summary = "@19cah"
24
+ s.description = "Carlos Abraham."
25
+
26
+ ## List the primary authors. If there are a bunch of authors, it's probably
27
+ ## better to set the email to an email list or something. If you don't have
28
+ ## a custom homepage, consider using your GitHub URL or the like.
29
+ s.authors = ["Carlos Abraham"]
30
+ s.email = 'abrahamm@19cah.com'
31
+ s.homepage = 'https://github.com/19cah/19cah-gem'
32
+
33
+ ## This gets added to the $LOAD_PATH so that 'lib/NAME.rb' can be required as
34
+ ## require 'NAME.rb' or'/lib/NAME/file.rb' can be as require 'NAME/file.rb'
35
+ s.require_paths = %w[lib]
36
+
37
+ ## If your gem includes any executables, list them here.
38
+ s.executables = ["19cah"]
39
+ s.default_executable = '19cah'
40
+
41
+ ## Leave this section as-is. It will be automatically generated from the
42
+ ## contents of your Git repository via the gemspec task. DO NOT REMOVE
43
+ ## THE MANIFEST COMMENTS, they are used as delimiters by the task.
44
+ # = MANIFEST =
45
+ s.files = %w[
46
+ Rakefile
47
+ bin/19cah
48
+ 19cah.gemspec
49
+ lib/19cah.rb
50
+ ]
51
+ # = MANIFEST =
52
+
53
+ ## Test files will be grabbed from the file list. Make sure the path glob
54
+ ## matches what you actually use.
55
+ s.test_files = s.files.select { |path| path =~ /^test\/test_.*\.rb/ }
56
+ end
@@ -0,0 +1,151 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'date'
4
+
5
+ #############################################################################
6
+ #
7
+ # Helper functions
8
+ #
9
+ #############################################################################
10
+
11
+ def name
12
+ @name ||= Dir['*.gemspec'].first.split('.').first
13
+ end
14
+
15
+ def version
16
+ #line = File.read("lib/#{name}.rb")[/^\s*VERSION\s*=\s*.*/]
17
+ #line.match(/.*VERSION\s*=\s*['"](.*)['"]/)[1]
18
+ "0.0.1"
19
+ end
20
+
21
+ def date
22
+ Date.today.to_s
23
+ end
24
+
25
+ def rubyforge_project
26
+ name
27
+ end
28
+
29
+ def gemspec_file
30
+ "#{name}.gemspec"
31
+ end
32
+
33
+ def gem_file
34
+ "#{name}-#{version}.gem"
35
+ end
36
+
37
+ def replace_header(head, header_name)
38
+ head.sub!(/(\.#{header_name}\s*= ').*'/) { "#{$1}#{send(header_name)}'"}
39
+ end
40
+
41
+ #############################################################################
42
+ #
43
+ # Standard tasks
44
+ #
45
+ #############################################################################
46
+
47
+ task :default => :test
48
+
49
+ require 'rake/testtask'
50
+ Rake::TestTask.new(:test) do |test|
51
+ test.libs << 'lib' << 'test'
52
+ test.pattern = 'test/**/test_*.rb'
53
+ test.verbose = true
54
+ end
55
+
56
+ desc "Generate RCov test coverage and open in your browser"
57
+ task :coverage do
58
+ require 'rcov'
59
+ sh "rm -fr coverage"
60
+ sh "rcov test/test_*.rb"
61
+ sh "open coverage/index.html"
62
+ end
63
+
64
+ require 'rake/rdoctask'
65
+ Rake::RDocTask.new do |rdoc|
66
+ rdoc.rdoc_dir = 'rdoc'
67
+ rdoc.title = "#{name} #{version}"
68
+ rdoc.rdoc_files.include('README*')
69
+ rdoc.rdoc_files.include('lib/**/*.rb')
70
+ end
71
+
72
+ desc "Open an irb session preloaded with this library"
73
+ task :console do
74
+ sh "irb -rubygems -r ./lib/#{name}.rb"
75
+ end
76
+
77
+ #############################################################################
78
+ #
79
+ # Custom tasks (add your own tasks here)
80
+ #
81
+ #############################################################################
82
+
83
+
84
+
85
+ #############################################################################
86
+ #
87
+ # Packaging tasks
88
+ #
89
+ #############################################################################
90
+
91
+ desc "Create tag v#{version} and build and push #{gem_file} to Rubygems"
92
+ task :release => :build do
93
+ unless `git branch` =~ /^\* master$/
94
+ puts "You must be on the master branch to release!"
95
+ exit!
96
+ end
97
+ #sh "git commit --allow-empty -a -m 'Release #{version}'"
98
+ #sh "git tag v#{version}"
99
+ sh "git push origin master"
100
+ #sh "git push origin v#{version}"
101
+ sh "gem push pkg/#{name}-#{version}.gem"
102
+ end
103
+
104
+ desc "Build #{gem_file} into the pkg directory"
105
+ task :build => :gemspec do
106
+ sh "mkdir -p pkg"
107
+ sh "gem build #{gemspec_file}"
108
+ sh "mv #{gem_file} pkg"
109
+ end
110
+
111
+ desc "Generate #{gemspec_file}"
112
+ task :gemspec => :validate do
113
+ # read spec file and split out manifest section
114
+ spec = File.read(gemspec_file)
115
+ head, manifest, tail = spec.split(" # = MANIFEST =\n")
116
+
117
+ # replace name version and date
118
+ replace_header(head, :name)
119
+ replace_header(head, :version)
120
+ replace_header(head, :date)
121
+ #comment this out if your rubyforge_project has a different name
122
+ replace_header(head, :rubyforge_project)
123
+
124
+ # determine file list from git ls-files
125
+ files = `git ls-files`.
126
+ split("\n").
127
+ sort.
128
+ reject { |file| file =~ /^\./ }.
129
+ reject { |file| file =~ /^(rdoc|pkg)/ }.
130
+ map { |file| " #{file}" }.
131
+ join("\n")
132
+
133
+ # piece file back together and write
134
+ manifest = " s.files = %w[\n#{files}\n ]\n"
135
+ spec = [head, manifest, tail].join(" # = MANIFEST =\n")
136
+ File.open(gemspec_file, 'w') { |io| io.write(spec) }
137
+ puts "Updated #{gemspec_file}"
138
+ end
139
+
140
+ desc "Validate #{gemspec_file}"
141
+ task :validate do
142
+ libfiles = Dir['lib/*'] - ["lib/#{name}.rb", "lib/#{name}"]
143
+ unless libfiles.empty?
144
+ puts "Directory `lib` should only contain a `#{name}.rb` file and `#{name}` dir."
145
+ exit!
146
+ end
147
+ unless Dir['VERSION*'].empty?
148
+ puts "A `VERSION` file at root level violates Gem best practices."
149
+ exit!
150
+ end
151
+ end
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
3
+ require '19cah'
@@ -0,0 +1,84 @@
1
+ puts "
2
+ ..................................................-----.........................```.``````````````````````````
3
+ ..............................................-:+hddhso+/:----..................``````````````````````````````
4
+ ..........................................-:+sdmNNNNNmmmmmmmdhyy/--............```````````````````````````````
5
+ .......................................-+hmmmNNNNNNNNNNNNNNNNNmmmdhs-..........```````````````````````````````
6
+ ....................................../hNNNNNNNNNNNNNNNNNNNNNNNNNmmd+-.........```````````````````````````````
7
+ .....................................-yNNNNNNNNMMMMMNMMMNNNNNNNNNNNmdy/..........`````````````````````````````
8
+ ..................................../hmNNNNNNMMMMMMMMMMMNNMMMMMNNNNmmmh+-........`````````````````````````````
9
+ ..................................-odmNNNNNMMMMMMMMMMMMMMMMMMMMNNNmmmddds........`````````````````````````````
10
+ .................................+hmNNNMMMMMMMNNmmNNNNNNMMMMMMNNNNNmmmmdh+.......`````````````````````````````
11
+ ................................+mNNNNMMMMNNmdhyyyhhhhdddmmNNNNNNNNNmmmmdy-.......````````````````````````````
12
+ ...............................:hNNNNMMMNmdhyssssyyyyyyyyhhhddddmNNNNmmddh:`....`.````````````````````````````
13
+ ..............................:yNNNNNMNdhyyysssssssssssossssyyyyhdmNNNmmdd+``.....````````````````````````````
14
+ ............................../ymNNNNNdysssssssoooooooooooooooooosyhhdNmdds.......````````````````````````````
15
+ ..............................-oNNNNNmysssssssoooo+++ooooo+++++++++++ohmdds......`````````````````````````````
16
+ ..............................-hNNNmmhsssydddmddhyooooooooosyyhhyyyo//+ydhs.`....`````````````````````````````
17
+ ..............................:mNNmdyssyhmNmdddddhysooooooshhdddddmhs//ohhh-`....`````````````````````````````
18
+ ..............................:mmmdyssyddhhyyyhhyyysssoooosyyhhyyyyyhs//hhy-.`.`..````````````````````````````
19
+ ............................../mmmhsssyyyhdmmmmddhhssoo+osyhdmmddhyooo//hdy..`..``````````````````````````````
20
+ ..............................:mmdsosssyhmmmNmddmdhyso+/+ydmmmNmhyhho+/:sho..``.``````````````````````````````
21
+ ............................../mdhoosssyddyhdhyyhhhyo++/+oyddhdh++yys+::/y/```.```````````````````````````````
22
+ ..............................:ddyooossyyyyyyyyyyssooo+///osyhyyso+++/::/s:```.```````````````````````````````
23
+ ..............................-hdyoooosssssssssssoosoo+////+++ooo++///:::o-``.````````````````````````````````
24
+ ............................://sdsoooooooooooooosssoooo+/:////+++////::::/---.````````````````````````````````
25
+ .........................../ysoossooooooooooooossosyysssoo+/+++////::::::::+s-````````````````````````````````
26
+ ...........................oyoooooooooooooooossssyhhhyysyys++oo++//::::::::+y-`.``````````````````````````````
27
+ ...........................syosysoooooooossssssssssssssoo++///+o++/:::::/+::s-````````````````````````````````
28
+ ...........................osoyy+ooooosssssssssssssssssoo+//////+++//::::oo/+-````````````````````````````````
29
+ ...........................:oyyooosoossssssyyyyyyyyyyyysssoo+/////++///::/o+:`````````````````````````````````
30
+ ............................+ssooossssssssssyhhyyssssssooosssys+//+////:::/:.`````````````````````````````````
31
+ ............................-+oooooossosssssssssssssssoo+++///++///////::---``````````````````````````````````
32
+ ..............................:/+++oooosssssssssssssyyyso++////////////::-.```````````````````````````````````
33
+ ..................................:oosoosooosssssssssssoo++///////////:.``````````````````````````````````````
34
+ .................................../sssooooosssssooooo++++++/////////:.```````````````````````````````````````
35
+ ...................................:sssssssssssoooo+++++////////////:.````````````````````````````````````````
36
+ ...................................:ossssssssssssooooo++++////////+/-`````````````````````````````````````````
37
+ ...................................:osssssyyyyyyyyyysssssooo+++++//:-`````````````````````````````````````````
38
+ .................................../oosoossyyyhhhhhhhhhhhyysso+//:::-`````````````````````````````````````````
39
+ .................................../oosoossssyyhhhhhhhhhhhyso+//::::-.````````````````````````````````````````
40
+ ...................................+ooosssssssyyyyyhhhhhyso++///::::-//.``````````````````````````````````````
41
+ ..................................:oooosssossssssssyyyysoo+///::::::-+y+.`````````````````````````````````````
42
+ ................................-+yoooosssssssssoosssoo+///:::::::::-oyso:.```````````````````````````````````
43
+ ..............................-/osy++osssssssssoooooo++//::::::::::-:sssss+:.`````````````````````````````````
44
+ ............................-/ossyy///ossssssooooooo+++////:::::::--:ssosssso+/:-..```````````````````````````
45
+ .......................-://+ssssssy+/:/+osssssssssssso+++////:/::--:/sooooossssooo+/-..```````````````````````
46
+ ...................--:+oosssssssssyo/:::/+osssssssssssoo+/////:-----/oooooooossssossoo+/:-..``````````````````
47
+ ..............--:/+oooosssssssssssss//::--:/osssssssssoo++//--..---:+ooooooooossoosooooosoo+/:-.``````````````
48
+ .....---::///++oooooooosssssossssoos//:------+osssssssoo+:-....----:ooooooooooossssooooooooooooo+/:-.`````````
49
+ ---:/++oooooooooooooooosssooossssoos+//:---...-/osssss+:-......-..-+ooooooooooosssooooooooooooooooooo+/-.```
50
+ +oooooooooooooooooooooossooooosssoos+/::--...--/++oo+:...........-/oooooooooooosssooooooooooooooooooooooo+/:--
51
+ ooooooooooooooooooooooosoooooosssooo+/:::--.-+sssoooo+:.........--oooooooooooooosoooooooooooooooooooooooooosso
52
+ oooooooooooooooooooooosooooooosssoooo::::---ssssssooooo+-......--+ooooooooooooooossoooooooooooooooooooooooosoo
53
+ ooooooooooooooooooooosooooooooooooooo::::::+ssosoosooss//:-.....:oooooooooooooooosoooooooooooooooooooooooossoo
54
+ ooooooooooooooooooooooooooooooooooooo/::::+/:oooooooso--://--..-/oooooooooooooooosoooooooooooooooooooooooosooo
55
+ oooooooooooooooooooosooooooooooooooooo-:://--ssossssy-.---//:-.-ooooooooooooooooosooooooooooooooooooooooosoooo
56
+ oooooooooooooooooooossoooooooooooooooy/-//--:yssyooos/..----::-/ooooooooooooooossooooooooooooooooooooooossoooo
57
+ oooooooooooooooooooooossooooooooooooos+::---osssyoo+os+.-----:/+oooooooooo+oossooooooooooooooooooooooooosooooo
58
+ "
59
+
60
+ puts "
61
+
62
+ ______ __ ______ __
63
+ _/ \\_ _/ \\ / \\ | \\
64
+ / $$$$$$ \\ | $$ | $$$$$$\\ _______ ______ | $$____
65
+ / $$$____$$$\\ \\$$$$ | $$__/ $$ / \\| \\ | $$ \\
66
+ | $$/ \\ $$\\ | $$ \\$$ $$| $$$$$$$ \\$$$$$$\\| $$$$$$$\\
67
+ | $$| $$$$$| $$ | $$ _\\$$$$$$$| $$ / $$| $$ | $$
68
+ | $$| $$| $$| $$ _| $$_| \\__/ $$| $$_____| $$$$$$$| $$ | $$
69
+ | $$ \\$$ $$| $$| $$ \\$$ $$ \\$$ \\$$ $$| $$ | $$
70
+ \\$$\\ \\$$$$$$$$ \\$$$$$$ \\$$$$$$ \\$$$$$$$ \\$$$$$$$ \\$$ \\$$
71
+ \\$$\\ __/ \\
72
+ \\$$$ $$$
73
+ \\$$$$$$
74
+
75
+
76
+ "
77
+
78
+ puts ""
79
+ puts ""
80
+ puts " Carlos Abraham"
81
+ puts " www.19cah.com"
82
+ puts " github.com/19cah"
83
+ puts ""
84
+ puts ""
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: 19cah
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Carlos Abraham
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-07-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Carlos Abraham.
14
+ email: abrahamm@19cah.com
15
+ executables:
16
+ - 19cah
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - 19cah.gemspec
21
+ - Rakefile
22
+ - bin/19cah
23
+ - lib/19cah.rb
24
+ homepage: https://github.com/19cah/19cah-gem
25
+ licenses: []
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project: 19cah-gem
43
+ rubygems_version: 2.5.2
44
+ signing_key:
45
+ specification_version: 2
46
+ summary: "@19cah"
47
+ test_files: []