mosbot 0.3.1 → 0.3.2
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 +4 -4
- data/bin/mosbot +25 -19
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 351ed21d6f7a4dfe2e10e3a845e070cef28b3b18
|
|
4
|
+
data.tar.gz: ede45433c1a3034506706688957da3503483b19d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81c0dc4538224b2ebd4aea7985f6e4cd67db4ca7df38c22d8f741477e62b5b2c779ea0bc6564509a68f27f1f77a170417db2e532080933bce89e1d8652761807
|
|
7
|
+
data.tar.gz: f560d1c0898c6c250814e5d2d865f84a027ce0bac550105e692c76ddf745f98a30973713903996555631cfbd5c843f157aa2a37c7edc187b91846aff28a8ae34
|
data/bin/mosbot
CHANGED
|
@@ -20,28 +20,34 @@ type = 'doc'
|
|
|
20
20
|
id = '0'
|
|
21
21
|
|
|
22
22
|
# grab command line options
|
|
23
|
-
ARGV.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
23
|
+
if ARGV.empty?
|
|
24
|
+
type='help'
|
|
25
|
+
else
|
|
26
|
+
ARGV.each do |arg|
|
|
27
|
+
case arg
|
|
28
|
+
# parameter is a an id
|
|
29
|
+
when /^[0-9]+(\.)?([0-9])?/
|
|
30
|
+
id = arg
|
|
31
|
+
when "doc"
|
|
32
|
+
type = 'doc'
|
|
33
|
+
when "bug"
|
|
34
|
+
type = 'bug'
|
|
35
|
+
when "patch"
|
|
36
|
+
type = 'patch'
|
|
37
|
+
when "idea"
|
|
38
|
+
type = 'idea'
|
|
39
|
+
when "-o"
|
|
40
|
+
ENV['MOS_OPEN_URL']="true"
|
|
41
|
+
when "-c"
|
|
42
|
+
ENV['MOS_COPY_URL']="true"
|
|
43
|
+
when " ", "help", "-h", "--help", "/?"
|
|
44
|
+
type='help'
|
|
45
|
+
end
|
|
42
46
|
end
|
|
43
47
|
end
|
|
44
48
|
|
|
49
|
+
|
|
50
|
+
|
|
45
51
|
# constants
|
|
46
52
|
OS_CONST = os
|
|
47
53
|
MOS_COPY_URL = ENV['MOS_COPY_URL'] || "false"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mosbot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan Iverson
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-09-
|
|
12
|
+
date: 2018-09-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Use mosbot to generate URLs for MOS Docs, Bugs, Ideas and Patches.
|
|
15
15
|
email:
|