cocot 1.1.1 → 1.1.2

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: 42fea14b2757abf3c5492b459c46e0660bb7dd42
4
- data.tar.gz: dc9933ad1bbf1f29ee942a16fa1625840b3dd4fb
3
+ metadata.gz: a58664e06327c37a2d4119630dcf24b2a4caf97f
4
+ data.tar.gz: 7e87b6b00b9ac3a740975f4c65bef34b9f381e58
5
5
  SHA512:
6
- metadata.gz: d7814d839a6a94893b2cd0bc7d2a6a7f377e99c4fd898fe2662dab762258d79ae81f7b12ff70b63933e8ca3b5817f6d065cff8e1dd5fa63c2e7a21fe7d5a18b8
7
- data.tar.gz: 75aae19c64ed8ed85b88a4ff89b76702fd266fd1460e3f87af652b7e18a1ef9d30f7127a2e807889cca2185041a03909a3b8c89548a77022611762a90463b647
6
+ metadata.gz: d287a9160d2baf2a66f5bb06d18603376d17908c141a4048b8625bf71657aadcdf743d8327109452309fc28ba0c1ca519bd7ea5913584863382dd94b2d6659d7
7
+ data.tar.gz: c8a828cb81b75a07189381e22d3b7c7aaedbd298d963d9cc13302f94a015cf6e094de399a00f47857ab616a8014da65c585fd60b9f28a591942412270d407786
@@ -1,3 +1,9 @@
1
+ 1.1.2
2
+ -----
3
+
4
+ * Fixed some misspelling on feedback.
5
+ * Fixed issue in Gemfile generated. Even when you chosen --clean option, Gemfile tried to require rspec and cucumber gems, not anymore.
6
+
1
7
  1.1.1
2
8
  -----
3
9
 
data/ReadMe.md CHANGED
@@ -6,7 +6,7 @@ cocot
6
6
  It supposes that you...
7
7
  -----------------------
8
8
 
9
- may use **RSpec** and/or **Cucumber** and/or **minitest** for **BDD** developing, so it creates the conventional files and folders for work with.
9
+ may use **RSpec** and/or **Cucumber** and/or **minitest** for **BDD/TDD** developing, so it creates the conventional files and folders for work with.
10
10
 
11
11
  How can I install it?
12
12
  -----------------
@@ -26,29 +26,29 @@ Gemfile
26
26
  Rakefile
27
27
  --------
28
28
 
29
- **cocot** packs few pre-defined **rake** tasks on standard mode:
29
+ **cocot** packs few pre-defined **rake** tasks on standard mode:
30
30
 
31
- * `rake cucumber` : same like `cucumber`
32
- * `rake cucumber_wip` : same like `cucumber --format progress --color --wip --tags @wip:3`, specially for order
33
- * `rake spec` : same like `spec --color`
34
- * `rake test` : run minitest tests
35
- * `rake rdoc` : same like `rdoc --all --tab-width=1 --format=darkfish --op=doc --force-output`, create a doc folder with **RDoc** documentation
31
+ * `rake cucumber` : same like `cucumber`
32
+ * `rake cucumber_wip` : same like `cucumber --format progress --color --wip --tags @wip:3`, specially for order
33
+ * `rake spec` : same like `spec --color`
34
+ * `rake test` : run minitest tests
35
+ * `rake rdoc` : same like `rdoc --all --tab-width=1 --format=darkfish --op=doc --force-output`, create a doc folder with **RDoc** documentation
36
36
 
37
- If you pass some option(see below) to the program, the rake task list may be reduced.
37
+ If you pass some option(see below) to the program, the rake task list may be reduced.
38
38
 
39
39
  Options
40
40
  -------
41
41
 
42
- Version 1.1.0 introduces few nice options:
42
+ Version 1.1.0 introduces few nice options:
43
43
 
44
- * **--full** Builds these extra-folders: "share", "ext" and "data". If your project is kind of big, you may use them for order.
44
+ * **--full** Builds these extra-folders: "share", "ext" and "data". If your project is kind of big, you may use them for order.
45
45
 
46
- Next ones can be played as solo optionally in conjunction with the above one:
46
+ Next ones can be played as solo optionally in conjunction with the above one:
47
47
 
