r5 0.2.4 → 0.2.5

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: 9a1eaf3b57459810152098f4af02c91499677633
4
- data.tar.gz: 420c8330dd7cddb7f8fb1187ae896c7697bb3e9e
3
+ metadata.gz: 30d34640d64b9724b651caf8ac499e786738db0b
4
+ data.tar.gz: 191decc6eed0211de6617b5f0065350201f32439
5
5
  SHA512:
6
- metadata.gz: 82dec5da99cc35906e5cc1f5f70db0df95e1a539c5654e34b2cd748d36145febda6b3ae91f992a3ee01d35200dfb1d8caa0126da3f92d8f4d80ae7e5da2c5a24
7
- data.tar.gz: 79d2c6f06e50542d2a08d48bc77a6cc32f36f287e0d1e63c7682f0980f873a4a264dbedc5249454f2ffd5ac08c09d57739f35f23591876656c00f157b7066876
6
+ metadata.gz: f4afb240095af0c1f6e644dced6bd6d82552b330a28c026dd79dffcad50316722703cb2550237d8c49bf853c223f058653aabcf744ed28638ebf34f4cb5b60e9
7
+ data.tar.gz: fcad3de34a8381392eda0aacd7ce62c5a47912e6b857c5fe5f11024c021aa51284015bad239900259e117fc417f45ebb2aa63456e972a8dc6f8fc88950a3ffa9
data/README.md CHANGED
@@ -30,6 +30,7 @@ Gem expects config file in home directory named .r5.yml, which should contain fo
30
30
  mysql:
31
31
  user: 'mysql_user_name'
32
32
  password: 'mysql_password'
33
+ host: localhost
33
34
 
34
35
  admin:
35
36
  login: 'default_admin_login'
@@ -41,18 +42,21 @@ notifier:
41
42
  email: 'email@for_exception.notifier'
42
43
 
43
44
  server:
44
- name: 'server_name_for_deploy_script'
45
+ name_prod: 'production_server_name_for_deploy_script'
46
+ name_stage: 'staging_server_name_for_deploy_script'
45
47
  port: 'ssh_port_number'
46
48
  user: 'server_user_for_deploy'
47
49
  ```
48
50
 
51
+ If you don't have such file at all, program will run wizard to guide you through creating it.
52
+
49
53
  Then you can create new application with r5 new name_of_app.
50
- Custom installations types can be specified in 'installations' directory.
54
+ Custom installations types can be specified in 'installations' directory. As for now you need to
55
+ create those custom installation directly in source code of r5.
51
56
 
52
57
  ## TODO
53
58
 
54
59
  1. provide deploy.sh for upload.rake task to actually work for others
55
- 2. Add testing for Rails presence before running installation
56
60
 
57
61
  ## Development
58
62
 
@@ -2,7 +2,7 @@
2
2
  copy '.ruby-version'
3
3
  gsub_file "#{@project_path}/.ruby-version", /version/, RUBY_VERSION
4
4
  apply 'recipes/gemfile.rb'
5
- run 'bundle check && bundle install'
5
+ run 'bundle install'
6
6
 
7
7
  copy 'config/initializers/html_helpers.rb'
8
8
  copy 'config/locales/cs.yml'
@@ -1,7 +1,7 @@
1
1
  add_gem 'bootstrap-generators'
2
2
  add_gem 'bootstrap-select-rails'
3
3
  add_gem 'scrollbar-rails'
4
- run 'bundle check && bundle install'
4
+ run 'bundle install'
5
5
  # TODO removing is probably not good idea when adding bootstrap to existing project
6
6
  remove 'app/views/layouts/application.html.erb'
7
7
  system "rails generate bootstrap:install"
@@ -2,7 +2,7 @@
2
2
  # TODO add checking for existing devise in project
3
3
  add_gem 'devise'
4
4
 
5
- run 'bundle check && bundle install'
5
+ run 'bundle install'
6
6
  run 'rails g devise:install'
7
7
  run 'rails g devise User'
8
8
 
@@ -1,6 +1,6 @@
1
1
  add_gem 'exception_notification'
2
2
 
3
- run 'bundle check && bundle install'
3
+ run 'bundle install'
4
4
 
5
5
  config_file = "#{@project_path}/config/initializers/exception_notification.rb"
6
6
 
@@ -1,6 +1,6 @@
1
1
  # TODO check for existence of it
2
2
  add_gem 'lazy_high_charts'
3
- run 'bundle check && bundle install'
3
+ run 'bundle install'
4
4
  insert_into_file "#{@project_path}/app/assets/javascripts/application.js",
5
5
  after: "//= require_tree .\n" do
6
6
  <<EOF
@@ -4,7 +4,7 @@ return say('Wicked_pdf already installed', :red) if File.exists?(wicked_pdf_conf
4
4
 
5
5
  add_gem 'wicked_pdf'
6
6
  add_gem 'wkhtmltopdf-binary'
7
- run 'bundle check && bundle install'
7
+ run 'bundle install'
8
8
  run 'rails generate wicked_pdf'
9
9
 
10
10
  say "CHECK https://github.com/mileszs/wicked_pdf", :green
@@ -1,6 +1,6 @@
1
1
  add_gem 'roo'
2
2
  add_gem "axlsx" # problems with newest version of RubyZip
3
- run 'bundle check && bundle install'
3
+ run 'bundle install'
4
4
  say 'For more information check:', :green
5
5
  say 'https://github.com/randym/axlsx'
6
6
  say 'https://github.com/roo-rb/roo'
data/lib/r5/starter.rb CHANGED
@@ -13,6 +13,11 @@ class Starter < Thor
13
13
  create_config_file
14
14
  end
15
15
 
16
+ if `rails -v` =~ /command not found/ or !(`rails -v` =~ /Rails 5.*/)
17
+ say "You didn't install Rails or have version lower than 5.0.0. Please install proper version.", :red
18
+ abort
19
+ end
20
+
16
21
  unless Config.check_settings.empty?
17
22
  say Config.check_settings, :green
18
23
  say 'Check structure of your config file - it seems you are missing required options mentioned above', :red
data/lib/r5/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module R5
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - mousse