postage 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/INFO CHANGED
@@ -1,7 +1,7 @@
1
1
  :name: postage
2
- :version: 0.1.2
3
- :date: 2009-07-11
4
- :cycle: Development release - Pre-alpha
2
+ :version: 0.1.3
3
+ :date: 2009-07-21
4
+ :cycle: Beta release
5
5
  :summary:
6
6
  Postage API implemented for helper handle text files for posts.
7
7
  :description:
data/README CHANGED
@@ -48,3 +48,7 @@ Please, Postage has dependencies and most be installed.
48
48
  * {Changes}[:link:CHANGES.html]
49
49
  * {License}[:link:LICENSE.html]
50
50
 
51
+ == Copyright
52
+
53
+ Copyright (c) 2009 Hallison Batista
54
+
data/lib/postage/post.rb CHANGED
@@ -77,6 +77,7 @@ class Post
77
77
 
78
78
  # Get post file name and creates content and save into directory.
79
79
  def create_into(directory)
80
+ build_file
80
81
  File.open(File.join(directory, @file), 'w+') do |file|
81
82
  post = self
82
83
  file << ERB.new(load_template).result(binding)
data/lib/postage.rb CHANGED
@@ -8,10 +8,6 @@ module Postage
8
8
  require dependency
9
9
  end
10
10
 
11
- %w(ruby-debug).map do |optional|
12
- require optional
13
- end
14
-
15
11
  # Root directory for references library.
16
12
  ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
17
13
  INFO = YAML.load_file(File.join(ROOT, "INFO"))
data/tasks/package.rake CHANGED
@@ -55,11 +55,16 @@ task :manifest do |file|
55
55
  end
56
56
  end
57
57
 
58
- desc "Install gem file."
58
+ desc "Install gem package."
59
59
  task :install => [ :manifest, :gem ] do
60
60
  `gem install pkg/#{spec.name}-#{spec.version}.gem --local`
61
61
  end
62
62
 
63
+ desc "Uninstall gem package."
64
+ task :uninstall do
65
+ `gem uninstall #{spec.name}`
66
+ end
67
+
63
68
  desc 'Publish gem and tarball to rubyforge.org.'
64
69
  task :release => [ :gem, :package] do |t|
65
70
  sh <<-end_sh.gsub(/^[ ]{4}/,'')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hallison Batista
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-11 00:00:00 -04:00
12
+ date: 2009-07-21 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency