pug-rails 2.0.2 → 2.0.3

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: b2391f26ad0a9641784adb7a692a7bc057d42db3
4
- data.tar.gz: 3b8529acc4f579511a7371662b0f43d41475c822
3
+ metadata.gz: f22db2f0a3f3e3488c24ff348cdc55925e257e14
4
+ data.tar.gz: a687ba7f44b1894c3ff0151845b22cb0abdba137
5
5
  SHA512:
6
- metadata.gz: 62bc6d6bd5882c022a7d2501f3325220b59e0f23c4881a6a57f0572d5d93f74197eb7eaa48149496082e32cfb8be443d2b0340e35e5c1413433ebc11a32f6925
7
- data.tar.gz: a4226d6e29f3da4212c6b6821a05e1057757528c45997ca071c02d992ca2307e1b9f5f1929faa909e9e133a749d168b201ff32687852d8bde38aa2365bdb7ddf
6
+ metadata.gz: c3129e80b3d2ebede514ebaa752210e1c0afafd26bf25560a1d32e1537bc052c788deced12fa3a802d5ce7a71a49c745d34245d929f2d824290ca2530b38e0e1
7
+ data.tar.gz: 46c470daf526b2f14b169c2b16b33e2c5be978aebd19ace057751a7fcc822f7f684d15b89579097106f1aeed7d14a66fd4cb0c2a039abd08cbb0b9db20fde628
data/.gitignore CHANGED
@@ -1,5 +1,4 @@
1
1
  *.gem
2
- *.lock
3
2
  .bundle
4
3
  .ruby-version
5
4
  pkg/
