piedesaint 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -10,6 +10,8 @@ It was born from the need of having the simplest web server possible (while stil
10
10
 
11
11
  It also serves directories (packaging them on the fly) as a single resource.
12
12
 
13
+ This is useful in the case of using chef-solo (combined with Vagrant, for instance, for testing) when database backups or internal git repositories or installation packages need to be transported to the client node but adding those packages to our cookbooks is not wanted or possible.
14
+
13
15
  ## Installation
14
16
 
15
17
  You can add this line to your application's Gemfile:
@@ -38,6 +40,7 @@ After this, whenever you want to serve the files/directories, just execute:
38
40
 
39
41
  $ sug
40
42
 
43
+
41
44
  ## License
42
45
 
43
46
  MIT
@@ -1,3 +1,3 @@
1
1
  module Piedesaint
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/piedesaint.rb CHANGED
@@ -144,7 +144,7 @@ module Piedesaint
144
144
  Gem::Package::TarWriter.new(tar) do |tarwriter|
145
145
  Dir[File.join(path, "**/{*,.*}")].each do |file|
146
146
  mode = File.stat(file).mode
147
- relative_file = file.sub /^#{Regexp::escape path}\/?/, ''
147
+ relative_file = File.join(File.basename(path), file.sub(/^#{Regexp::escape path}\/?/, ''))
148
148
 
149
149
  if File.directory? file
150
150
  next if [ ".", ".."].include? File.basename(file)
data/piedesaint.gemspec CHANGED
@@ -8,7 +8,11 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Piedesaint::VERSION
9
9
  spec.authors = ["Tnarik Innael"]
10
10
  spec.email = ["tnarik@gmail.com"]
11
- spec.description = %q{Drop-in web server}
11
+ spec.description = <<-EOF
12
+ Drop-in web server to serve files and tar'ed directories.
13
+ Use it as a tool to make available databse backups, installation packages that don't support automatic download, full GIT bare repositories, etc. for Chef Opscode cookbooks based on remote files.
14
+ Underlying it uses Puma, Basic Auth, SSL and SSL enforcing.
15
+ EOF
12
16
  spec.summary = %q{Drop-in web server to serve files and tar'ed directories}
13
17
  spec.homepage = "https://github.com/tnarik/piedesaint"
14
18
  spec.license = "MIT"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piedesaint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-01 00:00:00.000000000 Z
12
+ date: 2013-06-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -75,7 +75,15 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
- description: Drop-in web server
78
+ description: ! 'Drop-in web server to serve files and tar''ed directories.
79
+
80
+ Use it as a tool to make available databse backups, installation packages that don''t
81
+ support automatic download, full GIT bare repositories, etc. for Chef Opscode cookbooks
82
+ based on remote files.
83
+
84
+ Underlying it uses Puma, Basic Auth, SSL and SSL enforcing.
85
+
86
+ '
79
87
  email:
80
88
  - tnarik@gmail.com
81
89
  executables:
@@ -110,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
118
  version: '0'
111
119
  segments:
112
120
  - 0
113
- hash: -466208012132623450
121
+ hash: -1753294096530433718
114
122
  required_rubygems_version: !ruby/object:Gem::Requirement
115
123
  none: false
116
124
  requirements:
@@ -119,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
127
  version: '0'
120
128
  segments:
121
129
  - 0
122
- hash: -466208012132623450
130
+ hash: -1753294096530433718
123
131
  requirements: []
124
132
  rubyforge_project:
125
133
  rubygems_version: 1.8.25