ymdp 0.0.17 → 0.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.
- data/VERSION +1 -1
- data/lib/new_application/config/constants.rb +5 -5
- data/lib/new_application/lib/tasks/keys.rake +1 -1
- data/lib/new_application/lib/tasks/ymdp.rake +1 -1
- data/lib/new_application/script/langs +1 -1
- data/lib/ymdp.rb +1 -1
- data/lib/{application_view → ymdp}/asset_tag_helper.rb +1 -1
- data/lib/ymdp/commands/generate.rb +3 -0
- data/lib/{application_view → ymdp}/compiler/template_compiler.rb +10 -10
- data/lib/ymdp/config.rb +65 -0
- data/lib/{application_view → ymdp}/generator/base.rb +2 -2
- data/lib/{application_view → ymdp}/generator/templates/javascript.js +0 -0
- data/lib/{application_view → ymdp}/generator/templates/stylesheet.css +0 -0
- data/lib/{application_view → ymdp}/generator/templates/translation.pres +0 -0
- data/lib/{application_view → ymdp}/generator/templates/view.html.haml +0 -0
- data/lib/{application_view → ymdp}/generator/view.rb +3 -3
- data/lib/{application_view → ymdp}/helpers.rb +0 -0
- data/lib/{application_view → ymdp}/processor/compressor.rb +3 -3
- data/lib/{application_view → ymdp}/processor/processor.rb +7 -7
- data/lib/{application_view → ymdp}/processor/validator.rb +3 -3
- data/lib/{application_view → ymdp}/support/blank.rb +0 -0
- data/lib/{application_view → ymdp}/support/file.rb +1 -1
- data/lib/{application_view → ymdp}/support/form_post.rb +0 -0
- data/lib/{application_view → ymdp}/support/w3c.rb +0 -0
- data/lib/{application_view → ymdp}/tag_helper.rb +0 -0
- data/lib/{application_view → ymdp}/tasks/keys.rake +1 -1
- data/lib/{application_view → ymdp}/tasks/ymdp.rake +5 -5
- data/lib/{application_view → ymdp}/translator/base.rb +9 -9
- data/lib/{application_view/application_view.rb → ymdp/ymdp.rb} +7 -7
- data/ymdp.gemspec +25 -25
- metadata +25 -25
- data/lib/application_view/commands/generate.rb +0 -3
- data/lib/application_view/config.rb +0 -39
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
@@ -26,7 +26,7 @@ SORTED_LOCALES = LOCALES.sort do |a,b|
|
|
26
26
|
a[1] <=> b[1]
|
27
27
|
end unless defined?(SORTED_LOCALES)
|
28
28
|
|
29
|
-
|
29
|
+
BASE_PATH = "." unless defined?(BASE_PATH)
|
30
30
|
|
31
31
|
def file_not_found(filename)
|
32
32
|
puts
|
@@ -36,17 +36,17 @@ def file_not_found(filename)
|
|
36
36
|
raise "File not found: #{filename}"
|
37
37
|
end
|
38
38
|
|
39
|
-
servers = "#{
|
40
|
-
config = "#{
|
39
|
+
servers = "#{BASE_PATH}/config/servers.yml"
|
40
|
+
config = "#{BASE_PATH}/config/config.yml"
|
41
41
|
|
42
42
|
if File.exists?(servers)
|
43
|
-
SERVERS = YAML.load_file("#{
|
43
|
+
SERVERS = YAML.load_file("#{BASE_PATH}/config/servers.yml") unless defined?(SERVERS)
|
44
44
|
else
|
45
45
|
file_not_found(servers)
|
46
46
|
end
|
47
47
|
|
48
48
|
if File.exists?(config)
|
49
|
-
CONFIG = YAML.load_file("#{
|
49
|
+
CONFIG = YAML.load_file("#{BASE_PATH}/config/config.yml")["config"] unless defined?(CONFIG)
|
50
50
|
else
|
51
51
|
file_not_found(config)
|
52
52
|
end
|
data/lib/ymdp.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
include Grit
|
2
2
|
|
3
|
-
include
|
3
|
+
include YMDP::Config
|
4
4
|
|
5
5
|
class GitHelper
|
6
6
|
def get_hash(branch)
|
@@ -109,10 +109,10 @@ class YMDPTemplate
|
|
109
109
|
include ActionView::Helpers::TagHelper
|
110
110
|
include TemplateBuilder
|
111
111
|
include ApplicationHelper
|
112
|
-
include
|
113
|
-
include
|
114
|
-
include
|
115
|
-
include
|
112
|
+
include YMDP::Base
|
113
|
+
include YMDP::AssetTagHelper
|
114
|
+
include YMDP::FormTagHelper
|
115
|
+
include YMDP::LinkTagHelper
|
116
116
|
|
117
117
|
attr_accessor :output_buffer
|
118
118
|
|
@@ -140,7 +140,7 @@ class YMDPTemplate
|
|
140
140
|
|
141
141
|
def write_template(result)
|
142
142
|
write_template_with_layout(result)
|
143
|
-
|
143
|
+
YMDP::Validator::HTML.validate(output_filename) if validate_html?
|
144
144
|
end
|
145
145
|
end
|
146
146
|
|
@@ -148,7 +148,7 @@ class JSTemplate < YMDPTemplate
|
|
148
148
|
def compress_js(filename)
|
149
149
|
if compress_js_assets?
|
150
150
|
validate_filename = "#{filename}.min"
|
151
|
-
|
151
|
+
YMDP::Compressor::JavaScript.compress(filename)
|
152
152
|
end
|
153
153
|
end
|
154
154
|
|
@@ -156,7 +156,7 @@ class JSTemplate < YMDPTemplate
|
|
156
156
|
filename = @file.split("/").last
|
157
157
|
tmp_filename = "./tmp/#{filename}"
|
158
158
|
save_to_file(result, tmp_filename)
|
159
|
-
result =
|
159
|
+
result = YMDP::Compressor::JavaScript.compress(tmp_filename) || result
|
160
160
|
write_template_without_layout(result)
|
161
161
|
end
|
162
162
|
end
|
@@ -198,7 +198,7 @@ class YRBTemplate
|
|
198
198
|
end
|
199
199
|
|
200
200
|
def validate
|
201
|
-
|
201
|
+
YMDP::Validator::JSON.validate(output_filename)
|
202
202
|
end
|
203
203
|
|
204
204
|
private
|
@@ -334,7 +334,7 @@ class TemplateCompiler
|
|
334
334
|
|
335
335
|
def self.process_yrb(domain, hash, options)
|
336
336
|
puts "Processing ./app/assets/yrb/ for #{domain}"
|
337
|
-
|
337
|
+
YMDP::Base.supported_languages.each do |lang|
|
338
338
|
process_each_yrb(lang, domain, hash, options)
|
339
339
|
end
|
340
340
|
end
|
data/lib/ymdp/config.rb
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
module YMDP
|
2
|
+
module Config
|
3
|
+
def config(*args)
|
4
|
+
c = CONFIG
|
5
|
+
|
6
|
+
missing_option_index = 0
|
7
|
+
|
8
|
+
args.each_with_index do |arg, i|
|
9
|
+
if c.is_a?(Hash) && c.has_key?(arg)
|
10
|
+
c = c[arg]
|
11
|
+
else
|
12
|
+
missing_option_index = i
|
13
|
+
raise "Configuration option not found."
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
c
|
18
|
+
rescue
|
19
|
+
puts "The following configuration option was not found in config.yml:"
|
20
|
+
(0..missing_option_index).each do |i|
|
21
|
+
puts args[i]
|
22
|
+
end
|
23
|
+
puts
|
24
|
+
puts "Are you sure your config.yml is up to date?"
|
25
|
+
puts
|
26
|
+
raise "Configuration option not found."
|
27
|
+
end
|
28
|
+
|
29
|
+
def compress_embedded_js?
|
30
|
+
config("compress", "embedded_js")
|
31
|
+
end
|
32
|
+
|
33
|
+
def compress_js_assets?
|
34
|
+
config("compress", "js_assets")
|
35
|
+
end
|
36
|
+
|
37
|
+
def compress_css?
|
38
|
+
config("compress", "css")
|
39
|
+
end
|
40
|
+
|
41
|
+
def validate_embedded_js?
|
42
|
+
config("validate", "embedded_js", YMDP_ENV)
|
43
|
+
end
|
44
|
+
|
45
|
+
def validate_js_assets?
|
46
|
+
config("validate", "js_assets", YMDP_ENV)
|
47
|
+
end
|
48
|
+
|
49
|
+
def validate_json_assets?
|
50
|
+
config("validate", "json_assets", YMDP_ENV)
|
51
|
+
end
|
52
|
+
|
53
|
+
def validate_html?
|
54
|
+
config("validate", "html", YMDP_ENV)
|
55
|
+
end
|
56
|
+
|
57
|
+
def obfuscate?
|
58
|
+
config("compress", "obfuscate")
|
59
|
+
end
|
60
|
+
|
61
|
+
def verbose?
|
62
|
+
config("verbose")
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
require 'generator/view'
|
2
2
|
|
3
|
-
module
|
3
|
+
module YMDP
|
4
4
|
module Generator
|
5
5
|
class Base
|
6
6
|
def self.generate(args)
|
7
7
|
@command = args.shift
|
8
8
|
|
9
9
|
if @command == "view"
|
10
|
-
|
10
|
+
YMDP::Generator::View.new(args).generate
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,7 +2,7 @@ require 'support/file'
|
|
2
2
|
require 'translator/base'
|
3
3
|
require 'erb'
|
4
4
|
|
5
|
-
module
|
5
|
+
module YMDP
|
6
6
|
module Generator
|
7
7
|
module Snippets
|
8
8
|
def launcher_method(view)
|
@@ -19,7 +19,7 @@ OUTPUT
|
|
19
19
|
|
20
20
|
module Templates
|
21
21
|
class Base
|
22
|
-
include
|
22
|
+
include YMDP::FileSupport
|
23
23
|
|
24
24
|
attr_accessor :view
|
25
25
|
|
@@ -163,7 +163,7 @@ OUTPUT
|
|
163
163
|
Templates::Stylesheet.new(view).generate
|
164
164
|
Templates::Translation.new(view).generate
|
165
165
|
Templates::Modifications.new(view).generate
|
166
|
-
|
166
|
+
YMDP::Translator::YRB.translate
|
167
167
|
end
|
168
168
|
end
|
169
169
|
end
|
File without changes
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'support/file'
|
2
2
|
|
3
|
-
module
|
3
|
+
module YMDP
|
4
4
|
module Compressor
|
5
5
|
class Base
|
6
|
-
extend
|
7
|
-
extend
|
6
|
+
extend YMDP::Config
|
7
|
+
extend YMDP::FileSupport
|
8
8
|
|
9
9
|
def self.compress(path, options={})
|
10
10
|
compressed_display_path = display_path(path)
|
@@ -1,14 +1,14 @@
|
|
1
1
|
require 'support/file'
|
2
2
|
require 'haml'
|
3
3
|
|
4
|
-
module
|
4
|
+
module YMDP
|
5
5
|
module Renderer
|
6
6
|
class Base
|
7
7
|
end
|
8
8
|
|
9
9
|
class Haml < Base
|
10
10
|
def self.scope
|
11
|
-
|
11
|
+
YMDP::ViewHelpers
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.render(filename)
|
@@ -19,7 +19,7 @@ module ApplicationView
|
|
19
19
|
|
20
20
|
class ERB < Base
|
21
21
|
def self.scope
|
22
|
-
|
22
|
+
YMDP::ViewHelpers.get_binding
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.render(filename)
|
@@ -30,8 +30,8 @@ module ApplicationView
|
|
30
30
|
|
31
31
|
module Processor
|
32
32
|
class Base
|
33
|
-
extend
|
34
|
-
extend
|
33
|
+
extend YMDP::Config
|
34
|
+
extend YMDP::FileSupport
|
35
35
|
|
36
36
|
def self.render(params)
|
37
37
|
output = []
|
@@ -93,9 +93,9 @@ module ApplicationView
|
|
93
93
|
File.open(path) do |f|
|
94
94
|
template = f.read
|
95
95
|
if path =~ /haml$/
|
96
|
-
output =
|
96
|
+
output = YMDP::Processor::Haml.render(template, path)
|
97
97
|
else
|
98
|
-
output =
|
98
|
+
output = YMDP::Processor::ERB.render(template)
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
include
|
1
|
+
include YMDP::Config
|
2
2
|
|
3
3
|
begin
|
4
4
|
CATEGORIES = YAML.load_file("./config/categories.yml")["categories"] unless defined?(CATEGORIES)
|
@@ -274,7 +274,7 @@ namespace :validate do
|
|
274
274
|
task :javascripts do
|
275
275
|
puts "\nValidating external JavaScript assets in #{@application}..."
|
276
276
|
Dir["#{BASE_PATH}/servers/#{@application}/assets/javascripts/*.js"].each do |path|
|
277
|
-
|
277
|
+
YMDP::Validator::JavaScript.validate(path)
|
278
278
|
end
|
279
279
|
end
|
280
280
|
|
@@ -284,7 +284,7 @@ namespace :validate do
|
|
284
284
|
Dir["./servers/#{@application}/assets/yrb/*json"].each do |json|
|
285
285
|
filename = json.split("/").last
|
286
286
|
path = "#{BASE_PATH}/servers/#{@application}/assets/yrb/#{filename}"
|
287
|
-
|
287
|
+
YMDP::Validator::JSON.validate(path)
|
288
288
|
end
|
289
289
|
end
|
290
290
|
|
@@ -294,7 +294,7 @@ namespace :validate do
|
|
294
294
|
`rm -rf #{TMP_DIR}`
|
295
295
|
Dir.mkdir(TMP_DIR) rescue Errno::EEXIST
|
296
296
|
Dir["./servers/#{@application}/views/*"].each do |filename|
|
297
|
-
|
297
|
+
YMDP::Validator::HTML.validate(filename) if filename =~ /#{@path}/
|
298
298
|
end
|
299
299
|
end
|
300
300
|
|
@@ -530,7 +530,7 @@ def validated_embedded_js(path)
|
|
530
530
|
(doc / "script").each { |js| f.puts js.inner_html + "\n\n" }
|
531
531
|
end
|
532
532
|
|
533
|
-
|
533
|
+
YMDP::Validator::JavaScript.validate(js_fragment_path)
|
534
534
|
system "rm #{js_fragment_path}"
|
535
535
|
end
|
536
536
|
|
@@ -3,7 +3,7 @@ require 'rtranslate'
|
|
3
3
|
require 'timer'
|
4
4
|
require 'compiler/template_compiler'
|
5
5
|
|
6
|
-
module
|
6
|
+
module YMDP
|
7
7
|
module Yaml
|
8
8
|
module Support
|
9
9
|
FILENAME_REGEXP = /(.*)_(..-..)\.yml$/
|
@@ -92,12 +92,12 @@ module ApplicationView
|
|
92
92
|
# and translates them through Google Translate.
|
93
93
|
#
|
94
94
|
# Usage:
|
95
|
-
#
|
95
|
+
# YMDP::Translator::Base.new().translate
|
96
96
|
#
|
97
97
|
class Base
|
98
|
-
include
|
99
|
-
extend
|
100
|
-
include
|
98
|
+
include YMDP::FileSupport
|
99
|
+
extend YMDP::FileSupport
|
100
|
+
include YMDP::Translator::Support
|
101
101
|
|
102
102
|
def self.original_translations
|
103
103
|
Dir["#{language_path('en-US')}/#{all_source_files}"]
|
@@ -304,8 +304,8 @@ module ApplicationView
|
|
304
304
|
end
|
305
305
|
|
306
306
|
class Yaml < Base
|
307
|
-
include
|
308
|
-
extend
|
307
|
+
include YMDP::Yaml::Support
|
308
|
+
extend YMDP::Yaml::Support
|
309
309
|
|
310
310
|
def self.template
|
311
311
|
Yaml
|
@@ -341,8 +341,8 @@ module ApplicationView
|
|
341
341
|
end
|
342
342
|
|
343
343
|
class YRB < Base
|
344
|
-
include
|
345
|
-
extend
|
344
|
+
include YMDP::YRB::Support
|
345
|
+
extend YMDP::YRB::Support
|
346
346
|
|
347
347
|
def self.template
|
348
348
|
YRB
|
@@ -17,11 +17,11 @@ class Application
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
module
|
20
|
+
module YMDP
|
21
21
|
module Base
|
22
|
-
include
|
23
|
-
include
|
24
|
-
include
|
22
|
+
include YMDP::Config
|
23
|
+
include YMDP::FileSupport
|
24
|
+
include YMDP::Compressor
|
25
25
|
|
26
26
|
extend self
|
27
27
|
|
@@ -120,7 +120,7 @@ module ApplicationView
|
|
120
120
|
if File.exists?(path)
|
121
121
|
tmp_filename = save_processed_template(path)
|
122
122
|
if compress_css?
|
123
|
-
output =
|
123
|
+
output = YMDP::Compressor::Stylesheet.compress(tmp_filename)
|
124
124
|
else
|
125
125
|
File.open(path) do |f|
|
126
126
|
template = f.read
|
@@ -158,9 +158,9 @@ module ApplicationView
|
|
158
158
|
end
|
159
159
|
|
160
160
|
# return compressed javascript or else don't
|
161
|
-
output =
|
161
|
+
output = YMDP::Compressor::JavaScript.compress(tmp_filename) || output
|
162
162
|
|
163
|
-
|
163
|
+
YMDP::Validator::JavaScript.validate(validate_filename) if validate_filename
|
164
164
|
|
165
165
|
output
|
166
166
|
end
|
data/ymdp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ymdp}
|
8
|
-
s.version = "0.0
|
8
|
+
s.version = "0.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeff Coleman"]
|
12
|
-
s.date = %q{2010-01-
|
12
|
+
s.date = %q{2010-01-12}
|
13
13
|
s.default_executable = %q{ymdp}
|
14
14
|
s.description = %q{Framework for developing applications in the Yahoo! Mail Development Platform.}
|
15
15
|
s.email = %q{progressions@gmail.com}
|
@@ -26,29 +26,6 @@ Gem::Specification.new do |s|
|
|
26
26
|
"Rakefile",
|
27
27
|
"VERSION",
|
28
28
|
"bin/ymdp",
|
29
|
-
"lib/application_view/application_view.rb",
|
30
|
-
"lib/application_view/asset_tag_helper.rb",
|
31
|
-
"lib/application_view/commands/generate.rb",
|
32
|
-
"lib/application_view/compiler/template_compiler.rb",
|
33
|
-
"lib/application_view/config.rb",
|
34
|
-
"lib/application_view/generator/base.rb",
|
35
|
-
"lib/application_view/generator/templates/javascript.js",
|
36
|
-
"lib/application_view/generator/templates/stylesheet.css",
|
37
|
-
"lib/application_view/generator/templates/translation.pres",
|
38
|
-
"lib/application_view/generator/templates/view.html.haml",
|
39
|
-
"lib/application_view/generator/view.rb",
|
40
|
-
"lib/application_view/helpers.rb",
|
41
|
-
"lib/application_view/processor/compressor.rb",
|
42
|
-
"lib/application_view/processor/processor.rb",
|
43
|
-
"lib/application_view/processor/validator.rb",
|
44
|
-
"lib/application_view/support/blank.rb",
|
45
|
-
"lib/application_view/support/file.rb",
|
46
|
-
"lib/application_view/support/form_post.rb",
|
47
|
-
"lib/application_view/support/w3c.rb",
|
48
|
-
"lib/application_view/tag_helper.rb",
|
49
|
-
"lib/application_view/tasks/keys.rake",
|
50
|
-
"lib/application_view/tasks/ymdp.rake",
|
51
|
-
"lib/application_view/translator/base.rb",
|
52
29
|
"lib/new_application/.base",
|
53
30
|
"lib/new_application/Gemfile",
|
54
31
|
"lib/new_application/Rakefile",
|
@@ -110,6 +87,29 @@ Gem::Specification.new do |s|
|
|
110
87
|
"lib/new_application/script/yuicompressor-2.4.2.jar",
|
111
88
|
"lib/new_application/ymdp",
|
112
89
|
"lib/ymdp.rb",
|
90
|
+
"lib/ymdp/asset_tag_helper.rb",
|
91
|
+
"lib/ymdp/commands/generate.rb",
|
92
|
+
"lib/ymdp/compiler/template_compiler.rb",
|
93
|
+
"lib/ymdp/config.rb",
|
94
|
+
"lib/ymdp/generator/base.rb",
|
95
|
+
"lib/ymdp/generator/templates/javascript.js",
|
96
|
+
"lib/ymdp/generator/templates/stylesheet.css",
|
97
|
+
"lib/ymdp/generator/templates/translation.pres",
|
98
|
+
"lib/ymdp/generator/templates/view.html.haml",
|
99
|
+
"lib/ymdp/generator/view.rb",
|
100
|
+
"lib/ymdp/helpers.rb",
|
101
|
+
"lib/ymdp/processor/compressor.rb",
|
102
|
+
"lib/ymdp/processor/processor.rb",
|
103
|
+
"lib/ymdp/processor/validator.rb",
|
104
|
+
"lib/ymdp/support/blank.rb",
|
105
|
+
"lib/ymdp/support/file.rb",
|
106
|
+
"lib/ymdp/support/form_post.rb",
|
107
|
+
"lib/ymdp/support/w3c.rb",
|
108
|
+
"lib/ymdp/tag_helper.rb",
|
109
|
+
"lib/ymdp/tasks/keys.rake",
|
110
|
+
"lib/ymdp/tasks/ymdp.rake",
|
111
|
+
"lib/ymdp/translator/base.rb",
|
112
|
+
"lib/ymdp/ymdp.rb",
|
113
113
|
"test/helper.rb",
|
114
114
|
"test/test_ymdp.rb",
|
115
115
|
"ymdp.gemspec"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ymdp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Coleman
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-12 00:00:00 -06:00
|
13
13
|
default_executable: ymdp
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -129,29 +129,6 @@ files:
|
|
129
129
|
- Rakefile
|
130
130
|
- VERSION
|
131
131
|
- bin/ymdp
|
132
|
-
- lib/application_view/application_view.rb
|
133
|
-
- lib/application_view/asset_tag_helper.rb
|
134
|
-
- lib/application_view/commands/generate.rb
|
135
|
-
- lib/application_view/compiler/template_compiler.rb
|
136
|
-
- lib/application_view/config.rb
|
137
|
-
- lib/application_view/generator/base.rb
|
138
|
-
- lib/application_view/generator/templates/javascript.js
|
139
|
-
- lib/application_view/generator/templates/stylesheet.css
|
140
|
-
- lib/application_view/generator/templates/translation.pres
|
141
|
-
- lib/application_view/generator/templates/view.html.haml
|
142
|
-
- lib/application_view/generator/view.rb
|
143
|
-
- lib/application_view/helpers.rb
|
144
|
-
- lib/application_view/processor/compressor.rb
|
145
|
-
- lib/application_view/processor/processor.rb
|
146
|
-
- lib/application_view/processor/validator.rb
|
147
|
-
- lib/application_view/support/blank.rb
|
148
|
-
- lib/application_view/support/file.rb
|
149
|
-
- lib/application_view/support/form_post.rb
|
150
|
-
- lib/application_view/support/w3c.rb
|
151
|
-
- lib/application_view/tag_helper.rb
|
152
|
-
- lib/application_view/tasks/keys.rake
|
153
|
-
- lib/application_view/tasks/ymdp.rake
|
154
|
-
- lib/application_view/translator/base.rb
|
155
132
|
- lib/new_application/.base
|
156
133
|
- lib/new_application/Gemfile
|
157
134
|
- lib/new_application/Rakefile
|
@@ -213,6 +190,29 @@ files:
|
|
213
190
|
- lib/new_application/script/yuicompressor-2.4.2.jar
|
214
191
|
- lib/new_application/ymdp
|
215
192
|
- lib/ymdp.rb
|
193
|
+
- lib/ymdp/asset_tag_helper.rb
|
194
|
+
- lib/ymdp/commands/generate.rb
|
195
|
+
- lib/ymdp/compiler/template_compiler.rb
|
196
|
+
- lib/ymdp/config.rb
|
197
|
+
- lib/ymdp/generator/base.rb
|
198
|
+
- lib/ymdp/generator/templates/javascript.js
|
199
|
+
- lib/ymdp/generator/templates/stylesheet.css
|
200
|
+
- lib/ymdp/generator/templates/translation.pres
|
201
|
+
- lib/ymdp/generator/templates/view.html.haml
|
202
|
+
- lib/ymdp/generator/view.rb
|
203
|
+
- lib/ymdp/helpers.rb
|
204
|
+
- lib/ymdp/processor/compressor.rb
|
205
|
+
- lib/ymdp/processor/processor.rb
|
206
|
+
- lib/ymdp/processor/validator.rb
|
207
|
+
- lib/ymdp/support/blank.rb
|
208
|
+
- lib/ymdp/support/file.rb
|
209
|
+
- lib/ymdp/support/form_post.rb
|
210
|
+
- lib/ymdp/support/w3c.rb
|
211
|
+
- lib/ymdp/tag_helper.rb
|
212
|
+
- lib/ymdp/tasks/keys.rake
|
213
|
+
- lib/ymdp/tasks/ymdp.rake
|
214
|
+
- lib/ymdp/translator/base.rb
|
215
|
+
- lib/ymdp/ymdp.rb
|
216
216
|
- test/helper.rb
|
217
217
|
- test/test_ymdp.rb
|
218
218
|
- ymdp.gemspec
|
@@ -1,39 +0,0 @@
|
|
1
|
-
module ApplicationView
|
2
|
-
module Config
|
3
|
-
def compress_embedded_js?
|
4
|
-
CONFIG["compress"]["embedded_js"]
|
5
|
-
end
|
6
|
-
|
7
|
-
def compress_js_assets?
|
8
|
-
CONFIG["compress"]["js_assets"]
|
9
|
-
end
|
10
|
-
|
11
|
-
def compress_css?
|
12
|
-
CONFIG["compress"]["css"]
|
13
|
-
end
|
14
|
-
|
15
|
-
def validate_embedded_js?
|
16
|
-
CONFIG["validate"]["embedded_js"][YMDP_ENV]
|
17
|
-
end
|
18
|
-
|
19
|
-
def validate_js_assets?
|
20
|
-
CONFIG["validate"]["js_assets"][YMDP_ENV]
|
21
|
-
end
|
22
|
-
|
23
|
-
def validate_json_assets?
|
24
|
-
CONFIG["validate"]["json_assets"][YMDP_ENV]
|
25
|
-
end
|
26
|
-
|
27
|
-
def validate_html?
|
28
|
-
CONFIG["validate"]["html"][YMDP_ENV]
|
29
|
-
end
|
30
|
-
|
31
|
-
def obfuscate?
|
32
|
-
CONFIG["compress"]["obfuscate"]
|
33
|
-
end
|
34
|
-
|
35
|
-
def verbose?
|
36
|
-
CONFIG["verbose"]
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|