subfinder 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ module Subfinder
2
+ VERSION = '0.0.1'.freeze
3
+ end
@@ -0,0 +1,23 @@
1
+ files = %w(
2
+ Mechanism.The.S01E01.1080p.5.1Ch.BluRay.ReEnc-DeeJayAhmed.mkv
3
+ The.Mechanism.S01E02.HDTV.x264-SVA[eztv].mkv
4
+ The.Mechanism.S01E03.1080p.HDTV.x264.hastidl.mp4
5
+ The.Mechanism.S01E04.720p.WEB-DL.DibaMoviez.mkv
6
+ Agatha.Christies.Poirot.S13E02.1080p.BluRay.x264.mkv
7
+ The.Mechanism.S01E01.WEB-DL.srt
8
+ The.Mechanism.S01E02.HDTV.x264-SVA.srt
9
+ The.Mechanism.S01E03.720p.HDTV.x264-IMMERSE.srt
10
+ The.Mechanism.S01E04.HDTV.x264.KILLERS.HI.srx.srt
11
+ The.Mechanism.S01E05.720p.WEB.H264-MEMENTO.srt
12
+ )
13
+ files += ['The Mechanism S01E06 - The Silkworm pt1 x264 RB58.mp4',
14
+ 'The Mechanism S01E06.pilot.720p BluRay BRRip 480p BoB-edited version.srt']
15
+
16
+ # single file without subtutles
17
+ files += %w[
18
+ The.Mechanism.S02E03.1080p.HDTV.x264.hastidl.mp4
19
+ ]
20
+
21
+ files.each do |name|
22
+ File.open(Dir.pwd + '/' + name, 'w') { |f| f.write('this is sample file') }
23
+ end
@@ -0,0 +1,35 @@
1
+ lib = File.expand_path('lib', __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'subfinder/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'subfinder'
7
+ spec.version = Subfinder::VERSION
8
+ spec.authors = ['sizief']
9
+ spec.email = ['sizief@gmail.com']
10
+
11
+ spec.summary = 'Find or rename subtitle for your videos'
12
+ spec.description = 'I would rename your current subtitle to amtch your video files or if it is not available then I would download it!'
13
+ spec.homepage = 'https://github.com/sizief/subfinder'
14
+ spec.license = 'MIT'
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = 'bin'
22
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
+ spec.require_paths = ['lib']
24
+
25
+ spec.add_development_dependency 'bundler', '~> 1.16'
26
+ spec.add_development_dependency 'minitest', '~> 5.0'
27
+ spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_runtime_dependency 'colorize', '~> 0.8'
29
+ spec.add_runtime_dependency 'nokogiri', '~> 1.10.1'
30
+ spec.add_runtime_dependency 'rubyzip', '~> 1.2.2'
31
+ spec.add_development_dependency 'rest-client', '~> 1.8.0'
32
+ spec.add_development_dependency 'test-unit', '~> 3.1.8'
33
+ spec.add_development_dependency 'vcr', '~> 4.0.0'
34
+ spec.add_development_dependency 'webmock', '~> 3.5.1'
35
+ end
metadata ADDED
@@ -0,0 +1,215 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: subfinder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - sizief
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-01-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: colorize
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.8'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.8'
69
+ - !ruby/object:Gem::Dependency
70
+ name: nokogiri
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.10.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.10.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubyzip
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.2.2
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.2.2
97
+ - !ruby/object:Gem::Dependency
98
+ name: rest-client
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.8.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.8.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: test-unit
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 3.1.8
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 3.1.8
125
+ - !ruby/object:Gem::Dependency
126
+ name: vcr
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 4.0.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 4.0.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: webmock
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 3.5.1
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 3.5.1
153
+ description: I would rename your current subtitle to amtch your video files or if
154
+ it is not available then I would download it!
155
+ email:
156
+ - sizief@gmail.com
157
+ executables:
158
+ - console
159
+ - setup
160
+ - subfinder
161
+ extensions: []
162
+ extra_rdoc_files: []
163
+ files:
164
+ - ".circleci/config.yml"
165
+ - ".gitignore"
166
+ - ".travis.yml"
167
+ - CODE_OF_CONDUCT.md
168
+ - Gemfile
169
+ - Gemfile.lock
170
+ - LICENSE.txt
171
+ - README.md
172
+ - Rakefile
173
+ - bin/console
174
+ - bin/setup
175
+ - bin/subfinder
176
+ - fixtures/vcr_cassettes/download_subtitle.yml
177
+ - fixtures/vcr_cassettes/integration_test.yml
178
+ - fixtures/vcr_cassettes/wrong_download_url.yml
179
+ - lib/subfinder.rb
180
+ - lib/subfinder/config.rb
181
+ - lib/subfinder/logger.rb
182
+ - lib/subfinder/main.rb
183
+ - lib/subfinder/parser/args.rb
184
+ - lib/subfinder/parser/download.rb
185
+ - lib/subfinder/parser/files.rb
186
+ - lib/subfinder/parser/subscene.rb
187
+ - lib/subfinder/subtitle.rb
188
+ - lib/subfinder/version.rb
189
+ - movies_list_creator.rb
190
+ - subfinder.gemspec
191
+ homepage: https://github.com/sizief/subfinder
192
+ licenses:
193
+ - MIT
194
+ metadata: {}
195
+ post_install_message:
196
+ rdoc_options: []
197
+ require_paths:
198
+ - lib
199
+ required_ruby_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ required_rubygems_version: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ requirements: []
210
+ rubyforge_project:
211
+ rubygems_version: 2.5.2.3
212
+ signing_key:
213
+ specification_version: 4
214
+ summary: Find or rename subtitle for your videos
215
+ test_files: []