octopress 3.0.0.rc.21 → 3.0.0.rc.22

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: 1025c426a7234b22c9ab9ba7423c82d440b4c6b1
4
- data.tar.gz: a41487f1bb363f312c95f95ae80df407af318ba9
3
+ metadata.gz: 40768c60e9cab25b5233bcec62d459b32c75471d
4
+ data.tar.gz: 5b109ab755125ccd64708f453b00302afd907100
5
5
  SHA512:
6
- metadata.gz: c7ca12a98f4efb512503261146ec1e103a25c7c98c50c8f2fba5f8ee919c702394ab3f1f049e46c7cde63185a5d668b925c9b4e5fd7fa172a444b8f29d8e61f6
7
- data.tar.gz: 05960c19e462cc18f05a4f8aedf9152bbca604604698c457978d599dc3ced5c5aae9aacba84832ea64c773a7efaa6b60c4c85470d9fe512226527b6d2e1a3f93
6
+ metadata.gz: 0d96bad2fed52b8cc8926180361962afaa8a69da725fe6fb16756b7deeda6e99247786ddad00b1f59cb7d92a4a638c611129c5cada189aa69f30af0413002505
7
+ data.tar.gz: 87903feb5aa11d25d5fce8a775e20e9f466b9046d77b3e639c89fd2f4b0df21cf80b261b1d9c1071ab911c15269fcc3415b4a99b4ec398eed33e41dc4af55473
data/.clash.yml CHANGED
@@ -1,17 +1,20 @@
1
1
  -
2
2
  tasks:
3
3
  reset_site:
4
- - 'rm -rf _layouts _drafts _templates _posts _site pages site'
5
- - 'octopress new . --blank --force'
6
- - 'rm index.html'
7
- - 'echo "<div class=post>{{ page.title }}{{ content }}</div>" > _layouts/post.html'
8
- - 'echo "<div class=page>{{ page.title }}{{ content }}</div>" > _layouts/page.html'
4
+ - cleanup
5
+ - octopress new . --blank --force
6
+ - rm index.html
7
+ - echo "<div class=post>{{ page.title }}{{ content }}</div>" > _layouts/post.html
8
+ - echo "<div class=page>{{ page.title }}{{ content }}</div>" > _layouts/page.html
9
9
  new_draft:
10
- - 'octopress new draft "Some Cool Idea" --date "2014-03-10 15:20 -0000"'
10
+ - octopress new draft "Some Cool Idea" --date "2014-03-10 15:20 -0000"
11
11
  new_posts:
12
- - 'octopress new post "A random post" --date "2011-11-11 11:11 -0000"'
13
- - 'octopress new post "Another random post" --date "2012-11-11 11:11 -0000"'
14
- - 'octopress new post "This post is happy." --date "2013-11-11 11:11 -0000"'
12
+ - octopress new post "A random post" --date "2011-11-11 11:11 -0000"
13
+ - octopress new post "Another random post" --date "2012-11-11 11:11 -0000"
14
+ - octopress new post "This post is happy." --date "2013-11-11 11:11 -0000"
15
+ cleanup:
16
+ - echo "Cleaning up..."
17
+ - rm -rf _layouts _drafts _templates _posts _site pages site
15
18
 
16
19
  -
17
20
  title: Create a blank site
@@ -156,4 +159,6 @@
156
159
  - 'octopress integrate'
157
160
  compare:
158
161
  - _expected/integrate/_posts _posts
159
-
162
+ -
163
+ title: Cleanup
164
+ before: cleanup
@@ -1,12 +1,17 @@
1
1
  # Octopress Changelog
2
2
 
3
- ### 3.0.1 RC20 - 2014-12-12
3
+ ### 3.0.0 RC22 - 2014-12-13
4
4
 
5
- - Improved access to Jekyll site instance
5
+ - Docs integration improvements.
6
+ - Refactored and documented Jekyll site methods.
7
+
8
+ ### 3.0.0 RC21 - 2014-12-12
9
+
10
+ - Improved access to Jekyll site instance.
6
11
 
7
12
  ### 3.0.0 RC20 - 2014-12-11
8
13
 
