RuGPost 0.1.0.beta.3 → 0.1.0.beta.4

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/Gemfile CHANGED
@@ -1,16 +1,13 @@
1
1
  source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
- group :runtime do
6
- gem "gli", ">= 1.3.0"
7
- gem "gmail", ">= 0.4.0"
8
- end
9
- # Add dependencies to develop your gem here.
10
- # Include everything needed to run rake, tests, features, etc.
4
+
5
+ gem "gli", ">= 1.3.0"
6
+ gem "RedCloth", ">= 4.2.7"
7
+ gem "gmail", ">= 0.4.0"
8
+ gem "extlib", ">= 0.9.15"
9
+
11
10
  group :development do
12
- gem "shoulda", ">= 0"
13
- gem "bundler", "~> 1.0.0"
14
11
  gem "jeweler", "~> 1.6.0"
15
- gem "rcov", ">= 0"
12
+ gem "rspec", "~> 2.5.0"
16
13
  end
data/Gemfile.lock CHANGED
@@ -1,6 +1,9 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ RedCloth (4.2.7)
5
+ diff-lcs (1.1.2)
6
+ extlib (0.9.15)
4
7
  git (1.2.5)
5
8
  gli (1.3.0)
6
9
  gmail (0.4.0)
@@ -23,8 +26,14 @@ GEM
23
26
  oauth (0.4.4)
24
27
  polyglot (0.3.1)
25
28
  rake (0.8.7)
26
- rcov (0.9.9)
27
- shoulda (2.11.3)
29
+ rspec (2.5.0)
30
+ rspec-core (~> 2.5.0)
31
+ rspec-expectations (~> 2.5.0)
32
+ rspec-mocks (~> 2.5.0)
33
+ rspec-core (2.5.2)
34
+ rspec-expectations (2.5.0)
35
+ diff-lcs (~> 1.1.2)
36
+ rspec-mocks (2.5.0)
28
37
  treetop (1.4.9)
29
38
  polyglot (>= 0.3.1)
30
39
 
@@ -32,9 +41,9 @@ PLATFORMS
32
41
  ruby
33
42
 
34
43
  DEPENDENCIES
35
- bundler (~> 1.0.0)
44
+ RedCloth (>= 4.2.7)
45
+ extlib (>= 0.9.15)
36
46
  gli (>= 1.3.0)
37
47
  gmail (>= 0.4.0)
38
48
  jeweler (~> 1.6.0)
39
- rcov
40
- shoulda
49
+ rspec (~> 2.5.0)
data/README.rdoc CHANGED
@@ -1,6 +1,41 @@
1
1
  = RuGPost
2
2
 
3
- Description goes here.
3
+ RuGPost (RubyGmailPosterous) is a command line which allows to create posts on your own posterous sites using your GMail account. You start creating you repo (corresponding to a posterous site), and then adding your drafts using **textile** lightweight markup. When your draft is ready, you just use the _publish_ feature to have you draft converted to **html** and posted to the posterous site.
4
+
5
+
6
+ = Installation
7
+
8
+ gem install RuGPost
9
+
10
+ = Usage
11
+
12
+ Create a RuGPost project:
13
+
14
+ rugpost new RuGPost
15
+
16
+ Add a repository (must have same name of the posterous site):
17
+
18
+ rugpost repo RuGPost
19
+
20
+ Create your first draft:
21
+
22
+ rugpost draft helloworld --site RuGPost
23
+
24
+ Publish your draft:
25
+
26
+ rugpost publish helloworld --site RuGpost
27
+
28
+ That's all. Note that if you follow the above steps as is, you should be able to post in a minute a nice 'helloworld' on rugpost.posterous.com.
29
+
30
+ = Help
31
+
32
+ For help about the available commands use:
33
+
34
+ rugpost --help
35
+
36
+ For help about a specific command use:
37
+
38
+ rugpost --help <command>
4
39
 
5
40
  == Contributing to RuGPost
6
41
 
@@ -14,6 +49,5 @@ Description goes here.
14
49
 
15
50
  == Copyright
16
51
 
17
- Copyright (c) 2011 emime. See LICENSE.txt for
52
+ Copyright (c) 2011 empo. See LICENSE.txt for
18
53
  further details.
