after_party 1.2 → 1.3

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: 7bde22b827685a61e9f268839869c3fb70ea2914
4
- data.tar.gz: 5c913f327925d90f767046f65a12b7ef6460d91f
3
+ metadata.gz: e9d5d87db4784372e629d3e7cb0daa0596055de6
4
+ data.tar.gz: b28bf00123d704e2bd165eeb77d354c7073f5b37
5
5
  SHA512:
6
- metadata.gz: e3ea383eba93ae67a53b65a865a70911ba14d5e5ce57d56030d6982526144100eb8614080907c97a90d39be7896b3348a1588a70d74cbd96224858f9bc9708f3
7
- data.tar.gz: 78a9ced2b24e7d7019376cee2961d5f580caeff4eb31a58d5ed1fd702656cf12d35dec4db39a01e2098582251b14da15f31878fd9a99f7ae0a385f051d48da17
6
+ metadata.gz: d587329cae69da206be48869fd220c251ab435b6be0c2771e59d43e7194ee3f477b130d17269c7595167270b2723f9143f608c38cb1048ce54e7e658f1976552
7
+ data.tar.gz: aa9d86ec147835a5b89b20f59f396f93ccba837569764b0130751cbf8544c4aa10c64eb22a4e0ceab2cc300826bd55d4147245a671bdcc93370a142fe7ad2d21
@@ -3,7 +3,7 @@ Description:
3
3
  second parameter with the task description is recommended.
4
4
 
5
5
  Example:
6
- rails generate deploy_task data_update
6
+ rails generate after_party:task task_name [optional_description_of_the_task]
7
7
 
8
8
  This will create:
9
9
  lib/tasks/deployment/<timestamp>_data_update.rake
@@ -4,7 +4,7 @@ module AfterParty
4
4
  class TaskGenerator < Rails::Generators::NamedBase
5
5
  source_root File.expand_path('../templates', __FILE__)
6
6
  argument :name, :type => :string
7
- argument :description, :type => :string, :default => :nil
7
+ argument :description, :type => :string, :default => ''
8
8
 
9
9
  def copy_deploy_task
10
10
 
@@ -14,11 +14,11 @@ module AfterParty
14
14
 
15
15
  private
16
16
  def file_name
17
- name.underscore.tr(" ", "_")
17
+ name.underscore
18
18
  end
19
19
 
20
20
  def task_description
21
- "Deployment task: #{description || file_name}"
21
+ "Deployment task: #{description.blank? ? file_name : description}"
22
22
  end
23
23
 
24
24
  def timestamp
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: after_party
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Mitchell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-30 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: