html-rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2YxOTRjZjViM2FmNjdkOGVmNmZlOTVjZmRlYmU2ZDcxMzMzNjNlNA==
4
+ MzEwODlmM2VjNDg0OTI1OWZlYzAxMmE5NjhjN2JlNTdiMzk2ZTViZQ==
5
5
  data.tar.gz: !binary |-
6
- YWI4MGRjNWRhYTY2NWUxYmI2N2ZmNzIwOGFkYWRjYTRkNzM5MTgwNw==
6
+ MmM1OTlhNjQ2YjUzOGRmYjBjMzg4NTg1YTIxNjA4NDg1YTBmOWVhZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NjcyZGYyZWU5OTYzMzFmNjEzZTIyNzdiYmE4MmJlOWE4OWY3OTc5ZTc4YjZi
10
- MTQwMzgwZTQwZGNiYjRhZDM2ZDliZGQ2ODhlNmIxZThiMGI5NGM3ZDE4OWQx
11
- ZmIyNTg5ZjI0NTE0MWZiMGMxOWE1OGEwNmJkNWQyOTZiMmJmZTY=
9
+ YTdjNGE3MmI1MjAwZWM1Mzg0NWRlZTU1MWI3YTI4OTkxYmU0M2EwNWE2OGFh
10
+ NTMyMDc1NjQ2MzNmNTgyYzNhZmY5NWQ4YTMwMmM5MTc2MWM0MWE3NTY0ZTFi
11
+ YzdhMmRlZmMwYmE0NzQ4ZDNjNTlhNDQ0MjQxZGUyMzA3YWVkOGY=
12
12
  data.tar.gz: !binary |-
13
- NTUwMzliOWUzMzlkYzdlN2ExNWFiODQxYTkwYjkxNjM5OTJiZGE3NDY5Mzk5
14
- MWQxNmQ4YzFmMWQyMzYxYmIxZTk2NTU0ZWRjNTk3MjkwYjQwNzZiMjYxOWQ3
15
- ZTE5MjFjYzMyODQ1MmNhM2EzY2NkNjg1MTFmMzI3ZTZiN2EzNTQ=
13
+ ZTRjZjc0ZTRiOWQ2MWZmNTU3OTA1MmY3ZjNkY2NjNWNhNTQ5NjUzODdiYmQx
14
+ NGE1NGY0NDBkNDdkMzBmNGYyYjQyMTU1OTlkNWYwOGM0MDQzMTllNGY1NDhj
15
+ MWVmZDg2MmU3M2IxYTgwNTEzMDQwZDdiMjBlZjRhM2JmZjkwYTQ=
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ InstalledFiles
7
+ _yardoc
8
+ coverage
9
+ pkg
10
+ rdoc
11
+ tags
12
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format progress
data/Gemfile.lock CHANGED
@@ -1,31 +1,86 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- html-rails (0.0.1)
5
- execjs
6
- sprockets
7
- tilt
4
+ html-rails (0.0.3)
5
+ rails (~> 4.0.0)
8
6
 
9
7
  GEM
10
8
  remote: https://rubygems.org/
11
9
  specs:
12
- execjs (1.4.0)
13
- multi_json (~> 1.0)
10
+ actionmailer (4.0.0)
11
+ actionpack (= 4.0.0)
12
+ mail (~> 2.5.3)
13
+ actionpack (4.0.0)
14
+ activesupport (= 4.0.0)
15
+ builder (~> 3.1.0)
16
+ erubis (~> 2.7.0)
17
+ rack (~> 1.5.2)
18
+ rack-test (~> 0.6.2)
19
+ activemodel (4.0.0)
20
+ activesupport (= 4.0.0)
21
+ builder (~> 3.1.0)
22
+ activerecord (4.0.0)
23
+ activemodel (= 4.0.0)
24
+ activerecord-deprecated_finders (~> 1.0.2)
25
+ activesupport (= 4.0.0)
26
+ arel (~> 4.0.0)
27
+ activerecord-deprecated_finders (1.0.3)
28
+ activesupport (4.0.0)
29
+ i18n (~> 0.6, >= 0.6.4)
30
+ minitest (~> 4.2)
31
+ multi_json (~> 1.3)
32
+ thread_safe (~> 0.1)
33
+ tzinfo (~> 0.3.37)
34
+ arel (4.0.0)
35
+ atomic (1.1.10)
36
+ builder (3.1.4)
37
+ erubis (2.7.0)
14
38
  hike (1.2.3)
39
+ i18n (0.6.4)
40
+ mail (2.5.4)
41
+ mime-types (~> 1.16)
42
+ treetop (~> 1.4.8)
43
+ mime-types (1.23)
44
+ minitest (4.7.5)
15
45
  multi_json (1.7.7)
