pug-rails 2.0.3 → 3.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +32 -13
  3. data/Appraisals +33 -11
  4. data/Gemfile +6 -6
  5. data/Gemfile.lock +70 -67
  6. data/{vendor/assets/javascripts/pug/LICENCE → LICENSE} +7 -5
  7. data/README.md +5 -5
  8. data/Rakefile +3 -8
  9. data/gemfiles/{rails_3.gemfile → rails_3.1.gemfile} +2 -2
  10. data/gemfiles/{rails_3.gemfile.lock → rails_3.1.gemfile.lock} +11 -11
  11. data/gemfiles/rails_3.2.gemfile +9 -0
  12. data/gemfiles/rails_3.2.gemfile.lock +124 -0
  13. data/gemfiles/rails_4.1_with_sprockets_2.gemfile +9 -0
  14. data/gemfiles/rails_4.1_with_sprockets_2.gemfile.lock +140 -0
  15. data/gemfiles/{rails_4_with_sprockets_3.gemfile → rails_4.1_with_sprockets_3.gemfile} +2 -2
  16. data/gemfiles/{rails_4_with_sprockets_3.gemfile.lock → rails_4.1_with_sprockets_3.gemfile.lock} +46 -48
  17. data/gemfiles/rails_4.2_with_sprockets_2.gemfile +9 -0
  18. data/gemfiles/rails_4.2_with_sprockets_2.gemfile.lock +140 -0
  19. data/gemfiles/{rails_4_with_sprockets_2.gemfile → rails_4.2_with_sprockets_3.gemfile} +2 -2
  20. data/gemfiles/{rails_4_with_sprockets_2.gemfile.lock → rails_4.2_with_sprockets_3.gemfile.lock} +46 -48
  21. data/gemfiles/{rails_5.gemfile → rails_5.0.gemfile} +2 -2
  22. data/gemfiles/{rails_5.gemfile.lock → rails_5.0.gemfile.lock} +59 -59
  23. data/gemfiles/rails_5.1.gemfile +9 -0
  24. data/gemfiles/rails_5.1.gemfile.lock +142 -0
  25. data/lib/jade-rails/railtie.rb +14 -14
  26. data/lib/jade-rails/sprockets/transformer.rb +28 -4
  27. data/lib/pug-rails.rb +8 -23
  28. data/lib/pug-rails/railtie.rb +14 -14
  29. data/lib/pug-rails/sprockets/transformer.rb +28 -4
  30. data/lib/pug-rails/version.rb +1 -0
  31. data/pug-rails.gemspec +18 -16
  32. data/test/fixtures/javascripts/{application.js → application-1.js} +0 -0
  33. data/test/fixtures/javascripts/application-1.js.expected +10 -0
  34. data/test/fixtures/javascripts/application-2.js +2 -0
  35. data/test/test-helper.rb +62 -0
  36. data/test/test-pug-rails.rb +21 -76
  37. metadata +33 -21
  38. data/vendor/assets/javascripts/jade/LICENCE +0 -22
  39. data/vendor/assets/javascripts/jade/runtime.js +0 -252
  40. data/vendor/assets/javascripts/pug/runtime.js +0 -259
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 3.2"
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.2.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.8.6)
48
+ journey (1.0.4)
49
+ json (1.8.6)
50
+ mail (2.5.5)
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 (1.0.2)
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.7.0)
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.5)
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.53)
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.2)
119
+ rake (~> 10.0)
120
+ sprockets (~> 2)
121
+ test-unit (~> 3.1)
122
+
123
+ BUNDLED WITH
124
+ 1.15.3
@@ -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", "~> 2"
7
+ gem "pry-byebug"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,140 @@
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.9)
11
+ actionpack (= 4.2.9)
12
+ actionview (= 4.2.9)
13
+ activejob (= 4.2.9)
14
+ mail (~> 2.5, >= 2.5.4)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ actionpack (4.2.9)
17
+ actionview (= 4.2.9)
18
+ activesupport (= 4.2.9)
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.9)
24
+ activesupport (= 4.2.9)
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.3)
29
+ activejob (4.2.9)
30
+ activesupport (= 4.2.9)
31
+ globalid (>= 0.3.0)
32
+ activemodel (4.2.9)
33
+ activesupport (= 4.2.9)
34
+ builder (~> 3.1)
35
+ activerecord (4.2.9)
36
+ activemodel (= 4.2.9)
37
+ activesupport (= 4.2.9)
38
+ arel (~> 6.0)
39
+ activesupport (4.2.9)
40
+ i18n (~> 0.7)
41
+ minitest (~> 5.1)
42
+ thread_safe (~> 0.3, >= 0.3.4)
43
+ tzinfo (~> 1.1)
44
+ appraisal (2.2.0)
45
+ bundler
46
+ rake
47
+ thor (>= 0.14.0)
48
+ arel (6.0.4)
49
+ builder (3.2.3)
50
+ byebug (9.0.6)
51
+ coderay (1.1.1)
52
+ erubis (2.7.0)
53
+ globalid (0.4.0)
54
+ activesupport (>= 4.2.0)
55
+ hike (1.2.3)
56
+ i18n (0.8.6)
57
+ loofah (2.0.3)
58
+ nokogiri (>= 1.5.9)
59
+ mail (2.6.6)
60
+ mime-types (>= 1.16, < 4)
61
+ method_source (0.8.2)
62
+ mime-types (3.1)
63
+ mime-types-data (~> 3.2015)
64
+ mime-types-data (3.2016.0521)
65
+ mini_portile2 (2.1.0)
66
+ minitest (5.10.3)
67
+ multi_json (1.12.1)
68
+ nokogiri (1.6.8.1)
69
+ mini_portile2 (~> 2.1.0)
70
+ power_assert (1.0.2)
71
+ pry (0.10.4)
72
+ coderay (~> 1.1.0)
73
+ method_source (~> 0.8.1)
74
+ slop (~> 3.4)
75
+ pry-byebug (3.4.2)
76
+ byebug (~> 9.0)
77
+ pry (~> 0.10)
78
+ pug-ruby (1.0.2)
79
+ rack (1.6.8)
80
+ rack-test (0.6.3)
81
+ rack (>= 1.0)
82
+ rails (4.2.9)
83
+ actionmailer (= 4.2.9)
84
+ actionpack (= 4.2.9)
85
+ actionview (= 4.2.9)
86
+ activejob (= 4.2.9)
87
+ activemodel (= 4.2.9)
88
+ activerecord (= 4.2.9)
89
+ activesupport (= 4.2.9)
90
+ bundler (>= 1.3.0, < 2.0)
91
+ railties (= 4.2.9)
92
+ sprockets-rails
93
+ rails-deprecated_sanitizer (1.0.3)
94
+ activesupport (>= 4.2.0.alpha)
95
+ rails-dom-testing (1.0.8)
96
+ activesupport (>= 4.2.0.beta, < 5.0)
97
+ nokogiri (~> 1.6)
98
+ rails-deprecated_sanitizer (>= 1.0.1)
99
+ rails-html-sanitizer (1.0.3)
100
+ loofah (~> 2.0)
101
+ railties (4.2.9)
102
+ actionpack (= 4.2.9)
103
+ activesupport (= 4.2.9)
104
+ rake (>= 0.8.7)
105
+ thor (>= 0.18.1, < 2.0)
106
+ rake (10.5.0)
107
+ slop (3.6.0)
108
+ sprockets (2.12.4)
109
+ hike (~> 1.2)
110
+ multi_json (~> 1.0)
111
+ rack (~> 1.0)
112
+ tilt (~> 1.1, != 1.3.0)
113
+ sprockets-rails (2.3.3)
114
+ actionpack (>= 3.0)
115
+ activesupport (>= 3.0)
116
+ sprockets (>= 2.8, < 4.0)
117
+ test-unit (3.2.5)
118
+ power_assert
119
+ thor (0.19.4)
120
+ thread_safe (0.3.6)
121
+ tilt (1.4.1)
122
+ tzinfo (1.2.3)
123
+ thread_safe (~> 0.1)
124
+
125
+ PLATFORMS
126
+ ruby
127
+
128
+ DEPENDENCIES
129
+ appraisal (~> 2.1)
130
+ bundler (~> 1.7)
131
+ nokogiri (~> 1.6, < 1.7)
132
+ pry-byebug
133
+ pug-rails!
134
+ rails (~> 4)
135
+ rake (~> 10.0)
136
+ sprockets (~> 2)
137
+ test-unit (~> 3.1)
138
+
139
+ BUNDLED WITH
140
+ 1.15.3
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 4"
5
+ gem "rails", "~> 4.1"
6
6
  gem "sprockets", "~> 3"
