ymdp 0.0.8 → 0.0.9

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
@@ -18,6 +18,7 @@ begin
18
18
  gem.add_development_dependency "activesupport", ">= 0"
19
19
  gem.add_development_dependency "sishen-rtranslate", ">= 0"
20
20
  gem.add_development_dependency "basepath", ">= 0"
21
+ gem.add_development_dependency "bundler", ">= 0"
21
22
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
22
23
  end
23
24
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
data/bin/ymdp CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- @command = ARGV[0]
3
+ require 'fileutils'
4
4
 
5
- if @command == "init"
5
+ dir = File.dirname(__FILE__)
6
6
 
7
- require 'fileutils'
7
+ new_application_dir = "#{dir}/../lib/new_application"
8
8
 
9
- dir = File.dirname(__FILE__)
9
+ @command = ARGV[0]
10
10
 
11
- new_application_dir = "#{dir}/../lib/new_application/."
11
+ if @command == "init"
12
12
 
13
13
  # Create the structure for a YMDP project
14
14
 
@@ -39,13 +39,12 @@ MESSAGE
39
39
  puts @message
40
40
 
41
41
  FileUtils.mkdir_p(@project_name)
42
- FileUtils.cp_r(new_application_dir, @project_name)
43
- else
44
- commands = ARGV.join(" ")
45
- if File.exists?("./rake")
46
- system "./rake #{commands}"
47
- else
48
- system "rake #{commands}"
49
- end
42
+ FileUtils.cp_r("#{new_application_dir}/.", @project_name)
43
+ elsif @command == "update"
44
+ puts "Updating scripts..."
45
+ FileUtils.cp_r(Dir.glob("#{new_application_dir}/config/*.example"), "./config", :verbose => true)
46
+ FileUtils.cp_r("#{new_application_dir}/lib/tasks/.", "./lib/tasks", :verbose => true)
47
+ FileUtils.cp_r("#{new_application_dir}/script/.", "./script", :verbose => true)
48
+ FileUtils.cp_r("#{new_application_dir}/ymdp", "./", :verbose => true)
50
49
  end
51
50
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  commands = ARGV.join(" ")
4
- if File.exists?("./rake")
5
- system "./rake #{commands}"
4
+ if File.exists?("bin/rake")
5
+ system "bin/rake #{commands}"
6
6
  else
7
7
  system "rake #{commands}"
8
8
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ymdp}
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
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"]
@@ -138,6 +138,7 @@ Gem::Specification.new do |s|
138
138
  s.add_development_dependency(%q<activesupport>, [">= 0"])
139
139
  s.add_development_dependency(%q<sishen-rtranslate>, [">= 0"])
140
140
  s.add_development_dependency(%q<basepath>, [">= 0"])
141
+ s.add_development_dependency(%q<bundler>, [">= 0"])
141
142
  else
142
143
  s.add_dependency(%q<haml>, [">= 0"])
143
144
  s.add_dependency(%q<json>, [">= 0"])
@@ -146,6 +147,7 @@ Gem::Specification.new do |s|
146
147
  s.add_dependency(%q<activesupport>, [">= 0"])
147
148
  s.add_dependency(%q<sishen-rtranslate>, [">= 0"])
148
149
  s.add_dependency(%q<basepath>, [">= 0"])
150
+ s.add_dependency(%q<bundler>, [">= 0"])
149
151
  end
150
152
  else
151
153
  s.add_dependency(%q<haml>, [">= 0"])
@@ -155,6 +157,7 @@ Gem::Specification.new do |s|
155
157
  s.add_dependency(%q<activesupport>, [">= 0"])
156
158
  s.add_dependency(%q<sishen-rtranslate>, [">= 0"])
157
159
  s.add_dependency(%q<basepath>, [">= 0"])
160
+ s.add_dependency(%q<bundler>, [">= 0"])
158
161
  end
159
162
  end
160
163
 
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.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Coleman
@@ -82,6 +82,16 @@ dependencies:
82
82
  - !ruby/object:Gem::Version
83
83
  version: "0"
84
84
  version:
85
+ - !ruby/object:Gem::Dependency
86
+ name: bundler
87
+ type: :development
88
+ version_requirement:
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: "0"
94
+ version:
85
95
  description: Framework for developing applications in the Yahoo! Mail Development Platform.
86
96
  email: progressions@gmail.com
87
97
  executables: