without-rails 1.2.0 → 1.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.
- checksums.yaml +4 -4
- data/lib/without/rails/version.rb +5 -5
- data/vendor/assets/javascripts/without.js +3 -2
- metadata +3 -9
- data/.gitignore +0 -17
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -22
- data/README.md +0 -50
- data/Rakefile +0 -1
- data/without-rails.gemspec +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58fbae34e1610b713e5311b29cb495f04e9d43d3
|
4
|
+
data.tar.gz: 7d036d29029167bd2fd8526c98c6ebb88babb986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93f14933f50efa66779a8a42002640668041f45346b2b0c47e5a98a62f3b9f1037288086ec6feb3f0ba5e644580257f6e0641502e9663f690c2994a5ad4eb17c
|
7
|
+
data.tar.gz: 56ad07b62f9ee151d4251e91475323a2871ca74b711370a984f5fd978f129c0e95f553e27a3a525606bd416f600d26627c454dc540bbb8b492d3de88e69738ee
|
@@ -1,5 +1,5 @@
|
|
1
|
-
module Without
|
2
|
-
module Rails
|
3
|
-
VERSION = "1.2.
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module Without
|
2
|
+
module Rails
|
3
|
+
VERSION = "1.2.1"
|
4
|
+
end
|
5
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//
|
2
|
-
// without.js v1.2.
|
2
|
+
// without.js v1.2.1: Yet another CoffeScript template (without `with`, coffescript and templates)
|
3
3
|
// https://github.com/ukoloff/without
|
4
4
|
//
|
5
5
|
!function(){
|
@@ -35,7 +35,8 @@ function coffeeScript(a)
|
|
35
35
|
{
|
36
36
|
if(1 != a.length || 'function' != typeof a[0])
|
37
37
|
throw SyntaxError('Usage: coffeescript -> code')
|
38
|
-
html += '<script><!--\n(' + a[0].toString() + ')()\n//-->\n</
|
38
|
+
html += '<script><!--\n(' + a[0].toString() + ')()\n//-->\n</'
|
39
|
+
html += 'script>'
|
39
40
|
}
|
40
41
|
function makeComment()
|
41
42
|
{
|
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.2.
|
4
|
+
version: 1.2.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:
|
11
|
+
date: 2017-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -59,16 +59,10 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- ".gitignore"
|
63
|
-
- Gemfile
|
64
|
-
- LICENSE.txt
|
65
|
-
- README.md
|
66
|
-
- Rakefile
|
67
62
|
- lib/without/rails.rb
|
68
63
|
- lib/without/rails/version.rb
|
69
64
|
- vendor/assets/javascripts/without.js
|
70
|
-
|
71
|
-
homepage: https://github.com/ukoloff/without-rails
|
65
|
+
homepage: https://github.com/ukoloff/without/tree/master/rails
|
72
66
|
licenses:
|
73
67
|
- MIT
|
74
68
|
metadata: {}
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
Copyright (c) 2014 Stas Ukolov
|
2
|
-
|
3
|
-
MIT License
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
a copy of this software and associated documentation files (the
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
12
|
-
|
13
|
-
The above copyright notice and this permission notice shall be
|
14
|
-
included in all copies or substantial portions of the Software.
|
15
|
-
|
16
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
# Without::Rails
|
2
|
-
|
3
|
-
[](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 ->
|
46
|
-
h1 'Hello, ', @, '!'
|
47
|
-
|
48
|
-
$('#test').html t 'world' # <h1>Hello, world!</h1>
|
49
|
-
|
50
|
-
```
|
data/Rakefile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
data/without-rails.gemspec
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'without/rails/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "without-rails"
|
8
|
-
spec.version = Without::Rails::VERSION
|
9
|
-
spec.authors = ["Stas Ukolov"]
|
10
|
-
spec.email = ["ukoloff@gmail.com"]
|
11
|
-
spec.description = "Use withOut with Rails"
|
12
|
-
spec.summary = "This gem provides withOut template engine for Rails application"
|
13
|
-
spec.homepage = "https://github.com/ukoloff/without-rails"
|
14
|
-
spec.license = "MIT"
|
15
|
-
|
16
|
-
spec.files = `git ls-files`.split($/)
|
17
|
-
spec.require_paths = ["lib"]
|
18
|
-
|
19
|
-
spec.add_dependency "railties"
|
20
|
-
|
21
|
-
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
-
spec.add_development_dependency "rake"
|
23
|
-
end
|