drjekyll 0.1.1 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c4b42aaf7a093056479aa35a4efcd92c18b2def
4
- data.tar.gz: 4656923be96ebd515c1b27f26a8252a60620ca24
3
+ metadata.gz: eaac272c1c8652c5df6722013da846a41aa7e285
4
+ data.tar.gz: fe1f4e9d2a053109f34c394ed3ddd4ceca2c2216
5
5
  SHA512:
6
- metadata.gz: 243f5abff4a876bb89515f2f4befdd9a9dc346da8203f785532ec99cf1a6e3aaf828654e3aad0042c03768676e559669d2e3d75605f47c93e8436e7b9a800e4a
7
- data.tar.gz: 68da0a90445811a6474945a430c3fd6d0cda2552c57dfcc8b091773d7635f8a7b8777f19f7afecc9d85071632aefa63bf97f5461e1c936d2c543f116ca39861d
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
- 0.1.0
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..Planet Jekyll's Starter (Minimal) (starter | planetjekyllsstarterminimal) by Gerald Bauer - #white
71
- 2..Dr Jekyll's Minimal (minimial | drjekyllsminimal) by Gerald Bauer - #white
72
- 3..Dr Jekyll's Bootstrap (bootstrap | drjekyllsbootstrap) by Gerald Bauer - #bootstrap #scss #white
73
- 4..Dr Jekyll's Classics Book (classics | drjekyllsclassicsbook) by Gerald Bauer - #books #white
74
- 5..Poole (poole) by Mark Otto - #poole
75
- 6..Poole's Hyde (pooleshyde) by Mark Otto - #poole
76
- 7..Poole's Lanyon (pooleslanyon) by Mark Otto - #poole
77
- 8..Beautiful Jekyll (beautifuljekyll) by Dean Attali
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
-
@@ -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
- if slug == 'planetjekyllsstarterminimal'
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 == 'drjekyllsminimal'
44
+ elsif slug == 'henrysminimal'
41
45
  keys << 'minimial'
42
- elsif slug == 'drjekyllsbootstrap'
46
+ elsif slug == 'henrysbootstrap'
43
47
  keys << 'bootstrap'
44
- elsif slug == 'drjekyllsclassicsbook'
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
-
@@ -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
-
@@ -3,9 +3,9 @@
3
3
 
4
4
  module DrJekyll
5
5
 
6
- MAJOR = 0
7
- MINOR = 1
8
- PATCH = 1
6
+ MAJOR = 1
7
+ MINOR = 0
8
+ PATCH = 0
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
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.1.1
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: 2015-08-30 00:00:00.000000000 Z
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.13'
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.13'
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.2.3
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