sportweb 0.3.2 → 0.3.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: bbdfb9023cce09cffd8875e81242b1ca50a7d3d7
4
- data.tar.gz: 875f70dabd3fcfa1810a96101b88c7e030c3117f
3
+ metadata.gz: 92c0a529599af0d0168efb349d241c89de9599a3
4
+ data.tar.gz: '080cad53cbe1a06540adb7b78dae4e2fe764f03f'
5
5
  SHA512:
6
- metadata.gz: 459a29714c2b420cdc3fbe19ddd7c8481fd1eaac6754a9886a7c478220524e693ec7dd0cce10cf5b7d51e8f956892d789ea47319f57b05db8e96d8e0f91ee155
7
- data.tar.gz: 833b60ee73dc605cff5ea95d67c8c03ac3430a025c7f3c5485091eb987f92ca7b1b4d0a3058e5ee6d8692a7c0238f8d7299bd5c008b4c9ce3a9a7ca21d05298f
6
+ metadata.gz: 7997ed96f8a20d8d6a2016f8d7499b3359a0981b9905f812c4e7286c5023dbf0bfb7b4d85bd785bd5d66377faf83b3a7e87ee1142a4778da61b128ed75a5823e
7
+ data.tar.gz: c2f5c866fcf962601da9743691ce8484efd38c55cd0fbcd0d12fc20bf20651724bbf5f00d2a6875c8d2fd5d54ca3e4734a420b1f34a85f60f6bd0057747f78fa
@@ -50,6 +50,18 @@ end # module SportDbAdmin
50
50
  # see https://gist.github.com/josevalim/1942658
51
51
  # and others
52
52
 
53
+
54
+ def mkrootwindowsfix( root )
55
+ puts "root: #{root}"
56
+ if root.start_with?( "C:\\" )
57
+ puts " use: #{root[2..-1]}"
58
+ root[2..-1] ## cut-of "C:\\"
59
+ else
60
+ root
61
+ end
62
+ end
63
+
64
+
53
65
  ### host app - no module - keep it simple
54
66
  class SportWebHost < Rails::Application
55
67
 
@@ -92,7 +104,6 @@ class SportWebHost < Rails::Application
92
104
  config.secret_key_base = "49837489qkuweoiuoqwehisuakshdjksadhaisdy78o34y138974xyqp9rmye8yrpiokeuioqwzyoiuxftoyqiuxrhm3iou1hrzmjk"
93
105
 
94
106
 
95
-
96
107
  #################################################
97
108
  # Enable the asset pipeline !!!!!!!!!!!!!!!!
98
109
  ## config.assets.enabled = true
@@ -124,17 +135,21 @@ class SportWebHost < Rails::Application
124
135
  config.public_file_server.enabled = true
125
136
 
126
137
 
127
- ## set public path to built-in public
128
- paths['public'] = "#{SportWebHost.root}/public"
129
- ## note: gets overwritten!? try again (later) after initialize - why? why not?
138
+ ## set public path to built-in public
139
+ puts "root (app): #{SportWebHost.root}"
140
+ puts "root (gem): #{SportWeb.root}"
141
+ puts "current: #{Dir.pwd}"
142
+
143
+ paths['public'] = "#{SportWeb.root}/public"
144
+ ## note: gets overwritten!? try again (later) after initialize - why? why not?
130
145
 
131
- ## test hello path
132
- paths['hello'] = "#{SportWebHost.root}/hello"
146
+ ## test hello path
147
+ paths['hello'] = "#{SportWeb.root}/hello"
133
148
 
134
- paths['log'] = File.expand_path( "./log/#{Rails.env}.log", Dir.pwd ) ## use working folder for logs
135
- ## log - check? is folder/dir or log file itself?
136
- ## >log<:
137
- ## expanded: ["C:/Sites/sportdb/sport.db.web/log/production.log"]
149
+ paths['log'] = File.expand_path( "./log/#{Rails.env}.log", mkrootwindowsfix(Dir.pwd) ) ## use working folder for logs
150
+ ## log - check? is folder/dir or log file itself?
151
+ ## >log<:
152
+ ## expanded: ["C:/Sites/sportdb/sport.db.web/log/production.log"]
138
153
  end
139
154
 
140
155
 
@@ -100,5 +100,7 @@ Rails.application.paths.keys.each do |k|
100
100
  puts "---"
101
101
  end
102
102
 
103
- Rails.application.paths['public'] = "#{SportWebHost.root}/public"
104
- puts "public: #{Rails.application.paths['public'].expanded}"
103
+
104
+ ##
105
+ ## Rails.application.paths['public'] = "#{mkrootwindowsfix(SportWeb.root)}/public"
106
+ ## puts "public: #{Rails.application.paths['public'].expanded}"
@@ -1,6 +1,6 @@
1
1
 
2
2
  module SportWeb
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.3'
4
4
 
5
5
  def self.banner
6
6
  "sportweb/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportweb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer