rack-blogengine 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2e92a4ac0a621fa6355c4a495b99e487a159c29
4
- data.tar.gz: 002365431efd7549c0d1d24779316463dc74734d
3
+ metadata.gz: 994201fca1418d168755718f293af47d15134398
4
+ data.tar.gz: ef40b2d24cbcf80603b1f7c856f7eb51be5c700a
5
5
  SHA512:
6
- metadata.gz: 8303ab660403cfc503401d063b5f68ec7fe64311d85b32dcbe256c1f3335ee0cdc964a6bb30028e5b830399b6208afeb57fd0b0196d19c13480e3db594a484a5
7
- data.tar.gz: f434be5b9fcee998c16d08e7f527e41ae8c77f22499925cb66f32faa749afbd720665f3441b1743af4fe3487a00dec02b086590a9064c30717439d9cbaccfa79
6
+ metadata.gz: af21db7991922b36c1b1408918cedb0eb8bd61a2a2af8d6046ce871b39c5b4bd6356a9a15d6bcf4dc4cef838a86b972dabcd4778c0a6710dfc89bdc013a9a449
7
+ data.tar.gz: 3af9f49b2f7ff3c44bb1ee46d58fa2f3ada7e469609940ba65c35369b3f7a59173a311602c2d3c357c2f79426135f8c54192fdbdbde8dd51191dd7deb912e652
data/README.md CHANGED
@@ -18,13 +18,13 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- Create a targetfolder where your Styling & Content is placed.
21
+ `rack-blogengine generate <folder>` will create your Folder skeleton
22
22
 
23
23
  ### Structure
24
24
 
25
- `targetfolder/layout` - save your layout.html and style.css in this folder
25
+ `targetfolder/layout` - save your layout.html in this folder
26
26
 
27
- `targetfolder/assets` - your assets (images, js etc) will be served from this folder (http://pathtoapp.tld/images)
27
+ `targetfolder/assets` - your assets (images, js, css etc) will be served from this folder (http://pathtoapp.tld/assets)
28
28
 
29
29
  `targetfolder/test.content` - your available blog entries matches to the .content files, each .content file is a blog entry
30
30
 
data/bin/rack-blogengine CHANGED
@@ -1,8 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'rack/blogengine/command_line_interface'
3
3
 
4
-
5
- command = ARGV[0].to_sym
4
+ if ARGV[0]
5
+ command = ARGV[0].to_sym
6
+ else
7
+ command = "".to_sym
8
+ end
6
9
 
7
10
 
8
11
  target = ARGV[1]
@@ -11,7 +14,6 @@ target = "" if !ARGV[1]
11
14
 
12
15
  cli = Rack::Blogengine::CommandLineInterface.new
13
16
  methods = Rack::Blogengine::CommandLineInterface.instance_methods(false)
14
-
15
17
  begin
16
18
  cli.send(command, target)
17
19
  rescue TypeError
@@ -29,6 +29,8 @@ module Rack
29
29
 
30
30
  # TODO write generate method to generate blog skeleton (assets, layout etc)
31
31
  def generate(folder)
32
+ puts "Generating folder skeleton"
33
+ system("mkdir #{folder} && mkdir #{folder}/assets && mkdir #{folder}/assets/layout && mkdir #{folder}/assets/js && mkdir #{folder}/assets/style && mkdir #{folder}/assets/images")
32
34
  end
33
35
  end
34
36
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Blogengine
3
- VERSION = "0.0.7".freeze
3
+ VERSION = "0.0.8".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-blogengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benny1992