simple-fourchan 0.0.9 → 0.1.0

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
@@ -2,9 +2,18 @@
2
2
 
3
3
  Simple 4chan is a gem that fetches posts from 4chan. A complete reading solution to fetch posts from 4chan into your ruby, any rack-based or rails app. You set the board and simple-fourchan will fetch all posts from a board or thread number.
4
4
 
5
+ BUGS:
6
+
7
+ Some boards are not available from 4chan. I've contacted them to see what's happening.
8
+ If you reach a board where simple-fourchan cannot fetch, you will receive an error message.
9
+
10
+ ## Updates
11
+
12
+ SEP - 08 - 2012: Update with board reading based from dongfix update.
13
+
5
14
  ## Installation
6
15
 
7
- Just do in your Gemfile or install and do require '4chan'.
16
+ Just do in your Gemfile or install and do require 'simple-fourchan'.
8
17
 
9
18
  gem 'simple-fourchan'
10
19
 
@@ -18,7 +27,17 @@ Or install it yourself as:
18
27
 
19
28
  ## Usage
20
29
 
21
- For now, you can only fetch a reply list to a subject.
30
+ # Fetching all threads from a board.
31
+
32
+ require 'simple-fourchan'
33
+
34
+ board = Fourchan::Board.new "w"
35
+
36
+ board.threads
37
+
38
+ It will return an array with hashes containing basic info from each thread.
39
+
40
+ # For now, you can fetch a reply list from a thread number.
22
41
 
23
42
  array = Fourchan::Post.new "w", "1403853"
24
43
 
@@ -1,5 +1,5 @@
1
1
  module Simple
2
2
  module Fourchan
3
- VERSION = "0.0.9"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -4,8 +4,8 @@ require File.expand_path('../lib/simple-fourchan/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Chim Kan"]
6
6
  gem.email = ["designium@gmail.com"]
7
- gem.description = "Simple 4chan is a gem that fetches posts from 4chan. Current version only fetches a specific listing. Once 4chan released api for index, simple-fourchan will be able to show index treads of a message board."
8
- gem.summary = "Simple 4chan is a gem that fetches posts from 4chan. Current version only fetches a specific listing. Once 4chan released api for index, simple-fourchan will be able to show index treads of a message board."
7
+ gem.description = "Simple 4chan is a gem that fetches posts from 4chan. A complete reading solution to fetch posts from 4chan into your ruby, any rack-based or rails app. You set the board and simple-fourchan will fetch all posts from a board or thread number."
8
+ gem.summary = "Simple 4chan is a gem that fetches posts from 4chan. A complete reading solution to fetch posts from 4chan into your ruby, any rack-based or rails app. You set the board and simple-fourchan will fetch all posts from a board or thread number."
9
9
  gem.homepage = "https://github.com/designium/simple-fourchan"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
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.0.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -27,9 +27,10 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
- description: Simple 4chan is a gem that fetches posts from 4chan. Current version
31
- only fetches a specific listing. Once 4chan released api for index, simple-fourchan
32
- will be able to show index treads of a message board.
30
+ description: Simple 4chan is a gem that fetches posts from 4chan. A complete reading
31
+ solution to fetch posts from 4chan into your ruby, any rack-based or rails app.
32
+ You set the board and simple-fourchan will fetch all posts from a board or thread
33
+ number.
33
34
  email:
34
35
  - designium@gmail.com
35
36
  executables: []
@@ -69,7 +70,7 @@ rubyforge_project:
69
70
  rubygems_version: 1.8.24
70
71
  signing_key:
71
72
  specification_version: 3
72
- summary: Simple 4chan is a gem that fetches posts from 4chan. Current version only
73
- fetches a specific listing. Once 4chan released api for index, simple-fourchan will
74
- be able to show index treads of a message board.
73
+ summary: Simple 4chan is a gem that fetches posts from 4chan. A complete reading solution
74
+ to fetch posts from 4chan into your ruby, any rack-based or rails app. You set the
75
+ board and simple-fourchan will fetch all posts from a board or thread number.
75
76
  test_files: []