johnhenry 1.0.18 → 1.0.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 717f1a43fe96d20de94037ac931e9eb1d8a3b962
4
- data.tar.gz: 798a61d8f93cb89c0b1c764212f0a168f31ff6f1
3
+ metadata.gz: 06ddbbd6c1bbf0e808b99e8e6950877e7917841a
4
+ data.tar.gz: 59255b27cb65ca1d153ee9ed6d3ae1356a67badf
5
5
  SHA512:
6
- metadata.gz: 3146c05c47d83b8dc5efdfaa97fe743d28381f56114b7c065d80b462f887fa08944490737945b2bc4665d2cd289b2b58e2d5bb58b4ba1ceebbd3d9601d983046
7
- data.tar.gz: 5521d076563c5b4e62418a5a9c79bb2196601ad2c4d33e3080646498316840e5caf3446c16aaf3dca204f222ac2819b9107cc067eb206b4d21002da0bfd7d9a5
6
+ metadata.gz: caf8f98c23c75b0e621d5b9683a52a290fd88fb343f225d45294f63c27d2efdaa798c18c721d4fd0075dad9bc141f5af3be786260f0b9a2131d9a8956f6021d9
7
+ data.tar.gz: ba627602f253d4341af5f3fde76d0fbe517beaaa80c03c41ba0686555ff0912f18ad6293f8b000b958efaf8b90b7dfe3d87eb742c2102fcfb9759019268350fe
data/README.md CHANGED
@@ -33,7 +33,10 @@ A brand new Rails 4 project with *just* JohnHenry is live at:
33
33
  This is exactly what you will end up with after installing.
34
34
 
35
35
  # Installation screencast
36
- [![Screenshot](https://raw.github.com/derwiki/johnhenry/master/youtube-johnhenry-installation.jpg)](http://www.youtube.com/watch?v=Tb-4UdGxzqU)
36
+ Using the install script makes the process very easy. If you're still not
37
+ convinced, watch this video of launching a brand new JohnHenry installation
38
+ in under three minutes:
39
+ [![Screenshot](https://raw.github.com/derwiki/johnhenry/master/youtube-johnhenry-installation.jpg)](http://www.youtube.com/watch?v=CkjvOgzmC1M)
37
40
 
38
41
  # Installation on Mac OS X
39
42
  #### .. and probably Linux
@@ -55,49 +58,16 @@ $ rails -v
55
58
  Rails 4.0.2
56
59
  ```
57
60
 
58
- 1. Create a new Rails project:
59
- `rails new SampleProject && cd SampleProject`
60
-
61
- 1. Edit `Gemfile` and just below `rails` add:
62
- `gem 'johnhenry'`
63
-
64
- 1. Run `bundle` to update `Gemfile.lock`
65
-
66
- 1. Run JohnHenryRails installation script:
67
- `bundle exec rake john_henry:install`
68
-
69
- 1. Commit the generated changes:
70
-
71
- ```bash
72
- git add app config Gemfile*
73
- git rm app/views/layouts/application.html.erb
74
- git commit -m 'Install JohnHenryRails'
75
- ```
76
-
77
- 1. Install database migrations and run them
61
+ 1. Download and run the install script:
62
+ ## Basic Installation
63
+ This assumes that you have the following commands available to you on your
64
+ command line: `rails`, `bundle`, `git`, `heroku`.
78
65
  ```bash
79
- bundle exec rake john_henry:install:migrations
80
- bundle exec rake db:migrate
81
- git add db && git commit -m 'Add initial migrations and schema.rb'
66
+ export projectname="MyWebSiteName"
67
+ curl https://raw.github.com/derwiki/johnhenry/master/install.sh | bash -
82
68
  ```
83
-
84
- 1. Try the server locally:
85
- ```bash
86
- bundle exec rails server
87
- ```
88
- and load `http://localhost:3000/` in your web browser of choice.
89
-
90
- 1. Create the Heroku instance:
91
- ```bash
92
- heroku create sampleproject # Heroku doesn't allow mixed case
93
- git push heroku master
94
- heroku run rake db:migrate
95
- heroku restart
96
- ```
97
-
98
- 1. Verify in your web browser: `http://sampleproject.herokuapp.com`
99
-
100
- Congratulations! You made something on the internet!
69
+ Congratulations, you've now made something on the internet! Be sure to tell
70
+ your mom.
101
71
 
102
72
  ## Extended / Optional Setup
103
73
  1. Set up Google Analytics. You can sign up at:
@@ -8,7 +8,7 @@ class JohnHenryUser < ActiveRecord::Base
8
8
 
9
9
  def guess_name_from_email
10
10
  s = email.split('@').first.try(:titleize)
11
- s.split(/[.+-]/).first
11
+ s.split(/[.+-]/).first.try(:gsub, /[0-9]*/, '')
12
12
  end
13
13
 
14
14
  private
@@ -1,3 +1,3 @@
1
1
  module JohnHenry
2
- VERSION = '1.0.18'
2
+ VERSION = '1.0.19'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  namespace :john_henry do
2
2
  desc 'Install dependencies and references.'
3
3
  task :install do
4
- Rails.logger = Logger.new(STDOUT)
4
+ Rails.logger = Logger.new(STDOUT) if Rails.env.development?
5
5
 
6
6
  quit_if_already_installed
7
7
  install_layout
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: johnhenry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Derewecki