create-discourse-plugin 0.2.0 → 0.3.0
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/lib/create-discourse-plugin.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c6e3bf27a2b800b349c8f30b2e8b8e81fc24220851e36a5bd1c87dab33b315e
|
4
|
+
data.tar.gz: 5ec9e8a268ca19ecaae431a324d4d948dbdb356abf4e40a8c81d4debc327d75e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 067110feec13eabe2acfb9dd43aacbb1f57d25abcb5bdaab62bc42e61a244905a4b498a68cc391e638379eaecb8e8c31e0d1cc60f76453ce7d3409cd30cd0580
|
7
|
+
data.tar.gz: cb3558b733dcad69d3886ec4d1646bf690f165dcec936ead991921815de053f63da226a44bc5cd5792bf14fdb908bb7cca169997d7e4553901c8e346ba5439c5
|
@@ -45,6 +45,16 @@ end
|
|
45
45
|
|
46
46
|
parser.parse!
|
47
47
|
|
48
|
+
if repo_name == plugin_name
|
49
|
+
puts 'do you want to add an org? [y/n], default is n'
|
50
|
+
org = gets.chomp
|
51
|
+
if org == 'y'
|
52
|
+
puts 'Enter the organization name:'
|
53
|
+
org_name = gets.chomp
|
54
|
+
repo_name = "#{org_name}/#{plugin_name}"
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
48
58
|
system "gh repo create #{repo_name} --template discourse/discourse-plugin-skeleton --#{visibility} --clone"
|
49
59
|
|
50
60
|
puts '🚂 Renaming directories...'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: create-discourse-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Grubba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Based on the Discourse plugin skeleton, this script creates a new plugin
|
14
14
|
with the provided name.
|