loada 0.1.3 → 0.1.4
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 +4 -4
- data/README.md +8 -4
- data/bower.json +1 -1
- data/loada.gemspec +1 -3
- data/package.json +1 -1
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 930b1abd61336921ae85869405c33ad95b350909
|
4
|
+
data.tar.gz: 6eac1a436bf9df8bf817edc24151544ffd423029
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d3ba4805f0b6359fd8bd9a612d7c2b1b33121b879c4bcb26d78b913637cf759939a9c92276ebf285d3f9619e8949d8ff71b0437ef6d1263f422417292af77f9
|
7
|
+
data.tar.gz: 2e7814bb23ec815245a9251cfddac17795a39f66688a5be87c37ced3b4b380b49a8c52c54c8894134d53ab45640d327f567bda6efaf01dfbc5ce7dc17f9f99ce
|
data/README.md
CHANGED
@@ -15,8 +15,12 @@ Use it to:
|
|
15
15
|
|
16
16
|
The Loada is available through [Bower](http://bower.io) as `loada`.
|
17
17
|
|
18
|
+
If you are in the Ruby environment with `sprockets` around – use `gem 'loada'` and `#= require 'loada'`.
|
19
|
+
|
18
20
|
Alternatively you can download [minified version](https://raw.github.com/inossidabile/loada/master/lib/loada.min.js). But you should not. Seriously. Use package managers. Please.
|
19
21
|
|
22
|
+
[](http://coderwall.com/inossidabile)
|
23
|
+
|
20
24
|
## Basic usage
|
21
25
|
|
22
26
|
The Loada splits your dependencies into sets. Each set is an instance of The Loada. Each set is an atomic cache part: if the number of cached assets changes – unused caches get busted on the next run keeping your **localStorage** space usage low. You can i.e. have *main* set, the core of application, and *templates* that will be treated and cached separately.
|
@@ -90,7 +94,7 @@ set = Loada.set 'name',
|
|
90
94
|
* **prefix**: changes localStorage keys prefix (defaults to `loada`)
|
91
95
|
* **localStorage**: globally turns off the localStorage cache and (unfortunately) detailed progress tracking
|
92
96
|
|
93
|
-
**Important note**: The Loada is only able to work with JS
|
97
|
+
**Important note**: The Loada is only able to work with JS when localStorage mode is disabled.
|
94
98
|
|
95
99
|
### Asset-level options
|
96
100
|
|
@@ -144,10 +148,10 @@ set.clear()
|
|
144
148
|
|
145
149
|
Loada is an extraction from [Joosy](http://joosy.ws) core.
|
146
150
|
|
147
|
-
##
|
151
|
+
## Maintainers
|
148
152
|
|
149
|
-
* Boris Staal
|
153
|
+
* Boris Staal, [@inossidabile](http://staal.io)
|
150
154
|
|
151
|
-
##
|
155
|
+
## License
|
152
156
|
|
153
157
|
It is free software, and may be redistributed under the terms of MIT license.
|
data/bower.json
CHANGED
data/loada.gemspec
CHANGED
@@ -6,12 +6,10 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.platform = Gem::Platform::RUBY
|
7
7
|
s.summary = "The Loada"
|
8
8
|
s.email = "boris@staal.io"
|
9
|
-
s.homepage = "http://github.com/
|
9
|
+
s.homepage = "http://github.com/joosy/loada"
|
10
10
|
s.description = "A gem wrapper to include Loada via the asset pipeline"
|
11
11
|
s.authors = ['Boris Staal']
|
12
12
|
|
13
13
|
s.files = `git ls-files`.split("\n")
|
14
14
|
s.require_paths = ["lib"]
|
15
|
-
|
16
|
-
s.add_dependency 'sprockets'
|
17
15
|
end
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loada
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Staal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: sprockets
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '>='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - '>='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
11
|
+
date: 2013-08-10 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
27
13
|
description: A gem wrapper to include Loada via the asset pipeline
|
28
14
|
email: boris@staal.io
|
29
15
|
executables: []
|
@@ -45,7 +31,7 @@ files:
|
|
45
31
|
- spec/loada_spec.coffee
|
46
32
|
- spec/support/test.js
|
47
33
|
- src/loada.coffee
|
48
|
-
homepage: http://github.com/
|
34
|
+
homepage: http://github.com/joosy/loada
|
49
35
|
licenses: []
|
50
36
|
metadata: {}
|
51
37
|
post_install_message:
|
@@ -64,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
50
|
version: '0'
|
65
51
|
requirements: []
|
66
52
|
rubyforge_project:
|
67
|
-
rubygems_version: 2.0.
|
53
|
+
rubygems_version: 2.0.6
|
68
54
|
signing_key:
|
69
55
|
specification_version: 4
|
70
56
|
summary: The Loada
|