images_by_url 0.1.4 → 0.1.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/.codeclimate.yml +2 -0
- data/.coveralls.yml +1 -0
- data/.rubocop.yml +8 -0
- data/.travis.yml +12 -26
- data/CONTTIBUTING.md +2 -2
- data/Gemfile +2 -1
- data/Gemfile.lock +23 -6
- data/README.md +11 -1
- data/Rakefile +1 -1
- data/appveyor.yml +19 -0
- data/images_by_url.gemspec +3 -2
- data/lib/images_by_url.rb +1 -1
- data/lib/images_by_url/version.rb +1 -1
- metadata +9 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b47fb80a067f06928354e1984f7e42c4b75c5c5
|
|
4
|
+
data.tar.gz: c7ccfbdf4631bebb94e3493e0810839af9b7592a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8efb53a2e66e767a14ee7a3560015fbc7d37bf915926c294bd5f59994681b15e129d98c9139dc3eacf5a3ae0dd51181c5b8b63c02c5a406861e540ae71e7fc33
|
|
7
|
+
data.tar.gz: fb981cc1b2c936764648ccfe34ec366b71a35014f31d0b362dd82166bca355abd68df525a417440b25b797a0516ce9f6b0228a9ff9df8c7558bebb879363549b
|
data/.codeclimate.yml
ADDED
data/.coveralls.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
repo_token: ymNKGFltvhfus0p5nSDriDQB1RTU2Bcj6
|
data/.rubocop.yml
ADDED
data/.travis.yml
CHANGED
|
@@ -7,33 +7,19 @@ cache:
|
|
|
7
7
|
bundler: true
|
|
8
8
|
rvm:
|
|
9
9
|
- 2.4.1
|
|
10
|
+
addons:
|
|
11
|
+
apt:
|
|
12
|
+
packages:
|
|
13
|
+
- xvfb
|
|
14
|
+
chrome: stable
|
|
15
|
+
code_climate:
|
|
16
|
+
repo_token: 431e13a58615c311ea53fd104db553d633d96018687949d0b3423ace9b4ccf47
|
|
10
17
|
before_script:
|
|
11
|
-
-
|
|
18
|
+
- export DISPLAY=:99.0
|
|
19
|
+
- sh -e /etc/init.d/xvfb start
|
|
20
|
+
- google-chrome-stable --headless --no-sandbox --disable-gpu --remote-debugging-port=9222 http://localhost &
|
|
12
21
|
- gem install images_by_url
|
|
13
|
-
|
|
14
|
-
# Install dependencies.
|
|
15
|
-
- sudo apt-get update
|
|
16
|
-
- sudo apt-get install -y openjdk-8-jre-headless xvfb libxi6 libgconf-2-4
|
|
17
|
-
|
|
18
|
-
# Install Chrome.
|
|
19
|
-
- wget -N https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -P ~/
|
|
20
|
-
- sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
|
|
21
|
-
- sudo apt-get -f install -y
|
|
22
|
-
- sudo dpkg -i --force-depends ~/google-chrome-stable_current_amd64.deb
|
|
23
|
-
|
|
24
|
-
# Install ChromeDriver.
|
|
25
|
-
- wget -N http://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip -P ~/
|
|
26
|
-
- unzip ~/chromedriver_linux64.zip -d ~/
|
|
27
|
-
- rm ~/chromedriver_linux64.zip
|
|
28
|
-
- sudo mv -f ~/chromedriver /usr/local/share/
|
|
29
|
-
- sudo chmod +x /usr/local/share/chromedriver
|
|
30
|
-
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
|
|
31
|
-
|
|
32
|
-
# Install Selenium.
|
|
33
|
-
- wget -N http://selenium-release.storage.googleapis.com/3.0/selenium-server-standalone-3.0.1.jar -P ~/
|
|
34
|
-
- sudo mv -f ~/selenium-server-standalone-3.0.1.jar /usr/local/share/
|
|
35
|
-
- sudo chmod +x /usr/local/share/selenium-server-standalone-3.0.1.jar
|
|
36
|
-
- sudo ln -s /usr/local/share/selenium-server-standalone-3.0.1.jar /usr/local/bin/selenium-server-standalone-3.0.1.jar
|
|
37
22
|
script:
|
|
38
23
|
- BROWSER_MIN=on ENV=test bundle exec rspec
|
|
39
|
-
|
|
24
|
+
after_success:
|
|
25
|
+
- bundle exec codeclimate-test-reporter
|
data/CONTTIBUTING.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Reporting Issues
|
|
2
2
|
|
|
3
|
-
You can report issues at https://github.com/
|
|
3
|
+
You can report issues at https://github.com/Mifrill/gem_images_by_url/issues
|
|
4
4
|
|
|
5
5
|
Search existing issues for your problem, chances are someone else already reported it.
|
|
6
6
|
|
|
@@ -25,7 +25,7 @@ Thanks!
|
|
|
25
25
|
|
|
26
26
|
To fetch & test the library for development, do:
|
|
27
27
|
|
|
28
|
-
$ git clone https://github.com/
|
|
28
|
+
$ git clone https://github.com/Mifrill/gem_images_by_url.git
|
|
29
29
|
$ cd images_by_url
|
|
30
30
|
$ bundle
|
|
31
31
|
$ rspec
|
data/Gemfile
CHANGED
|
@@ -4,12 +4,13 @@ source 'https://rubygems.org'
|
|
|
4
4
|
gemspec
|
|
5
5
|
|
|
6
6
|
gem 'headless', '~> 2.3.1'
|
|
7
|
-
gem 'nokogiri', '~> 1.8.
|
|
7
|
+
gem 'nokogiri', '~> 1.8.1'
|
|
8
8
|
|
|
9
9
|
group :development, :test do
|
|
10
10
|
gem 'rspec', '3.6.0'
|
|
11
11
|
# Generate code coverate reports
|
|
12
12
|
gem 'codeclimate-test-reporter', '~> 1.0.8', require: false
|
|
13
13
|
gem 'codecov', '~> 0.1.10', require: false
|
|
14
|
+
gem 'coveralls', '~> 0.7.2', require: false
|
|
14
15
|
gem 'simplecov', '~> 0.13.0', require: false
|
|
15
16
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -13,16 +13,28 @@ GEM
|
|
|
13
13
|
json
|
|
14
14
|
simplecov
|
|
15
15
|
url
|
|
16
|
+
coveralls (0.7.2)
|
|
17
|
+
multi_json (~> 1.3)
|
|
18
|
+
rest-client (= 1.6.7)
|
|
19
|
+
simplecov (>= 0.7)
|
|
20
|
+
term-ansicolor (= 1.2.2)
|
|
21
|
+
thor (= 0.18.1)
|
|
16
22
|
diff-lcs (1.3)
|
|
17
23
|
docile (1.1.5)
|
|
18
24
|
headless (2.3.1)
|
|
19
25
|
json (2.1.0)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
mime-types (3.1)
|
|
27
|
+
mime-types-data (~> 3.2015)
|
|
28
|
+
mime-types-data (3.2016.0521)
|
|
29
|
+
mini_portile2 (2.3.0)
|
|
30
|
+
multi_json (1.12.2)
|
|
31
|
+
nokogiri (1.8.1)
|
|
32
|
+
mini_portile2 (~> 2.3.0)
|
|
33
|
+
rake (12.1.0)
|
|
24
34
|
rake-compiler (1.0.4)
|
|
25
35
|
rake
|
|
36
|
+
rest-client (1.6.7)
|
|
37
|
+
mime-types (>= 1.16)
|
|
26
38
|
rspec (3.6.0)
|
|
27
39
|
rspec-core (~> 3.6.0)
|
|
28
40
|
rspec-expectations (~> 3.6.0)
|
|
@@ -40,7 +52,11 @@ GEM
|
|
|
40
52
|
docile (~> 1.1.0)
|
|
41
53
|
json (>= 1.8, < 3)
|
|
42
54
|
simplecov-html (~> 0.10.0)
|
|
43
|
-
simplecov-html (0.10.
|
|
55
|
+
simplecov-html (0.10.2)
|
|
56
|
+
term-ansicolor (1.2.2)
|
|
57
|
+
tins (~> 0.8)
|
|
58
|
+
thor (0.18.1)
|
|
59
|
+
tins (0.13.2)
|
|
44
60
|
url (0.3.2)
|
|
45
61
|
|
|
46
62
|
PLATFORMS
|
|
@@ -50,6 +66,7 @@ DEPENDENCIES
|
|
|
50
66
|
bundler
|
|
51
67
|
codeclimate-test-reporter (~> 1.0.8)
|
|
52
68
|
codecov (~> 0.1.10)
|
|
69
|
+
coveralls (~> 0.7.2)
|
|
53
70
|
headless (~> 2.3.1)
|
|
54
71
|
images_by_url!
|
|
55
72
|
nokogiri (~> 1.8.0)
|
|
@@ -59,4 +76,4 @@ DEPENDENCIES
|
|
|
59
76
|
simplecov (~> 0.13.0)
|
|
60
77
|
|
|
61
78
|
BUNDLED WITH
|
|
62
|
-
1.
|
|
79
|
+
1.15.3
|
data/README.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
[](https://badge.fury.io/rb/images_by_url)
|
|
2
2
|
[](https://travis-ci.org/Mifrill/gem_images_by_url)
|
|
3
|
+
[](https://circleci.com/gh/Mifrill/gem_images_by_url)
|
|
4
|
+
[ ](https://app.codeship.com/projects/237509)
|
|
3
5
|
[](https://codeclimate.com/github/Mifrill/gem_images_by_url)
|
|
4
6
|
[](https://codeclimate.com/github/mifrill/gem_images_by_url)
|
|
7
|
+
[](https://coveralls.io/github/Mifrill/gem_images_by_url?branch=master)
|
|
5
8
|
[](https://codecov.io/gh/Mifrill/gem_images_by_url)
|
|
6
9
|
[](http://inch-ci.org/github/Mifrill/gem_images_by_url)
|
|
7
10
|
[](https://gemnasium.com/github.com/Mifrill/gem_images_by_url)
|
|
11
|
+
[](https://hakiri.io/github/Mifrill/gem_images_by_url/master)
|
|
12
|
+
[](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2FMifrill%2Fgem_images_by_url?ref=badge_shield)
|
|
13
|
+
[](https://www.codetriage.com/mifrill/gem_images_by_url)
|
|
8
14
|
|
|
9
15
|
# ImagesByUrl
|
|
10
16
|
|
|
@@ -40,9 +46,13 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
40
46
|
|
|
41
47
|
## Contributing
|
|
42
48
|
|
|
43
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
49
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/Mifrill/gem_images_by_url/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
50
|
+
See the [contributing guide](https://github.com/Mifrill/gem_images_by_url/blob/master/CONTTIBUTING.md).
|
|
44
51
|
|
|
45
52
|
|
|
46
53
|
## License
|
|
47
54
|
|
|
48
55
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
[](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2FMifrill%2Fgem_images_by_url?ref=badge_large)
|
data/Rakefile
CHANGED
data/appveyor.yml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
version: "1.{build}"
|
|
2
|
+
|
|
3
|
+
environment:
|
|
4
|
+
matrix:
|
|
5
|
+
- RUBY_VERSION: 24
|
|
6
|
+
install:
|
|
7
|
+
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
|
|
8
|
+
- git clone https://github.com/codahale/bcrypt-ruby.git
|
|
9
|
+
- cd bcrypt-ruby
|
|
10
|
+
- gem build bcrypt.gemspec
|
|
11
|
+
- gem install gem-compiler
|
|
12
|
+
- gem compile bcrypt-3.1.11.gem
|
|
13
|
+
- gem install ./bcrypt-3.1.11-x86-mingw32.gem
|
|
14
|
+
- cd ..
|
|
15
|
+
- bundle install
|
|
16
|
+
build: off
|
|
17
|
+
test_script:
|
|
18
|
+
- set ENV=test
|
|
19
|
+
- bundle exec rspec
|
data/images_by_url.gemspec
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# coding: utf-8
|
|
2
|
+
|
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
5
|
require 'images_by_url/version'
|
|
@@ -24,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
|
24
25
|
'public gem pushes.'
|
|
25
26
|
end
|
|
26
27
|
|
|
27
|
-
spec.files
|
|
28
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
28
29
|
f.match(%r{^(test|spec|features)/})
|
|
29
30
|
end
|
|
30
31
|
spec.bindir = 'exe'
|
|
@@ -32,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
|
32
33
|
spec.require_paths = ['lib']
|
|
33
34
|
spec.extensions = ['ext/images_by_url/extconf.rb']
|
|
34
35
|
|
|
35
|
-
spec.add_runtime_dependency 'nokogiri', '~> 1.8.
|
|
36
|
+
spec.add_runtime_dependency 'nokogiri', '~> 1.8.1'
|
|
36
37
|
spec.add_development_dependency 'rspec', '~> 3.6.0'
|
|
37
38
|
spec.add_development_dependency 'bundler'
|
|
38
39
|
spec.add_development_dependency 'rake'
|
data/lib/images_by_url.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: images_by_url
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mifrill
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.8.
|
|
19
|
+
version: 1.8.1
|
|
20
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: 1.8.
|
|
26
|
+
version: 1.8.1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rspec
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -89,8 +89,11 @@ extensions:
|
|
|
89
89
|
- ext/images_by_url/extconf.rb
|
|
90
90
|
extra_rdoc_files: []
|
|
91
91
|
files:
|
|
92
|
+
- ".codeclimate.yml"
|
|
93
|
+
- ".coveralls.yml"
|
|
92
94
|
- ".gitignore"
|
|
93
95
|
- ".rspec"
|
|
96
|
+
- ".rubocop.yml"
|
|
94
97
|
- ".travis.yml"
|
|
95
98
|
- CODE_OF_CONDUCT.md
|
|
96
99
|
- CONTTIBUTING.md
|
|
@@ -99,6 +102,7 @@ files:
|
|
|
99
102
|
- LICENSE.txt
|
|
100
103
|
- README.md
|
|
101
104
|
- Rakefile
|
|
105
|
+
- appveyor.yml
|
|
102
106
|
- bin/console
|
|
103
107
|
- bin/setup
|
|
104
108
|
- codecov.yml
|
|
@@ -130,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
130
134
|
version: '0'
|
|
131
135
|
requirements: []
|
|
132
136
|
rubyforge_project:
|
|
133
|
-
rubygems_version: 2.
|
|
137
|
+
rubygems_version: 2.5.2
|
|
134
138
|
signing_key:
|
|
135
139
|
specification_version: 4
|
|
136
140
|
summary: Get list of images links by url
|