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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc226695dfc183b20bcc0eeaaeaf37ce09de7ade
4
- data.tar.gz: 9009bba0cced0663a976df1c3bb26293dfe36579
3
+ metadata.gz: 1643d283312bf9a5252d4c64dfc40e98159bbbe0
4
+ data.tar.gz: a41e70151492acba18ae7c2cc56de25e3a37628b
5
5
  SHA512:
6
- metadata.gz: 10dd8d1298926a9fef8293977323006eb62a2ca2d3719dc37e270c4add56ab6ef03cec600523f22e2902fd0c3de8c8e580c19ef48fb60ce390a3baa2c800e253
7
- data.tar.gz: 31c478263d3de4343ec17860a9c9c78653791195fa5f573a0ffef95e2863714ac703d71073a7738f5e9ddabc929a9453653418f3c691e718609fa86263c8c1c8
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 .rubypack file:
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
@@ -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(@options[:config])
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 package failed: #{$?.exitstatus}") unless $?.exitstatus == 0
31
+ fail("bundle install failed: #{$?.exitstatus}") unless $?.exitstatus == 0
32
32
  true
33
33
  rescue => error
34
- fail("Error executing bundle package: #{error.message}")
34
+ fail("Error executing bundle install: #{error.message}")
35
35
  ensure
36
36
  Dir.chdir(old_pwd)
37
37
  end
@@ -3,7 +3,7 @@ module Rubypack
3
3
  class RubypackFile
4
4
  DEFAULT_FILENAME = '.rubypack'
5
5
 
6
- attr_accessor :path
6
+ attr_accessor :path, :filename
7
7
 
8
8
  def initialize(filename:, output:)
9
9
  fail("File not found: #{filename}") unless File.exists?(filename)
@@ -1,3 +1,3 @@
1
1
  module Rubypack
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.add_development_dependency 'bundler', '~> 1.14'
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.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: :development
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: rake
28
+ name: trollop
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
34
- type: :development
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: '10.0'
40
+ version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
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: '3.0'
54
+ version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: trollop
56
+ name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.1'
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: '2.1'
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.