OSDN Git Service

rename module
authormasahino <masahino@0978bef0-6439-0410-a06b-a62e4d60c955>
Fri, 7 Sep 2007 14:06:23 +0000 (14:06 +0000)
committermasahino <masahino@0978bef0-6439-0410-a06b-a62e4d60c955>
Fri, 7 Sep 2007 14:06:23 +0000 (14:06 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lbw/ldblogwriter/trunk@6 0978bef0-6439-0410-a06b-a62e4d60c955

14 files changed:
bin/lbm
bin/lbwriter
data/ldblogwriter.conf [moved from data/lbwriter.conf with 100% similarity]
lib/ldblogwriter-lib.rb
lib/ldblogwriter/atom_response.rb
lib/ldblogwriter/command.rb
lib/ldblogwriter/config.rb
lib/ldblogwriter/parser.rb
lib/ldblogwriter/plugin.rb
lib/ldblogwriter/test-command.rb
lib/ldblogwriter/test-parser.rb
lib/ldblogwriter/test-plugin.rb
lib/ldblogwriter/wsse.rb
misc/lbw-get-categories.rb

diff --git a/bin/lbm b/bin/lbm
index 5b3327d..6cd5c4f 100644 (file)
--- a/bin/lbm
+++ b/bin/lbm
@@ -1,4 +1,4 @@
-require 'lbwriter-lib'
+require 'ldblogwriter-lib'
 
-blog = LivedoorBlogWriter::Blog.new()
+blog = LDBlogWriter::Blog.new()
 
index 6d24c1e..f449c69 100644 (file)
@@ -1,6 +1,6 @@
 #! /opt/local/bin/ruby
 
-require 'lbwriter-lib'
+require 'ldblogwriter-lib'
 require 'optparse'
 
 opt = OptionParser.new
@@ -9,5 +9,5 @@ opt.on('-n') {|v| dry_run = v}
 
 opt.parse!(ARGV)
 
-blog = LivedoorBlogWriter::Blog.new()
+blog = LDBlogWriter::Blog.new()
 blog.post_entry(ARGV[0], dry_run)
similarity index 100%
rename from data/lbwriter.conf
rename to data/ldblogwriter.conf
index 19fef69..b12f5d0 100644 (file)
@@ -5,15 +5,15 @@ require 'rexml/document'
 require 'pp'
 require 'uri'
 require 'yaml'
-require 'lbwriter/parser'
-require 'lbwriter/command'
-require 'lbwriter/config'
-require 'lbwriter/wsse'
-require 'lbwriter/plugin'
+require 'ldblogwriter/parser'
+require 'ldblogwriter/command'
+require 'ldblogwriter/config'
+require 'ldblogwriter/wsse'
+require 'ldblogwriter/plugin'
 
 Net::HTTP.version_1_2
 
-module LivedoorBlogWriter
+module LDBlogWriter
   VERSION = '0.0.1'
 
   class BlogEntry
@@ -71,7 +71,7 @@ module LivedoorBlogWriter
 
   # ここからスタート
   class Blog
-    ConfigFile = ENV['HOME'] + "/.lbwriter.conf"
+    ConfigFile = ENV['HOME'] + "/.ldblogwriter.conf"
 
     def initialize()
       @conf = Config.new(ConfigFile)
@@ -220,7 +220,7 @@ if defined?($test) && $test
 
   class TestBlog < Test::Unit::TestCase
     def test_check_config
-      blog = LivedoorBlogWriter::Blog.new('lbwriter-lib.rb')
+      blog = LDBlogWriter::Blog.new('ldblogwriter-lib.rb')
     end
   end
 end
index f238f1f..7dd3d75 100644 (file)
@@ -1,6 +1,6 @@
 require 'rexml/document'
 
-module LivedoorBlogWriter
+module LDBlogWriter
 
   class AtomResponse
     attr_accessor :source, :doc
index d69ea24..cbf24f9 100644 (file)
@@ -1,10 +1,10 @@
 $LOAD_PATH << '../../lib' unless $LOAD_PATH.include? '..'
 
 require 'net/http'
-require 'lbwriter/wsse'
-require 'lbwriter/atom_response'
+require 'ldblogwriter/wsse'
+require 'ldblogwriter/atom_response'
 
-module LivedoorBlogWriter
+module LDBlogWriter
 
   class Command
     def get(uri_str, username, password)
index a653b1a..1078b7e 100644 (file)
@@ -1,4 +1,4 @@
-module LivedoorBlogWriter
+module LDBlogWriter
   class Config
     attr_accessor :atom_api_uri, :categories_uri
     attr_accessor :post_uri, :upload_uri, :username, :password
index 63385bf..39a641e 100644 (file)
@@ -1,6 +1,6 @@
 require 'open-uri'
 require 'pp'
-require 'lbwriter/command'
+require 'ldblogwriter/command'
 require 'yaml'
 
 # parserは、pukiwikiparser.rbを参考にしています。
@@ -10,7 +10,7 @@ require 'yaml'
 # #プラグイン名
 # #プラグイン名(arg1, arg2...)
 
-module LivedoorBlogWriter
+module LDBlogWriter
 
   class Parser
     def initialize(conf, plugin)
index a38daaa..183c895 100644 (file)
@@ -1,4 +1,4 @@
-module LivedoorBlogWriter
+module LDBlogWriter
   class Plugin
     def initialize(conf)
       @conf = conf
index 89406c8..5f87533 100644 (file)
@@ -3,7 +3,7 @@ require 'config.rb'
 require 'command.rb'
 
 
-module LivedoorBlogWriter
+module LDBlogWriter
   class Command
     def upload(atom_uri, user, pass, filename, title = nil)
       return 'http://image.blog.livedoor.jp/test_user/imgs/8/a/8a4d2846.jpg'
index e260f3e..9254ee5 100644 (file)
@@ -3,7 +3,7 @@ require 'config.rb'
 require 'parser.rb'
 
 
-module LivedoorBlogWriter
+module LDBlogWriter
   class Command
     def upload(atom_uri, user, pass, filename, title = nil)
       return 'http://image.blog.livedoor.jp/test_user/imgs/8/a/8a4d2846.jpg'
@@ -13,7 +13,7 @@ end
 
 class TestParser < Test::Unit::TestCase
   def setup
-    @parser = LivedoorBlogWriter::Parser.new(LivedoorBlogWriter::Config.new('test.conf'))
+    @parser = LDBlogWriter::Parser.new(LivedoorBlogWriter::Config.new('test.conf'))
   end
 
     def test_to_html
index 984c56e..dd08304 100644 (file)
@@ -4,8 +4,8 @@ require 'plugin.rb'
 
 class TestPlugin < Test::Unit::TestCase
   def setup
-    @conf = LivedoorBlogWriter::Config.new(ENV['HOME'] + "/.lbwriter.conf")
-    @plugin = LivedoorBlogWriter::Plugin.new(@conf)
+    @conf = LDBlogWriter::Config.new(ENV['HOME'] + "/.ldblogwriter.conf")
+    @plugin = LDBlogWriter::Plugin.new(@conf)
   end
   
   def test_eval_src
index fbb48ee..3a46ce4 100644 (file)
@@ -2,7 +2,7 @@ require 'digest/sha1'
 require 'base64'
 require 'time'
 
-module LivedoorBlogWriter
+module LDBlogWriter
   class Wsse
     def Wsse::get(user, pass)
       created = Time.now.iso8601
index a385ce5..c02ce8d 100644 (file)
@@ -1,5 +1,5 @@
-require 'lbwriter-lib'
+require 'ldblogwriter-lib'
 
-lbw = LivedoorBlogWriter::Blog.new
+lbw = LDBlogWriter::Blog.new
 
 pp lbw.get_categories