liquid_assets 0.1.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,183 +1,151 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquid_assets
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.1
4
+ version: 0.3.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nathan Stitt
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-14 00:00:00.000000000 Z
11
+ date: 2013-04-09 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- version_requirements: !ruby/object:Gem::Requirement
16
- none: false
17
- requirements:
18
- - - ! '>='
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
14
  name: liquid
22
- type: :runtime
23
- prerelease: false
24
15
  requirement: !ruby/object:Gem::Requirement
25
- none: false
26
16
  requirements:
27
- - - ! '>='
17
+ - - '>='
28
18
  - !ruby/object:Gem::Version
29
19
  version: '0'
30
- - !ruby/object:Gem::Dependency
31
- version_requirements: !ruby/object:Gem::Requirement
32
- none: false
33
- requirements:
34
- - - ! '>='
35
- - !ruby/object:Gem::Version
36
- version: '0'
37
- name: tilt
38
20
  type: :runtime
39
21
  prerelease: false
40
- requirement: !ruby/object:Gem::Requirement
41
- none: false
22
+ version_requirements: !ruby/object:Gem::Requirement
42
23
  requirements:
43
- - - ! '>='
24
+ - - '>='
44
25
  - !ruby/object:Gem::Version
45
26
  version: '0'
46
27
  - !ruby/object:Gem::Dependency
47
- version_requirements: !ruby/object:Gem::Requirement
48
- none: false
28
+ name: tilt
29
+ requirement: !ruby/object:Gem::Requirement
49
30
  requirements:
50
- - - ! '>='
31
+ - - '>='
51
32
  - !ruby/object:Gem::Version
52
33
  version: '0'
53
- name: sprockets
54
34
  type: :runtime
55
35
  prerelease: false
56
- requirement: !ruby/object:Gem::Requirement
57
- none: false
36
+ version_requirements: !ruby/object:Gem::Requirement
58
37
  requirements:
59
- - - ! '>='
38
+ - - '>='
60
39
  - !ruby/object:Gem::Version
61
40
  version: '0'
62
41
  - !ruby/object:Gem::Dependency
63
- version_requirements: !ruby/object:Gem::Requirement
64
- none: false
42
+ name: execjs
43
+ requirement: !ruby/object:Gem::Requirement
65
44
  requirements:
66
- - - ! '>='
45
+ - - '>='
67
46
  - !ruby/object:Gem::Version
68
47
  version: '0'
69
- name: execjs
70
48
  type: :runtime
71
49
  prerelease: false
72
- requirement: !ruby/object:Gem::Requirement
73
- none: false
50
+ version_requirements: !ruby/object:Gem::Requirement
74
51
  requirements:
75
- - - ! '>='
52
+ - - '>='
76
53
  - !ruby/object:Gem::Version
77
54
  version: '0'
78
55
  - !ruby/object:Gem::Dependency
79
- version_requirements: !ruby/object:Gem::Requirement
80
- none: false
56
+ name: actionpack
57
+ requirement: !ruby/object:Gem::Requirement
81
58
  requirements:
82
- - - ! '>='
59
+ - - '>='
83
60
  - !ruby/object:Gem::Version
84
- version: '0'
85
- name: rdoc
86
- type: :development
61
+ version: '3.2'
62
+ type: :runtime
87
63
  prerelease: false
88
- requirement: !ruby/object:Gem::Requirement
89
- none: false
64
+ version_requirements: !ruby/object:Gem::Requirement
90
65
  requirements:
91
- - - ! '>='
66
+ - - '>='
92
67
  - !ruby/object:Gem::Version
93
- version: '0'
68
+ version: '3.2'
94
69
  - !ruby/object:Gem::Dependency
95
- version_requirements: !ruby/object:Gem::Requirement
96
- none: false
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
97
72
  requirements:
98
- - - ! '>='
73
+ - - ~>
99
74
  - !ruby/object:Gem::Version
100
- version: '0'
101
- name: bundler
75
+ version: '1.3'
102
76
  type: :development
103
77
  prerelease: false
104
- requirement: !ruby/object:Gem::Requirement
105
- none: false
78
+ version_requirements: !ruby/object:Gem::Requirement
106
79
  requirements:
107
- - - ! '>='
80
+ - - ~>
108
81
  - !ruby/object:Gem::Version
109
- version: '0'
82
+ version: '1.3'
110
83
  - !ruby/object:Gem::Dependency
111
- version_requirements: !ruby/object:Gem::Requirement
112
- none: false
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
113
86
  requirements:
114
- - - ! '>='
87
+ - - '>='
115
88
  - !ruby/object:Gem::Version
116
89
  version: '0'
117
- name: jeweler
118
90
  type: :development
119
91
  prerelease: false
120
- requirement: !ruby/object:Gem::Requirement
121
- none: false
92
+ version_requirements: !ruby/object:Gem::Requirement
122
93
  requirements:
123
- - - ! '>='
94
+ - - '>='
124
95
  - !ruby/object:Gem::Version
125
96
  version: '0'
126
- description: ! 'Allows you to use Liquid format templates in Rails, both as
127
-
128
- view templates and as compiled JavaScript via the asset_pipeline.'
129
- email: nathan@stitt.org
97
+ description: A rails engine that supports writing both server and client side templates
98
+ in Liqud markup
99
+ email:
100
+ - nathan@stitt.org
130
101
  executables: []
131
102
  extensions: []
132
- extra_rdoc_files:
133
- - LICENSE.txt
134
- - README.md
103
+ extra_rdoc_files: []
135
104
  files:
136
- - .document
105
+ - .gitignore
137
106
  - Gemfile
138
107
  - Gemfile.lock
139
108
  - LICENSE.txt
140
109
  - README.md
141
110
  - Rakefile
142
- - VERSION
143
111
  - lib/liquid_assets.rb
144
112
  - lib/liquid_assets/config.rb
145
113
  - lib/liquid_assets/engine.rb
114
+ - lib/liquid_assets/eval.rb
115
+ - lib/liquid_assets/pipeline_template_engine.rb
116
+ - lib/liquid_assets/resolver.rb
146
117
  - lib/liquid_assets/template_handler.rb
147
- - lib/liquid_assets/tilt_engine.rb
148
118
  - lib/liquid_assets/tiny_liquid.rb
149
119
  - lib/liquid_assets/version.rb
150
120
  - liquid_assets.gemspec
151
121
  - test/helper.rb
152
122
  - test/test_liquid_assets.rb
153
- - vendor/assets/javascripts/liquid_assets.js
123
+ - vendor/assets/javascripts/liquid_assets.js.erb
154
124
  - vendor/tinyliquid.js
155
125
  homepage: http://github.com/nathanstitt/liquid_assets
156
126
  licenses:
157
127
  - MIT
128
+ metadata: {}
158
129
  post_install_message:
159
130
  rdoc_options: []
160
131
  require_paths:
161
132
  - lib
162
133
  required_ruby_version: !ruby/object:Gem::Requirement
163
- none: false
164
134
  requirements:
165
- - - ! '>='
135
+ - - '>='
166
136
  - !ruby/object:Gem::Version
167
- segments:
168
- - 0
169
- hash: 4223951474840526955
170
137
  version: '0'
171
138
  required_rubygems_version: !ruby/object:Gem::Requirement
172
- none: false
173
139
  requirements:
174
- - - ! '>='
140
+ - - '>='
175
141
  - !ruby/object:Gem::Version
176
142
  version: '0'
177
143
  requirements: []
178
144
  rubyforge_project:
179
- rubygems_version: 1.8.23
145
+ rubygems_version: 2.0.3
180
146
  signing_key:
181
- specification_version: 3
147
+ specification_version: 4
182
148
  summary: Liquid formmated views and assets
183
- test_files: []
149
+ test_files:
150
+ - test/helper.rb
151
+ - test/test_liquid_assets.rb
data/.document DELETED
@@ -1,5 +0,0 @@
1
- lib/**/*.rb
2
- bin/*
3
- -
4
- features/**/*.feature
5
- LICENSE.txt
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.1
@@ -1,57 +0,0 @@
1
- this.LQT || (this.LQT = {});
2
-
3
- LQT._FNS = {
4
-
5
- html: function (html) {
6
- return html.replace(/\\/g, '\\\\')
7
- .replace(/'/g, '\\\'')
8
- .replace(/"/g, '\\\"')
9
- .replace(/\r/g, '\\r')
10
- .replace(/\n/g, '\\n');
11
- },
12
- err: function (msg) {
13
- var html = '<pre style="font-family:Courier; font-weight:bold; \
14
- font-size:14px; color:red; padding:4px 20px 4px 20px; border:1px solid #CCC; \
15
- background-color:#FFF5F0; line-height:1.6em; white-space:pre-wrap; \
16
- white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; \
17
- word-wrap:break-word; z-index:9999">' + msg + '</pre>';
18
- return html;
19
- },
20
- rethrow: function (err, filename) {
21
- var msg = 'An error occurred while rendering\n' +
22
- 'Line: ' + $_line_num + (filename ? ' File: ' + filename : '') +
23
- '\n ' + err;
24
- $_buf += $_err(msg);
25
- },
26
- merge: function () {
27
- var ret = {};
28
- for (var i in arguments) {
29
- var obj = arguments[i];
30
- for (var j in obj) {
31
- ret[j] = obj[j];
32
- }
33
- }
34
- return ret;
35
- },
36
- range: function (s, e) {
37
- s = parseInt(s);
38
- e = parseInt(e);
39
- var r = [];
40
- if (isNaN(s) || isNaN(e)) return r;
41
- for (; s <= e; s++) {
42
- r.push(s);
43
- }
44
- return r;
45
- },
46
- array: function (data) {
47
- if (Array.isArray(data)) return data;
48
- var ret = [];
49
- for (var i in data) {
50
- if (i !== 'size') {
51
- ret.push(data[i]);
52
- }
53
- }
54
- return ret;
55
- }
56
-
57
- }