jekyll_post_generator 0.1 → 0.12
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.
- data/.gitignore +0 -1
- data/.rvmrc +47 -0
- data/Changelog.markdown +5 -0
- data/bin/jp +6 -3
- data/lib/jepeto/version.rb +1 -1
- metadata +30 -20
data/.gitignore
CHANGED
data/.rvmrc
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
+
# development environment upon cd'ing into the directory
|
5
|
+
|
6
|
+
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
|
7
|
+
environment_id="ruby-1.9.2-p180@jepeto"
|
8
|
+
|
9
|
+
#
|
10
|
+
# First we attempt to load the desired environment directly from the environment
|
11
|
+
# file. This is very fast and efficicent compared to running through the entire
|
12
|
+
# CLI and selector. If you want feedback on which environment was used then
|
13
|
+
# insert the word 'use' after --create as this triggers verbose mode.
|
14
|
+
#
|
15
|
+
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
|
16
|
+
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then
|
17
|
+
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
18
|
+
else
|
19
|
+
# If the environment file has not yet been created, use the RVM CLI to select.
|
20
|
+
rvm --create use "$environment_id"
|
21
|
+
fi
|
22
|
+
|
23
|
+
#
|
24
|
+
# If you use an RVM gemset file to install a list of gems (*.gems), you can have
|
25
|
+
# it be automatically loaded. Uncomment the following and adjust the filename if
|
26
|
+
# necessary.
|
27
|
+
#
|
28
|
+
# filename=".gems"
|
29
|
+
# if [[ -s "$filename" ]] ; then
|
30
|
+
# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
|
31
|
+
# fi
|
32
|
+
|
33
|
+
#
|
34
|
+
# If you use bundler and would like to run bundle each time you enter the
|
35
|
+
# directory, you can uncomment the following code.
|
36
|
+
#
|
37
|
+
# # Ensure that Bundler is installed. Install it if it is not.
|
38
|
+
# if ! command -v bundle >/dev/null; then
|
39
|
+
# printf "The rubygem 'bundler' is not installed. Installing it now.\n"
|
40
|
+
# gem install bundler
|
41
|
+
# fi
|
42
|
+
#
|
43
|
+
# # Bundle while reducing excess noise.
|
44
|
+
# printf "Bundling your gems. This may take a few minutes on a fresh clone.\n"
|
45
|
+
# bundle | grep -v '^Using ' | grep -v ' is complete' | sed '/^$/d'
|
46
|
+
#
|
47
|
+
|
data/Changelog.markdown
ADDED
data/bin/jp
CHANGED
@@ -6,6 +6,9 @@ include Jepeto
|
|
6
6
|
unless Dir.exists?(Jepeto::POST_DIRECTORY)
|
7
7
|
if Dir.getwd.chomp("/").rpartition("/").last == Jepeto::POST_DIRECTORY
|
8
8
|
Dir.chdir("..")
|
9
|
+
else
|
10
|
+
$stderr.puts "ERROR: Unable to find the posts directory"
|
11
|
+
exit
|
9
12
|
end
|
10
13
|
end
|
11
14
|
|
@@ -36,13 +39,13 @@ begin
|
|
36
39
|
post = Jepeto::JekyllPost.new(options)
|
37
40
|
file = post.save!
|
38
41
|
rescue ArgumentError => error
|
39
|
-
puts error.message
|
42
|
+
puts "ERROR: " + error.message
|
40
43
|
exit
|
41
44
|
rescue RuntimeError => error
|
42
|
-
puts error.message
|
45
|
+
puts "ERROR: " + error.message
|
43
46
|
exit
|
44
47
|
rescue NameError => error
|
45
|
-
puts error.message
|
48
|
+
puts "ERROR: " + error.message
|
46
49
|
end
|
47
50
|
|
48
51
|
unless file.nil?
|
data/lib/jepeto/version.rb
CHANGED
metadata
CHANGED
@@ -1,26 +1,32 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_post_generator
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.1'
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: "0.12"
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Aziz Light
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
12
|
+
|
13
|
+
date: 2011-02-26 00:00:00 +01:00
|
13
14
|
default_executable:
|
14
15
|
dependencies: []
|
16
|
+
|
15
17
|
description: Generate jekyll posts painlessly
|
16
|
-
email:
|
18
|
+
email:
|
17
19
|
- aziiz.light+gem@gmail.com
|
18
|
-
executables:
|
20
|
+
executables:
|
19
21
|
- jp
|
20
22
|
extensions: []
|
23
|
+
|
21
24
|
extra_rdoc_files: []
|
22
|
-
|
25
|
+
|
26
|
+
files:
|
23
27
|
- .gitignore
|
28
|
+
- .rvmrc
|
29
|
+
- Changelog.markdown
|
24
30
|
- Gemfile
|
25
31
|
- LICENSE.markdown
|
26
32
|
- README.markdown
|
@@ -33,28 +39,32 @@ files:
|
|
33
39
|
- lib/jepeto/option_parser.rb
|
34
40
|
- lib/jepeto/version.rb
|
35
41
|
has_rdoc: true
|
36
|
-
homepage:
|
42
|
+
homepage: ""
|
37
43
|
licenses: []
|
44
|
+
|
38
45
|
post_install_message:
|
39
46
|
rdoc_options: []
|
40
|
-
|
47
|
+
|
48
|
+
require_paths:
|
41
49
|
- lib
|
42
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
43
51
|
none: false
|
44
|
-
requirements:
|
45
|
-
- -
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: "0"
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
57
|
none: false
|
50
|
-
requirements:
|
51
|
-
- -
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version:
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: "0"
|
54
62
|
requirements: []
|
63
|
+
|
55
64
|
rubyforge_project:
|
56
65
|
rubygems_version: 1.5.2
|
57
66
|
signing_key:
|
58
67
|
specification_version: 3
|
59
68
|
summary: Jekyll Post Generator
|
60
69
|
test_files: []
|
70
|
+
|