slim-rails 1.1.1 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile
CHANGED
data/lib/slim-rails/version.rb
CHANGED
data/slim-rails.gemspec
CHANGED
@@ -25,6 +25,6 @@ Gem::Specification.new do |gem|
|
|
25
25
|
gem.add_runtime_dependency 'activesupport', ['>= 3.0', '< 4.1']
|
26
26
|
gem.add_runtime_dependency 'actionpack', ['>= 3.0', '< 4.1']
|
27
27
|
gem.add_runtime_dependency 'railties', ['>= 3.0', '< 4.1']
|
28
|
-
gem.add_runtime_dependency 'slim', '~>
|
28
|
+
gem.add_runtime_dependency 'slim', '~> 2.0'
|
29
29
|
end
|
30
30
|
|
@@ -11,7 +11,7 @@ class Slim::Generators::ControllerGeneratorTest < Rails::Generators::TestCase
|
|
11
11
|
|
12
12
|
test "should invoke template engine" do
|
13
13
|
run_generator
|
14
|
-
assert_file File.join
|
15
|
-
assert_file File.join
|
14
|
+
assert_file File.join("app", "views", "account", "foo.html.slim"), %r(app/views/account/foo\.html\.slim)
|
15
|
+
assert_file File.join("app", "views", "account", "bar.html.slim"), %r(app/views/account/bar\.html\.slim)
|
16
16
|
end
|
17
17
|
end
|
@@ -4,7 +4,7 @@ require 'lib/generators/slim/testing_helper'
|
|
4
4
|
class Slim::Generators::ScaffoldGeneratorTest < Rails::Generators::TestCase
|
5
5
|
destination File.join(Rails.root)
|
6
6
|
tests Rails::Generators::ScaffoldGenerator
|
7
|
-
arguments %w(product_line title:string price:integer --template-engine slim)
|
7
|
+
arguments %w(product_line title:string price:integer --template-engine slim --orm active-record)
|
8
8
|
|
9
9
|
setup :prepare_destination
|
10
10
|
setup :copy_routes
|
@@ -18,14 +18,9 @@ class Slim::Generators::ScaffoldGeneratorTest < Rails::Generators::TestCase
|
|
18
18
|
|
19
19
|
test "should revoke template engine" do
|
20
20
|
run_generator
|
21
|
-
run_generator ["product_line"], :behavior => :revoke
|
21
|
+
run_generator ["product_line", "--orm", "active-record"], :behavior => :revoke
|
22
22
|
|
23
23
|
assert_no_file File.join "app", "views", "product_lines"
|
24
24
|
assert_no_file File.join "app", "views", "layouts", "product_lines.html.slim"
|
25
25
|
end
|
26
|
-
|
27
|
-
test "should invoke form builder" do
|
28
|
-
run_generator %w(product_line title:string price:integer --template-engine slim --form-builder some-form-builder)
|
29
|
-
assert_no_file File.join "app", "views", "product_lines", "_form.html.slim"
|
30
|
-
end
|
31
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slim-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03
|
12
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &83751570 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0.9'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *83751570
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rocco
|
27
|
-
requirement: &
|
27
|
+
requirement: &83751270 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0.8'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *83751270
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: redcarpet
|
38
|
-
requirement: &
|
38
|
+
requirement: &83750990 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '1.0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *83750990
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: awesome_print
|
49
|
-
requirement: &
|
49
|
+
requirement: &83750750 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '1.0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *83750750
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: guard
|
60
|
-
requirement: &
|
60
|
+
requirement: &83750490 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0.10'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *83750490
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: guard-minitest
|
71
|
-
requirement: &
|
71
|
+
requirement: &83750220 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0.4'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *83750220
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: guard-rocco
|
82
|
-
requirement: &
|
82
|
+
requirement: &83749970 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: 0.0.3
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *83749970
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: activesupport
|
93
|
-
requirement: &
|
93
|
+
requirement: &83749660 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -101,10 +101,10 @@ dependencies:
|
|
101
101
|
version: '4.1'
|
102
102
|
type: :runtime
|
103
103
|
prerelease: false
|
104
|
-
version_requirements: *
|
104
|
+
version_requirements: *83749660
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: actionpack
|
107
|
-
requirement: &
|
107
|
+
requirement: &83749140 !ruby/object:Gem::Requirement
|
108
108
|
none: false
|
109
109
|
requirements:
|
110
110
|
- - ! '>='
|
@@ -115,10 +115,10 @@ dependencies:
|
|
115
115
|
version: '4.1'
|
116
116
|
type: :runtime
|
117
117
|
prerelease: false
|
118
|
-
version_requirements: *
|
118
|
+
version_requirements: *83749140
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
120
|
name: railties
|
121
|
-
requirement: &
|
121
|
+
requirement: &83748300 !ruby/object:Gem::Requirement
|
122
122
|
none: false
|
123
123
|
requirements:
|
124
124
|
- - ! '>='
|
@@ -129,18 +129,18 @@ dependencies:
|
|
129
129
|
version: '4.1'
|
130
130
|
type: :runtime
|
131
131
|
prerelease: false
|
132
|
-
version_requirements: *
|
132
|
+
version_requirements: *83748300
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
134
|
name: slim
|
135
|
-
requirement: &
|
135
|
+
requirement: &83747580 !ruby/object:Gem::Requirement
|
136
136
|
none: false
|
137
137
|
requirements:
|
138
138
|
- - ~>
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: '
|
140
|
+
version: '2.0'
|
141
141
|
type: :runtime
|
142
142
|
prerelease: false
|
143
|
-
version_requirements: *
|
143
|
+
version_requirements: *83747580
|
144
144
|
description: Provides the generator settings required for Rails 3 to use Slim
|
145
145
|
email:
|
146
146
|
- lalmeida08@gmail.com
|