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 +4 -4
- data/README.md +11 -2
- data/docs-img/quick_demo_inputs.md +1 -1
- data/lib/generators/rtrain/install_generator.rb +7 -3
- data/lib/generators/templates/home.html.erb +21 -0
- data/rtrain-0.1.9.gem +0 -0
- data/rtrain.gemspec +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3b42d6e440b459bde8f7e3e244aa4d6b73f96df
|
4
|
+
data.tar.gz: 90083365ca63b2d48a339052df1525611f2c47c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
**
|
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
|
-
**
|
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!
|
@@ -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
|
-
|
95
|
-
|
96
|
-
|
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.
|
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.
|
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:
|