README.md in google_robotstxt_parser-0.0.3 vs README.md in google_robotstxt_parser-0.0.4
- old
+ new
@@ -1,13 +1,11 @@
NOTE: This repo is still under construction, please use at your own risk. :-)
# Google Robotstxt Parser C++ Library Wrapper Gem
-
This is a unofficial Ruby gem that provides a wrapper around [Google Robotstxt Parser C++ library](https://github.com/google/robotstxt).
## Installation
-
Add this line to your application's Gemfile:
```
gem 'google_robotstxt_parser'
```
@@ -29,15 +27,29 @@
robotstxt_content = "# robotstxt.org/\n\nUser-agent: *\nDisallow: /\n\nSitemap: https://www.bqst.fr/sitemap.xml"
user_agent = "GoogleBot"
url = "https://www.bqst.fr"
-Robotstxt.allowed_by_robots(robotstxt_content, user_agent, url)
+allowed_by_robots(robotstxt_content, user_agent, url)
+# return true if user_agent is allowed to access url
```
+## Deploy
+If you're using [Heroku](https://www.heroku.com), you'll need [CMAKE buildpacks](https://elements.heroku.com/buildpacks/Starkast/heroku-buildpack-cmake) to build this gems. To add it to your app :
+
+```
+$ heroku buildpacks:remove heroku/ruby
+$ heroku buildpacks:add starkast/cmake
+$ heroku buildpacks:add heroku/ruby
+$ heroku buildpacks
+=== mytool Buildpack URLs
+1. starkast/cmake
+2. heroku/ruby
+$ git push heroku master
+```
+
## Todo
There are quite a few outstanding tasks:
-- [ ] Try to link the robots.dylib library from c-build instead of creating a symbolic link to /usr/local/lib/ to make it compatible with different OS
- [ ] Some tests :-)
## Author
[Bastien Montois](https://www.bqst.fr) @ [la-revanche-des-sites.fr](https://www.la-revanche-des-sites.fr)