tunnelss 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -6,6 +6,8 @@ It's like the [tunnels gem](https://github.com/jugyo/tunnels) (sure, it's a fork
6
6
 
7
7
  So now you can finally have a not-far-from-real SSL connection with Pow, with a minimum of efforts!
8
8
 
9
+ ![](./readme-screenshot.png)
10
+
9
11
  ## The Magic
10
12
 
11
13
  Tunnelss is a mix between the [tunnels gem](https://github.com/jugyo/tunnels) and the [powssl script](https://gist.github.com/paulnicholson/2050941).
@@ -59,6 +61,13 @@ or
59
61
 
60
62
  ## History
61
63
 
64
+ ### 0.1.1
65
+
66
+ Fixed 2 issues:
67
+
68
+ - When generating the certificate again, the index was not incremented, preventing the certificate generation commands from running.
69
+ - `openssl.cnf` file was generated with wrong DNS domains, subdomains were OK but main domains were lacking the `.dev`.
70
+
62
71
  ### 0.1.0
63
72
 
64
73
  Initial release based on tunnels 1.2.2.
@@ -69,7 +69,8 @@ module Tunnelss::ConfigureWithPow
69
69
  def prepare_openssl_config
70
70
  Dir.mkdir("#{ca_dir}/newcerts") unless File.exists?("#{ca_dir}/newcerts")
71
71
  system "touch #{ca_dir}/index.txt"
72
- File.open("#{ca_dir}/serial", 'w') {|f| f.puts '01'}
72
+ serial = File.exists?("#{ca_dir}/serial") ? File.read("#{ca_dir}/serial").to_i + 1 : 1
73
+ File.open("#{ca_dir}/serial", 'w') {|f| f.puts ("%02d" % serial).to_s}
73
74
  build_openssl_config_file
74
75
  end
75
76
 
@@ -109,7 +110,7 @@ module Tunnelss::ConfigureWithPow
109
110
  end
110
111
 
111
112
  def pow_domains_str
112
- pow_domains.map {|d| "DNS:#{d},DNS:*.#{d}.dev"}.join(',')
113
+ pow_domains.map {|d| "DNS:#{d}.dev,DNS:*.#{d}.dev"}.join(',')
113
114
  end
114
115
 
115
116
  def pow_dir
@@ -1,3 +1,3 @@
1
1
  module Tunnelss
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
Binary file
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: tunnelss
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - rchampourlier
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-12 00:00:00.000000000 Z
12
+ date: 2013-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  version_requirements: !ruby/object:Gem::Requirement
@@ -108,6 +108,7 @@ files:
108
108
  - lib/tunnelss.rb
109
109
  - lib/tunnelss/configure_with_pow.rb
110
110
  - lib/tunnelss/version.rb
111
+ - readme-screenshot.png
111
112
  - script/console
112
113
  - spec/spec_helper.rb
113
114
  - spec/tunnelss_spec.rb