react_rails_webpack 1.0.1 → 1.0.2

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: 2afcde60582db2cc8f2515626631b4487a623e52
4
- data.tar.gz: dd31b30aaf1daad94c2bb6d42ad03bf310bc0949
3
+ metadata.gz: 618d010d7af62ffe453c448a86c40697ea95116e
4
+ data.tar.gz: abc60819bca6eccabc901be4c51ac5811411d44d
5
5
  SHA512:
6
- metadata.gz: 541cd90bdfcede1cd55f82bb1b43901eb9af7db2fdc5f6fb0c00aec6daea50082306878765b43ecd040de91a19639263915331875db0f39753b33d28d75321e8
7
- data.tar.gz: 1f73ba6a30b9bab83c02c9f996e88ad44ec98e5b73c8def14f9831ade03e2b93db669cb37a9fe5143a06ceeda8852588eceb2c9dc910d6b4bd6d16ab83337917
6
+ metadata.gz: 82fdc5343baeab49e32d4368961ac4dbb17c8faa5f73df27672841a754a1a1b1e6fcfa9cbe30ba943af2f97e841ba1bf8b640fcaa5e65bcbfbc783b8230e4c54
7
+ data.tar.gz: 2daba1dd0443f54e1139cf01a692ce01d5f5465f068e14a93552960a50c8d01c2d7c71cf8823bce8dd47fdc3cd9ed575c6522ffa45aeeaeef512912378902f91
@@ -32,7 +32,13 @@ module ReactRailsWebpack
32
32
  end
33
33
 
34
34
  def print_next_steps
35
- puts "\n\nDone! Start your Rails server and go to localhost:3000/greeting to see your React/Rails integration in action!"
35
+ puts
36
+ puts "-" * `tput cols`.to_i # print line of dashes
37
+ puts
38
+ puts "Done! Start your Rails server and go to #{"localhost:3000/greeting".blue} to see your React/Rails integration in action!"
39
+ puts
40
+ puts "-" * `tput cols`.to_i # print line of dashes
41
+ puts
36
42
  end
37
43
  end
38
44
  end
@@ -1,4 +1,5 @@
1
1
  require 'rails/generators/base'
2
+ require 'colorize'
2
3
 
3
4
  module ReactRailsWebpack
4
5
  class InstallGenerator < Rails::Generators::Base
@@ -63,8 +64,15 @@ module ReactRailsWebpack
63
64
  end
64
65
 
65
66
  def print_reminders
66
- puts "\n\nDone! Now make sure you have node and npm installed, and then run the 'npm run install' and 'npm run build' commands to finish setting up."
67
- puts "Also, don't forget to set your hostname in the client/environment.json file. Instructions for this can be found here: https://github.com/neurodynamic/react_rails_webpack#setting-the-dev-server-hostname"
67
+ puts
68
+ puts "-" * `tput cols`.to_i # print line of dashes
69
+ puts
70
+ puts "Done! Now #{"make sure you have node and npm installed".red.bold}, and then #{"run the".red.bold} #{"npm run install".white.bold} #{"and".red.bold} #{"npm run build".white.bold} #{"commands".red.bold} to finish setting up."
71
+ puts
72
+ puts "Also, #{"don't forget to set your hostname".red.bold} in the #{"client/environment.json".white.bold} file. Instructions for this can be found here: #{"https://github.com/neurodynamic/react_rails_webpack#setting-the-dev-server-hostname".blue}"
73
+ puts
74
+ puts "-" * `tput cols`.to_i # print line of dashes
75
+ puts
68
76
  end
69
77
 
70
78
 
@@ -1,3 +1,3 @@
1
1
  module ReactRailsWebpack
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react_rails_webpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neurodynamic