railman 0.3.2 → 0.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cb28583cd2ba9c21a442f7703a193ee6ba1ba99
4
- data.tar.gz: 51a2dc73f1468a8a62a048d4a72c7a5a04c5ee02
3
+ metadata.gz: b100823312ce49c02322e16cfef41f73ef95155e
4
+ data.tar.gz: c9f22f759be405a465ddb0c9b3dd911207e40172
5
5
  SHA512:
6
- metadata.gz: f84d81daa20351d38c4ac60ad63f44689bdec8a517a2d2fdca0c4eb8208e8b16dd6c1b7356baefe667ba21024f1e878f949bf6bcd96bceff7decac7dd13e2977
7
- data.tar.gz: 610305af43a3432443e23a47190c2259f730ad8dc56bbce2195cbc17315ff8ce6bf2d9d59495a299e9a5fa352fecd56a419c43f6eb5f9dedc91095ddb4ff9253
6
+ metadata.gz: 40ccd083bf099d2fc00cdbffea89e455f4b4cc11a47c92b901122a777711435ac2b90fa3086fe62c6a2456229f9498e37b9eed3a16ca4694f74196381556ed81
7
+ data.tar.gz: f82ff80148f3a7225b059fcb7ed488e09eef38bd43938c6ff2cf80fd7ac6fde1b2e350ea5b41cbdeadc9ca5e9f11a16176879dbb2f468cd486de50889c479cb1
@@ -23,7 +23,7 @@ module Railman
23
23
  config = create_config(app_name)
24
24
  apply_rails_template(config)
25
25
  say "The rails application '#{app_name}' was successfully created.", :green
26
- say "Please check the settings in .env", :blue
26
+ say "Please check the settings in .env and run 'rake db:create' to create the local databases.", :blue
27
27
  end
28
28
 
29
29
  desc "upgrade APPNAME", "Upgrade the rails upplication named APPNAME"
@@ -32,7 +32,6 @@ module Railman
32
32
  config = load_config(app_name)
33
33
  apply_rails_template(config, false)
34
34
  say "The rails application '#{app_name}' was successfully upgraded.", :green
35
- say "Please check the settings in .env", :blue
36
35
  end
37
36
 
38
37
  private
@@ -77,11 +76,13 @@ module Railman
77
76
  gem_server_url: gem_server_url(:bitbucket))
78
77
  @rake_secret = "TODO: generate with: rake secret"
79
78
  @unicorn_behind_nginx = true
80
- directory "rails_app", @config.app_name
81
79
  if create
80
+ directory "rails_app", @config.app_name
82
81
  @rake_secret = Railman::Secret.generate_secret
83
82
  @unicorn_behind_nginx = false
84
83
  template "rails_app/.env.example.development.tt", "#{@config.app_name}/.env"
84
+ else
85
+ directory "rails_app", @config.app_name, exclude_pattern: /home_controller|index\.html\.erb/
85
86
  end
86
87
  save_config(@config)
87
88
  Dir.chdir @config.app_name do
@@ -1,3 +1,3 @@
1
1
  module Railman
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Jancev
@@ -172,7 +172,6 @@ files:
172
172
  - templates/rails_app/Gemfile
173
173
  - templates/rails_app/README.md
174
174
  - templates/rails_app/Rakefile
175
- - templates/rails_app/TODO.md
176
175
  - templates/rails_app/app/assets/images/.keep
177
176
  - templates/rails_app/app/assets/javascripts/application.js
178
177
  - templates/rails_app/app/assets/stylesheets/application.sass
@@ -1,15 +0,0 @@
1
- # TODO
2
-
3
- This file describes what you have to customize after you create a new rails application with railman
4
-
5
- ## .env
6
-
7
- Check your settings in .env (database user/password, smpt server, emails, ...)
8
-
9
- .env is gitignored. This is intended. You should create a local .env file on every server your deploy your rails application to, and modify the settings for that server.
10
-
11
- Try to keep all the application/server/environment specific settings, as well as all passwords here, as .env is not commited to git and exists only on a server or local user machine. This will also make future rails upgrades and changes in the configuration files less painful.
12
-
13
- ## create local database
14
-
15
- Run `rake db:create`