livedoor_blog 0.0.1 → 0.0.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.
- checksums.yaml +4 -4
- data/README.md +12 -2
- data/lib/livedoor_blog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 765eb41db1e93c37a54394a8814b7c2331630726
|
|
4
|
+
data.tar.gz: 34e680a7c024e2e5bd126abcb16bf497e8e8e26b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8fc122d567e32971f12a27aa0682563c8b4212c42cfb7f12edb5578fa9ac416a1bc01c06652b397e043f9c0b26b0f964f6376496e978c596ceec0e40e026a3d8
|
|
7
|
+
data.tar.gz: 091554e602a7676527dc1ac806cf5a35fceb5c1c85b069e0a420c6b13a26daed9479c75937bf52bda3d61af0f999199aad1dbb1fb1eeb690574c4dee87380ca4
|
data/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# LivedoorBlog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The LivedoorBlog library is used for automating interactions with a livedoor blog.
|
|
4
|
+
|
|
5
|
+
It can submit entry and upload images.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
@@ -20,7 +22,14 @@ Or install it yourself as:
|
|
|
20
22
|
|
|
21
23
|
## Usage
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
```ruby
|
|
26
|
+
require 'livedoor_blog'
|
|
27
|
+
|
|
28
|
+
blog = LivedoorBlog.new
|
|
29
|
+
blog.login(ENV["livedoor_id"], ENV["password"])
|
|
30
|
+
url = blog.upload_image("images/test.jpg")
|
|
31
|
+
blog.submit_entry("Test", "Test image: <img src='#{url}'>")
|
|
32
|
+
```
|
|
24
33
|
|
|
25
34
|
## Contributing
|
|
26
35
|
|
|
@@ -29,3 +38,4 @@ TODO: Write usage instructions here
|
|
|
29
38
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
30
39
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
31
40
|
5. Create a new Pull Request
|
|
41
|
+
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: livedoor_blog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- oirakuma
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|