sla 0.0.1 → 0.0.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: 5fdee1ea51728193de0bfeaa1b97b21c024f023f
4
- data.tar.gz: 5cf1689f5408018346cd9cc3248e40cb7825ee5e
3
+ metadata.gz: 01f60c128b7038b32831ed7011616cabe8192e7d
4
+ data.tar.gz: d3e011da78e545c9612060339ec8a4bd150e8f38
5
5
  SHA512:
6
- metadata.gz: e812c02cd97d3b351f0f8ff988b9e6163d8d0c569ecd88048d5a36412bd8acc211bd9c24db3ad750b9ee345f3fe3d5fbbc1f859aab1858a45109941acea255cd
7
- data.tar.gz: f37e16e97dd8997e1a51f460d85b8fcd3775902550156263d5955bf78956e6069548d7650cba2916d15791ae9c298b4a47e305a351229b3e9580d5d3d8d85846
6
+ metadata.gz: 8f86a06953f843f733e0b6be1816e65a0170a06e1fb8d13f84b7a813bf5fb2ba5319e58516d2cee551abc3c80b2eca7a2ac7848fa7b29b32cec17bbec84b8a4b
7
+ data.tar.gz: 125008c1d368a3ee447e203644c39bad83405ad65de09acadfa5c402f7d429c0b9b3ad8dab6b228438f9767340209aba6823aa265519a77c3a669db5a0786b34
data/README.md CHANGED
@@ -1,3 +1,52 @@
1
1
  Site Link Analyzer
2
2
  ==================================================
3
3
 
4
+ [![Gem](https://img.shields.io/gem/v/sla.svg?style=flat-square)](https://rubygems.org/gems/sla)
5
+ [![Code Climate](https://img.shields.io/codeclimate/github/DannyBen/sla.svg?style=flat-square)](https://codeclimate.com/github/DannyBen/sla)
6
+ [![Gemnasium](https://img.shields.io/gemnasium/DannyBen/sla.svg?style=flat-square)](https://gemnasium.com/DannyBen/sla)
7
+
8
+ ---
9
+
10
+ SLA is a simple broken links checker, with built in caching.
11
+
12
+ ---
13
+
14
+ Install
15
+ --------------------------------------------------
16
+
17
+ ```
18
+ $ gem install sla
19
+ ```
20
+
21
+ Or with bundler:
22
+
23
+ ```ruby
24
+ gem 'sla'
25
+ ```
26
+
27
+ Usage
28
+ --------------------------------------------------
29
+
30
+ ```
31
+ $ sla --help
32
+ SLA
33
+
34
+ Usage:
35
+ sla check DOMAIN [options]
36
+ sla (-h|--help|--version)
37
+
38
+ Commands:
39
+ check
40
+ Start checking for broken links on a given domain
41
+
42
+ Options:
43
+ --depth, -d DEPTH
44
+ Set crawling depth [default: 5]
45
+
46
+ --cache, -c LIFE
47
+ Set cache life in seconds [default: 86400]
48
+
49
+ Examples:
50
+ sla check example.com
51
+ sla check example.com -c360 -d10
52
+ ```
data/bin/sla ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'sla'
4
+ SLA::CommandLine.instance.execute ARGV
data/lib/sla/checker.rb CHANGED
@@ -27,7 +27,7 @@ module SLA
27
27
  end
28
28
  end
29
29
 
30
- def check_url(url, depth, &block)
30
+ def check_url(url, depth, &_block)
31
31
  page = Page.new url, depth: depth, base_url: base_url
32
32
  page.validate
33
33
 
data/lib/sla/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SLA
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
@@ -152,11 +152,13 @@ dependencies:
152
152
  version: '1.7'
153
153
  description: Check for broken links on a website
154
154
  email: db@dannyben.com
155
- executables: []
155
+ executables:
156
+ - sla
156
157
  extensions: []
157
158
  extra_rdoc_files: []
158
159
  files:
159
160
  - README.md
161
+ - bin/sla
160
162
  - lib/sla.rb
161
163
  - lib/sla/base.rb
162
164
  - lib/sla/cache.rb