easy_html_creator 1.0.0 → 1.1.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 +7 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +3 -0
- data/LICENSE +1 -1
- data/README.md +20 -16
- data/bin/easy_html_creator +1 -0
- data/bin/ehc +5 -0
- data/dev_root/{test1 → demo-website}/coffee/test.coffee +0 -0
- data/dev_root/{test1 → demo-website}/helper/test_helper.rb +0 -0
- data/dev_root/{test1 → demo-website}/index.haml +4 -0
- data/dev_root/{test1 → demo-website}/layout.haml +0 -0
- data/dev_root/{test1 → demo-website}/partials/_assets.haml +0 -0
- data/dev_root/demo-website/partials/_footer.haml +1 -0
- data/dev_root/demo-website/partials/_header.haml +1 -0
- data/dev_root/{test1 → demo-website}/partials/_metadata.haml +1 -1
- data/dev_root/demo-website/public/images/easy-way.jpg +0 -0
- data/dev_root/{test1 → demo-website}/public/robots.txt +0 -0
- data/dev_root/{test1 → demo-website}/sass/main.sass +0 -0
- data/dev_root/documentation/dev_root.haml +41 -0
- data/dev_root/documentation/generate.haml +16 -0
- data/dev_root/documentation/index.haml +23 -0
- data/dev_root/documentation/layout.haml +11 -0
- data/dev_root/documentation/partials/_assets.haml +1 -0
- data/dev_root/documentation/partials/_header.haml +5 -0
- data/dev_root/documentation/partials/_metadata.haml +5 -0
- data/dev_root/documentation/public/doc/ActivesupportOverride.html +674 -0
- data/dev_root/documentation/public/doc/EhcCommandTasks.html +598 -0
- data/dev_root/documentation/public/doc/Generator.html +117 -0
- data/dev_root/documentation/public/doc/Generator/CoffeeGenerator.html +309 -0
- data/dev_root/documentation/public/doc/Generator/Context.html +437 -0
- data/dev_root/documentation/public/doc/Generator/Generator.html +552 -0
- data/dev_root/documentation/public/doc/Generator/HamlGenerator.html +406 -0
- data/dev_root/documentation/public/doc/Generator/SassGenerator.html +313 -0
- data/dev_root/documentation/public/doc/Generator/StructureGenerator.html +257 -0
- data/dev_root/documentation/public/doc/Server.html +165 -0
- data/dev_root/documentation/public/doc/Server/Dispatcher.html +377 -0
- data/dev_root/documentation/public/doc/Server/Request.html +730 -0
- data/dev_root/documentation/public/doc/Server/Response.html +642 -0
- data/dev_root/documentation/public/doc/Server/Server.html +356 -0
- data/dev_root/documentation/public/doc/_index.html +260 -0
- data/dev_root/documentation/public/doc/class_list.html +58 -0
- data/dev_root/documentation/public/doc/css/common.css +1 -0
- data/dev_root/documentation/public/doc/css/full_list.css +57 -0
- data/dev_root/documentation/public/doc/css/style.css +339 -0
- data/dev_root/documentation/public/doc/file.CHANGELOG.html +98 -0
- data/dev_root/documentation/public/doc/file.LICENSE.html +95 -0
- data/dev_root/documentation/public/doc/file.README.html +130 -0
- data/dev_root/documentation/public/doc/file_list.html +66 -0
- data/dev_root/documentation/public/doc/frames.html +26 -0
- data/dev_root/documentation/public/doc/index.html +130 -0
- data/dev_root/documentation/public/doc/js/app.js +219 -0
- data/dev_root/documentation/public/doc/js/full_list.js +181 -0
- data/dev_root/documentation/public/doc/js/jquery.js +4 -0
- data/dev_root/documentation/public/doc/method_list.html +429 -0
- data/dev_root/documentation/public/doc/top-level-namespace.html +114 -0
- data/dev_root/documentation/sass/main.sass +38 -0
- data/dev_root/documentation/server.haml +8 -0
- data/dev_root/documentation/yard.haml +1 -0
- data/lib/easy_html_creator.rb +4 -1
- data/lib/ehc_command_tasks.rb +112 -0
- data/lib/generator/generator.rb +2 -2
- data/lib/generator/haml_generator.rb +3 -0
- data/{dev_root/shared → lib/generator}/helper/activesupport_override.rb +6 -0
- data/lib/generator/structure_generator.rb +0 -2
- data/lib/server/dispatcher.rb +5 -2
- data/lib/server/request.rb +2 -1
- data/lib/server/server.rb +2 -2
- metadata +94 -96
- data/bin/generateFiles +0 -5
- data/bin/initDevRoot +0 -21
- data/bin/startServer +0 -3
- data/dev_root/test1/partials/_footer.haml +0 -1
- data/dev_root/test1/partials/_header.haml +0 -1
- data/dev_root/test2/coffee/test.coffee +0 -28
- data/dev_root/test2/index.haml +0 -4
- data/dev_root/test2/layout.haml +0 -7
- data/dev_root/test2/partials/title.haml +0 -1
- data/dev_root/test2/sass/test.sass +0 -3
data/bin/generateFiles
DELETED
data/bin/initDevRoot
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'fileutils'
|
4
|
-
|
5
|
-
source_dir = File.expand_path(File.dirname(__FILE__))[0..-4]
|
6
|
-
output_folder = "#{Dir.pwd}/dev_root"
|
7
|
-
|
8
|
-
puts "Creating dev_root with sample website"
|
9
|
-
|
10
|
-
unless File.directory? output_folder
|
11
|
-
FileUtils::mkdir_p output_folder
|
12
|
-
FileUtils::copy_entry("#{source_dir}dev_root", output_folder)
|
13
|
-
end
|
14
|
-
|
15
|
-
puts "Createweb_root directory"
|
16
|
-
|
17
|
-
unless File.directory? "#{Dir.pwd}/web_root"
|
18
|
-
FileUtils::mkdir_p "#{Dir.pwd}/web_root"
|
19
|
-
end
|
20
|
-
|
21
|
-
puts "All done, use 'startServer' to start the development server."
|
data/bin/startServer
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
FOOTER
|
@@ -1 +0,0 @@
|
|
1
|
-
HEADER
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# Assignment:
|
2
|
-
number = 42
|
3
|
-
opposite = true
|
4
|
-
|
5
|
-
# Conditions:
|
6
|
-
number = -42 if opposite
|
7
|
-
|
8
|
-
# Functions:
|
9
|
-
square = (x) -> x * x
|
10
|
-
|
11
|
-
# Arrays:
|
12
|
-
list = [1, 2, 3, 4, 5]
|
13
|
-
|
14
|
-
# Objects:
|
15
|
-
math =
|
16
|
-
root: Math.sqrt
|
17
|
-
square: square
|
18
|
-
cube: (x) -> x * square x
|
19
|
-
|
20
|
-
# Splats:
|
21
|
-
race = (winner, runners...) ->
|
22
|
-
print winner, runners
|
23
|
-
|
24
|
-
# Existence:
|
25
|
-
alert "I knew it!" if elvis?
|
26
|
-
|
27
|
-
# Array comprehensions:
|
28
|
-
cubes = (math.cube num for num in list)
|
data/dev_root/test2/index.haml
DELETED
data/dev_root/test2/layout.haml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Default Page Title
|