diff_news 0.9.4 → 0.9.5

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: f54f0e2db3d1ae81470310f8aba76833c61f05b8
4
- data.tar.gz: 0b7bee9c4bd9effdfb85687f1c931e89664840bd
3
+ metadata.gz: 23950000fc6725c9bb092c9ad644ec7c900e7f09
4
+ data.tar.gz: e87df3968da87c243bebe8754e2458020a4b8c15
5
5
  SHA512:
6
- metadata.gz: 0c423093eb87c8e09a179e179b7d08bc38768a88eb550d64cb3856e3b883a07ef019b96571c007990c029d51d8bb64980c99245d02952768de907ffdceb40c33
7
- data.tar.gz: 3f06e70fce7f2ebdad1d3df826c00c74646c0c8b895afc364d0f4e2352ddd05a6bdc9c850926b0f30bff1380314edd0834d6f5b79c7fa555562c9a1f026ce768
6
+ metadata.gz: fafb5ecfe31e76c5621afc8b2befcaa1bda97dde8c4487ad811368dfd3793cc27a1e3096ea14482b148c48961f08551232497eb6136838b000b82a91940c4f95
7
+ data.tar.gz: 4c96a6de8e64827970fb964d0544b3218e7e5d78eacf57e0ff455a42e90818ea8a3e63b03bf745fcb1d88a9732c0df62f00d374e44781476ec7f481d703cc043
@@ -9,9 +9,10 @@ module DiffNews
9
9
  class DefaultHistory
10
10
  attr_reader :revisions
11
11
 
12
- def initialize provider, uuid
12
+ def initialize provider, uuid, url
13
13
  @provider = provider
14
14
  @uuid = uuid
15
+ @url = url
15
16
 
16
17
  @revisions = []
17
18
  end
data/lib/file_history.rb CHANGED
@@ -10,8 +10,8 @@ module DiffNews
10
10
  class FileHistory < DefaultHistory
11
11
  attr_reader :revisions
12
12
 
13
- def initialize provider, uuid
14
- super provider, uuid
13
+ def initialize provider, uuid, url
14
+ super provider, uuid, url
15
15
  end
16
16
 
17
17
  def file_path(extension)
data/lib/service.rb CHANGED
@@ -14,7 +14,7 @@ module DiffNews
14
14
  end
15
15
 
16
16
  class Service
17
- attr_reader :history, :url
17
+ attr_reader :history
18
18
 
19
19
  @@services = []
20
20
  @@store_class = DefaultHistory
@@ -87,7 +87,7 @@ module DiffNews
87
87
  end
88
88
 
89
89
  def load_history
90
- @history = @@store_class.new provider, @uuid
90
+ @history = @@store_class.new provider, @uuid, @url
91
91
 
92
92
  @history.load
93
93
  @history.append_changed_revision title, teaser, text
data/lib/version.info CHANGED
@@ -1 +1 @@
1
- 0.9.4
1
+ 0.9.5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diff_news
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Bruderer