postage 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/INFO CHANGED
@@ -1,5 +1,5 @@
1
1
  :name: postage
2
- :version: 0.1.1
2
+ :version: 0.1.2
3
3
  :date: 2009-07-11
4
4
  :cycle: Development release - Pre-alpha
5
5
  :summary:
data/MANIFEST CHANGED
@@ -16,6 +16,5 @@ test/fixtures/20080501-postage_test_post.ruby.postage.mkd
16
16
  test/fixtures/20080601-postage_test_post.ruby.postage.mkd
17
17
  test/fixtures/20090604-postage_test_post.ruby.postage.mkd
18
18
  test/fixtures/20090604143805-postage_test_post.ruby.postage.mkd
19
- test/fixtures/20090608-creating_new_entry_from_test_unit.ruby.postage.test.mkd
20
19
  test/test_finder.rb
21
20
  test/test_post.rb
data/lib/postage/post.rb CHANGED
@@ -77,7 +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
- File.open(File.join(directory, @file), 'a') do |file|
80
+ File.open(File.join(directory, @file), 'w+') do |file|
81
81
  post = self
82
82
  file << ERB.new(load_template).result(binding)
83
83
  end
data/lib/postage.rb CHANGED
@@ -1,7 +1,4 @@
1
1
  # Copyright (c) 2009, Hallison Vasconcelos Batista
2
- #
3
- # Author:: Hallison Batista <email@hallisonbatista.com>
4
- #
5
2
  $LOAD_PATH << File.expand_path(File.dirname(__FILE__))
6
3
 
7
4
  # Main module for API.
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hallison Batista
@@ -60,7 +60,6 @@ files:
60
60
  - test/fixtures/20080601-postage_test_post.ruby.postage.mkd
61
61
  - test/fixtures/20090604-postage_test_post.ruby.postage.mkd
62
62
  - test/fixtures/20090604143805-postage_test_post.ruby.postage.mkd
63
- - test/fixtures/20090608-creating_new_entry_from_test_unit.ruby.postage.test.mkd
64
63
  - test/test_finder.rb
65
64
  - test/test_post.rb
66
65
  has_rdoc: true
