• Stars
    star
    308
  • Rank 135,712 (Top 3 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

:octocat: Correct README Redirects

Frankenstein

frankenstein checks for live URLs in a file, it can update links based on HTTP redirects in a README :octocat:

This project uses awesome_bot to validate links.

Build Status

Installation

git clone https://github.com/dkhamsing/frankenstein.git
cd frankenstein
rake install

Usage

$ frankenstein https://fastlane.tools # URL
$ frankenstein README.md # Path to file
$ frankenstein ccgus/fmdb # GitHub repo README, https://github.com/ccgus/fmdb works too

Found: master for ccgus/fmdb β€” A Cocoa / Objective-C wrapper around SQLite β€” 8935⭐️  β€” last updated today
πŸƒ  Processing links for ccgus/fmdb ...
πŸ”Ž  Checking 18 links
βœ…  https://www.zetetic.net/sqlcipher/
βœ…  http://sqlite.org/
βœ…  https://cocoapods.org/
βœ…  https://github.com/marcoarment/FCModel
βœ…  https://github.com/layerhq/FMDBMigrationManager
#...
πŸ•  Time elapsed: 4.07 seconds

πŸƒ  No failures for ccgus/fmdb
βœ… 200 ok
πŸ”Ά 3xx redirect
πŸ”΄ 4xx error
βšͺ white list / other

Correct GitHub README Redirects

frankenstein can open a pull request to update README links based on HTTP redirects (this requires credentials set in .netrc).

$ frankenstein fastlane/sigh

Finding default branch for fastlane/sigh
Found: master for fastlane/sigh β€” Because you would rather spend your time building stuff than fighting provisioning β€” 864⭐️  β€” last updated 8 days ago
πŸƒ  Processing links for https://raw.githubusercontent.com/fastlane/sigh/master/README.md ...
πŸ”Ž  Checking 21 links
πŸ”Ά  301 https://github.com/KrauseFx/fastlane
πŸ”Ά  301 https://github.com/KrauseFx/deliver
#...
πŸ”Ά  10 redirects
https://github.com/KrauseFx/fastlane redirects to
https://github.com/fastlane/fastlane
#...
Next? (pull request | white list w=<s1^s2..> | gist | tweet [-h] [message] | enter to end) p
Creating pull request on GitHub for fastlane/sigh ...
Pull request created: https://github.com/fastlane/sigh/pull/195

White List

  • URLs that are meant to be redirected (i.e. URL shortener, badge, authentication) are white listed and not corrected.

  • You can also white list links at the end of a run with option w.

$ frankenstein dkhamsing/forker

Finding default branch for dkhamsing/forker
Found: wip for dkhamsing/forker β€” Fork GitHub repos found on a page β€” 0⭐️  β€” last updated today
πŸƒ  Processing links for dkhamsing/forker ...
πŸ”Ž  Checking 10 links
βœ…  https://github.com/opensourceios
#...
πŸ”Ά  1 redirect
http://gph.is/1768v38 redirects to
http://giphy.com/gifs/loop-factory-how-its-made-n1JN4fSrXovJe
#...
πŸ•  Time elapsed: 2.56 seconds

πŸƒ  No failures for dkhamsing/forker

Next? (pull request | white list w=<s1^s2..> | gist | tweet [-h] [message] | enter to end) w=gph
#...

Contact

License

This project is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

open-source-ios-apps

πŸ“± Collaborative List of Open-Source iOS Apps
41,887
star
2

awesome_bot

βœ… Validate links in awesome projects
Ruby
826
star
3

ios-asset-names

πŸ“ Guide to name iOS assets
Swift
670
star
4

ScrollTab

Scrolling Tab for iOS
Objective-C
267
star
5

dkhamsing.github.io

:octocat: My GitHub Page
Ruby
221
star
6

news

πŸ“° iOS news app in the style of Apple News, CNN, BBC, Facebook, NYT, Twitter, Reddit & more
Swift
217
star
7

TabDump

πŸ“° TabDump app for iOS
Objective-C
98
star
8

osia

:octocat: iOS app to browse open-source-ios-apps
Swift
88
star
9

apns-guide

πŸ”” Guide to setup APNS
86
star
10

DKImageBrowser

iOS Image Browser with a Thumbnail Strip
Objective-C
56
star
11

stocks

πŸ“ˆ Basic iOS app to track stocks (data from Finnhub, Tiingo, or IEX Cloud)
Swift
42
star
12

covid19.swift

🌐 Small iOS app to show some COVID-19 health, data, news and tweets
Swift
27
star
13

listapp.ios

✨ Basic lists from iOS 2 to iOS 15
Swift
27
star
14

fastmdb

πŸ” Fast iOS app to browse and search movies, tv, actors, credits
Swift
22
star
15

how-much

πŸ’° iOS price list app using Firebase, Realm & more
Objective-C
21
star
16

xcode-readme

πŸ” Correct the spelling of Xcode in a README
Ruby
10
star
17

GitHubOAuthController

:octocat: Simple GitHub OAuth Controller for iOS
Objective-C
10
star
18

cocoapods-readme

πŸ” Correct the spelling of CocoaPods in a README
Ruby
9
star
19

pdf_xcassets

πŸš‹ Generate Xcode xcassets for PDF assets
Ruby
8
star
20

upcomingtv

πŸ“† iOS app to track when your favorite tv show airs next
Swift
8
star
21

github-readme

:octocat: Get the README from a GitHub repo
Ruby
6
star
22

update_profile_pic

πŸ‘€ Update your Twitter profile pic in a snap
Ruby
6
star
23

delete_my_tweets

🐀 Delete my tweets
Ruby
5
star
24

markdown_html

πŸ“„ The simplest way to convert Markdown to HTML
Ruby
4
star
25

readme-correct

😁 Fix GitHub typos with ease
Ruby
4
star
26

tumblr_uploadr

🐼 Tumblr photo batch uploader
Ruby
3
star
27

forker

🍴 Fork GitHub repos found on a page
Ruby
2
star
28

covid19cli

⚑ Quick CLI for COVID-19 data
Ruby
2
star
29

twitter_oauth_token

βœ‹ Twitter OAuth token Ruby library
Ruby
1
star