rusic 1.6.0 → 1.7.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ab5769bcb8ad79b2a9baa1b455bb6c880112f00
4
- data.tar.gz: c6073f31f9d6fcba57177ce6a6de79fffec504d7
3
+ metadata.gz: d87c67426717e32bd6cfeafd4e32efedde0c5556
4
+ data.tar.gz: 2e6fa7d5bbfb5d46dace0356eac9e0d5b59134cf
5
5
  SHA512:
6
- metadata.gz: 4be5d6a7ab1d75d3cc0a945de406937914c178424e5b419bebd13db9839567f6efe70d7d603b03cec6ffa97d916cca2deea3f312be17a9f21001b6d833306fa7
7
- data.tar.gz: 1c845a55ba3df62b34ed9558de3c44a8c778e94b285d457e05439e69e8c0dbce6e9e44b3c77bfb3dc8ac1f7a756aa58eed7c17c982eca9b8bb0da26bfdb1b042
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
- <ul class="nav masthead-nav">
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>
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Rusic
2
- VERSION = "1.6.0"
2
+ VERSION = "1.7.0"
3
3
  end
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.6.0
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-06-30 00:00:00.000000000 Z
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.5
152
+ rubygems_version: 2.4.4
152
153
  signing_key:
153
154
  specification_version: 4
154
155
  summary: Generate and deploy themes to Rusic