desert 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ 0.5.3
2
+ - optimize load_paths, use uniq!
3
+ - correct bad SQL for recording migrations in plugin_schema_migrations
4
+
1
5
  0.5.0
2
6
  - Rails 2.2.3 support
3
7
  - routes.rb becomes desert_routes.rb
@@ -1,4 +1,4 @@
1
- Copyright (c) 2007 Pivotal Labs
1
+ Copyright (c) 2007-2009 Pivotal Labs
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,2 +1,2 @@
1
1
  ---
2
- :version: 0.5.2
2
+ :version: 0.5.3
@@ -30,12 +30,13 @@ module Desert
30
30
  paths << File.join(component_root, 'app','models')
31
31
  paths << File.join(component_root, 'app','controllers')
32
32
  paths << File.join(component_root, 'app','helpers')
33
- paths << File.join(component_root, 'app','sweepers')
33
+ paths << File.join(component_root, 'app','sweepers')
34
34
  paths << File.join(component_root, 'lib')
35
35
  end
36
- dependencies.load_paths.reverse.each do |path|
37
- paths << File.expand_path(path) unless paths.include?(File.expand_path(path))
36
+ dependencies.load_paths.reverse_each do |path|
37
+ paths << File.expand_path(path)
38
38
  end
39
+ paths.uniq!
39
40
  paths
40
41
  end
41
42
 
@@ -21,7 +21,7 @@ module Desert #:nodoc:
21
21
  sm_table = self.class.schema_migrations_table_name
22
22
 
23
23
  if down?
24
- ActiveRecord::Base.connection.update("DELETE FROM #{sm_table} WHERE version = '#{version}' WHERE plugin_name = '#{current_plugin.name}'")
24
+ ActiveRecord::Base.connection.update("DELETE FROM #{sm_table} WHERE version = '#{version}' AND plugin_name = '#{current_plugin.name}'")
25
25
  else
26
26
  ActiveRecord::Base.connection.insert("INSERT INTO #{sm_table} (plugin_name, version) VALUES ('#{current_plugin.name}', '#{version}')")
27
27
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: desert
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal Labs
8
8
  - Brian Takita
9
9
  - Parker Thompson
10
- - Adam Milligan, Joe Moore
10
+ - Adam Milligan
11
+ - Joe Moore
12
+ - Josh Susser
11
13
  autorequire:
12
14
  bindir: bin
13
15
  cert_chain: []
14
16
 
15
- date: 2009-08-26 00:00:00 -07:00
17
+ date: 2009-10-23 00:00:00 -07:00
16
18
  default_executable:
17
19
  dependencies: []
18
20