repertoire-assets 0.2.1 → 0.2.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.
- data/LICENSE +1 -1
- data/lib/repertoire-assets/processor.rb +9 -4
- data/lib/repertoire-assets/version.rb +1 -1
- metadata +40 -50
data/LICENSE
CHANGED
@@ -15,9 +15,10 @@ module Repertoire
|
|
15
15
|
:js_source_files => # app javascript files to jumpstart dependency processing
|
16
16
|
[ 'public/javascripts/application.js', 'public/javascripts/*.js' ],
|
17
17
|
|
18
|
-
:gem_asset_roots =>
|
18
|
+
:gem_asset_roots => # location under $LOAD_PATHs to use as root for asset uris
|
19
|
+
[ '../public', '../vendor/assets' ],
|
19
20
|
:gem_libraries => # location under $LOAD_PATHs to search for javascript libraries
|
20
|
-
[ '../public/javascripts/*.js' ],
|
21
|
+
[ '../public/javascripts/*.js', '../vendor/assets/javascripts/*.js' ],
|
21
22
|
|
22
23
|
:cache_root => 'public', # app directory to put cache files & digests in, should be webserver visible
|
23
24
|
:digest_basename => 'digest', # file basename for css & js digests
|
@@ -351,7 +352,8 @@ module Repertoire
|
|
351
352
|
# expanded, as follows.
|
352
353
|
#
|
353
354
|
# (1) <library> and <library/sublibrary> are dereferenced
|
354
|
-
# (2) "relative/file" is expanded based on the current working directory
|
355
|
+
# (2) "relative/file" is expanded based on the current working directory
|
356
|
+
# (quotes optional)
|
355
357
|
# (3) globs are expanded (see Ruby Dir[])
|
356
358
|
# (4) the default extension (.js) is checked
|
357
359
|
# (5) finally, 'requires' or 'provides' are called on any resulting files
|
@@ -373,11 +375,14 @@ module Repertoire
|
|
373
375
|
# ---
|
374
376
|
def directive(cwd, line, level=0)
|
375
377
|
# extract the preprocessing directive
|
376
|
-
return unless line[ %r{^\s*//=\s*(\w+)\s+(".+"
|
378
|
+
return unless line[ %r{^\s*//=\s*(\w+)\s+(".+"|<.+>|.+)\s*$} ]
|
377
379
|
directive, pathspec = $1, $2
|
378
380
|
|
379
381
|
# progressively expand path specification
|
380
382
|
pathlist = pathspec
|
383
|
+
|
384
|
+
# default to relative path if syntax is ambiguous
|
385
|
+
pathlist = "\"#{pathspec}\"" unless pathlist[ %r{".+"|<.*>} ]
|
381
386
|
|
382
387
|
# expand library and sublibrary references
|
383
388
|
pathlist.gsub!( %r{^<([^/>]*)/?(.*)>} ) do
|
metadata
CHANGED
@@ -1,48 +1,41 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: repertoire-assets
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 2
|
8
|
-
- 1
|
9
|
-
version: 0.2.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.2
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Christopher York
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2010-07-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rack
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
- 0
|
31
|
-
- 1
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
32
21
|
version: 1.0.1
|
33
22
|
type: :runtime
|
34
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.0.1
|
35
30
|
description: Repertoire Assets javascript and css distribution framework
|
36
31
|
email: yorkc@mit.edu
|
37
32
|
executables: []
|
38
|
-
|
39
33
|
extensions: []
|
40
|
-
|
41
|
-
extra_rdoc_files:
|
34
|
+
extra_rdoc_files:
|
42
35
|
- LICENSE
|
43
36
|
- README
|
44
37
|
- TODO
|
45
|
-
files:
|
38
|
+
files:
|
46
39
|
- .gitignore
|
47
40
|
- FAQ
|
48
41
|
- INSTALL
|
@@ -60,37 +53,34 @@ files:
|
|
60
53
|
- repertoire-assets.gemspec
|
61
54
|
- vendor/yuicompressor-2.4.2.jar
|
62
55
|
- TODO
|
63
|
-
has_rdoc: true
|
64
56
|
homepage: http://github.com/repertoire/repertoire-assets
|
65
57
|
licenses: []
|
66
|
-
|
67
|
-
|
58
|
+
post_install_message: ! " ********************************************************************************\n
|
59
|
+
\ One of your gems uses Repertoire asset support, which provides access to\n javascript,
|
60
|
+
stylesheets and other assets distributed via Rubygems.\n\n You should turn on
|
61
|
+
precaching and compression in your production environment,\n so gem assets are
|
62
|
+
served by your web server. e.g. for Rails 3.0:\n\n <app>/config/environments/production.rb:\n\n
|
63
|
+
\ * config.repertoire_assets.compress = true\n\n See the repertoire-assets
|
64
|
+
README for other frameworks or details.\n ********************************************************************************\n"
|
68
65
|
rdoc_options: []
|
69
|
-
|
70
|
-
require_paths:
|
66
|
+
require_paths:
|
71
67
|
- lib
|
72
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
73
69
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
|
79
|
-
version: "0"
|
80
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
74
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
75
|
none: false
|
82
|
-
requirements:
|
83
|
-
- -
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
|
86
|
-
- 0
|
87
|
-
version: "0"
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
88
80
|
requirements: []
|
89
|
-
|
90
81
|
rubyforge_project:
|
91
|
-
rubygems_version: 1.
|
82
|
+
rubygems_version: 1.8.24
|
92
83
|
signing_key:
|
93
84
|
specification_version: 3
|
94
85
|
summary: Hyperstudio Asset framework
|
95
86
|
test_files: []
|
96
|
-
|