ymdt 0.0.1 → 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.
Files changed (9) hide show
  1. data/History.txt +4 -0
  2. data/LICENSE +1 -1
  3. data/README.rdoc +15 -2
  4. data/Rakefile +1 -1
  5. data/VERSION +1 -1
  6. data/lib/ymdt.rb +27 -1
  7. data/ymdt.gemspec +18 -19
  8. metadata +38 -16
  9. data/.gitignore +0 -21
@@ -0,0 +1,4 @@
1
+ == 0.0.1 2010-01-13
2
+ * major enhancements
3
+ * wrapper for YMDT script
4
+ * <tt>get</tt>, <tt>put</tt>, <tt>ls</tt> commands
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 Jeff Coleman
1
+ Copyright (c) 2009 Capital Thought
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,6 +1,19 @@
1
1
  = ymdt
2
2
 
3
- Description goes here.
3
+ Wraps calls to the Yahoo! Mail Development Tool for creating applications
4
+ with the Yahoo! Mail Development Platform.
5
+
6
+ == Usage
7
+
8
+ @ymdt = YMDT::Base.new(:username => "username", :password => "password")
9
+
10
+ Uploads all files in "my_app/views":
11
+
12
+ @ymdt.put(:path => "/my_app/views/*")
13
+
14
+ Creates a new local server from the given application_id:
15
+
16
+ @ymdt.create(:path => "/my_new_app", :application_id => "abcdefg")
4
17
 
5
18
  == Note on Patches/Pull Requests
6
19
 
@@ -14,4 +27,4 @@ Description goes here.
14
27
 
15
28
  == Copyright
16
29
 
17
- Copyright (c) 2010 Jeff Coleman. See LICENSE for details.
30
+ Copyright (c) 2010 Capital Thought. See LICENSE for details.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ begin
11
11
  gem.homepage = "http://github.com/progressions/ymdt"
12
12
  gem.authors = ["Jeff Coleman"]
13
13
  gem.add_development_dependency "rspec", ">= 1.2.6"
14
- gem.add_development_dependency "string_masker", ">= 0"
14
+ gem.add_runtime_dependency "string_masker", ">= 0"
15
15
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.0
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'string_masker'
3
3
 
4
- module YMDT
4
+ module YMDT #:nodoc:
5
5
  class System
6
6
  def self.execute(command, params={})
7
7
  if params[:return]
@@ -12,6 +12,21 @@ module YMDT
12
12
  end
13
13
  end
14
14
 
15
+ # Wraps calls to the Yahoo! Mail Development Tool for creating applications
16
+ # with the Yahoo! Mail Development Platform.
17
+ #
18
+ # == Usage
19
+ #
20
+ # @ymdt = YMDT::Base.new(:username => "username", :password => "password")
21
+ #
22
+ # Uploads all files in "my_app/views":
23
+ #
24
+ # @ymdt.put(:path => "/my_app/views/*")
25
+ #
26
+ # Creates a new local server from the given application_id:
27
+ #
28
+ # @ymdt.create(:path => "/my_new_app", :application_id => "abcdefg")
29
+ #
15
30
  class Base
16
31
  attr_accessor :username, :password, :applications_path, :script_path
17
32
 
@@ -37,6 +52,10 @@ module YMDT
37
52
  invoke(:get, params)
38
53
  end
39
54
 
55
+ def compress(params={})
56
+ invoke(:compress, params)
57
+ end
58
+
40
59
  def create(params={})
41
60
  raise ArgumentError.new("application_id required") unless params[:application_id]
42
61
  invoke(:get, params)
@@ -60,6 +79,8 @@ module YMDT
60
79
 
61
80
  private
62
81
 
82
+ # print the command on the screen
83
+ #
63
84
  def output_command(command_string)
64
85
  $stdout.puts
65
86
  $stdout.puts StringMasker.new(command_string, :username => username, :password => password).to_s
@@ -82,6 +103,11 @@ module YMDT
82
103
  # execute script
83
104
  #
84
105
  options << script_path
106
+
107
+ # if :compress is true compress it
108
+ if params[:compress]
109
+ command = "compress"
110
+ end
85
111
 
86
112
  # command (:put, :get, etc)
87
113
  #
