popcorn 1.0.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +2 -0
- data/Gemfile +5 -5
- data/Gemfile.lock +65 -14
- data/README.rdoc +2 -0
- data/VERSION +1 -1
- data/bin/popcorn +0 -0
- data/popcorn.gemspec +30 -29
- data/spec/movies_spec.rb +4 -4
- metadata +65 -49
- data/spec/popcorn_spec.rb +0 -15
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1f1ab2f5b749fd2276eb04eeb223e08bd0b2d57a
|
4
|
+
data.tar.gz: dcb6ab92d54e5cc5655c47704e5ab64e90a39c80
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3c9fa114aae40fd3cb32c1c254429ebeeb2cd10f07a6ba0b01e9193a1474404259849433794aa7506302692ea198c8da21423ad30632667971af0263073cfa59
|
7
|
+
data.tar.gz: 8de3ecbd30c0dce4695d9e98af69a8ce2840155cfb231d09a5a19d5c689e33b6817682e012a058c6d6ef310ed088e09e1d01b0ead288983d2aa62946ecada2e4
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
@@ -3,15 +3,15 @@ source "http://rubygems.org"
|
|
3
3
|
# Example:
|
4
4
|
# gem "activesupport", ">= 2.3.5"
|
5
5
|
|
6
|
-
gem 'thor', "~> 0.
|
7
|
-
gem 'imdb_party', "~> 0.
|
6
|
+
gem 'thor', "~> 0.19.4"
|
7
|
+
gem 'imdb_party', "~> 0.8.0"
|
8
8
|
|
9
9
|
# Add dependencies to develop your gem here.
|
10
10
|
# Include everything needed to run rake, tests, features, etc.
|
11
11
|
group :development do
|
12
12
|
gem "rspec", "~> 2.3.0"
|
13
|
-
gem "bundler", "~> 1.
|
14
|
-
gem "jeweler", "~>
|
15
|
-
gem "
|
13
|
+
gem "bundler", "~> 1.14.6"
|
14
|
+
gem "jeweler", "~> 2.3.3"
|
15
|
+
gem "simplecov", ">= 0"
|
16
16
|
gem "fakefs", "~> 0.3.2"
|
17
17
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,20 +1,61 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
4
|
+
addressable (2.5.0)
|
5
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
6
|
+
builder (3.2.3)
|
7
|
+
descendants_tracker (0.0.4)
|
8
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
5
9
|
diff-lcs (1.1.2)
|
10
|
+
docile (1.1.5)
|
6
11
|
fakefs (0.3.2)
|
12
|
+
faraday (0.9.2)
|
13
|
+
multipart-post (>= 1.2, < 3)
|
7
14
|
git (1.2.5)
|
8
|
-
|
9
|
-
|
10
|
-
|
15
|
+
github_api (0.11.3)
|
16
|
+
addressable (~> 2.3)
|
17
|
+
descendants_tracker (~> 0.0.1)
|
18
|
+
faraday (~> 0.8, < 0.10)
|
19
|
+
hashie (>= 1.2)
|
20
|
+
multi_json (>= 1.7.5, < 2.0)
|
21
|
+
nokogiri (~> 1.6.0)
|
22
|
+
oauth2
|
23
|
+
hashie (3.5.5)
|
24
|
+
highline (1.7.8)
|
25
|
+
httparty (0.14.0)
|
26
|
+
multi_xml (>= 0.5.2)
|
27
|
+
imdb_party (0.8.0)
|
11
28
|
httparty
|
12
|
-
jeweler (
|
13
|
-
|
29
|
+
jeweler (2.3.3)
|
30
|
+
builder
|
31
|
+
bundler (>= 1.0)
|
14
32
|
git (>= 1.2.5)
|
33
|
+
github_api (~> 0.11.0)
|
34
|
+
highline (>= 1.6.15)
|
35
|
+
nokogiri (>= 1.5.10)
|
36
|
+
psych (~> 2.2)
|
15
37
|
rake
|
16
|
-
|
17
|
-
|
38
|
+
rdoc
|
39
|
+
semver2
|
40
|
+
json (2.0.3)
|
41
|
+
jwt (1.5.6)
|
42
|
+
mini_portile2 (2.1.0)
|
43
|
+
multi_json (1.12.1)
|
44
|
+
multi_xml (0.6.0)
|
45
|
+
multipart-post (2.0.0)
|
46
|
+
nokogiri (1.6.8.1)
|
47
|
+
mini_portile2 (~> 2.1.0)
|
48
|
+
oauth2 (1.3.1)
|
49
|
+
faraday (>= 0.8, < 0.12)
|
50
|
+
jwt (~> 1.0)
|
51
|
+
multi_json (~> 1.3)
|
52
|
+
multi_xml (~> 0.5)
|
53
|
+
rack (>= 1.2, < 3)
|
54
|
+
psych (2.2.4)
|
55
|
+
public_suffix (2.0.5)
|
56
|
+
rack (2.0.1)
|
57
|
+
rake (10.4.2)
|
58
|
+
rdoc (4.2.1)
|
18
59
|
rspec (2.3.0)
|
19
60
|
rspec-core (~> 2.3.0)
|
20
61
|
rspec-expectations (~> 2.3.0)
|
@@ -23,16 +64,26 @@ GEM
|
|
23
64
|
rspec-expectations (2.3.0)
|
24
65
|
diff-lcs (~> 1.1.2)
|
25
66
|
rspec-mocks (2.3.0)
|
26
|
-
|
67
|
+
semver2 (3.4.2)
|
68
|
+
simplecov (0.14.0)
|
69
|
+
docile (~> 1.1.0)
|
70
|
+
json (>= 1.8, < 3)
|
71
|
+
simplecov-html (~> 0.10.0)
|
72
|
+
simplecov-html (0.10.0)
|
73
|
+
thor (0.19.4)
|
74
|
+
thread_safe (0.3.6)
|
27
75
|
|
28
76
|
PLATFORMS
|
29
77
|
ruby
|
30
78
|
|
31
79
|
DEPENDENCIES
|
32
|
-
bundler (~> 1.
|
80
|
+
bundler (~> 1.14.6)
|
33
81
|
fakefs (~> 0.3.2)
|
34
|
-
imdb_party (~> 0.
|
35
|
-
jeweler (~>
|
36
|
-
rcov
|
82
|
+
imdb_party (~> 0.8.0)
|
83
|
+
jeweler (~> 2.3.3)
|
37
84
|
rspec (~> 2.3.0)
|
38
|
-
|
85
|
+
simplecov
|
86
|
+
thor (~> 0.19.4)
|
87
|
+
|
88
|
+
BUNDLED WITH
|
89
|
+
1.14.6
|
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.1
|
data/bin/popcorn
CHANGED
File without changes
|
data/popcorn.gemspec
CHANGED
@@ -2,17 +2,19 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: popcorn 1.1.1 ruby lib
|
5
6
|
|
6
7
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "1.
|
8
|
+
s.name = "popcorn"
|
9
|
+
s.version = "1.1.1"
|
9
10
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.
|
12
|
+
s.require_paths = ["lib"]
|
13
|
+
s.authors = ["Blaine Pace"]
|
14
|
+
s.date = "2017-03-18"
|
15
|
+
s.description = "Popcorn handles movie library management for you."
|
16
|
+
s.email = "blainepace@gmail.com"
|
17
|
+
s.executables = ["popcorn"]
|
16
18
|
s.extra_rdoc_files = [
|
17
19
|
"LICENSE.txt",
|
18
20
|
"README.rdoc"
|
@@ -21,6 +23,7 @@ Gem::Specification.new do |s|
|
|
21
23
|
".document",
|
22
24
|
".rspec",
|
23
25
|
".rvmrc",
|
26
|
+
".travis.yml",
|
24
27
|
"Gemfile",
|
25
28
|
"Gemfile.lock",
|
26
29
|
"LICENSE.txt",
|
@@ -33,43 +36,41 @@ Gem::Specification.new do |s|
|
|
33
36
|
"lib/popcorn/settings.rb",
|
34
37
|
"popcorn.gemspec",
|
35
38
|
"spec/movies_spec.rb",
|
36
|
-
"spec/popcorn_spec.rb",
|
37
39
|
"spec/settings_spec.rb",
|
38
40
|
"spec/spec_helper.rb"
|
39
41
|
]
|
40
|
-
s.homepage =
|
41
|
-
s.licenses = [
|
42
|
-
s.
|
43
|
-
s.
|
44
|
-
s.summary = %q{Popcorn is a movie management program}
|
42
|
+
s.homepage = "http://github.com/sensae/popcorn"
|
43
|
+
s.licenses = ["GPL"]
|
44
|
+
s.rubygems_version = "2.5.1"
|
45
|
+
s.summary = "Popcorn is a movie management program"
|
45
46
|
|
46
47
|
if s.respond_to? :specification_version then
|
47
|
-
s.specification_version =
|
48
|
+
s.specification_version = 4
|
48
49
|
|
49
50
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
|
-
s.add_runtime_dependency(%q<thor>, ["~> 0.
|
51
|
-
s.add_runtime_dependency(%q<imdb_party>, ["~> 0.
|
51
|
+
s.add_runtime_dependency(%q<thor>, ["~> 0.19.4"])
|
52
|
+
s.add_runtime_dependency(%q<imdb_party>, ["~> 0.8.0"])
|
52
53
|
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
53
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.
|
54
|
-
s.add_development_dependency(%q<jeweler>, ["~>
|
55
|
-
s.add_development_dependency(%q<
|
54
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.14.6"])
|
55
|
+
s.add_development_dependency(%q<jeweler>, ["~> 2.3.3"])
|
56
|
+
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
56
57
|
s.add_development_dependency(%q<fakefs>, ["~> 0.3.2"])
|
57
58
|
else
|
58
|
-
s.add_dependency(%q<thor>, ["~> 0.
|
59
|
-
s.add_dependency(%q<imdb_party>, ["~> 0.
|
59
|
+
s.add_dependency(%q<thor>, ["~> 0.19.4"])
|
60
|
+
s.add_dependency(%q<imdb_party>, ["~> 0.8.0"])
|
60
61
|
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
61
|
-
s.add_dependency(%q<bundler>, ["~> 1.
|
62
|
-
s.add_dependency(%q<jeweler>, ["~>
|
63
|
-
s.add_dependency(%q<
|
62
|
+
s.add_dependency(%q<bundler>, ["~> 1.14.6"])
|
63
|
+
s.add_dependency(%q<jeweler>, ["~> 2.3.3"])
|
64
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
64
65
|
s.add_dependency(%q<fakefs>, ["~> 0.3.2"])
|
65
66
|
end
|
66
67
|
else
|
67
|
-
s.add_dependency(%q<thor>, ["~> 0.
|
68
|
-
s.add_dependency(%q<imdb_party>, ["~> 0.
|
68
|
+
s.add_dependency(%q<thor>, ["~> 0.19.4"])
|
69
|
+
s.add_dependency(%q<imdb_party>, ["~> 0.8.0"])
|
69
70
|
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
70
|
-
s.add_dependency(%q<bundler>, ["~> 1.
|
71
|
-
s.add_dependency(%q<jeweler>, ["~>
|
72
|
-
s.add_dependency(%q<
|
71
|
+
s.add_dependency(%q<bundler>, ["~> 1.14.6"])
|
72
|
+
s.add_dependency(%q<jeweler>, ["~> 2.3.3"])
|
73
|
+
s.add_dependency(%q<simplecov>, [">= 0"])
|
73
74
|
s.add_dependency(%q<fakefs>, ["~> 0.3.2"])
|
74
75
|
end
|
75
76
|
end
|
data/spec/movies_spec.rb
CHANGED
@@ -11,17 +11,17 @@ describe "Movies" do
|
|
11
11
|
describe "fail" do
|
12
12
|
|
13
13
|
it "should return a nil object" do
|
14
|
-
@moviemgr.lookup("asdfasdfasdf").should
|
14
|
+
@moviemgr.lookup("asdfasdfasdf").should be_nil
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
18
|
describe "success" do
|
19
19
|
it "should handle a filesystem path gracefully" do
|
20
|
-
@moviemgr.lookup("testing/paths/Inception").class.should ==
|
20
|
+
@moviemgr.lookup("testing/paths/Inception").class.should == Hash
|
21
21
|
end
|
22
22
|
|
23
|
-
it "should return
|
24
|
-
@moviemgr.lookup("Inception").class.should ==
|
23
|
+
it "should return the best match as a hash" do
|
24
|
+
@moviemgr.lookup("Inception").class.should == Hash
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
metadata
CHANGED
@@ -1,93 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: popcorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Blaine Pace
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2017-03-18 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: thor
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
19
|
+
version: 0.19.4
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.19.4
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: imdb_party
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- - ~>
|
31
|
+
- - "~>"
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
33
|
+
version: 0.8.0
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.8.0
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rspec
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- - ~>
|
45
|
+
- - "~>"
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: 2.3.0
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.3.0
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: bundler
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- - ~>
|
59
|
+
- - "~>"
|
53
60
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
61
|
+
version: 1.14.6
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.14.6
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: jeweler
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
|
-
- - ~>
|
73
|
+
- - "~>"
|
64
74
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
75
|
+
version: 2.3.3
|
66
76
|
type: :development
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.3.3
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
71
|
-
requirement:
|
72
|
-
none: false
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
|
-
- -
|
87
|
+
- - ">="
|
75
88
|
- !ruby/object:Gem::Version
|
76
89
|
version: '0'
|
77
90
|
type: :development
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
80
97
|
- !ruby/object:Gem::Dependency
|
81
98
|
name: fakefs
|
82
|
-
requirement:
|
83
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
84
100
|
requirements:
|
85
|
-
- - ~>
|
101
|
+
- - "~>"
|
86
102
|
- !ruby/object:Gem::Version
|
87
103
|
version: 0.3.2
|
88
104
|
type: :development
|
89
105
|
prerelease: false
|
90
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.3.2
|
91
111
|
description: Popcorn handles movie library management for you.
|
92
112
|
email: blainepace@gmail.com
|
93
113
|
executables:
|
@@ -97,9 +117,10 @@ extra_rdoc_files:
|
|
97
117
|
- LICENSE.txt
|
98
118
|
- README.rdoc
|
99
119
|
files:
|
100
|
-
- .document
|
101
|
-
- .rspec
|
102
|
-
- .rvmrc
|
120
|
+
- ".document"
|
121
|
+
- ".rspec"
|
122
|
+
- ".rvmrc"
|
123
|
+
- ".travis.yml"
|
103
124
|
- Gemfile
|
104
125
|
- Gemfile.lock
|
105
126
|
- LICENSE.txt
|
@@ -112,35 +133,30 @@ files:
|
|
112
133
|
- lib/popcorn/settings.rb
|
113
134
|
- popcorn.gemspec
|
114
135
|
- spec/movies_spec.rb
|
115
|
-
- spec/popcorn_spec.rb
|
116
136
|
- spec/settings_spec.rb
|
117
137
|
- spec/spec_helper.rb
|
118
138
|
homepage: http://github.com/sensae/popcorn
|
119
139
|
licenses:
|
120
140
|
- GPL
|
141
|
+
metadata: {}
|
121
142
|
post_install_message:
|
122
143
|
rdoc_options: []
|
123
144
|
require_paths:
|
124
145
|
- lib
|
125
146
|
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
147
|
requirements:
|
128
|
-
- -
|
148
|
+
- - ">="
|
129
149
|
- !ruby/object:Gem::Version
|
130
150
|
version: '0'
|
131
|
-
segments:
|
132
|
-
- 0
|
133
|
-
hash: -727389974721737669
|
134
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
135
|
-
none: false
|
136
152
|
requirements:
|
137
|
-
- -
|
153
|
+
- - ">="
|
138
154
|
- !ruby/object:Gem::Version
|
139
155
|
version: '0'
|
140
156
|
requirements: []
|
141
157
|
rubyforge_project:
|
142
|
-
rubygems_version:
|
158
|
+
rubygems_version: 2.5.1
|
143
159
|
signing_key:
|
144
|
-
specification_version:
|
160
|
+
specification_version: 4
|
145
161
|
summary: Popcorn is a movie management program
|
146
162
|
test_files: []
|
data/spec/popcorn_spec.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
-
|
3
|
-
require 'popcorn'
|
4
|
-
|
5
|
-
describe "Popcorn" do
|
6
|
-
|
7
|
-
describe "success" do
|
8
|
-
|
9
|
-
it "should search for a movie given a name" do
|
10
|
-
@popcorn = Popcorn::Driver.new
|
11
|
-
@popcorn.lookup("Inception")
|
12
|
-
STDOUT.string.should =~ /Title:/i
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|