jekyll-staging 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/bin/stage +25 -25
- data/jekyll-staging.gemspec +1 -1
- metadata +18 -6
- checksums.yaml +0 -7
data/Gemfile.lock
CHANGED
data/bin/stage
CHANGED
@@ -36,37 +36,37 @@
|
|
36
36
|
|
37
37
|
# Load in configuration file, or ask and populate.
|
38
38
|
def read_or_ask_for_configuration
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
39
|
+
require 'yaml'
|
40
|
+
|
41
|
+
# Check we're in a Jekyll root directory.
|
42
|
+
jekyll_conf_file = File.join(Dir.pwd, '_config.yml')
|
43
|
+
if !File.exist?(jekyll_conf_file)
|
44
|
+
puts "Please run the stage command from your Jekyll site's root directory."
|
45
|
+
exit
|
46
|
+
end
|
47
|
+
|
48
|
+
# Look for config file in the current working directory.
|
49
|
+
conf_file = File.join(Dir.pwd, '.jekyll-stagingrc')
|
50
|
+
if File.exist?(conf_file)
|
51
|
+
YAML.load_file(conf_file)
|
52
|
+
else
|
53
|
+
conf = {}
|
54
|
+
print "Where is your Jekyll site located? (full path, '~' is ok) "
|
55
|
+
conf['jekyll_root'] = STDIN.gets.strip
|
56
|
+
print "Where are your drafts located? (full path, '~' is ok) "
|
57
|
+
conf['drafts_dir'] = STDIN.gets.strip
|
58
|
+
print "What file extension do you use for your drafts and posts? (no period) "
|
59
|
+
conf['file_extension'] = STDIN.gets.strip
|
60
|
+
File.open(conf_file, 'wb') { |f| f.write(YAML.dump(conf)) }
|
61
|
+
conf
|
62
|
+
end
|
63
63
|
end
|
64
64
|
|
65
65
|
|
66
66
|
configuration = read_or_ask_for_configuration
|
67
67
|
|
68
68
|
# Your Jekyll site's local root directory (it has the "_config.yml" file in it).
|
69
|
-
$jekyll_root
|
69
|
+
$jekyll_root = configuration['jekyll_root'].strip
|
70
70
|
|
71
71
|
# Wherever you keep your local in-progress drafts, outside of your Jekyll site.
|
72
72
|
$drafts_dir = configuration['drafts_dir'].strip
|
data/jekyll-staging.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-staging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Matt Gemmell
|
@@ -13,6 +14,7 @@ dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bundler
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :development
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: rake
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :development
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -57,25 +62,32 @@ files:
|
|
57
62
|
homepage: https://github.com/mattgemmell/Jekyll-Staging
|
58
63
|
licenses:
|
59
64
|
- MIT
|
60
|
-
metadata: {}
|
61
65
|
post_install_message:
|
62
66
|
rdoc_options: []
|
63
67
|
require_paths:
|
64
68
|
- lib
|
65
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
66
71
|
requirements:
|
67
|
-
- - '>='
|
72
|
+
- - ! '>='
|
68
73
|
- !ruby/object:Gem::Version
|
69
74
|
version: '0'
|
75
|
+
segments:
|
76
|
+
- 0
|
77
|
+
hash: 955245745967978630
|
70
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
71
80
|
requirements:
|
72
|
-
- - '>='
|
81
|
+
- - ! '>='
|
73
82
|
- !ruby/object:Gem::Version
|
74
83
|
version: '0'
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
hash: 955245745967978630
|
75
87
|
requirements: []
|
76
88
|
rubyforge_project:
|
77
|
-
rubygems_version:
|
89
|
+
rubygems_version: 1.8.24
|
78
90
|
signing_key:
|
79
|
-
specification_version:
|
91
|
+
specification_version: 3
|
80
92
|
summary: Stage and unstage draft posts in Jekyll.
|
81
93
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: d74d3f0315b7ebb1a323c30803583d65e7d86350
|
4
|
-
data.tar.gz: 376e454356e4352d0940aba35412539e77a82d77
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 24c7e96adf27cbc5e50b78ebb33818cb8b2bc987caeefc858176aeda19386815e3767e69fe8f03a49ee7f4906c18f129c697fe50d8ec2ad03d8aede12409b153
|
7
|
-
data.tar.gz: a3e1e1c4c019c7db2a2e41324bd3dfa69ea26fc5d7c4a70bdefc57f362c113c6285fa46ec67eb83176f34542d79f7fa10bc8913c2a2c17c068d81f8f631b14eb
|