ymdp 0.4.9 → 0.5.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/Rakefile CHANGED
@@ -9,7 +9,7 @@ begin
9
9
  gem.description = "Framework for developing applications in the Yahoo! Mail Development Platform."
10
10
  gem.email = "progressions@gmail.com"
11
11
  gem.homepage = "http://github.com/progressions/ymdp"
12
- gem.authors = ["Jeff Coleman"]
12
+ gem.authors = ["Isaac Priestley"]
13
13
  # gem.add_development_dependency "rspec", ">= 1.2.6"
14
14
  # gem.add_development_dependency "cucumber", ">= 0"
15
15
  gem.add_runtime_dependency "haml", ">= 0"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.9
1
+ 0.5.0
@@ -311,7 +311,6 @@ module YMDP
311
311
  filename = @file.split("/").last
312
312
  tmp_filename = "#{TMP_PATH}/#{filename}"
313
313
  F.save_to_file(result, tmp_filename)
314
- result = Epic::Compressor.new(tmp_filename).compress if configuration.compress["embedded_js"]
315
314
  write_template_without_layout(result)
316
315
  end
317
316
  end
@@ -155,16 +155,8 @@ module YMDP
155
155
  options("password")
156
156
  end
157
157
 
158
- def compress_embedded_js?
159
- options("compress", "embedded_js")
160
- end
161
-
162
- def compress_js_assets?
163
- options("compress", "js_assets")
164
- end
165
-
166
- def compress_css?
167
- options("compress", "css")
158
+ def compress?
159
+ options("compress")
168
160
  end
169
161
 
170
162
  def validate_embedded_js?
@@ -511,7 +511,7 @@ def deploy(application, path, options={})
511
511
  Rake::Task["validate:#{application}:javascripts"].invoke if CONFIG.validate_js_assets?
512
512
  Rake::Task["validate:#{application}:json"].invoke if CONFIG.validate_json_assets?
513
513
 
514
- ymdt.put(:application => application, :path => path, :sync => sync)
514
+ ymdt.put(:application => application, :path => path, :sync => sync, :compress => CONFIG.compress?)
515
515
  end
516
516
 
517
517
  def deploy_path(application, path, options={})
@@ -539,7 +539,7 @@ def deploy_path(application, path, options={})
539
539
 
540
540
  if file =~ Regexp.new(path)
541
541
  puts file
542
- ymdt.put(:application => application, :path => new_path, :sync => sync)
542
+ ymdt.put(:application => application, :path => new_path, :sync => sync, :compress => CONFIG.compress?)
543
543
  end
544
544
  end
545
545
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ymdp}
8
- s.version = "0.4.9"
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Jeff Coleman"]
12
- s.date = %q{2011-04-11}
11
+ s.authors = ["Isaac Priestley"]
12
+ s.date = %q{2011-04-22}
13
13
  s.description = %q{Framework for developing applications in the Yahoo! Mail Development Platform.}
14
14
  s.email = %q{progressions@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ymdp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- - 9
10
- version: 0.4.9
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
- - Jeff Coleman
13
+ - Isaac Priestley
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-11 00:00:00 -05:00
18
+ date: 2011-04-22 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency