ymdp 1.3.4 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ymdp/compiler/domains.rb +2 -2
- data/lib/ymdp/view/application_view.rb +5 -5
- data/ymdp.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.0
|
@@ -21,7 +21,7 @@ module YMDP
|
|
21
21
|
@options = options
|
22
22
|
@servers = @options[:servers]
|
23
23
|
@domains = @options[:domain] || all_domains
|
24
|
-
@domains = @domains
|
24
|
+
@domains = Array(@domains)
|
25
25
|
@message = @options[:message]
|
26
26
|
|
27
27
|
commit if @options[:commit]
|
@@ -75,4 +75,4 @@ module YMDP
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
78
|
-
end
|
78
|
+
end
|
@@ -207,7 +207,7 @@ module YMDP
|
|
207
207
|
output = []
|
208
208
|
|
209
209
|
if params[:partial]
|
210
|
-
params[:partial].
|
210
|
+
Array(params[:partial]).each do |partial|
|
211
211
|
output << render_partial(partial)
|
212
212
|
end
|
213
213
|
end
|
@@ -291,7 +291,7 @@ module YMDP
|
|
291
291
|
end
|
292
292
|
|
293
293
|
def render_javascript_partial(params)
|
294
|
-
filename = params[:filename] || params[:javascript].
|
294
|
+
filename = params[:filename] || Array(params[:javascript]).join("_")
|
295
295
|
|
296
296
|
if configuration.external_assets["javascripts"]
|
297
297
|
tags = false
|
@@ -304,7 +304,7 @@ module YMDP
|
|
304
304
|
# Render a JavaScript partial.
|
305
305
|
#
|
306
306
|
if params[:javascript]
|
307
|
-
content = render_javascripts(params[:javascript]
|
307
|
+
content = render_javascripts(Array(params[:javascript]), params[:filename])
|
308
308
|
unless content.blank?
|
309
309
|
output << "<script type='text/javascript'>" if tags
|
310
310
|
output << content
|
@@ -371,11 +371,11 @@ module YMDP
|
|
371
371
|
# Render a CSS partial.
|
372
372
|
#
|
373
373
|
def render_stylesheet_partial(params)
|
374
|
-
filename = params[:filename] || params[:stylesheet].
|
374
|
+
filename = params[:filename] || Array(params[:stylesheet]).join("_")
|
375
375
|
external_asset = params[:tags] && configuration.external_assets["stylesheets"]
|
376
376
|
output = []
|
377
377
|
if params[:stylesheet]
|
378
|
-
content = render_stylesheets(params[:stylesheet]
|
378
|
+
content = render_stylesheets(Array(params[:stylesheet]), params[:filename])
|
379
379
|
unless content.blank?
|
380
380
|
output << "<style type='text/css'>" unless external_asset
|
381
381
|
output << content
|
data/ymdp.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "ymdp"
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Isaac Priestley"]
|
12
|
-
s.date = "2012-07-
|
12
|
+
s.date = "2012-07-27"
|
13
13
|
s.description = "Framework for developing applications in the Yahoo! Mail Development Platform."
|
14
14
|
s.email = "progressions@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ymdp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
- 3
|
9
8
|
- 4
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 1.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Isaac Priestley
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-07-
|
18
|
+
date: 2012-07-27 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|