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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 161cc5e1450ec53a00cad14a1859274bc8743f4f
4
- data.tar.gz: 93f381ecf0bc8064a2f66b7e16b6783cb9836402
3
+ metadata.gz: d36d42d029249123c34d37c52a7240f536ed8642
4
+ data.tar.gz: 65a484f094c4f73bce1f3145e452ad0ad007dfd5
5
5
  SHA512:
6
- metadata.gz: 78722164f1d15b6197779e74774d1850fe73bd5024c6459617a86d1d3085ee172828355c1e398ed5492c6b2190b1108318bd384b10f2be257104fe04be0998ff
7
- data.tar.gz: 88d5d9d43ff6eacc12c08180616b256dc5857c8b23dcb95937152cbba9e55e83770c6857470528172057c9adc60ae17080391f49a20a258eef70f1006b8252d9
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.
@@ -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']
@@ -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(update_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, :downgrade => true))
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 = { :downgrade => false }
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
- @downgrade = opts[:downgrade]
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
 
@@ -1,4 +1,4 @@
1
1
  module Drupid
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  USER_AGENT = "Drupid #{VERSION} (Ruby #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}; #{RUBY_PLATFORM})"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drupid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lifepillar