htcht 0.1.3 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/htcht/cli/rails/Dockerfile +1 -1
- data/lib/htcht/cli/rails/rails.rb +2 -0
- data/lib/htcht/cli/rails/templates/api_build_files/.rubocop.yml +28 -0
- data/lib/htcht/cli/rails/templates/api_init_template.rb +2 -0
- data/lib/htcht/helpers/version_helpers.rb +1 -1
- data/lib/htcht/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e43f61b039e3091d7dde433070902770052c45e8
|
4
|
+
data.tar.gz: 224fa725ebbd719f48902cb5232b33d2b286220f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1501d52be692599be89d05678bd51fe41ccc2d4b8ad10c4cfb0f2eb2647c74d4caef4fc06cb7adef91251ec586348507507c3429aba428aeb42bc1e7e1c44b46
|
7
|
+
data.tar.gz: c634213e81e8330a068aed221c2be4c509291bfe17d0e0cc865a15e55031c810d170bc1ed96b27c1aff74b4757a35efabb6a3582d811232275e2311e16f4db7c
|
@@ -50,6 +50,7 @@ module Htcht
|
|
50
50
|
copy_file('templates/api_build_files/rails_helper.rb', "#{snake_name}/build_files/rails_helper.rb")
|
51
51
|
copy_file('templates/api_build_files/seeds.rb', "#{snake_name}/build_files/seeds.rb")
|
52
52
|
copy_file('templates/api_build_files/active_model_serializers.rb', "#{snake_name}/build_files/active_model_serializers.rb")
|
53
|
+
copy_file('templates/api_build_files/.rubocop.yml', "#{snake_name}/build_files/.rubocop.yml")
|
53
54
|
rails_new_command.concat(' -m api_init_template.rb -T')
|
54
55
|
elsif options[:init]
|
55
56
|
puts "--init must be used with --api for now."
|
@@ -107,6 +108,7 @@ module Htcht
|
|
107
108
|
gsub_file('Dockerfile', "RUN gem install rails", '#RUN gem install rails')
|
108
109
|
gsub_file('Dockerfile', '#COPY Gemfile Gemfile.lock ./', 'COPY Gemfile Gemfile.lock ./')
|
109
110
|
gsub_file('Dockerfile', '#RUN gem install bundler && bundle install --jobs 20 --retry 5', 'RUN gem install bundler && bundle install --jobs 20 --retry 5')
|
111
|
+
run("docker rmi #{appname.downcase}_app -f")
|
110
112
|
run('docker-compose build')
|
111
113
|
|
112
114
|
run('docker-compose run app rake db:create')
|
@@ -0,0 +1,28 @@
|
|
1
|
+
Style/FrozenStringLiteralComment:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Style/Documentation:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
Lint/AssignmentInCondition:
|
8
|
+
Exclude:
|
9
|
+
- 'bin/spring'
|
10
|
+
|
11
|
+
Metrics/BlockLength:
|
12
|
+
Exclude:
|
13
|
+
- 'config/**/*'
|
14
|
+
- 'db/**/*'
|
15
|
+
- 'spec/**/*'
|
16
|
+
|
17
|
+
Metrics/LineLength:
|
18
|
+
Exclude:
|
19
|
+
- 'config/**/*'
|
20
|
+
- 'db/**/*'
|
21
|
+
- 'spec/**/*'
|
22
|
+
- 'Rakefile'
|
23
|
+
|
24
|
+
Metrics/MethodLength:
|
25
|
+
Exclude:
|
26
|
+
- 'config/**/*'
|
27
|
+
- 'db/**/*'
|
28
|
+
- 'spec/**/*'
|
@@ -34,6 +34,7 @@ gem_group :development do
|
|
34
34
|
gem 'listen'
|
35
35
|
gem 'spring'
|
36
36
|
gem 'spring-watcher-listen'
|
37
|
+
gem 'rubocop', require: false
|
37
38
|
end
|
38
39
|
|
39
40
|
gem_group :test do
|
@@ -115,6 +116,7 @@ copy_file('build_files/rails_helper.rb', 'spec/rails_helper.rb')
|
|
115
116
|
copy_file('build_files/shoulda_matchers.rb', 'spec/support/shoulda_matchers.rb')
|
116
117
|
copy_file('build_files/seeds.rb', 'db/seeds.rb')
|
117
118
|
copy_file('build_files/active_model_serializers.rb', 'config/initializers/active_model_serializers.rb')
|
119
|
+
copy_file('build_files/.rubocop.yml', '.rubocop.yml')
|
118
120
|
empty_directory('db/seeds')
|
119
121
|
empty_directory('db/seeds/development')
|
120
122
|
empty_directory('db/seeds/test')
|
data/lib/htcht/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htcht
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trim Agency
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- lib/htcht/cli/rails/Dockerfile
|
119
119
|
- lib/htcht/cli/rails/docker-compose.yml
|
120
120
|
- lib/htcht/cli/rails/rails.rb
|
121
|
+
- lib/htcht/cli/rails/templates/api_build_files/.rubocop.yml
|
121
122
|
- lib/htcht/cli/rails/templates/api_build_files/active_model_serializers.rb
|
122
123
|
- lib/htcht/cli/rails/templates/api_build_files/email_validator.rb
|
123
124
|
- lib/htcht/cli/rails/templates/api_build_files/factory_girl.rb
|