sferik-merb-admin 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -14,7 +14,7 @@ At the command prompt, type:
14
14
 
15
15
  In your app, add the following dependency to `config/dependencies.rb`:
16
16
 
17
- dependency "sferik-merb-admin", "0.4.0", :require_as => "merb-admin"
17
+ dependency "sferik-merb-admin", "0.4.1", :require_as => "merb-admin"
18
18
 
19
19
  Add the following route to `config/router.rb`:
20
20
 
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ AUTHOR = "Erik Michaels-Ober"
9
9
  EMAIL = "sferik@gmail.com"
10
10
  HOMEPAGE = "http://twitter.com/sferik"
11
11
  SUMMARY = "MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data."
12
- GEM_VERSION = "0.4.0"
12
+ GEM_VERSION = "0.4.1"
13
13
 
14
14
  spec = Gem::Specification.new do |s|
15
15
  s.rubyforge_project = "merb"
@@ -25,7 +25,7 @@ spec = Gem::Specification.new do |s|
25
25
  s.homepage = HOMEPAGE
26
26
  s.add_dependency("merb-slices", ">= 1.0.12")
27
27
  s.require_path = "lib"
28
- s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("{lib,spec,app,public,stubs}/**/*")
28
+ s.files = %w(LICENSE README.markdown Rakefile) + Dir.glob("{app,lib,public,schema,spec,stubs}/**/*")
29
29
  s.post_install_message = <<-POST_INSTALL_MESSAGE
30
30
  #{"*" * 80}
31
31
 
data/lib/merb-admin.rb CHANGED
@@ -23,7 +23,7 @@ if defined?(Merb::Plugins)
23
23
 
24
24
  # Slice metadata
25
25
  self.description = "MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data."
26
- self.version = "0.4.0"
26
+ self.version = "0.4.1"
27
27
  self.author = "Erik Michaels-Ober"
28
28
 
29
29
  # Stub classes loaded hook - runs before LoadClasses BootLoader
@@ -0,0 +1,15 @@
1
+ class CreateDivisionsMigration < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :divisions do |t|
4
+ t.timestamps
5
+ t.integer :league_id
6
+ t.string :name, :limit => 50, :null => false
7
+ end
8
+ add_index :divisions, :league_id
9
+ add_index :divisions, :name
10
+ end
11
+
12
+ def self.down
13
+ drop_table :divisions
14
+ end
15
+ end
@@ -0,0 +1,21 @@
1
+ class CreateDraftsMigration < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :drafts do |t|
4
+ t.timestamps
5
+ t.integer :player_id
6
+ t.integer :team_id
7
+ t.date :date
8
+ t.integer :round
9
+ t.integer :pick
10
+ t.integer :overall
11
+ t.string :college, :limit => 100
12
+ t.text :notes
13
+ end
14
+ add_index :drafts, :player_id
15
+ add_index :drafts, :team_id
16
+ end
17
+
18
+ def self.down
19
+ drop_table :drafts
20
+ end
21
+ end
@@ -0,0 +1,13 @@
1
+ class CreateLeaguesMigration < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :leagues do |t|
4
+ t.timestamps
5
+ t.string :name, :limit => 50, :null => false
6
+ end
7
+ add_index :leagues, :name
8
+ end
9
+
10
+ def self.down
11
+ drop_table :leagues
12
+ end
13
+ end
@@ -0,0 +1,23 @@
1
+ class CreatePlayersMigration < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :players do |t|
4
+ t.timestamps
5
+ t.datetime :deleted_at
6
+ t.integer :team_id
7
+ t.string :name, :limit => 50, :null => false
8
+ t.integer :number
9
+ t.integer :position
10
+ t.integer :sex
11
+ t.float :batting_average, :default => 0.0
12
+ t.boolean :injured, :default => false
13
+ t.date :born_on
14
+ t.timestamp :wake_at
15
+ t.text :notes
16
+ end
17
+ add_index :players, :team_id
18
+ end
19
+
20
+ def self.down
21
+ drop_table :players
22
+ end
23
+ end
@@ -0,0 +1,18 @@
1
+ class CreateTeamsMigration < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :teams do |t|
4
+ t.timestamps
5
+ t.integer :league_id
6
+ t.integer :division_id
7
+ t.string :name, :limit => 50, :null => false
8
+ t.integer :colors
9
+ end
10
+ add_index :teams, :division_id
11
+ add_index :teams, :league_id
12
+ add_index :teams, :name
13
+ end
14
+
15
+ def self.down
16
+ drop_table :teams
17
+ end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sferik-merb-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Michaels-Ober
@@ -35,33 +35,6 @@ files:
35
35
  - LICENSE
