shabng 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +10 -0
- data/bin/shabng +9 -9
- data/lib/post.rb +1 -1
- data/shabng.gemspec +3 -2
- metadata +5 -4
data/HISTORY
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
=HISTORY
|
2
|
+
|
3
|
+
==0.0.1 - November 11, 2010
|
4
|
+
* First public release
|
5
|
+
|
6
|
+
==0.0.2 - 0.0.6
|
7
|
+
* Cleanup releases, figuring out how Rubygems work.
|
8
|
+
|
9
|
+
==0.0.7 - November 14, 2010
|
10
|
+
* Addition of sequence attribute for posts, so we're not combing through everyone's posts to edit.
|
data/bin/shabng
CHANGED
@@ -8,7 +8,7 @@ require 'xmlsimple'
|
|
8
8
|
#require 'ap'
|
9
9
|
require 'post.rb'
|
10
10
|
|
11
|
-
SB_VERSION = "0.0.
|
11
|
+
SB_VERSION = "0.0.7"
|
12
12
|
|
13
13
|
# get configuration file
|
14
14
|
# and conduct testing to ensure proper setup
|
@@ -116,14 +116,14 @@ elsif arg == "pull"
|
|
116
116
|
|
117
117
|
# hold off on delete until rest-client supports params with delete request, so we can authenticate!
|
118
118
|
# https://github.com/archiloque/rest-client/issues#issue/48
|
119
|
-
elsif arg == "delete"
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
119
|
+
# elsif arg == "delete"
|
120
|
+
# # delete blog post
|
121
|
+
# if arg2.nil?
|
122
|
+
# puts "Use a post ID with this command to specify what to delete from your blog."
|
123
|
+
# else
|
124
|
+
# @post = Post.new(@urlstring, @apikey)
|
125
|
+
# @post.destroy(arg2)
|
126
|
+
# end
|
127
127
|
|
128
128
|
elsif arg == "help"
|
129
129
|
puts "List of shabng commands:"
|
data/lib/post.rb
CHANGED
@@ -26,7 +26,7 @@ class Post
|
|
26
26
|
if posts["post"].nil? == false
|
27
27
|
posts["post"].each do |d|
|
28
28
|
pubdate = Time.parse(d["publication-date"].first["content"])
|
29
|
-
puts "[" + d["
|
29
|
+
puts "[" + d["sequence"].first["content"] + "] " + d["title"].first + " - " + pubdate.strftime("%Y-%m-%d") + " - " + d["status"].first
|
30
30
|
end
|
31
31
|
else
|
32
32
|
puts "No postings yet. Use the new command to create your first!"
|
data/shabng.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
|
|
7
7
|
## If your rubyforge_project name is different, then edit it and comment out
|
8
8
|
## the sub! line in the Rakefile
|
9
9
|
s.name = 'shabng'
|
10
|
-
s.version = '0.0.
|
11
|
-
s.date = '2010-11-
|
10
|
+
s.version = '0.0.7'
|
11
|
+
s.date = '2010-11-14'
|
12
12
|
s.rubyforge_project = 'shabng'
|
13
13
|
|
14
14
|
## Make sure your summary is short. The description may be as long
|
@@ -40,6 +40,7 @@ Gem::Specification.new do |s|
|
|
40
40
|
## THE MANIFEST COMMENTS, they are used as delimiters by the task.
|
41
41
|
# = MANIFEST =
|
42
42
|
s.files = %w[
|
43
|
+
HISTORY
|
43
44
|
LICENSE
|
44
45
|
README
|
45
46
|
shabng.gemspec
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shabng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aaron Vegh
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-14 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -87,6 +87,7 @@ extra_rdoc_files:
|
|
87
87
|
- LICENSE
|
88
88
|
- DOC/CommandRef.rdoc
|
89
89
|
files:
|
90
|
+
- HISTORY
|
90
91
|
- LICENSE
|
91
92
|
- README
|
92
93
|
- shabng.gemspec
|