octopress-ink 1.0.0.rc.29 → 1.0.0.rc.30
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/CHANGELOG.md +4 -0
- data/README.md +9 -8
- data/assets/docs/creating-a-plugin.markdown +6 -4
- data/lib/octopress-ink.rb +1 -0
- data/lib/octopress-ink/commands/new.rb +19 -23
- data/lib/octopress-ink/tags/set_lang.rb +4 -0
- data/lib/octopress-ink/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcc51a1a453784cb3a90c6160d1cf153a78a0176
|
4
|
+
data.tar.gz: b7f07b207482ae30731e390493225a46293b3148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b68e8536e6a318709a44d7f3bb6f0da79f7c2290e9a4c69297c5822380d052e3de147a28b76ea6a7e1ef3a8fae7fb5eb9aa2ff7ec7126c116a783fadd8a5b32b
|
7
|
+
data.tar.gz: 2d84b28d13238dabdd81b20b4ebc2af87bba88e49220e52cc96f7d6db379a6c6664ec9e8d031c121fc309193ea48b45ff4263916482017b1598c2c9b6b3a3568
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 1.0.0 RC30 - 2015-01-22
|
4
|
+
|
5
|
+
- Added `set_lang` placeholder so plugins can easily integrate with [octopress-multilingual](https://github.com/octopress/multilingual).
|
6
|
+
|
3
7
|
### 1.0.0 RC29 - 2015-01-14
|
4
8
|
|
5
9
|
- Fixed path issues when writing stylesheet tags.
|
data/README.md
CHANGED
@@ -5,12 +5,6 @@ Use Ink to help you build themes and plugins for Jekyll.
|
|
5
5
|
[](http://badge.fury.io/rb/octopress-ink)
|
6
6
|
[](https://travis-ci.org/octopress/ink)
|
7
7
|
|
8
|
-
### Features
|
9
|
-
- Installing Ink plugins is easy.
|
10
|
-
- Users won't need to install or manage plugin assets.
|
11
|
-
- Jekyll will read your plugin's layouts, javascripts, stylesheets and more directly from your gem.
|
12
|
-
- Ink allows users to modify a theme or plugin by adding a modified version to source/_custom directory.
|
13
|
-
|
14
8
|
## Installation
|
15
9
|
|
16
10
|
Add this line to your application's Gemfile:
|
@@ -25,7 +19,14 @@ Or install it yourself as:
|
|
25
19
|
|
26
20
|
$ gem install octopress-ink
|
27
21
|
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
Usage is different for users and developers, and useful documentation requires more than a giant README. Docs will be posted with the launch of the new Octopress 3.0 site. In the mean time, you can browse the `assets/docs/` directory for a look at the documentation that's coming.
|
25
|
+
|
28
26
|
## Contributing
|
29
27
|
|
30
|
-
|
31
|
-
|
28
|
+
1. Fork it ( https://github.com/octopress/ink/fork )
|
29
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
30
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
31
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
32
|
+
5. Create new Pull Request
|
@@ -107,13 +107,15 @@ require 'lib/version'
|
|
107
107
|
require 'octopress-ink'
|
108
108
|
|
109
109
|
Octopress::Ink.add_plugin({
|
110
|
-
name: "Some Plugin"
|
111
|
-
slug: "
|
112
|
-
|
110
|
+
name: "Some Plugin",
|
111
|
+
slug: "some-plugin",
|
112
|
+
gem: "some-plugin",
|
113
|
+
path: File.expand_path(File.join(File.dirname(__FILE__), "..")),
|
113
114
|
type: "some_plugin",
|
114
115
|
version: SomePlugin::Version,
|
115
116
|
description: "",
|
116
|
-
website: ""
|
117
|
+
website: "",
|
118
|
+
source_url: ""
|
117
119
|
})
|
118
120
|
```
|
119
121
|
|
data/lib/octopress-ink.rb
CHANGED
@@ -48,7 +48,7 @@ module Octopress
|
|
48
48
|
add_dependency
|
49
49
|
add_plugin
|
50
50
|
add_assets
|
51
|
-
|
51
|
+
add_test_files
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
@@ -88,7 +88,7 @@ module Octopress
|
|
88
88
|
|
89
89
|
def self.fix_spec_files
|
90
90
|
@settings[:gemspec].sub! /(#{@settings[:spec_var]}\.files\s+=\s+)(.+)$/ do
|
91
|
-
$1+"`git ls-files -z`.split(\"\\x0\").grep(/^(bin\/|lib\/|assets\/|
|
91
|
+
$1+"`git ls-files -z`.split(\"\\x0\").grep(/^(bin\/|lib\/|assets\/|changelog|readme|license)/i)"
|
92
92
|
end.sub!(/\s*#{@settings[:spec_var]}\.test_files.+$/, '')
|
93
93
|
end
|
94
94
|
|
@@ -135,6 +135,7 @@ _site
|
|
135
135
|
minor_version = VERSION.scan(/\d+\.\d/)[0]
|
136
136
|
current_patch_version = VERSION.sub(/\.(alpha|rc).*/i, '')
|
137
137
|
d = "#{@settings[:spec_var]}.add_development_dependency \"octopress\"\n\n"
|
138
|
+
d = "#{@settings[:spec_var]}.add_development_dependency \"clash\"\n\n"
|
138
139
|
d += "#{@settings[:spec_var]}.add_runtime_dependency \"octopress-ink\", \"~> #{minor_version}\"\n"
|
139
140
|
end
|
140
141
|
|
@@ -158,9 +159,7 @@ _site
|
|
158
159
|
|
159
160
|
# Add Jekyll configuration file
|
160
161
|
#
|
161
|
-
|
162
|
-
path = File.join(@settings[:path], 'assets', 'config.yml')
|
163
|
-
write(path, config)
|
162
|
+
FileUtils.touch File.join(@settings[:path], 'assets', 'config.yml')
|
164
163
|
end
|
165
164
|
|
166
165
|
# New plugin uses a simple configuration hash
|
@@ -182,7 +181,7 @@ _site
|
|
182
181
|
name: "#{@settings[:module_name]}",
|
183
182
|
slug: "#{@settings[:type] == 'theme' ? 'theme' : @settings[:name]}",
|
184
183
|
gem: "#{@settings[:name]}",
|
185
|
-
path: File.expand_path(File.join(File.dirname(__FILE__), "
|
184
|
+
path: File.expand_path(File.join(File.dirname(__FILE__), "..")),
|
186
185
|
type: "#{@settings[:type]}",
|
187
186
|
version: #{@settings[:version]},
|
188
187
|
description: "", # What does your theme/plugin do?
|
@@ -194,33 +193,30 @@ website: "" # Optional project website
|
|
194
193
|
|
195
194
|
# Creates a blank Jekyll site for testing out a new plugin
|
196
195
|
#
|
197
|
-
def self.
|
198
|
-
|
196
|
+
def self.add_test_files
|
197
|
+
test_dir = File.join(@settings[:path], 'test')
|
199
198
|
|
200
|
-
dirs = %w{_layouts _posts}.map
|
201
|
-
File.join(
|
199
|
+
dirs = %w{_layouts _posts _expected}.map do |d|
|
200
|
+
File.join(test_dir, d)
|
202
201
|
end
|
203
202
|
|
204
203
|
create_empty_dirs dirs
|
205
204
|
|
206
|
-
index = File.join(
|
205
|
+
index = File.join(test_dir, 'index.html')
|
207
206
|
action = File.exist?(index) ? "exists".rjust(12).blue.bold : "create".rjust(12).green.bold
|
208
|
-
FileUtils.touch index
|
209
|
-
puts "#{action} #{index.sub("#{Dir.pwd}/", '')}"
|
210
|
-
|
211
|
-
gemfile_path = File.join(demo_dir, 'Gemfile')
|
212
|
-
gemfile_content = <<-HERE
|
213
|
-
source 'https://rubygems.org'
|
214
207
|
|
215
|
-
|
216
|
-
|
208
|
+
FileUtils.touch File.join(test_dir, '_expected', 'index.html')
|
209
|
+
FileUtils.touch File.join(test_dir, 'index.html')
|
217
210
|
|
218
|
-
|
211
|
+
config_path = File.join(test_dir, '_config.yml')
|
212
|
+
config_content = "gems:\n - #{@settings[:name]}"
|
213
|
+
write(config_path, config_content)
|
219
214
|
|
220
|
-
|
221
|
-
|
215
|
+
clash_path = File.join(test_dir, '.clash.yml')
|
216
|
+
clash_content = "title: Standard build\nbuild: true\ncompare: _expected _site"
|
217
|
+
write(clash_path, clash_content)
|
222
218
|
|
223
|
-
|
219
|
+
puts "#{action} #{index.sub("#{Dir.pwd}/", '')}"
|
224
220
|
end
|
225
221
|
|
226
222
|
def self.write(path, contents)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-ink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.rc.
|
4
|
+
version: 1.0.0.rc.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -195,6 +195,7 @@ files:
|
|
195
195
|
- lib/octopress-ink/plugins.rb
|
196
196
|
- lib/octopress-ink/tags.rb
|
197
197
|
- lib/octopress-ink/tags/javascript.rb
|
198
|
+
- lib/octopress-ink/tags/set_lang.rb
|
198
199
|
- lib/octopress-ink/tags/stylesheet.rb
|
199
200
|
- lib/octopress-ink/version.rb
|
200
201
|
homepage: https://github.com/octopress/ink
|