chili 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -96,9 +96,9 @@ Access in your overrides/extension views through the namespaced model:
|
|
96
96
|
<%= current_user.becomes(ChiliSocial::User).likes %>
|
97
97
|
```
|
98
98
|
|
99
|
-
###
|
99
|
+
### Stylesheets/javascripts
|
100
100
|
|
101
|
-
|
101
|
+
Files added to `app/assets/chili_social/javascripts|stylesheets` are automatically injected into the layout using a pre-generated override:
|
102
102
|
|
103
103
|
```erb
|
104
104
|
<% # app/overrides/layouts/application/assets.html.erb.deface %>
|
@@ -107,6 +107,8 @@ Add files as usual in `app/assets/chili_social/javascripts|stylesheets` and inje
|
|
107
107
|
<%= javascript_include_tag 'chili_social/application' %>
|
108
108
|
```
|
109
109
|
|
110
|
+
If you don't need any css/js in your extension, you can remove this file.
|
111
|
+
|
110
112
|
## Gotchas
|
111
113
|
|
112
114
|
- Chili will not be able to automount if you use a catch-all route in your main app (ie `match '*a', to: 'errors#routing'`), you will have to remove the catch-all or manually add the engine to the main app's routes file.
|
data/lib/chili/template.rb
CHANGED
@@ -36,6 +36,7 @@ end
|
|
36
36
|
# Remove dummy stuff
|
37
37
|
remove_dir 'test'
|
38
38
|
|
39
|
+
# Set up rspec
|
39
40
|
inject_into_file "lib/#{name}/engine.rb", :after => " g.scaffold_controller :chili\n" do <<-RUBY
|
40
41
|
g.test_framework :rspec, view_specs: false, routing_specs: false, controller_specs: false
|
41
42
|
g.integration_tool :rspec
|
@@ -74,5 +75,13 @@ create_file example_file_path do <<-RUBY
|
|
74
75
|
RUBY
|
75
76
|
end
|
76
77
|
|
78
|
+
# Add assets override
|
79
|
+
create_file 'app/overrides/layouts/application/assets.html.erb.deface' do <<-RUBY
|
80
|
+
<!-- insert_bottom 'head' -->
|
81
|
+
<%= stylesheet_link_tag '#{name}/application' %>
|
82
|
+
<%= javascript_include_tag '#{name}/application' %>
|
83
|
+
RUBY
|
84
|
+
end
|
85
|
+
|
77
86
|
# Disable bundler
|
78
87
|
def run_bundle ; end
|
data/lib/chili/version.rb
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
18
18
|
|
19
19
|
s.add_dependency "rails", "~> 3.2.3"
|
20
|
-
s.add_dependency 'chili', '~> 0.2.
|
20
|
+
s.add_dependency 'chili', '~> 0.2.2'
|
21
21
|
|
22
22
|
s.add_development_dependency "sqlite3"
|
23
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chili
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-05-31 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70189184713320 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70189184713320
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: deface
|
27
|
-
requirement: &
|
27
|
+
requirement: &70189184712820 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.9.1
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70189184712820
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70189184712340 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 2.9.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70189184712340
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec-rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &70189184711880 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.9.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70189184711880
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: jquery-rails
|
60
|
-
requirement: &
|
60
|
+
requirement: &70189184711460 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70189184711460
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: capybara
|
71
|
-
requirement: &
|
71
|
+
requirement: &70189184710880 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70189184710880
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: sqlite3
|
82
|
-
requirement: &
|
82
|
+
requirement: &70189184710380 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70189184710380
|
91
91
|
description: The spicy extension framework
|
92
92
|
email:
|
93
93
|
- jens@balvig.com
|
@@ -192,6 +192,7 @@ files:
|
|
192
192
|
- spec/dummy/template/app/assets/images/chili_template/.gitkeep
|
193
193
|
- spec/dummy/template/app/assets/javascripts/chili_template/application.js
|
194
194
|
- spec/dummy/template/app/assets/stylesheets/chili_template/application.css
|
195
|
+
- spec/dummy/template/app/overrides/layouts/application/assets.html.erb.deface
|
195
196
|
- spec/dummy/template/app/overrides/layouts/application/example.html.erb.deface
|
196
197
|
- spec/dummy/template/chili_template.gemspec
|
197
198
|
- spec/dummy/template/config/routes.rb
|
@@ -217,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
217
218
|
version: '0'
|
218
219
|
segments:
|
219
220
|
- 0
|
220
|
-
hash:
|
221
|
+
hash: 385854585272327348
|
221
222
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
223
|
none: false
|
223
224
|
requirements:
|
@@ -226,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
227
|
version: '0'
|
227
228
|
segments:
|
228
229
|
- 0
|
229
|
-
hash:
|
230
|
+
hash: 385854585272327348
|
230
231
|
requirements: []
|
231
232
|
rubyforge_project:
|
232
233
|
rubygems_version: 1.8.11
|
@@ -312,6 +313,7 @@ test_files:
|
|
312
313
|
- spec/dummy/template/app/assets/images/chili_template/.gitkeep
|
313
314
|
- spec/dummy/template/app/assets/javascripts/chili_template/application.js
|
314
315
|
- spec/dummy/template/app/assets/stylesheets/chili_template/application.css
|
316
|
+
- spec/dummy/template/app/overrides/layouts/application/assets.html.erb.deface
|
315
317
|
- spec/dummy/template/app/overrides/layouts/application/example.html.erb.deface
|
316
318
|
- spec/dummy/template/chili_template.gemspec
|
317
319
|
- spec/dummy/template/config/routes.rb
|