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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1dcda9ce862bcb132b0c0c81b738aaf15ede5c8
4
- data.tar.gz: 7008301db5e70a32d46a11daadff04c9b900e107
3
+ metadata.gz: e43f61b039e3091d7dde433070902770052c45e8
4
+ data.tar.gz: 224fa725ebbd719f48902cb5232b33d2b286220f
5
5
  SHA512:
6
- metadata.gz: 8af195447abd1f753197b458c0c27aeca97c2f1db6b24810093d0ded3e70d78340c5fa81dd3642e3707034d43454bff854a357b1d84630676f22110fa9af5708
7
- data.tar.gz: a7873e3ecf1c6678d0838b69d99e7027c543e241d6d309ec5e5f2c579b4f8409821b77b5f3d3319d3cffe14b9ff965e10fa540d0ccaa819952810140934317fd
6
+ metadata.gz: 1501d52be692599be89d05678bd51fe41ccc2d4b8ad10c4cfb0f2eb2647c74d4caef4fc06cb7adef91251ec586348507507c3429aba428aeb42bc1e7e1c44b46
7
+ data.tar.gz: c634213e81e8330a068aed221c2be4c509291bfe17d0e0cc865a15e55031c810d170bc1ed96b27c1aff74b4757a35efabb6a3582d811232275e2311e16f4db7c
@@ -15,7 +15,7 @@ RUN mkdir -p /app
15
15
  WORKDIR /app
16
16
 
17
17
  RUN gem install rails --version set_rails_version
18
- #COPY Gemfile Gemfile.lock ./
18
+ #COPY Gemfile Gemfile.lock
19
19
  #RUN gem install bundler && bundle install --jobs 20 --retry 5
20
20
 
21
21
  COPY . ./
@@ -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')
@@ -11,7 +11,7 @@ module Htcht
11
11
  def latest_rails
12
12
  # The rubygems.org API does allow you to get the latest version
13
13
  # of Rails but it is a private api (see above comment as well)
14
- '5.0.2'
14
+ '5.1.1'
15
15
  end
16
16
 
17
17
  end
@@ -1,3 +1,3 @@
1
1
  module Htcht
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.6"
3
3
  end
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.3
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-04-07 00:00:00.000000000 Z
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