octopress-ink 1.0.0.rc.29 → 1.0.0.rc.30

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
  SHA1:
3
- metadata.gz: e38e29560f069cec7661d28c370c84cbd7d75dd8
4
- data.tar.gz: 5d1da51d9f5553c320dcadae6a5acbb3721ef915
3
+ metadata.gz: bcc51a1a453784cb3a90c6160d1cf153a78a0176
4
+ data.tar.gz: b7f07b207482ae30731e390493225a46293b3148
5
5
  SHA512:
6
- metadata.gz: 528bdf642e98127d79a00d808a0f2ae6c424b2994032e09529e3d6a42a6ccc1abeff6f61096596e6a839b95e800e1fdc26d2f0199c17cb6805f8360b23fc920c
7
- data.tar.gz: ecc263199a90a9f479e1d28d66ca1ed4b7c3c22ca9362fa057f5803e0f0ba48b03c3936041b5832fce611cd78981656c2aa1826697c47efcfd4c4f9a08fa317a
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
  [![Gem Version](https://badge.fury.io/rb/octopress-ink.png)](http://badge.fury.io/rb/octopress-ink)
6
6
  [![Build Status](https://travis-ci.org/octopress/ink.png?branch=master)](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
- For right now. Talk to me directly. I'd love help thinking
31
- through some of this stuff. Pretty soon, build a theme or a plugin and tell me what's broken.
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: "some_plugin",
112
- assets_path: File.expand_path(File.join(File.dirname(__FILE__), "../assets")),
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
@@ -10,6 +10,7 @@ require 'octopress-include-tag'
10
10
  require 'octopress-ink/version'
11
11
  require 'octopress-ink/configuration'
12
12
  require 'octopress-ink/jekyll/hooks'
13
+ require 'octopress-ink/tags/set_lang'
13
14
 
14
15
  module Octopress
15
16
  module Ink
@@ -48,7 +48,7 @@ module Octopress
48
48
  add_dependency
49
49
  add_plugin
50
50
  add_assets
51
- add_demo_files
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\/|demo\/|changelog|readme|license)/i)"
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
- config = "exclude:\n - Gemfile*\ngems:\n - #{@settings[:name]}"
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.add_demo_files
198
- demo_dir = File.join(@settings[:path], 'demo')
196
+ def self.add_test_files
197
+ test_dir = File.join(@settings[:path], 'test')
199
198
 
200
- dirs = %w{_layouts _posts}.map! do |d|
201
- File.join(demo_dir, d)
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(demo_dir, 'index.html')
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
- gemspec path: '../'
216
- HERE
208
+ FileUtils.touch File.join(test_dir, '_expected', 'index.html')
209
+ FileUtils.touch File.join(test_dir, 'index.html')
217
210
 
218
- write(gemfile_path, gemfile_content)
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
- config_path = File.join(demo_dir, '_config.yml')
221
- config_content = "exclude:\n - Gemfile*"
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
- write(config_path, config_content)
219
+ puts "#{action} #{index.sub("#{Dir.pwd}/", '')}"
224
220
  end
225
221
 
226
222
  def self.write(path, contents)
@@ -0,0 +1,4 @@
1
+ # A placeholder for smooth integration of Octopress Multilingual
2
+ unless defined? Octopress::Multilingual
3
+ Liquid::Template.register_tag('set_lang', Liquid::Block)
4
+ end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.29"
3
+ VERSION = "1.0.0.rc.30"
4
4
  end
5
5
  end
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.29
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-15 00:00:00.000000000 Z
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