twitter_image_parser 0.0.2 → 0.0.3
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 +7 -7
- data/lib/twitter_image_parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce8e334262cb7d1c235d74a1c95152157d97660b
|
4
|
+
data.tar.gz: c4ff77eb757c28bf2c632bb5e264905ecc44546d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe7e23f5d1bba40fe1f26f970691b99cba46870f48df4ce9ef95acaaccdf1ba910621381150269f2f16d775885d40e67f58f7a23fb9666b02290cc545f4c6ea1
|
7
|
+
data.tar.gz: 74a3bf42172ed9c5433d1f313c81c6564e38229499716aaabbfd1a899d3dc44740cee45a92bde860d102ed3bd869e57dc71a42ddf86899ee154288088628ffe8
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
#
|
1
|
+
# TwitterImageParser
|
2
2
|
|
3
|
-
|
3
|
+
TwitterImageParser gem returns the original image source url from the shortened image post url of twitter image sharing services, such as twitpic, twipple and many other.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
gem '
|
9
|
+
gem 'twitter_image_parser'
|
10
10
|
|
11
11
|
And then execute:
|
12
12
|
|
@@ -14,11 +14,11 @@ And then execute:
|
|
14
14
|
|
15
15
|
Or install it yourself as:
|
16
16
|
|
17
|
-
$ gem install
|
17
|
+
$ gem install twitter_image_parser
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
require '
|
21
|
+
require 'twitter_image_parser'
|
22
22
|
|
23
23
|
twipple_uri = URI.parse('http://p.twipple.jp/GIb1F')
|
24
24
|
#=> #<URI::HTTP:0x007f8a913a0c00 URL:http://p.twipple.jp/GIb1F>
|
@@ -27,7 +27,7 @@ Or install it yourself as:
|
|
27
27
|
#=> "http://p.twpl.jp/show/orig/GIb1F"
|
28
28
|
|
29
29
|
|
30
|
-
|
30
|
+
# return nil if the uri is not valid
|
31
31
|
dummy_uri = URI.parse('http://example.com')
|
32
32
|
#=> #<URI::HTTP:0x007f8a913a0c00 URL:http://example.com>
|
33
33
|
|
@@ -37,7 +37,7 @@ Or install it yourself as:
|
|
37
37
|
|
38
38
|
## Contributing
|
39
39
|
|
40
|
-
1. Fork it ( https://github.com/[my-github-username]/
|
40
|
+
1. Fork it ( https://github.com/[my-github-username]/twitter_image_parser/fork )
|
41
41
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
42
42
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
43
43
|
4. Push to the branch (`git push origin my-new-feature`)
|