rusic 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/rusic/cli.rb +2 -2
- data/lib/rusic/generators/theme.rb +5 -0
- data/lib/rusic/templates/layouts/subdomain.html.liquid +1 -4
- data/lib/rusic/templates/snippets/navigation.html.liquid +14 -0
- data/lib/rusic/theme_file.rb +1 -1
- data/lib/rusic/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d87c67426717e32bd6cfeafd4e32efedde0c5556
|
4
|
+
data.tar.gz: 2e6fa7d5bbfb5d46dace0356eac9e0d5b59134cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f5b8fcea83848985c0f74f1cc2d02070082feb607eb196f3d99ccd72e23aafe2bd622a615f9d0c57983475ef7bba60875e6a13caec7cd3555b713b2cca9451c
|
7
|
+
data.tar.gz: eb4b19794dc042a8119d914e283e71d422a7166449976d5e0be41f93722b28429e69f3807a23ff8565cec9e1ec220595eeb6660ebfcc0e10e2c806d21669553c
|
data/README.md
CHANGED
@@ -56,6 +56,8 @@ create competition-theme/ideas/show.html.liquid
|
|
56
56
|
create competition-theme/ideas/edit.html.liquid
|
57
57
|
create competition-theme/pages
|
58
58
|
create competition-theme/pages/about.html.liquid
|
59
|
+
create competition-theme/snippets
|
60
|
+
create competition-theme/snippets/navigation.html.liquid
|
59
61
|
create competition-theme/assets
|
60
62
|
create competition-theme/assets/bootstrap.css
|
61
63
|
create competition-theme/assets/bootstrap.js
|
@@ -95,6 +97,7 @@ Saved ideas/index.html.liquid
|
|
95
97
|
Saved ideas/new.html.liquid
|
96
98
|
Saved ideas/show.html.liquid
|
97
99
|
Saved pages/about.html.liquid
|
100
|
+
Saved snippets/navigation.html.liquid
|
98
101
|
Saved assets/bootstrap.css
|
99
102
|
Saved assets/bootstrap.js
|
100
103
|
Saved assets/cover.css
|
data/lib/rusic/cli.rb
CHANGED
@@ -20,13 +20,13 @@ module Rusic
|
|
20
20
|
path = Pathname.new(Dir.pwd)
|
21
21
|
files = []
|
22
22
|
|
23
|
-
files << Dir.glob(path.join('{layouts,ideas,pages,participant}', '*.liquid'))
|
23
|
+
files << Dir.glob(path.join('{layouts,ideas,pages,participant,snippets,mailers}', '*.liquid'))
|
24
24
|
files << Dir.glob(path.join('assets', '*.*'))
|
25
25
|
files << Dir.glob(path.join('attributes.{yml,yaml}'))
|
26
26
|
|
27
27
|
files.flatten!
|
28
28
|
if options['watch']
|
29
|
-
FileWatcher.new(%w[layouts/ ideas/ pages/ assets/ participant/ attributes.yml]).watch(0.5) do |file, event|
|
29
|
+
FileWatcher.new(%w[layouts/ ideas/ pages/ assets/ participant/ attributes.yml snippets/ mailers/]).watch(0.5) do |file, event|
|
30
30
|
unless event == :delete
|
31
31
|
deployer = Rusic::Deployer.new(file)
|
32
32
|
deployer.upload_files(deploy_options_for(env))
|
@@ -42,6 +42,11 @@ module Rusic
|
|
42
42
|
copy_file('templates/pages/about.html.liquid', "#{name}/pages/about.html.liquid")
|
43
43
|
end
|
44
44
|
|
45
|
+
def snippets
|
46
|
+
empty_directory("#{name}/snippets")
|
47
|
+
copy_file('templates/snippets/navigation.html.liquid', "#{name}/snippets/navigation.html.liquid")
|
48
|
+
end
|
49
|
+
|
45
50
|
def assets
|
46
51
|
empty_directory("#{name}/assets")
|
47
52
|
copy_file('templates/assets/bootstrap.css', "#{name}/assets/bootstrap.css")
|
@@ -35,10 +35,7 @@
|
|
35
35
|
<div class="masthead clearfix">
|
36
36
|
<div class="inner">
|
37
37
|
<h3 class="masthead-brand">Rusic theme</h3>
|
38
|
-
|
39
|
-
<li class="active"><a href="{{ space.permalink }}">All ideas</a></li>
|
40
|
-
<li><a href="{{ space.permalink }}/pages/about">About</a></li>
|
41
|
-
</ul>
|
38
|
+
{% include 'navigation' %}
|
42
39
|
</div>
|
43
40
|
</div>
|
44
41
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!--
|
2
|
+
snippets/navigation.html.liquid
|
3
|
+
|
4
|
+
This template is a custom snippet that can be included into other liquid templates.
|
5
|
+
It has all the same liquid functionality of the other templates but you can create
|
6
|
+
as many of them as you want.
|
7
|
+
|
8
|
+
The contents of this template are rendered where `include` is
|
9
|
+
called. See http://developer.rusic.com/ for more details.
|
10
|
+
-->
|
11
|
+
<ul class="nav masthead-nav">
|
12
|
+
<li class="active"><a href="{{ space.permalink }}">All ideas</a></li>
|
13
|
+
<li><a href="{{ space.permalink }}/pages/about">About</a></li>
|
14
|
+
</ul>
|
data/lib/rusic/theme_file.rb
CHANGED
@@ -10,7 +10,7 @@ module Rusic
|
|
10
10
|
|
11
11
|
def uploader
|
12
12
|
case "#{dirname.basename}"
|
13
|
-
when 'layouts', 'ideas', 'pages', 'participant'
|
13
|
+
when 'layouts', 'ideas', 'pages', 'participant', 'snippets', 'mailers'
|
14
14
|
uploader = Uploaders::Template.new(self)
|
15
15
|
when 'assets'
|
16
16
|
case extname
|
data/lib/rusic/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rusic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Mytton
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-
|
14
|
+
date: 2015-07-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: thor
|
@@ -120,6 +120,7 @@ files:
|
|
120
120
|
- lib/rusic/templates/ideas/show.html.liquid
|
121
121
|
- lib/rusic/templates/layouts/subdomain.html.liquid
|
122
122
|
- lib/rusic/templates/pages/about.html.liquid
|
123
|
+
- lib/rusic/templates/snippets/navigation.html.liquid
|
123
124
|
- lib/rusic/theme_file.rb
|
124
125
|
- lib/rusic/uploaders/asset.rb
|
125
126
|
- lib/rusic/uploaders/base.rb
|
@@ -148,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
149
|
version: '0'
|
149
150
|
requirements: []
|
150
151
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.4.
|
152
|
+
rubygems_version: 2.4.4
|
152
153
|
signing_key:
|
153
154
|
specification_version: 4
|
154
155
|
summary: Generate and deploy themes to Rusic
|