screenshot 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +55 -0
- data/Rakefile +1 -1
- data/lib/screenshot.rb +1 -1
- data/lib/screenshot/version.rb +1 -1
- data/screenshot.gemspec +11 -10
- data/spec/rectangle_spec.rb +1 -1
- metadata +17 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de0d3273a0f51eb030ed4ffbc1246b9a27b8d54a
|
|
4
|
+
data.tar.gz: dc957f799ef90603363030868155b71db5859067
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c64ff46d750fca6f1741a38aa36ebb0c13a2563ee9b2ecee28349520f1fecfb7274d8edf30236585837621ddb2c1f0fbbc47d57d000fae79375ff90fdfdb50a1
|
|
7
|
+
data.tar.gz: b44c80ab8b3526e013dd502008b3680246be5dc15fc5b9a1367ebde8aae167b2683db8cd555d5b77c29077beb273d7d6cb2c45f50860c6048bc75282a8ec5eb6
|
data/.rubocop.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# This configuration was generated by `rubocop --auto-gen-config`
|
|
2
|
+
# on 2015-02-17 14:05:23 +0200 using RuboCop version 0.29.1.
|
|
3
|
+
# The point is for the user to remove these configuration records
|
|
4
|
+
# one by one as the offenses are removed from the code base.
|
|
5
|
+
# Note that changes in the inspected code, or installation of new
|
|
6
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
7
|
+
|
|
8
|
+
# Offense count: 2
|
|
9
|
+
Metrics/AbcSize:
|
|
10
|
+
Max: 19
|
|
11
|
+
|
|
12
|
+
# Offense count: 53
|
|
13
|
+
# Configuration parameters: AllowURI, URISchemes.
|
|
14
|
+
Metrics/LineLength:
|
|
15
|
+
Max: 288
|
|
16
|
+
|
|
17
|
+
# Offense count: 1
|
|
18
|
+
# Configuration parameters: CountComments.
|
|
19
|
+
Metrics/MethodLength:
|
|
20
|
+
Max: 16
|
|
21
|
+
|
|
22
|
+
# Offense count: 2
|
|
23
|
+
Style/Documentation:
|
|
24
|
+
Enabled: false
|
|
25
|
+
|
|
26
|
+
# Offense count: 2
|
|
27
|
+
# Cop supports --auto-correct.
|
|
28
|
+
# Configuration parameters: PreferredDelimiters.
|
|
29
|
+
Style/PercentLiteralDelimiters:
|
|
30
|
+
Enabled: false
|
|
31
|
+
|
|
32
|
+
# Offense count: 2
|
|
33
|
+
# Cop supports --auto-correct.
|
|
34
|
+
Style/RedundantSelf:
|
|
35
|
+
Enabled: false
|
|
36
|
+
|
|
37
|
+
# Offense count: 2
|
|
38
|
+
Style/RegexpLiteral:
|
|
39
|
+
MaxSlashes: 0
|
|
40
|
+
|
|
41
|
+
# Offense count: 1
|
|
42
|
+
# Cop supports --auto-correct.
|
|
43
|
+
Style/SpecialGlobalVars:
|
|
44
|
+
Enabled: false
|
|
45
|
+
|
|
46
|
+
# Offense count: 1
|
|
47
|
+
# Cop supports --auto-correct.
|
|
48
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
49
|
+
Style/StringLiterals:
|
|
50
|
+
Enabled: false
|
|
51
|
+
|
|
52
|
+
# Offense count: 2
|
|
53
|
+
# Cop supports --auto-correct.
|
|
54
|
+
Style/UnneededPercentQ:
|
|
55
|
+
Enabled: false
|
data/Rakefile
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require
|
|
1
|
+
require 'bundler/gem_tasks'
|
data/lib/screenshot.rb
CHANGED
data/lib/screenshot/version.rb
CHANGED
data/screenshot.gemspec
CHANGED
|
@@ -4,23 +4,24 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
require 'screenshot/version'
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
|
-
spec.name =
|
|
7
|
+
spec.name = 'screenshot'
|
|
8
8
|
spec.version = Screenshot::VERSION
|
|
9
|
-
spec.authors = [
|
|
10
|
-
spec.email = [
|
|
9
|
+
spec.authors = ['Vikas Yaligar', 'Željko Filipin', 'Amir E. Aharoni']
|
|
10
|
+
spec.email = ['amir.aharoni@mail.huji.ac.il']
|
|
11
11
|
spec.description = %q{A library for taking and cropping screenshots of web pages. It uses Selenium and chunky_png. It was originally built for taking screenshots in many languages for the translations of the Wikimedia VisualEditor user manual, but now it can be used for any project.}
|
|
12
12
|
spec.summary = %q{A library for taking and cropping screenshots of web pages.}
|
|
13
|
-
spec.homepage =
|
|
14
|
-
spec.license =
|
|
13
|
+
spec.homepage = 'https://github.com/amire80/screenshot'
|
|
14
|
+
spec.license = 'MIT'
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
-
spec.require_paths = [
|
|
19
|
+
spec.require_paths = ['lib']
|
|
20
20
|
|
|
21
|
-
spec.add_runtime_dependency
|
|
21
|
+
spec.add_runtime_dependency 'chunky_png', '~> 1.3.3'
|
|
22
22
|
|
|
23
|
-
spec.add_development_dependency
|
|
24
|
-
spec.add_development_dependency
|
|
25
|
-
spec.add_development_dependency
|
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
|
24
|
+
spec.add_development_dependency 'rake'
|
|
25
|
+
spec.add_development_dependency 'rubocop'
|
|
26
|
+
spec.add_development_dependency 'rspec', '~> 3.2.0'
|
|
26
27
|
end
|
data/spec/rectangle_spec.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: screenshot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vikas Yaligar
|
|
@@ -54,6 +54,20 @@ dependencies:
|
|
|
54
54
|
- - '>='
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
56
|
version: '0'
|
|
57
|
+
- !ruby/object:Gem::Dependency
|
|
58
|
+
name: rubocop
|
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - '>='
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '0'
|
|
64
|
+
type: :development
|
|
65
|
+
prerelease: false
|
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
67
|
+
requirements:
|
|
68
|
+
- - '>='
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '0'
|
|
57
71
|
- !ruby/object:Gem::Dependency
|
|
58
72
|
name: rspec
|
|
59
73
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -79,6 +93,8 @@ extensions: []
|
|
|
79
93
|
extra_rdoc_files: []
|
|
80
94
|
files:
|
|
81
95
|
- .gitignore
|
|
96
|
+
- .rubocop.yml
|
|
97
|
+
- .rubocop_todo.yml
|
|
82
98
|
- Gemfile
|
|
83
99
|
- LICENSE.txt
|
|
84
100
|
- README.md
|