curly-garbanzo 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +27 -0
- data/README.md +1 -0
- data/Rakefile +126 -0
- data/curly-garbanzo.gemspec +42 -0
- data/lib/curly-garbanzo.rb +3 -0
- metadata +62 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d58888757d7e6014953017a00ffdfecbebcff1c1018341007f8d2f1cb27d0c65
|
4
|
+
data.tar.gz: 36d47f4505a4ed8cd85bb21ce9322c33fdfb803d50b86998a7e5dd55064d79fa
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f1978591366e53fbd1801ffd4e4697cdd5b1de374879795a449b793bece2a738b756bc787d5b7f15770c890190ad264a4681df598fe1a57fa58812f71d0c1bb5
|
7
|
+
data.tar.gz: 9422e1d3153f7371761ab7046df0d20016bceb4f8221fdb760bb7b0d5c47dc49560711691aa2d45240156cad6ed67cac02911da8cf6c98b6339de06ae6db882b
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
curly-garbanzo (0.0.1)
|
5
|
+
mdify (= 1.2.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
addressable (2.7.0)
|
11
|
+
public_suffix (>= 2.0.2, < 5.0)
|
12
|
+
launchy (2.5.0)
|
13
|
+
addressable (~> 2.7)
|
14
|
+
mdify (1.2.0)
|
15
|
+
launchy (~> 2.0)
|
16
|
+
redcarpet (~> 1.9)
|
17
|
+
public_suffix (4.0.6)
|
18
|
+
redcarpet (1.17.2)
|
19
|
+
|
20
|
+
PLATFORMS
|
21
|
+
ruby
|
22
|
+
|
23
|
+
DEPENDENCIES
|
24
|
+
curly-garbanzo!
|
25
|
+
|
26
|
+
BUNDLED WITH
|
27
|
+
1.17.2
|
data/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# curly-garbanzo
|
data/Rakefile
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
require 'date'
|
4
|
+
# Generated with Rakegem (https://github.com/mojombo/rakegem/)
|
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
|
+
end
|
19
|
+
|
20
|
+
def date
|
21
|
+
Date.today.to_s
|
22
|
+
end
|
23
|
+
|
24
|
+
def rubyforge_project
|
25
|
+
name
|
26
|
+
end
|
27
|
+
|
28
|
+
def gemspec_file
|
29
|
+
"#{name}.gemspec"
|
30
|
+
end
|
31
|
+
|
32
|
+
def gem_file
|
33
|
+
"#{name}-#{version}.gem"
|
34
|
+
end
|
35
|
+
|
36
|
+
def replace_header(head, header_name)
|
37
|
+
head.sub!(/(\.#{header_name}\s*= ').*'/) { "#{$1}#{send(header_name)}'"}
|
38
|
+
end
|
39
|
+
|
40
|
+
#############################################################################
|
41
|
+
#
|
42
|
+
# Standard tasks
|
43
|
+
#
|
44
|
+
#############################################################################
|
45
|
+
|
46
|
+
task :default => :test
|
47
|
+
|
48
|
+
require 'rake/testtask'
|
49
|
+
Rake::TestTask.new(:test) do |test|
|
50
|
+
test.libs << 'lib' << 'test'
|
51
|
+
test.pattern = 'test/**/test_*.rb'
|
52
|
+
test.verbose = true
|
53
|
+
end
|
54
|
+
|
55
|
+
desc "Open an irb session preloaded with this library"
|
56
|
+
task :console do
|
57
|
+
sh "irb -rubygems -r ./lib/#{name}.rb"
|
58
|
+
end
|
59
|
+
|
60
|
+
#############################################################################
|
61
|
+
#
|
62
|
+
# Packaging tasks
|
63
|
+
#
|
64
|
+
#############################################################################
|
65
|
+
|
66
|
+
desc "Create tag v#{version} and build and push #{gem_file} to Rubygems"
|
67
|
+
task :release => :build do
|
68
|
+
unless `git branch` =~ /^\* main$/
|
69
|
+
puts "You must be on the main branch to release!"
|
70
|
+
exit!
|
71
|
+
end
|
72
|
+
sh "git commit --allow-empty -a -m 'Release #{version}'"
|
73
|
+
sh "git tag v#{version}"
|
74
|
+
sh "git push origin main"
|
75
|
+
sh "git push origin v#{version}"
|
76
|
+
sh "gem push pkg/#{name}-#{version}.gem"
|
77
|
+
end
|
78
|
+
|
79
|
+
desc "Build #{gem_file} into the pkg directory"
|
80
|
+
task :build => :gemspec do
|
81
|
+
sh "mkdir -p pkg"
|
82
|
+
sh "gem build #{gemspec_file}"
|
83
|
+
sh "mv #{gem_file} pkg"
|
84
|
+
end
|
85
|
+
|
86
|
+
desc "Generate #{gemspec_file}"
|
87
|
+
task :gemspec => :validate do
|
88
|
+
# read spec file and split out manifest section
|
89
|
+
spec = File.read(gemspec_file)
|
90
|
+
head, manifest, tail = spec.split(" # = MANIFEST =\n")
|
91
|
+
|
92
|
+
# replace name version and date
|
93
|
+
replace_header(head, :name)
|
94
|
+
replace_header(head, :version)
|
95
|
+
replace_header(head, :date)
|
96
|
+
#comment this out if your rubyforge_project has a different name
|
97
|
+
replace_header(head, :rubyforge_project)
|
98
|
+
|
99
|
+
# determine file list from git ls-files
|
100
|
+
files = `git ls-files`.
|
101
|
+
split("\n").
|
102
|
+
sort.
|
103
|
+
reject { |file| file =~ /^\./ }.
|
104
|
+
reject { |file| file =~ /^(rdoc|pkg)/ }.
|
105
|
+
map { |file| " #{file}" }.
|
106
|
+
join("\n")
|
107
|
+
|
108
|
+
# piece file back together and write
|
109
|
+
manifest = " s.files = %w[\n#{files}\n ]\n"
|
110
|
+
spec = [head, manifest, tail].join(" # = MANIFEST =\n")
|
111
|
+
File.open(gemspec_file, 'w') { |io| io.write(spec) }
|
112
|
+
puts "Updated #{gemspec_file}"
|
113
|
+
end
|
114
|
+
|
115
|
+
desc "Validate #{gemspec_file}"
|
116
|
+
task :validate do
|
117
|
+
libfiles = Dir['lib/*'] - ["lib/#{name}.rb", "lib/#{name}"]
|
118
|
+
unless libfiles.empty?
|
119
|
+
puts "Directory `lib` should only contain a `#{name}.rb` file and `#{name}` dir."
|
120
|
+
exit!
|
121
|
+
end
|
122
|
+
unless Dir['VERSION*'].empty?
|
123
|
+
puts "A `VERSION` file at root level violates Gem best practices."
|
124
|
+
exit!
|
125
|
+
end
|
126
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.specification_version = 2 if s.respond_to? :specification_version=
|
3
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
4
|
+
s.rubygems_version = '1.3.5'
|
5
|
+
|
6
|
+
## Leave these as is they will be modified for you by the rake gemspec task.
|
7
|
+
## If your rubyforge_project name is different, then edit it and comment out
|
8
|
+
## the sub! line in the Rakefile
|
9
|
+
s.name = 'curly-garbanzo'
|
10
|
+
s.version = '0.0.2'
|
11
|
+
s.date = '2020-12-16'
|
12
|
+
s.licenses = ['MIT']
|
13
|
+
## Make sure your summary is short. The description may be as long
|
14
|
+
## as you like.
|
15
|
+
s.summary = "This is a gem for testing"
|
16
|
+
s.description = "This is a gem for testing"
|
17
|
+
|
18
|
+
## List the primary authors. If there are a bunch of authors, it's probably
|
19
|
+
## better to set the email to an email list or something. If you don't have
|
20
|
+
## a custom homepage, consider using your GitHub URL or the like.
|
21
|
+
s.authors = ["Federico Builes"]
|
22
|
+
s.email = 'federico.builes@gmail.com'
|
23
|
+
s.homepage = 'http://github.com/febuiles/curly-garbanzo'
|
24
|
+
|
25
|
+
## List your runtime dependencies here. Runtime dependencies are those
|
26
|
+
## that are needed for an end user to actually USE your code.
|
27
|
+
s.add_dependency("mdify", "1.2.0")
|
28
|
+
|
29
|
+
## Leave this section as-is. It will be automatically generated from the
|
30
|
+
## contents of your Git repository via the gemspec task. DO NOT REMOVE
|
31
|
+
## THE MANIFEST COMMENTS, they are used as delimiters by the task.
|
32
|
+
# = MANIFEST =
|
33
|
+
s.files = %w[
|
34
|
+
Gemfile
|
35
|
+
Gemfile.lock
|
36
|
+
README.md
|
37
|
+
Rakefile
|
38
|
+
curly-garbanzo.gemspec
|
39
|
+
lib/curly-garbanzo.rb
|
40
|
+
]
|
41
|
+
# = MANIFEST =
|
42
|
+
end
|
metadata
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: curly-garbanzo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Federico Builes
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-12-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: mdify
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.0
|
27
|
+
description: This is a gem for testing
|
28
|
+
email: federico.builes@gmail.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- Gemfile
|
34
|
+
- Gemfile.lock
|
35
|
+
- README.md
|
36
|
+
- Rakefile
|
37
|
+
- curly-garbanzo.gemspec
|
38
|
+
- lib/curly-garbanzo.rb
|
39
|
+
homepage: http://github.com/febuiles/curly-garbanzo
|
40
|
+
licenses:
|
41
|
+
- MIT
|
42
|
+
metadata: {}
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
requirements: []
|
58
|
+
rubygems_version: 3.0.3
|
59
|
+
signing_key:
|
60
|
+
specification_version: 2
|
61
|
+
summary: This is a gem for testing
|
62
|
+
test_files: []
|