shabng 0.0.4 → 0.0.5

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 (4) hide show
  1. data/bin/shabng +6 -2
  2. data/lib/post.rb +1 -1
  3. data/shabng.gemspec +3 -3
  4. metadata +4 -4
data/bin/shabng CHANGED
@@ -5,7 +5,7 @@ require 'parseconfig'
5
5
  require 'rest-client'
6
6
  require 'console_editor'
7
7
  require 'xmlsimple'
8
- require 'ap'
8
+ #require 'ap'
9
9
  require 'post.rb'
10
10
 
11
11
  SB_VERSION = "0.0.4"
@@ -70,9 +70,13 @@ elsif arg == "new"
70
70
  print "Enter post title: "
71
71
  title = STDIN.gets.chomp
72
72
  eval "#{@editor} '/tmp/#{title}'"
73
+ body = File.new("/tmp/"+title).read
74
+
75
+ #post process for images and video
76
+
73
77
  @post = Post.new(@urlstring, @apikey, @editor)
74
78
  @post.title = title
75
- @post.body = File.new("/tmp/"+title).read
79
+ @post.body = body
76
80
  @post.publication_date = Time.now
77
81
  @post.status = "Draft"
78
82
  @post.add
data/lib/post.rb CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rest-client'
3
3
  require 'xmlsimple'
4
4
  require 'time'
5
- require 'ap'
5
+ #require 'ap'
6
6
  class Post
7
7
 
8
8
  attr_accessor :title, :body, :publication_date, :status, :blogid, :apikey
data/shabng.gemspec CHANGED
@@ -1,14 +1,14 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.specification_version = 2 if s.respond_to? :specification_version=
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
- s.rubygems_version = '0.0.4'
4
+ s.rubygems_version = '0.0.5'
5
5
 
6
6
  ## Leave these as is they will be modified for you by the rake gemspec task.
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.4'
11
- s.date = '2010-11-11'
10
+ s.version = '0.0.5'
11
+ s.date = '2010-11-12'
12
12
  s.rubyforge_project = 'shabng'
13
13
 
14
14
  ## Make sure your summary is short. The description may be as long
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
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-11 00:00:00 -05:00
18
+ date: 2010-11-12 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency