clipbot 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 +7 -0
- data/bin/generate +15 -0
- data/lib/clipbot.rb +27 -0
- metadata +60 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 0e75168791197e1808395a4740c75767db11508c579d5a7fac514ba7c73e9013
|
|
4
|
+
data.tar.gz: 2793caaf4e97c78126cd52ba4795735fce8c1a4ae27273f707771705c971eec8
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 9806d28d9898504a6a6f922f206cc08b31e0d0ca36fe0f66a1b54ad575b274af22fb95eadea74ee722b1c9432619fcaef0c7d0ae1ff52aa16070fe5c32f6ef49
|
|
7
|
+
data.tar.gz: 6a8a55ab9f5ea996e501ff41092c1a2140e45b14255fdde60ac1b65db30508e2ef5e3c3472045016b54c278d1e1d7d7e521eeec4c0f193d964fc5aeb1c8c04e4
|
data/bin/generate
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
# Example executable file.
|
|
4
|
+
# Must be added to the `executables` array in the `.gemspec` file.
|
|
5
|
+
|
|
6
|
+
require "bundler/setup"
|
|
7
|
+
require "clipbot"
|
|
8
|
+
|
|
9
|
+
puts Clipbot.generate_clips.join(<<~BREAK)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️ - ✂️
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
BREAK
|
data/lib/clipbot.rb
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# ------------------------------------------
|
|
2
|
+
# Top-level Clipbot module/namespace.
|
|
3
|
+
#
|
|
4
|
+
# The main entry point for code that depends on the gem.
|
|
5
|
+
# It's also a good place to expose configuration options!
|
|
6
|
+
# ------------------------------------------
|
|
7
|
+
module Clipbot
|
|
8
|
+
autoload :Clip, "clipbot/clip" # Could also use Zeitwerk here for autoloading/reloading
|
|
9
|
+
|
|
10
|
+
class << self
|
|
11
|
+
def generate_clips(num = 3)
|
|
12
|
+
(0..num).map do
|
|
13
|
+
<<~CLIP
|
|
14
|
+
------------------------------
|
|
15
|
+
#{Clip.generate_title}
|
|
16
|
+
------------------------------
|
|
17
|
+
|
|
18
|
+
#{Clip.generate_content}
|
|
19
|
+
CLIP
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def config
|
|
24
|
+
# Expose config options here...
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: clipbot
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Mark Perkins
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: faker
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '3.5'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '3.5'
|
|
26
|
+
description: This isn't a real thing. It's just an example for a talk about creating
|
|
27
|
+
& publishing gems :)
|
|
28
|
+
email: mark@allmarkedup.com
|
|
29
|
+
executables:
|
|
30
|
+
- generate
|
|
31
|
+
extensions: []
|
|
32
|
+
extra_rdoc_files: []
|
|
33
|
+
files:
|
|
34
|
+
- bin/generate
|
|
35
|
+
- lib/clipbot.rb
|
|
36
|
+
homepage: https://rubygems.org/gems/clipbot
|
|
37
|
+
licenses:
|
|
38
|
+
- MIT
|
|
39
|
+
metadata:
|
|
40
|
+
homepage_uri: https://rubygems.org/gems/clipbot
|
|
41
|
+
documentation_uri: https://rubygems.org/gems/clipbot/docs
|
|
42
|
+
bug_tracker_uri: https://github.com/clipbot/issues
|
|
43
|
+
rdoc_options: []
|
|
44
|
+
require_paths:
|
|
45
|
+
- lib
|
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
- - "~>"
|
|
49
|
+
- !ruby/object:Gem::Version
|
|
50
|
+
version: '3.2'
|
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - ">="
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: '0'
|
|
56
|
+
requirements: []
|
|
57
|
+
rubygems_version: 3.6.9
|
|
58
|
+
specification_version: 4
|
|
59
|
+
summary: PR coverage generator tool
|
|
60
|
+
test_files: []
|