nanoc-github 1.1.0 → 1.2.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 +1 -1
- data/lib/nanoc/github.rb +8 -6
- data/lib/nanoc/github/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afb108b0d578f6d653b8d08e95eb8878230acc6bb6b932dff06e9fa56cb644d6
|
4
|
+
data.tar.gz: b08c3c0bdcd1ca9ad02453476f337940534312e990f8ce1c27f80abea2183109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9a7a39000edb6d566fc9068928b82557c487924ea683cd4c7ce50ae3518fab1ac37e0b516ab7809b65d589f0091fd11aa1c7adf885810fef08d83589cd0697a
|
7
|
+
data.tar.gz: f6b44438b0e4d36b64cd0488a81ea8d7074027aafc8451995afbc95e7af57d38400075b2d4206aa79f68da27151acaa95b9347887506435a9ca81c769e93c323
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Nanoc::Github
|
2
2
|
|
3
|
-
|
3
|
+
[Nanoc](https://nanoc.ws) content source from git repository. A way to have your writing in public and open for editing while not being distracted
|
4
4
|
by static site generator trivia this content is usually mixed with.
|
5
5
|
|
6
6
|
## Usage
|
data/lib/nanoc/github.rb
CHANGED
@@ -65,12 +65,14 @@ module Nanoc
|
|
65
65
|
|
66
66
|
def items
|
67
67
|
@items ||= begin
|
68
|
-
repository_items
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
68
|
+
repository_items
|
69
|
+
.sort_by { |item| item[:name] }
|
70
|
+
.map { |item|
|
71
|
+
identifier = Nanoc::Identifier.new("/#{item[:name]}")
|
72
|
+
metadata, data = decode(item[:content])
|
73
|
+
|
74
|
+
new_item(data, metadata, identifier, checksum_data: item[:sha])
|
75
|
+
}
|
74
76
|
end
|
75
77
|
end
|
76
78
|
|
data/lib/nanoc/github/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc-github
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paweł Pacana
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nanoc
|
@@ -95,7 +95,7 @@ metadata:
|
|
95
95
|
source_code_uri: https://github.com/pawelpacana/nanoc-github
|
96
96
|
changelog_uri: https://github.com/pawelpacana/nanoc-github/releases
|
97
97
|
bug_tracker_uri: https://github.com/pawelpacana/nanoc-github/issues
|
98
|
-
post_install_message:
|
98
|
+
post_install_message:
|
99
99
|
rdoc_options: []
|
100
100
|
require_paths:
|
101
101
|
- lib
|
@@ -110,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
114
|
-
signing_key:
|
113
|
+
rubygems_version: 3.1.4
|
114
|
+
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: Nanoc content source from git repository
|
117
117
|
test_files: []
|