asset-pocket 0.2 → 0.2.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.
- data/bin/pocket +16 -0
- metadata +7 -8
data/bin/pocket
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
PocketPath = ["pocket.rb", "config/pocket.rb"].detect {|path| File.exist?(path) }
|
4
|
+
|
5
|
+
if PocketPath.nil?
|
6
|
+
STDERR.puts "No pocket.rb found!"
|
7
|
+
exit 1
|
8
|
+
end
|
9
|
+
|
10
|
+
require 'asset_pocket/generator'
|
11
|
+
generator = AssetPocket::Generator.new
|
12
|
+
generator.root_path = Dir.pwd
|
13
|
+
generator.parse_string File.read(PocketPath)
|
14
|
+
generator.run!
|
15
|
+
|
16
|
+
# vim: syntax=ruby
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asset-pocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 15
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 2
|
9
|
-
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ayose Cazorla
|
@@ -19,9 +19,9 @@ default_executable:
|
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: Using a config file (pocket) you can create multiple kind of assets groups
|
22
|
-
email:
|
23
|
-
executables:
|
24
|
-
|
22
|
+
email: ayosec@gmail.com
|
23
|
+
executables:
|
24
|
+
- pocket
|
25
25
|
extensions: []
|
26
26
|
|
27
27
|
extra_rdoc_files: []
|
@@ -40,8 +40,9 @@ files:
|
|
40
40
|
- lib/asset_pocket/compressor.rb
|
41
41
|
- lib/asset_pocket/generator.rb
|
42
42
|
- lib/tasks/pocket.rake
|
43
|
+
- bin/pocket
|
43
44
|
has_rdoc: false
|
44
|
-
homepage: http://github.com/setepo/
|
45
|
+
homepage: http://github.com/setepo/asset-pocket
|
45
46
|
licenses: []
|
46
47
|
|
47
48
|
post_install_message:
|
@@ -54,7 +55,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
54
55
|
requirements:
|
55
56
|
- - ">="
|
56
57
|
- !ruby/object:Gem::Version
|
57
|
-
hash: 3
|
58
58
|
segments:
|
59
59
|
- 0
|
60
60
|
version: "0"
|
@@ -63,7 +63,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
requirements:
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
hash: 3
|
67
66
|
segments:
|
68
67
|
- 0
|
69
68
|
version: "0"
|