couchpack 0.1.0 → 0.1.2

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.
Files changed (5) hide show
  1. data/Rakefile +1 -1
  2. data/VERSION +1 -1
  3. data/bin/couchpack +9 -0
  4. data/couchpack.gemspec +3 -3
  5. metadata +5 -5
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ Jeweler::Tasks.new do |gem|
16
16
  gem.homepage = "http://github.com/kmalakoff/couchpack-gem"
17
17
  gem.license = "MIT"
18
18
  gem.summary = %Q{Couch document packing utility}
19
- gem.description = %Q{Couch document packing utility}
19
+ gem.description = %Q{Use this gem to pack your couchdb document by stripping out the "_id" and "_rev" fields, and putting the "_rev" in a .version file. To be used with https://github.com/kmalakoff/phonegap-couchbase-xplatform}
20
20
  gem.email = "xmann.intl@gmail.com"
21
21
  gem.authors = ["Stephane Bellity", "Kevin Malakoff"]
22
22
  # Include your dependencies below. Runtime dependencies are required when using your gem,
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.2
data/bin/couchpack CHANGED
@@ -81,6 +81,15 @@ if error.nil?
81
81
  json.delete("_rev")
82
82
  json.delete("_id")
83
83
 
84
+ # make the directory
85
+ filename = File.basename(options[:outfile])
86
+ directoryname = File.dirname(options[:outfile])
87
+ puts "DIRECTORY: " + directoryname + "\n"
88
+ puts "FILENAME: " + filename + "\n"
89
+ if (directoryname != "")
90
+ FileUtils.mkdir_p(directoryname)
91
+ end
92
+
84
93
  f = open(options[:outfile] + ".json", "w")
85
94
  f.write(json.to_json)
86
95
  f.close
data/couchpack.gemspec CHANGED
@@ -5,13 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{couchpack}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stephane Bellity", "Kevin Malakoff"]
12
- s.date = %q{2011-06-15}
12
+ s.date = %q{2011-06-16}
13
13
  s.default_executable = %q{couchpack}
14
- s.description = %q{Couch document packing utility}
14
+ s.description = %q{Use this gem to pack your couchdb document by stripping out the "_id" and "_rev" fields, and putting the "_rev" in a .version file. To be used with https://github.com/kmalakoff/phonegap-couchbase-xplatform}
15
15
  s.email = %q{xmann.intl@gmail.com}
16
16
  s.executables = ["couchpack"]
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchpack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stephane Bellity
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-06-15 00:00:00 +02:00
19
+ date: 2011-06-16 00:00:00 +02:00
20
20
  default_executable: couchpack
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -95,7 +95,7 @@ dependencies:
95
95
  name: json
96
96
  version_requirements: *id005
97
97
  prerelease: false
98
- description: Couch document packing utility
98
+ description: Use this gem to pack your couchdb document by stripping out the "_id" and "_rev" fields, and putting the "_rev" in a .version file. To be used with https://github.com/kmalakoff/phonegap-couchbase-xplatform
99
99
  email: xmann.intl@gmail.com
100
100
  executables:
101
101
  - couchpack