mina-hooks 0.2 → 0.2.1

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: aae82afddf542410261fdad75a76f401aee5bc17
4
- data.tar.gz: 68eff9f5ad53598ea8b5bb54feb5ed9538f306be
3
+ metadata.gz: 59d388792f338ea80b183b120764da0d829bd15b
4
+ data.tar.gz: 0203b7111937d0f4f4e2cc5fad85dac65cdf897e
5
5
  SHA512:
6
- metadata.gz: 83e7bb03e8e5ef0e207cce2a9015194cbc97b8838e387d8a04979060ee131ad33b40e85f3f6a954fe2dd46bfeea2962b3802793fef068901a822800ab0576741
7
- data.tar.gz: 88979cc6c52b5b848dfa37dfe2f3a15abb14c853e5d225e103fba206b31cf8f22dd5633c39954f13d991f509f8b2edf79da43ab9fa9692e2b77e1600539f0cf9
6
+ metadata.gz: c480f1140e52b91fb3f07eaf02adce8bcd8cade844fb62450ecf6ea67c582b1f9cdf33a1a1cca5cd1b195c8def591187309b0235f12e3c7725fadcc85cf2a90b
7
+ data.tar.gz: b68779f8648b469452d1ea58117054d91f23649a2df4dd294221821f33c5c2f7383265e9c12f02ac688fcfb54029212d4a290448f4a5ee8930094f1ee765ce51
@@ -1,5 +1,8 @@
1
1
  ### 0.3 (unreleased)
2
2
 
3
+ ### 0.2.1 / 2013-12-03
4
+
5
+ * Only extend the plugin if Mina is present.
3
6
 
4
7
  ### 0.2 / 2013-12-02
5
8
 
data/README.md CHANGED
@@ -17,6 +17,7 @@ ended.
17
17
  `mina-hooks` gets around this limitation by defining a new `mina_cleanup!`
18
18
  method that does the following:
19
19
 
20
+ * detect if mina is being run with the `deploy` argument
20
21
  * invoke each of the `before_mina_tasks`
21
22
  * delegate to the pre-existing `mina_cleanup!`
22
23
  * invoke each of the `after_mina_tasks`
@@ -1,4 +1,6 @@
1
1
  require "mina/hooks/version"
2
2
  require "mina/hooks/plugin"
3
3
 
4
- extend Mina::Hooks::Plugin
4
+ if defined?(Mina) && self.respond_to?(:mina_cleanup!)
5
+ extend Mina::Hooks::Plugin
6
+ end
@@ -1,6 +1,6 @@
1
1
  module Mina
2
2
  module Hooks
3
3
  # mina-hooks version
4
- VERSION = "0.2"
4
+ VERSION = "0.2.1"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-02 00:00:00.000000000 Z
11
+ date: 2013-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mina