dnnbundler 0.1.1 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecc72eb4ba5ecd789f5a32acede4f1e1eed52ef1
4
- data.tar.gz: 9821ccbf7e1fcee2de2b97ea5fe501f59093e324
3
+ metadata.gz: be1ded2536ad48400fd2401ca807e19951ba755d
4
+ data.tar.gz: ee84075cd70088d65c6e687f7937a7a4e11db7bb
5
5
  SHA512:
6
- metadata.gz: 82977794ab2a58803f2a540c4307b864e273100aa1b8749814a05a8e95d88e374653f71abaaf70d382b37b21152719043537034c7dbcd9e16b209fce2d4100ad
7
- data.tar.gz: 8342e42a4fd538526327311d75a25e9bb4bc3a9759fc3475d6bef51c6f5e0f112ba75d626111e38eb8871cf5b2d6f28e7136c9304d7474269238c4cbb898bf01
6
+ metadata.gz: b0f5e29a8205259daa1cf6fd3726ed50105ce50b77851f78e5eaa02bb631845634c0d2418afa5d7b897a69c8f651fe0370ee2f6044dd7240bfb5bab54a011f26
7
+ data.tar.gz: '08ad0537cc6972e9ae44531eb0952be26005e83d2f97e9ea270b31ad15c6ba9a2b8f4cb3da34ab78ada2e03b41253c19b956880e0440851a3edf091d2f898c8d'
data/README.md CHANGED
@@ -22,7 +22,31 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ To configure packaging create a json config with the following schema:
26
+
27
+ {
28
+ "entries": [
29
+ "path_to_file"
30
+ "path_to_directory",
31
+ {
32
+ "type": "file",
33
+ "name": "test.json"
34
+ },
35
+ {
36
+ "type": "zip",
37
+ "name": "test.zip",
38
+ "entries": [
39
+ "file",
40
+ "dir",
41
+ ...
42
+ ]
43
+ }
44
+ ],
45
+ "excludeEntries": [
46
+ ".DS_Store"
47
+ ],
48
+ "outFileName": "out.zip"
49
+ }
26
50
 
27
51
  ## Development
28
52
 
data/dnnbundler.gemspec CHANGED
@@ -9,9 +9,9 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Le0Michine"]
10
10
  spec.email = ["leomichine@gmail.com"]
11
11
 
12
- spec.summary = %q{Write a short summary, because Rubygems requires one.}
13
- spec.description = %q{Write a longer description or delete this line.}
14
- spec.homepage = "https://github.com"
12
+ spec.summary = %q{Creates zip packages for DNN.}
13
+ spec.description = %q{Creates zip packages with complex structure.}
14
+ spec.homepage = "https://github.com/Le0Michine/dnnbundler"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -1,3 +1,3 @@
1
1
  module Dnnbundler
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -14,7 +14,7 @@ module Dnnbundler
14
14
  # Zip the input directory.
15
15
  def write
16
16
  buffer = create_zip @entries
17
- File.open("newzip.zip", "wb") {|f| f.write buffer.string }
17
+ File.open(@output_file, "wb") {|f| f.write buffer.string }
18
18
  end
19
19
 
20
20
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dnnbundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Le0Michine
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '10.0'
83
- description: Write a longer description or delete this line.
83
+ description: Creates zip packages with complex structure.
84
84
  email:
85
85
  - leomichine@gmail.com
86
86
  executables:
@@ -104,7 +104,7 @@ files:
104
104
  - lib/dnnbundler/fileEntryType.rb
105
105
  - lib/dnnbundler/version.rb
106
106
  - lib/dnnbundler/zipFileGenerator.rb
107
- homepage: https://github.com
107
+ homepage: https://github.com/Le0Michine/dnnbundler
108
108
  licenses:
109
109
  - MIT
110
110
  metadata: {}
@@ -127,5 +127,5 @@ rubyforge_project:
127
127
  rubygems_version: 2.6.11
128
128
  signing_key:
129
129
  specification_version: 4
130
- summary: Write a short summary, because Rubygems requires one.
130
+ summary: Creates zip packages for DNN.
131
131
  test_files: []