instagrammer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/.travis.yml +7 -3
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/instagrammer.gemspec +2 -1
- data/lib/instagrammer/config/capybara.rb +14 -1
- data/lib/instagrammer/version.rb +1 -1
- data/lib/instagrammer.rb +0 -4
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5a8318d00a321e819ad9f3458cd81d58319a5be66397922e0f95410ec1df515
|
4
|
+
data.tar.gz: a46d19c4b190aa674e396effe1ef396492d24c309b47d9158d2b44ae8f6a06b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c37e28f874f6ce10c4471323bbd1dd54e1cc52e8213de1347acd9b19aee33ff5da204386fb883a18640529b09c03b0fe704f5329d01e11b1cf1f0b06b688bb9
|
7
|
+
data.tar.gz: d1855d8105688269fc1aebc3132b59052f270155fd701c7745dcf353676c4a1c2972070186d098029515c295271596b3b732e83e8182aba10e2b9a4124c2ef91
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -1,18 +1,22 @@
|
|
1
1
|
---
|
2
2
|
sudo: false
|
3
3
|
|
4
|
+
addons:
|
5
|
+
chrome: stable
|
6
|
+
|
4
7
|
language: ruby
|
5
8
|
rvm:
|
6
9
|
- 2.5
|
7
10
|
- 2.6
|
8
11
|
|
9
12
|
cache: bundler
|
10
|
-
bundler_args: --without development --jobs=3 --retry=3 --path=../vendor/bundle
|
11
13
|
|
12
|
-
before_install:
|
14
|
+
before_install:
|
15
|
+
- gem install bundler --no-document
|
16
|
+
|
13
17
|
script:
|
14
18
|
- bundle exec rake test
|
15
|
-
- rubocop
|
19
|
+
- bundle exec rubocop
|
16
20
|
|
17
21
|
notifications:
|
18
22
|
email: false
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Instagrammer
|
2
2
|
|
3
|
-
Instagrammer lets you fetch Instagram user info and posts. This is done by crawling the Instagram web interface, powered by [Capybara](https://github.com/teamcapybara/capybara/) and a headless Chrome Selenium driver. Read more about the [motivation to build this gem](#motivation)
|
3
|
+
Instagrammer lets you fetch Instagram user info and posts. This is done by crawling the Instagram web interface, powered by [Capybara](https://github.com/teamcapybara/capybara/) and a headless Chrome Selenium driver. Read more about the [motivation to build this gem](#motivation).
|
4
4
|
|
5
5
|
[![Build Status](https://travis-ci.org/richardvenneman/instagrammer.svg?branch=master)](https://travis-ci.org/richardvenneman/instagrammer)
|
6
6
|
[![Gem Version](https://badge.fury.io/rb/instagrammer.svg)](https://badge.fury.io/rb/instagrammer)
|
data/instagrammer.gemspec
CHANGED
@@ -9,6 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.version = Instagrammer::VERSION
|
10
10
|
spec.authors = ["Richard Venneman"]
|
11
11
|
spec.email = ["richardvenneman@me.com"]
|
12
|
+
spec.license = "MIT"
|
12
13
|
|
13
14
|
spec.summary = "Instagrammer lets you fetch Instagram user info and posts"
|
14
15
|
spec.homepage = "https://github.com/richardvenneman/instagrammer"
|
@@ -34,5 +35,5 @@ Gem::Specification.new do |spec|
|
|
34
35
|
spec.add_development_dependency "guard-minitest", "~> 2.4"
|
35
36
|
spec.add_development_dependency "minitest", "~> 5.0"
|
36
37
|
spec.add_development_dependency "rake", "~> 10.0"
|
37
|
-
spec.add_development_dependency "rubocop-rails_config"
|
38
|
+
spec.add_development_dependency "rubocop-rails_config", "~> 0.6"
|
38
39
|
end
|
@@ -1,8 +1,21 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "capybara"
|
4
|
+
require "capybara/dsl"
|
5
|
+
require "webdrivers/chromedriver"
|
6
|
+
|
7
|
+
Webdrivers::Chromedriver.required_version = "74.0.3729.6"
|
8
|
+
|
3
9
|
Capybara.register_driver :headless_chrome do |app|
|
4
10
|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
|
5
|
-
chromeOptions: {
|
11
|
+
chromeOptions: {
|
12
|
+
args: %w(
|
13
|
+
disable-gpu
|
14
|
+
headless
|
15
|
+
no-sandbox
|
16
|
+
window-size=1400,1400
|
17
|
+
)
|
18
|
+
}
|
6
19
|
)
|
7
20
|
|
8
21
|
Capybara::Selenium::Driver.new app,
|
data/lib/instagrammer/version.rb
CHANGED
data/lib/instagrammer.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instagrammer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Venneman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -112,16 +112,16 @@ dependencies:
|
|
112
112
|
name: rubocop-rails_config
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
117
|
+
version: '0.6'
|
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: '0'
|
124
|
+
version: '0.6'
|
125
125
|
description:
|
126
126
|
email:
|
127
127
|
- richardvenneman@me.com
|
@@ -148,7 +148,8 @@ files:
|
|
148
148
|
- lib/instagrammer/user.rb
|
149
149
|
- lib/instagrammer/version.rb
|
150
150
|
homepage: https://github.com/richardvenneman/instagrammer
|
151
|
-
licenses:
|
151
|
+
licenses:
|
152
|
+
- MIT
|
152
153
|
metadata:
|
153
154
|
homepage_uri: https://github.com/richardvenneman/instagrammer
|
154
155
|
source_code_uri: https://github.com/richardvenneman/instagrammer
|