r5 0.2.4 → 0.2.5
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 +4 -4
- data/README.md +7 -3
- data/lib/r5/installations/default.rb +1 -1
- data/lib/r5/recipes/bootstrap.rb +1 -1
- data/lib/r5/recipes/devise.rb +1 -1
- data/lib/r5/recipes/exception_notification.rb +1 -1
- data/lib/r5/recipes/lazy_high_charts.rb +1 -1
- data/lib/r5/recipes/wicked_pdf.rb +1 -1
- data/lib/r5/recipes/xlsx_support.rb +1 -1
- data/lib/r5/starter.rb +5 -0
- data/lib/r5/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30d34640d64b9724b651caf8ac499e786738db0b
|
4
|
+
data.tar.gz: 191decc6eed0211de6617b5f0065350201f32439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/lib/r5/recipes/bootstrap.rb
CHANGED
@@ -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
|
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"
|
data/lib/r5/recipes/devise.rb
CHANGED
@@ -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
|
7
|
+
run 'bundle install'
|
8
8
|
run 'rails generate wicked_pdf'
|
9
9
|
|
10
10
|
say "CHECK https://github.com/mileszs/wicked_pdf", :green
|
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