images_by_url 0.1.1 → 0.1.2

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: 372e8f2d6c7ff14431ae27c20211d5200a33a623
4
- data.tar.gz: b5862a5254b01632e43cf9e0921f7fb02d181509
3
+ metadata.gz: 88db26b07557dba850289657ffd4352a489d7fab
4
+ data.tar.gz: 1ee7c30083dd3b3ecd06e0f000dc5ba8d11f7e74
5
5
  SHA512:
6
- metadata.gz: 3332cb2985edc5786c30b5f7cd129f211e5ffb17053fbede5e9801b29cf4f6284a923328991d5e41a6308770d8abae3050508752ca932ef919676859d0eafb4d
7
- data.tar.gz: fa7a5676bcf1da31ee6b676586fc9ef18854e3f3837a0910342a9ea870279371e2f35eb94221f6565f06cc7b06fb5ff6fe4a5f64044b92b5b20810b215045200
6
+ metadata.gz: ebb3c5ca759a444a81066cf980eea645360f190ec8dc5e2402e8ca86bac67a2cde0785801d6e797624e6eb3133af7503a7ebe2c88b73e0ba5f654d7d1bc0b026
7
+ data.tar.gz: d04eb9195426cd6c0026856a16076d9483c3cf6f3595699704c4732d35b5f8fe8e619d2db3ed4124afbd26f6d7a0e18eacb3ec220d1e83c22dee2668f92c40d6
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
data/.travis.yml CHANGED
@@ -1,5 +1,39 @@
1
- sudo: false
1
+ sudo: required
2
+ dist: trusty
3
+ notifications:
4
+ email: false
2
5
  language: ruby
6
+ cache:
7
+ bundler: true
3
8
  rvm:
4
9
  - 2.4.1
5
- before_install: gem install bundler -v 1.14.6
10
+ before_script:
11
+ - bundle install
12
+ - 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
+ script:
38
+ - BROWSER_MIN=on ENV=test bundle exec rspec
39
+ - CODECLIMATE_REPO_TOKEN=431e13a58615c311ea53fd104db553d633d96018687949d0b3423ace9b4ccf47 bundle exec codeclimate-test-reporter
data/Gemfile CHANGED
@@ -3,5 +3,13 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in images_by_url.gemspec
4
4
  gemspec
5
5
 
6
- gem 'nokogiri'
7
- gem 'rspec'
6
+ gem 'headless', '~> 2.3.1'
7
+ gem 'nokogiri', '~> 1.8.0'
8
+
9
+ group :development, :test do
10
+ gem 'rspec', '3.6.0'
11
+ # Generate code coverate reports
12
+ gem 'codeclimate-test-reporter', '~> 1.0.8', require: false
13
+ gem 'codecov', '~> 0.1.10', require: false
14
+ gem 'simplecov', '~> 0.13.0', require: false
15
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,62 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ images_by_url (0.1.2)
5
+ nokogiri (~> 1.8.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ codeclimate-test-reporter (1.0.8)
11
+ simplecov (<= 0.13)
12
+ codecov (0.1.10)
13
+ json
14
+ simplecov
15
+ url
16
+ diff-lcs (1.3)
17
+ docile (1.1.5)
18
+ headless (2.3.1)
19
+ 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)
24
+ rake-compiler (1.0.4)
25
+ rake
26
+ rspec (3.6.0)
27
+ rspec-core (~> 3.6.0)
28
+ rspec-expectations (~> 3.6.0)
29
+ rspec-mocks (~> 3.6.0)
30
+ rspec-core (3.6.0)
31
+ rspec-support (~> 3.6.0)
32
+ rspec-expectations (3.6.0)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.6.0)
35
+ rspec-mocks (3.6.0)
36
+ diff-lcs (>= 1.2.0, < 2.0)
37
+ rspec-support (~> 3.6.0)
38
+ rspec-support (3.6.0)
39
+ simplecov (0.13.0)
40
+ docile (~> 1.1.0)
41
+ json (>= 1.8, < 3)
42
+ simplecov-html (~> 0.10.0)
43
+ simplecov-html (0.10.1)
44
+ url (0.3.2)
45
+
46
+ PLATFORMS
47
+ ruby
48
+
49
+ DEPENDENCIES
50
+ bundler (~> 1.14)
51
+ codeclimate-test-reporter (~> 1.0.8)
52
+ codecov (~> 0.1.10)
53
+ headless (~> 2.3.1)
54
+ images_by_url!
55
+ nokogiri (~> 1.8.0)
56
+ rake (~> 10.0)
57
+ rake-compiler
58
+ rspec (= 3.6.0)
59
+ simplecov (~> 0.13.0)
60
+
61
+ BUNDLED WITH
62
+ 1.14.6
data/README.md CHANGED
@@ -1,9 +1,15 @@
1
+ [![Gem Version](https://badge.fury.io/rb/images_by_url.svg)](https://badge.fury.io/rb/images_by_url)
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
+ [![Quality](http://img.shields.io/codeclimate/github/Mifrill/gem_images_by_url.svg)](https://codeclimate.com/github/Mifrill/gem_images_by_url)
4
+ [![Coverage Status](https://img.shields.io/codeclimate/coverage/github/Mifrill/gem_images_by_url.svg)](https://codeclimate.com/github/mifrill/gem_images_by_url)
5
+ [![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
+ [![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
+ [![Dependency Status](https://gemnasium.com/badges/github.com/Mifrill/gem_images_by_url.svg)](https://gemnasium.com/github.com/Mifrill/gem_images_by_url)
8
+
1
9
  # ImagesByUrl
2
10
 
3
11
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/images_by_url`. To experiment with that code, run `bin/console` for an interactive prompt.
4
12
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
13
  ## Installation
8
14
 
9
15
  Add this line to your application's Gemfile:
data/codecov.yml ADDED
@@ -0,0 +1,24 @@
1
+ codecov:
2
+ token: 3b2b760e-fe19-4912-a9cc-073724f1fb4b
3
+ notify:
4
+ require_ci_to_pass: yes
5
+ coverage:
6
+ precision: 2
7
+ round: down
8
+ range: "70...100"
9
+ status:
10
+ project: yes
11
+ patch: yes
12
+ changes: no
13
+ parsers:
14
+ gcov:
15
+ branch_detection:
16
+ conditional: yes
17
+ loop: yes
18
+ method: no
19
+ macro: no
20
+ comment:
21
+ layout: "reach, diff, flags, files, footer"
22
+ behavior: default
23
+ require_changes: no
24
+
@@ -1,3 +1,3 @@
1
1
  module ImagesByUrl
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
data/lib/images_by_url.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'images_by_url/version'
2
- require 'images_by_url/images_by_url'
2
+ require 'images_by_url'
3
3
  require 'open-uri'
4
4
  require 'nokogiri'
5
5
  require 'json'
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mifrill
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-07 00:00:00.000000000 Z
11
+ date: 2017-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,11 +94,13 @@ files:
94
94
  - ".travis.yml"
95
95
  - CODE_OF_CONDUCT.md
96
96
  - Gemfile
97
+ - Gemfile.lock
97
98
  - LICENSE.txt
98
99
  - README.md
99
100
  - Rakefile
100
101
  - bin/console
101
102
  - bin/setup
103
+ - codecov.yml
102
104
  - exe/images_by_url
103
105
  - ext/images_by_url/extconf.rb
104
106
  - ext/images_by_url/images_by_url.c