octopress-ink 1.0.0.rc.64 → 1.0.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
  SHA1:
3
- metadata.gz: 93a3f6f855a23b9c4099964745280119b1ee4156
4
- data.tar.gz: 9f4cae531d3031f96eee5dcae8b4316de3ef3718
3
+ metadata.gz: d332939b1e99df733a2015114dc931a31321a69c
4
+ data.tar.gz: 005708978626fc44397a64f46b459141ff87e6cc
5
5
  SHA512:
6
- metadata.gz: a266441f0d498495fcfff12088759b07b897a2fdaf1f1b0960cc8749634767245671cb1fac78e2c73d4b580fb60268153fa9284636541e4f91463e2a598a4b73
7
- data.tar.gz: d1373d2f316560872e6acde44cc909f1a066d395044ff07a24fa3a941a72bbec76aeb3fc783d8cc42d8b215159b1fbdb03db2223d8c298f55e3640e0b251b220
6
+ metadata.gz: ad20725197851910e57d4f1d3f929a947c8d122345969dffa50bb2559ad51e1fe6070d01a3cd98efc98e09e13c9ce581679f1c94cd2821bf7222c2710c6413e5
7
+ data.tar.gz: 0240e3c434ca6101c9b8ea35ebd6d85368ed188fcd40afb556d0c53abd34b41a4709377cd88adaf4f96eedc196d06a57643dd1f877a89615c0aa16433b1ae109
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0 - 2015-05-02
4
+ - Minor: Improved styling for Octopress Ink list command output.
5
+ - Minor: Fixed issue where changelog couldn't be processed by Octopress Docs.
6
+
3
7
  ### 1.0.0 RC64 - 2015-04-28
4
8
  - Minor: Improved bundler integration
5
9
  - Minor: Added short flags for ink list and ink copy subcommands.
@@ -32,8 +36,8 @@
32
36
  - Fix: Tags and categories would throw errors if tags were used but plugin
33
37
  didn't have tag/category templates installed.
34
38
  - Change: tag names:
35
- from {% tags %} -> {% tag_links %}
36
- from {% categories %} -> {% category_links %}
39
+ from `{% tags %}` -> `{% tag_links %}`
40
+ from `{% categories %}` -> `{% category_links %}`
37
41
 
38
42
  ### 1.0.0 RC55 - 2015-03-14
39
43
  - Added `ink_watch` site configuration, allowing plugin authors to add their plugin assets directory to Jekyll's watch list.
@@ -232,7 +236,7 @@ If a user installs octopress-multilingual, all pages will be replicated and filt
232
236
 
233
237
  ### 1.0.0 RC10 - 2014-06-26
234
238
 
235
- - Render tag does a better job of preserving {% raw %} escaped content.
239
+ - Render tag does a better job of preserving `{% raw %}` escaped content.
236
240
 
237
241
  ### 1.0.0 RC9 - 2014-06-21
238
242
 
data/lib/octopress-ink.rb CHANGED
@@ -74,6 +74,7 @@ module Octopress
74
74
  # plugin - A subclass of Plugin
75
75
  #
76
76
  def register_plugin(plugin, options={})
77
+ options['type'] ||= 'plugin'
77
78
  Plugins.register_plugin(plugin, options)
78
79
  end
79
80
 
@@ -14,7 +14,7 @@ module Octopress
14
14
  c.option "javascripts", "-j", "--javascripts", "#{action} only Javascripts (.js and .coffee)"
15
15
  c.option "js", "--js", "#{action} only Javascript files (.js)"
16
16
  c.option "coffee", "--coffee", "#{action} only Coffeescript files (.coffee)"
17
- c.option "images", "-img", "--images", "#{action} only images"
17
+ c.option "images", "-I", "--images", "#{action} only images"
18
18
  c.option "fonts", "--fonts", "#{action} only fonts"
19
19
  c.option "files", "--files", "#{action} only files"
20
20
  end
@@ -167,7 +167,11 @@ _site
167
167
  def self.add_simple_plugin(mod)
168
168
  mod = "#{@settings[:require_version]}\n"
169
169
  mod += "require 'octopress-ink'\n"
