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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26550595f90b7f41ecbdbdf365551a9425e0ad78
4
- data.tar.gz: 2955c93cfea238c2fa006341ea2c900240376196
3
+ metadata.gz: 389b64271dc389e35c76a11e6f05b8fcb1938dc9
4
+ data.tar.gz: d16f24b5be65afa55c00443071aab61476603b2b
5
5
  SHA512:
6
- metadata.gz: c4f4c5f4ad3cd380971df462adb4d96c8d53f2c1e62fde59177bb181919c5b2ac23aede0c24d3ca11efb683d5aa9f3ccf9f93e46c5012cbde3ce456977ba3664
7
- data.tar.gz: 452d9a2be352275440e8a0b4a1f4cd873c9c9cf35cca38402559f06fbbc743c690df890f9c9711995fe69e77db17ae6930914b1a8383874796029e5579209ad2
6
+ metadata.gz: 6d84bc4b4556c1be7267cc66d73caf6318ca54096581c73a4db38770f71e48503fa45b8d87b7b993981447888749645424e2442504ba85210ae7b4b061349009
7
+ data.tar.gz: 79108dcea4e07aaf4dd2333ffe88081f9d231bedf758d3a15bebb8b4730a65249237d4f200efda361a2616fe26740ee8570171396037fdf6d730d787aa41a513
@@ -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"
@@ -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.0.0. Please install proper version.", :red
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
@@ -1,3 +1,3 @@
1
1
  module R5
2
- VERSION = "0.2.5.2"
2
+ VERSION = "0.2.6.0"
3
3
  end
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.5.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: 2016-11-02 00:00:00.000000000 Z
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.5.1
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