rgentpl 1.0.3 → 1.0.4

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDRmMGRmZWNmMDhhZGIyYTgxNzM0MjA3N2YzZWM3NDJjYTQ1ZGFhMg==
4
+ ZGQxNjRhMmY0MDJhOWQzZDRkMjg1ZjliNTY1MDJiNjIzODhiNTA1Yw==
5
5
  data.tar.gz: !binary |-
6
- NjVmNjQ0YmIxYTgwMTkwOTAwN2I1YzhiN2M5MTYxOTg2YmYzZmNiZg==
6
+ YjFjZjk5NTA4NDg4NzQxNDk2ZmI3ZWQ2ZDRmNzFkZmUzNTJlZDgxYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGUwNmY0ZmJmMzAwNmQzMzg3ZmUwYmUxMDIwNjMwNjQzMWM2ZDVkNGUxNDhk
10
- NzhiMGQ4NGViMGUyZmFiNDEzMmE2YTk3Y2VmYjQ2Y2FmOGIxNWVmNTZjMDQx
11
- ODcxODMwYmE0MGY4YmU4YTgyOTg2MGU2ZTg4MzE3YmZmYjgyNjQ=
9
+ M2RmNjIwOTA1ZGMyOTIwMzA2MzFmN2RjZWIxYzVkOWM5NjQyYWUxM2U1OWM4
10
+ ODI0ZTBiYzdlMGYyMzk2ZjQ3MzRmZWIyYzFkNzFiODM0YjRiN2JhMDJmZGY2
11
+ NTA0YzE4Y2Q4NDE2OGFlZTFmNDVlODAxOTJlYjQ5NTRiNmFmNGU=
12
12
  data.tar.gz: !binary |-
13
- Yjg5NzRkZThjNmVkZjU4Y2E2MWRmY2RjOWUxYTlmM2ZhYjAyOTQ2MTlkZDdk
14
- NmZhZTllOTE1OTJiMjQ3NzMzOTNjZTM2NmRkYzg5OTEyNzUxZmQyZGQ4Nzk4
15
- NjdkMWVmNzZlNTU4ZmIxYWE4MmQzY2Q2MDQxZDI0YTk0ZTRkNjE=
13
+ ODNlNzkwZWNlM2JiY2Y5M2QxZDVhYWEzZGE3ZDU4MjA4M2UwZThhYjA3Njk0
14
+ NTQ5NDRkYjYxMTA3OTRjMTExNDE5OTM3N2I3MjQzY2M2MTE5ZjQ0OGFhNTQ1
15
+ YmU4ZmJmZGM1ZjI3NjFmZmEzNjVmZWYzZGE4NDhmMDZiNGFjMDc=
@@ -1,4 +1,9 @@
1
1
 
2
+ 1.0.4 / 2014-02-08
3
+ ==================
4
+
5
+ * Fix commands.
6
+
2
7
  1.0.3 / 2014-02-06
3
8
  ==================
4
9
 
data/ShortLog CHANGED
@@ -1,4 +1,4 @@
1
- Julio Antúnez Tarín (16):
1
+ Julio Antúnez Tarín (19):
2
2
  First sending.
3
3
  Update README and LICENSE files.
4
4
  Bumped to version 1.0.0.
@@ -15,4 +15,7 @@ Julio Antúnez Tarín (16):
15
15
  Bumped to version 1.0.2.
16
16
  Merge branch 'release-1.0.2' into develop
17
17
  Update README file.
18
+ Bumped to version 1.0.3.
19
+ Merge branch 'release-1.0.3' into develop
20
+ Fix commands.
18
21
 
@@ -19,7 +19,7 @@ module Rgentpl
19
19
  # Add generate group command
20
20
  register(Rgentpl::Command::Generate,
21
21
  'generate',
22
- 'generate APP_NAME -p APP_PATH -t [CTAGS]',
22
+ 'generate APP_NAME [-p|--app_path APP_PATH] [-t|--ctags CTAGS]',
23
23
  'Generate application')
24
24
  end
25
25
  end
@@ -25,12 +25,14 @@ module Rgentpl
25
25
 
26
26
  class_option :app_path, type: :string,
27
27
  required: true,
28
- desc: 'Application path',
29
- default: '/tmp'
28
+ desc: 'Application path with current path as a default value',
29
+ default: File.expand_path('.'),
30
+ aliases: '-p'
30
31
  class_option :ctags, type: :string,
31
32
  required: false,
32
- desc: 'Full CTags path command',
33
- default: '/usr/local/bin/ctags'
33
+ desc: 'Full CTags path command with /usr/local/bin/ctags as a default value',
34
+ default: '/usr/local/bin/ctags',
35
+ aliases: '-t'
34
36
  # @return [void]
35
37
  def create_app
36
38
  @app_path = options['app_path']
@@ -45,12 +47,13 @@ module Rgentpl
45
47
 
46
48
  # @return [void]
47
49
  def git
48
- run("cd #{app_path}/#{app_name} ;
49
- git init; git add . ;
50
- git ci -am 'First sending.' ;
51
- git checkout -b develop ;
52
- git checkout -b feature-domain-logic
53
- ")
50
+ inside("#{app_path}/#{app_name}") do
51
+ run('git init')
52
+ run('git add .')
53
+ run('git commit -am "First sending."')
54
+ run('git checkout -b develop')
55
+ run('git checkout -b feature-domain-logic')
56
+ end
54
57
  end
55
58
  end
56
59
  end
@@ -4,5 +4,5 @@
4
4
  #
5
5
  module Rgentpl
6
6
  # Version
7
- VERSION = '1.0.3'
7
+ VERSION = '1.0.4'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgentpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Antúnez Tarín