chili 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -92,24 +92,24 @@ Add files as usual in `app/assets/chili_social/javascripts|stylesheets` and inje
92
92
  <%= javascript_include_tag 'chili_social/application' %>
93
93
  ```
94
94
 
95
- ### Gotchas
95
+ ## Releasing to production
96
96
 
97
- - 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.
98
- - Just like normal engines, Chili requires you to prepend path helpers with `main_app` (ie `main_app.root_path` etc) in view templates that are shared with the main app (such as the main app's application layout file).
99
-
100
- ## Roadmap
97
+ Once your chili extension is ready to be released all you have to do is push the repo somewhere,
98
+ add the extension to the Gemfile of the app you are releasing it to:
101
99
 
102
- ### Missing features
103
-
104
- - Running any rails command (rails server, bundle etc) should run the command in the main app directory
105
- - Docs for releasing to production
106
- - Docs for running tests
100
+ ```ruby
101
+ gem 'chili_social', git: 'git@github.com:githubuser/chili_social.git'
102
+ ```
107
103
 
108
- ### Current Issues
104
+ ...and bundle and install any migrations (just like any other engine):
109
105
 
110
- - Haven't found a good way to modify existing controller actions
106
+ ```
107
+ $ bundle
108
+ $ rake chili_social:migrations:install
109
+ $ rake db:migrate
110
+ ```
111
111
 
112
- ### Minor niggles
112
+ ## Gotchas
113
113
 
114
- - Request specs don't have access to path helpers
115
- - Generated specs don't namespace properly
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.
115
+ - Just like normal engines, Chili requires you to prepend path helpers with `main_app` (ie `main_app.root_path` etc) in view templates that are shared with the main app (such as the main app's application layout file).
@@ -4,8 +4,8 @@ require File.expand_path('../lib/chili/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Jens Balvig"]
6
6
  gem.email = ["jens@balvig.com"]
7
- gem.description = %q{The spicy extension framework (work in progress)}
8
- gem.summary = %q{The spicy extension framework (work in progress)}
7
+ gem.description = %q{The spicy extension framework}
8
+ gem.summary = %q{The spicy extension framework}
9
9
  gem.homepage = "https://github.com/balvig/chili"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
@@ -1,3 +1,12 @@
1
+ # Edit gemspec
2
+ require File.expand_path('../version', __FILE__)
3
+ gemspec = "#{app_path}.gemspec"
4
+ gsub_file gemspec, '# s.add_dependency "jquery-rails"', "s.add_dependency 'chili', '~> #{Chili::VERSION}'"
5
+ gsub_file gemspec, 'TODO: Your name', `git config user.name`.chomp
6
+ gsub_file gemspec, 'TODO: Your email', `git config user.email`.chomp
7
+ gsub_file gemspec, /TODO(:\s)?/, ''
8
+ gsub_file gemspec, 'Dir["test/**/*"]', 's.files.grep(%r{^(test|spec|features)/})'
9
+
1
10
  # Add main app as submodule
2
11
  # For some reason root when using git method is test/dummy so doing this manually
3
12
  main_app_git_repo = ask("Where is the main app you are extending located? (ie git://github.com/myname/myapp.git)")
@@ -75,14 +84,11 @@ gsub_file ".gitignore", /test\/dummy.*\n/, ''
75
84
  prepend_to_file 'config/routes.rb', "#{app_path.camelcase}::Engine.automount!\n"
76
85
 
77
86
  # Include chili libs
78
- require File.expand_path('../version', __FILE__)
79
-
80
87
  prepend_to_file "lib/#{app_path}.rb" do <<-RUBY
81
88
  require "chili"
82
89
  RUBY
83
90
  end
84
91
 
85
- gsub_file "#{app_path}.gemspec", '# s.add_dependency "jquery-rails"', "s.add_dependency 'chili', '~> #{Chili::VERSION}'"
86
92
 
87
93
  # Include active_if
88
94
  inject_into_file "lib/#{app_path}.rb", :after => "module #{app_path.camelcase}\n" do <<-RUBY
@@ -1,3 +1,3 @@
1
1
  module Chili
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  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.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70101475238260 !ruby/object:Gem::Requirement
16
+ requirement: &70174608984020 !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: *70101475238260
24
+ version_requirements: *70174608984020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: deface
27
- requirement: &70101475237760 !ruby/object:Gem::Requirement
27
+ requirement: &70174608983520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0.9'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70101475237760
35
+ version_requirements: *70174608983520
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &70101475237300 !ruby/object:Gem::Requirement
38
+ requirement: &70174608983040 !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: *70101475237300
46
+ version_requirements: *70174608983040
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec-rails
49
- requirement: &70101475236840 !ruby/object:Gem::Requirement
49
+ requirement: &70174608982540 !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: *70101475236840
57
+ version_requirements: *70174608982540
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jquery-rails
60
- requirement: &70101475252800 !ruby/object:Gem::Requirement
60
+ requirement: &70174608982160 !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: *70101475252800
68
+ version_requirements: *70174608982160
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: capybara
71
- requirement: &70101475252300 !ruby/object:Gem::Requirement
71
+ requirement: &70174608981700 !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: *70101475252300
79
+ version_requirements: *70174608981700
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: sqlite3
82
- requirement: &70101475251760 !ruby/object:Gem::Requirement
82
+ requirement: &70174608981260 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,8 +87,8 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70101475251760
91
- description: The spicy extension framework (work in progress)
90
+ version_requirements: *70174608981260
91
+ description: The spicy extension framework
92
92
  email:
93
93
  - jens@balvig.com
94
94
  executables:
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
203
  version: '0'
204
204
  segments:
205
205
  - 0
206
- hash: 4520049109413080519
206
+ hash: 4513349709949091825
207
207
  required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  none: false
209
209
  requirements:
@@ -212,13 +212,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  version: '0'
213
213
  segments:
214
214
  - 0
215
- hash: 4520049109413080519
215
+ hash: 4513349709949091825
216
216
  requirements: []
217
217
  rubyforge_project:
218
218
  rubygems_version: 1.8.11
219
219
  signing_key:
220
220
  specification_version: 3
221
- summary: The spicy extension framework (work in progress)
221
+ summary: The spicy extension framework
222
222
  test_files:
223
223
  - spec/dummy/chili_social/app/assets/images/chili_social/.gitkeep
224
224
  - spec/dummy/chili_social/app/assets/javascripts/chili_social/application.js