nginx_config_generator 1.4 → 1.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'echoe'
3
3
 
4
- Echoe.new('nginx_config_generator', '1.4') do |p|
4
+ Echoe.new('nginx_config_generator', '1.5') do |p|
5
5
  p.rubyforge_name = 'err'
6
6
  p.author = 'Chris Wanstrath'
7
7
  p.email = 'chris@ozmm.org'
data/lib/nginx.erb CHANGED
@@ -112,7 +112,7 @@ http {
112
112
 
113
113
  <% if site['no_www'] %>
114
114
  if ($host ~* "www") {
115
- rewrite ^(.*)$ http://<%= site['server_name'].split.first %>$1 permanent;
115
+ rewrite ^(.*)$ http://<%= site['server_name'].split.first.sub(/^\./, '') %>$1 permanent;
116
116
  break;
117
117
  }
118
118
  <% end %>
@@ -1,11 +1,11 @@
1
1
 
2
- # Gem::Specification for Nginx_config_generator-1.4
2
+ # Gem::Specification for Nginx_config_generator-1.5
3
3
  # Originally generated by Echoe
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{nginx_config_generator}
7
- s.version = "1.4"
8
- s.date = %q{2007-10-16}
7
+ s.version = "1.5"
8
+ s.date = %q{2007-10-24}
9
9
  s.summary = %q{}
10
10
  s.email = %q{chris@ozmm.org}
11
11
  s.homepage = %q{http://require.errtheblog.com/projects}
@@ -24,7 +24,7 @@ end
24
24
  # require 'rubygems'
25
25
  # require 'echoe'
26
26
  #
27
- # Echoe.new('nginx_config_generator', '1.4') do |p|
27
+ # Echoe.new('nginx_config_generator', '1.5') do |p|
28
28
  # p.rubyforge_name = 'err'
29
29
  # p.author = 'Chris Wanstrath'
30
30
  # p.email = 'chris@ozmm.org'
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: nginx_config_generator
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.4"
7
- date: 2007-10-16 00:00:00 -07:00
6
+ version: "1.5"
7
+ date: 2007-10-24 00:00:00 -07:00
8
8
  summary: ""
9
9
  require_paths:
10
10
  - lib