36
36
  - README.markdown
37
37
  - Rakefile
38
- - lib/abstract_model.rb
39
- - lib/activerecord_support.rb
40
- - lib/datamapper_support.rb
41
- - lib/generic_support.rb
42
- - lib/merb-admin
43
- - lib/merb-admin/merbtasks.rb
44
- - lib/merb-admin/slicetasks.rb
45
- - lib/merb-admin/spectasks.rb
46
- - lib/merb-admin.rb
47
- - spec/controllers
48
- - spec/controllers/main_spec.rb
49
- - spec/models
50
- - spec/models/activerecord
51
- - spec/models/activerecord/division.rb
52
- - spec/models/activerecord/draft.rb
53
- - spec/models/activerecord/league.rb
54
- - spec/models/activerecord/player.rb
55
- - spec/models/activerecord/team.rb
56
- - spec/models/datamapper
57
- - spec/models/datamapper/division.rb
58
- - spec/models/datamapper/draft.rb
59
- - spec/models/datamapper/league.rb
60
- - spec/models/datamapper/player.rb
61
- - spec/models/datamapper/team.rb
62
- - spec/requests
63
- - spec/requests/main_spec.rb
64
- - spec/spec_helper.rb
65
38
  - app/controllers
66
39
  - app/controllers/application.rb
67
40
  - app/controllers/main.rb
@@ -94,6 +67,15 @@ files:
94
67
  - app/views/main/index.html.erb
95
68
  - app/views/main/list.html.erb
96
69
  - app/views/main/new.html.erb
70
+ - lib/abstract_model.rb
71
+ - lib/activerecord_support.rb
72
+ - lib/datamapper_support.rb
73
+ - lib/generic_support.rb
74
+ - lib/merb-admin
75
+ - lib/merb-admin/merbtasks.rb
76
+ - lib/merb-admin/slicetasks.rb
77
+ - lib/merb-admin/spectasks.rb
78
+ - lib/merb-admin.rb
97
79
  - public/images
98
80
  - public/images/arrow-down.gif
99
81
  - public/images/arrow-up.gif
@@ -169,6 +151,30 @@ files:
169
151
  - public/stylesheets/patch-iewin.css
170
152
  - public/stylesheets/rtl.css
171
153
  - public/stylesheets/widgets.css
154
+ - schema/migrations
155
+ - schema/migrations/001_create_divisions_migration.rb
156
+ - schema/migrations/002_create_drafts_migration.rb
157
+ - schema/migrations/003_create_leagues_migration.rb
158
+ - schema/migrations/004_create_players_migration.rb
159
+ - schema/migrations/005_create_teams_migration.rb
160
+ - spec/controllers
161
+ - spec/controllers/main_spec.rb
162
+ - spec/models
163
+ - spec/models/activerecord
164
+ - spec/models/activerecord/division.rb
165
+ - spec/models/activerecord/draft.rb
166
+ - spec/models/activerecord/league.rb
167
+ - spec/models/activerecord/player.rb
168
+ - spec/models/activerecord/team.rb
169
+ - spec/models/datamapper
170
+ - spec/models/datamapper/division.rb
171
+ - spec/models/datamapper/draft.rb
172
+ - spec/models/datamapper/league.rb
173
+ - spec/models/datamapper/player.rb
174
+ - spec/models/datamapper/team.rb
175
+ - spec/requests
176
+ - spec/requests/main_spec.rb
177
+ - spec/spec_helper.rb
172
178
  has_rdoc: false
173
179
  homepage: http://twitter.com/sferik
174
180
  licenses: