rtrain 0.1.9 → 0.2.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: db235c329dde075d10643fd9e23f1128a9f63098
4
- data.tar.gz: 657eece7824f1d6525236cf99e54dbccde036fde
3
+ metadata.gz: e3b42d6e440b459bde8f7e3e244aa4d6b73f96df
4
+ data.tar.gz: 90083365ca63b2d48a339052df1525611f2c47c1
5
5
  SHA512:
6
- metadata.gz: f4029e65bf22d9370daf8223ab9ab4daf33ba44c3f8840b5784aae4ba8c0603541eae243be3fc69207a926c01d761ef1b5bf8e5d3fdaa8d1ee79dfe43bfc5d1f
7
- data.tar.gz: bee66ea03760d7c924b557de36cd4c3da03fa88279529d8ff02b35338d1bc93ec207143f623993b8089df2a6cd70bd263510b5624d22f81026637ffa906181cb
6
+ metadata.gz: eb128348ff99c34d0db998bc7b737835b16077ccd6841e82eb5d1c128134341f6e0ed5d57ee568b81aa37eaea4aa1c923e8e69030e734f8b0b9376f0e8e4a443
7
+ data.tar.gz: 33ae444cb22f72c8bb965e1db2b7ac66a462f92d5493d511cfc0d60f403454213403740936fe8486566a84ad07b08db3f3b687ffee82b1c4a9627a4718356c6f
data/README.md CHANGED
@@ -7,6 +7,8 @@ Adds better CSS to scaffold, HTML navigation, more features are in the pipe, so
7
7
 
8
8
  How to use RTrain
9
9
 
10
+ _It is HIGHLY recommended that developers using RTrain execute these generator commands in sequence, and to always scaffold generate all models!!!_
11
+
10
12
  **Put this in your Gemfile**
11
13
  ```
12
14
  gem 'rtrain', '~> 0.1.6'
@@ -23,10 +25,17 @@ _Oooooooooooooo!_
23
25
 
24
26
  Turns your basic scaffold into something that's at least tolerable to look at!
25
27
 
26
- **New! Add a sweet nav bar!**
28
+ **Add a sweet nav bar!**
27
29
  ```
28
30
  rails generate rtrain:install --copy_css
29
31
  ```
30
32
  ![Ugh](http://i.imgur.com/hywhd0t.png)
31
33
 
32
- **That's it! Now your Rails application is equipped with an RTrain!**
34
+ **Add a home page controller and view, and set it as the root**
35
+ ```
36
+ rails generate rtrain:install --add_homepage
37
+ ```
38
+ ![Ugh](http://i.imgur.com/LuNqg3O.png)
39
+
40
+
41
+ More to come! Stay tuned!
@@ -19,7 +19,7 @@ Go back to the command line
19
19
  ```
20
20
  rails g scaffold Person name:string address:string phone:string email_address:string about:string
21
21
 
22
- rake db:migrate
22
+ rake db:create db:migrate
23
23
 
24
24
  rails g scaffold posts subject:string content:text
25
25
 
@@ -89,11 +89,15 @@ module Rtrain
89
89
  ##begin add main page
90
90
 
91
91
  if options[:add_homepage]
92
+ FileUtils.mkdir("app/views/main/")
93
+
92
94
  home_page = "../templates/home.html.erb"
93
95
  home_page_path = File.join(dir, home_page)
94
- FileUtils.mkdir("app/views/main")
95
- main_view = "app/views/main/"
96
- FileUtils.cp(home_page_path, main_view)
96
+ main_view_dir = "app/views/main/"
97
+ FileUtils.cp(home_page_path, main_view_dir)
98
+ # home = open("app/views/main/home.html.erb","w")
99
+ # home.write(home_page_content)
100
+ # home.close
97
101
 
98
102
  main = "../controllers/main_controller.rb"
99
103
  main_path = File.join(dir, main)