7
7
  gem "pry-byebug"
8
8
 
9
- gemspec :path => "../"
9
+ gemspec path: "../"
@@ -1,5 +1,5 @@
1
1
  PATH
2
- remote: ../
2
+ remote: ..
3
3
  specs:
4
4
  pug-rails (2.0.3)
5
5
  pug-ruby (~> 1.0)
@@ -7,68 +7,66 @@ PATH
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
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)
10
+ actionmailer (4.2.9)
11
+ actionpack (= 4.2.9)
12
+ actionview (= 4.2.9)
13
+ activejob (= 4.2.9)
14
14
  mail (~> 2.5, >= 2.5.4)
15
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)
16
+ actionpack (4.2.9)
17
+ actionview (= 4.2.9)
18
+ activesupport (= 4.2.9)
19
19
  rack (~> 1.6)
20
20
  rack-test (~> 0.6.2)
21
21
  rails-dom-testing (~> 1.0, >= 1.0.5)
22
22
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
- actionview (4.2.7.1)
24
- activesupport (= 4.2.7.1)
23
+ actionview (4.2.9)
24
+ activesupport (= 4.2.9)
25
25
  builder (~> 3.1)
26
26
  erubis (~> 2.7.0)
27
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)
28
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
29
+ activejob (4.2.9)
30
+ activesupport (= 4.2.9)
31
31
  globalid (>= 0.3.0)