19
-
data/Rakefile CHANGED
@@ -1,53 +1,27 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
4
  require 'rake'
13
5
 
14
6
  require 'jeweler'
15
7
  Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "RuGPost"
18
- gem.homepage = "http://github.com/3mime/RuGPost"
19
- gem.license = "MIT"
20
- gem.summary = %Q{Ru(by) G(mail) Post(erous) command line facility for creating posts on Posterous}
21
- gem.description = %Q{Ru(by) G(mail) Post(erous) command line facility}
22
- gem.email = "e.141592@gmail.com"
23
- gem.authors = ["emime"]
24
- # dependencies defined in Gemfile
8
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
9
+ gem.name = "RuGPost"
10
+ gem.homepage = "http://github.com/3mime/RuGPost"
11
+ gem.license = "MIT"
12
+ gem.summary = %Q{Ru(by) G(mail) Post(erous) command line facility for creating posts on Posterous}
13
+ gem.description = %Q{Ru(by) G(mail) Post(erous) command line facility}
14
+ gem.email = "e.141592@gmail.com"
15
+ gem.authors = ["emime"]
25
16
  end
26
17
  Jeweler::RubygemsDotOrgTasks.new
27
18
 
28
- require 'rake/testtask'
29
- Rake::TestTask.new(:test) do |test|
30
- test.libs << 'lib' << 'test'
31
- test.pattern = 'test/**/test_*.rb'
32
- test.verbose = true
33
- end
34
-
35
- require 'rcov/rcovtask'
36
- Rcov::RcovTask.new do |test|
37
- test.libs << 'test'
38
- test.pattern = 'test/**/test_*.rb'
39
- test.verbose = true
40
- test.rcov_opts << '--exclude "gems/*"'
41
- end
42
-
43
- task :default => :test
44
19
 
45
20
  require 'rake/rdoctask'
46
21
  Rake::RDocTask.new do |rdoc|
47
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
-
49
- rdoc.rdoc_dir = 'rdoc'
50
- rdoc.title = "RuGPost #{version}"
51
- rdoc.rdoc_files.include('README*')
52
- rdoc.rdoc_files.include('lib/**/*.rb')
22
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
23
+ rdoc.rdoc_dir = 'rdoc'
24
+ rdoc.title = "RuGPost #{version}"
25
+ rdoc.rdoc_files.include('README*')
26
+ rdoc.rdoc_files.include('lib/**/*.rb')
53
27
  end
data/RuGPost.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{RuGPost}
8
- s.version = "0.1.0.beta.3"
8
+ s.version = "0.1.0.beta.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{emime}]
12
- s.date = %q{2011-05-08}
12
+ s.date = %q{2011-05-10}
13
13
  s.description = %q{Ru(by) G(mail) Post(erous) command line facility}
14
14
  s.email = %q{e.141592@gmail.com}
15
15
  s.executables = [%q{rugpost}]
@@ -27,7 +27,6 @@ Gem::Specification.new do |s|
27
27
  "RuGPost.gemspec",
28
28
  "VERSION",
29
29
  "bin/rugpost",
30
- "lib/.RuGPost.rb.swp",
31
30
  "lib/RuGPost.rb",
32
31
  "lib/rugpost/commands.rb",
33
32
  "lib/rugpost/commands/post_commands.rb",
@@ -40,10 +39,32 @@ Gem::Specification.new do |s|
40
39
  "lib/rugpost/utilis.rb",
41
40
  "pkg/RuGPost-0.1.0.1.beta.gem",
42
41
  "pkg/RuGPost-0.1.0.beta.2.gem",
