torquebox 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/torquebox +16 -4
  3. metadata +25 -51
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2b4a17d57fd5aed4091c18c86eb9c763a10b0444
4
+ data.tar.gz: 73c500a5f160b58f6daf30958cd7af56ef98e59b
5
+ SHA512:
6
+ metadata.gz: f117df8d22e1b001a0d9b394e62ddf418808d992f35934b75bd3f0e90725737459a2fc72f64484c8c4b6b76f0562ed697abc541d79d0f3388f72389826d8401f
7
+ data.tar.gz: b268f9f64adceef88a497decf63c178bc6b59379639cfdcf9e32985ee9aaad7dc50e3cf57978fb17ee3573a7ebb6dbdc174119963f555da3a16bdd979b64177d
data/bin/torquebox CHANGED
@@ -76,22 +76,34 @@ class TorqueBoxCommand < Thor
76
76
  method_option :package_gems, :type => :boolean, :desc => "Include all Bundler gem dependencies in the archive."
77
77
  method_option :package_without, :type => :array, :desc => "Package without these bundler groups.", :default => "development test assets"
78
78
  method_option :precompile_assets, :type => :boolean, :desc => "Precompile all assets (Rails-specific)."
79
+ method_option :exclude, :type => :array, :desc => "Exclude files from the archive with regexps."
79
80
  long_desc <<-EOS
80
81
  Creates an application archive containing all of your application dependencies.
81
82
  The archive can be deployed to TorqueBox with the --deploy option or by
82
83
  hand after the archive file, known as a .knob, has been created by using
83
84
  `torquebox deploy myapp.knob`.
85
+
86
+ The exclude parameter takes a list of Ruby-compatible regular expressions of
87
+ paths to exclude. The paths are implicitly anchored at the beginning. For
88
+ example, `torquebox archive foo --exclude public/500.html config/.+` will
89
+ exclude public/500.html and everything from the config directory.
84
90
  EOS
85
91
  def archive(root = Dir.pwd)
86
92
  help(__method__) and return if options.help
87
93
  root = Dir.pwd if (root == '.')
88
94
  TorqueBox::Server.setup_environment
89
95
  archive_name = TorqueBox::DeployUtils.archive_name( root )
90
- path = TorqueBox::DeployUtils.create_archive(
91
- :name => archive_name, :app_dir => root,
92
- :precompile_assets => options.precompile_assets, :package_gems => options.package_gems,
96
+ archive_options = {
97
+ :name => archive_name,
98
+ :app_dir => root,
99
+ :precompile_assets => options.precompile_assets,
100
+ :package_gems => options.package_gems,
93
101
  :package_without => options.package_without
94
- )
102
+ }
103
+ unless options.exclude.nil?
104
+ archive_options[:exclude] = options.exclude.join(',')
105
+ end
106
+ path = TorqueBox::DeployUtils.create_archive(archive_options)
95
107
  puts "Created archive: #{path}"
96
108
  if options.deploy
97
109
  puts "Deployed: #{archive_name}"
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torquebox
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 3.0.0
4
+ version: 3.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - The TorqueBox Team
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-28 00:00:00.000000000 Z
11
+ date: 2013-11-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: torquebox-core
@@ -17,14 +16,12 @@ dependencies:
17
16
  requirements:
18
17
  - - '='
19
18
  - !ruby/object:Gem::Version
20
- version: 3.0.0
21
- none: false
19
+ version: 3.0.1
22
20
  requirement: !ruby/object:Gem::Requirement
23
21
  requirements:
24
22
  - - '='
25
23
  - !ruby/object:Gem::Version
26
- version: 3.0.0
27
- none: false
24
+ version: 3.0.1
28
25
  prerelease: false
29
26
  type: :runtime
30
27
  - !ruby/object:Gem::Dependency
@@ -33,14 +30,12 @@ dependencies:
33
30
  requirements:
34
31
  - - '='
35
32
  - !ruby/object:Gem::Version
36
- version: 3.0.0
37
- none: false
33
+ version: 3.0.1
38
34
  requirement: !ruby/object:Gem::Requirement
39
35
  requirements:
40
36
  - - '='
41
37
  - !ruby/object:Gem::Version
42
- version: 3.0.0
43
- none: false
38
+ version: 3.0.1
44
39
  prerelease: false
45
40
  type: :runtime
46
41
  - !ruby/object:Gem::Dependency
@@ -49,14 +44,12 @@ dependencies:
49
44
  requirements:
50
45
  - - '='
51
46
  - !ruby/object:Gem::Version
52
- version: 3.0.0
53
- none: false
47
+ version: 3.0.1
54
48
  requirement: !ruby/object:Gem::Requirement
55
49
  requirements:
56
50
  - - '='
57
51
  - !ruby/object:Gem::Version
58
- version: 3.0.0
59
- none: false
52
+ version: 3.0.1
60
53
  prerelease: false
61
54
  type: :runtime
62
55
  - !ruby/object:Gem::Dependency
@@ -65,14 +58,12 @@ dependencies:
65
58
  requirements:
66
59
  - - '='
67
60
  - !ruby/object:Gem::Version
68
- version: 3.0.0
69
- none: false
61
+ version: 3.0.1
70
62
  requirement: !ruby/object:Gem::Requirement
71
63
  requirements:
72
64
  - - '='
73
65
  - !ruby/object:Gem::Version
74
- version: 3.0.0
75
- none: false
66
+ version: 3.0.1
76
67
  prerelease: false
77
68
  type: :runtime
78
69
  - !ruby/object:Gem::Dependency
