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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4611f1736644528737b0ffbca715cb87d68d089e
4
- data.tar.gz: d2fdf86cb9daea1637f8476c8fa73b9f9475a474
3
+ metadata.gz: d1b39d807c17defbef7baae3e06e18b2ef404b07
4
+ data.tar.gz: ee5353cb0f6a991a65443a6c2d97e43b13d1ffca
5
5
  SHA512:
6
- metadata.gz: 513dc21b654d6e56bff909b52d02f029c16d4417ad546ac6a09774f5a24db93947b9a306dba1fd83832e72bb03a955fc1fc9c3f1254657d8dec45e6681877311
7
- data.tar.gz: 11a727bd599fce97c1d9e02d0428cccf541f694e7e6181a0bf35ef3a915b545ad85562c5a8af22df6799e8006db73a81e9f5900e27641dbb316a24c57778c278
6
+ metadata.gz: e5565a6667bf7cc95a60579c3c04af79313b34ce4fc181499e7319d87811e97315b2054822284ae5080ef806d74f1ea5a1ea10e4f7496e15b3f0aaaaf61d19cc
7
+ data.tar.gz: 7818e810d8488cf56073839cd1a5591606b7d67a4c5c6b4513265280801aa1239572e3b17c9d768126c20520acd13cb027c5c62edfc7bb5cc1f41b540b0b2038
@@ -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 !Dir.exist?(path)
29
+ if !File.exist?(path)
30
30
  raise "Directory not found: #{File.expand_path(path)}."
31
31
  end
32
32
 
33
- if !Dir["#{path_to_gem}/*"].empty?
34
- raise "Directory not empty: #{File.expand_path(path_to_gem)}."
35
- end
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(path) if name != gem_name
41
+ fix_name(gem_name) if name != gem_name
42
42
 
43
- @settings = gem_settings(path_to_gem)
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(path, name)
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(/^(bin\/|lib\/|assets\/|changelog|readme|license)/i)"
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
 
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.59"
3
+ VERSION = "1.0.0.rc.60"
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.59
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-21 00:00:00.000000000 Z
11
+ date: 2015-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll