fourchan-urler 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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fourchan-urler.rb +9 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7dafb090f85d7a3b04e81899649449a3be03e1ae
4
- data.tar.gz: 54a9a42ad23ecce6f15bfaca0a1db68aab9a836e
3
+ metadata.gz: 576e90abf2f2ffe89c3ca57212a434841520ce08
4
+ data.tar.gz: aeaa87d794b997b303e8d464f64781d33882bbc6
5
5
  SHA512:
6
- metadata.gz: cb5e6fb4bdbfde0796ecc9c198e71721f24d7c139affbb92fe63c8294d387b3dc93621a8cd1301c6d688f8c632f899cfb0b1488de946457564f075a1fb926611
7
- data.tar.gz: 29ddc992149ce312d478e4abf2322bce1c1a3cff1f4aed8df20cdaa4f5d135475e6b162a3f767069efb7c06f076704d3771929b89b1e709b1ce85e1b751ba657
6
+ metadata.gz: 10aaf41f92be7307fb34b9f894985b6a396e382247e0b2f6ea6675d6678949c1fd37a70cd4e3db9b9de8a079ced31b70346bb83e2658e399743ae4a435f87e54
7
+ data.tar.gz: 917145eaad11b0aace029a936cd2c4163c862fab4c994a99814f80a0709a27b79d3c0a82d4cbc5a1813023b72ff52e728a596ea3a771e53a3f4a1e67bffc74ce
@@ -2,10 +2,10 @@ require 'uri'
2
2
  require 'extensions/strings'
3
3
 
4
4
  module FourchanUrler
5
-
5
+
6
6
  class Request
7
7
  attr_accessor :thread_id, :board
8
-
8
+
9
9
  def initialize(url)
10
10
  uri = URI(url)
11
11
  if uri.host == "boards.4chan.org" && uri.path.path_check
@@ -16,12 +16,16 @@ module FourchanUrler
16
16
  end
17
17
  end
18
18
  end
19
-
19
+
20
20
  def self.request(url)
21
21
  self::Request.new(url)
22
22
  end
23
-
23
+
24
24
  def self.boards_list
25
- ["a", "b", "c", "d", "e", "f", "g", "g", "i", "f", "h", "h", "r", "k", "m", "o", "p", "r", "s", "t", "u", "v", "v", "g", "v", "r", "w", "w", "g", "i", "i", "c", "r", "k", "s", "s", "c", "m", "h", "m", "l", "g", "b", "t", "y", "a", "d", "v", "a", "n", "a", "s", "p", "c", "g", "l", "c", "k", "c", "o", "d", "i", "y", "f", "a", "f", "i", "t", "g", "d", "h", "c", "i", "n", "t", "j", "p", "l", "i", "t", "m", "l", "p", "m", "u", "n", "o", "u", "t", "p", "o", "p", "o", "l", "s", "c", "i", "s", "o", "c", "s", "p", "t", "g", "t", "o", "y", "t", "r", "v", "t", "v", "v", "p", "w", "s", "g", "x"]
25
+ ["a", "b", "c", "d", "e", "f", "g", "gif", "h", "hr", "k", "m", "o", "p",
26
+ "r", "s", "t", "u", "v", "vg", "w", "wg", "i", "ic", "r9k", "cm", "hm",
27
+ "y", "3", "adv", "an", "cgl", "ck", "co", "diy", "fa", "fit", "hc",
28
+ "int", "jp", "lit", "mlp", "mu", "n", "po", "pol", "sci", "soc", "sp",
29
+ "tg", "toy", "trv", "tv", "vp", "wsg", "x", "rs", "status", "q"]
26
30
  end
27
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fourchan-urler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Kim
@@ -37,7 +37,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
37
37
  version: '0'
38
38
  requirements: []
39
39
  rubyforge_project:
40
- rubygems_version: 2.0.3
40
+ rubygems_version: 2.0.4
41
41
  signing_key:
42
42
  specification_version: 4
43
43
  summary: 4chan thread url processor