Skip to content

Commit 08cf4a3

Browse files
committed
Updated gemspec to automatically find files using git
1 parent 6098699 commit 08cf4a3

File tree

4 files changed

+32
-36
lines changed

4 files changed

+32
-36
lines changed

browsercms.gemspec

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,19 @@ Gem::Specification.new do |s|
1111
s.summary = %q{BrowserCMS is a a general purpose, open source Web Content Management System (CMS), written using Ruby on Rails.}
1212
s.description = %q{Web Content Management in Rails.}
1313
s.email = %q{github@browsermedia.com}
14-
s.executables = ["browsercms", "bcms", "bcms-upgrade"]
1514
s.extra_rdoc_files = [
1615
"LICENSE.txt",
1716
"README.markdown"
1817
]
1918
s.required_ruby_version = '>= 1.9.2'
2019

21-
s.files = Dir["rails/*.rb"]
22-
s.files += Dir["browsercms.gemspec"]
23-
s.files += Dir[".yardopts"]
24-
s.files += Dir["doc/app/**/*"]
25-
s.files += Dir["doc/guides/html/**/*"]
26-
s.files += Dir["app/**/*"]
27-
s.files += Dir["db/migrate/[0-9]*_*.rb"]
28-
s.files += Dir["db/demo/**/*"]
29-
s.files += Dir["db/browsercms.seeds.rb"]
30-
s.files += Dir["lib/**/*"]
20+
s.files = `git ls-files`.split("\n")
21+
s.files -= Dir['test/dummy/*']
3122
s.files -= Dir["lib/tasks/cucumber.rake"]
3223
s.files -= Dir["lib/tasks/cms.rake"]
33-
s.files += Dir["public/stylesheets/cms/**/*"]
34-
s.files += Dir["public/javascripts/jquery*"]
35-
s.files += Dir["public/javascripts/cms/**/*"]
36-
s.files += Dir["public/bcms/**/*"]
37-
s.files += Dir["public/site/**/*"]
38-
s.files += Dir["public/images/cms/**/*"]
39-
s.files += Dir["public/themes/**/*"]
40-
s.files += Dir["public/themes/**/*"]
41-
s.files += Dir["vendor/assets/**/*"]
42-
s.files -= Dir['test/dummy/*']
24+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
25+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
26+
4327

4428
s.add_dependency('rails', "~> 3.1")
4529

doc/release_notes.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Add the ability to add BrowserCMS to Rails projects.
1717
end
1818
* [#3] Asset Pipeline: All bcms assets are now served using the assets pipeline.
1919
* [#443] Removed two primative javascript and stylesheets in favor of asset pipeline (where needed).
20+
* [#448] Mountable Engines - BrowserCMS is now a mountable engine, which should make integrating it with other projects easier.
2021

2122
v3.3.0
2223
======

lib/tasks/cms.rake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# These are tasks for the core browsercms project, and shouldn't be bundled into the distributable gem
12
namespace :test do
23

34
desc 'Runs all Tests (Test::Unit) and Features (cucumber)'

upgrading_to_3_1.md

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,44 @@ Make migrate generation use 3.1 style
77
Needs
88
-----
99

10-
* Design how a portlet can include a single jquery based library by just declaring it in the render.html.erb.
11-
** eg. auto_discovery_link_tag -> Does not get included in the head
12-
* Add better messaging for `browsercms demo [NAME]`
13-
* Remove bespin
14-
* Run in production mode locally. Try POW to see if that adds subdomains easily.
10+
* Add ticket for upgrading to Rails 3.1
1511
* Differ `bundle install` from happening until Gemfile is updated to include bcms
12+
* Remove bespin
13+
* Improve Performance - Sitemap and serving pages is particularly slow
14+
** Use Ancestry gem - It handles automatically turning models into tree via a single column. Would be very very performant in comparison to current behavior.
1615

1716
Wants (Taking advantage of 3.1)
1817
-----
19-
* http://freelancing-gods.com/posts/combustion_better_rails_engine_testing
18+
19+
* Improve generators for assets from engines (Review http://bibwild.wordpress.com/2011/09/20/design-for-including-rails-engine-assets-into-pipeline-manifest/)
2020
* Remove the styled_file_field (no longer maintained)
21-
* Creating Modules using Mountable apps
22-
** `rails plugin new [NAME] --mountable` is the command
23-
* Engines - Rework bcms as a mountable engine, using the dummy app. Dummy apps are designed to be run using rails s, which is perfect.
24-
** Generators (like model) within an engine will namespace things properly
25-
** Need to run `rake bcms:install:migrations` to install engine migrations (Handled through install)
26-
** This will also make bcms includable as part of a Gemfile using git
21+
* [#416] Make bcms includable as part of a Gemfile using git
2722
* Migrations have a single 'def change' method now, rather than self.up and self.down
28-
* Use Ancestry gem - It handles automatically turning models into tree via a single column. Would be very very performant in comparison to current behavior.
2923
* Themes can be packaged as assets as well (I think?). Rework bluesteel so its part of the asset pipeline.
24+
* Run in production mode locally (for better error testing). Try POW to see if that adds subdomains easily.
25+
* Design how a portlet can include a single jquery based library by just declaring it in the render.html.erb.
26+
** eg. auto_discovery_link_tag -> Does not get included in the head
27+
* Add better messaging for `browsercms demo [NAME]`
28+
3029

3130
Ideas
3231
-----
3332
* Allow for multiple view templates for blocks.
3433
* Look at Papertrail and see how they structure versions. Their API seems every simple for single blocks.
3534

36-
## Modules to be updated:
37-
* bcms_fckEditor will need to be updated to use the new JS inclusion
35+
## Modules to be updated (for Engines)
36+
37+
bcms_news (first one)
38+
bcms_polling
39+
bcms_event
40+
bcms_fckeditor (Needs to correctly use new JS inclusion)
41+
bcms_content_rotator
42+
bcms_webdav
43+
bcms_cas
44+
bcms_google_mini_search
45+
bcms_page_comments
46+
47+
3848

3949
### How to upgrade to a Rails Engine
4050

0 commit comments

Comments
 (0)