rubypack 1.0.0 → 1.0.1
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 +4 -4
- data/README.md +4 -1
- data/lib/rubypack/builder.rb +1 -1
- data/lib/rubypack/bundler_controller.rb +2 -2
- data/lib/rubypack/rubypack_file.rb +1 -1
- data/lib/rubypack/version.rb +1 -1
- data/rubypack.gemspec +3 -2
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1643d283312bf9a5252d4c64dfc40e98159bbbe0
|
4
|
+
data.tar.gz: a41e70151492acba18ae7c2cc56de25e3a37628b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2676e5b9715aad2a76c2ed5981c26ea0d30f10abb8a67102d46c5cccec0290f6ed862be3d66b6f45c85e395ca13292b879d8dca1c7e5796865b7b349ef6387bd
|
7
|
+
data.tar.gz: fa072c36bbcfaa376a266920ffac91e16e169bcbba49ff29161a4189ca95a9bbcb9d05f6d47e10ff7c20b11e4e8c91b9bf8b49a2d820fa234e97b07e6ccc5e9a
|
data/README.md
CHANGED
@@ -22,7 +22,8 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
To build a package of your application, you need to define a new file named `.rubypack` on the root directory of your application.
|
24
24
|
|
25
|
-
The content of the
|
25
|
+
The content of the `.rubypack` file:
|
26
|
+
|
26
27
|
```ruby
|
27
28
|
name 'TestApp'
|
28
29
|
version '3.1'
|
@@ -31,6 +32,8 @@ exclude '*.log'
|
|
31
32
|
include 'js/node_modules/**/**'
|
32
33
|
```
|
33
34
|
|
35
|
+
Please note that if the first instruction among include/exclude is *include*, then the strategy to select the files will start with zero files and start applying the filters. However if the first instruction is a *exclude*, the selection of files will start with ALL files and start applying the filters in order.
|
36
|
+
|
34
37
|
Then run the following command to build your package:
|
35
38
|
|
36
39
|
```bash
|
data/lib/rubypack/builder.rb
CHANGED
@@ -58,7 +58,7 @@ module Rubypack
|
|
58
58
|
|
59
59
|
def generate_list_of_files(pack)
|
60
60
|
@output.step('Generating list of files...') do
|
61
|
-
pack.include(
|
61
|
+
pack.include(pack.filename)
|
62
62
|
pack.include('Gemfile.lock')
|
63
63
|
pack.include('vendor/cache/*')
|
64
64
|
all_files = pack.list_files
|
@@ -28,10 +28,10 @@ module Rubypack
|
|
28
28
|
IO.popen(['bundle', 'install', '--local', '--deployment', err: [:child, :out]]) do |out|
|
29
29
|
yield(out)
|
30
30
|
end
|
31
|
-
fail("bundle
|
31
|
+
fail("bundle install failed: #{$?.exitstatus}") unless $?.exitstatus == 0
|
32
32
|
true
|
33
33
|
rescue => error
|
34
|
-
fail("Error executing bundle
|
34
|
+
fail("Error executing bundle install: #{error.message}")
|
35
35
|
ensure
|
36
36
|
Dir.chdir(old_pwd)
|
37
37
|
end
|
data/lib/rubypack/version.rb
CHANGED
data/rubypack.gemspec
CHANGED
@@ -22,8 +22,9 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.
|
25
|
+
spec.add_runtime_dependency 'bundler', '~> 1.14'
|
26
|
+
spec.add_runtime_dependency 'trollop', '~> 2.1'
|
27
|
+
|
26
28
|
spec.add_development_dependency 'rake', '~> 10.0'
|
27
29
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
-
spec.add_development_dependency 'trollop', '~> 2.1'
|
29
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubypack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge del Rio
|
@@ -17,7 +17,7 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.14'
|
20
|
-
type: :
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
@@ -25,47 +25,47 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.14'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: trollop
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
-
type: :
|
33
|
+
version: '2.1'
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '10.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '10.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '3.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '3.0'
|
69
69
|
description: This gem provides some utilities to build a package of your application
|
70
70
|
with aims to provide a runnable standalone application that can be shared or deployed
|
71
71
|
in production systems.
|