asset 0.0.1 → 0.0.2

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 +4 -4
  2. data/lib/asset.rb +15 -3
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c0f288b5eec0fc225e115333a46426673770dea
4
- data.tar.gz: 6837a81e20ad6b79bb4065e07acf4c67d3e8eac7
3
+ metadata.gz: 61f0f83d52b46d60744c9087cc73e8249fa1b9f0
4
+ data.tar.gz: 9dbe7813be9d7a49f199eaa7c0cea9f4e836119e
5
5
  SHA512:
6
- metadata.gz: d09e92947545596d2eede243b2845b1af8dd0fd373d19f08fe765d0873afe3116523f086edfb22f520bb8a118b59edf750c06206dc5abcb2abbed3cdb9783280
7
- data.tar.gz: a789932ed21b94fb233d9bf080593c3ee8eb3f72459b28e157dcce7ec68108af47e193272841e860a5142f72f8fbd033fef30e1cf9bb5e06c4013b224a4e1250
6
+ metadata.gz: 47e2a6b246c312a6229d924379c26be8a4bd2c11f030171202f22787bbe67a2c26627e6de2f72301883c6e4146d0b1f0167ee88d0b2d85031d1ffb764fb1183e
7
+ data.tar.gz: cfad137ad7fb37ce1280b3534e528a19d7d35f9e7d8fd16b6ca8b34931fb7a23498731bde0cf7bb45fbb4713ec31d6ce2cdded9d667834fc62a44751f405b5ab
data/lib/asset.rb CHANGED
@@ -6,11 +6,23 @@ module Asset
6
6
  # @author: Vidar <vidar@fugroup.net>, Fugroup Ltd.
7
7
  # @license: MIT, contributions are welcome.
8
8
  # # # # # #
9
+
10
+ class << self; attr_accessor :mode, :path, :cache, :manifest, :debug; end
11
+
12
+ # Default is production
13
+ @mode = ENV['RACK_ENV'] || MODE rescue 'development'
14
+ @path = APP_ASSETS rescue File.join(Dir.pwd, 'app', 'assets')
15
+ @cache = File.join(Dir.pwd, 'tmp')
16
+ @debug = true
17
+
9
18
  end
10
19
 
11
20
  require_relative 'assets/util'
12
- require_relative 'assets/piece'
13
- require_relative 'assets/pack'
21
+ require_relative 'assets/item'
22
+
23
+ # Load the manifest
24
+ ::Asset.manifest = ::Asset::Util.load_manifest
25
+
26
+
14
27
  require_relative 'assets/helpers'
15
28
  require_relative 'assets/router'
16
-
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fugroup Limited
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-29 00:00:00.000000000 Z
11
+ date: 2017-01-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The only thing you need for your assets.
14
- email: mail@fugroup.net
14
+ email: vidar@fugroup.net
15
15
  executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
@@ -40,5 +40,5 @@ rubyforge_project:
40
40
  rubygems_version: 2.5.1
41
41
  signing_key:
42
42
  specification_version: 4
43
- summary: Compress and serve your CSS and JS
43
+ summary: Compress and serve your CSS and JS automatically
44
44
  test_files: []