subfinder 0.0.2 → 0.0.2.1

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
  SHA256:
3
- metadata.gz: 9b2258bd01dc4ef23a2b5463d84088fd1be9a905087952d521c263d6e5d40afa
4
- data.tar.gz: d28e29ee52b15e5d7f98c5909d20ee78afefafc8b33a268acf96e7311e8e5de7
3
+ metadata.gz: 4848f8e63a2a66aabd4879ac43d98feafaf76b979d85e78d1860f07d16a9cc46
4
+ data.tar.gz: 7f3521fdb93cd7bcb03c9a0b3fed9bc605599485873e18d2572bd17539e99cbc
5
5
  SHA512:
6
- metadata.gz: 21b615303289eea1f97611116c2bc97f82047ba9b7c45e8b043facf9523d4d3ca62088d8771c058e295888be604c3706e9638dcce01ef0cf1f5ba6688ac70594
7
- data.tar.gz: 2ec5e654f7c6ebbb494c656cd3c07d2ac3a1cc9025f25cc9a8ede8ee1c734c82537610cfa6d163fcce3af983c9f1b89e20d888a41de21ea7164d7f3c661924d1
6
+ metadata.gz: c11fb2f85796730427311234708f9f5177c610b8e0aa7cfa7e0be28ad4071758c1f5698ad116d34adfaf1d6874e81b383bc8a99931907aaec57232046b163f75
7
+ data.tar.gz: 6d00f649041b8213438e0c350661a77e2c737d942c66a9c1096f1a830ddcdc890863f4013bdb0c1794f61d950d1a723c66cc758d3c11ff5830fa5b454f9064f4
data/.circleci/config.yml CHANGED
@@ -7,7 +7,7 @@ jobs:
7
7
  build:
8
8
  docker:
9
9
  # specify the version you desire here
10
- - image: circleci/ruby:2.4.1-node-browsers
10
+ - image: circleci/ruby:2.5.1-node
11
11
 
12
12
  # Specify service dependencies here if necessary
13
13
  # CircleCI maintains a library of pre-built images
@@ -25,6 +25,12 @@ jobs:
25
25
  - v1-dependencies-{{ checksum "Gemfile.lock" }}
26
26
  # fallback to using the latest cache if no exact match is found
27
27
  - v1-dependencies-
28
+ - run:
29
+ name: Configure Bundler
30
+ command: |
31
+ echo 'export BUNDLER_VERSION=$(cat Gemfile.lock | tail -1 | tr -d " ")' >> $BASH_ENV
32
+ source $BASH_ENV
33
+ gem install bundler
28
34
 
29
35
  - run:
30
36
  name: install dependencies
@@ -52,4 +58,4 @@ jobs:
52
58
  path: /tmp/test-results
53
59
  - store_artifacts:
54
60
  path: /tmp/test-results
55
- destination: test-results
61
+ destination: test-results
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.1
data/Gemfile.lock CHANGED
@@ -2,8 +2,11 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  subfinder (0.0.2)
5
+ bundler (~> 2.0.1)
5
6
  colorize (~> 0.8)
6
7
  nokogiri (~> 1.10.1)
8
+ rake (~> 10.0)
9
+ rest-client (~> 1.8.0)
7
10
  rubyzip (~> 1.2.2)
8
11
 
9
12
  GEM
@@ -49,10 +52,8 @@ PLATFORMS
49
52
  ruby
50
53
 
51
54
  DEPENDENCIES
52
- bundler (~> 2.0.1)
55
+ colorize (~> 0.8)
53
56
  minitest (~> 5.0)
54
- rake (~> 10.0)
55
- rest-client (~> 1.8.0)
56
57
  subfinder!
57
58
  test-unit (~> 3.1.8)
58
59
  vcr (~> 4.0.0)
data/README.md CHANGED
@@ -24,15 +24,16 @@ Then simply run:
24
24
 
25
25
  `$ gem install subfinder`
26
26
 
27
-
27
+ Without any switches, this will unzip all zipped or compressed files and find/rename them to correspondent video file. Also you can provide the URL for `subscene.com` list page with `-u` and it would download the correct file and do the rest.
28
28
 
29
29
  ## Usage
30
30
 
31
+
31
32
 
32
33
 
33
34
  `$ subfinder -u https://subscene.com/subtitles/the-kominsky-method -l fa`
34
35
 
35
- - Use `-l` or `--language`for subtitle language you want. Default is English.
36
+ - Use `-l` or `--language`for subtitle language you want. Default is English. Right now only `fa` and `en` are supported.
36
37
 
37
38
  - Use `-u` or `--url` to specify a URL page of a TV series on `subscene.com` website.
38
39
 
@@ -43,7 +44,7 @@ Then simply run:
43
44
 
44
45
  ## Development
45
46
 
46
-
47
+ * Please report any broken thing using Github issues *
47
48
 
48
49
  To run tests, run `rake test`.
49
50
 
@@ -57,10 +58,6 @@ Then `gem install pkg/subfinder-0.0.1.gem` to install it locally.
57
58
 
58
59
  Create a temp folder and run `movies_list_creator.rb` inside that folder. It will create fake files.
59
60
 
60
- Use following script to create a list_file of current episodes in any folder
61
-
62
- ```ruby -e'Dir["#{Dir.pwd}/*"].each{ |file| File.open("#{Dir.pwd}/files_list.txt", "a") { |f| f.write(file.split("/").last+"\n") }}'```
63
-
64
61
 
65
62
 
66
63
 
@@ -14,7 +14,7 @@ module Subfinder
14
14
  opts.separator 'options:'
15
15
  opts.on('-u', '--url url', 'Set subscene url page') { |url| Config.url = url }
16
16
  opts.on('-l', '--language language', 'Set subtitle language') { |language| Config.language = language }
17
- opts.on('-v', '--version', 'Show the Compare Crypto version') { puts("compare-crypto #{CompareCrypto::VERSION}"); exit }
17
+ opts.on('-v', '--version', 'Show the Compare Crypto version') { puts("Subfinder #{Subfinder::VERSION}"); exit }
18
18
  opts.on('-h', '--help', 'Show this message') { puts(opts); exit }
19
19
  opts.on('-d', '--debug', 'debug') { Config.debug = true }
20
20
 
@@ -1,3 +1,3 @@
1
1
  module Subfinder
2
- VERSION = '0.0.2'.freeze
2
+ VERSION = '0.0.2.1'.freeze
3
3
  end
data/subfinder.gemspec CHANGED
@@ -22,14 +22,15 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 2.0.1'
26
- spec.add_development_dependency 'minitest', '~> 5.0'
27
- spec.add_development_dependency 'rake', '~> 10.0'
25
+ spec.add_runtime_dependency 'rake', '~> 10.0'
28
26
  spec.add_runtime_dependency 'colorize', '~> 0.8'
29
27
  spec.add_runtime_dependency 'nokogiri', '~> 1.10.1'
30
28
  spec.add_runtime_dependency 'rubyzip', '~> 1.2.2'
31
- spec.add_development_dependency 'rest-client', '~> 1.8.0'
29
+ spec.add_runtime_dependency 'rest-client', '~> 1.8.0'
30
+ spec.add_runtime_dependency 'bundler', '~> 2.0.1'
32
31
  spec.add_development_dependency 'test-unit', '~> 3.1.8'
32
+ spec.add_development_dependency 'colorize', '~> 0.8'
33
33
  spec.add_development_dependency 'vcr', '~> 4.0.0'
34
34
  spec.add_development_dependency 'webmock', '~> 3.5.1'
35
+ spec.add_development_dependency 'minitest', '~> 5.0'
35
36
  end
metadata CHANGED
@@ -1,127 +1,127 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subfinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sizief
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-31 00:00:00.000000000 Z
11
+ date: 2019-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.1
20
- type: :development
19
+ version: '10.0'
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.1
26
+ version: '10.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: minitest
28
+ name: colorize
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.0'
34
- type: :development
33
+ version: '0.8'
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '5.0'
40
+ version: '0.8'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
48
- type: :development
47
+ version: 1.10.1
48
+ type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: 1.10.1
55
55
  - !ruby/object:Gem::Dependency
56
- name: colorize
56
+ name: rubyzip
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.8'
61
+ version: 1.2.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.8'
68
+ version: 1.2.2
69
69
  - !ruby/object:Gem::Dependency
70
- name: nokogiri
70
+ name: rest-client
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.10.1
75
+ version: 1.8.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.10.1
82
+ version: 1.8.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: rubyzip
84
+ name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.2.2
89
+ version: 2.0.1
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.2.2
96
+ version: 2.0.1
97
97
  - !ruby/object:Gem::Dependency
98
- name: rest-client
98
+ name: test-unit
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.8.0
103
+ version: 3.1.8
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 1.8.0
110
+ version: 3.1.8
111
111
  - !ruby/object:Gem::Dependency
112
- name: test-unit
112
+ name: colorize
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 3.1.8
117
+ version: '0.8'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 3.1.8
124
+ version: '0.8'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: vcr
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: 3.5.1
153
+ - !ruby/object:Gem::Dependency
154
+ name: minitest
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '5.0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '5.0'
153
167
  description: I would rename your current subtitle to match your video files or if
154
168
  it is not available then I would download it!
155
169
  email:
@@ -163,6 +177,7 @@ extra_rdoc_files: []
163
177
  files:
164
178
  - ".circleci/config.yml"
165
179
  - ".gitignore"
180
+ - ".ruby-version"
166
181
  - ".travis.yml"
167
182
  - CODE_OF_CONDUCT.md
168
183
  - Gemfile