diff_news 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42d0d95970e70379e74094caf2bd84b07a5528c8
4
- data.tar.gz: 497942db1d4d4e6b06049174b99d0729679b6024
3
+ metadata.gz: b281d494ff4eef62dd41e6f1c1ad27fb382140fa
4
+ data.tar.gz: ebe8f403573d16713f6a6ae30d86159089f79100
5
5
  SHA512:
6
- metadata.gz: daad4c5b6e81f1eb20f5ce25f9e3a033c894704f78c4550e899c9beddde1e1a95fd9c3a2242dcd88901e281c8260b4e1afc89e51cf60ed164251e0ce789f3567
7
- data.tar.gz: fe7b10e7440d4fc76d908629189035db18b20095638adbfe2f8faa45ce9071121359cc19e3d9cde900e4588b061bbc045063e8ba2bd99c374c59b00960f4bec6
6
+ metadata.gz: bc15d28a9aa5d28e533a462111844953fa425eacc4a0c975a7364092c49d00accd77dd34e1cf3e99cbffd48d657a81d9a0bf536a9a19764cba9bce10c66335bc
7
+ data.tar.gz: f9bd105afb571135f95ea96345de752c28cfc71338453f4c3647a976a81fe99af9d002d71f658ccfcf303a07ea02c039ddf8cdb6327daf1cdea77ab3dca7c8ff
@@ -11,6 +11,10 @@ module DiffNews
11
11
  '20min.ch'
12
12
  end
13
13
 
14
+ def self.base_url
15
+ 'http://www.20min.ch/'
16
+ end
17
+
14
18
  def self.valid_url
15
19
  /^https?:\/\/(www.)?20min.ch/
16
20
  end
@@ -11,6 +11,10 @@ module DiffNews
11
11
  'faz.net'
12
12
  end
13
13
 
14
+ def self.base_url
15
+ 'http://www.faz.net/aktuell/'
16
+ end
17
+
14
18
  def self.valid_url
15
19
  /^https?:\/\/(www.)?faz.net/
16
20
  end
@@ -21,6 +21,10 @@ module DiffNews
21
21
  'mock_service'
22
22
  end
23
23
 
24
+ def self.base_url
25
+ 'none'
26
+ end
27
+
24
28
  def self.valid_url
25
29
  /mock_me/
26
30
  end
@@ -11,6 +11,10 @@ module DiffNews
11
11
  'nzz.ch'
12
12
  end
13
13
 
14
+ def self.base_url
15
+ 'https://www.nzz.ch/'
16
+ end
17
+
14
18
  def self.valid_url
15
19
  /^https?:\/\/(www.)?nzz.ch/
16
20
  end
@@ -12,6 +12,10 @@ module DiffNews
12
12
  'tagesanzeiger.ch'
13
13
  end
14
14
 
15
+ def self.base_url
16
+ 'http://www.tagesanzeiger.ch/'
17
+ end
18
+
15
19
  def self.valid_url
16
20
  /^https?:\/\/(www.)?tagesanzeiger.ch/
17
21
  end
data/lib/service.rb CHANGED
@@ -26,6 +26,10 @@ module DiffNews
26
26
  self.class.provider
27
27
  end
28
28
 
29
+ def base_url
30
+ self.class.base_url
31
+ end
32
+
29
33
  def encoding
30
34
  @doc.encoding
31
35
  end
data/lib/version.info CHANGED
@@ -1 +1 @@
1
- 0.9.2
1
+ 0.9.3
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diff_news
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Bruderer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-14 00:00:00.000000000 Z
11
+ date: 2017-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uuidtools