without-rails 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2537301a97a3750472cf4011e483bbaa7a6eef0
4
- data.tar.gz: b7cab434a2ce7732729f850c771cf1902205c7c0
3
+ metadata.gz: c24173f96a4b0d9ecd4752ca9de7e00d069a9653
4
+ data.tar.gz: cadc500c6ffb812a8e0f44eb1deb722f8f305bc4
5
5
  SHA512:
6
- metadata.gz: b2d98906136da8fcacf15ad20ea359a87d815c8482592c7f1f915a558aa66c7fadaa64eac7793e7e1a2b0295d051830c7885052f62a7888894df26a3258e530b
7
- data.tar.gz: e8a28d873f619e257bb6f034f1b97d0a2b58bd1de73fde29a1eccb5312c4e041024805c4c4897f66dd2bbb1e6cd6dcb62db6eb90d298c617ad3b1df832d1aebb
6
+ metadata.gz: a164f554188e59b5b7b3e42d9dd680dce597a3650a3c899d6f81c3cbae30300be683e5cb5d751b3a3fa384d816fa54bffddb2a6ada3ceccb015cbf9ed27a62e1
7
+ data.tar.gz: ae1dc3437e149bb7f1129276e6d007bf4bdcd46854b80118b957f053fd15cbae248bad67a04d5584a9da748e91812c815b024fb8e585f864850373262b06a075
data/README.md CHANGED
@@ -1,48 +1,50 @@
1
- # Without::Rails
2
-
3
- without-rails wraps [withOut](https://github.com/ukoloff/without)
4
- template engine for simple use with rails asset pipeline.
5
- The gem includes the development (non-minified) source
6
- for ease of exploration.
7
- The asset pipeline will minify in production.
8
-
9
- ## Installation
10
-
11
- Add this line to your application's Gemfile:
12
-
13
- gem 'without-rails'
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install without-rails
22
-
23
- ## Usage
24
-
25
- Add the following directive to your Javascript manifest file
26
- (application.js):
27
-
28
-
29
- ```js
30
- //= require without
31
- ```
32
-
33
- or to some .coffee file:
34
-
35
-
36
- ```coffee
37
- #= require without
38
- ```
39
-
40
- Later, inside any .coffee you can:
41
-
42
- ```coffee
43
- t = withOut.$compile ->
44
- div id: @
45
-
46
- $('#test').html t 'me'
47
-
48
- ```
1
+ # Without::Rails
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/without-rails.svg)](http://badge.fury.io/rb/without-rails)
4
+
5
+ without-rails wraps [withOut](https://github.com/ukoloff/without)
6
+ template engine for simple use with rails asset pipeline.
7
+ The gem includes the development (non-minified) source
8
+ for ease of exploration.
9
+ The asset pipeline will minify in production.
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ gem 'without-rails'
16
+
17
+ And then execute:
18
+
19
+ $ bundle
20
+
21
+ Or install it yourself as:
22
+
23
+ $ gem install without-rails
24
+
25
+ ## Usage
26
+
27
+ Add the following directive to your Javascript manifest file
28
+ (application.js):
29
+
30
+
31
+ ```js
32
+ //= require without
33
+ ```
34
+
35
+ or to some .coffee file:
36
+
37
+
38
+ ```coffee
39
+ #= require without
40
+ ```
41
+
42
+ Later, inside any .coffee you can:
43
+
44
+ ```coffee
45
+ t = withOut.$compile ->
46
+ div id: @
47
+
48
+ $('#test').html t 'me'
49
+
50
+ ```
@@ -1,5 +1,5 @@
1
1
  module Without
2
2
  module Rails
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -202,8 +202,8 @@ table tbody td textarea tfoot th thead time title tr tt u ul video wbr xmp'.spli
202
202
 
203
203
  function bp()
204
204
  {
205
- if(minified || false===lib.bp) return
206
- if(lib.bp) return true
205
+ if(minified || false===$compile.bp) return
206
+ if($compile.bp) return true
207
207
  if(n && 'number'==typeof wrapper.bp)
208
208
  return n==wrapper.bp
209
209
  return wrapper.bp
@@ -268,18 +268,17 @@ table tbody td textarea tfoot th thead time title tr tt u ul video wbr xmp'.spli
268
268
  }
269
269
  }
270
270
 
271
- var lib={
272
- compile: compile,
273
- renderable: compile,
274
- $compile: $compile,
275
- JSTs: JSTs
276
- }
271
+ $compile.$compile = $compile
272
+ $compile.compile = compile
273
+ $compile.renderable = compile
274
+ $compile.JSTs = JSTs
275
+
277
276
  if('undefined'!=typeof module && module.exports)
278
- module.exports=lib
277
+ module.exports=$compile
279
278
  else if('function'==typeof define && define.amd)
280
- define(lib)
279
+ define(function(){return $compile})
281
280
  else
282
- this.withOut=lib
281
+ this.withOut=$compile
283
282
  })()
284
283
 
285
284
  //--[EOF]------------------------------------------------------------
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: without-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stas Ukolov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-27 00:00:00.000000000 Z
11
+ date: 2014-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties