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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '07960160cb3df5272aeb44b2beeb48706faf57e0f8e81f5ce60229d8212e51e9'
4
- data.tar.gz: 61071d880c92b238f9139d553fd54c15f6afa7c11e1ff7779c01842e6e215859
3
+ metadata.gz: c5a8318d00a321e819ad9f3458cd81d58319a5be66397922e0f95410ec1df515
4
+ data.tar.gz: a46d19c4b190aa674e396effe1ef396492d24c309b47d9158d2b44ae8f6a06b4
5
5
  SHA512:
6
- metadata.gz: 2ea4a9524f35b453290589e0dd9fc908e8c04867419f7173ead326a145973300e4a4cad83bc17c838e34c40dc59fc9512fd75f0790f7e2ff2cb25606305c07a9
7
- data.tar.gz: cfbcada6d316b4bb67ba3ae4099a58e20455026b72e6b6e3d738f64408fb9ec26ffd17dff6b20f0e85c75d091ee9046992767d4e46c68bedb33a572cbbfa9950
6
+ metadata.gz: 8c37e28f874f6ce10c4471323bbd1dd54e1cc52e8213de1347acd9b19aee33ff5da204386fb883a18640529b09c03b0fe704f5329d01e11b1cf1f0b06b688bb9
7
+ data.tar.gz: d1855d8105688269fc1aebc3132b59052f270155fd701c7745dcf353676c4a1c2972070186d098029515c295271596b3b732e83e8182aba10e2b9a4124c2ef91
data/.rubocop.yml CHANGED
@@ -6,6 +6,7 @@ AllCops:
6
6
  TargetRubyVersion: 2.6.3
7
7
  Exclude:
8
8
  - bin/*
9
+ - vendor/**/*
9
10
 
10
11
  Rails/RefuteMethods:
11
12
  Enabled: false
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: gem install bundler -v 2.0.2 --no-document
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
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.1] - 2019-06-20
10
+ ### Changed
11
+ - Pin chromedriver version for CI compatibility
12
+
9
13
  ## [0.1.0] - 2019-06-18
10
14
  ### Added
11
15
  - Initial release
data/Gemfile.lock CHANGED
@@ -153,7 +153,7 @@ DEPENDENCIES
153
153
  instagrammer!
154
154
  minitest (~> 5.0)
155
155
  rake (~> 10.0)
156
- rubocop-rails_config
156
+ rubocop-rails_config (~> 0.6)
157
157
 
158
158
  BUNDLED WITH
159
159
  2.0.2
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: { args: %w(headless no-sandbox disable-gpu window-size=1400,1400) }
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Instagrammer
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/instagrammer.rb CHANGED
@@ -1,9 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "capybara"
4
- require "capybara/dsl"
5
- require "webdrivers/chromedriver"
6
-
7
3
  require "instagrammer/config/capybara"
8
4
  require "instagrammer/post"
9
5
  require "instagrammer/user"
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.0
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-19 00:00:00.000000000 Z
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