simple-fourchan 0.1.0 → 0.1.1

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.
data/README.md CHANGED
@@ -133,3 +133,7 @@ Json example from 4chan.
133
133
  3. Commit your changes (`git commit -am 'Added some feature'`)
134
134
  4. Push to the branch (`git push origin my-new-feature`)
135
135
  5. Create new Pull Request
136
+
137
+ ## Contributors
138
+
139
+ 1. migol - thanks for fixing the image extensions
@@ -16,7 +16,8 @@ module Fourchan
16
16
  temp = JSON.parse(open("http://api.4chan.org/#{@board}/res/#{thread}.json").read)["posts"]
17
17
  temp.each do |post|
18
18
  tim = post["tim"]
19
- post.merge!({"image" => "http://images.4chan.org/#{@board}/src/#{tim}.jpg"}) unless tim.nil?
19
+ ext = post["ext"]
20
+ post.merge!({"image" => "http://images.4chan.org/#{@board}/src/#{tim}.#{ext}"}) unless tim.nil?
20
21
  post.merge!({"thumb" => "http://thumbs.4chan.org/#{@board}/thumb/#{tim}s.jpg"}) unless tim.nil?
21
22
  post.merge!({"link" => "http://boards.4chan.org/#{@board}/res/#{thread}"})
22
23
  @posts << OpenStruct.new(post)
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module Fourchan
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-fourchan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-08 00:00:00.000000000 Z
12
+ date: 2012-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  requirements: []
69
69
  rubyforge_project:
70
- rubygems_version: 1.8.24
70
+ rubygems_version: 1.8.23
71
71
  signing_key:
72
72
  specification_version: 3
73
73
  summary: Simple 4chan is a gem that fetches posts from 4chan. A complete reading solution