9
- - Minor improvements to config management system
14
+ - Minor improvements to config management system.
10
15
 
11
16
  ### 3.0.0 RC19 - 2014-12-09
12
17
 
@@ -9,6 +9,7 @@ module Octopress
9
9
  require 'octopress/commands/publish'
10
10
  require 'octopress/commands/isolate'
11
11
  require 'octopress/isolate'
12
+ require 'octopress-docs'
12
13
 
13
14
  autoload :Page, 'octopress/page'
14
15
  autoload :Post, 'octopress/post'
@@ -40,23 +41,31 @@ module Octopress
40
41
  # Cache Jekyll's site
41
42
  #
42
43
  def self.site(options={})
43
- if !@site
44
- Jekyll.logger.log_level = :error
45
- @site = Jekyll::Site.new(configuration(options))
46
- Jekyll.logger.log_level = :info
47
- end
48
- @site
44
+ @site ||= read_site(options)
49
45
  end
50
46
 
51
- # Allow site to set
47
+ # Quietly read from Jekyll's site
48
+ #
49
+ def self.read_site(options={})
50
+ Jekyll.logger.log_level = :error
51
+ s = Jekyll::Site.new(configuration(options))
52
+ Jekyll.logger.log_level = :info
53
+ alias_site_title(s)
54
+ end
55
+
56
+ # Allow site to be set
52
57
  #
53
58
  def self.site=(site)
54
- # Octopress historically used site.title
55
- # This allows theme developers to expect site.name
56
- # in consistancy with Jekyll's scaffold config
57
- site.config['name'] ||= site.config['title']
59
+ @site = alias_site_title(site)
60
+ end
58
61
 
59
- @site = site
62
+ # Octopress historically used site.title
63
+ # This ensures we can all use site.name to be
64
+ # compatible with Jekyll's scaffold convention
65
+ #
66
+ def self.alias_site_title(site)
67
+ site.config['name'] ||= site.config['title']
68
+ site
60
69
  end
61
70
 
62
71
  def self.gem_dir(dir='')
@@ -73,12 +82,13 @@ module Octopress
73
82
  end
74
83
  end
75
84
 
76
- require 'octopress-docs'
77
-
78
85
  Octopress::Docs.add({
79
86
  name: "Octopress",
80
- base_url: "/octopress",
87
+ description: "A framework for writing Jekyll sites ",
88
+ base_url: "octopress",
81
89
  path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
90
+ source_url: "https://github.com/octopress/octopress",
91
+ website: "http://octopress.org"
82
92
  })
83
93
 
84
94
  Octopress.require_blessed_gems
@@ -1,3 +1,3 @@
1
1
  module Octopress
2
- VERSION = "3.0.0.rc.21"
2
+ VERSION = "3.0.0.rc.22"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc.21
4
+ version: 3.0.0.rc.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-12 00:00:00.000000000 Z
12
+ date: 2014-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mercenary
@@ -221,8 +221,6 @@ files:
221
221
  - test/_expected/publish-draft-date/_posts/2014-03-11-some-cool-idea.markdown
222
222
  - test/_expected/publish-draft-dir/_posts/ideas/2014-03-10-some-cool-idea.markdown
223
223
  - test/_expected/publish-draft/_posts/2014-03-10-some-cool-idea.markdown
224
- - test/_layouts/page.html
225
- - test/_layouts/post.html
226
224
  homepage: http://octopress.org
227
225
  licenses:
228
226
  - MIT
@@ -281,5 +279,3 @@ test_files:
281
279
  - test/_expected/publish-draft-date/_posts/2014-03-11-some-cool-idea.markdown
282
280
  - test/_expected/publish-draft-dir/_posts/ideas/2014-03-10-some-cool-idea.markdown
283
281
  - test/_expected/publish-draft/_posts/2014-03-10-some-cool-idea.markdown
284
- - test/_layouts/page.html
285
- - test/_layouts/post.html
@@ -1 +0,0 @@
1
- <div class=page>{{ page.title }}{{ content }}</div>
@@ -1 +0,0 @@
1
- <div class=post>{{ page.title }}{{ content }}</div>