@@ -81,14 +72,12 @@ dependencies:
81
72
  requirements:
82
73
  - - '='
83
74
  - !ruby/object:Gem::Version
84
- version: 3.0.0
85
- none: false
75
+ version: 3.0.1
86
76
  requirement: !ruby/object:Gem::Requirement
87
77
  requirements:
88
78
  - - '='
89
79
  - !ruby/object:Gem::Version
90
- version: 3.0.0
91
- none: false
80
+ version: 3.0.1
92
81
  prerelease: false
93
82
  type: :runtime
94
83
  - !ruby/object:Gem::Dependency
@@ -97,14 +86,12 @@ dependencies:
97
86
  requirements:
98
87
  - - '='
99
88
  - !ruby/object:Gem::Version
100
- version: 3.0.0
101
- none: false
89
+ version: 3.0.1
102
90
  requirement: !ruby/object:Gem::Requirement
103
91
  requirements:
104
92
  - - '='
105
93
  - !ruby/object:Gem::Version
106
- version: 3.0.0
107
- none: false
94
+ version: 3.0.1
108
95
  prerelease: false
109
96
  type: :runtime
110
97
  - !ruby/object:Gem::Dependency
@@ -113,14 +100,12 @@ dependencies:
113
100
  requirements:
114
101
  - - '='
115
102
  - !ruby/object:Gem::Version
116
- version: 3.0.0
117
- none: false
103
+ version: 3.0.1
118
104
  requirement: !ruby/object:Gem::Requirement
119
105
  requirements:
120
106
  - - '='
121
107
  - !ruby/object:Gem::Version
122
- version: 3.0.0
123
- none: false
108
+ version: 3.0.1
124
109
  prerelease: false
125
110
  type: :runtime
126
111
  - !ruby/object:Gem::Dependency
@@ -129,14 +114,12 @@ dependencies:
129
114
  requirements:
130
115
  - - '='
131
116
  - !ruby/object:Gem::Version
132
- version: 3.0.0
133
- none: false
117
+ version: 3.0.1
134
118
  requirement: !ruby/object:Gem::Requirement
135
119
  requirements:
136
120
  - - '='
137
121
  - !ruby/object:Gem::Version
138
- version: 3.0.0
139
- none: false
122
+ version: 3.0.1
140
123
  prerelease: false
141
124
  type: :runtime
142
125
  - !ruby/object:Gem::Dependency
@@ -145,14 +128,12 @@ dependencies:
145
128
  requirements:
146
129
  - - '='
147
130
  - !ruby/object:Gem::Version
148
- version: 3.0.0
149
- none: false
131
+ version: 3.0.1
150
132
  requirement: !ruby/object:Gem::Requirement
151
133
  requirements:
152
134
  - - '='
153
135
  - !ruby/object:Gem::Version
154
- version: 3.0.0
155
- none: false
136
+ version: 3.0.1
156
137
  prerelease: false
157
138
  type: :runtime
158
139
  - !ruby/object:Gem::Dependency
@@ -161,14 +142,12 @@ dependencies:
161
142
  requirements:
162
143
  - - '='
163
144
  - !ruby/object:Gem::Version
164
- version: 3.0.0
165
- none: false
145
+ version: 3.0.1
166
146
  requirement: !ruby/object:Gem::Requirement
167
147
  requirements:
168
148
  - - '='
169
149
  - !ruby/object:Gem::Version
170
- version: 3.0.0
171
- none: false
150
+ version: 3.0.1
172
151
  prerelease: false
173
152
  type: :runtime
174
153
  - !ruby/object:Gem::Dependency
@@ -178,13 +157,11 @@ dependencies:
178
157
  - - '>='
179
158
  - !ruby/object:Gem::Version
180
159
  version: 0.14.6
181
- none: false
182
160
  requirement: !ruby/object:Gem::Requirement
183
161
  requirements:
184
162
  - - '>='
185
163
  - !ruby/object:Gem::Version
186
164
  version: 0.14.6
187
- none: false
188
165
  prerelease: false
189
166
  type: :runtime
190
167
  - !ruby/object:Gem::Dependency
@@ -194,13 +171,11 @@ dependencies:
194
171
  - - '='
195
172
  - !ruby/object:Gem::Version
196
173
  version: 2.7.0
197
- none: false
198
174
  requirement: !ruby/object:Gem::Requirement
199
175
  requirements:
200
176
  - - '='
201
177
  - !ruby/object:Gem::Version
202
178
  version: 2.7.0
203
- none: false
204
179
  prerelease: false
205
180
  type: :development
206
181
  description: ''
@@ -217,6 +192,7 @@ files:
217
192
  homepage: http://torquebox.org/
218
193
  licenses:
219
194
  - Public Domain
195
+ metadata: {}
220
196
  post_install_message:
221
197
  rdoc_options: []
222
198
  require_paths:
@@ -226,17 +202,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
202
  - - '>='
227
203
  - !ruby/object:Gem::Version
228
204
  version: '0'
229
- none: false
230
205
  required_rubygems_version: !ruby/object:Gem::Requirement
231
206
  requirements:
232
207
  - - '>='
233
208
  - !ruby/object:Gem::Version
234
209
  version: '0'
235
- none: false
236
210
  requirements: []
237
211
  rubyforge_project:
238
- rubygems_version: 1.8.24
212
+ rubygems_version: 2.1.9
239
213
  signing_key:
240
- specification_version: 3
214
+ specification_version: 4
241
215
  summary: TorqueBox Gem
242
216
  test_files: []