desert 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +4 -0
- data/MIT-LICENSE +1 -1
- data/VERSION.yml +1 -1
- data/lib/desert/manager.rb +4 -3
- data/lib/desert/plugin_migrations/2.1/migrator.rb +1 -1
- metadata +5 -3
data/CHANGES
CHANGED
data/MIT-LICENSE
CHANGED
data/VERSION.yml
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
---
|
2
|
-
:version: 0.5.
|
2
|
+
:version: 0.5.3
|
data/lib/desert/manager.rb
CHANGED
@@ -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.
|
37
|
-
paths << 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}'
|
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.
|
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
|
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-
|
17
|
+
date: 2009-10-23 00:00:00 -07:00
|
16
18
|
default_executable:
|
17
19
|
dependencies: []
|
18
20
|
|