Skip to content

Commit

Permalink
Merge pull request #424 from slurpcode/pull-423-restyled
Browse files Browse the repository at this point in the history
Restyle Add more docs and update Gems. Modify delay.
  • Loading branch information
jbampton committed Mar 23, 2020
2 parents 92679a9 + 8bc65d7 commit da31d70
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .aspell.en.pws
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
personal_ws-1.1 en 204
personal_ws-1.1 en 205
ALLCAPSRUNTOGETHER
AdemHodzic
Araica
Expand Down Expand Up @@ -141,6 +141,7 @@ jekyll
jorge
jpg
kyu
logorama
longshot
markdownlint
md
Expand Down
31 changes: 29 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Slurp

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)

<!-- ALL-CONTRIBUTORS-BADGE:END -->

[![Website](https://img.shields.io/website/https/slurpcode.github.io/slurp.svg)](https://slurpcode.github.io/slurp)
[![CircleCI branch](https://img.shields.io/circleci/project/github/slurpcode/slurp/master.svg)](https://circleci.com/gh/slurpcode/slurp)
[![Slurp is GPL-3.0](https://img.shields.io/github/license/slurpcode/slurp.svg)](https://github.com/slurpcode/slurp/blob/master/LICENSE)
Expand Down Expand Up @@ -37,12 +40,32 @@

### Fuchsia Programming

Jekyll based site requires Ruby

```
rdoc -o docs/rdoc --exclude="assets|docs|node_modules|CODEOWNERS|Gemfile|LICENSE|README|.csv|.fql|.go|.iml|.ipr|.iws|.json|.lock|.php|.py|.sh|.toml|.txt|.xsl"
cd docs || exit
bundle exec jekyll serve
```

### Slurp Read the Docs

Python based

```
cd doc || exit
make html
```

### Logorama

Jekyll based site requires Ruby

```
cd logorama || exit
bundle exec jekyll serve
```

## Built With

- [Ruby](https://www.ruby-lang.org/)
Expand Down Expand Up @@ -173,7 +196,8 @@ The original **`Fuchsia`** Programming on Heroku

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Thanks goes to these wonderful people
([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
Expand All @@ -196,6 +220,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d

<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
This project follows the
[all-contributors](https://github.com/all-contributors/all-contributors)
specification. Contributions of any kind welcome!
26 changes: 13 additions & 13 deletions logorama/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.2.1)
activesupport (6.0.2.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
Expand All @@ -16,7 +16,7 @@ GEM
colorator (1.1.0)
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.5)
concurrent-ruby (1.1.6)
dnsruby (1.61.3)
addressable (~> 2.5)
em-websocket (0.5.1)
Expand All @@ -28,10 +28,10 @@ GEM
execjs (2.7.0)
faraday (1.0.0)
multipart-post (>= 1.2, < 3)
ffi (1.11.3)
ffi (1.12.2)
forwardable-extended (2.6.0)
gemoji (3.0.1)
github-pages (203)
github-pages (204)
github-pages-health-check (= 1.16.1)
jekyll (= 3.8.5)
jekyll-avatar (= 0.7.0)
Expand All @@ -40,7 +40,7 @@ GEM
jekyll-default-layout (= 0.1.4)
jekyll-feed (= 0.13.0)
jekyll-gist (= 1.5.0)
jekyll-github-metadata (= 2.12.1)
jekyll-github-metadata (= 2.13.0)
jekyll-mentions (= 1.5.1)
jekyll-optional-front-matter (= 0.3.2)
jekyll-paginate (= 1.1.0)
Expand Down Expand Up @@ -117,8 +117,8 @@ GEM
jekyll (>= 3.7, < 5.0)
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-github-metadata (2.12.1)
jekyll (~> 3.4)
jekyll-github-metadata (2.13.0)
jekyll (>= 3.4, < 5.0)
octokit (~> 4.0, != 4.4.0)
jekyll-mentions (1.5.1)
html-pipeline (~> 2.3)
Expand Down Expand Up @@ -202,11 +202,11 @@ GEM
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.13.0)
minitest (5.14.0)
multipart-post (2.1.1)
nokogiri (1.10.7)
nokogiri (1.10.9)
mini_portile2 (~> 2.4.0)
octokit (4.15.0)
octokit (4.17.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.16.2)
Expand All @@ -218,7 +218,7 @@ GEM
rouge (3.13.0)
ruby-enum (0.7.2)
i18n
rubyzip (2.0.0)
rubyzip (2.3.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
Expand All @@ -235,8 +235,8 @@ GEM
ethon (>= 0.9.0)
tzinfo (1.2.6)
thread_safe (~> 0.1)
unicode-display_width (1.6.0)
zeitwerk (2.2.2)
unicode-display_width (1.7.0)
zeitwerk (2.3.0)

PLATFORMS
ruby
Expand Down
6 changes: 3 additions & 3 deletions scrapers/go/colly/github/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ func main() {
if err != nil {
log.Fatal(err)
}
time.Sleep(time.Duration(delay) * time.Second)
record := scrape(username)
record := scrape(username, delay)
fmt.Println(record)
}

func scrape(username string) []string {
func scrape(username string, delay int) []string {
time.Sleep(time.Duration(delay) * time.Second)
allowed := "github.com"
url := "https://%s/%s"
var record []string
Expand Down
6 changes: 2 additions & 4 deletions scrapers/go/colly/github/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@ package main
import (
"strconv"
"testing"
"time"
)

func TestLength(t *testing.T) {
got := len(scrape("jbampton"))
got := len(scrape("jbampton", 60))
if got != 5 {
t.Errorf("len(scrape(\"jbampton\")) = %d; want 5", got)
}
}

func TestIntegers(t *testing.T) {
time.Sleep(15 * time.Second)
got := scrape("prestonhunter")
got := scrape("prestonhunter", 60)
for _, v := range got {
i, _ := strconv.Atoi(v)
s := strconv.Itoa(i)
Expand Down

0 comments on commit da31d70

Please sign in to comment.