images_by_url 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 48e84906893e1b33d1866a17fe875ba6971706d9
4
- data.tar.gz: 86ce45f53fd2f8246fc095740cdb0bf0aec1f193
3
+ metadata.gz: 5b47fb80a067f06928354e1984f7e42c4b75c5c5
4
+ data.tar.gz: c7ccfbdf4631bebb94e3493e0810839af9b7592a
5
5
  SHA512:
6
- metadata.gz: 476d3e36044d70e6b6f614cdf0e567a080be6e84663f3c6c4f1ef9112244fcbb8b906669c232b81b09032be4ee9797400c8820a4b65a50fff6c9dbe477f16c36
7
- data.tar.gz: 2d5896e9f37466a7de9c66acc8b0d219a614e9585efe112677adccc7c3d17ac16668e2f1c2d76d8ba0c25bce2ac05b449f75d217e20c88daf08a322499528916
6
+ metadata.gz: 8efb53a2e66e767a14ee7a3560015fbc7d37bf915926c294bd5f59994681b15e129d98c9139dc3eacf5a3ae0dd51181c5b8b63c02c5a406861e540ae71e7fc33
7
+ data.tar.gz: fb981cc1b2c936764648ccfe34ec366b71a35014f31d0b362dd82166bca355abd68df525a417440b25b797a0516ce9f6b0228a9ff9df8c7558bebb879363549b
@@ -0,0 +1,2 @@
1
+ languages:
2
+ Ruby: true
@@ -0,0 +1 @@
1
+ repo_token: ymNKGFltvhfus0p5nSDriDQB1RTU2Bcj6
@@ -0,0 +1,8 @@
1
+ Documentation:
2
+ Enabled: false
3
+ Style/FrozenStringLiteralComment:
4
+ Enabled: false
5
+ Metrics/LineLength:
6
+ Max: 100
7
+ Metrics/BlockLength:
8
+ Max: 40
@@ -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
- - bundle install
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
- #- CODECLIMATE_REPO_TOKEN=431e13a58615c311ea53fd104db553d633d96018687949d0b3423ace9b4ccf47 bundle exec codeclimate-test-reporter
24
+ after_success:
25
+ - bundle exec codeclimate-test-reporter
@@ -1,6 +1,6 @@
1
1
  ## Reporting Issues
2
2
 
3
- You can report issues at https://github.com/mifrill/images_by_url/issues
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/mifrill/images_by_url.git
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.0'
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
@@ -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
- mini_portile2 (2.2.0)
21
- nokogiri (1.8.0)
22
- mini_portile2 (~> 2.2.0)
23
- rake (10.5.0)
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.1)
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.14.6
79
+ 1.15.3
data/README.md CHANGED
@@ -1,10 +1,16 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/images_by_url.svg)](https://badge.fury.io/rb/images_by_url)
2
2
  [![Build Status](https://travis-ci.org/Mifrill/gem_images_by_url.svg?branch=master)](https://travis-ci.org/Mifrill/gem_images_by_url)
3
+ [![CircleCI](https://circleci.com/gh/Mifrill/gem_images_by_url.svg?style=svg)](https://circleci.com/gh/Mifrill/gem_images_by_url)
4
+ [ ![Codeship Status for Mifrill/gem_images_by_url](https://app.codeship.com/projects/17b49290-5b59-0135-037f-5a9d8b34c42a/status?branch=master)](https://app.codeship.com/projects/237509)
3
5
  [![Quality](http://img.shields.io/codeclimate/github/Mifrill/gem_images_by_url.svg)](https://codeclimate.com/github/Mifrill/gem_images_by_url)
4
6
  [![Coverage Status](https://img.shields.io/codeclimate/coverage/github/Mifrill/gem_images_by_url.svg)](https://codeclimate.com/github/mifrill/gem_images_by_url)
7
+ [![Coverage Status](https://coveralls.io/repos/github/Mifrill/gem_images_by_url/badge.svg?branch=master)](https://coveralls.io/github/Mifrill/gem_images_by_url?branch=master)
5
8
  [![codecov](https://codecov.io/gh/Mifrill/gem_images_by_url/branch/master/graph/badge.svg)](https://codecov.io/gh/Mifrill/gem_images_by_url)
6
9
  [![Inline docs](http://inch-ci.org/github/Mifrill/gem_images_by_url.svg?branch=master)](http://inch-ci.org/github/Mifrill/gem_images_by_url)
7
10
  [![Dependency Status](https://gemnasium.com/badges/github.com/Mifrill/gem_images_by_url.svg)](https://gemnasium.com/github.com/Mifrill/gem_images_by_url)
11
+ [![security](https://hakiri.io/github/Mifrill/gem_images_by_url/master.svg)](https://hakiri.io/github/Mifrill/gem_images_by_url/master)
12
+ [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2FMifrill%2Fgem_images_by_url.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2FMifrill%2Fgem_images_by_url?ref=badge_shield)
13
+ [![Code Triagers Badge](https://www.codetriage.com/mifrill/gem_images_by_url/badges/users.svg)](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/mifrill/images_by_url. 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.
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
+ [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2FMifrill%2Fgem_images_by_url.svg?type=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2FMifrill%2Fgem_images_by_url?ref=badge_large)
data/Rakefile CHANGED
@@ -11,4 +11,4 @@ Rake::ExtensionTask.new('images_by_url') do |ext|
11
11
  ext.lib_dir = 'lib/images_by_url'
12
12
  end
13
13
 
14
- task default: [:clobber, :compile, :spec]
14
+ task default: %i[clobber compile spec]
@@ -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
@@ -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 = `git ls-files -z`.split("\x0").reject do |f|
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.0'
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'
@@ -13,7 +13,7 @@ module ImagesByUrl
13
13
  doc.css('img').each do |showing|
14
14
  img = showing.attr('src')
15
15
  showings.push(
16
- link: img
16
+ link: img
17
17
  )
18
18
  end
19
19
  JSON.pretty_generate(showings)
@@ -1,3 +1,3 @@
1
1
  module ImagesByUrl
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'.freeze
3
3
  end
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
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-07-17 00:00:00.000000000 Z
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.0
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.0
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.6.12
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