jektop 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +5 -5
- data/lib/jektop/version.rb +1 -1
- data/lib/jektop.rb +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e3d6bf8ed13e3b8ae6d89dc8fee6bc99fa7aa06
|
4
|
+
data.tar.gz: c69b2c89b4833c3840359d4fa1a70c197de5484e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52ac63ad48e4e3929222dd12e8aa9edb316e0ab57177f7f80666cdb8167ef1fe744baea1f45b9e5bd1312e9fd7a432eb2e30ee4bbe8ecc962199ad188632a052
|
7
|
+
data.tar.gz: 7617ad041c13a16d7445dc4d4c4b17b0edd4383226fd25081b1627fe9d721ef07cae79c881f20f2890c538a11f5960a0d7250d8c461f8c6b11c5206dcd547b20
|
data/README.md
CHANGED
@@ -20,11 +20,11 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
Using this gem is pretty simple
|
22
22
|
|
23
|
-
|
23
|
+
```ruby
|
24
24
|
require 'jektop'
|
25
25
|
|
26
|
-
Jektop.new("
|
27
|
-
|
26
|
+
Jektop.new("/home/USER/Jekyll/", "TITLE", "CATEGORIES", "My awesome post")
|
27
|
+
```
|
28
28
|
|
29
29
|
## Contributing
|
30
30
|
|
@@ -37,5 +37,5 @@ Jektop.new("LOCATION", "TITLE", "CATEGORIES", "YOUR POST")
|
|
37
37
|
## TODO
|
38
38
|
|
39
39
|
- Make Jekyll.get function
|
40
|
-
- with variables, exmample "categories", "post", "title", "date"
|
41
|
-
- and Jekyll.edit something like this
|
40
|
+
- with variables, exmample "categories", "post", "title", "date" etc.
|
41
|
+
- and Jekyll.edit something like this maybe?
|
data/lib/jektop/version.rb
CHANGED
data/lib/jektop.rb
CHANGED
@@ -12,11 +12,18 @@ module Jektop
|
|
12
12
|
|
13
13
|
def self.new(location, title_in, categories_in, post_in)
|
14
14
|
|
15
|
-
blog_location = location
|
16
15
|
title = title_in
|
17
16
|
categories = categories_in
|
18
17
|
post_text = post_in
|
19
18
|
|
19
|
+
|
20
|
+
h = location.length
|
21
|
+
if location[h-1,1] == "/"
|
22
|
+
blog_location = location
|
23
|
+
else
|
24
|
+
blog_location = location+"/"
|
25
|
+
end
|
26
|
+
|
20
27
|
date = Jektop::Date.give_date false
|
21
28
|
new_post = File.new("#{blog_location}#{date}-#{title}.markdown", "w")
|
22
29
|
|