rtrain 0.2.2 → 0.2.3

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: 94f1bc600ff9450c89a489f4f547fa4957fad68e
4
- data.tar.gz: 3c7da35368abb22c13614a4451256d22caacf2df
3
+ metadata.gz: 2b2e1b5c77d0f4bbc2eeaaec8d9994b0c1fd9cbf
4
+ data.tar.gz: ab7e0dcae428fb1176349e295dcb9327bb91b9f5
5
5
  SHA512:
6
- metadata.gz: 4765bf65f7dd6a37ecf22a203a4013bdad59c5dc1381d5e9b5feba7341888285604e8acd4e055f66320d84f23c84df33abb0c82f75336dcad584e7d7c544af1b
7
- data.tar.gz: 7abad4ec8840712f3ac0d645c054590bf0c9187d60c50a0980b7f7b9dadf533a4baa1b9076cc044e2cee8ee10dda334c7c34196b1a7c5906b293c45ef54af2ef
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[routes_rb.index('#')] = "\n#session routes here\n"
52
+ routes_rb['#'] = "\n#session routes here\n#"
53
53
  end
54
-
55
- ##end
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("<%=link_to 'Main', '/'%></li>")
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('_nav_added')
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.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.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: