football_now 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -13
- data/config/environment.rb +5 -1
- data/exe/football_now +0 -0
- data/football_now.gemspec +0 -1
- data/lib/football_now/version.rb +1 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 208a866591e60e97f81442edd733da5b0c306937
|
4
|
+
data.tar.gz: d0405fe988adb6dd55239988ab2b926834c860f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79998d0fb3c12ce945ea1e86640fb69ad2bb85d0410292128bf7ee8601b8b724763294d85dd4d3516c7f77ed530ed8f04201fb4e05f86213e79e64d09c32afcf
|
7
|
+
data.tar.gz: 0ed036408e7d4a2b41e6edeb3716f4ad77039e1608a0f7e6f276fc58fcef1340328b62202d6b3a3b6d8611d93ff9b822f367f3f750343fe3a467e21a3489d5b3
|
data/README.md
CHANGED
@@ -2,14 +2,6 @@
|
|
2
2
|
|
3
3
|
Football Now brings you all the information you need from top Football leagues in Europe.
|
4
4
|
|
5
|
-
## Project goals
|
6
|
-
|
7
|
-
- User can get latest scores (including live scores if match is ongoing)
|
8
|
-
- User can get league standings
|
9
|
-
- User can get list of results for a specific team
|
10
|
-
- User can get list of upcoming matches for a specific team
|
11
|
-
|
12
|
-
|
13
5
|
## Installation
|
14
6
|
|
15
7
|
Add this line to your application's Gemfile:
|
@@ -28,17 +20,37 @@ Or install it yourself as:
|
|
28
20
|
|
29
21
|
## Usage
|
30
22
|
|
31
|
-
|
23
|
+
## Installing PhantomJS
|
24
|
+
|
25
|
+
You need at least PhantomJS 1.8.1. There are no other external dependencies (you don't need Qt, or a running X server, etc.)
|
26
|
+
|
27
|
+
### Mac
|
28
|
+
|
29
|
+
* Homebrew: `brew install phantomjs`
|
30
|
+
* MacPorts: `sudo port install phantomjs`
|
31
|
+
* Manual install: [Download this](https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-macosx.zip)
|
32
|
+
|
33
|
+
### Linux
|
34
|
+
|
35
|
+
* Download the [32 bit](https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-i686.tar.bz2) or [64 bit](https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2) binary.
|
36
|
+
* Extract the tarball and copy `bin/phantomjs` into your `PATH`
|
37
|
+
|
38
|
+
### Windows
|
39
|
+
|
40
|
+
* Download the [precompiled binary](https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-windows.zip) for Windows
|
32
41
|
|
33
|
-
|
42
|
+
### Manual compilation
|
34
43
|
|
35
|
-
|
44
|
+
Do this as a last resort if the binaries don't work for you. It will take quite a long time as it has to build WebKit.
|
36
45
|
|
37
|
-
|
46
|
+
* Download the [source tarball](https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-source.zip)
|
47
|
+
* Extract and cd in
|
48
|
+
* `./build.sh`
|
49
|
+
* (See also the [PhantomJS building guide](http://phantomjs.org/build.html).)
|
38
50
|
|
39
51
|
## Contributing
|
40
52
|
|
41
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
53
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/gnfisher/football_now.
|
42
54
|
|
43
55
|
|
44
56
|
## License
|
data/config/environment.rb
CHANGED
@@ -10,7 +10,11 @@ Capybara.default_driver = :poltergeist
|
|
10
10
|
Capybara.run_server = false
|
11
11
|
Capybara.default_max_wait_time = 120
|
12
12
|
Capybara.register_driver :poltergeist do |app|
|
13
|
-
Capybara::Poltergeist::Driver.new(
|
13
|
+
Capybara::Poltergeist::Driver.new(
|
14
|
+
app,
|
15
|
+
js_errors: false,
|
16
|
+
phantomjs_options: ['--load-images=false', '--disk-cache=false']
|
17
|
+
)
|
14
18
|
end
|
15
19
|
|
16
20
|
require 'football_now/version'
|
data/exe/football_now
CHANGED
File without changes
|
data/football_now.gemspec
CHANGED
data/lib/football_now/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: football_now
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- gnfisher
|
@@ -108,20 +108,6 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: phantomjs
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
111
|
description: Scraping a popular football site, this gem allows you to navigate the
|
126
112
|
standings, results, and stats of the teams in Europe's top competitions.
|
127
113
|
email:
|