@@ -0,0 +1,21 @@
1
+ <div style="width:80%;left:10%;position:absolute">
2
+
3
+ <h1>Main Page</h1>
4
+ <h3>Hey there! Welcome to my new Rails app! I'm coding up something pretty cool, so check back soon!</h3>
5
+
6
+ <img width="100%" src="http://i.imgur.com/3qtQMoS.png">
7
+ <hr>
8
+ <h3>FILLER TEXT - PLEASE REPLACE UNLESS YOU LIKE HIPSTER IPSUM</h3>
9
+ <p>
10
+ Neutra farm-to-table schlitz slow-carb, pinterest pabst helvetica man bun PBR&B deep v salvia small batch brooklyn. Locavore swag artisan single-origin coffee. Neutra selvage waistcoat, pitchfork chia PBR&B thundercats skateboard meditation flannel chillwave organic pinterest. Keffiyeh freegan cray PBR&B mlkshk. Pop-up cronut freegan, cornhole venmo whatever brunch four dollar toast iPhone pitchfork chillwave. Banjo direct trade yr banh mi tacos. Bushwick photo booth next level typewriter squid ugh.
11
+ </p>
12
+ <p>
13
+ Pitchfork letterpress direct trade migas, gochujang chia austin crucifix green juice. Sustainable beard swag, kogi next level wolf hoodie mlkshk ethical thundercats DIY bicycle rights 8-bit gluten-free brooklyn. Narwhal humblebrag +1 keytar cardigan pickled. Synth fixie slow-carb letterpress echo park drinking vinegar. Lo-fi blog pitchfork sartorial, before they sold out bushwick vegan sustainable polaroid lomo kitsch craft beer. Pitchfork vinyl scenester trust fund, ethical food truck slow-carb. Church-key pop-up portland keffiyeh, flannel aesthetic ramps gentrify cronut.
14
+ </p>
15
+ <p>
16
+ Brooklyn pork belly farm-to-table, semiotics YOLO locavore tacos swag franzen hammock stumptown bushwick blue bottle next level. Shoreditch everyday carry pickled, etsy synth typewriter craft beer. Butcher pabst wayfarers, pitchfork kogi vegan chambray. Butcher master cleanse vinyl dreamcatcher, salvia irony 3 wolf moon whatever keffiyeh messenger bag typewriter. Kinfolk dreamcatcher chambray, ethical meggings kickstarter man braid swag seitan flannel fashion axe tilde readymade venmo. Yr pour-over cardigan organic, gastropub quinoa actually jean shorts typewriter bespoke. Selfies XOXO tacos plaid, brooklyn cred schlitz.
17
+ </p>
18
+ <p>
19
+ Truffaut farm-to-table raw denim lumbersexual. Kitsch biodiesel venmo kickstarter. Pour-over kombucha street art tumblr. Jean shorts banh mi flexitarian lo-fi letterpress shabby chic. Fingerstache meditation quinoa farm-to-table, kogi vice whatever etsy. Tousled organic brunch, deep v pour-over literally schlitz bitters mumblecore pug cray next level. Meggings vegan tattooed farm-to-table affogato.
20
+ </p>
21
+ </div>
data/rtrain-0.1.9.gem ADDED
Binary file
data/rtrain.gemspec CHANGED
@@ -2,13 +2,13 @@ $LOAD_PATH.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'rtrain'
5
- s.version = '0.1.9'
5
+ s.version = '0.2.0'
6
6
  s.date = '2016-05-19'
7
7
  s.summary = "Nicer Scaffolds,nav bar, static homepage for Rails"
8
8
  s.description = "Rails UI Booster - More info @ https://github.com/lynnd335/rtrain"
9
9
  s.authors = ["Dan Lynn"]
10
10
  s.email = 'lynnd335@gmail.com'
11
- s.files = Dir["**/*"]
11
+ s.files = Dir['**/*']
12
12
  s.homepage = 'http://rubygems.org/gems/rtrain'
13
13
  s.license = 'MIT'
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtrain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Lynn
@@ -44,6 +44,7 @@ files:
44
44
  - rtrain-0.1.6.gem
45
45
  - rtrain-0.1.7.gem
46
46
  - rtrain-0.1.8.gem
47
+ - rtrain-0.1.9.gem
47
48
  - rtrain.gemspec
48
49
  homepage: http://rubygems.org/gems/rtrain
49
50
  licenses: