auser-suitcase 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +2 -2
- data/lib/suitcase/zipper.rb +2 -2
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/suitcase/zipper.rb
CHANGED
|
@@ -30,7 +30,7 @@ module Suitcase
|
|
|
30
30
|
def self.build_dir!(dirpath)
|
|
31
31
|
::FileUtils.mkdir_p dirpath unless ::File.directory? dirpath
|
|
32
32
|
items.each do |name, path|
|
|
33
|
-
if name.to_s =~ /
|
|
33
|
+
if name.to_s =~ /__p__string/
|
|
34
34
|
fpath = "#{dirpath}/#{path[:namespace]}/#{path[:name]}"
|
|
35
35
|
ensure_location_exists(::File.dirname(fpath))
|
|
36
36
|
::File.open(fpath, "w+") do |tf|
|
|
@@ -112,7 +112,7 @@ module Suitcase
|
|
|
112
112
|
end
|
|
113
113
|
|
|
114
114
|
def self.add_content_as(content="", filename="", namespace="files")
|
|
115
|
-
items.merge!({"
|
|
115
|
+
items.merge!({"__p__string#{filename}_#{namespace}".to_sym => {:name => ::File.basename(filename), :content => content, :namespace => namespace}})
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: auser-suitcase
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ari Lerner
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-04-
|
|
12
|
+
date: 2009-04-27 00:00:00 -07:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|