postly 0.2.1 → 0.2.2

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.
@@ -5,14 +5,20 @@ API wrapper for the [posterous.com](http://posterous.com/api "Postly API") API.
5
5
 
6
6
  ###Install & Setup
7
7
 
8
- postly is hosted on [gemcutter.org](http://gemcutter.org). The source is available at http://github.com/twoism/postly.
8
+ postly is hosted on [gemcutter.org](http://gemcutter.org). The source is available at [http://github.com/twoism/postly](http://github.com/twoism/postly).
9
9
 
10
10
  $ gem install postly
11
11
 
12
- Add `config/posterous.yml` to your project or create `.posterous` in your home directory.
12
+ Create the YAML file.
13
13
 
14
14
  username: email
15
15
  password: pass
16
+
17
+ And pass it into config.
18
+
19
+ Postly.config = "#{ENV['HOME']}/.posterous"
20
+
21
+ The postly console looks for `.posterous` in your home directory.
16
22
 
17
23
 
18
24
  ###Usage
@@ -38,6 +44,11 @@ Add `config/posterous.yml` to your project or create `.posterous` in your home d
38
44
  > Postly::Post.update(post.id, :title => "New Title", :body => "New Body")
39
45
  => <Postly::Post:0x102541f70 @title="New Title">
40
46
 
47
+ ### TextMate Integration
48
+
49
+
50
+ A TextMate bundle can be found in the `etc/` directory. After installing to TextMate press `⌥+⌘-p` to post any selection to your posterous blog. The bundle looks for `.posterous` in your HOME directory for login info.
51
+
41
52
  ###Blog Importing
42
53
  Blogs can be imported from any XML data that can be mapped to a Post's attributes. If any element needs special treatment, just implement
43
54
  a #process\_&lt;attr_name&gt; method class method on your sub-class.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -10,8 +10,8 @@
10
10
  require 'rubygems'
11
11
  require 'posterous'
12
12
 
13
- Posterous.config = "#{ENV['HOME']}/.posterous"
14
- include Posterous
13
+ Postly.config = "#{ENV['HOME']}/.posterous"
14
+ include Postly
15
15
 
16
16
  tags = `\"#{ENV['TM_SUPPORT_PATH']}/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog\" inputbox --title 'Posting to posterous.com' --informative-text 'Add Tags (Comma seperated): ' --text '' --button1 'Get' --button2 'Cancel'`
17
17
 
@@ -35,14 +35,14 @@ module Postly
35
35
  end
36
36
 
37
37
 
38
- def self.many klass
39
- define_method klass do
40
- ManyProxy.new self, singularized_class_name(klass)
38
+ def self.many collection_name
39
+ define_method collection_name do
40
+ ManyProxy.new self, singularized_class_name(collection_name)
41
41
  end
42
42
  end
43
43
 
44
- def singularized_class_name klass
45
- klass.to_s.singularize.camelize.constantize
44
+ def singularized_class_name collection_name
45
+ collection_name.to_s.singularize.camelize.constantize
46
46
  end
47
47
 
48
48
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{postly}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["twoism"]
12
- s.date = %q{2010-01-19}
12
+ s.date = %q{2010-01-22}
13
13
  s.default_executable = %q{postly}
14
14
  s.description = %q{API Wrapper and IRB console for posterous.com}
15
15
  s.email = %q{signalstatic@gmail.com}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - twoism
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-19 00:00:00 -05:00
12
+ date: 2010-01-22 00:00:00 -05:00
13
13
  default_executable: postly
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency