ymdp 1.0.1 → 1.1.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/base.rb +16 -4
- data/ymdp.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/lib/ymdp/compiler/base.rb
CHANGED
@@ -86,22 +86,34 @@ module YMDP
|
|
86
86
|
def copy_config_files
|
87
87
|
copy_config
|
88
88
|
copy_auth
|
89
|
+
copy_config_images
|
89
90
|
end
|
90
91
|
|
91
92
|
def copy_config
|
92
|
-
$stdout.puts "Copying
|
93
|
-
source_path = "#{config_path}/config.xml
|
93
|
+
$stdout.puts "Copying config.xml for #{domain}"
|
94
|
+
source_path = "#{config_path}/environments/#{domain}/config.xml"
|
94
95
|
destination_path = "#{servers_path}/#{domain}/config.xml"
|
95
96
|
FileUtils.cp_r(source_path, destination_path)
|
96
97
|
end
|
97
98
|
|
98
99
|
def copy_auth
|
99
|
-
$stdout.puts "Copying
|
100
|
-
source_path = "#{config_path}/auth.xml
|
100
|
+
$stdout.puts "Copying auth.xml for #{domain}"
|
101
|
+
source_path = "#{config_path}/environments/#{domain}/auth.xml"
|
101
102
|
destination_path = "#{servers_path}/#{domain}/auth.xml"
|
102
103
|
FileUtils.cp_r(source_path, destination_path)
|
103
104
|
end
|
104
105
|
|
106
|
+
def copy_config_images
|
107
|
+
["full", "icon", "thumbnail"].each do |image|
|
108
|
+
source_path = "#{config_path}/environments/#{domain}/#{image}.png"
|
109
|
+
destination_path = "#{servers_path}/#{domain}/#{image}.png"
|
110
|
+
if File.exists?(source_path)
|
111
|
+
$stdout.puts "Copying #{image}.png for #{domain}"
|
112
|
+
FileUtils.cp_r(source_path, destination_path)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
105
117
|
# Build this file if it's either:
|
106
118
|
# * a view, but not a partial or layout, or
|
107
119
|
# * a JavaScript file.
|
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.0
|
8
|
+
s.version = "1.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 = ["Isaac Priestley"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-05-01"
|
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: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 1.1.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-
|
18
|
+
date: 2012-05-01 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|