merb-admin 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -11,7 +11,7 @@ http://github.com/sferik/merb-admin/raw/master/screenshots/edit.png
11
11
  == Installation
12
12
  $ gem install merb-admin -s http://gemcutter.org
13
13
  In your app, add the following dependency to <tt>config/dependencies.rb</tt>:
14
- dependency "merb-admin", "0.6.5"
14
+ dependency "merb-admin", "0.6.6"
15
15
  Add the following route to <tt>config/router.rb</tt>:
16
16
  add_slice(:merb_admin, :path_prefix => "admin")
17
17
  Then, run the following rake task:
data/Rakefile CHANGED
@@ -1,6 +1,4 @@
1
1
  require "rubygems"
2
- require "rake/gempackagetask"
3
-
4
2
  require "merb-core"
5
3
  require "merb-core/tasks/merb"
6
4
 
@@ -9,28 +7,27 @@ AUTHOR = "Erik Michaels-Ober"
9
7
  EMAIL = "sferik@gmail.com"
10
8
  HOMEPAGE = "http://github.com/sferik/merb-admin"
11
9
  SUMMARY = "MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data."
12
- GEM_VERSION = "0.6.5"
13
10
  MERB_GEM_VERSION = "1.0.15"
14
11
 
15
- spec = Gem::Specification.new do |s|
16
- s.rubyforge_project = "merb"
17
- s.name = GEM_NAME
18
- s.version = GEM_VERSION
19
- s.platform = Gem::Platform::RUBY
20
- s.has_rdoc = false
21
- s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
22
- s.summary = SUMMARY
23
- s.description = s.summary
24
- s.author = AUTHOR
25
- s.email = EMAIL
26
- s.homepage = HOMEPAGE
27
- s.add_dependency("merb-slices", ">= #{MERB_GEM_VERSION}")
28
- s.add_dependency("merb-assets", ">= #{MERB_GEM_VERSION}")
29
- s.add_dependency("merb-helpers", ">= #{MERB_GEM_VERSION}")
30
- s.add_dependency("builder", ">= 2.1.2")
31
- s.require_path = "lib"
32
- s.files = %w(LICENSE README.rdoc Rakefile) + Dir.glob("{app,lib,public,schema,spec,stubs}/**/*")
33
- s.post_install_message = <<-POST_INSTALL_MESSAGE
12
+ begin
13
+ require 'jeweler'
14
+ Jeweler::Tasks.new do |gemspec|
15
+ gemspec.name = GEM_NAME
16
+ gemspec.platform = Gem::Platform::RUBY
17
+ gemspec.has_rdoc = true
18
+ gemspec.extra_rdoc_files = ["README.rdoc", "LICENSE"]
19
+ gemspec.summary = SUMMARY
20
+ gemspec.description = gemspec.summary
21
+ gemspec.author = AUTHOR
22
+ gemspec.email = EMAIL
23
+ gemspec.homepage = HOMEPAGE
24
+ gemspec.add_dependency("merb-slices", ">= #{MERB_GEM_VERSION}")
25
+ gemspec.add_dependency("merb-assets", ">= #{MERB_GEM_VERSION}")
26
+ gemspec.add_dependency("merb-helpers", ">= #{MERB_GEM_VERSION}")
27
+ gemspec.add_dependency("builder", ">= 2.1.2")
28
+ gemspec.require_path = "lib"
29
+ gemspec.files = %w(Gemfile LICENSE README.rdoc Rakefile) + Dir.glob("{app,lib,public,schema,spec,stubs}/**/*")
30
+ gemspec.post_install_message = <<-POST_INSTALL_MESSAGE
34
31
  #{"*" * 80}
35
32
 
36
33
  WARNING: MerbAdmin does not implement any authorization scheme.
@@ -38,27 +35,10 @@ spec = Gem::Specification.new do |s|
38
35
 
39
36
  #{"*" * 80}
40
37
  POST_INSTALL_MESSAGE
41
- end
42
-
43
- Rake::GemPackageTask.new(spec) do |pkg|
44
- pkg.gem_spec = spec
45
- end
46
-
47
- desc "Install the gem"
48
- task :install do
49
- Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
50
- end
51
-
52
- desc "Uninstall the gem"
53
- task :uninstall do
54
- Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
55
- end
56
-
57
- desc "Create a gemspec file"
58
- task :gemspec do
59
- File.open("#{GEM_NAME}.gemspec", "w") do |file|
60
- file.puts spec.to_ruby
61
38
  end
39
+ Jeweler::GemcutterTasks.new
40
+ rescue LoadError
41
+ puts "Jeweler not available. Install it with: gem install jeweler"
62
42
  end
63
43
 
64
44
  require "spec/rake/spectask"
@@ -24,7 +24,6 @@ module MerbAdmin
24
24
  end
25
25
 
26
26
  def self.add_model(name)
27
- puts MerbAdmin[:excluded_models].inspect
28
27
  return if MerbAdmin[:excluded_models].include?(name)
29
28
  model = lookup(name)
30
29
  @models << new(model) if model
