slim-rails 2.1.5 → 3.0.0

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: 1df82fc9b49ed94767c07d4a2e3abda72e240a2f
4
- data.tar.gz: 85dc32f35bfe7565d68a52f30ec4e30724021bd3
3
+ metadata.gz: d7d4bb7e7f7d8dfae0753066a36fbe7f7f4912e7
4
+ data.tar.gz: 0bfd931060f0ec2525d74a3d1d4041b8f46874e8
5
5
  SHA512:
6
- metadata.gz: 5f0488e699e05135c3136137450ca319a34b40d96f4d9f318717d13dfc11eab11ee1db47585a4aaaa90f14d524352f04c078da95353bc8c8bee2fb69c6187d11
7
- data.tar.gz: 602eee886fe8786aeee6748680012b27a6f88e39d6e394067536d7b85b31cde35bc16636f4fe3bb7f38c0e0ede31c2166f0c3d19211012a3d9dde81b34c051e7
6
+ metadata.gz: 64c1baabb5a565e19687ebfa3b89aad260f5c3e9dca0cfb91d72c089a235fe538ca2fb33311827cea25869459bc619df0c22b6a04394d15827f97c70556128c0
7
+ data.tar.gz: b5656af0e8b62b5c19b4150721d41b841003312c7855b45d7f05563be671d4a4af299a2c868c78a611a1838cda4fc38984feccb396f129a15d26c3e042ad6cb6
data/.rvmrc CHANGED
@@ -4,7 +4,7 @@
4
4
  # development environment upon cd'ing into the directory
5
5
 
6
6
  # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
7
- environment_id="ruby-2.0.0-p353@slim-rails"
7
+ environment_id="2.1.5@slim-rails"
8
8
 
9
9
  #
10
10
  # Uncomment the following lines if you want to verify rvm version per project
data/Gemfile CHANGED
@@ -2,6 +2,6 @@ source :rubygems
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'erubis'
6
- gem 'haml'
5
+ # gem 'erubis'
6
+ # gem 'haml'
7
7
  # gem 'hamlet'
@@ -1,5 +1,5 @@
1
1
  module Slim
2
2
  module Rails
3
- VERSION = "2.1.5"
3
+ VERSION = "3.0.0"
4
4
  end
5
5
  end
@@ -16,16 +16,17 @@ Gem::Specification.new do |gem|
16
16
  gem.require_paths = ['lib']
17
17
  gem.version = Slim::Rails::VERSION
18
18
 
19
- gem.add_development_dependency 'rake', '~> 0.9'
19
+ gem.add_development_dependency 'rake', '~> 10.4'
20
20
  gem.add_development_dependency 'rocco', '~> 0.8'
21
- gem.add_development_dependency 'redcarpet', '~> 1.0'
22
- gem.add_development_dependency 'awesome_print', '~> 1.0'
23
- gem.add_development_dependency 'guard', '~> 0.10'
24
- gem.add_development_dependency 'guard-minitest', '~> 0.4'
21
+ gem.add_development_dependency 'redcarpet', '~> 3.2'
22
+ gem.add_development_dependency 'awesome_print', '~> 1.2'
23
+ gem.add_development_dependency 'guard', '~> 2.10'
24
+ gem.add_development_dependency 'guard-minitest', '~> 2.3'
25
25
  gem.add_development_dependency 'guard-rocco', ['>= 0.0.3', '< 1.0.0']
26
26
  gem.add_runtime_dependency 'activesupport', ['>= 3.0', '< 4.2']
27
27
  gem.add_runtime_dependency 'actionpack', ['>= 3.0', '< 4.2']
28
+ gem.add_runtime_dependency 'actionmailer', ['>= 3.0', '< 4.2']
28
29
  gem.add_runtime_dependency 'railties', ['>= 3.0', '< 4.2']
29
- gem.add_runtime_dependency 'slim', '~> 2.0'
30
+ gem.add_runtime_dependency 'slim', '~> 3.0'
30
31
  end
31
32
 
@@ -1,4 +1,5 @@
1
- require 'test/unit'
1
+ require 'rubygems'
2
+ require 'minitest/autorun'
2
3
  require 'rails/all'
3
4
  require 'rails/generators'
4
5
  require 'rails/generators/test_case'
@@ -15,7 +16,9 @@ module Rails
15
16
  end
16
17
  Rails.application.config.root = Rails.root
17
18
 
18
- Dir[File.join File.dirname(__FILE__), 'support', '**', '*.rb'].each {|f| require f}
19
+ Rails::Generators.configure! Rails.application.config.generators
20
+
21
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
19
22
 
20
23
  def copy_routes
21
24
  routes = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', 'routes.rb'))
@@ -24,15 +27,6 @@ def copy_routes
24
27
  FileUtils.cp File.expand_path(routes), destination
25
28
  end
26
29
 
27
- # Asserts the given class exists in the given content. When a block is given,
28
- # it yields the content of the class.
29
- #
30
- # assert_file "test/functional/accounts_controller_test.rb" do |controller_test|
31
- # assert_class "AccountsControllerTest", controller_test do |klass|
32
- # assert_match /context "index action"/, klass
33
- # end
34
- # end
35
- #
36
30
  def assert_class(klass, content)
