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

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: cb5a0fff7675e6e4fb71daeb25bdc9182ba46733
4
- data.tar.gz: 7f7b16f0b24ed3950c4a443d78f9014d68d26814
3
+ metadata.gz: e38e29560f069cec7661d28c370c84cbd7d75dd8
4
+ data.tar.gz: 5d1da51d9f5553c320dcadae6a5acbb3721ef915
5
5
  SHA512:
6
- metadata.gz: b42fa1b59613766cc22f41186cad54981c8dd261273e53e1bc69400b08c5a0d59ef9772ecfe71ae06ce64dbc91271525d3cacb54d72457015d97565ca88db4a2
7
- data.tar.gz: 19dd65c91260292c6a6912ef3a633eb3b687100f9f26b4a58b15d761b66e8d468c93ba3c8ace4da7723e9924ac74fef24cfb9ee99427fc022c36655734117ca3
6
+ metadata.gz: 528bdf642e98127d79a00d808a0f2ae6c424b2994032e09529e3d6a42a6ccc1abeff6f61096596e6a839b95e800e1fdc26d2f0199c17cb6805f8360b23fc920c
7
+ data.tar.gz: ecc263199a90a9f479e1d28d66ca1ed4b7c3c22ca9362fa057f5803e0f0ba48b03c3936041b5832fce611cd78981656c2aa1826697c47efcfd4c4f9a08fa317a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ### 1.0.0 RC27 - 2015-01-14
3
+ ### 1.0.0 RC29 - 2015-01-14
4
+
5
+ - Fixed path issues when writing stylesheet tags.
6
+
7
+ ### 1.0.0 RC28 - 2015-01-14
4
8
 
5
9
  - Minified javascripts (whatever.min.js) are not re-compressed and are added first in the builds
6
10
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  title: "Create an Octopress Ink Plugin"
3
- permalink: /guides/creating-a-plugin/
3
+ permalink: /ink/creating-a-plugin/
4
4
  ---
5
5
 
6
6
  *This guide assumes you have already installed Git, and have Ruby 1.9.3 or greater.*
@@ -17,6 +17,7 @@ require "octopress-ink"
17
17
  Octopress::Ink.add_plugin({
18
18
  name: "My Plugin",
19
19
  slug: "my-plugin",
20
+ gem: "my-plugin",
20
21
  path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
21
22
  type: "plugin",
22
23
 
@@ -35,6 +36,7 @@ The configuration options are as follows.
35
36
  | name | The display name for your plugin, e.g. "My Plugin" |
36
37
  | path | Path to your plugin's root directory |
37
38
  | slug | Optional: The slug is how users will reference your plugin, (Default: sluggified name) |
39
+ | gem | Optional: This is displayed in plugin info and on the local docs site. |
38
40
  | type | Optional: "plugin" or "theme" (Default: "plugin") |
39
41
  | version | Optional: Version will be displayed with plugin info |
40
42
  | description | Optional: Description will be displayed with plugin info |
@@ -14,7 +14,7 @@ module Octopress
14
14
  end
15
15
 
16
16
  def tag
17
- "<link href='#{Filters.expand_url(File.join(dir, file))}' media='#{@media}' rel='stylesheet' type='text/css'>"
17
+ "<link href='#{Filters.expand_url(File.join(dir, output_file_name))}' media='#{@media}' rel='stylesheet' type='text/css'>"
18
18
  end
19
19
 
20
20
  def add
@@ -43,7 +43,7 @@ module Octopress
43
43
  end
44
44
 
45
45
  def destination
46
- File.join(base, plugin.slug, file.sub(/@(.+?)\./,'.').sub(/s.ss/, 'css'))
46
+ File.join(base, plugin.slug, output_file_name)
47
47
  end
48
48
 
49
49
  private
@@ -71,6 +71,9 @@ module Octopress
71
71
  file.sub(ext, alt_ext)
72
72
  end
73
73
 
74
+ def output_file_name
75
+ file.sub(/@/,'-').sub(/s.ss/, 'css')
76
+ end
74
77
  end
75
78
  end
76
79
  end
@@ -27,7 +27,7 @@ module Octopress
27
27
  end
28
28
 
29
29
  def tag
30
- "<link href='#{Filters.expand_url(File.join(dir, file))}' media='#{media}' rel='stylesheet' type='text/css'>"
30
+ "<link href='#{Filters.expand_url(File.join(dir, output_file_name))}' media='#{media}' rel='stylesheet' type='text/css'>"
31
31
  end
32
32
 
33
33
  def add
@@ -38,7 +38,11 @@ module Octopress
38
38
  private
39
39
 
40
40
  def destination
41
- File.join(base, plugin.slug, file.sub(/@(.+?)\./,'.'))
41
+ File.join(base, plugin.slug, output_file_name)
42
+ end
43
+
44
+ def output_file_name
45
+ file.sub(/@/,'-')
42
46
  end
43
47
  end
44
48
  end
@@ -381,7 +381,7 @@ module Octopress
381
381
  def find_assets(dir)
382
382
  full_dir = File.join(@assets_path, dir)
383
383
  glob_assets(full_dir).map do |file|
384
- file.sub(full_dir+'/', '')
384
+ file.sub(File.join(full_dir, ''), '')
385
385
  end
386
386
  end
387
387
 
@@ -144,7 +144,7 @@ module Octopress
144
144
  end
145
145
 
146
146
  def self.combine_no_compress_javascripts
147
- @combined_no_compress_javascripts ||= combine_js(no_compress_js)
147
+ @combined_no_compress_javascripts ||= combine_js(no_compress_js) || ''
148
148
  end
149
149
 
150
150
  def self.combine_js(files)
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.28"
3
+ VERSION = "1.0.0.rc.29"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-ink
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.28
4
+ version: 1.0.0.rc.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis