rgentpl 1.2.6 → 2.0.0
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 +5 -5
- data/.gitignore +0 -11
- data/.rspec +0 -1
- data/.ruby-version +1 -1
- data/.solargraph.yml +14 -0
- data/.standard.yml +13 -0
- data/.yardopts +0 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +271 -0
- data/Guardfile +13 -41
- data/LICENSE.txt +0 -0
- data/README.md +2 -12
- data/Rakefile +7 -8
- data/bin/rgentpl +3 -3
- data/config/boot.rb +2 -2
- data/config/environment.rb +2 -2
- data/config/environments/development.rb +1 -1
- data/config/environments/production.rb +0 -0
- data/config/environments/test.rb +1 -1
- data/lib/rgentpl/boot/application.rb +0 -0
- data/lib/rgentpl/boot/initializer.rb +1 -1
- data/lib/rgentpl/command/base.rb +6 -6
- data/lib/rgentpl/command/generate.rb +11 -23
- data/lib/rgentpl/core/configuration.rb +5 -5
- data/lib/rgentpl/core_ext/string.rb +2 -2
- data/lib/rgentpl/exception/critical.rb +0 -0
- data/lib/rgentpl/version.rb +1 -1
- data/lib/rgentpl.rb +13 -15
- data/lib/tasks/rspec.rake +9 -0
- data/lib/tasks/rubycritic.rake +12 -0
- data/lib/tasks/standard.rake +5 -0
- data/lib/tasks/yard.rake +17 -0
- data/log/.gitignore +0 -0
- data/rgentpl.gemspec +44 -68
- data/spec/lib/rgentpl/boot/application_spec.rb +4 -6
- data/spec/lib/rgentpl/boot/initializer_spec.rb +8 -8
- data/spec/lib/rgentpl/command/base_spec.rb +8 -8
- data/spec/lib/rgentpl/command/generate_spec.rb +12 -12
- data/spec/lib/rgentpl/core/configuration_spec.rb +21 -22
- data/spec/lib/rgentpl/core_ext/string_spec.rb +7 -7
- data/spec/lib/rgentpl_spec.rb +10 -10
- data/spec/spec_helper.rb +12 -18
- data/spec/support/.gitkeep +0 -0
- data/src/%app_name%.gemspec.tt +29 -51
- data/src/.gitignore +0 -11
- data/src/.rspec +0 -1
- data/src/.ruby-version +1 -1
- data/src/.solargraph.yml +14 -0
- data/src/.standard.yml +13 -0
- data/src/.yardopts +0 -0
- data/src/Gemfile +2 -2
- data/src/Guardfile +13 -41
- data/src/LICENSE.txt +0 -0
- data/src/README.md.tt +3 -2
- data/src/Rakefile +7 -8
- data/src/config/boot.rb.tt +0 -0
- data/src/config/environment.rb.tt +1 -1
- data/src/config/environments/development.rb.tt +0 -0
- data/src/config/environments/production.rb +0 -0
- data/src/config/environments/test.rb +1 -1
- data/src/config/initializers/.gitignore +0 -0
- data/src/doc/.gitignore +0 -0
- data/src/lib/%app_name%/boot/application.rb.tt +0 -0
- data/src/lib/%app_name%/boot/initializer.rb.tt +0 -0
- data/src/lib/%app_name%/command/base.rb.tt +0 -0
- data/src/lib/%app_name%/core/configuration.rb.tt +0 -0
- data/src/lib/%app_name%/core_ext/string.rb.tt +0 -0
- data/src/lib/%app_name%/exception/critical.rb.tt +0 -0
- data/src/lib/%app_name%/version.rb.tt +0 -0
- data/src/lib/%app_name%.rb.tt +2 -4
- data/src/lib/tasks/rspec.rake +9 -0
- data/src/lib/tasks/rubycritic.rake +12 -0
- data/src/lib/tasks/standard.rake +5 -0
- data/src/lib/tasks/yard.rake +17 -0
- data/src/log/yard.log +0 -0
- data/src/spec/lib/%app_name%/boot/application_spec.rb.tt +2 -4
- data/src/spec/lib/%app_name%/boot/initializer_spec.rb.tt +1 -1
- data/src/spec/lib/%app_name%/command/base_spec.rb.tt +0 -0
- data/src/spec/lib/%app_name%/core/configuration_spec.rb.tt +6 -4
- data/src/spec/lib/%app_name%/core_ext/.gitignore +0 -0
- data/src/spec/lib/%app_name%/core_ext/string_spec.rb.tt +1 -1
- data/src/spec/lib/%app_name%/exception/.gitignore +0 -0
- data/src/spec/lib/%app_name%_spec.rb.tt +1 -1
- data/src/spec/spec_helper.rb +25 -0
- data/src/spec/support/.gitkeep +0 -0
- data/src/tmp/.gitkeep +0 -0
- data/tmp/.gitkeep +0 -0
- metadata +55 -377
- data/.cane +0 -7
- data/.document +0 -3
- data/.excellent.yml +0 -1
- data/.rspec-travis +0 -2
- data/.rubocop.yml +0 -32
- data/.ruby-gemset +0 -1
- data/.travis.yml +0 -17
- data/Capfile +0 -27
- data/ChangeLog.md +0 -141
- data/README.rdoc +0 -4
- data/ShortLog +0 -84
- data/config/deploy/production.rb +0 -9
- data/config/deploy/staging.rb +0 -9
- data/config/deploy.rb +0 -43
- data/lib/capistrano/tasks/copy_git.rake +0 -13
- data/src/.cane +0 -7
- data/src/.document +0 -3
- data/src/.excellent.yml +0 -1
- data/src/.rspec-travis +0 -2
- data/src/.rubocop.yml +0 -32
- data/src/.ruby-gemset.tt +0 -1
- data/src/.travis.yml +0 -17
- data/src/Capfile +0 -27
- data/src/ChangeLog.md +0 -0
- data/src/README.rdoc +0 -3
- data/src/ShortLog +0 -0
- data/src/config/deploy/production.rb +0 -9
- data/src/config/deploy/staging.rb +0 -9
- data/src/config/deploy.rb +0 -43
- data/src/lib/capistrano/tasks/copy_git.rake +0 -13
- data/src/spec/spec_helper.rb.tt +0 -29
- data/src/tasks/excellent.rake +0 -8
- data/src/tasks/quality.rake +0 -15
- data/src/tasks/rspec.rake +0 -9
- data/src/tasks/rubocop.rake +0 -10
- data/src/tasks/rubycritic.rake +0 -13
- data/src/tasks/sdoc.rake +0 -19
- data/src/tasks/yard.rake +0 -18
- data/tasks/excellent.rake +0 -8
- data/tasks/quality.rake +0 -15
- data/tasks/rspec.rake +0 -9
- data/tasks/rubocop.rake +0 -10
- data/tasks/rubycritic.rake +0 -13
- data/tasks/sdoc.rake +0 -19
- data/tasks/yard.rake +0 -18
data/.cane
DELETED
data/.document
DELETED
data/.excellent.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
AbcMetricMethodCheck: 30
|
data/.rspec-travis
DELETED
data/.rubocop.yml
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Base Rails configuration
|
|
2
|
-
AllCops:
|
|
3
|
-
Include:
|
|
4
|
-
- '**/Rakefile'
|
|
5
|
-
- config.ru
|
|
6
|
-
Exclude:
|
|
7
|
-
- db/**/*
|
|
8
|
-
- config/**/*
|
|
9
|
-
- tmp/**/*
|
|
10
|
-
|
|
11
|
-
# Avoid methods longer than 30 lines of code
|
|
12
|
-
MethodLength:
|
|
13
|
-
Max: 30
|
|
14
|
-
|
|
15
|
-
Encoding:
|
|
16
|
-
Enabled: false
|
|
17
|
-
|
|
18
|
-
LineLength:
|
|
19
|
-
Enabled: false
|
|
20
|
-
Max: 80
|
|
21
|
-
|
|
22
|
-
Metrics/AbcSize:
|
|
23
|
-
Max: 30
|
|
24
|
-
|
|
25
|
-
Style/AccessorMethodName:
|
|
26
|
-
Enabled: false
|
|
27
|
-
|
|
28
|
-
ClassLength:
|
|
29
|
-
Enabled: false
|
|
30
|
-
|
|
31
|
-
Documentation:
|
|
32
|
-
Enabled: false
|
data/.ruby-gemset
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
rgentpl
|
data/.travis.yml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- "2.1.5"
|
|
4
|
-
#before_script:
|
|
5
|
-
#- cp config/database.travis.yml config/database.yml
|
|
6
|
-
|
|
7
|
-
script:
|
|
8
|
-
#- RAILS_ENV=test bundle exec rake db:migrate --trace
|
|
9
|
-
#- bundle exec rake db:test:prepare
|
|
10
|
-
- bundle exec rake spec --rakefile .rspec-travis
|
|
11
|
-
|
|
12
|
-
branches:
|
|
13
|
-
only:
|
|
14
|
-
- master
|
|
15
|
-
|
|
16
|
-
#bundler_args: --deployment --without development production console debug
|
|
17
|
-
|
data/Capfile
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Load DSL and set up stages
|
|
2
|
-
require 'capistrano/setup'
|
|
3
|
-
|
|
4
|
-
# Include default deployment tasks
|
|
5
|
-
require 'capistrano/deploy'
|
|
6
|
-
|
|
7
|
-
# Include tasks from other gems included in your Gemfile
|
|
8
|
-
#
|
|
9
|
-
# For documentation on these, see for example:
|
|
10
|
-
#
|
|
11
|
-
# https://github.com/capistrano/rvm
|
|
12
|
-
# https://github.com/capistrano/rbenv
|
|
13
|
-
# https://github.com/capistrano/chruby
|
|
14
|
-
# https://github.com/capistrano/bundler
|
|
15
|
-
# https://github.com/capistrano/rails
|
|
16
|
-
# https://github.com/capistrano/passenger
|
|
17
|
-
#
|
|
18
|
-
require 'capistrano/rvm'
|
|
19
|
-
# require 'capistrano/rbenv'
|
|
20
|
-
# require 'capistrano/chruby'
|
|
21
|
-
require 'capistrano/bundler'
|
|
22
|
-
# require 'capistrano/rails/assets'
|
|
23
|
-
# require 'capistrano/rails/migrations'
|
|
24
|
-
# require 'capistrano/passenger'
|
|
25
|
-
|
|
26
|
-
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
|
27
|
-
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
data/ChangeLog.md
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
1.2.6 / 2015-05-19
|
|
3
|
-
==================
|
|
4
|
-
|
|
5
|
-
* Fix spec files in src.
|
|
6
|
-
|
|
7
|
-
1.2.5 / 2015-05-19
|
|
8
|
-
==================
|
|
9
|
-
|
|
10
|
-
* Update rubocop configuration file in src.
|
|
11
|
-
|
|
12
|
-
1.2.4.3 / 2015-05-19
|
|
13
|
-
====================
|
|
14
|
-
|
|
15
|
-
* Add gitkeep file to tmp directory in src structure.
|
|
16
|
-
|
|
17
|
-
1.2.4.2 / 2015-05-19
|
|
18
|
-
====================
|
|
19
|
-
|
|
20
|
-
* Add tmp directory to src (fix).
|
|
21
|
-
|
|
22
|
-
1.2.4.1 / 2015-05-19
|
|
23
|
-
====================
|
|
24
|
-
|
|
25
|
-
* Add tmp directory to src.
|
|
26
|
-
|
|
27
|
-
1.2.4 / 2015-05-19
|
|
28
|
-
==================
|
|
29
|
-
|
|
30
|
-
* Add a tmp file to keep tmp directory in version control.
|
|
31
|
-
|
|
32
|
-
1.2.3 / 2015-05-17
|
|
33
|
-
==================
|
|
34
|
-
|
|
35
|
-
* Update ruby version file.
|
|
36
|
-
|
|
37
|
-
1.2.2 / 2015-05-17
|
|
38
|
-
==================
|
|
39
|
-
|
|
40
|
-
* Update ruby dependencies.
|
|
41
|
-
* Update bundler version.
|
|
42
|
-
* Update code metrics.
|
|
43
|
-
|
|
44
|
-
1.2.1 / 2015-05-17
|
|
45
|
-
==================
|
|
46
|
-
|
|
47
|
-
* Clean code (deploy).
|
|
48
|
-
|
|
49
|
-
1.2.0 / 2015-05-17
|
|
50
|
-
==================
|
|
51
|
-
|
|
52
|
-
* Add deploy (raw).
|
|
53
|
-
|
|
54
|
-
1.1.0 / 2015-05-07
|
|
55
|
-
==================
|
|
56
|
-
|
|
57
|
-
* Delete Spork references.
|
|
58
|
-
* Fix code metrics.
|
|
59
|
-
* Fix yard recommendations.
|
|
60
|
-
* Update gitignore file to exclude empty spec support directory.
|
|
61
|
-
* Fix typo in base spec file.
|
|
62
|
-
* Delete old spec assertions file.
|
|
63
|
-
* Add rubycritic as a default task instead of rspec.
|
|
64
|
-
* Fix typo in configuration spec.
|
|
65
|
-
* Refactoring capture stdout specs (new RSpec 3.0 feature).
|
|
66
|
-
* Add package name to base thor class.
|
|
67
|
-
* Add executables in gemspec file.
|
|
68
|
-
* Specify ruby version on Gemfile.
|
|
69
|
-
|
|
70
|
-
1.0.9 / 2015-04-06
|
|
71
|
-
==================
|
|
72
|
-
|
|
73
|
-
* Update README.md with travis build info.
|
|
74
|
-
|
|
75
|
-
1.0.8 / 2015-04-06
|
|
76
|
-
==================
|
|
77
|
-
|
|
78
|
-
* Clean travis configuration file.
|
|
79
|
-
|
|
80
|
-
1.0.7 / 2015-04-06
|
|
81
|
-
==================
|
|
82
|
-
|
|
83
|
-
* Avoid bundle args in travis configuration file.
|
|
84
|
-
|
|
85
|
-
1.0.6 / 2015-04-06
|
|
86
|
-
==================
|
|
87
|
-
|
|
88
|
-
* Dummy update to launch travis.
|
|
89
|
-
|
|
90
|
-
1.0.5 / 2015-04-06
|
|
91
|
-
==================
|
|
92
|
-
|
|
93
|
-
* Add new version.
|
|
94
|
-
* Fix application loader spec.
|
|
95
|
-
* Update gems (metrics, tasks).
|
|
96
|
-
* Update new development and testing requirements.
|
|
97
|
-
|
|
98
|
-
1.0.4 / 2014-02-08
|
|
99
|
-
==================
|
|
100
|
-
|
|
101
|
-
* Fix commands.
|
|
102
|
-
|
|
103
|
-
1.0.3 / 2014-02-06
|
|
104
|
-
==================
|
|
105
|
-
|
|
106
|
-
* Update README file.
|
|
107
|
-
|
|
108
|
-
1.0.2 / 2014-02-03
|
|
109
|
-
==================
|
|
110
|
-
|
|
111
|
-
* Update gitignore file and dependencies.
|
|
112
|
-
|
|
113
|
-
1.0.1 / 2014-02-02
|
|
114
|
-
==================
|
|
115
|
-
|
|
116
|
-
* Add a gems directory.
|
|
117
|
-
* Update README files.
|
|
118
|
-
* Fix yard tags in documentation.
|
|
119
|
-
* Optimize code.
|
|
120
|
-
|
|
121
|
-
1.0.0 / 2014-02-02
|
|
122
|
-
==================
|
|
123
|
-
|
|
124
|
-
* Update README and LICENSE files.
|
|
125
|
-
* Refactor load library (not binary file use) use case.
|
|
126
|
-
* Renaming from base repo.
|
|
127
|
-
* First sending from ruby-template proyect.
|
|
128
|
-
* Follow Ruby convention to version file naming.
|
|
129
|
-
* Add initializers support.
|
|
130
|
-
* Add documentation.
|
|
131
|
-
* Add a base command.
|
|
132
|
-
* Optimize code.
|
|
133
|
-
* Adapt repo to new domain logic.
|
|
134
|
-
* Rename from template repo
|
|
135
|
-
* Clean repo.
|
|
136
|
-
* Delete tags task.
|
|
137
|
-
* Minor rubocop advices.
|
|
138
|
-
* Adapt testing environment.
|
|
139
|
-
Add tasks.
|
|
140
|
-
* Add Guardfile and fix spec_helper file.
|
|
141
|
-
* First sending.
|
data/README.rdoc
DELETED
data/ShortLog
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
Julio Antúnez Tarín (82):
|
|
2
|
-
First sending.
|
|
3
|
-
Update README and LICENSE files.
|
|
4
|
-
Bumped to version 1.0.0.
|
|
5
|
-
Merge branch 'release-1.0.0' into develop
|
|
6
|
-
Optimize code.
|
|
7
|
-
Fix yard tags in documentation.
|
|
8
|
-
Update README files.
|
|
9
|
-
Add a gems directory.
|
|
10
|
-
Merge branch 'feature-last-improvements' into develop
|
|
11
|
-
Bumped to version 1.0.0.
|
|
12
|
-
Merge branch 'release-1.0.1' into develop
|
|
13
|
-
Update gitignore file and dependencies.
|
|
14
|
-
Bumped to version 1.0.1.
|
|
15
|
-
Bumped to version 1.0.2.
|
|
16
|
-
Merge branch 'release-1.0.2' into develop
|
|
17
|
-
Update README file.
|
|
18
|
-
Bumped to version 1.0.3.
|
|
19
|
-
Merge branch 'release-1.0.3' into develop
|
|
20
|
-
Fix commands.
|
|
21
|
-
Bumped to version number 1.0.4.
|
|
22
|
-
Merge branch 'release-1.0.4' into develop
|
|
23
|
-
Update new development and testing requirements.
|
|
24
|
-
Update gems (metrics, tasks).
|
|
25
|
-
Fix application loader spec.
|
|
26
|
-
Add new version.
|
|
27
|
-
Merge branch 'feature-metrics' into develop
|
|
28
|
-
Bumped to version 1.0.5.
|
|
29
|
-
Merge branch 'release-1.0.5' into develop
|
|
30
|
-
Dummy update to launch travis.
|
|
31
|
-
Bumped to version 1.0.6.
|
|
32
|
-
Merge branch 'release-1.0.6' into develop
|
|
33
|
-
Avoid bundle args in travis configuration file.
|
|
34
|
-
Bumped to version 1.0.7.
|
|
35
|
-
Merge branch 'release-1.0.7' into develop
|
|
36
|
-
Clean travis configuration file.
|
|
37
|
-
Bumped to version 1.0.8.
|
|
38
|
-
Merge branch 'release-1.0.8' into develop
|
|
39
|
-
Update README.md with travis build info.
|
|
40
|
-
Bumped to version 1.0.9.
|
|
41
|
-
Merge branch 'release-1.0.9' into develop
|
|
42
|
-
Specify ruby version on Gemfile.
|
|
43
|
-
Add executables in gemspec file.
|
|
44
|
-
Add package name to base thor class.
|
|
45
|
-
Refactoring capture stdout specs (new RSpec 3.0 feature).
|
|
46
|
-
Fix typo in configuration spec.
|
|
47
|
-
Add rubycritic as a default task instead of rspec.
|
|
48
|
-
Delete old spec assertions file.
|
|
49
|
-
Fix typo in base spec file.
|
|
50
|
-
Update gitignore file to exclude empty spec support directory.
|
|
51
|
-
Fix yard recommendations.
|
|
52
|
-
Fix code metrics.
|
|
53
|
-
Delete Spork references.
|
|
54
|
-
Add deploy (raw).
|
|
55
|
-
Bumped to version number 1.2.0.
|
|
56
|
-
Merge branch 'release-1.2.0' into develop
|
|
57
|
-
Clean code (deploy).
|
|
58
|
-
Bumped to version 1.2.1.
|
|
59
|
-
Merge branch 'release-1.2.1' into develop
|
|
60
|
-
Update code metrics.
|
|
61
|
-
Update bundler version.
|
|
62
|
-
Update ruby dependencies.
|
|
63
|
-
Bumped to version number 1.2.2.
|
|
64
|
-
Merge branch 'release-1.2.2' into develop
|
|
65
|
-
Update ruby version file.
|
|
66
|
-
Bumped to version number 1.2.3.
|
|
67
|
-
Merge branch 'release-1.2.3' into develop
|
|
68
|
-
Add a tmp file to keep tmp directory in version control.
|
|
69
|
-
Bumped to version number 1.2.4.
|
|
70
|
-
Merge branch 'release-1.2.4' into develop
|
|
71
|
-
Add tmp directory to src.
|
|
72
|
-
Bumped to version number 1.2.4.1.
|
|
73
|
-
Merge branch 'release-1.2.4.1' into develop
|
|
74
|
-
Add tmp directory to src (fix).
|
|
75
|
-
Bumped to version number 1.2.4.1.
|
|
76
|
-
Merge branch 'release-1.2.4.2' into develop
|
|
77
|
-
Add gitkeep file to tmp directory in src structure.
|
|
78
|
-
Bumped to version number 1.2.4.3.
|
|
79
|
-
Merge branch 'release-1.2.4.3' into develop
|
|
80
|
-
Update rubocop configuration file in src.
|
|
81
|
-
Bumped to version number 1.2.5.
|
|
82
|
-
Merge branch 'release-1.2.5' into develop
|
|
83
|
-
Fix spec files in src.
|
|
84
|
-
|
data/config/deploy/production.rb
DELETED
data/config/deploy/staging.rb
DELETED
data/config/deploy.rb
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Application name
|
|
2
|
-
set :application, 'rgentpl'
|
|
3
|
-
|
|
4
|
-
# Git repo URL
|
|
5
|
-
set :repo_url, 'git@github.com:jatap/rgentpl.git'
|
|
6
|
-
|
|
7
|
-
# Stages
|
|
8
|
-
set :stages, %w(staging production)
|
|
9
|
-
set :default_stage, 'production'
|
|
10
|
-
|
|
11
|
-
# Default deploy_to directory is /var/www/my_app_name
|
|
12
|
-
set :deploy_to, -> { "/usr/local/share/console/#{fetch(:application)}" }
|
|
13
|
-
|
|
14
|
-
# Default value for :format is :pretty
|
|
15
|
-
set :format, :pretty
|
|
16
|
-
|
|
17
|
-
# Default value for :log_level is :debug
|
|
18
|
-
set :log_level, :debug
|
|
19
|
-
|
|
20
|
-
# Default value for :linked_files is [] (persists across deploys)
|
|
21
|
-
set :linked_files, fetch(:linked_files, [])
|
|
22
|
-
|
|
23
|
-
# Default value for linked_dirs is []
|
|
24
|
-
set :linked_dirs, fetch(:linked_dirs, [])
|
|
25
|
-
|
|
26
|
-
# Default value for default_env is {}
|
|
27
|
-
set :default_env, {}
|
|
28
|
-
|
|
29
|
-
# Default value for keep_releases is 5
|
|
30
|
-
set :keep_releases, 5
|
|
31
|
-
|
|
32
|
-
# Rvm
|
|
33
|
-
set :rvm_ruby_version, '2.2.1'
|
|
34
|
-
set :rvm_custom_path, '/usr/local/rvm'
|
|
35
|
-
|
|
36
|
-
# Bundle
|
|
37
|
-
set :bundle_env_variables, {}
|
|
38
|
-
set :bundle_gemfile, -> { release_path.join('Gemfile') }
|
|
39
|
-
set :bundle_dir, -> { shared_path.join('bundle') }
|
|
40
|
-
set :bundle_flags, '--quiet'
|
|
41
|
-
set :bundle_without, %w(development test).join(' ')
|
|
42
|
-
set :bundle_jobs, 4
|
|
43
|
-
set :bundle_roles, :all
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
namespace :deploy do
|
|
2
|
-
desc 'Copies .git folder (Capistrano 3. Bug?)'
|
|
3
|
-
task :copy_git do
|
|
4
|
-
on roles(:app) do
|
|
5
|
-
puts release_path
|
|
6
|
-
within release_path do
|
|
7
|
-
execute :cp, '-r', repo_path, '.git'
|
|
8
|
-
end
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
before 'bundler:install', 'deploy:copy_git'
|
|
13
|
-
end
|
data/src/.cane
DELETED
data/src/.document
DELETED
data/src/.excellent.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
AbcMetricMethodCheck: 30
|
data/src/.rspec-travis
DELETED
data/src/.rubocop.yml
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Base Rails configuration
|
|
2
|
-
AllCops:
|
|
3
|
-
Include:
|
|
4
|
-
- Rakefile
|
|
5
|
-
- config.ru
|
|
6
|
-
Exclude:
|
|
7
|
-
- db/**/*
|
|
8
|
-
- config/**/*
|
|
9
|
-
- tmp/**/*
|
|
10
|
-
|
|
11
|
-
# Avoid methods longer than 30 lines of code
|
|
12
|
-
MethodLength:
|
|
13
|
-
Max: 30
|
|
14
|
-
|
|
15
|
-
Encoding:
|
|
16
|
-
Enabled: false
|
|
17
|
-
|
|
18
|
-
LineLength:
|
|
19
|
-
Enabled: false
|
|
20
|
-
Max: 80
|
|
21
|
-
|
|
22
|
-
Metrics/AbcSize:
|
|
23
|
-
Max: 30
|
|
24
|
-
|
|
25
|
-
Style/AccessorMethodName:
|
|
26
|
-
Enabled: false
|
|
27
|
-
|
|
28
|
-
ClassLength:
|
|
29
|
-
Enabled: false
|
|
30
|
-
|
|
31
|
-
Documentation:
|
|
32
|
-
Enabled: false
|
data/src/.ruby-gemset.tt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<%= app_name %>
|
data/src/.travis.yml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- "2.1.5"
|
|
4
|
-
before_script:
|
|
5
|
-
- cp config/database.travis.yml config/database.yml
|
|
6
|
-
|
|
7
|
-
script:
|
|
8
|
-
- RAILS_ENV=test bundle exec rake db:migrate --trace
|
|
9
|
-
- bundle exec rake db:test:prepare
|
|
10
|
-
- bundle exec rake spec --rakefile .rspec-travis
|
|
11
|
-
|
|
12
|
-
branches:
|
|
13
|
-
only:
|
|
14
|
-
- master
|
|
15
|
-
|
|
16
|
-
bundler_args: --deployment --without development production console debug
|
|
17
|
-
|
data/src/Capfile
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Load DSL and set up stages
|
|
2
|
-
require 'capistrano/setup'
|
|
3
|
-
|
|
4
|
-
# Include default deployment tasks
|
|
5
|
-
require 'capistrano/deploy'
|
|
6
|
-
|
|
7
|
-
# Include tasks from other gems included in your Gemfile
|
|
8
|
-
#
|
|
9
|
-
# For documentation on these, see for example:
|
|
10
|
-
#
|
|
11
|
-
# https://github.com/capistrano/rvm
|
|
12
|
-
# https://github.com/capistrano/rbenv
|
|
13
|
-
# https://github.com/capistrano/chruby
|
|
14
|
-
# https://github.com/capistrano/bundler
|
|
15
|
-
# https://github.com/capistrano/rails
|
|
16
|
-
# https://github.com/capistrano/passenger
|
|
17
|
-
#
|
|
18
|
-
require 'capistrano/rvm'
|
|
19
|
-
# require 'capistrano/rbenv'
|
|
20
|
-
# require 'capistrano/chruby'
|
|
21
|
-
require 'capistrano/bundler'
|
|
22
|
-
# require 'capistrano/rails/assets'
|
|
23
|
-
# require 'capistrano/rails/migrations'
|
|
24
|
-
# require 'capistrano/passenger'
|
|
25
|
-
|
|
26
|
-
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
|
|
27
|
-
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
|
data/src/ChangeLog.md
DELETED
|
File without changes
|
data/src/README.rdoc
DELETED
data/src/ShortLog
DELETED
|
File without changes
|
data/src/config/deploy.rb
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Application name
|
|
2
|
-
set :application, 'rgentpl'
|
|
3
|
-
|
|
4
|
-
# Git repo URL
|
|
5
|
-
set :repo_url, 'git@github.com:example/<%= app_name %>.git'
|
|
6
|
-
|
|
7
|
-
# Stages
|
|
8
|
-
set :stages, %w(staging production)
|
|
9
|
-
set :default_stage, 'production'
|
|
10
|
-
|
|
11
|
-
# Default deploy_to directory is /var/www/my_app_name
|
|
12
|
-
set :deploy_to, -> { "/usr/local/share/console/#{fetch(:application)}" }
|
|
13
|
-
|
|
14
|
-
# Default value for :format is :pretty
|
|
15
|
-
set :format, :pretty
|
|
16
|
-
|
|
17
|
-
# Default value for :log_level is :debug
|
|
18
|
-
set :log_level, :debug
|
|
19
|
-
|
|
20
|
-
# Default value for :linked_files is [] (persists across deploys)
|
|
21
|
-
set :linked_files, fetch(:linked_files, [])
|
|
22
|
-
|
|
23
|
-
# Default value for linked_dirs is []
|
|
24
|
-
set :linked_dirs, fetch(:linked_dirs, [])
|
|
25
|
-
|
|
26
|
-
# Default value for default_env is {}
|
|
27
|
-
set :default_env, {}
|
|
28
|
-
|
|
29
|
-
# Default value for keep_releases is 5
|
|
30
|
-
set :keep_releases, 5
|
|
31
|
-
|
|
32
|
-
# Rvm
|
|
33
|
-
set :rvm_ruby_version, '2.2.1'
|
|
34
|
-
set :rvm_custom_path, '/usr/local/rvm'
|
|
35
|
-
|
|
36
|
-
# Bundle
|
|
37
|
-
set :bundle_env_variables, {}
|
|
38
|
-
set :bundle_gemfile, -> { release_path.join('Gemfile') }
|
|
39
|
-
set :bundle_dir, -> { shared_path.join('bundle') }
|
|
40
|
-
set :bundle_flags, '--quiet'
|
|
41
|
-
set :bundle_without, %w(development test).join(' ')
|
|
42
|
-
set :bundle_jobs, 4
|
|
43
|
-
set :bundle_roles, :all
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
namespace :deploy do
|
|
2
|
-
desc 'Copies .git folder (Capistrano 3. Bug?)'
|
|
3
|
-
task :copy_git do
|
|
4
|
-
on roles(:app) do
|
|
5
|
-
puts release_path
|
|
6
|
-
within release_path do
|
|
7
|
-
execute :cp, '-r', repo_path, '.git'
|
|
8
|
-
end
|
|
9
|
-
end
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
before 'bundler:install', 'deploy:copy_git'
|
|
13
|
-
end
|
data/src/spec/spec_helper.rb.tt
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
TEMPLATE_ENV = 'test' unless defined?(TEMPLATE_ENV)
|
|
2
|
-
|
|
3
|
-
require 'rubygems'
|
|
4
|
-
require 'pry'
|
|
5
|
-
|
|
6
|
-
ENV['RUBY_ENV'] ||= 'test'
|
|
7
|
-
|
|
8
|
-
unless ENV['DRB']
|
|
9
|
-
require 'simplecov'
|
|
10
|
-
require 'simplecov-gem-adapter'
|
|
11
|
-
SimpleCov.start 'gem'
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
require 'rspec'
|
|
15
|
-
require 'capybara'
|
|
16
|
-
|
|
17
|
-
require File.dirname(__FILE__) + '/../config/environment.rb'
|
|
18
|
-
|
|
19
|
-
# Load support files
|
|
20
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
|
21
|
-
|
|
22
|
-
# Include main application module
|
|
23
|
-
include <%= app_name.camelize %>
|
|
24
|
-
|
|
25
|
-
RSpec.configure do |config|
|
|
26
|
-
config.mock_with :rspec
|
|
27
|
-
|
|
28
|
-
config.order = 'random'
|
|
29
|
-
end
|
data/src/tasks/excellent.rake
DELETED
data/src/tasks/quality.rake
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
begin
|
|
2
|
-
require 'cane/rake_task'
|
|
3
|
-
require 'simplecov'
|
|
4
|
-
|
|
5
|
-
desc 'Run cane to check quality metrics'
|
|
6
|
-
Cane::RakeTask.new(:quality) do |cane|
|
|
7
|
-
cane.abc_max = 10
|
|
8
|
-
cane.add_threshold SimpleCov.result.covered_percent, :>=, 99
|
|
9
|
-
cane.no_style = true
|
|
10
|
-
cane.canefile = '.cane'
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
rescue LoadError
|
|
14
|
-
warn 'cane not available, quality task not provided.'
|
|
15
|
-
end
|
data/src/tasks/rspec.rake
DELETED