37
31
  assert content =~ /class #{klass}(\(.+\))?(.*?)\nend/m, "Expected to have class #{klass}"
38
32
  yield $2.strip if block_given?
metadata CHANGED
@@ -1,193 +1,213 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Almeida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-16 00:00:00.000000000 Z
11
+ date: 2014-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: '10.4'
20
20
  type: :development
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.9'
26
+ version: '10.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rocco
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.8'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.8'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: redcarpet
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: '3.2'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.0'
54
+ version: '3.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: awesome_print
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: '1.2'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.0'
68
+ version: '1.2'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0.10'
75
+ version: '2.10'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.10'
82
+ version: '2.10'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: guard-minitest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0.4'
89
+ version: '2.3'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0.4'
96
+ version: '2.3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: guard-rocco
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: 0.0.3
104
- - - <
104
+ - - "<"
105
105
  - !ruby/object:Gem::Version
106
106
  version: 1.0.0
107
107
  type: :development
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - '>='
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
113
  version: 0.0.3
114
- - - <
114
+ - - "<"
115
115
  - !ruby/object:Gem::Version
116
116
  version: 1.0.0
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: activesupport
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
- - - '>='
121
+ - - ">="
122
122
  - !ruby/object:Gem::Version
123
123
  version: '3.0'
124
- - - <
124
+ - - "<"
125
125
  - !ruby/object:Gem::Version
126
126
  version: '4.2'
127
127
  type: :runtime
128
128
  prerelease: false
129
129
  version_requirements: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - '>='
131
+ - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: '3.0'
134
- - - <
134
+ - - "<"
135
135
  - !ruby/object:Gem::Version
136
136
  version: '4.2'
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: actionpack
139
139
  requirement: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - '>='
141
+ - - ">="
142
142
  - !ruby/object:Gem::Version
143
143
  version: '3.0'
144
- - - <
144
+ - - "<"
145
145
  - !ruby/object:Gem::Version
146
146
  version: '4.2'
147
147
  type: :runtime
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - '>='
151
+ - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '3.0'
154
- - - <
154
+ - - "<"
155
+ - !ruby/object:Gem::Version
156
+ version: '4.2'
157
+ - !ruby/object:Gem::Dependency
158
+ name: actionmailer
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '3.0'
164
+ - - "<"
165
+ - !ruby/object:Gem::Version
166
+ version: '4.2'
167
+ type: :runtime
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '3.0'
174
+ - - "<"
155
175
  - !ruby/object:Gem::Version
156
176
  version: '4.2'
157
177
  - !ruby/object:Gem::Dependency
158
178
  name: railties
159
179
  requirement: !ruby/object:Gem::Requirement
160
180
  requirements:
161
- - - '>='
181
+ - - ">="
162
182
  - !ruby/object:Gem::Version
163
183
  version: '3.0'
164
- - - <
184
+ - - "<"
165
185
  - !ruby/object:Gem::Version
166
186
  version: '4.2'
167
187
  type: :runtime
168
188
  prerelease: false
169
189
  version_requirements: !ruby/object:Gem::Requirement
170
190
  requirements:
171
- - - '>='
191
+ - - ">="
172
192
  - !ruby/object:Gem::Version
173
193
  version: '3.0'
174
- - - <
194
+ - - "<"
175
195
  - !ruby/object:Gem::Version
176
196
  version: '4.2'
177
197
  - !ruby/object:Gem::Dependency
178
198
  name: slim
179
199
  requirement: !ruby/object:Gem::Requirement
180
200
  requirements:
181
- - - ~>
201
+ - - "~>"
182
202
  - !ruby/object:Gem::Version
183
- version: '2.0'
203
+ version: '3.0'
184
204
  type: :runtime
185
205
  prerelease: false
186
206
  version_requirements: !ruby/object:Gem::Requirement
187
207
  requirements:
188
- - - ~>
208
+ - - "~>"
189
209
  - !ruby/object:Gem::Version
190
- version: '2.0'
210
+ version: '3.0'
191
211
  description: Provides the generator settings required for Rails 3 and 4 to use Slim
192
212
  email:
193
213
  - lalmeida08@gmail.com
@@ -195,9 +215,9 @@ executables: []
195
215
  extensions: []
196
216
  extra_rdoc_files: []
197
217
  files:
198
- - .gitignore
199
- - .rvmrc
200
- - .travis.yml
218
+ - ".gitignore"
219
+ - ".rvmrc"
220
+ - ".travis.yml"
201
221
  - Gemfile
202
222
  - Guardfile
203
223
  - LICENSE
@@ -234,17 +254,17 @@ require_paths:
234
254
  - lib
235
255
  required_ruby_version: !ruby/object:Gem::Requirement
236
256
  requirements:
237
- - - '>='
257
+ - - ">="
238
258
  - !ruby/object:Gem::Version
239
259
  version: '0'
240
260
  required_rubygems_version: !ruby/object:Gem::Requirement
241
261
  requirements:
242
- - - '>='
262
+ - - ">="
243
263
  - !ruby/object:Gem::Version
244
264
  version: '0'
245
265
  requirements: []
246
266
  rubyforge_project:
247
- rubygems_version: 2.2.2
267
+ rubygems_version: 2.4.5
248
268
  signing_key:
249
269
  specification_version: 4
250
270
  summary: Slim templates generator for Rails 3 and 4