@@ -1,51 +1,50 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ymdt}
8
- s.version = "0.0.1"
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-13}
12
+ s.date = %q{2011-04-22}
13
13
  s.description = %q{Wrapper for Yahoo! Mail Development Tool, handles deploying applications to Yahoo! Mail Development Platform.}
14
14
  s.email = %q{progressions@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "lib/ymdt.rb",
27
- "spec/spec.opts",
28
- "spec/spec_helper.rb",
29
- "spec/ymdt_spec.rb",
30
- "ymdt.gemspec"
21
+ "History.txt",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/ymdt.rb",
27
+ "spec/spec.opts",
28
+ "spec/spec_helper.rb",
29
+ "spec/ymdt_spec.rb",
30
+ "ymdt.gemspec"
31
31
  ]
32
32
  s.homepage = %q{http://github.com/progressions/ymdt}
33
- s.rdoc_options = ["--charset=UTF-8"]
34
33
  s.require_paths = ["lib"]
35
- s.rubygems_version = %q{1.3.5}
34
+ s.rubygems_version = %q{1.3.7}
36
35
  s.summary = %q{Wrapper for Yahoo! Mail Development Tool}
37
36
  s.test_files = [
38
37
  "spec/spec_helper.rb",
39
- "spec/ymdt_spec.rb"
38
+ "spec/ymdt_spec.rb"
40
39
  ]
41
40
 
42
41
  if s.respond_to? :specification_version then
43
42
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
44
43
  s.specification_version = 3
45
44
 
46
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
45
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
46
  s.add_development_dependency(%q<rspec>, [">= 1.2.6"])
48
- s.add_development_dependency(%q<string_masker>, [">= 0"])
47
+ s.add_runtime_dependency(%q<string_masker>, [">= 0"])
49
48
  else
50
49
  s.add_dependency(%q<rspec>, [">= 1.2.6"])
51
50
  s.add_dependency(%q<string_masker>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ymdt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
5
11
  platform: ruby
6
12
  authors:
7
13
  - Jeff Coleman
@@ -9,29 +15,39 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-01-13 00:00:00 -06:00
18
+ date: 2011-04-22 00:00:00 -05:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: rspec
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 19
30
+ segments:
31
+ - 1
32
+ - 2
33
+ - 6
23
34
  version: 1.2.6
24
- version:
35
+ type: :development
36
+ version_requirements: *id001
25
37
  - !ruby/object:Gem::Dependency
26
38
  name: string_masker
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
43
  - - ">="
32
44
  - !ruby/object:Gem::Version
45
+ hash: 3
46
+ segments:
47
+ - 0
33
48
  version: "0"
34
- version:
49
+ type: :runtime
50
+ version_requirements: *id002
35
51
  description: Wrapper for Yahoo! Mail Development Tool, handles deploying applications to Yahoo! Mail Development Platform.
36
52
  email: progressions@gmail.com
37
53
  executables: []
@@ -43,7 +59,7 @@ extra_rdoc_files:
43
59
  - README.rdoc
44
60
  files:
45
61
  - .document
46
- - .gitignore
62
+ - History.txt
47
63
  - LICENSE
48
64
  - README.rdoc
49
65
  - Rakefile
@@ -58,26 +74,32 @@ homepage: http://github.com/progressions/ymdt
58
74
  licenses: []
59
75
 
60
76
  post_install_message:
61
- rdoc_options:
62
- - --charset=UTF-8
77
+ rdoc_options: []
78
+
63
79
  require_paths:
64
80
  - lib
65
81
  required_ruby_version: !ruby/object:Gem::Requirement
82
+ none: false
66
83
  requirements:
67
84
  - - ">="
68
85
  - !ruby/object:Gem::Version
86
+ hash: 3
87
+ segments:
88
+ - 0
69
89
  version: "0"
70
- version:
71
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
+ none: false
72
92
  requirements:
73
93
  - - ">="
74
94
  - !ruby/object:Gem::Version
95
+ hash: 3
96
+ segments:
97
+ - 0
75
98
  version: "0"
76
- version:
77
99
  requirements: []
78
100
 
79
101
  rubyforge_project:
80
- rubygems_version: 1.3.5
102
+ rubygems_version: 1.3.7
81
103
  signing_key:
82
104
  specification_version: 3
83
105
  summary: Wrapper for Yahoo! Mail Development Tool
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC