Skip to content

Commit

Permalink
exercises seeded
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Cowan committed Jul 27, 2012
1 parent 2995929 commit a63e1a7
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -15,7 +15,7 @@ gem 'json'
gem 'multi_json'
gem "active_model_serializers", :git => "git://github.com/josevalim/active_model_serializers.git"

gem "eventmachine", "1.0.0.beta.4.1"
# gem "eventmachine", "1.0.0.beta.4.1"

# use thin instead of WEBrick
gem "thin", "1.3.1"
Expand Down
13 changes: 5 additions & 8 deletions Gemfile.lock
Expand Up @@ -84,15 +84,15 @@ GEM
database_cleaner (0.8.0)
diff-lcs (1.1.3)
erubis (2.7.0)
eventmachine (1.0.0.beta.4.1-x86-mingw32)
eventmachine (0.12.10)
execjs (1.4.0)
multi_json (~> 1.0)
factory_girl (3.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (3.5.0)
factory_girl (~> 3.5.0)
railties (>= 3.0.0)
ffi (1.1.0-x86-mingw32)
ffi (1.1.0)
fivemat (1.1.0)
growl (1.0.3)
guard (1.2.3)
Expand Down Expand Up @@ -140,13 +140,12 @@ GEM
mongoid (~> 2.0)
rspec (~> 2)
multi_json (1.3.6)
nokogiri (1.5.5-x86-mingw32)
nokogiri (1.5.5)
polyglot (0.3.3)
pry (0.9.10-x86-mingw32)
pry (0.9.10)
coderay (~> 1.0.5)
method_source (~> 0.8)
slop (~> 3.3.1)
win32console (~> 1.3)
pry-rails (0.1.6)
pry
rack (1.4.1)
Expand Down Expand Up @@ -230,12 +229,11 @@ GEM
nokogiri (>= 1.2.0)
rack (>= 1.0)
rack-test (>= 0.5.3)
win32console (1.3.2-x86-mingw32)
xpath (0.1.4)
nokogiri (~> 1.3)

PLATFORMS
x86-mingw32
ruby

DEPENDENCIES
active_model_serializers!
Expand All @@ -245,7 +243,6 @@ DEPENDENCIES
coffee-rails (~> 3.2.1)
colored
database_cleaner
eventmachine (= 1.0.0.beta.4.1)
factory_girl_rails
fivemat
growl
Expand Down
63 changes: 58 additions & 5 deletions db/seeds.rb
Expand Up @@ -5,7 +5,7 @@
Group.create!(name: group)
end
#abs
abs = Group.where(:name => 'Abs')
abs = Group.where(:name => 'Abs').first
Exercise.create(name: 'Bicycle', description: 'Some sort of description about the exercise. You know it really is a description', group: abs)
Exercise.create(name: 'Captains Chair', description: 'Some sort of description about the exercise. You know it really is a description', group: abs)
Exercise.create(name: 'Ball Crunch', description: 'Some sort of description about the exercise. You know it really is a description', group: abs)
Expand All @@ -28,7 +28,7 @@
Exercise.create(name: 'Abdominal Hold', description: 'Some sort of description about the exercise. You know it really is a description', group: abs)

#arms
arms = Group.where(:name => 'Arms')
arms = Group.where(:name => 'Arms').first
Exercise.create(name: 'Biceps Curl', description: 'Some sort of description about the exercise. You know it really is a description', group: arms)
Exercise.create(name: 'Dumbbell Overhead Triceps Extension', description: 'Some sort of description about the exercise. You know it really is a description', group: arms)
Exercise.create(name: 'Dumbell Bench Press', description: 'Some sort of description about the exercise. You know it really is a description', group: arms)
Expand Down Expand Up @@ -58,7 +58,7 @@
Exercise.create(name: 'Seated Dumbbell Press', description: 'Some sort of description about the exercise. You know it really is a description', group: arms)

#back
back = Group.where(:name => 'Back')
back = Group.where(:name => 'Back').first
Exercise.create(name: 'Deadlift', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Pullup', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Back Raise', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Expand All @@ -82,7 +82,60 @@
Exercise.create(name: 'Hip Extensions, Bridge', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Bent Over Row with Static Hold, Dumbbell', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Bent Over Row, Barbell, Reverse Grip', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Hug Knees To Chest', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Hyperextensions (Back Extensions)', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: '', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: '', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: '', description: 'Some sort of description about the exercise. You know it really is a description', group: back)

back = Group.where(:name => 'Chest').first
Exercise.create(name: 'Bench Press', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Cable Chest Press', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Butterfly', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Cable Crossover', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Chest And Front Of Shoulder Stretch', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Chest Push', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Decline Barbell Bench Press', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Chest Stretch on Stability Ball', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Decline Dumbbell Bench Press', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Decline Dumbbell Flyes', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Decline Push-Up', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Dips - Chest Version', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Downward Facing Balance', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Drop Push', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Dumbbell Bench Press', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Dynamic Chest Stretch', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Elbows Back', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Flat Bench Cable Flyes', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Forward Drag with Press', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Heavy Bag Thrust', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Incline Cable Flye', description: 'Some sort of description about the exercise. You know it really is a description', group: back)

back = Group.where(:name => 'Legs').first
Exercise.create(name: 'Leg Extension', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'One-at-a-Time Leg Extension', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Seated Leg Curl', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Prone Leg Curl', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'One-at-a-Time Prone Leg Curl', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Leg Press', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Incline Leg Press', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Squat', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Seated Hip Adduction', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Standing Hip Adduction', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Standing Hip Adduction using Low Pulley', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Seated Hip Abduction', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Standing Hip Abduction', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Standing Hip Abduction using Low Pulley', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Calf Raise on Calf Bench', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Calf Raise on Leg Press', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'High Calf Raise on Universal Leg Machine', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Low Calf Raise on Universal Leg Machine', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Side Step Squats', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Front One-Legged Squat', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Step Ups', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'One-Legged Deadlift', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Bent Knee Deadlift', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Lunge on the Ball', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Sliding Side Lunge', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Lunge Sweep', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Hip Extensions', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Ball Butt Lift', description: 'Some sort of description about the exercise. You know it really is a description', group: back)
Exercise.create(name: 'Hamstring Rolls', description: 'Some sort of description about the exercise. You know it really is a description', group: back)

0 comments on commit a63e1a7

Please sign in to comment.