drjekyll 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -14
- data/lib/drjekyll/catalog.rb +18 -10
- data/lib/drjekyll/package.rb +10 -2
- data/lib/drjekyll/version.rb +3 -3
- metadata +5 -6
- data/.gemtest +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eaac272c1c8652c5df6722013da846a41aa7e285
|
4
|
+
data.tar.gz: fe1f4e9d2a053109f34c394ed3ddd4ceca2c2216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0594f47e55c45c42cd0f9948350f0039cb12ccab9599257008294608a5d7afaa4314859a3a807e71b22f8688ee9c93820048076eed08a694b8fc7966131adb57
|
7
|
+
data.tar.gz: 064ad16d1851eb517712d99259e1187e8ee7e3cb2a71272c1e0ef24e5a23285885c5e870d285a08fb9075c707f6233da88f0736e49c3e4700184928af5d9d7a8
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ SYNOPSIS
|
|
30
30
|
drjekyll/drj [global options] command [command options] [arguments...]
|
31
31
|
|
32
32
|
VERSION
|
33
|
-
|
33
|
+
1.0.0
|
34
34
|
|
35
35
|
GLOBAL OPTIONS
|
36
36
|
--help - Show this message
|
@@ -49,7 +49,7 @@ COMMANDS
|
|
49
49
|
|
50
50
|
### Commands
|
51
51
|
|
52
|
-
[List Themes](#list-themes-command---list-ls-l) •
|
52
|
+
[List Themes](#list-themes-command---list-ls-l) •
|
53
53
|
[New Theme](#new-theme-command---new-n)
|
54
54
|
|
55
55
|
|
@@ -67,14 +67,15 @@ $ drj l
|
|
67
67
|
Resulting in:
|
68
68
|
|
69
69
|
```
|
70
|
-
1..
|
71
|
-
2..
|
72
|
-
3..
|
73
|
-
4..
|
74
|
-
5..
|
75
|
-
6..Poole
|
76
|
-
7..Poole's
|
77
|
-
8..
|
70
|
+
1..Henry's Hello, Jekyll! (hello | hellojekyll | henryshellojekyll) by Gerald Bauer - #white #starter
|
71
|
+
2..Henry's Starter (starter | henrysstarter) by Gerald Bauer - #white #starter
|
72
|
+
3..Henry's Minimal (minimial | henrysminimal) by Gerald Bauer - #white #minimal #starter
|
73
|
+
4..Henry's Bootstrap (bootstrap | henrysbootstrap) by Gerald Bauer - #bootstrap #scss #white #starter
|
74
|
+
5..Henry's Classics Book (classics | henrysclassicsbook) by Gerald Bauer - #books #white
|
75
|
+
6..Poole (poole) by Mark Otto - #poole
|
76
|
+
7..Poole's Hyde (hyde | pooleshyde) by Mark Otto - #poole
|
77
|
+
8..Poole's Lanyon (lanyon | pooleslanyon) by Mark Otto - #poole
|
78
|
+
9..Beautiful Jekyll (beautifuljekyll) by Dean Attali
|
78
79
|
...
|
79
80
|
```
|
80
81
|
|
@@ -91,8 +92,8 @@ Resulting in:
|
|
91
92
|
|
92
93
|
```
|
93
94
|
68..Resume Cards (resumecards) by Elle Kasai - #resume
|
94
|
-
104..iCard Resume (icardresume) by Dong Liang - #resume
|
95
|
-
109..Resume (resume) by Joel Glovier - #resume
|
95
|
+
104..iCard Resume (icardresume) by Dong Liang - #resume
|
96
|
+
109..Resume (resume) by Joel Glovier - #resume
|
96
97
|
```
|
97
98
|
|
98
99
|
|
@@ -115,7 +116,7 @@ unzip the archive into the `./starter` folder.
|
|
115
116
|
To download and install (unzip/unpack):
|
116
117
|
|
117
118
|
```
|
118
|
-
7..Poole's Lanyon (lanyon | pooleslanyon) by Mark Otto - #poole
|
119
|
+
7..Poole's Lanyon (lanyon | pooleslanyon) by Mark Otto - #poole
|
119
120
|
```
|
120
121
|
|
121
122
|
Use:
|
@@ -171,4 +172,3 @@ Use it as you please with no restrictions whatsoever.
|
|
171
172
|
|
172
173
|
Send them along to the [wwwmake forum](http://groups.google.com/group/wwwmake).
|
173
174
|
Thanks!
|
174
|
-
|
data/lib/drjekyll/catalog.rb
CHANGED
@@ -35,14 +35,22 @@ class Catalog
|
|
35
35
|
slug = name.downcase.gsub( /[^a-z0-9]/, '' )
|
36
36
|
|
37
37
|
## for quick testing add some shortcuts
|
38
|
-
|
38
|
+
## -- add Henry's Hello, Minima! (henryshellominima) too - why? why not?
|
39
|
+
if slug == 'henryshellojekyll'
|
40
|
+
keys << 'hello'
|
41
|
+
keys << 'hellojekyll'
|
42
|
+
if slug == 'henrysstarterminimal' || slug == 'henrysstarter'
|
39
43
|
keys << 'starter'
|
40
|
-
elsif slug == '
|
44
|
+
elsif slug == 'henrysminimal'
|
41
45
|
keys << 'minimial'
|
42
|
-
elsif slug == '
|
46
|
+
elsif slug == 'henrysbootstrap'
|
43
47
|
keys << 'bootstrap'
|
44
|
-
elsif slug == '
|
48
|
+
elsif slug == 'henrysclassicsbook'
|
45
49
|
keys << 'classics'
|
50
|
+
elsif slug == 'pooleshyde'
|
51
|
+
keys << 'hyde'
|
52
|
+
elsif slug == 'pooleslanyon'
|
53
|
+
keys << 'lanyon'
|
46
54
|
else
|
47
55
|
end
|
48
56
|
keys << slug
|
@@ -51,16 +59,17 @@ class Catalog
|
|
51
59
|
end
|
52
60
|
end
|
53
61
|
|
62
|
+
|
54
63
|
def convert( themes )
|
55
64
|
## see scripts in drjekyllthemes/build repo
|
56
65
|
## todo/fix: use this class/code here in build script too - do NOT duplicate
|
57
|
-
|
58
|
-
## build hash with themes by title
|
66
|
+
|
67
|
+
## build hash with themes by title
|
59
68
|
hash = {}
|
60
69
|
|
61
70
|
themes.each do |theme|
|
62
71
|
title = theme.delete( 'title' ) ## remove title from hash and use as new key
|
63
|
-
|
72
|
+
|
64
73
|
## unify
|
65
74
|
## check for github shortcut
|
66
75
|
github = theme.delete( 'github' )
|
@@ -130,11 +139,10 @@ class Catalog
|
|
130
139
|
break
|
131
140
|
end
|
132
141
|
end
|
133
|
-
|
142
|
+
|
134
143
|
theme
|
135
144
|
end
|
136
|
-
|
145
|
+
|
137
146
|
end # class Catalog
|
138
147
|
|
139
148
|
end # module DrJekyll
|
140
|
-
|
data/lib/drjekyll/package.rb
CHANGED
@@ -5,6 +5,15 @@ module DrJekyll
|
|
5
5
|
class Package
|
6
6
|
|
7
7
|
def initialize( key, hash ) ## note: for now pass in key as its own arg (not part/included in hash)
|
8
|
+
|
9
|
+
## fix/todo: change key to name - why? why not?
|
10
|
+
## always downcase key - why? why not?
|
11
|
+
## convert github e.g owner/repo to ownner--I--repo -- why? why not?
|
12
|
+
## do NOT pass in hash - just pass in download_url
|
13
|
+
##
|
14
|
+
## add self.from_github ??? builder/ctor - why? why not?
|
15
|
+
## add self.from_hash ??? builder/ctor - why? why not?
|
16
|
+
|
8
17
|
@key = key
|
9
18
|
@hash = hash
|
10
19
|
|
@@ -41,7 +50,7 @@ class Package
|
|
41
50
|
def unzip( unzip_dir )
|
42
51
|
src = local_zip_path
|
43
52
|
dest_unzip = unzip_dir ## local_unzip_dir
|
44
|
-
|
53
|
+
|
45
54
|
## check if folders exists? if not create folder in path
|
46
55
|
FileUtils.mkdir_p( dest_unzip ) unless Dir.exists?( dest_unzip )
|
47
56
|
unzip_theme( src, dest_unzip )
|
@@ -84,4 +93,3 @@ private
|
|
84
93
|
end # class Package
|
85
94
|
|
86
95
|
end # module DrJekyll
|
87
|
-
|
data/lib/drjekyll/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drjekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: props
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '3.
|
103
|
+
version: '3.15'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '3.
|
110
|
+
version: '3.15'
|
111
111
|
description: drjekyll - the missing static site theme package manager
|
112
112
|
email: wwwmake@googlegroups.com
|
113
113
|
executables:
|
@@ -119,7 +119,6 @@ extra_rdoc_files:
|
|
119
119
|
- Manifest.txt
|
120
120
|
- README.md
|
121
121
|
files:
|
122
|
-
- ".gemtest"
|
123
122
|
- HISTORY.md
|
124
123
|
- Manifest.txt
|
125
124
|
- README.md
|
@@ -161,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
160
|
version: '0'
|
162
161
|
requirements: []
|
163
162
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.6.7
|
165
164
|
signing_key:
|
166
165
|
specification_version: 4
|
167
166
|
summary: drjekyll - the missing static site theme package manager
|
data/.gemtest
DELETED
File without changes
|