gogo_driver 0.0.4 → 0.0.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: 8defa8b4eaafff3763c5bf5c787453838f8cf828
4
- data.tar.gz: ff100b70b680ba7e3f4478f383166f088459e634
3
+ metadata.gz: 439927baf453888c00569b9507569cf27c765d03
4
+ data.tar.gz: 9deb1d97f1239723972713d03bcfd99b797c1126
5
5
  SHA512:
6
- metadata.gz: ef83cdf892398b03c8df7102225cb2dc51df9731c950aa0c0fb6e2c5672a963809c70d5e3cc25835998ca3ff22610d72811150076a2cd88aba3fe831ddccf685
7
- data.tar.gz: 84ca1a708f3950a2ef76ecca799f4b5506c47e788ff7eb998d45e9b4c90663898c8d81bf5d16e0850f44c5ab9ecdf718f13e89022fdc17130b1db32f070cb30f
6
+ metadata.gz: 9be2c24bf7876f54c328958982060acc0b749949e9a07bf18bf64127f090ace13596f0d3de24e6bb6b2065b3c8dc3af1695d74e3ea758af1c971e1f152a71bff
7
+ data.tar.gz: cb5756fa853883de1a5ba6b37f07ac4d92d29ef7b5f117293a1ef62c7ee4b2ce4bd4f85cca5d595b165d8594500c567ebd402f7bf0860a4e64665ecaef9a1673
data/README.md CHANGED
@@ -2,13 +2,15 @@
2
2
 
3
3
  Super simple web driver.
4
4
 
5
+ [![Gyazo](http://i.gyazo.com/511b5265c67d41fc2cd7394c1eee3b7a.gif)](http://gyazo.com/511b5265c67d41fc2cd7394c1eee3b7a)
6
+
5
7
  ## Installation
6
8
 
7
- 1. Install gem as you like.
9
+ [1] Install gem as you like.
8
10
 
9
11
  $ gem install gogo_driver
10
12
 
11
- 2. Install chromedriver. Below is the MacOS example.
13
+ [2] Install chromedriver. Below is the MacOS example.
12
14
 
13
15
  $ brew install chromedriver
14
16
 
@@ -17,7 +19,7 @@ Super simple web driver.
17
19
 
18
20
  Let me show how to login Facebook.
19
21
 
20
- ```
22
+ ```rb
21
23
  require 'gogo_driver'
22
24
 
23
25
  driver = GogoDriver.new('https://www.facebook.com/')
@@ -31,3 +33,4 @@ else
31
33
  # ログイン成功時の処理
32
34
  end
33
35
  ```
36
+
@@ -2,7 +2,7 @@ require 'selenium-webdriver'
2
2
 
3
3
  class GogoDriver
4
4
  class Entity
5
- attr_reader :driver
5
+ attr_accessor :driver
6
6
 
7
7
  def initialize
8
8
  @driver = Selenium::WebDriver.for(:chrome)
@@ -1,3 +1,3 @@
1
1
  class GogoDriver
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/gogo_driver.rb CHANGED
@@ -2,6 +2,8 @@ require "gogo_driver/version"
2
2
  require "gogo_driver/entity"
3
3
 
4
4
  class GogoDriver
5
+ attr_accessor :entity
6
+
5
7
  def initialize(url='https://www.google.com')
6
8
  @entity = Entity.new
7
9
  @entity.go(url)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gogo_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - gogotanaka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-05 00:00:00.000000000 Z
11
+ date: 2015-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: selenium-webdriver