github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

hadley / crantastic

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 13
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (9)
  • Downloads (1)
  • Wiki (2)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (4)
    • R-package
    • cran-indexing
    • gh-pages
    • master ✓
  • Tags (1)
    • gsoc-2009-final
Sending Request…
Click here to lend your support to: crantastic and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Source code for crantastic.org: a community site for R — Read more

  cancel

http://crantastic.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added protection for the page_no param 
bmaland (author)
Sat Jan 30 16:06:35 -0800 2010
commit  874e18a7ae59afb6024971f1ca6381f00559ac90
tree    b0c7bebfd78d2c9ccd4f704767a1f9f90ebf64b2
parent  1afc0ed5a38fcfe056ff99e969a6a02667144ba7
crantastic /
name age
history
message
file .braids Sat Jan 30 15:25:45 -0800 2010 Braid: Removed mirror 'vendor/plugins/hoptoad_n... [bmaland]
file .gems Sat Jan 30 15:25:41 -0800 2010 Added hoptoad_notifier as a gem [bmaland]
file .gitignore Tue Aug 11 02:33:53 -0700 2009 *.pid and solr/* added to .gitignore [bmaland]
file .gitmodules Mon Jul 27 06:56:18 -0700 2009 Added parallel_specs submodule [bmaland]
file MIT-LICENSE Wed Aug 12 14:39:26 -0700 2009 MIT license for the source code [bmaland]
file README.markdown Fri Sep 25 02:34:07 -0700 2009 Added shell scripts from the VPS to the repos. [bmaland]
file Rakefile Tue Aug 11 14:27:34 -0700 2009 acts_as_solr [bmaland]
directory app/ Sat Jan 30 16:06:35 -0800 2010 Added protection for the page_no param [bmaland]
directory config/ Sat Jan 30 15:27:57 -0800 2010 Hoptoad environment filters has been deprecated [bmaland]
directory db/ Tue Dec 08 14:18:44 -0800 2009 Added version_changes field to versions [bmaland]
directory doc/ Thu Jun 18 06:05:42 -0700 2009 Added Heroku publish date to events [bmaland]
directory lib/ Mon Dec 21 05:11:15 -0800 2009 Added catch-all exception for add_version_to_db [bmaland]
directory log/ Fri Mar 27 06:01:08 -0700 2009 Packages Table View, Some other Heading and Sty... [intinno]
directory public/ Tue Dec 08 10:07:43 -0800 2009 Added a POSTable search method to PackagesContr... [bmaland]
directory script/ Tue May 12 06:42:47 -0700 2009 Upgraded rspec-rails to latest version [bmaland]
directory spec/ Fri Jan 22 03:58:35 -0800 2010 Adapted WeeklyDigest spec to latest changes [bmaland]
directory vendor/ Sat Jan 30 15:25:45 -0800 2010 Braid: Removed mirror 'vendor/plugins/hoptoad_n... [bmaland]
README.markdown

Crantastic

The project is described here. Some other links of interests are:

  • Crantastic
  • Development blog
  • User Voice

The rest of this document contains various pieces of information relevant for developers/contributors.

Coding conventions

The YARD meta-tag formatting format is usued for documentation, whenever it feels necessary.

Development

Copy config/database.sample.yml to config/database.yml. It defaults to SQLite, so no additional configuration of this file is necessary unless you want to use PostgreSQL (which the site runs on in production).

Run rake gems:install to install gem dependencies for the main site. Do RAILS_ENV=test rake gems:install to install the dependencies for the testing environment (required for running rake spec).

Using autospec while doing changes to the source code is highly recommended, as this is very helpful for catching accidental regressions.

After the first checkout of the code you'll have to do check out the Git submodules. Simply run git submodule init; git submodule update.

Note that you should only add/edit stylesheets in the app/stylesheets folder. public/stylesheets should only contain compiled Sass styhesleets.

Solr

A connection to a Solr server is required for running the site. Note that the version of acts_as_solr that is included in the repository is stripped down, so it does not include the server part. Setting up a Solr server on your development machine is simple, though:

  • Install the Java runtime environment (not necessary on OSX). On Debian or Ubuntu this can be done with: sudo apt-get install sun-java6-jre
  • git clone git://github.com/mattmatt/acts_as_solr.git
  • cd acts_as_solr/solr && java -jar start.jar

Then you can run rake solr:reindex from the folder where you have the crantastic source code.

R package

There is a R package for crantastic that lives in its own branch in the Git repository. Use the following steps to check out the source:

git fetch origin R-package
git checkout --track -b R-package origin/R-package

Working with Heroku

Setting up the Heroku remote

git remote add heroku git@heroku.com:crantastic.git

Confirm that it's working by running heroku info.

Pulling the latest database from crantastic.org

heroku db:pull

This will overwrite db/development.sqlite3.

Pushing your work to Heroku

git push heroku master

Personally I use an alias so I don't have to type as much:

alias gph='git push heroku master'

Updating packages from CRAN

Run rake crantastic:cron or rake crantastic:update_all_packages. Look in the lib/scripts folder for scripts and cron tasks.

License

The crantastic source code is released under the MIT license, consult the accompanying MIT-LICENSE file for details.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server