data/.travis.yml ADDED
@@ -0,0 +1,23 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.1.10
5
+ - 2.2.5
6
+ - 2.3.1
7
+
8
+ cache: bundler
9
+
10
+ gemfile:
11
+ - gemfiles/rails_3.gemfile
12
+ - gemfiles/rails_4_with_sprockets_2.gemfile
13
+ - gemfiles/rails_4_with_sprockets_3.gemfile
14
+ - gemfiles/rails_5.gemfile
15
+
16
+ matrix:
17
+ exclude:
18
+ - rvm: 2.1.10
19
+ gemfile: gemfiles/rails_5.gemfile
20
+
21
+ before_install:
22
+ - npm install --global jade
23
+ - npm install --global pug-cli
data/Appraisals ADDED
@@ -0,0 +1,18 @@
1
+ appraise 'rails-3' do
2
+ gem 'rails', '~> 3'
3
+ gem 'sprockets', '~> 2'
4
+ end
5
+
6
+ appraise 'rails-4-with-sprockets-2' do
7
+ gem 'rails', '~> 4'
8
+ gem 'sprockets', '~> 3'
9
+ end
10
+
11
+ appraise 'rails-4-with-sprockets-3' do
12
+ gem 'rails', '~> 4'
13
+ gem 'sprockets', '~> 3'
14
+ end
15
+
16
+ appraise 'rails-5' do
17
+ gem 'rails', '~> 5'
18
+ end
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ source 'https://rubygems.org'
5
+ gemspec
6
+
7
+ gem 'rails', '~> 4'
8
+ gem 'sprockets', '~> 3'
9
+ gem 'pry-byebug'
data/Gemfile.lock ADDED
@@ -0,0 +1,138 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ pug-rails (2.0.3)
5
+ pug-ruby (~> 1.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (4.2.7.1)
11
+ actionpack (= 4.2.7.1)
12
+ actionview (= 4.2.7.1)
13
+ activejob (= 4.2.7.1)
14
+ mail (~> 2.5, >= 2.5.4)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ actionpack (4.2.7.1)
17
+ actionview (= 4.2.7.1)
18
+ activesupport (= 4.2.7.1)
19
+ rack (~> 1.6)
20
+ rack-test (~> 0.6.2)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
+ actionview (4.2.7.1)
24
+ activesupport (= 4.2.7.1)
25
+ builder (~> 3.1)
26
+ erubis (~> 2.7.0)
27
+ rails-dom-testing (~> 1.0, >= 1.0.5)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
+ activejob (4.2.7.1)
30
+ activesupport (= 4.2.7.1)
31
+ globalid (>= 0.3.0)
32
+ activemodel (4.2.7.1)
33
+ activesupport (= 4.2.7.1)
34
+ builder (~> 3.1)
35
+ activerecord (4.2.7.1)
36
+ activemodel (= 4.2.7.1)
37
+ activesupport (= 4.2.7.1)
38
+ arel (~> 6.0)
39
+ activesupport (4.2.7.1)
40
+ i18n (~> 0.7)
41
+ json (~> 1.7, >= 1.7.7)
42
+ minitest (~> 5.1)
43
+ thread_safe (~> 0.3, >= 0.3.4)
44
+ tzinfo (~> 1.1)
45
+ appraisal (2.1.0)
46
+ bundler
47
+ rake
48
+ thor (>= 0.14.0)
49
+ arel (6.0.4)
50
+ builder (3.2.2)
51
+ byebug (9.0.6)
52
+ coderay (1.1.1)
53
+ concurrent-ruby (1.0.4)
54
+ erubis (2.7.0)
55
+ globalid (0.3.7)
56
+ activesupport (>= 4.1.0)
57
+ i18n (0.7.0)
58
+ json (1.8.3)
59
+ loofah (2.0.3)
60
+ nokogiri (>= 1.5.9)
61
+ mail (2.6.4)
62
+ mime-types (>= 1.16, < 4)
63
+ method_source (0.8.2)
64
+ mime-types (3.1)
65
+ mime-types-data (~> 3.2015)
66
+ mime-types-data (3.2016.0521)
67
+ mini_portile2 (2.1.0)
68
+ minitest (5.10.1)
69
+ nokogiri (1.6.8.1)
70
+ mini_portile2 (~> 2.1.0)
71
+ power_assert (0.4.1)
72
+ pry (0.10.4)
73
+ coderay (~> 1.1.0)
74
+ method_source (~> 0.8.1)
75
+ slop (~> 3.4)
76
+ pry-byebug (3.4.2)
77
+ byebug (~> 9.0)
78
+ pry (~> 0.10)
79
+ pug-ruby (1.0.2)
80
+ rack (1.6.5)
81
+ rack-test (0.6.3)
82
+ rack (>= 1.0)
83
+ rails (4.2.7.1)
84
+ actionmailer (= 4.2.7.1)
85
+ actionpack (= 4.2.7.1)
86
+ actionview (= 4.2.7.1)
87
+ activejob (= 4.2.7.1)
88
+ activemodel (= 4.2.7.1)
89
+ activerecord (= 4.2.7.1)
90
+ activesupport (= 4.2.7.1)
91
+ bundler (>= 1.3.0, < 2.0)
92
+ railties (= 4.2.7.1)
93
+ sprockets-rails
94
+ rails-deprecated_sanitizer (1.0.3)
95
+ activesupport (>= 4.2.0.alpha)
96
+ rails-dom-testing (1.0.8)
97
+ activesupport (>= 4.2.0.beta, < 5.0)
98
+ nokogiri (~> 1.6)
99
+ rails-deprecated_sanitizer (>= 1.0.1)
100
+ rails-html-sanitizer (1.0.3)
101
+ loofah (~> 2.0)
102
+ railties (4.2.7.1)
103
+ actionpack (= 4.2.7.1)
104
+ activesupport (= 4.2.7.1)
105
+ rake (>= 0.8.7)
106
+ thor (>= 0.18.1, < 2.0)
107
+ rake (10.5.0)
108
+ slop (3.6.0)
109
+ sprockets (3.7.1)
110
+ concurrent-ruby (~> 1.0)
111
+ rack (> 1, < 3)
112
+ sprockets-rails (3.2.0)
113
+ actionpack (>= 4.0)
114
+ activesupport (>= 4.0)
115
+ sprockets (>= 3.0.0)
116
+ test-unit (3.2.3)
117
+ power_assert
118
+ thor (0.19.4)
119
+ thread_safe (0.3.5)
120
+ tzinfo (1.2.2)
121
+ thread_safe (~> 0.1)
122
+
123
+ PLATFORMS
124
+ ruby
125
+
126
+ DEPENDENCIES
127
+ appraisal (~> 2.1)
128
+ bundler (~> 1.7)
129
+ nokogiri (~> 1.6, < 1.7)
130
+ pry-byebug
131
+ pug-rails!
132
+ rails (~> 4)
133
+ rake (~> 10.0)
134
+ sprockets (~> 3)
135
+ test-unit (~> 3.1)
136
+
137
+ BUNDLED WITH
138
+ 1.13.2
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## Pug/Jade template engine integration with Rails asset pipeline
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/pug-rails.svg)](https://badge.fury.io/rb/pug-rails)
4
+ [![Build Status](https://travis-ci.org/yivo/pug-rails.svg?branch=master)](https://travis-ci.org/yivo/pug-rails)
5
+
3
6
  ## About
4
7
  This gem uses [pug-ruby](https://github.com/yivo/pug-ruby) to compile Pug/Jade templates. Please refer to that gem if you want to use Pug/Jade compiler directly.
5
8
 
@@ -12,7 +15,7 @@ gem 'pug-rails', '~> 2.0'
12
15
  ## Installing Jade
13
16
  Install Jade globally via npm:
14
17
  ```bash
15
- npm install -g jade
18
+ npm install --global jade
16
19
  ```
17
20
 
18
21
  Require Jade runtime.js:
@@ -25,7 +28,7 @@ Use `.jst.jade` as extension of your Jade files.
25
28
  ## Installing Pug
26
29
  Install Pug globally via npm:
27
30
  ```bash
28
- npm install -g pug-cli
31
+ npm install --global pug-cli
29
32
  ```
30
33
 
31
34
  Require Pug runtime.js:
@@ -59,7 +62,22 @@ Rails.application.config.assets.paths << Rails.root.join('app/assets/templates')
59
62
  ```
60
63
 
61
64
  ## Running Tests
62
- Refer to [pug-ruby](https://github.com/yivo/pug-ruby)
65
+ Install bundler:
66
+ ```bash
67
+ gem install bundler
68
+ ```
69
+
70
+ Install dependencies:
71
+ ```bash
72
+ cd pug-rails && bundle && appraisal install
73
+ ```
74
+
75
+ Run tests:
76
+ ```bash
77
+ cd pug-rails && appraisal rake test
78
+ ```
79
+
80
+ To test `pug-ruby` — refer to [pug-ruby](https://github.com/yivo/pug-ruby)
63
81
 
64
82
  ## Versioning
65
83
  Prior to version 2.0 version of the gem was the same as the version of the Jade runtime that it contains.
data/Rakefile ADDED
@@ -0,0 +1,11 @@
1
+ # encoding: utf-8
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler'
5
+ require 'bundler/setup'
6
+ require 'json'
7
+ require 'rake/testtask'
8
+
9
+ Rake::TestTask.new { |t| t.libs << 'test' }
10
+
11
+ task default: :test
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 3"
6
+ gem "sprockets", "~> 2"
7
+ gem "pry-byebug"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,124 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ pug-rails (2.0.3)
5
+ pug-ruby (~> 1.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (3.2.22.5)
11
+ actionpack (= 3.2.22.5)
12
+ mail (~> 2.5.4)
13
+ actionpack (3.2.22.5)
14
+ activemodel (= 3.2.22.5)
15
+ activesupport (= 3.2.22.5)
16
+ builder (~> 3.0.0)
17
+ erubis (~> 2.7.0)
18
+ journey (~> 1.0.4)
19
+ rack (~> 1.4.5)
20
+ rack-cache (~> 1.2)
21
+ rack-test (~> 0.6.1)
22
+ sprockets (~> 2.2.1)
23
+ activemodel (3.2.22.5)
24
+ activesupport (= 3.2.22.5)
25
+ builder (~> 3.0.0)
26
+ activerecord (3.2.22.5)
27
+ activemodel (= 3.2.22.5)
28
+ activesupport (= 3.2.22.5)
29
+ arel (~> 3.0.2)
30
+ tzinfo (~> 0.3.29)
31
+ activeresource (3.2.22.5)
32
+ activemodel (= 3.2.22.5)
33
+ activesupport (= 3.2.22.5)
34
+ activesupport (3.2.22.5)
35
+ i18n (~> 0.6, >= 0.6.4)
36
+ multi_json (~> 1.0)
37
+ appraisal (2.1.0)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ arel (3.0.3)
42
+ builder (3.0.4)
43
+ byebug (9.0.6)
44
+ coderay (1.1.1)
45
+ erubis (2.7.0)
46
+ hike (1.2.3)
47
+ i18n (0.7.0)
48
+ journey (1.0.4)
49
+ json (1.8.3)
50
+ mail (2.5.4)
51
+ mime-types (~> 1.16)
52
+ treetop (~> 1.4.8)
53
+ method_source (0.8.2)
54
+ mime-types (1.25.1)
55
+ mini_portile2 (2.1.0)
56
+ multi_json (1.12.1)
57
+ nokogiri (1.6.8.1)
58
+ mini_portile2 (~> 2.1.0)
59
+ polyglot (0.3.5)
60
+ power_assert (0.4.1)
61
+ pry (0.10.4)
62
+ coderay (~> 1.1.0)
63
+ method_source (~> 0.8.1)
64
+ slop (~> 3.4)
65
+ pry-byebug (3.4.2)
66
+ byebug (~> 9.0)
67
+ pry (~> 0.10)
68
+ pug-ruby (1.0.2)
69
+ rack (1.4.7)
70
+ rack-cache (1.6.1)
71
+ rack (>= 0.4)
72
+ rack-ssl (1.3.4)
73
+ rack
74
+ rack-test (0.6.3)
75
+ rack (>= 1.0)
76
+ rails (3.2.22.5)
77
+ actionmailer (= 3.2.22.5)
78
+ actionpack (= 3.2.22.5)
79
+ activerecord (= 3.2.22.5)
80
+ activeresource (= 3.2.22.5)
81
+ activesupport (= 3.2.22.5)
82
+ bundler (~> 1.0)
83
+ railties (= 3.2.22.5)
84
+ railties (3.2.22.5)
85
+ actionpack (= 3.2.22.5)
86
+ activesupport (= 3.2.22.5)
87
+ rack-ssl (~> 1.3.2)
88
+ rake (>= 0.8.7)
89
+ rdoc (~> 3.4)
90
+ thor (>= 0.14.6, < 2.0)
91
+ rake (10.5.0)
92
+ rdoc (3.12.2)
93
+ json (~> 1.4)
94
+ slop (3.6.0)
95
+ sprockets (2.2.3)
96
+ hike (~> 1.2)
97
+ multi_json (~> 1.0)
98
+ rack (~> 1.0)
99
+ tilt (~> 1.1, != 1.3.0)
100
+ test-unit (3.2.3)
101
+ power_assert
102
+ thor (0.19.4)
103
+ tilt (1.4.1)
104
+ treetop (1.4.15)
105
+ polyglot
106
+ polyglot (>= 0.3.1)
107
+ tzinfo (0.3.52)
108
+
109
+ PLATFORMS
110
+ ruby
111
+
112
+ DEPENDENCIES
113
+ appraisal (~> 2.1)
114
+ bundler (~> 1.7)
115
+ nokogiri (~> 1.6, < 1.7)
116
+ pry-byebug
117
+ pug-rails!
118
+ rails (~> 3)
119
+ rake (~> 10.0)
120
+ sprockets (~> 2)
121
+ test-unit (~> 3.1)
122
+
123
+ BUNDLED WITH
124
+ 1.13.2
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 4"
6
+ gem "sprockets", "~> 3"
7
+ gem "pry-byebug"
8
+
9
+ gemspec :path => "../"
@@ -0,0 +1,138 @@
1
+ PATH
2
+ remote: ../
3
+ specs:
4
+ pug-rails (2.0.3)
5
+ pug-ruby (~> 1.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ actionmailer (4.2.7.1)
11
+ actionpack (= 4.2.7.1)
12
+ actionview (= 4.2.7.1)
13
+ activejob (= 4.2.7.1)
14
+ mail (~> 2.5, >= 2.5.4)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ actionpack (4.2.7.1)
17
+ actionview (= 4.2.7.1)
18
+ activesupport (= 4.2.7.1)
19
+ rack (~> 1.6)
20
+ rack-test (~> 0.6.2)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
+ actionview (4.2.7.1)
24
+ activesupport (= 4.2.7.1)
25
+ builder (~> 3.1)
26
+ erubis (~> 2.7.0)
27
+ rails-dom-testing (~> 1.0, >= 1.0.5)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
29
+ activejob (4.2.7.1)
30
+ activesupport (= 4.2.7.1)
31
+ globalid (>= 0.3.0)
32
+ activemodel (4.2.7.1)
33
+ activesupport (= 4.2.7.1)
34
+ builder (~> 3.1)
35
+ activerecord (4.2.7.1)
36
+ activemodel (= 4.2.7.1)
37
+ activesupport (= 4.2.7.1)
38
+ arel (~> 6.0)
39
+ activesupport (4.2.7.1)
40
+ i18n (~> 0.7)
41
+ json (~> 1.7, >= 1.7.7)
42
+ minitest (~> 5.1)
43
+ thread_safe (~> 0.3, >= 0.3.4)
44
+ tzinfo (~> 1.1)
45
+ appraisal (2.1.0)
46
+ bundler
47
+ rake
48
+ thor (>= 0.14.0)
49
+ arel (6.0.4)
50
+ builder (3.2.2)
51
+ byebug (9.0.6)
52
+ coderay (1.1.1)
53
+ concurrent-ruby (1.0.4)
54
+ erubis (2.7.0)
55
+ globalid (0.3.7)
56
+ activesupport (>= 4.1.0)
57
+ i18n (0.7.0)
58
+ json (1.8.3)
59
+ loofah (2.0.3)
60
+ nokogiri (>= 1.5.9)
61
+ mail (2.6.4)
62
+ mime-types (>= 1.16, < 4)
63
+ method_source (0.8.2)
64
+ mime-types (3.1)
65
+ mime-types-data (~> 3.2015)
66
+ mime-types-data (3.2016.0521)
67
+ mini_portile2 (2.1.0)
68
+ minitest (5.10.1)
69
+ nokogiri (1.6.8.1)
70
+ mini_portile2 (~> 2.1.0)
71
+ power_assert (0.4.1)
72
+ pry (0.10.4)
73
+ coderay (~> 1.1.0)
74
+ method_source (~> 0.8.1)
75
+ slop (~> 3.4)
76
+ pry-byebug (3.4.2)
77
+ byebug (~> 9.0)
78
+ pry (~> 0.10)
79
+ pug-ruby (1.0.2)
80
+ rack (1.6.5)
81
+ rack-test (0.6.3)
82
+ rack (>= 1.0)
83
+ rails (4.2.7.1)
84
+ actionmailer (= 4.2.7.1)
85
+ actionpack (= 4.2.7.1)
86
+ actionview (= 4.2.7.1)
87
+ activejob (= 4.2.7.1)
88
+ activemodel (= 4.2.7.1)
89
+ activerecord (= 4.2.7.1)
90
+ activesupport (= 4.2.7.1)
91
+ bundler (>= 1.3.0, < 2.0)
92
+ railties (= 4.2.7.1)
93
+ sprockets-rails
94
+ rails-deprecated_sanitizer (1.0.3)
95
+ activesupport (>= 4.2.0.alpha)
96
+ rails-dom-testing (1.0.8)
97
+ activesupport (>= 4.2.0.beta, < 5.0)
98
+ nokogiri (~> 1.6)
99
+ rails-deprecated_sanitizer (>= 1.0.1)
100
+ rails-html-sanitizer (1.0.3)
101
+ loofah (~> 2.0)
102
+ railties (4.2.7.1)
103
+ actionpack (= 4.2.7.1)
104
+ activesupport (= 4.2.7.1)
105
+ rake (>= 0.8.7)
106
+ thor (>= 0.18.1, < 2.0)
107
+ rake (10.5.0)
108
+ slop (3.6.0)
109
+ sprockets (3.7.1)
110
+ concurrent-ruby (~> 1.0)
111
+ rack (> 1, < 3)
112
+ sprockets-rails (3.2.0)
113
+ actionpack (>= 4.0)
114
+ activesupport (>= 4.0)
115
+ sprockets (>= 3.0.0)
116
+ test-unit (3.2.3)
117
+ power_assert
118
+ thor (0.19.4)
119
+ thread_safe (0.3.5)
120
+ tzinfo (1.2.2)
121
+ thread_safe (~> 0.1)
122
+
123
+ PLATFORMS
124
+ ruby
125
+
126
+ DEPENDENCIES
127
+ appraisal (~> 2.1)
128
+ bundler (~> 1.7)
129
+ nokogiri (~> 1.6, < 1.7)
130
+ pry-byebug
131
+ pug-rails!
132
+ rails (~> 4)
133
+ rake (~> 10.0)
134
+ sprockets (~> 3)
135
+ test-unit (~> 3.1)
136
+
137
+ BUNDLED WITH
138
+ 1.13.2