r5 0.2.5.2 → 0.2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/r5/recipes/bootstrap.rb +7 -1
- data/lib/r5/recipes/devise.rb +2 -0
- data/lib/r5/starter.rb +2 -2
- data/lib/r5/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 389b64271dc389e35c76a11e6f05b8fcb1938dc9
|
4
|
+
data.tar.gz: d16f24b5be65afa55c00443071aab61476603b2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d84bc4b4556c1be7267cc66d73caf6318ca54096581c73a4db38770f71e48503fa45b8d87b7b993981447888749645424e2442504ba85210ae7b4b061349009
|
7
|
+
data.tar.gz: 79108dcea4e07aaf4dd2333ffe88081f9d231bedf758d3a15bebb8b4730a65249237d4f200efda361a2616fe26740ee8570171396037fdf6d730d787aa41a513
|
data/lib/r5/recipes/bootstrap.rb
CHANGED
@@ -5,5 +5,11 @@ 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"
|
8
|
+
sub "#{@project_path}/app/views/layouts/application.html.erb", "<%= favicon_link_tag 'favicon.png' %>", ""
|
8
9
|
sub "#{@project_path}/app/views/layouts/application.html.erb", /<title>.*?<\/title>/, "<title>#{@project_label}</title>"
|
9
|
-
sub "#{@project_path}/app/views/layouts/application.html.erb", /Project name/, @project_label
|
10
|
+
sub "#{@project_path}/app/views/layouts/application.html.erb", /Project name/, @project_label
|
11
|
+
system "yarn add jquery"
|
12
|
+
|
13
|
+
sub "#{@project_path}/app/assets/javascripts/application.js",
|
14
|
+
/require turbolinks/,
|
15
|
+
"require turbolinks \n //= require jquery \n //= require jquery-ui"
|
data/lib/r5/recipes/devise.rb
CHANGED
@@ -44,6 +44,8 @@ RUBY
|
|
44
44
|
|
45
45
|
end
|
46
46
|
|
47
|
+
gsub_file "#{@project_path}/app/models/user.rb", ', :registerable', ''
|
48
|
+
|
47
49
|
#TODO check for devise
|
48
50
|
user_migrate_filename = Dir.glob("#{@project_path}/db/migrate/*devise_create_users.rb").first
|
49
51
|
unless File.open(user_migrate_filename).read=~/string :login/
|
data/lib/r5/starter.rb
CHANGED
@@ -13,8 +13,8 @@ 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.
|
16
|
+
if `rails -v` =~ /command not found/ or !(`rails -v` =~ /Rails 5.1.*/)
|
17
|
+
say "You didn't install Rails or have version lower than 5.1 Please install proper version.", :red
|
18
18
|
abort
|
19
19
|
end
|
20
20
|
|
data/lib/r5/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: r5
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mousse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
148
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.
|
149
|
+
rubygems_version: 2.6.11
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: Rails generator using Thor gem for private usage mostly
|