discourse_theme 0.3.3 → 0.3.4
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/.github/workflows/ci.yml +21 -0
- data/lib/discourse_theme/cli.rb +3 -4
- data/lib/discourse_theme/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8fd5f66fdfa679cb8f4dc50546a4a3bf968de6b4718f64bb3ac96c0bbd614eda
|
|
4
|
+
data.tar.gz: 9541e02e302a4d443c6a0c52b0a71b97aa1774c310c42f7f126a7940a7734615
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6c4a264ad197c92d762cf7b1e8f48fe60f865f6ea693ad0d52d4fd383a90465d3a81267804ab6af0f2c1d76852edb36198b6bb8bd99de38e3b30965bf7b2aeea
|
|
7
|
+
data.tar.gz: 315305cdd465294a7904d77031a3bc76666566cd85b1fb93ecf0f63ae0602b4598feea964d017a53271cbb5791b75f5abc9cf811a19ed9f3a5bc178232342a0c
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
tags:
|
|
8
|
+
- v*
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
publish:
|
|
12
|
+
if: contains(github.ref, 'refs/tags/v')
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v2
|
|
17
|
+
|
|
18
|
+
- name: Release Gem
|
|
19
|
+
uses: CvX/publish-rubygems-action@master
|
|
20
|
+
env:
|
|
21
|
+
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
data/lib/discourse_theme/cli.rb
CHANGED
|
@@ -93,11 +93,10 @@ module DiscourseTheme
|
|
|
93
93
|
|
|
94
94
|
if !theme || theme["component"] == false
|
|
95
95
|
options = {}
|
|
96
|
-
options["
|
|
97
|
-
options["
|
|
98
|
-
options["Do nothing"] = :none
|
|
96
|
+
options["Yes"] = :sync
|
|
97
|
+
options["No"] = :none
|
|
99
98
|
options = options.sort_by { |_, b| b == components.to_sym ? 0 : 1 }.to_h if components
|
|
100
|
-
choice = Cli.select('
|
|
99
|
+
choice = Cli.select('Would you like to update child theme components?', options.keys)
|
|
101
100
|
settings.components = components = options[choice].to_s
|
|
102
101
|
end
|
|
103
102
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: discourse_theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sam Saffron
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-04-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -172,6 +172,7 @@ executables:
|
|
|
172
172
|
extensions: []
|
|
173
173
|
extra_rdoc_files: []
|
|
174
174
|
files:
|
|
175
|
+
- ".github/workflows/ci.yml"
|
|
175
176
|
- ".gitignore"
|
|
176
177
|
- ".rubocop.yml"
|
|
177
178
|
- ".travis.yml"
|