jekyll-admin 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -21
- data/README.md +50 -50
- data/lib/jekyll-admin.rb +46 -46
- data/lib/jekyll-admin/apiable.rb +163 -162
- data/lib/jekyll-admin/data_file.rb +103 -103
- data/lib/jekyll-admin/directory.rb +74 -73
- data/lib/jekyll-admin/file_helper.rb +77 -78
- data/lib/jekyll-admin/page_without_a_file.rb +7 -7
- data/lib/jekyll-admin/path_helper.rb +80 -78
- data/lib/jekyll-admin/public/{d7c639084f684d66a1bc66855d193ed8.svg → 24c601e721ebd8279d38e2cfa0d01bc6.svg} +684 -684
- data/lib/jekyll-admin/public/bundle.js +14 -77
- data/lib/jekyll-admin/public/bundle.js.map +1 -1
- data/lib/jekyll-admin/public/index.html +13 -12
- data/lib/jekyll-admin/public/styles.css +4 -4
- data/lib/jekyll-admin/public/styles.css.map +1 -1
- data/lib/jekyll-admin/server.rb +99 -101
- data/lib/jekyll-admin/server/collection.rb +82 -82
- data/lib/jekyll-admin/server/configuration.rb +57 -57
- data/lib/jekyll-admin/server/data.rb +82 -82
- data/lib/jekyll-admin/server/draft.rb +109 -110
- data/lib/jekyll-admin/server/page.rb +91 -90
- data/lib/jekyll-admin/server/static_file.rb +61 -61
- data/lib/jekyll-admin/static_server.rb +24 -24
- data/lib/jekyll-admin/urlable.rb +71 -67
- data/lib/jekyll-admin/version.rb +3 -3
- data/lib/jekyll/commands/serve.rb +28 -28
- metadata +24 -33
data/lib/jekyll-admin/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module JekyllAdmin
|
2
|
-
VERSION = "0.
|
3
|
-
end
|
1
|
+
module JekyllAdmin
|
2
|
+
VERSION = "0.9.0".freeze
|
3
|
+
end
|
@@ -1,28 +1,28 @@
|
|
1
|
-
module Jekyll
|
2
|
-
module Commands
|
3
|
-
class Serve < Command
|
4
|
-
class << self
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
server = WEBrick::HTTPServer.new(webrick_opts(opts)).tap { |o| o.unmount("") }
|
11
|
-
server.mount(opts["baseurl"], Servlet, destination, file_handler_opts)
|
12
|
-
|
13
|
-
jekyll_admin_monkey_patch
|
14
|
-
|
15
|
-
Jekyll.logger.info "Server address:", server_address(server, opts)
|
16
|
-
launch_browser server, opts if opts["open_url"]
|
17
|
-
boot_or_detach server, opts
|
18
|
-
end
|
19
|
-
|
20
|
-
def jekyll_admin_monkey_patch
|
21
|
-
server.mount "/admin", Rack::Handler::WEBrick, JekyllAdmin::StaticServer
|
22
|
-
server.mount "/_api", Rack::Handler::WEBrick, JekyllAdmin::Server
|
23
|
-
Jekyll.logger.info "JekyllAdmin mode:", ENV["RACK_ENV"] || "production"
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
1
|
+
module Jekyll
|
2
|
+
module Commands
|
3
|
+
class Serve < Command
|
4
|
+
class << self
|
5
|
+
private
|
6
|
+
|
7
|
+
def start_up_webrick(opts, destination)
|
8
|
+
@reload_reactor.start(opts) if opts["livereload"]
|
9
|
+
|
10
|
+
@server = WEBrick::HTTPServer.new(webrick_opts(opts)).tap { |o| o.unmount("") }
|
11
|
+
@server.mount(opts["baseurl"].to_s, Servlet, destination, file_handler_opts)
|
12
|
+
|
13
|
+
jekyll_admin_monkey_patch
|
14
|
+
|
15
|
+
Jekyll.logger.info "Server address:", server_address(@server, opts)
|
16
|
+
launch_browser @server, opts if opts["open_url"]
|
17
|
+
boot_or_detach @server, opts
|
18
|
+
end
|
19
|
+
|
20
|
+
def jekyll_admin_monkey_patch
|
21
|
+
@server.mount "/admin", Rack::Handler::WEBrick, JekyllAdmin::StaticServer
|
22
|
+
@server.mount "/_api", Rack::Handler::WEBrick, JekyllAdmin::Server
|
23
|
+
Jekyll.logger.info "JekyllAdmin mode:", ENV["RACK_ENV"] || "production"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mert Kahyaoğlu
|
@@ -9,22 +9,28 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2019-09-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '3.3'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '5.0'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- - "
|
28
|
+
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '3.3'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: sinatra
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,33 +60,33 @@ dependencies:
|
|
54
60
|
- !ruby/object:Gem::Version
|
55
61
|
version: '1.4'
|
56
62
|
- !ruby/object:Gem::Dependency
|
57
|
-
name:
|
63
|
+
name: bundler
|
58
64
|
requirement: !ruby/object:Gem::Requirement
|
59
65
|
requirements:
|
60
|
-
- - "
|
66
|
+
- - ">="
|
61
67
|
- !ruby/object:Gem::Version
|
62
|
-
version: '
|
63
|
-
type: :
|
68
|
+
version: '1.7'
|
69
|
+
type: :development
|
64
70
|
prerelease: false
|
65
71
|
version_requirements: !ruby/object:Gem::Requirement
|
66
72
|
requirements:
|
67
|
-
- - "
|
73
|
+
- - ">="
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
75
|
+
version: '1.7'
|
70
76
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
77
|
+
name: gem-release
|
72
78
|
requirement: !ruby/object:Gem::Requirement
|
73
79
|
requirements:
|
74
80
|
- - "~>"
|
75
81
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
82
|
+
version: '0.7'
|
77
83
|
type: :development
|
78
84
|
prerelease: false
|
79
85
|
version_requirements: !ruby/object:Gem::Requirement
|
80
86
|
requirements:
|
81
87
|
- - "~>"
|
82
88
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
89
|
+
version: '0.7'
|
84
90
|
- !ruby/object:Gem::Dependency
|
85
91
|
name: rake
|
86
92
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,19 +116,19 @@ dependencies:
|
|
110
116
|
- !ruby/object:Gem::Version
|
111
117
|
version: '3.4'
|
112
118
|
- !ruby/object:Gem::Dependency
|
113
|
-
name: rubocop
|
119
|
+
name: rubocop-jekyll
|
114
120
|
requirement: !ruby/object:Gem::Requirement
|
115
121
|
requirements:
|
116
122
|
- - "~>"
|
117
123
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.
|
124
|
+
version: 0.10.0
|
119
125
|
type: :development
|
120
126
|
prerelease: false
|
121
127
|
version_requirements: !ruby/object:Gem::Requirement
|
122
128
|
requirements:
|
123
129
|
- - "~>"
|
124
130
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.
|
131
|
+
version: 0.10.0
|
126
132
|
- !ruby/object:Gem::Dependency
|
127
133
|
name: sinatra-cross_origin
|
128
134
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,20 +143,6 @@ dependencies:
|
|
137
143
|
- - "~>"
|
138
144
|
- !ruby/object:Gem::Version
|
139
145
|
version: '0.3'
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: gem-release
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - "~>"
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: '0.7'
|
147
|
-
type: :development
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - "~>"
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0.7'
|
154
146
|
description: Jekyll::Admin is a drop in administrative framework for Jekyll sites.
|
155
147
|
email:
|
156
148
|
- mertkahyaoglu93@gmail.com
|
@@ -171,6 +163,7 @@ files:
|
|
171
163
|
- lib/jekyll-admin/public/03945ac4fc7fdefc44bc110bf1ba2393.svg
|
172
164
|
- lib/jekyll-admin/public/059514c92565e4045da1a69525dd9ec0.ttf
|
173
165
|
- lib/jekyll-admin/public/1dc35d25e61d819a9c357074014867ab.ttf
|
166
|
+
- lib/jekyll-admin/public/24c601e721ebd8279d38e2cfa0d01bc6.svg
|
174
167
|
- lib/jekyll-admin/public/25a32416abee198dd821b0b17a198a8f.eot
|
175
168
|
- lib/jekyll-admin/public/33a752211d05af6684e26ec63c2ed965.gif
|
176
169
|
- lib/jekyll-admin/public/55131026930a0cd4539d1e2fdb92722d.ttf
|
@@ -182,7 +175,6 @@ files:
|
|
182
175
|
- lib/jekyll-admin/public/bundle.js
|
183
176
|
- lib/jekyll-admin/public/bundle.js.map
|
184
177
|
- lib/jekyll-admin/public/c8ddf1e5e5bf3682bc7bebf30f394148.woff
|
185
|
-
- lib/jekyll-admin/public/d7c639084f684d66a1bc66855d193ed8.svg
|
186
178
|
- lib/jekyll-admin/public/e44520ab9079ea7633bfa874bed5d21d.eot
|
187
179
|
- lib/jekyll-admin/public/e6cf7c6ec7c2d6f670ae9d762604cb0b.woff2
|
188
180
|
- lib/jekyll-admin/public/favicon.ico
|
@@ -220,8 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
212
|
- !ruby/object:Gem::Version
|
221
213
|
version: '0'
|
222
214
|
requirements: []
|
223
|
-
|
224
|
-
rubygems_version: 2.7.7
|
215
|
+
rubygems_version: 3.0.6
|
225
216
|
signing_key:
|
226
217
|
specification_version: 4
|
227
218
|
summary: wp-admin for Jekyll, but better
|