170
- mod += "\nOctopress::Ink.add_plugin({\n#{indent(plugin_config)}\n})\n"
170
+ if @settings[:type] == 'theme'
171
+ mod += "\nOctopress::Ink.add_theme({\n#{indent(plugin_config)}\n})\n"
172
+ else
173
+ mod += "\nOctopress::Ink.add_plugin({\n#{indent(plugin_config)}\n})\n"
174
+ end
171
175
  end
172
176
 
173
177
 
@@ -182,7 +186,6 @@ name: "#{@settings[:module_name]}",
182
186
  slug: "#{@settings[:type] == 'theme' ? 'theme' : @settings[:name]}",
183
187
  gem: "#{@settings[:name]}",
184
188
  path: File.expand_path(File.join(File.dirname(__FILE__), "..")),
185
- type: "#{@settings[:type]}",
186
189
  version: #{@settings[:version]},
187
190
  description: "", # What does your theme/plugin do?
188
191
  source_url: "https://github.com/user/project", # <- Update info
@@ -296,16 +296,16 @@ module Octopress
296
296
 
297
297
  case name
298
298
  when 'pages'
299
- header = "pages:".ljust(36) + "urls"
299
+ header = "pages:".ljust(36).bold + "urls"
300
300
  message << asset_list(assets.sort_by(&:file), header)
301
301
  when 'config-file'
302
- message << " config:\n"
302
+ message << " config:\n".bold
303
303
  message << Ink::Utils.pretty_print_yaml(@config)
304
304
  message << "\n"
305
305
 
306
306
  lang_config_hash.keys.each do |lang|
307
307
  message << "\n"
308
- message << " config_#{lang}:\n"
308
+ message << " config_#{lang}:\n".bold
309
309
  message << Ink::Utils.pretty_print_yaml(config(lang))
310
310
  end
311
311
 
@@ -325,7 +325,7 @@ module Octopress
325
325
  end
326
326
 
327
327
  def asset_list(assets, heading)
328
- list = " #{heading}:\n"
328
+ list = " #{heading}:\n".bold
329
329
  assets.each do |asset|
330
330
  list << "#{asset.info.rstrip}\n"
331
331
  end
@@ -334,11 +334,11 @@ module Octopress
334
334
  end
335
335
 
336
336
  def minimal_list
337
- message = " #{@name}"
338
- message += " (#{slug})"
339
- message += " - v#{@version}" if @version
337
+ message = "#{@name.bold}"
338
+ message += ", v#{@version}" if @version
339
+ message += " (slug: #{slug})"
340
340
  if @description && !@description.empty?
341
- message = "#{message.ljust(30)}\n#{@description}"
341
+ message = %Q{\n #{message.ljust(30)}\n "#{@description}"}
342
342
  end
343
343
  message += "\n"
344
344
  end
@@ -347,21 +347,21 @@ module Octopress
347
347
  list = assets_list(options)
348
348
  return '' if list.empty?
349
349
 
350
- name = "Plugin: #{@name}"
350
+ name = "Plugin: #{@name.bold}"
351
351
  name += " (theme)" if @type == 'theme'
352
352
  name += " - v#{@version}" if @version
353
353
  name = name
354
354
  message = name
355
355
  message += "\nSlug: #{slug}"
356
356
 
357
- if @description && !@description.empty?
358
- message += "\n#{@description}"
359
- end
360
-
361
357
  if @website && !@website.empty?
362
358
  message += "\n#{@website}"
363
359
  end
364
360
 
361
+ if @description && !@description.empty?
362
+ message += %Q{\n"#{@description}"}
363
+ end
364
+
365
365
  lines = ''
366
366
  80.times { lines += '=' }
367
367
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.64"
3
+ VERSION = "1.0.0"
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.64
4
+ version: 1.0.0
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-04-29 00:00:00.000000000 Z
11
+ date: 2015-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 3.0.0.rc
117
+ version: 3.0.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 3.0.0.rc
124
+ version: 3.0.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rake
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -279,9 +279,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
279
279
  version: '0'
280
280
  required_rubygems_version: !ruby/object:Gem::Requirement
281
281
  requirements:
282
- - - ">"
282
+ - - ">="
283
283
  - !ruby/object:Gem::Version
284
- version: 1.3.1
284
+ version: '0'
285
285
  requirements: []
286
286
  rubyforge_project:
287
287
  rubygems_version: 2.4.6