galactical-relations-koans-dm

所属分类:内容生成
开发工具:Ruby
文件大小:13KB
下载次数:0
上传日期:2016-01-19 10:36:10
上 传 者sh-1993
说明:  银河系koans,与DataMapper。
(The galactical relations koans, with DataMapper.)

文件列表:
.rspec (30, 2016-01-19)
Gemfile (197, 2016-01-19)
Gemfile.lock (2787, 2016-01-19)
Rakefile (39, 2016-01-19)
config (0, 2016-01-19)
config\data_mapper_setup.rb (220, 2016-01-19)
lib (0, 2016-01-19)
lib\tasks (0, 2016-01-19)
lib\tasks\.keep (0, 2016-01-19)
lib\tasks\galactical_koans.rb (938, 2016-01-19)
lib\tasks\rake_helpers.rb (181, 2016-01-19)
lib\tasks\stage_descriptions.yml (973, 2016-01-19)
models (0, 2016-01-19)
models\.keep (0, 2016-01-19)
models\asteroid.rb (74, 2016-01-19)
models\astronaut.rb (76, 2016-01-19)
models\moon.rb (71, 2016-01-19)
models\planet.rb (74, 2016-01-19)
models\spaceship.rb (76, 2016-01-19)
models\sun.rb (69, 2016-01-19)
solutions (0, 2016-01-19)
solutions\01_alpha.md (241, 2016-01-19)
solutions\02_beta.md (236, 2016-01-19)
solutions\03_gamma.md (294, 2016-01-19)
solutions\04_delta.md (2448, 2016-01-19)
solutions\05_epsilon.md (358, 2016-01-19)
spec (0, 2016-01-19)
spec\galactical_relations_koans_spec.rb (3126, 2016-01-19)
spec\spec_helper.rb (3245, 2016-01-19)

# Galactical Associations Koans Confused about database relations with DataMapper? These koans are intended as a learning tool just for you. ### Instructions 1. Clone the repository. 2. Create the database: `rake db:create` 3. Run `rake galaxy` to work progressively through the problems. Alternatively, run a single stage with `rake galaxy:stage`, e.g `rake galaxy:beta`. If you get into a mess with the database, run `rake db:reset`. ### Stages In the domain we have: planets, moons, a sun, and asteroids. #### Alpha - Suns have many planets. - Planets belongs to a sun. #### Beta - Planets have many moons. - Moons belong to a planet. #### Gamma - Planets have many asteroids. - Asteroids have many planets. #### Delta - A spaceship has many astronauts, via crewings. - Astronauts have many spaceships, via crewings. - A spaceship can have a captain. - A captain can be captain of a spaceship. #### Epsilon - Suns have many moons, through planets. - Moons have a single Sun, through a planet.

近期下载者

相关文件


收藏者