drupid 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/lib/drupid/drush.rb +2 -0
- data/lib/drupid/updater.rb +6 -7
- data/lib/drupid/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d36d42d029249123c34d37c52a7240f536ed8642
|
4
|
+
data.tar.gz: 65a484f094c4f73bce1f3145e452ad0ad007dfd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f1d949e284b15295d6f8b56b700dff4d55332887adeb752226904d9a583fd09d87e42c77f12e3066c534e4af75e5e86552ba1b4e50efb24c77886fc3bb2be8
|
7
|
+
data.tar.gz: f93f4558b1dcc52a9f3dabfb5b9199f6bcaa7736f1e615c4da5f8794a46a0d6df07307a93746b9acedc3a749c31858073b9064b821a7094afa950f7d948ef5c5
|
data/README.md
CHANGED
@@ -9,6 +9,11 @@ Drupid is a better replacement for [Drush](https://github.com/drush-ops/drush) `
|
|
9
9
|
|
10
10
|
### Release Notes ###
|
11
11
|
|
12
|
+
#### Version 1.1.4 (2013/9/2) ####
|
13
|
+
|
14
|
+
- Fixed a regression which, in some circumstances, caused an uncaught exception upon checking whether a project is installed.
|
15
|
+
- If a local project differs from the cached version, and it must be patched, Drupid shows a [Patched] label instead of the more generic [update].
|
16
|
+
|
12
17
|
#### Version 1.1.3 (2013/9/1) ####
|
13
18
|
|
14
19
|
- Fixed a broken dependency causing Drupid to fail to install in Ruby 1.8.
|
data/lib/drupid/drush.rb
CHANGED
@@ -39,6 +39,7 @@ module Drupid
|
|
39
39
|
return false
|
40
40
|
end
|
41
41
|
return false unless st
|
42
|
+
return false unless st.instance_of?(Hash)
|
42
43
|
return (st['bootstrap'] =~ /Successful/) ? true : false
|
43
44
|
end
|
44
45
|
|
@@ -66,6 +67,7 @@ module Drupid
|
|
66
67
|
rescue Exception
|
67
68
|
return false
|
68
69
|
end
|
70
|
+
return false unless st.instance_of?(Hash)
|
69
71
|
return false unless st.has_key?(project_name)
|
70
72
|
type = st[project_name]['type']
|
71
73
|
status = st[project_name]['status']
|
data/lib/drupid/updater.rb
CHANGED
@@ -418,7 +418,7 @@ module Drupid
|
|
418
418
|
if diff.empty?
|
419
419
|
@log.notice("#{Tty.white}[OK]#{Tty.reset} #{platform_project.extended_name}#{p}")
|
420
420
|
elsif makefile_project.has_patches?
|
421
|
-
log.action(
|
421
|
+
log.action(UpdateProjectAction.new(platform, makefile_project, :label => 'Patched'))
|
422
422
|
log.notice "#{makefile_project.extended_name}#{p} will be patched"
|
423
423
|
log.notice(diff.join("\n"))
|
424
424
|
else
|
@@ -432,7 +432,7 @@ module Drupid
|
|
432
432
|
when 1 # upgrade
|
433
433
|
log.action(update_action)
|
434
434
|
when -1 # downgrade
|
435
|
-
log.action(UpdateProjectAction.new(platform, makefile_project, :
|
435
|
+
log.action(UpdateProjectAction.new(platform, makefile_project, :label => 'Update'))
|
436
436
|
if which('drush').nil?
|
437
437
|
if @force_changes
|
438
438
|
owarn "Forcing downgrade."
|
@@ -589,19 +589,18 @@ module Drupid
|
|
589
589
|
|
590
590
|
|
591
591
|
class UpdateProjectAction < AbstractAction
|
592
|
-
def initialize p, proj, opts = { :
|
592
|
+
def initialize p, proj, opts = { :label => 'Update' }
|
593
593
|
raise "#{proj.extended_name} does not exist locally" unless proj.exist?
|
594
594
|
raise "Unknown type for #{proj.extended_name}" unless proj.proj_type
|
595
|
-
@
|
595
|
+
@label = opts[:label]
|
596
596
|
super(p, proj)
|
597
597
|
end
|
598
598
|
|
599
599
|
def msg
|
600
|
-
label = 'Update'
|
601
600
|
if old_project = platform.get_project(component.name)
|
602
|
-
"#{Tty.blue}[#{label}]#{Tty.white} #{component.name}: #{old_project.version.long} => #{component.version.long}#{Tty.reset} (#{platform.dest_path(component)})"
|
601
|
+
"#{Tty.blue}[#{@label}]#{Tty.white} #{component.name}: #{old_project.version.long} => #{component.version.long}#{Tty.reset} (#{platform.dest_path(component)})"
|
603
602
|
else
|
604
|
-
"#{Tty.blue}[#{label}]#{Tty.white} #{component.name}: => #{component.version.long}#{Tty.reset} (#{platform.dest_path(component)})"
|
603
|
+
"#{Tty.blue}[#{@label}]#{Tty.white} #{component.name}: => #{component.version.long}#{Tty.reset} (#{platform.dest_path(component)})"
|
605
604
|
end
|
606
605
|
end
|
607
606
|
|
data/lib/drupid/version.rb
CHANGED