cocot 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +12 -0
- data/ReadMe.md +6 -12
- data/data/contenido_de_archivos.cocot +106 -63
- data/lib/cocot/constructor_de_esqueleto.rb +5 -3
- data/lib/cocot/contenido_de_archivos.rb +108 -57
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2882b9e4d42a842f475b397bef6cb1cd5b9f9942
|
4
|
+
data.tar.gz: 9b1df2b4a2f6cf48a94e405897915470c7587c0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da13d61e7d9497ea3523c2016ecc5aa1964bb40734620b07f4ae1cd9a642ca21d167c4bf1ab9bb4cb64187b5d5691197d4a0103fc503889ed25e66b33345be92
|
7
|
+
data.tar.gz: f7136cf4ffa237c2779705b8ef714ec517f2444fe3d9d59126ffc665d6970847a666d18426d8890f975f91e5e0b3b52f42b269b9ab7006e1c6960050543d4671
|
data/Changelog.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
1.1.3
|
2
|
+
-----
|
3
|
+
|
4
|
+
* ReadMe.md is no longer an empty file. Now it contains a title: the project name upcased.
|
5
|
+
* ReadMe.md is now README.md to get adapted to VCS conventions.
|
6
|
+
* Changelog.md is no longer an empty file. Now it has references to "Keep a CHANGELOG" file conventions and you're expected to get adapted to write good and consistent CHANGELOG files following that guideline.
|
7
|
+
* Changelog.md is now CHANGELOG.md to get adapted to VCS conventions.
|
8
|
+
* License.md is now LICENSE.md to get adapted to VCS conventions.
|
9
|
+
* RDoc is pretty much dead and ugly compared to Yard on these days. Yard is supposed to be used now as documenting system. Because of that, it's now included inside any Gemfile as a :development dependency. The RDoc main rake task is now replaced by yard's main rake task.
|
10
|
+
* The Gemfile got updated to separate what is :development dependencies from the :production dependencies. It also replaced rdoc for yard as documenting system dependency.
|
11
|
+
* Better in-code comments. Before everything looked like #comment, now it contains a space before the first comment character, such as the Ruby conventions suggest.
|
12
|
+
|
1
13
|
1.1.2
|
2
14
|
-----
|
3
15
|
|
data/ReadMe.md
CHANGED
@@ -32,14 +32,14 @@ Rakefile
|
|
32
32
|
* `rake cucumber_wip` : same like `cucumber --format progress --color --wip --tags @wip:3`, specially for order
|
33
33
|
* `rake spec` : same like `spec --color`
|
34
34
|
* `rake test` : run minitest tests
|
35
|
-
* `rake
|
35
|
+
* `rake yard` : same like `yardoc`, create a doc folder with **Yard** documentation
|
36
36
|
|
37
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
|
42
|
+
Version 1.1.0 introduced few nice options:
|
43
43
|
|
44
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
|
|
@@ -69,26 +69,20 @@ Standard skeleton
|
|
69
69
|
spec\
|
70
70
|
| proyect*\
|
71
71
|
| spec_helper.rb
|
72
|
-
|
72
|
+
CHANGELOG.md
|
73
73
|
Gemfile
|
74
74
|
Gemfile.lock
|
75
|
-
|
75
|
+
LICENSE.md
|
76
76
|
Rakefile
|
77
|
-
|
77
|
+
README.md
|
78
78
|
</pre>
|
79
79
|
|
80
80
|
*proyect is replaced by the name of your proyect
|
81
81
|
|
82
|
-
|
83
|
-
Notes
|
84
|
-
-----
|
85
|
-
|
86
|
-
Only tested on Windows. Should work in most operative systems.
|
87
|
-
|
88
82
|
License
|
89
83
|
-------
|
90
84
|
|
91
|
-
Copyright (c)
|
85
|
+
Copyright (c) 2018 cocot
|
92
86
|
|
93
87
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
94
88
|
this software and associated documentation files (the "Software"), to deal in
|
@@ -1,125 +1,168 @@
|
|
1
|
-
{
|
1
|
+
{:bin/proyectI"H#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require_relative '../lib/name_of_the_proyect'
|
4
|
-
:ET:features/support/env.rbI"�#if you respect the convention of a Ruby proyect layout then the next lines are fixed
|
4
|
+
:ET:features/support/env.rbI"�# if you respect the convention of a Ruby proyect layout then the next lines are fixed
|
5
5
|
$LOAD_PATH << File.expand_path('../../../lib', __FILE__)
|
6
6
|
require 'name_of_the_proyect'
|
7
7
|
;T:lib/proyect.rbI"
|
8
8
|
;T:spec/spec_helper.rbI"%require 'name_of_the_proyect'
|
9
9
|
|
10
10
|
|
11
|
-
;T:gemfileI"
|
11
|
+
;T:gemfileI"�# ruby '~>2.0'
|
12
12
|
|
13
|
-
|
14
|
-
gem 'cucumber'
|
15
|
-
gem 'rake'
|
16
|
-
gem 'rdoc'
|
17
|
-
gem 'bundler'
|
18
|
-
;T:gemfile_rspec_onlyI"Tsource 'https://rubygems.org'
|
13
|
+
source 'https://rubygems.org'
|
19
14
|
|
20
|
-
|
21
|
-
gem '
|
22
|
-
gem '
|
23
|
-
gem '
|
24
|
-
|
15
|
+
group :development do
|
16
|
+
gem 'rspec'
|
17
|
+
gem 'cucumber'
|
18
|
+
gem 'rake'
|
19
|
+
gem 'bundler'
|
20
|
+
gem 'yard'
|
21
|
+
end
|
22
|
+
|
23
|
+
group :production do
|
24
|
+
|
25
|
+
end
|
26
|
+
;T:gemfile_rspec_onlyI"�# ruby '~>2.0'
|
27
|
+
|
28
|
+
source 'https://rubygems.org'
|
29
|
+
|
30
|
+
group :development do
|
31
|
+
gem 'rspec'
|
32
|
+
gem 'rake'
|
33
|
+
gem 'bundler'
|
34
|
+
gem 'yard'
|
35
|
+
end
|
25
36
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
37
|
+
group :production do
|
38
|
+
|
39
|
+
end
|
40
|
+
;T:gemfile_cucumber_onlyI"�# ruby '~>2.0'
|
41
|
+
|
42
|
+
source 'https://rubygems.org'
|
43
|
+
|
44
|
+
group :development do
|
45
|
+
gem 'cucumber'
|
46
|
+
gem 'rake'
|
47
|
+
gem 'bundler'
|
48
|
+
gem 'yard'
|
49
|
+
end
|
50
|
+
|
51
|
+
group :production do
|
52
|
+
|
53
|
+
end
|
54
|
+
;T:gemfile_cleanI"�# ruby '~>2.0'
|
31
55
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
56
|
+
source 'https://rubygems.org'
|
57
|
+
|
58
|
+
group :development do
|
59
|
+
gem 'rake'
|
60
|
+
gem 'bundler'
|
61
|
+
gem 'yard'
|
62
|
+
end
|
63
|
+
|
64
|
+
group :production do
|
65
|
+
|
66
|
+
end
|
67
|
+
;T:
|
36
68
|
require 'rake/testtask'
|
37
|
-
#necessary for cucumber tests
|
69
|
+
# necessary for cucumber tests
|
38
70
|
require 'cucumber/rake/task'
|
39
|
-
#necessary for rspec tests
|
71
|
+
# necessary for rspec tests
|
40
72
|
require 'rspec/core/rake_task'
|
73
|
+
# necessary for yardoc task
|
74
|
+
require 'yard'
|
41
75
|
|
42
76
|
#################TASKS#######################
|
43
77
|
|
44
|
-
#to execute minitest tests with `rake test`
|
78
|
+
# to execute minitest tests with `rake test`
|
45
79
|
Rake::TestTask.new do |t|
|
46
|
-
#search recursively under the folder test for files called test*. You may have to create the folder manually.
|
80
|
+
# search recursively under the folder test for files called test*. You may have to create the folder manually.
|
47
81
|
t.pattern = 'test/**/test*.rb'
|
48
82
|
end
|
49
83
|
|
50
|
-
#to execute cucumber tests with `rake cucumber`
|
84
|
+
# to execute cucumber tests with `rake cucumber`
|
51
85
|
Cucumber::Rake::Task.new
|
52
86
|
|
53
|
-
#to execute cucumber wip(work in progress) with 'rake cucumber_wip'. It will kick you if you are working in more than 3 scenarios
|
54
|
-
#remember to tag each wip scenarios with @wip above the Scenario keyword in the implicit *.feature
|
87
|
+
# to execute cucumber wip(work in progress) with 'rake cucumber_wip'. It will kick you if you are working in more than 3 scenarios
|
88
|
+
# remember to tag each wip scenarios with @wip above the Scenario keyword in the implicit *.feature
|
55
89
|
desc 'Executes cucumber wip'
|
56
90
|
task :cucumber_wip do
|
57
91
|
system('cucumber --format progress --color --wip --tags @wip:3')
|
58
92
|
end
|
59
93
|
|
60
|
-
#to execute all RSpec tests with `rake spec`
|
94
|
+
# to execute all RSpec tests with `rake spec`
|
61
95
|
RSpec::Core::RakeTask.new do |t|
|
62
|
-
#
|
96
|
+
# rspec options to run
|
63
97
|
t.rspec_opts = ['--color']
|
64
98
|
end
|
65
99
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
end
|
70
|
-
;T:rakefile_rspec_onlyI"7#necessary for rspec tests
|
100
|
+
# generate yard documentation
|
101
|
+
YARD::Rake::YardocTask.new {|t|}
|
102
|
+
;T:rakefile_rspec_onlyI"_# necessary for rspec tests
|
71
103
|
require 'rspec/core/rake_task'
|
104
|
+
# necessary for yardoc task
|
105
|
+
require 'yard'
|
72
106
|
|
73
107
|
#################TASKS#######################
|
74
108
|
|
75
|
-
#to execute all RSpec tests with `rake spec`
|
109
|
+
# to execute all RSpec tests with `rake spec`
|
76
110
|
RSpec::Core::RakeTask.new do |t|
|
77
|
-
#
|
111
|
+
# rspec options to run
|
78
112
|
t.rspec_opts = ['--color']
|
79
113
|
end
|
80
114
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
end
|
85
|
-
;T:rakefile_cucumber_onlyI"X#necessary for cucumber tests
|
115
|
+
# generate yard documentation
|
116
|
+
YARD::Rake::YardocTask.new {|t|}
|
117
|
+
;T:rakefile_cucumber_onlyI"�# necessary for cucumber tests
|
86
118
|
require 'cucumber/rake/task'
|
119
|
+
# necessary for yardoc task
|
120
|
+
require 'yard'
|
87
121
|
|
88
122
|
#################TASKS#######################
|
89
123
|
|
90
|
-
#to execute cucumber tests with `rake cucumber`
|
124
|
+
# to execute cucumber tests with `rake cucumber`
|
91
125
|
Cucumber::Rake::Task.new
|
92
126
|
|
93
|
-
#to execute cucumber wip(work in progress) with 'rake cucumber_wip'. It will kick you if you are working in more than 3 scenarios
|
94
|
-
#remember to tag each wip scenarios with @wip above the Scenario keyword in the implicit *.feature
|
127
|
+
# to execute cucumber wip(work in progress) with 'rake cucumber_wip'. It will kick you if you are working in more than 3 scenarios
|
128
|
+
# remember to tag each wip scenarios with @wip above the Scenario keyword in the implicit *.feature
|
95
129
|
desc 'Executes cucumber wip'
|
96
130
|
task :cucumber_wip do
|
97
131
|
system('cucumber --format progress --color --wip --tags @wip:3')
|
98
132
|
end
|
99
133
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
end
|
104
|
-
;T:rakefile_minitest_onlyI"�#necessary for minitest tests
|
134
|
+
# generate yard documentation
|
135
|
+
YARD::Rake::YardocTask.new {|t|}
|
136
|
+
;T:rakefile_minitest_onlyI"�# necessary for minitest tests
|
105
137
|
require 'rake/testtask'
|
138
|
+
# necessary for yardoc task
|
139
|
+
require 'yard'
|
106
140
|
|
107
141
|
#################TASKS#######################
|
108
142
|
|
109
|
-
#to execute minitest tests with `rake test`
|
143
|
+
# to execute minitest tests with `rake test`
|
110
144
|
Rake::TestTask.new do |t|
|
111
|
-
#search recursively under the folder test for files called test*. You may have to create the folder manually.
|
145
|
+
# search recursively under the folder test for files called test*. You may have to create the folder manually.
|
112
146
|
t.pattern = 'test/**/test*.rb'
|
113
147
|
end
|
114
148
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
;T:rakefile_cleanI"]#################TASKS#######################
|
149
|
+
# generate yard documentation
|
150
|
+
YARD::Rake::YardocTask.new {|t|}
|
151
|
+
;T:rakefile_cleanI"�# necessary for yardoc task
|
152
|
+
require 'yard'
|
120
153
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
154
|
+
#################TASKS#######################
|
155
|
+
|
156
|
+
# generate yard documentation
|
157
|
+
YARD::Rake::YardocTask.new {|t|}
|
158
|
+
;TI"README.md;TI"## name_of_the_project_upcased
|
159
|
+
;TI"CHANGELOG.md;TI"D# Changelog
|
160
|
+
All notable changes to this project will be documented in this file.
|
161
|
+
|
162
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
163
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
164
|
+
|
165
|
+
## [0.1.0] - current_date
|
166
|
+
### Added
|
167
|
+
- Pristine version.
|
125
168
|
;T
|
@@ -11,7 +11,7 @@ class ConstructorDeEsqueleto
|
|
11
11
|
SUBCARPETAS_CUCUMBER = %w{features features/support features/step_definitions}
|
12
12
|
SUBCARPETAS_MINITEST = %w{test}
|
13
13
|
SUBCARPETAS_FULL = %w{data share ext}
|
14
|
-
ARCHIVOS = %w{
|
14
|
+
ARCHIVOS = %w{CHANGELOG.md Gemfile Gemfile.lock LICENSE.md Rakefile README.md bin/proyect lib/proyect.rb}
|
15
15
|
ARCHIVOS_RSPEC = %w{spec/spec_helper.rb}
|
16
16
|
ARCHIVOS_CUCUMBER = %w{features/support/env.rb}
|
17
17
|
|
@@ -58,7 +58,6 @@ class ConstructorDeEsqueleto
|
|
58
58
|
when nil
|
59
59
|
crear_subcarpetas!(SUBCARPETAS_RSPEC)
|
60
60
|
crear_subcarpetas!(SUBCARPETAS_CUCUMBER)
|
61
|
-
else
|
62
61
|
end
|
63
62
|
# chequeo si el usuario quiere las carpetas extras
|
64
63
|
if ::COCOT.juzgador_de_argumentos.full then crear_subcarpetas!(SUBCARPETAS_FULL) end
|
@@ -103,7 +102,10 @@ class ConstructorDeEsqueleto
|
|
103
102
|
if(File.exist?(_nombre_del_archivo))
|
104
103
|
# existe, lo escribo
|
105
104
|
File.open(_nombre_del_archivo, 'w+') do |archivo|
|
106
|
-
|
105
|
+
content_to_write = contenido.gsub('name_of_the_proyect', @nombre_del_proyecto)
|
106
|
+
content_to_write.gsub!('name_of_the_project_upcased', @nombre_del_proyecto.upcase)
|
107
|
+
content_to_write.gsub!('current_date', Time.now.strftime('%Y-%m-%d'))
|
108
|
+
archivo.write(content_to_write)
|
107
109
|
end
|
108
110
|
end
|
109
111
|
end
|
@@ -13,7 +13,7 @@ STR
|
|
13
13
|
|
14
14
|
COCOT::CONTENIDO_DE_ARCHIVOS[:'features/support/env.rb'] = \
|
15
15
|
<<STR
|
16
|
-
#if you respect the convention of a Ruby proyect layout then the next lines are fixed
|
16
|
+
# if you respect the convention of a Ruby proyect layout then the next lines are fixed
|
17
17
|
$LOAD_PATH << File.expand_path('../../../lib', __FILE__)
|
18
18
|
require 'name_of_the_proyect'
|
19
19
|
STR
|
@@ -32,150 +32,201 @@ STR
|
|
32
32
|
|
33
33
|
COCOT::CONTENIDO_DE_ARCHIVOS[:gemfile] = \
|
34
34
|
<<STR
|
35
|
+
# ruby '~>2.0'
|
36
|
+
|
35
37
|
source 'https://rubygems.org'
|
36
38
|
|
37
|
-
|
38
|
-
gem '
|
39
|
-
gem '
|
40
|
-
gem '
|
41
|
-
gem 'bundler'
|
39
|
+
group :development do
|
40
|
+
gem 'rspec'
|
41
|
+
gem 'cucumber'
|
42
|
+
gem 'rake'
|
43
|
+
gem 'bundler'
|
44
|
+
gem 'yard'
|
45
|
+
end
|
46
|
+
|
47
|
+
group :production do
|
48
|
+
|
49
|
+
end
|
42
50
|
STR
|
43
51
|
|
44
52
|
COCOT::CONTENIDO_DE_ARCHIVOS[:gemfile_rspec_only] = \
|
45
53
|
<<STR
|
54
|
+
# ruby '~>2.0'
|
55
|
+
|
46
56
|
source 'https://rubygems.org'
|
47
57
|
|
48
|
-
|
49
|
-
gem '
|
50
|
-
gem '
|
51
|
-
gem 'bundler'
|
58
|
+
group :development do
|
59
|
+
gem 'rspec'
|
60
|
+
gem 'rake'
|
61
|
+
gem 'bundler'
|
62
|
+
gem 'yard'
|
63
|
+
end
|
64
|
+
|
65
|
+
group :production do
|
66
|
+
|
67
|
+
end
|
52
68
|
STR
|
53
69
|
|
54
70
|
COCOT::CONTENIDO_DE_ARCHIVOS[:gemfile_cucumber_only] = \
|
55
71
|
<<STR
|
72
|
+
# ruby '~>2.0'
|
73
|
+
|
56
74
|
source 'https://rubygems.org'
|
57
75
|
|
58
|
-
|
59
|
-
gem '
|
60
|
-
gem '
|
61
|
-
gem 'bundler'
|
76
|
+
group :development do
|
77
|
+
gem 'cucumber'
|
78
|
+
gem 'rake'
|
79
|
+
gem 'bundler'
|
80
|
+
gem 'yard'
|
81
|
+
end
|
82
|
+
|
83
|
+
group :production do
|
84
|
+
|
85
|
+
end
|
62
86
|
STR
|
63
87
|
|
64
88
|
COCOT::CONTENIDO_DE_ARCHIVOS[:gemfile_clean] = \
|
65
89
|
<<STR
|
90
|
+
# ruby '~>2.0'
|
91
|
+
|
66
92
|
source 'https://rubygems.org'
|
67
93
|
|
68
|
-
|
69
|
-
gem '
|
70
|
-
gem 'bundler'
|
94
|
+
group :development do
|
95
|
+
gem 'rake'
|
96
|
+
gem 'bundler'
|
97
|
+
gem 'yard'
|
98
|
+
end
|
99
|
+
|
100
|
+
group :production do
|
101
|
+
|
102
|
+
end
|
71
103
|
STR
|
72
104
|
|
73
105
|
COCOT::CONTENIDO_DE_ARCHIVOS[:rakefile] = \
|
74
106
|
<<STR
|
75
|
-
#necessary for minitest tests
|
107
|
+
# necessary for minitest tests
|
76
108
|
require 'rake/testtask'
|
77
|
-
#necessary for cucumber tests
|
109
|
+
# necessary for cucumber tests
|
78
110
|
require 'cucumber/rake/task'
|
79
|
-
#necessary for rspec tests
|
111
|
+
# necessary for rspec tests
|
80
112
|
require 'rspec/core/rake_task'
|
113
|
+
# necessary for yardoc task
|
114
|
+
require 'yard'
|
81
115
|
|
82
116
|
#################TASKS#######################
|
83
117
|
|
84
|
-
#to execute minitest tests with `rake test`
|
118
|
+
# to execute minitest tests with `rake test`
|
85
119
|
Rake::TestTask.new do |t|
|
86
|
-
#search recursively under the folder test for files called test*. You may have to create the folder manually.
|
120
|
+
# search recursively under the folder test for files called test*. You may have to create the folder manually.
|
87
121
|
t.pattern = 'test/**/test*.rb'
|
88
122
|
end
|
89
123
|
|
90
|
-
#to execute cucumber tests with `rake cucumber`
|
124
|
+
# to execute cucumber tests with `rake cucumber`
|
91
125
|
Cucumber::Rake::Task.new
|
92
126
|
|
93
|
-
#to execute cucumber wip(work in progress) with 'rake cucumber_wip'. It will kick you if you are working in more than 3 scenarios
|
94
|
-
#remember to tag each wip scenarios with @wip above the Scenario keyword in the implicit *.feature
|
127
|
+
# to execute cucumber wip(work in progress) with 'rake cucumber_wip'. It will kick you if you are working in more than 3 scenarios
|
128
|
+
# remember to tag each wip scenarios with @wip above the Scenario keyword in the implicit *.feature
|
95
129
|
desc 'Executes cucumber wip'
|
96
130
|
task :cucumber_wip do
|
97
131
|
system('cucumber --format progress --color --wip --tags @wip:3')
|
98
132
|
end
|
99
133
|
|
100
|
-
#to execute all RSpec tests with `rake spec`
|
134
|
+
# to execute all RSpec tests with `rake spec`
|
101
135
|
RSpec::Core::RakeTask.new do |t|
|
102
|
-
#
|
136
|
+
# rspec options to run
|
103
137
|
t.rspec_opts = ['--color']
|
104
138
|
end
|
105
139
|
|
106
|
-
|
107
|
-
|
108
|
-
system('rdoc --all --tab-width=1 --force-output --main="ReadMe.md" --exclude="bin" --exclude="data" --exclude="ext" --exclude="share" --exclude="doc" --exclude="features" --exclude="spec" --exclude="cocot.gemspec" --exclude="Gemfile" --exclude="Gemfile.lock" --exclude="Rakefile"')
|
109
|
-
end
|
140
|
+
# generate yard documentation
|
141
|
+
YARD::Rake::YardocTask.new {|t|}
|
110
142
|
STR
|
111
143
|
|
112
144
|
COCOT::CONTENIDO_DE_ARCHIVOS[:rakefile_rspec_only] = \
|
113
145
|
<<STR
|
114
|
-
#necessary for rspec tests
|
146
|
+
# necessary for rspec tests
|
115
147
|
require 'rspec/core/rake_task'
|
148
|
+
# necessary for yardoc task
|
149
|
+
require 'yard'
|
116
150
|
|
117
151
|
#################TASKS#######################
|
118
152
|
|
119
|
-
#to execute all RSpec tests with `rake spec`
|
153
|
+
# to execute all RSpec tests with `rake spec`
|
120
154
|
RSpec::Core::RakeTask.new do |t|
|
121
|
-
#
|
155
|
+
# rspec options to run
|
122
156
|
t.rspec_opts = ['--color']
|
123
157
|
end
|
124
158
|
|
125
|
-
|
126
|
-
|
127
|
-
system('rdoc --all --tab-width=1 --force-output --main="ReadMe.md" --exclude="bin" --exclude="data" --exclude="ext" --exclude="share" --exclude="doc" --exclude="spec" --exclude="cocot.gemspec" --exclude="Gemfile" --exclude="Gemfile.lock" --exclude="Rakefile"')
|
128
|
-
end
|
159
|
+
# generate yard documentation
|
160
|
+
YARD::Rake::YardocTask.new {|t|}
|
129
161
|
STR
|
130
162
|
|
131
163
|
COCOT::CONTENIDO_DE_ARCHIVOS[:rakefile_cucumber_only] = \
|
132
164
|
<<STR
|
133
|
-
#necessary for cucumber tests
|
165
|
+
# necessary for cucumber tests
|
134
166
|
require 'cucumber/rake/task'
|
167
|
+
# necessary for yardoc task
|
168
|
+
require 'yard'
|
135
169
|
|
136
170
|
#################TASKS#######################
|
137
171
|
|
138
|
-
#to execute cucumber tests with `rake cucumber`
|
172
|
+
# to execute cucumber tests with `rake cucumber`
|
139
173
|
Cucumber::Rake::Task.new
|
140
174
|
|
141
|
-
#to execute cucumber wip(work in progress) with 'rake cucumber_wip'. It will kick you if you are working in more than 3 scenarios
|
142
|
-
#remember to tag each wip scenarios with @wip above the Scenario keyword in the implicit *.feature
|
175
|
+
# to execute cucumber wip(work in progress) with 'rake cucumber_wip'. It will kick you if you are working in more than 3 scenarios
|
176
|
+
# remember to tag each wip scenarios with @wip above the Scenario keyword in the implicit *.feature
|
143
177
|
desc 'Executes cucumber wip'
|
144
178
|
task :cucumber_wip do
|
145
179
|
system('cucumber --format progress --color --wip --tags @wip:3')
|
146
180
|
end
|
147
181
|
|
148
|
-
|
149
|
-
|
150
|
-
system('rdoc --all --tab-width=1 --force-output --main="ReadMe.md" --exclude="bin" --exclude="data" --exclude="ext" --exclude="share" --exclude="doc" --exclude="features" --exclude="cocot.gemspec" --exclude="Gemfile" --exclude="Gemfile.lock" --exclude="Rakefile"')
|
151
|
-
end
|
182
|
+
# generate yard documentation
|
183
|
+
YARD::Rake::YardocTask.new {|t|}
|
152
184
|
STR
|
153
185
|
|
154
186
|
COCOT::CONTENIDO_DE_ARCHIVOS[:rakefile_minitest_only] = \
|
155
187
|
<<STR
|
156
|
-
#necessary for minitest tests
|
188
|
+
# necessary for minitest tests
|
157
189
|
require 'rake/testtask'
|
190
|
+
# necessary for yardoc task
|
191
|
+
require 'yard'
|
158
192
|
|
159
193
|
#################TASKS#######################
|
160
194
|
|
161
|
-
#to execute minitest tests with `rake test`
|
195
|
+
# to execute minitest tests with `rake test`
|
162
196
|
Rake::TestTask.new do |t|
|
163
|
-
#search recursively under the folder test for files called test*. You may have to create the folder manually.
|
197
|
+
# search recursively under the folder test for files called test*. You may have to create the folder manually.
|
164
198
|
t.pattern = 'test/**/test*.rb'
|
165
199
|
end
|
166
200
|
|
167
|
-
|
168
|
-
|
169
|
-
system('rdoc --all --tab-width=1 --force-output --main="ReadMe.md" --exclude="bin" --exclude="data" --exclude="ext" --exclude="share" --exclude="doc" --exclude="test" --exclude="cocot.gemspec" --exclude="Gemfile" --exclude="Gemfile.lock" --exclude="Rakefile"')
|
170
|
-
end
|
201
|
+
# generate yard documentation
|
202
|
+
YARD::Rake::YardocTask.new {|t|}
|
171
203
|
STR
|
172
204
|
|
173
205
|
COCOT::CONTENIDO_DE_ARCHIVOS[:rakefile_clean] = \
|
174
206
|
<<STR
|
207
|
+
# necessary for yardoc task
|
208
|
+
require 'yard'
|
209
|
+
|
175
210
|
#################TASKS#######################
|
176
211
|
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
212
|
+
# generate yard documentation
|
213
|
+
YARD::Rake::YardocTask.new {|t|}
|
214
|
+
STR
|
215
|
+
|
216
|
+
COCOT::CONTENIDO_DE_ARCHIVOS['README.md'] = \
|
217
|
+
<<STR
|
218
|
+
# name_of_the_project_upcased
|
219
|
+
STR
|
220
|
+
|
221
|
+
COCOT::CONTENIDO_DE_ARCHIVOS['CHANGELOG.md'] = \
|
222
|
+
<<STR
|
223
|
+
# Changelog
|
224
|
+
All notable changes to this project will be documented in this file.
|
225
|
+
|
226
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
227
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
228
|
+
|
229
|
+
## [0.1.0] - current_date
|
230
|
+
### Added
|
231
|
+
- Pristine version.
|
181
232
|
STR
|
metadata
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
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:
|
11
|
+
date: 2018-09-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
|
15
15
|
proyect potentially BDD/TDD oriented. For that, it's supposed that will be used
|
16
|
-
Cucumber and/or RSpec(perhaps also minitest).
|
17
|
-
email:
|
16
|
+
Cucumber and/or RSpec(perhaps also minitest).
|
17
|
+
email: jorobuslab@gmail.com
|
18
18
|
executables:
|
19
19
|
- cocot
|
20
20
|
extensions: []
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
version: '0'
|
63
63
|
requirements: []
|
64
64
|
rubyforge_project:
|
65
|
-
rubygems_version: 2.2.
|
65
|
+
rubygems_version: 2.2.5
|
66
66
|
signing_key:
|
67
67
|
specification_version: 4
|
68
68
|
summary: Skeleton builder of a new proyect which could be developed with BDD/TDD.
|