data/lib/merb-admin.rb CHANGED
@@ -24,7 +24,7 @@ if defined?(Merb::Plugins)
24
24
 
25
25
  # Slice metadata
26
26
  self.description = "MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data."
27
- self.version = "0.6.5"
27
+ self.version = "0.6.6"
28
28
  self.author = "Erik Michaels-Ober"
29
29
 
30
30
  # Stub classes loaded hook - runs before LoadClasses BootLoader
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Michaels-Ober
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-12 00:00:00 -08:00
12
+ date: 2009-11-13 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -59,8 +59,8 @@ executables: []
59
59
  extensions: []
60
60
 
61
61
  extra_rdoc_files:
62
- - README.rdoc
63
62
  - LICENSE
63
+ - README.rdoc
64
64
  files:
65
65
  - LICENSE
66
66
  - README.rdoc
@@ -96,10 +96,10 @@ files:
96
96
  - lib/activerecord_support.rb
97
97
  - lib/datamapper_support.rb
98
98
  - lib/generic_support.rb
99
+ - lib/merb-admin.rb
99
100
  - lib/merb-admin/merbtasks.rb
100
101
  - lib/merb-admin/slicetasks.rb
101
102
  - lib/merb-admin/spectasks.rb
102
- - lib/merb-admin.rb
103
103
  - lib/sequel_support.rb
104
104
  - public/images/arrow-down.gif
105
105
  - public/images/arrow-up.gif
@@ -145,19 +145,19 @@ files:
145
145
  - public/images/tooltag-add_over.gif
146
146
  - public/images/tooltag-arrowright.gif
147
147
  - public/images/tooltag-arrowright_over.gif
148
+ - public/javascripts/CollapsedFieldsets.js
149
+ - public/javascripts/DateTimeShortcuts.js
150
+ - public/javascripts/RelatedObjectLookups.js
151
+ - public/javascripts/SelectBox.js
152
+ - public/javascripts/SelectFilter2.js
148
153
  - public/javascripts/actions.js
149
154
  - public/javascripts/calendar.js
150
- - public/javascripts/CollapsedFieldsets.js
151
155
  - public/javascripts/core.js
152
156
  - public/javascripts/dateparse.js
153
- - public/javascripts/DateTimeShortcuts.js
154
157
  - public/javascripts/getElementsBySelector.js
155
158
  - public/javascripts/i18n.js
156
159
  - public/javascripts/master.js
157
160
  - public/javascripts/ordering.js
158
- - public/javascripts/RelatedObjectLookups.js
159
- - public/javascripts/SelectBox.js
160
- - public/javascripts/SelectFilter2.js
161
161
  - public/javascripts/timeparse.js
162
162
  - public/javascripts/urlify.js
163
163
  - public/stylesheets/base.css
@@ -213,8 +213,8 @@ post_install_message: |
213
213
 
214
214
  ********************************************************************************
215
215
 
216
- rdoc_options: []
217
-
216
+ rdoc_options:
217
+ - --charset=UTF-8
218
218
  require_paths:
219
219
  - lib
220
220
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -231,10 +231,37 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  version:
232
232
  requirements: []
233
233
 
234
- rubyforge_project: merb
234
+ rubyforge_project:
235
235
  rubygems_version: 1.3.5
236
236
  signing_key:
237
237
  specification_version: 3
238
238
  summary: MerbAdmin is a Merb plugin that provides an easy-to-use interface for managing your data.
239
- test_files: []
240
-
239
+ test_files:
240
+ - spec/controllers/main_spec.rb
241
+ - spec/migrations/activerecord/001_create_divisions_migration.rb
242
+ - spec/migrations/activerecord/002_create_drafts_migration.rb
243
+ - spec/migrations/activerecord/003_create_leagues_migration.rb
244
+ - spec/migrations/activerecord/004_create_players_migration.rb
245
+ - spec/migrations/activerecord/005_create_teams_migration.rb
246
+ - spec/migrations/sequel/001_create_divisions_migration.rb
247
+ - spec/migrations/sequel/002_create_drafts_migration.rb
248
+ - spec/migrations/sequel/003_create_leagues_migration.rb
249
+ - spec/migrations/sequel/004_create_players_migration.rb
250
+ - spec/migrations/sequel/005_create_teams_migration.rb
251
+ - spec/models/activerecord/division.rb
252
+ - spec/models/activerecord/draft.rb
253
+ - spec/models/activerecord/league.rb
254
+ - spec/models/activerecord/player.rb
255
+ - spec/models/activerecord/team.rb
256
+ - spec/models/datamapper/division.rb
257
+ - spec/models/datamapper/draft.rb
258
+ - spec/models/datamapper/league.rb
259
+ - spec/models/datamapper/player.rb
260
+ - spec/models/datamapper/team.rb
261
+ - spec/models/sequel/division.rb
262
+ - spec/models/sequel/draft.rb
263
+ - spec/models/sequel/league.rb
264
+ - spec/models/sequel/player.rb
265
+ - spec/models/sequel/team.rb
266
+ - spec/requests/main_spec.rb
267
+ - spec/spec_helper.rb