@@ -1,192 +0,0 @@
1
- Creating new `entry` from test unit
2
- ===================================
3
-
4
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
5
-
6
- In this file, I'll write any content ... only for test.
7
- Postage is a lightweight API for load posts from flat file that contains
8
- text filtered by [Markdown][] syntax.
9
-
10
- [Markdown]: http://daringfireball.net/projects/markdown/
11
-
12
-
13
- Creating new `entry` from test unit
14
- ===================================
15
-
16
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
17
-
18
- In this file, I'll write any content ... only for test.
19
- Postage is a lightweight API for load posts from flat file that contains
20
- text filtered by [Markdown][] syntax.
21
-
22
- [Markdown]: http://daringfireball.net/projects/markdown/
23
-
24
-
25
- Creating new `entry` from test unit
26
- ===================================
27
-
28
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
29
-
30
- In this file, I'll write any content ... only for test.
31
- Postage is a lightweight API for load posts from flat file that contains
32
- text filtered by [Markdown][] syntax.
33
-
34
- [Markdown]: http://daringfireball.net/projects/markdown/
35
-
36
-
37
- Creating new `entry` from test unit
38
- ===================================
39
-
40
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
41
-
42
- In this file, I'll write any content ... only for test.
43
- Postage is a lightweight API for load posts from flat file that contains
44
- text filtered by [Markdown][] syntax.
45
-
46
- [Markdown]: http://daringfireball.net/projects/markdown/
47
-
48
-
49
- Creating new `entry` from test unit
50
- ===================================
51
-
52
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
53
-
54
- In this file, I'll write any content ... only for test.
55
- Postage is a lightweight API for load posts from flat file that contains
56
- text filtered by [Markdown][] syntax.
57
-
58
- [Markdown]: http://daringfireball.net/projects/markdown/
59
-
60
-
61
- Creating new `entry` from test unit
62
- ===================================
63
-
64
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
65
-
66
- In this file, I'll write any content ... only for test.
67
- Postage is a lightweight API for load posts from flat file that contains
68
- text filtered by [Markdown][] syntax.
69
-
70
- [Markdown]: http://daringfireball.net/projects/markdown/
71
-
72
-
73
- Creating new `entry` from test unit
74
- ===================================
75
-
76
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
77
-
78
- In this file, I'll write any content ... only for test.
79
- Postage is a lightweight API for load posts from flat file that contains
80
- text filtered by [Markdown][] syntax.
81
-
82
- [Markdown]: http://daringfireball.net/projects/markdown/
83
-
84
-
85
- Creating new `entry` from test unit
86
- ===================================
87
-
88
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
89
-
90
- In this file, I'll write any content ... only for test.
91
- Postage is a lightweight API for load posts from flat file that contains
92
- text filtered by [Markdown][] syntax.
93
-
94
- [Markdown]: http://daringfireball.net/projects/markdown/
95
-
96
-
97
- Creating new `entry` from test unit
98
- ===================================
99
-
100
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
101
-
102
- In this file, I'll write any content ... only for test.
103
- Postage is a lightweight API for load posts from flat file that contains
104
- text filtered by [Markdown][] syntax.
105
-
106
- [Markdown]: http://daringfireball.net/projects/markdown/
107
-
108
-
109
- Creating new `entry` from test unit
110
- ===================================
111
-
112
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
113
-
114
- In this file, I'll write any content ... only for test.
115
- Postage is a lightweight API for load posts from flat file that contains
116
- text filtered by [Markdown][] syntax.
117
-
118
- [Markdown]: http://daringfireball.net/projects/markdown/
119
-
120
-
121
- Creating new `entry` from test unit
122
- ===================================
123
-
124
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
125
-
126
- In this file, I'll write any content ... only for test.
127
- Postage is a lightweight API for load posts from flat file that contains
128
- text filtered by [Markdown][] syntax.
129
-
130
- [Markdown]: http://daringfireball.net/projects/markdown/
131
-
132
-
133
- Creating new `entry` from test unit
134
- ===================================
135
-
136
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
137
-
138
- In this file, I'll write any content ... only for test.
139
- Postage is a lightweight API for load posts from flat file that contains
140
- text filtered by [Markdown][] syntax.
141
-
142
- [Markdown]: http://daringfireball.net/projects/markdown/
143
-
144
-
145
- Creating new `entry` from test unit
146
- ===================================
147
-
148
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
149
-
150
- In this file, I'll write any content ... only for test.
151
- Postage is a lightweight API for load posts from flat file that contains
152
- text filtered by [Markdown][] syntax.
153
-
154
- [Markdown]: http://daringfireball.net/projects/markdown/
155
-
156
-
157
- Creating new `entry` from test unit
158
- ===================================
159
-
160
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
161
-
162
- In this file, I'll write any content ... only for test.
163
- Postage is a lightweight API for load posts from flat file that contains
164
- text filtered by [Markdown][] syntax.
165
-
166
- [Markdown]: http://daringfireball.net/projects/markdown/
167
-
168
-
169
- Creating new `entry` from test unit
170
- ===================================
171
-
172
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
173
-
174
- In this file, I'll write any content ... only for test.
175
- Postage is a lightweight API for load posts from flat file that contains
176
- text filtered by [Markdown][] syntax.
177
-
178
- [Markdown]: http://daringfireball.net/projects/markdown/
179
-
180
-
181
- Creating new `entry` from test unit
182
- ===================================
183
-
184
- Ok. This is a test for create new `entry` from test unit and this paragraph will summary.
185
-
186
- In this file, I'll write any content ... only for test.
187
- Postage is a lightweight API for load posts from flat file that contains
188
- text filtered by [Markdown][] syntax.
189
-
190
- [Markdown]: http://daringfireball.net/projects/markdown/
191
-
192
-