troy 0.0.16 → 0.0.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88f0c39c48b32ffcc9f9f78b7e854168c53c9d21
4
- data.tar.gz: e612213c8fc3933175a06a5d0970b3fbe9a11bcb
3
+ metadata.gz: 90ab72b9347838e79b0c2cbe6657ae6c75c49c5f
4
+ data.tar.gz: 1ecfbbb8553115cf4d8f7376102639fd5fbf7f34
5
5
  SHA512:
6
- metadata.gz: 9645eb9f512b79b3cb5476022a2d86f7fd3f1fdb3b96c74ab4a95537ff9fa8ed1580179466768700a020683dc81a9aa1c9b2c6a9092bebb6fa677bac3190f697
7
- data.tar.gz: 7e20893df897675be2f4305a0fe3c1197376776f78eef39179d5d0d5e8689f5bcc92ec94ff0ea2861c9eedb014e19052f3d50e9a371f143814c0913aaabee01c
6
+ metadata.gz: e0f3cc03aae9c52ad59b461bc81e3ec63da20bc9c4c6a47694e8d84e9c0cb938347ec8ed21f6912cf7c938ebbeb60303d8c1e65cafbb9d4413f055259710b58f
7
+ data.tar.gz: c35a30de75f6942a03e396a1b1929de4b486a4ca2d429df807f36bfae087a0520816726ec8d606ac29c241c0ee7b4b1080b1b56acce85e164240ecb5bda8678a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- troy (0.0.16)
4
+ troy (0.0.17)
5
5
  builder
6
6
  html_press
7
7
  i18n
@@ -20,10 +20,10 @@ GEM
20
20
  csspool-st (= 3.1.2)
21
21
  json
22
22
  csspool-st (3.1.2)
23
- diff-lcs (1.2.1)
23
+ diff-lcs (1.2.4)
24
24
  execjs (1.4.0)
25
25
  multi_json (~> 1.0)
26
- hike (1.2.1)
26
+ hike (1.2.2)
27
27
  html_press (0.8.1)
28
28
  htmlentities
29
29
  multi_css (>= 0.1.0)
@@ -35,26 +35,26 @@ GEM
35
35
  css_press
36
36
  multi_js (0.0.1)
37
37
  uglifier
38
- multi_json (1.7.2)
38
+ multi_json (1.7.3)
39
39
  rack (1.5.2)
40
40
  redcarpet (2.2.2)
41
41
  rspec (2.13.0)
42
42
  rspec-core (~> 2.13.0)
43
43
  rspec-expectations (~> 2.13.0)
44
44
  rspec-mocks (~> 2.13.0)
45
- rspec-core (2.13.0)
45
+ rspec-core (2.13.1)
46
46
  rspec-expectations (2.13.0)
47
47
  diff-lcs (>= 1.1.3, < 2.0)
48
- rspec-mocks (2.13.0)
49
- sass (3.2.7)
50
- sprockets (2.9.0)
48
+ rspec-mocks (2.13.1)
49
+ sass (3.2.9)
50
+ sprockets (2.9.3)
51
51
  hike (~> 1.2)
52
52
  multi_json (~> 1.0)
53
53
  rack (~> 1.0)
54
54
  tilt (~> 1.1, != 1.3.0)
55
- thor (0.18.0)
56
- tilt (1.3.6)
57
- uglifier (1.3.0)
55
+ thor (0.18.1)
56
+ tilt (1.4.1)
57
+ uglifier (2.1.0)
58
58
  execjs (>= 0.3.0)
59
59
  multi_json (~> 1.0, >= 1.0.2)
60
60
 
data/lib/troy/hacks.rb ADDED
@@ -0,0 +1,7 @@
1
+ module HtmlPress
2
+ def self.js_compressor (text, options = nil)
3
+ options ||= {}
4
+ options[:output] ||= {:inline_script => true}
5
+ MultiJs.compile(text, options).gsub(/;$/,'')
6
+ end
7
+ end
data/lib/troy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Troy
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: troy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-28 00:00:00.000000000 Z
11
+ date: 2013-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -172,6 +172,7 @@ files:
172
172
  - lib/troy/embedded_ruby.rb
173
173
  - lib/troy/extension_matcher.rb
174
174
  - lib/troy/generator.rb
175
+ - lib/troy/hacks.rb
175
176
  - lib/troy/helpers.rb
176
177
  - lib/troy/markdown.rb
177
178
  - lib/troy/meta.rb