rtrain 0.2.2 → 0.2.3
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 +4 -4
- data/lib/generators/rtrain/install_generator.rb +7 -5
- data/rtrain-0.2.2.gem +0 -0
- data/rtrain.gemspec +1 -1
- 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: 2b2e1b5c77d0f4bbc2eeaaec8d9994b0c1fd9cbf
|
|
4
|
+
data.tar.gz: ab7e0dcae428fb1176349e295dcb9327bb91b9f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62eb0f21075a2268cd70dcea86a8fd2d44f4dc0409d78b4d49e54ed20467852d43f9fd236900a86fcb35e017aca38dcd4b7b4c65d23773bcb2875828d5c8af12
|
|
7
|
+
data.tar.gz: 3072d75507acd583da52a56091bfea9827a551a552246074dec1905f15111690b847131f5f2dcbbcc51d2f5118571a7884386824edde74f0d461c0a88b16f18b
|
|
@@ -49,10 +49,12 @@ module Rtrain
|
|
|
49
49
|
##add lines to config/routes.rb for auth
|
|
50
50
|
routes_rb = open("config/routes.rb").read
|
|
51
51
|
if !routes_rb.match("#session routes here")
|
|
52
|
-
routes_rb[
|
|
52
|
+
routes_rb['#'] = "\n#session routes here\n#"
|
|
53
53
|
end
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
routes_rb_write = open("config/routes.rb", "w")
|
|
55
|
+
routes_rb_write.write(routes_rb)
|
|
56
|
+
routes_rb_write.close
|
|
57
|
+
##end
|
|
56
58
|
|
|
57
59
|
##Begin Copy CSS
|
|
58
60
|
|
|
@@ -104,7 +106,7 @@ module Rtrain
|
|
|
104
106
|
if rtrain_log_read.match('_nav_added')
|
|
105
107
|
old_menu = read_applayout.split("<ul id='menu'>")[1].split("</ul>")[0]
|
|
106
108
|
if rtrain_log_read.match('_main_view_controller_added')
|
|
107
|
-
list_items.unshift("
|
|
109
|
+
list_items.unshift("<li><%=link_to 'Main', '/'%></li>")
|
|
108
110
|
end
|
|
109
111
|
new_menu = list_items.join("\n\t\t")
|
|
110
112
|
read_applayout [old_menu] = new_menu
|
|
@@ -177,7 +179,7 @@ module Rtrain
|
|
|
177
179
|
|
|
178
180
|
|
|
179
181
|
if options[:add_user_sessions]
|
|
180
|
-
if !rtrain_log_read.match('
|
|
182
|
+
if !rtrain_log_read.match('_user_sessions_added')
|
|
181
183
|
|
|
182
184
|
FileUtils.mkdir("app/views/users/")
|
|
183
185
|
new_users = "../users/new.html.erb"
|
data/rtrain-0.2.2.gem
ADDED
|
Binary file
|
data/rtrain.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path("../lib", __FILE__)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'rtrain'
|
|
7
|
-
s.version = '0.2.
|
|
7
|
+
s.version = '0.2.3'
|
|
8
8
|
s.date = '2016-05-31'
|
|
9
9
|
s.summary = "Nicer Scaffolds,nav bar, static homepage for Rails"
|
|
10
10
|
s.description = "Rails UI Booster - More info @ https://github.com/lynnd335/rtrain"
|
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.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan Lynn
|
|
@@ -78,6 +78,7 @@ files:
|
|
|
78
78
|
- rtrain-0.1.9.gem
|
|
79
79
|
- rtrain-0.2.0.gem
|
|
80
80
|
- rtrain-0.2.1.gem
|
|
81
|
+
- rtrain-0.2.2.gem
|
|
81
82
|
- rtrain.gemspec
|
|
82
83
|
homepage: http://rubygems.org/gems/rtrain
|
|
83
84
|
licenses:
|