46
+ polyglot (0.3.3)
16
47
  rack (1.5.2)
48
+ rack-test (0.6.2)
49
+ rack (>= 1.0)
50
+ rails (4.0.0)
51
+ actionmailer (= 4.0.0)
52
+ actionpack (= 4.0.0)
53
+ activerecord (= 4.0.0)
54
+ activesupport (= 4.0.0)
55
+ bundler (>= 1.3.0, < 2.0)
56
+ railties (= 4.0.0)
57
+ sprockets-rails (~> 2.0.0)
58
+ railties (4.0.0)
59
+ actionpack (= 4.0.0)
60
+ activesupport (= 4.0.0)
61
+ rake (>= 0.8.7)
62
+ thor (>= 0.18.1, < 2.0)
17
63
  rake (10.1.0)
18
64
  sprockets (2.10.0)
19
65
  hike (~> 1.2)
20
66
  multi_json (~> 1.0)
21
67
  rack (~> 1.0)
22
68
  tilt (~> 1.1, != 1.3.0)
69
+ sprockets-rails (2.0.0)
70
+ actionpack (>= 3.0)
71
+ activesupport (>= 3.0)
72
+ sprockets (~> 2.8)
73
+ thor (0.18.1)
74
+ thread_safe (0.1.0)
75
+ atomic
23
76
  tilt (1.4.1)
77
+ treetop (1.4.14)
78
+ polyglot
79
+ polyglot (>= 0.3.1)
80
+ tzinfo (0.3.37)
24
81
 
25
82
  PLATFORMS
26
83
  ruby
27
84
 
28
85
  DEPENDENCIES
29
- bundler (~> 1.3)
30
86
  html-rails!
31
- rake
data/html-rails.gemspec CHANGED
@@ -16,7 +16,5 @@ Gem::Specification.new do |spec|
16
16
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
17
  spec.require_paths = ["lib"]
18
18
 
19
- spec.add_runtime_dependency "execjs"
20
- spec.add_runtime_dependency "tilt"
21
- spec.add_runtime_dependency "sprockets"
19
+ spec.add_runtime_dependency 'rails', '~> 4.0.0'
22
20
  end
@@ -3,7 +3,6 @@ require 'tilt'
3
3
  module Html
4
4
  module Rails
5
5
  class Tilt < Tilt::Template
6
- include ActionView::Helpers::JavaScriptHelper
7
6
 
8
7
  def self.default_mime_type
9
8
  'application/javascript'
@@ -16,7 +15,7 @@ module Html
16
15
  def evaluate(scope, locals, &block)
17
16
  <<-TEMPLATE
18
17
  this.HTMLRails || (this.HTMLRails = {});
19
- this.HTMLRails[#{scope.logical_path}] = '#{escape_javascript data}'
18
+ this.HTMLRails[#{scope.logical_path}] = '#{data}'
20
19
  TEMPLATE
21
20
  end
22
21
 
@@ -1,5 +1,5 @@
1
1
  module Html
2
2
  module Rails
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -0,0 +1,6 @@
1
+ RSpec.configure do |config|
2
+ config.treat_symbols_as_metadata_keys_with_true_values = true
3
+ config.run_all_when_everything_filtered = true
4
+ config.filter_run :focus
5
+ config.order = 'random'
6
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mateusmaso
@@ -11,47 +11,19 @@ cert_chain: []
11
11
  date: 2013-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: execjs
14
+ name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 4.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: tilt
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ! '>='
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: sprockets
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ! '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
26
+ version: 4.0.0
55
27
  description: HTML template adapter for the Rails asset pipeline.
56
28
  email:
57
29
  - m.maso25@gmail.com
@@ -59,6 +31,8 @@ executables: []
59
31
  extensions: []
60
32
  extra_rdoc_files: []
61
33
  files:
34
+ - .gitignore
35
+ - .rspec
62
36
  - Gemfile
63
37
  - Gemfile.lock
64
38
  - LICENSE.txt
@@ -70,6 +44,7 @@ files:
70
44
  - lib/html/rails/engine.rb
71
45
  - lib/html/rails/tilt.rb
72
46
  - lib/html/rails/version.rb
47
+ - spec/spec_helper.rb
73
48
  homepage: https://github.com/mateusmaso/html-rails
74
49
  licenses:
75
50
  - MIT
@@ -94,4 +69,5 @@ rubygems_version: 2.0.5
94
69
  signing_key:
95
70
  specification_version: 4
96
71
  summary: HTML template adapter for the Rails asset pipeline.
97
- test_files: []
72
+ test_files:
73
+ - spec/spec_helper.rb