desert 0.3.4 → 0.4.1
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/CHANGES +2 -0
- data/README.rdoc +4 -0
- data/Rakefile +19 -57
- data/VERSION.yml +4 -0
- data/lib/desert/manager.rb +13 -0
- metadata +36 -30
data/CHANGES
CHANGED
data/README.rdoc
CHANGED
@@ -11,6 +11,10 @@ This allows you to make full featured composable components.
|
|
11
11
|
|
12
12
|
Desert is a replacement for Appable Plugins (http://wiki.pluginaweek.org/Appable_plugins).
|
13
13
|
|
14
|
+
== Bug/Feature Tracker
|
15
|
+
|
16
|
+
Pivotal Tracker: http://www.pivotaltracker.com/projects/358
|
17
|
+
|
14
18
|
== Anatomy of a desert plugin
|
15
19
|
|
16
20
|
|-- app
|
data/Rakefile
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require "rake"
|
2
|
-
require 'rake/gempackagetask'
|
3
2
|
require 'rake/contrib/rubyforgepublisher'
|
4
3
|
require 'rake/clean'
|
5
4
|
require 'rake/testtask'
|
@@ -20,69 +19,32 @@ def run_suite
|
|
20
19
|
system("ruby #{dir}/spec/spec_suite.rb") || raise("Example Suite failed")
|
21
20
|
end
|
22
21
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
PKG_NAME = "desert"
|
29
|
-
PKG_VERSION = "0.3.4"
|
30
|
-
PKG_FILES = FileList[
|
31
|
-
'[A-Z]*',
|
32
|
-
'*.rb',
|
33
|
-
'lib/**/*.rb',
|
34
|
-
'generators/**/*',
|
35
|
-
'generators/**/templates/*',
|
36
|
-
'examples/**/*.rb'
|
37
|
-
]
|
38
|
-
|
39
|
-
def gemspec
|
40
|
-
Gem::Specification.new do |s|
|
41
|
-
s.name = PKG_NAME
|
42
|
-
s.version = PKG_VERSION
|
22
|
+
begin
|
23
|
+
require 'jeweler'
|
24
|
+
Jeweler::Tasks.new do |s|
|
25
|
+
s.name = "desert"
|
43
26
|
s.summary = "Desert is a component framework for Rails that allows your plugins to be packaged as mini Rails apps."
|
44
|
-
s.
|
45
|
-
s.
|
46
|
-
|
47
|
-
s.
|
48
|
-
s.
|
49
|
-
|
50
|
-
|
27
|
+
s.email = "opensource@pivotallabs.com"
|
28
|
+
s.homepage = "http://pivotallabs.com"
|
29
|
+
s.description = "Desert is a component framework for Rails that allows your plugins to be packaged as mini Rails apps."
|
30
|
+
s.authors = ["Pivotal Labs", "Brian Takita", "Parker Thompson", "Adam Milligan"]
|
31
|
+
s.files = FileList[
|
32
|
+
'[A-Z]*',
|
33
|
+
'*.rb',
|
34
|
+
'lib/**/*.rb',
|
35
|
+
'generators/**/*',
|
36
|
+
'generators/**/templates/*',
|
37
|
+
'examples/**/*.rb'
|
38
|
+
].to_a
|
51
39
|
s.extra_rdoc_files = [ "README.rdoc", "CHANGES" ]
|
52
40
|
s.rdoc_options = ["--main", "README.rdoc", "--inline-source", "--line-numbers"]
|
53
|
-
|
54
41
|
s.test_files = Dir.glob('spec/*_spec.rb')
|
55
|
-
s.
|
56
|
-
s.author = "Pivotal Labs"
|
57
|
-
s.email = "opensource@pivotallabs.com"
|
58
|
-
s.homepage = "http://pivotallabs.com"
|
59
|
-
s.rubyforge_project = "pivotalrb"
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
desc 'Generate updated gemspec with unique version, which will cause gem to be auto-built on github.'
|
64
|
-
task :update_gemspec do
|
65
|
-
spec = gemspec
|
66
|
-
spec.version = PKG_VERSION + '.' + Time.now.strftime('%Y%m%d%H%M%S')
|
67
|
-
File.open('desert.gemspec', 'w') do |output|
|
68
|
-
output << spec.to_ruby
|
42
|
+
s.rubyforge_project = "desert"
|
69
43
|
end
|
44
|
+
rescue LoadError
|
45
|
+
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
70
46
|
end
|
71
47
|
|
72
|
-
# desc "Creates a gem and also updates desert.gemspec to keep github version in sync"
|
73
|
-
# task :update_gem_and_
|
74
|
-
#
|
75
|
-
Rake::GemPackageTask.new(gemspec) do |pkg|
|
76
|
-
Rake::Task['update_gemspec'].invoke
|
77
|
-
pkg.need_zip = true
|
78
|
-
pkg.need_tar = true
|
79
|
-
end
|
80
|
-
|
81
|
-
def tag_release
|
82
|
-
dashed_version = PKG_VERSION.gsub('.', '-')
|
83
|
-
svn_user = "#{ENV["SVN_USER"]}@" || ""
|
84
|
-
`svn cp svn+ssh://#{svn_user}rubyforge.org/var/svn/pivotalrb/desert/trunk svn+ssh://#{svn_user}rubyforge.org/var/svn/pivotalrb/desert/tags/REL-#{dashed_version} -m 'Version #{PKG_VERSION}'`
|
85
|
-
end
|
86
48
|
|
87
49
|
desc "Install dependencies to run the build. This task uses Git."
|
88
50
|
task :install_dependencies do
|
data/VERSION.yml
ADDED
data/lib/desert/manager.rb
CHANGED
@@ -99,6 +99,19 @@ module Desert
|
|
99
99
|
end
|
100
100
|
layout_paths
|
101
101
|
end
|
102
|
+
|
103
|
+
def require_all_files
|
104
|
+
all_files.each do |file|
|
105
|
+
require file
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
def all_files
|
110
|
+
Desert::Manager.load_paths.inject([]) do |all, load_path|
|
111
|
+
all |= Dir["#{load_path}/**/*.rb"]
|
112
|
+
all
|
113
|
+
end
|
114
|
+
end
|
102
115
|
|
103
116
|
protected
|
104
117
|
def dependencies
|
metadata
CHANGED
@@ -1,15 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: desert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pivotal Labs
|
8
|
+
- Brian Takita
|
9
|
+
- Parker Thompson
|
10
|
+
- Adam Milligan
|
8
11
|
autorequire:
|
9
12
|
bindir: bin
|
10
13
|
cert_chain: []
|
11
14
|
|
12
|
-
date: 2009-03-
|
15
|
+
date: 2009-03-28 00:00:00 -07:00
|
13
16
|
default_executable:
|
14
17
|
dependencies: []
|
15
18
|
|
@@ -23,49 +26,50 @@ extra_rdoc_files:
|
|
23
26
|
- README.rdoc
|
24
27
|
- CHANGES
|
25
28
|
files:
|
26
|
-
- CHANGES
|
27
29
|
- MIT-LICENSE
|
28
|
-
-
|
30
|
+
- VERSION.yml
|
29
31
|
- README.rdoc
|
32
|
+
- Rakefile
|
33
|
+
- CHANGES
|
30
34
|
- init.rb
|
35
|
+
- lib/desert.rb
|
36
|
+
- lib/desert/plugin_templates.rb
|
37
|
+
- lib/desert/rails/dependencies.rb
|
38
|
+
- lib/desert/rails/2.0.0/plugin.rb
|
39
|
+
- lib/desert/rails/1.2.0/initializer.rb
|
40
|
+
- lib/desert/rails/migration.rb
|
41
|
+
- lib/desert/rails/route_set.rb
|
42
|
+
- lib/desert/rails.rb
|
31
43
|
- lib/desert/manager.rb
|
32
|
-
- lib/desert/
|
33
|
-
- lib/desert/
|
34
|
-
- lib/desert/
|
44
|
+
- lib/desert/plugin_migrations.rb
|
45
|
+
- lib/desert/ruby/object.rb
|
46
|
+
- lib/desert/supported_rails_versions.rb
|
47
|
+
- lib/desert/ruby.rb
|
48
|
+
- lib/desert/version_checker.rb
|
49
|
+
- lib/desert/tasks.rb
|
35
50
|
- lib/desert/plugin_migrations/2.1/extensions/schema_statements.rb
|
36
51
|
- lib/desert/plugin_migrations/2.1/migrator.rb
|
52
|
+
- lib/desert/plugin_migrations/1.2/extensions/schema_statements.rb
|
53
|
+
- lib/desert/plugin_migrations/1.2/migrator.rb
|
37
54
|
- lib/desert/plugin_migrations/migrator.rb
|
38
|
-
- lib/desert/
|
39
|
-
- lib/desert/plugin_templates/
|
40
|
-
- lib/desert/plugin_templates/
|
55
|
+
- lib/desert/plugin.rb
|
56
|
+
- lib/desert/plugin_templates/edge/action_view.rb
|
57
|
+
- lib/desert/plugin_templates/action_controller.rb
|
41
58
|
- lib/desert/plugin_templates/1.99.0/action_mailer.rb
|
42
59
|
- lib/desert/plugin_templates/1.99.0/action_view.rb
|
43
60
|
- lib/desert/plugin_templates/2.0.0/action_mailer.rb
|
44
|
-
- lib/desert/plugin_templates/2.0.2/action_view.rb
|
45
61
|
- lib/desert/plugin_templates/2.1.0/action_view.rb
|
46
|
-
- lib/desert/plugin_templates/
|
62
|
+
- lib/desert/plugin_templates/2.0.2/action_view.rb
|
47
63
|
- lib/desert/plugin_templates/action_view.rb
|
48
|
-
- lib/desert/plugin_templates/
|
49
|
-
- lib/desert/plugin_templates.rb
|
50
|
-
- lib/desert/rails/1.2.0/initializer.rb
|
51
|
-
- lib/desert/rails/2.0.0/plugin.rb
|
52
|
-
- lib/desert/rails/dependencies.rb
|
53
|
-
- lib/desert/rails/migration.rb
|
54
|
-
- lib/desert/rails/route_set.rb
|
55
|
-
- lib/desert/rails.rb
|
56
|
-
- lib/desert/ruby/object.rb
|
57
|
-
- lib/desert/ruby.rb
|
58
|
-
- lib/desert/supported_rails_versions.rb
|
59
|
-
- lib/desert/tasks.rb
|
60
|
-
- lib/desert/version_checker.rb
|
61
|
-
- lib/desert.rb
|
64
|
+
- lib/desert/plugin_templates/1.2.0/action_mailer.rb
|
65
|
+
- lib/desert/plugin_templates/1.2.0/action_view.rb
|
62
66
|
- generators/desert_plugin
|
63
|
-
- generators/desert_plugin/desert_plugin_generator.rb
|
64
67
|
- generators/desert_plugin/templates
|
65
|
-
- generators/desert_plugin/templates/empty_file
|
66
|
-
- generators/desert_plugin/templates/plugin_migration.rb
|
67
68
|
- generators/desert_plugin/templates/routes.rb
|
69
|
+
- generators/desert_plugin/templates/plugin_migration.rb
|
68
70
|
- generators/desert_plugin/templates/spec_helper.rb
|
71
|
+
- generators/desert_plugin/templates/empty_file
|
72
|
+
- generators/desert_plugin/desert_plugin_generator.rb
|
69
73
|
- generators/desert_plugin/USAGE
|
70
74
|
has_rdoc: true
|
71
75
|
homepage: http://pivotallabs.com
|
@@ -75,6 +79,8 @@ rdoc_options:
|
|
75
79
|
- README.rdoc
|
76
80
|
- --inline-source
|
77
81
|
- --line-numbers
|
82
|
+
- --inline-source
|
83
|
+
- --charset=UTF-8
|
78
84
|
require_paths:
|
79
85
|
- lib
|
80
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -91,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
97
|
version:
|
92
98
|
requirements: []
|
93
99
|
|
94
|
-
rubyforge_project:
|
100
|
+
rubyforge_project: desert
|
95
101
|
rubygems_version: 1.3.1
|
96
102
|
signing_key:
|
97
103
|
specification_version: 2
|