static github repository for the Railslove website
Switch branches/tags
Nothing to show
Pull request Compare This branch is 29 commits ahead of stephanpavlovic:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
courses
events
images
jobs
locations
people
projects
schema
texts
twitter_keywords
.gitignore
.travis.yml
Gemfile
Gemfile.lock
README.mdown
create_file_list.rb
file_list.json
validate_all.rb
validate_courses.rb
validate_events.rb
validate_jobs.rb
validate_locations.rb
validate_people.rb
validate_projects.rb
validate_texts.rb
validate_twitter_keywords.rb

README.mdown

Build Status

Blood-Bank

Blood Bank is Railslove's static content repository, which ensures Railslove's heart keeps pumping. Without it, our API would be rather anaemic or might start coagulating. Check out railslove.com and api.railslove.com to see the juices flowing ^_^

Kudos and a big thank you to Travis CI for their excellent haemodialytic services!

For Authors

file list

after you added a new file whose content is to synced to the API and eventually Thorax (railslove.com) please rerun ruby create_file_list.rb. We use file_list.json to manually sync the API with Blood Bank in case an error occurred or after we made changes to the data structure.

The easiest way to get your Twitter ID is to go here (thanks to Tim): http://twitter-id-from-username.heroku.com/YOUR_TWITTER_NAME

Slugs

have to be in exactly this format (cf. Heart Chamber's /lib/string_helpers.rb, sluggify method):

YOURSTRING.underscore.parameterize(sep = '_')

examples:

"Tatjana Lajendäcker".underscore.parameterize(sep = '_')
# -> "tajana_lajendacker"

"9flats.com" # -> "9flats_com"
"SalesKing GmbH"       # -> "sales_king_gmb_h"

Tips

Arrays in schemas:

{
  "type": "object",
  "properties": {
    "keywords": {
      "type": "array",
      "items": { "type": "string" }
    }
  }
}

or:

{
  "type": "object",
  "title": "project",
  "description": "A project",
  "name": "project",
  "properties": {
    "name": {
      "description": "the name of the project.",
      "required": true,
      "type": "string"
    },
    //[...]
    "people": {
      "type": "array",
      "items": {
        "type": "object",
        "person": {
          "slug": {
            "description": "a project member's slug (FIRSTNAME_LASTNAME)",
            "type": "string",
            "required": true
          },
          "contact": {
            "description": "defines whether this person is one of the project's contact persons",
            "type": "boolean"
          }
        }
      }
    }
  }
}