48
- * **--rspec-only** Builds the standard skeleton minus the folders and files related to Cucumber.
49
- * **--cucumber-only** Builds the standard skeleton minus the folders and files related to RSpec.
50
- * **--minitest-only** Builds the standard skeleton without the support for RSpec and Cucumber and adds the folder "test" with the purpose of placing minitest tests there.
51
- * **--clean** Builds the standard skeleton without the support for RSpec and Cucumber. This option may be fine for very small projects, which will have no unit testing at all.
48
+ * **--rspec-only** Builds the standard skeleton minus the folders and files related to Cucumber.
49
+ * **--cucumber-only** Builds the standard skeleton minus the folders and files related to RSpec.
50
+ * **--minitest-only** Builds the standard skeleton without the support for RSpec and Cucumber and adds the folder "test" with the purpose of placing minitest tests there.
51
+ * **--clean** Builds the standard skeleton without the support for RSpec and Cucumber. This option may be fine for very small projects, which will have no unit testing at all.
52
52
 
53
53
  Standard skeleton
54
54
  -----------------
@@ -80,7 +80,7 @@ Standard skeleton
80
80
  *proyect is replaced by the name of your proyect
81
81
 
82
82
 
83
- NOTES
83
+ Notes
84
84
  -----
85
85
 
86
86
  Only tested on Windows. Should work in most operative systems.
@@ -1,4 +1,4 @@
1
- {:bin/proyectI"H#!/usr/bin/env ruby
1
+ {:bin/proyectI"H#!/usr/bin/env ruby
2
2
 
3
3
  require_relative '../lib/name_of_the_proyect'
4
4
  :ET:features/support/env.rbI"�#if you respect the convention of a Ruby proyect layout then the next lines are fixed
@@ -8,10 +8,27 @@ require 'name_of_the_proyect'
8
8
  ;T:spec/spec_helper.rbI"%require 'name_of_the_proyect'
9
9
 
10
10
 
11
- ;T: GemfileI"csource 'https://rubygems.org'
11
+ ;T: gemfileI"csource 'https://rubygems.org'
12
12
 
13
13
  gem 'rspec'
14
14
  gem 'cucumber'
15
+ gem 'rake'
16
+ gem 'rdoc'
17
+ gem 'bundler'
18
+ ;T:gemfile_rspec_onlyI"Tsource 'https://rubygems.org'
19
+
20
+ gem 'rspec'
21
+ gem 'rake'
22
+ gem 'rdoc'
23
+ gem 'bundler'
24
+ ;T:gemfile_cucumber_onlyI"Wsource 'https://rubygems.org'
25
+
26
+ gem 'cucumber'
27
+ gem 'rake'
28
+ gem 'rdoc'
29
+ gem 'bundler'
30
+ ;T:gemfile_cleanI"Hsource 'https://rubygems.org'
31
+
15
32
  gem 'rake'
16
33
  gem 'rdoc'
17
34
  gem 'bundler'
@@ -25,6 +25,6 @@ rescue => e
25
25
  warn(trace)
26
26
  end
27
27
  warn('###############################################################################################')
28
- warn('Please provide me with this message in https://github.com/IgorJorobus/cocot/issues , thank you.')
28
+ warn('Please provide me with this message at https://github.com/IgorJorobus/cocot/issues , thank you.')
29
29
  warn('###############################################################################################')
30
30
  end
@@ -47,7 +47,7 @@ class Cocot
47
47
  @constructor_de_esqueleto = ConstructorDeEsqueleto.new
48
48
  #si la siguiente acción tiene éxito devuelve true, de otra forma false, lo cual quiere decir que hubo un problema
49
49
  if @constructor_de_esqueleto.construir_esqueleto(@nombre_del_proyecto)
50
- @salida.escribir("Structure builded. Have fun developing! :)\n")
50
+ @salida.escribir("Structure built. Have fun developing! :)\n")
51
51
  true
52
52
  else
53
53
  @salida.escribir(@constructor_de_esqueleto.explicar_inconveniente)
@@ -21,7 +21,7 @@ class ConstructorDeEsqueleto
21
21
  if !(existe_carpeta_de_mismo_nombre_que_este_proyecto_en_el_directorio_actual?)
22
22
  crear_carpeta_del_proyecto()
23
23
  else
24
- @inconveniente = "Skeletal structure can't be build. There's an existing folder in the working directory called #{@nombre_del_proyecto}.\n"
24
+ @inconveniente = "Skeletal structure can't be built. There's an existing folder in the working directory called #{@nombre_del_proyecto}.\n"
25
25
  return false
26
26
  end
27
27
  #me voy a pasar a la carpeta creada
@@ -107,8 +107,8 @@ class ConstructorDeEsqueleto
107
107
  end
108
108
  end
109
109
  end
110
- # por ultimo escribo el Rakefile
111
- File.open('Rakefile', 'w+') do |archivo|
110
+ # re-escribo el Rakefile
111
+ File.open('Rakefile', 'w') do |archivo|
112
112
  case ::COCOT.juzgador_de_argumentos.modo
113
113
  when '--rspec-only'
114
114
  archivo.write(@contenido_de_archivos[:rakefile_rspec_only])
@@ -122,6 +122,21 @@ class ConstructorDeEsqueleto
122
122
  archivo.write(@contenido_de_archivos[:rakefile])
123
123
  end
124
124
  end
125
+ # re-escribo el Gemfile
126
+ File.open('Gemfile', 'w') do |archivo|
127
+ case ::COCOT.juzgador_de_argumentos.modo
128
+ when '--rspec-only'
129
+ archivo.write(@contenido_de_archivos[:gemfile_rspec_only])
130
+ when '--cucumber-only'
131
+ archivo.write(@contenido_de_archivos[:gemfile_cucumber_only])
132
+ when '--minitest-only'
133
+ archivo.write(@contenido_de_archivos[:gemfile_clean])
134
+ when '--clean'
135
+ archivo.write(@contenido_de_archivos[:gemfile_clean])
136
+ else
137
+ archivo.write(@contenido_de_archivos[:gemfile])
138
+ end
139
+ end
125
140
  end
126
141
 
127
142
  def existe_carpeta_de_mismo_nombre_que_este_proyecto_en_el_directorio_actual?
@@ -129,7 +144,7 @@ class ConstructorDeEsqueleto
129
144
  end
130
145
 
131
146
  def explicar_inconveniente
132
- @inconveniente || "No hubo inconvenientes.\n"
147
+ @inconveniente || "No troubles.\n"
133
148
  end
134
149
 
135
150
  private
@@ -30,7 +30,7 @@ require 'name_of_the_proyect'
30
30
 
31
31
  STR
32
32
 
33
- COCOT::CONTENIDO_DE_ARCHIVOS[:'Gemfile'] = \
33
+ COCOT::CONTENIDO_DE_ARCHIVOS[:gemfile] = \
34
34
  <<STR
35
35
  source 'https://rubygems.org'
36
36
 
@@ -41,6 +41,35 @@ gem 'rdoc'
41
41
  gem 'bundler'
42
42
  STR
43
43
 
44
+ COCOT::CONTENIDO_DE_ARCHIVOS[:gemfile_rspec_only] = \
45
+ <<STR
46
+ source 'https://rubygems.org'
47
+
48
+ gem 'rspec'
49
+ gem 'rake'
50
+ gem 'rdoc'
51
+ gem 'bundler'
52
+ STR
53
+
54
+ COCOT::CONTENIDO_DE_ARCHIVOS[:gemfile_cucumber_only] = \
55
+ <<STR
56
+ source 'https://rubygems.org'
57
+
58
+ gem 'cucumber'
59
+ gem 'rake'
60
+ gem 'rdoc'
61
+ gem 'bundler'
62
+ STR
63
+
64
+ COCOT::CONTENIDO_DE_ARCHIVOS[:gemfile_clean] = \
65
+ <<STR
66
+ source 'https://rubygems.org'
67
+
68
+ gem 'rake'
69
+ gem 'rdoc'
70
+ gem 'bundler'
71
+ STR
72
+
44
73
  COCOT::CONTENIDO_DE_ARCHIVOS[:rakefile] = \
45
74
  <<STR
46
75
  #necessary for minitest tests
@@ -63,6 +63,6 @@ class JuzgadorDeArgumentos
63
63
  end
64
64
 
65
65
  def cual_será_el_nombre_del_proyecto?
66
- @nombre_del_proyecto || "No fue definido.\n"
66
+ @nombre_del_proyecto || "Not defined.\n"
67
67
  end
68
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damián M. González
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-13 00:00:00.000000000 Z
11
+ date: 2015-05-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Skeleton builder of a new proyect which could be developed with BDD/TDD.
14
14
  This application build the folders and files needed to start developing fast a new