octopress-ink 1.0.0.rc.59 → 1.0.0.rc.60
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/octopress-ink/commands/new.rb +9 -9
- data/lib/octopress-ink/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1b39d807c17defbef7baae3e06e18b2ef404b07
|
4
|
+
data.tar.gz: ee5353cb0f6a991a65443a6c2d97e43b13d1ffca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5565a6667bf7cc95a60579c3c04af79313b34ce4fc181499e7319d87811e97315b2054822284ae5080ef806d74f1ea5a1ea10e4f7496e15b3f0aaaaf61d19cc
|
7
|
+
data.tar.gz: 7818e810d8488cf56073839cd1a5591606b7d67a4c5c6b4513265280801aa1239572e3b17c9d768126c20520acd13cb027c5c62edfc7bb5cc1f41b540b0b2038
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 1.0.0 RC60 - 2015-04-24
|
4
|
+
- Fix: New plugin gemspec has a proper regex for adding files.
|
5
|
+
- Fix: Plugins created when passing --path option get proper correct names.
|
6
|
+
|
3
7
|
### 1.0.0 RC59 - 2015-03-27
|
4
8
|
- Fix: Properly clean asset cache during Jekyll watch.
|
5
9
|
|
@@ -26,21 +26,21 @@ module Octopress
|
|
26
26
|
gem_name = @options['name']
|
27
27
|
path_to_gem = File.join(path, gem_name)
|
28
28
|
|
29
|
-
if !
|
29
|
+
if !File.exist?(path)
|
30
30
|
raise "Directory not found: #{File.expand_path(path)}."
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
Dir.chdir(path) do
|
34
|
+
if Dir.exist?(gem_name) && !Dir["#{gem_name}/*"].empty?
|
35
|
+
raise "Directory not empty: #{File.expand_path(gem_name)}."
|
36
|
+
end
|
36
37
|
|
37
|
-
FileUtils.cd path do
|
38
38
|
name = gem_name.gsub(/-/,'_')
|
39
39
|
create_gem(name)
|
40
40
|
|
41
|
-
fix_name(
|
41
|
+
fix_name(gem_name) if name != gem_name
|
42
42
|
|
43
|
-
@settings = gem_settings(
|
43
|
+
@settings = gem_settings(gem_name)
|
44
44
|
@settings[:type] = @options['theme'] ? 'theme' : 'plugin'
|
45
45
|
|
46
46
|
fix_spec_files
|
@@ -53,7 +53,7 @@ module Octopress
|
|
53
53
|
|
54
54
|
def self.fix_name(path)
|
55
55
|
name = @options['name'].gsub(/-/,'_')
|
56
|
-
path = rename(
|
56
|
+
path = rename('./', name)
|
57
57
|
|
58
58
|
rename(path, "lib/#{name}")
|
59
59
|
|
@@ -87,7 +87,7 @@ module Octopress
|
|
87
87
|
|
88
88
|
def self.fix_spec_files
|
89
89
|
@settings[:gemspec].sub! /(#{@settings[:spec_var]}\.files\s+=\s+)(.+)$/ do
|
90
|
-
$1+"`git ls-files -z`.split(\"\\x0\").grep(
|
90
|
+
$1+"`git ls-files -z`.split(\"\\x0\").grep(%r{^(bin/|lib/|assets/|changelog|readme|license)}i)"
|
91
91
|
end.sub!(/\s*#{@settings[:spec_var]}\.test_files.+$/, '')
|
92
92
|
end
|
93
93
|
|
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.60
|
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-
|
11
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|