padrino-admin 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.4
1
+ 0.7.5
@@ -41,12 +41,8 @@ module Padrino
41
41
  ])
42
42
 
43
43
  insert_into_gemfile("haml")
44
-
45
44
  template "templates/page/db/seeds.rb.tt", destination_root("/db/seeds.rb")
46
-
47
- if options[:destroy] || !File.read(destination_root("config/apps.rb")).include?("Padrino.mount(\"Admin\").to(\"/#{@app_path}\")")
48
- append_file destination_root("config/apps.rb"), "\nPadrino.mount(\"Admin\").to(\"/#{@app_path}\")"
49
- end
45
+ append_file destination_root("config/apps.rb"), "\nPadrino.mount(\"Admin\").to(\"/#{@app_path}\")"
50
46
 
51
47
  unless options[:destroy]
52
48
  say (<<-TEXT).gsub(/ {12}/,'')
@@ -26,10 +26,6 @@ module Padrino
26
26
  @app_root = File.join(options[:root], options[:admin_path])
27
27
  self.behavior = :revoke if options[:destroy]
28
28
 
29
- if options[:destroy] || !File.read(destination_root("GemFile")).include?("carrierwave")
30
- append_file destination_root("Gemfile"), "\n\n# Uploader requirements\ngem 'carrierwave'"
31
- end
32
-
33
29
  copy_file "templates/uploader/controller.rb", destination_root(options[:admin_path], "/controllers/uploads.rb")
34
30
  copy_file "templates/uploader/views/grid.js.erb", destination_root(options[:admin_path], "/views/uploads/grid.js.erb")
35
31
  copy_file "templates/uploader/views/store.jml", destination_root(options[:admin_path], "/views/uploads/store.jml")
@@ -54,6 +50,9 @@ module Padrino
54
50
  RUBY
55
51
  end
56
52
 
53
+ # Add a carrierwave dependency
54
+ insert_into_gemfile("carrierwave")
55
+
57
56
  # Only for datamapper
58
57
  if orm == :datamapper
59
58
  inject_into_file destination_root("app", "models", "upload.rb"), :after => "property :file, String" do
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{padrino-admin}
8
- s.version = "0.7.4"
8
+ s.version = "0.7.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
12
- s.date = %q{2010-02-08}
12
+ s.date = %q{2010-02-09}
13
13
  s.description = %q{Admin View for Padrino applications}
14
14
  s.email = %q{padrinorb@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -356,9 +356,9 @@ Gem::Specification.new do |s|
356
356
 
357
357
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
358
358
  s.add_runtime_dependency(%q<json_pure>, [">= 1.2.0"])
359
- s.add_runtime_dependency(%q<padrino-core>, ["= 0.7.4"])
360
- s.add_runtime_dependency(%q<padrino-gen>, ["= 0.7.4"])
361
- s.add_runtime_dependency(%q<padrino-helpers>, ["= 0.7.4"])
359
+ s.add_runtime_dependency(%q<padrino-core>, ["= 0.7.5"])
360
+ s.add_runtime_dependency(%q<padrino-gen>, ["= 0.7.5"])
361
+ s.add_runtime_dependency(%q<padrino-helpers>, ["= 0.7.5"])
362
362
  s.add_runtime_dependency(%q<tilt>, [">= 0.4"])
363
363
  s.add_development_dependency(%q<haml>, [">= 2.2.1"])
364
364
  s.add_development_dependency(%q<shoulda>, [">= 0"])
@@ -367,9 +367,9 @@ Gem::Specification.new do |s|
367
367
  s.add_development_dependency(%q<webrat>, [">= 0.5.1"])
368
368
  else
369
369
  s.add_dependency(%q<json_pure>, [">= 1.2.0"])
370
- s.add_dependency(%q<padrino-core>, ["= 0.7.4"])
371
- s.add_dependency(%q<padrino-gen>, ["= 0.7.4"])
372
- s.add_dependency(%q<padrino-helpers>, ["= 0.7.4"])
370
+ s.add_dependency(%q<padrino-core>, ["= 0.7.5"])
371
+ s.add_dependency(%q<padrino-gen>, ["= 0.7.5"])
372
+ s.add_dependency(%q<padrino-helpers>, ["= 0.7.5"])
373
373
  s.add_dependency(%q<tilt>, [">= 0.4"])
374
374
  s.add_dependency(%q<haml>, [">= 2.2.1"])
375
375
  s.add_dependency(%q<shoulda>, [">= 0"])
@@ -379,9 +379,9 @@ Gem::Specification.new do |s|
379
379
  end
380
380
  else
381
381
  s.add_dependency(%q<json_pure>, [">= 1.2.0"])
382
- s.add_dependency(%q<padrino-core>, ["= 0.7.4"])
383
- s.add_dependency(%q<padrino-gen>, ["= 0.7.4"])
384
- s.add_dependency(%q<padrino-helpers>, ["= 0.7.4"])
382
+ s.add_dependency(%q<padrino-core>, ["= 0.7.5"])
383
+ s.add_dependency(%q<padrino-gen>, ["= 0.7.5"])
384
+ s.add_dependency(%q<padrino-helpers>, ["= 0.7.5"])
385
385
  s.add_dependency(%q<tilt>, [">= 0.4"])
386
386
  s.add_dependency(%q<haml>, [">= 2.2.1"])
387
387
  s.add_dependency(%q<shoulda>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2010-02-08 00:00:00 +01:00
15
+ date: 2010-02-09 00:00:00 +01:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -33,7 +33,7 @@ dependencies:
33
33
  requirements:
34
34
  - - "="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.7.4
36
+ version: 0.7.5
37
37
  version:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: padrino-gen
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - "="
45
45
  - !ruby/object:Gem::Version
46
- version: 0.7.4
46
+ version: 0.7.5
47
47
  version:
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: padrino-helpers
@@ -53,7 +53,7 @@ dependencies:
53
53
  requirements:
54
54
  - - "="
55
55
  - !ruby/object:Gem::Version
56
- version: 0.7.4
56
+ version: 0.7.5
57
57
  version:
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: tilt