43
- "spec/.spec_helper.rb.swp",
42
+ "pkg/RuGPost-0.1.0.beta.3.gem",
43
+ "rdoc/classes/RuGPost.html",
44
+ "rdoc/classes/RuGPost/Post.html",
45
+ "rdoc/classes/RuGPost/Project.html",
46
+ "rdoc/classes/RuGPost/Site.html",
47
+ "rdoc/classes/RuGPost/Utilis.html",
48
+ "rdoc/created.rid",
49
+ "rdoc/files/README_rdoc.html",
50
+ "rdoc/files/lib/RuGPost_rb.html",
51
+ "rdoc/files/lib/rugpost/commands/post_commands_rb.html",
52
+ "rdoc/files/lib/rugpost/commands/project_commands_rb.html",
53
+ "rdoc/files/lib/rugpost/commands_rb.html",
54
+ "rdoc/files/lib/rugpost/on_error_rb.html",
55
+ "rdoc/files/lib/rugpost/post_rb.html",
56
+ "rdoc/files/lib/rugpost/prepost_rb.html",
57
+ "rdoc/files/lib/rugpost/project_rb.html",
58
+ "rdoc/files/lib/rugpost/site_rb.html",
59
+ "rdoc/files/lib/rugpost/utilis_rb.html",
60
+ "rdoc/fr_class_index.html",
61
+ "rdoc/fr_file_index.html",
62
+ "rdoc/fr_method_index.html",
63
+ "rdoc/index.html",
64
+ "rdoc/rdoc-style.css",
65
+ "spec/post_spec.rb",
66
+ "spec/project_spec.rb",
44
67
  "spec/spec_helper.rb",
45
- "spec/spec_post.rb",
46
- "spec/spec_project.rb",
47
68
  "test/helper.rb",
48
69
  "test/test_RuGPost.rb"
49
70
  ]
@@ -58,26 +79,26 @@ Gem::Specification.new do |s|
58
79
 
59
80
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
60
81
  s.add_runtime_dependency(%q<gli>, [">= 1.3.0"])
82
+ s.add_runtime_dependency(%q<RedCloth>, [">= 4.2.7"])
61
83
  s.add_runtime_dependency(%q<gmail>, [">= 0.4.0"])
62
- s.add_development_dependency(%q<shoulda>, [">= 0"])
63
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
84
+ s.add_runtime_dependency(%q<extlib>, [">= 0.9.15"])
64
85
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.0"])
65
- s.add_development_dependency(%q<rcov>, [">= 0"])
86
+ s.add_development_dependency(%q<rspec>, ["~> 2.5.0"])
66
87
  else
67
88
  s.add_dependency(%q<gli>, [">= 1.3.0"])
89
+ s.add_dependency(%q<RedCloth>, [">= 4.2.7"])
68
90
  s.add_dependency(%q<gmail>, [">= 0.4.0"])
69
- s.add_dependency(%q<shoulda>, [">= 0"])
70
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
91
+ s.add_dependency(%q<extlib>, [">= 0.9.15"])
71
92
  s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
72
- s.add_dependency(%q<rcov>, [">= 0"])
93
+ s.add_dependency(%q<rspec>, ["~> 2.5.0"])
73
94
  end
74
95
  else
75
96
  s.add_dependency(%q<gli>, [">= 1.3.0"])
97
+ s.add_dependency(%q<RedCloth>, [">= 4.2.7"])
76
98
  s.add_dependency(%q<gmail>, [">= 0.4.0"])
77
- s.add_dependency(%q<shoulda>, [">= 0"])
78
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
99
+ s.add_dependency(%q<extlib>, [">= 0.9.15"])
79
100
  s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
80
- s.add_dependency(%q<rcov>, [">= 0"])
101
+ s.add_dependency(%q<rspec>, ["~> 2.5.0"])
81
102
  end
82
103
  end
83
104
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0.beta.3
1
+ 0.1.0.beta.4
data/lib/RuGPost.rb CHANGED
@@ -20,5 +20,6 @@ module RuGPost
20
20
  # project configuration file
21
21
  CONFIG = 'config.yaml'
22
22
  TEMPLATE = 'template'
23
+ VERSION = '0.1.0.beta'
23
24
 
24
25
  end
data/lib/rugpost/post.rb CHANGED
@@ -50,7 +50,7 @@ module RuGPost
50
50
 
51
51
  def send_gmail(gmail)
52
52
  gmail.deliver do
53
- to "rugpost@posterous.com"
53
+ to "#{@metaops[:site]}@posterous.com"
54
54
  subject post.subject
55
55
  text_part do
56
56
  body post.html_o
Binary file