das_catalog 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ require 'securerandom'
2
2
 
3
3
  module DasCatalog
4
4
  class ScreencastData
5
- attr_reader :link, :watched, :downloaded, :uuid
5
+ attr_reader :link, :watched, :uuid
6
6
 
7
7
  def initialize(link)
8
8
  @link = link
@@ -27,6 +27,10 @@ module DasCatalog
27
27
  @downloaded = true
28
28
  end
29
29
 
30
+ def reset_downloaded
31
+ @downloaded = false
32
+ end
33
+
30
34
  def downloaded?
31
35
  @downloaded
32
36
  end
@@ -35,7 +39,7 @@ module DasCatalog
35
39
  @watched = true
36
40
  end
37
41
 
38
- def unwatched
42
+ def reset_watched
39
43
  @watched = false
40
44
  end
41
45
 
@@ -1,3 +1,3 @@
1
1
  module DasCatalog
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -26,13 +26,19 @@ describe DasCatalog::ScreencastData do
26
26
  assert subject.downloaded?
27
27
  end
28
28
 
29
+ it "can have its downloaded status reset" do
30
+ subject.downloaded
31
+ subject.reset_downloaded
32
+ refute subject.downloaded?
33
+ end
34
+
29
35
  it "reports as watched if watched" do
30
36
  subject.watched
31
37
  assert subject.watched?
32
38
  end
33
39
 
34
- it "can be unwatched" do
35
- subject.unwatched
40
+ it "can be unwatched by resetting watched" do
41
+ subject.reset_watched
36
42
  refute subject.watched?
37
43
  end
38
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: das_catalog
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:
@@ -13,7 +13,7 @@ date: 2011-12-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: feedzirra
16
- requirement: &2160743580 !ruby/object:Gem::Requirement
16
+ requirement: &2164441260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2160743580
24
+ version_requirements: *2164441260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mechanize
27
- requirement: &2160742560 !ruby/object:Gem::Requirement
27
+ requirement: &2164440780 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2160742560
35
+ version_requirements: *2164440780
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: highline
38
- requirement: &2160742100 !ruby/object:Gem::Requirement
38
+ requirement: &2164440260 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2160742100
46
+ version_requirements: *2164440260
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: minitest
49
- requirement: &2160741680 !ruby/object:Gem::Requirement
49
+ requirement: &2164439720 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2160741680
57
+ version_requirements: *2164439720
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: mocha
60
- requirement: &2160741120 !ruby/object:Gem::Requirement
60
+ requirement: &2164439140 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2160741120
68
+ version_requirements: *2164439140
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: fakefs
71
- requirement: &2160733860 !ruby/object:Gem::Requirement
71
+ requirement: &2164438280 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2160733860
79
+ version_requirements: *2164438280
80
80
  description: Download screencasts from Destroy All Software catalog. Uses the rss
81
81
  feed plus Mechanize to log you in and then download new movies to your local drive.
82
82
  email: xternal1+github@gmail.com