32
- activemodel (4.2.7.1)
33
- activesupport (= 4.2.7.1)
32
+ activemodel (4.2.9)
33
+ activesupport (= 4.2.9)
34
34
  builder (~> 3.1)
35
- activerecord (4.2.7.1)
36
- activemodel (= 4.2.7.1)
37
- activesupport (= 4.2.7.1)
35
+ activerecord (4.2.9)
36
+ activemodel (= 4.2.9)
37
+ activesupport (= 4.2.9)
38
38
  arel (~> 6.0)
39
- activesupport (4.2.7.1)
39
+ activesupport (4.2.9)
40
40
  i18n (~> 0.7)
41
- json (~> 1.7, >= 1.7.7)
42
41
  minitest (~> 5.1)
43
42
  thread_safe (~> 0.3, >= 0.3.4)
44
43
  tzinfo (~> 1.1)
45
- appraisal (2.1.0)
44
+ appraisal (2.2.0)
46
45
  bundler
47
46
  rake
48
47
  thor (>= 0.14.0)
49
48
  arel (6.0.4)
50
- builder (3.2.2)
49
+ builder (3.2.3)
51
50
  byebug (9.0.6)
52
51
  coderay (1.1.1)
53
- concurrent-ruby (1.0.4)
52
+ concurrent-ruby (1.0.5)
54
53
  erubis (2.7.0)
55
- globalid (0.3.7)
56
- activesupport (>= 4.1.0)
57
- i18n (0.7.0)
58
- json (1.8.3)
54
+ globalid (0.4.0)
55
+ activesupport (>= 4.2.0)
56
+ i18n (0.8.6)
59
57
  loofah (2.0.3)
60
58
  nokogiri (>= 1.5.9)
61
- mail (2.6.4)
59
+ mail (2.6.6)
62
60
  mime-types (>= 1.16, < 4)
63
61
  method_source (0.8.2)
64
62
  mime-types (3.1)
65
63
  mime-types-data (~> 3.2015)
66
64
  mime-types-data (3.2016.0521)
67
65
  mini_portile2 (2.1.0)
68
- minitest (5.10.1)
66
+ minitest (5.10.3)
69
67
  nokogiri (1.6.8.1)
70
68
  mini_portile2 (~> 2.1.0)
71
- power_assert (0.4.1)
69
+ power_assert (1.0.2)
72
70
  pry (0.10.4)
73
71
  coderay (~> 1.1.0)
74
72
  method_source (~> 0.8.1)
@@ -77,19 +75,19 @@ GEM
77
75
  byebug (~> 9.0)
78
76
  pry (~> 0.10)
79
77
  pug-ruby (1.0.2)
80
- rack (1.6.5)
78
+ rack (1.6.8)
81
79
  rack-test (0.6.3)
82
80
  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)
81
+ rails (4.2.9)
82
+ actionmailer (= 4.2.9)
83
+ actionpack (= 4.2.9)
84
+ actionview (= 4.2.9)
85
+ activejob (= 4.2.9)
86
+ activemodel (= 4.2.9)
87
+ activerecord (= 4.2.9)
88
+ activesupport (= 4.2.9)
91
89
  bundler (>= 1.3.0, < 2.0)
92
- railties (= 4.2.7.1)
90
+ railties (= 4.2.9)
93
91
  sprockets-rails
94
92
  rails-deprecated_sanitizer (1.0.3)
95
93
  activesupport (>= 4.2.0.alpha)
@@ -99,9 +97,9 @@ GEM
99
97
  rails-deprecated_sanitizer (>= 1.0.1)
100
98
  rails-html-sanitizer (1.0.3)
101
99
  loofah (~> 2.0)
102
- railties (4.2.7.1)
103
- actionpack (= 4.2.7.1)
104
- activesupport (= 4.2.7.1)
100
+ railties (4.2.9)
101
+ actionpack (= 4.2.9)
102
+ activesupport (= 4.2.9)
105
103
  rake (>= 0.8.7)
106
104
  thor (>= 0.18.1, < 2.0)
107
105
  rake (10.5.0)
@@ -113,11 +111,11 @@ GEM
113
111
  actionpack (>= 4.0)
114
112
  activesupport (>= 4.0)
115
113
  sprockets (>= 3.0.0)
116
- test-unit (3.2.3)
114
+ test-unit (3.2.5)
117
115
  power_assert
118
116
  thor (0.19.4)
119
- thread_safe (0.3.5)
120
- tzinfo (1.2.2)
117
+ thread_safe (0.3.6)
118
+ tzinfo (1.2.3)
121
119
  thread_safe (~> 0.1)
122
120
 
123
121
  PLATFORMS
@@ -129,10 +127,10 @@ DEPENDENCIES
129
127
  nokogiri (~> 1.6, < 1.7)
130
128
  pry-byebug
131
129
  pug-rails!
132
- rails (~> 4)
130
+ rails (~> 4.1)
133
131
  rake (~> 10.0)
134
132
  sprockets (~> 3)
135
133
  test-unit (~> 3.1)
136
134
 
137
135
  BUNDLED WITH
138
- 1.13.2
136
+ 1.15.3