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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd984944196f6054b8fd003d57caa00c57651f843112c2f16305be56e1ec8e4d
4
- data.tar.gz: 50435138314259aa25e3649663b695b5e0f52e3f12a7a278b70d3c513e8ea6bb
3
+ metadata.gz: afb108b0d578f6d653b8d08e95eb8878230acc6bb6b932dff06e9fa56cb644d6
4
+ data.tar.gz: b08c3c0bdcd1ca9ad02453476f337940534312e990f8ce1c27f80abea2183109
5
5
  SHA512:
6
- metadata.gz: 9dcbbff78cc680d767f444202bb501861372afd2bf1ba704ebc8ebcc8f3d2aa705d528ad09e8e204212921a771d0963288ff01ba33e6099b66599d3ad15653e0
7
- data.tar.gz: c4f2ba46b7c121bbe37fb04cb456e619d2dde881c68496a7d679a3471186635278f053983d1de56566aec67735c88a3dc0dd364c50e01d3463d2e53b3caaabf3
6
+ metadata.gz: c9a7a39000edb6d566fc9068928b82557c487924ea683cd4c7ce50ae3518fab1ac37e0b516ab7809b65d589f0091fd11aa1c7adf885810fef08d83589cd0697a
7
+ data.tar.gz: f6b44438b0e4d36b64cd0488a81ea8d7074027aafc8451995afbc95e7af57d38400075b2d4206aa79f68da27151acaa95b9347887506435a9ca81c769e93c323
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Nanoc::Github
2
2
 
3
- Content source from git repository. A way to have your writing in public and open for editing while not being distracted
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.map do |item|
69
- identifier = Nanoc::Identifier.new("/#{item[:name]}")
70
- metadata, data = decode(item[:content])
71
-
72
- new_item(data, metadata, identifier, checksum_data: item[:sha])
73
- end
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
 
@@ -1,5 +1,5 @@
1
1
  module Nanoc
2
2
  module Github
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
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.1.0
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: 2020-04-24 00:00:00.000000000 Z
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.0.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: []