usmu 1.4.3 → 1.4.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/.rspec +1 -0
- data/.ruby-version +1 -0
- data/README.md +2 -2
- data/bin/usmu +0 -0
- data/circle.yml +7 -0
- data/lib/usmu/template/layout.rb +13 -1
- data/lib/usmu/version.rb +1 -1
- data/usmu.gemspec +2 -1
- metadata +20 -5
- data/.travis.yml +0 -36
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b8b70c84c30cdcdd1b5e3bd4aaccf9393c1a815
|
|
4
|
+
data.tar.gz: 81de219aa3ac8c671606ebfe9b11d7e16707929f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6d9e4559b7ce3691e3b9e3d8e58b600e89e48c2ca746b43a71ced2096f94206e0938a9722b9f65121afdb88021b72be73c2258fa1814f1df68ae716b19cf2bd
|
|
7
|
+
data.tar.gz: 930086e119f6887041a56d4d05b3438be05f7ea341be22dd38bd512d97e2c357124f37d3ae506113ad51274dc1dbf1056323a136b82d54406f0889d6d8ed5ae6
|
data/.rspec
CHANGED
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.3.0@usmu
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# usmu
|
|
2
2
|
|
|
3
|
-
[](https://circleci.com/gh/usmu/usmu/tree/master)
|
|
4
4
|
[](https://gemnasium.com/usmu/usmu)
|
|
5
5
|
[](https://codeclimate.com/github/usmu/usmu)
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ As a baseline `usmu` will pull in Slim for layouts and Redcarpet for content wri
|
|
|
44
44
|
Tilt API to render all layouts and content, therefore you should be able to use anything supported by Tilt including
|
|
45
45
|
Sass, Less, Textile and [many others][tilt-support], you just need to ensure you have the correct gems installed.
|
|
46
46
|
|
|
47
|
-
If you want to further [configure the way your template's are processed][template-options] then you can specify
|
|
47
|
+
If you want to further [configure the way your template's are processed][template-options] then you can specify
|
|
48
48
|
configurations for each template engine. Just add it to your `usmu.yml`:
|
|
49
49
|
|
|
50
50
|
```yaml
|
data/bin/usmu
CHANGED
|
File without changes
|
data/circle.yml
ADDED
data/lib/usmu/template/layout.rb
CHANGED
|
@@ -187,7 +187,19 @@ module Usmu
|
|
|
187
187
|
#
|
|
188
188
|
# This is used to determine which settings to use from the configuration file.
|
|
189
189
|
def provider_name
|
|
190
|
-
Tilt.default_mapping.lazy_map[@type].select {|x| x[0] == template_class.name }.first
|
|
190
|
+
provider = Tilt.default_mapping.lazy_map[@type].select {|x| x[0] == template_class.name }.first
|
|
191
|
+
if provider
|
|
192
|
+
# Use the require path to choose out a name.
|
|
193
|
+
provider[1].split('/').last
|
|
194
|
+
else
|
|
195
|
+
# Approximate using class name if we can't track down a require path.
|
|
196
|
+
provider = template_class.name.split('::').last
|
|
197
|
+
if provider.end_with? 'Template'
|
|
198
|
+
provider[0..-9].downcase
|
|
199
|
+
else
|
|
200
|
+
provider.downcase
|
|
201
|
+
end
|
|
202
|
+
end
|
|
191
203
|
end
|
|
192
204
|
|
|
193
205
|
# @!attribute [r] content_path
|
data/lib/usmu/version.rb
CHANGED
data/usmu.gemspec
CHANGED
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
spec.test_files = spec.files.grep(%r{^(test-site|spec)/})
|
|
22
22
|
spec.require_paths = ['lib']
|
|
23
23
|
|
|
24
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.
|
|
24
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.2.0')
|
|
25
25
|
|
|
26
26
|
spec.add_dependency 'slim', '~> 3.0'
|
|
27
27
|
spec.add_dependency 'tilt', '~> 2.0'
|
|
@@ -34,6 +34,7 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
|
35
35
|
spec.add_development_dependency 'rake', '~> 10.0'
|
|
36
36
|
spec.add_development_dependency 'rspec', '~> 3.1'
|
|
37
|
+
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.2'
|
|
37
38
|
spec.add_development_dependency 'yard', '~> 0.8'
|
|
38
39
|
spec.add_development_dependency 'guard', '~> 2.8'
|
|
39
40
|
spec.add_development_dependency 'guard-rspec', '~> 4.3'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: usmu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew Scharley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-04-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: slim
|
|
@@ -150,6 +150,20 @@ dependencies:
|
|
|
150
150
|
- - "~>"
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
152
|
version: '3.1'
|
|
153
|
+
- !ruby/object:Gem::Dependency
|
|
154
|
+
name: rspec_junit_formatter
|
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
|
156
|
+
requirements:
|
|
157
|
+
- - "~>"
|
|
158
|
+
- !ruby/object:Gem::Version
|
|
159
|
+
version: '0.2'
|
|
160
|
+
type: :development
|
|
161
|
+
prerelease: false
|
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
+
requirements:
|
|
164
|
+
- - "~>"
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: '0.2'
|
|
153
167
|
- !ruby/object:Gem::Dependency
|
|
154
168
|
name: yard
|
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -260,7 +274,7 @@ extra_rdoc_files: []
|
|
|
260
274
|
files:
|
|
261
275
|
- ".gitignore"
|
|
262
276
|
- ".rspec"
|
|
263
|
-
- ".
|
|
277
|
+
- ".ruby-version"
|
|
264
278
|
- ".yardopts"
|
|
265
279
|
- CHANGELOG.md
|
|
266
280
|
- CONTRIBUTING.md
|
|
@@ -270,6 +284,7 @@ files:
|
|
|
270
284
|
- README.md
|
|
271
285
|
- Rakefile
|
|
272
286
|
- bin/usmu
|
|
287
|
+
- circle.yml
|
|
273
288
|
- lib/usmu.rb
|
|
274
289
|
- lib/usmu/collections.rb
|
|
275
290
|
- lib/usmu/configuration.rb
|
|
@@ -364,7 +379,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
364
379
|
requirements:
|
|
365
380
|
- - ">="
|
|
366
381
|
- !ruby/object:Gem::Version
|
|
367
|
-
version: 2.
|
|
382
|
+
version: 2.2.0
|
|
368
383
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
369
384
|
requirements:
|
|
370
385
|
- - ">="
|
|
@@ -372,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
372
387
|
version: '0'
|
|
373
388
|
requirements: []
|
|
374
389
|
rubyforge_project:
|
|
375
|
-
rubygems_version: 2.
|
|
390
|
+
rubygems_version: 2.5.1
|
|
376
391
|
signing_key:
|
|
377
392
|
specification_version: 4
|
|
378
393
|
summary: A static site generator with a web-based frontend for editing.
|
data/.travis.yml
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
sudo: required
|
|
2
|
-
dist: trusty
|
|
3
|
-
|
|
4
|
-
language: ruby
|
|
5
|
-
before_install:
|
|
6
|
-
# This was an attempt to get rbx working under trusty. Seems there's some sort of conflict with libssl going on.
|
|
7
|
-
#- sudo apt-get update && sudo apt-get install openssl libssl1.0.0 --yes
|
|
8
|
-
#- sudo apt-get --purge remove libssl1.0.0 --yes
|
|
9
|
-
#- sudo apt-get install libssl1.0.0 --yes
|
|
10
|
-
- gem install bundler
|
|
11
|
-
install: bundle install --jobs 3 --retry 3 --without mutant --path vendor/bundle
|
|
12
|
-
script: bundle exec rake ci
|
|
13
|
-
rvm:
|
|
14
|
-
- 2.3.0
|
|
15
|
-
- 2.2.4
|
|
16
|
-
- 2.1.8
|
|
17
|
-
- 2.0.0
|
|
18
|
-
- ruby-head
|
|
19
|
-
- rbx
|
|
20
|
-
matrix:
|
|
21
|
-
include:
|
|
22
|
-
- rvm: jruby
|
|
23
|
-
env: JRUBY_OPTS='--2.0'
|
|
24
|
-
- rvm: jruby-head
|
|
25
|
-
env: JRUBY_OPTS='--2.0'
|
|
26
|
-
allow_failures:
|
|
27
|
-
- rvm: jruby
|
|
28
|
-
- rvm: jruby-head
|
|
29
|
-
- rvm: rbx
|
|
30
|
-
addons:
|
|
31
|
-
code_climate:
|
|
32
|
-
repo_token: 5ac0735331c1749a461eae94f89cd2011cc001979f9941d7241f97caeff7bde1
|
|
33
|
-
|
|
34
|
-
cache:
|
|
35
|
-
directories:
|
|
36
|
-
- vendor
|