gemsonrails 0.6.1 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +31 -17
- data/Rakefile +12 -2
- data/lib/gemsonrails/version.rb +1 -1
- data/templates/tasks_gems_freeze.rake +5 -3
- data/templates/tasks_gems_link.rake +2 -2
- data/website/index.html +1 -1
- metadata +11 -7
data/History.txt
CHANGED
@@ -1,27 +1,41 @@
|
|
1
|
-
|
1
|
+
== 0.6.3 2007-05-28
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
* 1 critical bugfix:
|
4
|
+
* freeze task broke under RubyGems 0.9.3 release; fix by [Brian Cook]
|
5
|
+
* 2 minor enhancements:
|
6
|
+
* When rerunning the link/freeze tasks for an existing gem, the vendor/gems/xxx folder is no longer
|
7
|
+
deleted and then recreated. Unforunately its not deleting any files either (TODO)
|
8
|
+
* Changed #deploy task to output svn tagging command
|
5
9
|
|
6
|
-
|
10
|
+
== 0.6.2 2007-05-14
|
7
11
|
|
8
|
-
|
9
|
-
|
12
|
+
* 1 bugfix:
|
13
|
+
* Using ONLY generated incorrect code (extraneous ")
|
14
|
+
|
15
|
+
== 0.6.1 2007-05-11
|
16
|
+
|
17
|
+
* 1 minor enhancement:
|
18
|
+
* ENV['RAILS_ENV'] defaults to 'development' if not specified, but required for ONLY test
|
19
|
+
|
20
|
+
== 0.6.0 2007-05-11
|
21
|
+
|
22
|
+
* 1 major enhancement:
|
23
|
+
* Linked/frozen gems can be loaded only for certain RAILS_ENVs using ONLY env variable, e.g.
|
10
24
|
rake gems:freeze GEM=helper ONLY=development,test
|
11
|
-
|
12
|
-
|
25
|
+
* 1 minor enhancement:
|
26
|
+
* Reinstalling gemsonrails does not delete the original (and its svn meta-data), just overwrites the files
|
13
27
|
|
14
|
-
|
28
|
+
== 0.5.0 2007-05-06
|
15
29
|
|
16
|
-
|
17
|
-
|
30
|
+
* 1 major enhancement:
|
31
|
+
* Refactored internals to use newgem/hoe structure
|
18
32
|
|
19
|
-
|
33
|
+
== 0.4.4 2007-05-06
|
20
34
|
|
21
|
-
|
22
|
-
|
35
|
+
* 1 minor improvement:
|
36
|
+
* Generated init.rb includes default #require statement
|
23
37
|
|
24
|
-
|
38
|
+
== 0.4.3
|
25
39
|
|
26
|
-
|
27
|
-
|
40
|
+
* 1 bugfix:
|
41
|
+
* Work around for RubyGems 0.9.X bug for unpack(dir) - now passes absolute path.
|
data/Rakefile
CHANGED
@@ -15,6 +15,8 @@ AUTHOR = 'nicwilliams' # can also be an array of Authors
|
|
15
15
|
EMAIL = "your contact email for bug fixes and info"
|
16
16
|
DESCRIPTION = "Link or freeze RubyGems into your rails apps, instead of plugins"
|
17
17
|
GEM_NAME = 'gemsonrails' # what ppl will type to install your gem
|
18
|
+
config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
|
19
|
+
RUBYFORGE_USERNAME = config["username"]
|
18
20
|
RUBYFORGE_PROJECT = 'gemsonrails' # The unix name for your project
|
19
21
|
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
20
22
|
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
@@ -53,6 +55,9 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
|
53
55
|
#p.spec_extras = {} # A hash of extra values to set in the gemspec.
|
54
56
|
end
|
55
57
|
|
58
|
+
CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\n\n")
|
59
|
+
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "\#{RUBYFORGE_PROJECT}/\#{GEM_NAME}"
|
60
|
+
hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|
56
61
|
|
57
62
|
desc 'Generate website files'
|
58
63
|
task :website_generate do
|
@@ -66,7 +71,6 @@ task :website_upload do
|
|
66
71
|
config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
|
67
72
|
host = "#{config["username"]}@rubyforge.org"
|
68
73
|
remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/"
|
69
|
-
# remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
70
74
|
local_dir = 'website'
|
71
75
|
sh %{rsync -av #{local_dir}/ #{host}:#{remote_dir}}
|
72
76
|
end
|
@@ -75,7 +79,13 @@ desc 'Generate and upload website files'
|
|
75
79
|
task :website => [:website_generate, :website_upload]
|
76
80
|
|
77
81
|
desc 'Release the website and new gem version'
|
78
|
-
task :deploy => [:check_version, :website, :release]
|
82
|
+
task :deploy => [:check_version, :website, :publish_docs, :release] do
|
83
|
+
puts "Remember to create SVN tag:"
|
84
|
+
puts "svn copy svn+ssh://#{RUBYFORGE_USERNAME}@rubyforge.org/var/svn/#{PATH}/trunk " +
|
85
|
+
"svn+ssh://#{RUBYFORGE_USERNAME}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
|
86
|
+
puts "Suggested comment:"
|
87
|
+
puts "Tagging release #{CHANGES}"
|
88
|
+
end
|
79
89
|
|
80
90
|
task :local_deploy => [:website_generate, :install_gem]
|
81
91
|
|
data/lib/gemsonrails/version.rb
CHANGED
@@ -16,12 +16,13 @@ eos
|
|
16
16
|
only_list = (ENV['ONLY'] || "").split(',')
|
17
17
|
only_if_begin = only_list.size == 0 ? "" : <<-EOS
|
18
18
|
ENV['RAILS_ENV'] ||= 'development'
|
19
|
-
if %w[#{only_list.join(' ')}].include?(ENV['RAILS_ENV'])
|
19
|
+
if %w[#{only_list.join(' ')}].include?(ENV['RAILS_ENV'])
|
20
20
|
EOS
|
21
21
|
only_if_end = only_list.size == 0 ? "" : "end"
|
22
22
|
|
23
23
|
require 'rubygems'
|
24
24
|
Gem.manage_gems
|
25
|
+
Gem::CommandManager.new
|
25
26
|
|
26
27
|
gem = (version = ENV['VERSION']) ?
|
27
28
|
Gem.cache.search(gem_name, "= #{version}").first :
|
@@ -29,7 +30,8 @@ if %w[#{only_list.join(' ')}].include?(ENV['RAILS_ENV'])"
|
|
29
30
|
|
30
31
|
version ||= gem.version.version rescue nil
|
31
32
|
|
32
|
-
|
33
|
+
unpack_command_class = Gem::UnpackCommand rescue nil || Gem::Commands::UnpackCommand
|
34
|
+
unless gem && path = unpack_command_class.new.get_path(gem_name, version)
|
33
35
|
raise "No gem #{gem_name} #{version} is installed. Do 'gem list #{gem_name}' to see what you have available."
|
34
36
|
end
|
35
37
|
|
@@ -37,7 +39,7 @@ if %w[#{only_list.join(' ')}].include?(ENV['RAILS_ENV'])"
|
|
37
39
|
mkdir_p gems_dir, :verbose => false if !File.exists?(gems_dir)
|
38
40
|
|
39
41
|
target_dir = ENV['TO'] || File.basename(path).sub(/\.gem$/, '')
|
40
|
-
|
42
|
+
mkdir_p "vendor/gems/#{target_dir}", :verbose => false
|
41
43
|
|
42
44
|
chdir gems_dir, :verbose => false do
|
43
45
|
mkdir_p target_dir, :verbose => false
|
@@ -15,7 +15,7 @@ eos
|
|
15
15
|
only_list = (ENV['ONLY'] || "").split(',')
|
16
16
|
only_if_begin = only_list.size == 0 ? "" : <<-EOS
|
17
17
|
ENV['RAILS_ENV'] ||= 'development'
|
18
|
-
if %w[#{only_list.join(' ')}].include?(ENV['RAILS_ENV'])
|
18
|
+
if %w[#{only_list.join(' ')}].include?(ENV['RAILS_ENV'])
|
19
19
|
EOS
|
20
20
|
only_if_end = only_list.size == 0 ? "" : "end"
|
21
21
|
|
@@ -33,7 +33,7 @@ if %w[#{only_list.join(' ')}].include?(ENV['RAILS_ENV'])"
|
|
33
33
|
mkdir_p gems_dir, :verbose => false if !File.exists?(gems_dir)
|
34
34
|
|
35
35
|
target_dir = ENV['TO'] || gem.name
|
36
|
-
|
36
|
+
mkdir_p "vendor/gems/#{target_dir}"
|
37
37
|
|
38
38
|
chdir gems_dir, :verbose => false do
|
39
39
|
mkdir_p target_dir + '/tasks', :verbose => false
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>Gems On Rails</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/gemsonrails"; return false'>
|
35
35
|
Get Version
|
36
|
-
<a href="http://rubyforge.org/projects/gemsonrails" class="numbers">0.6.
|
36
|
+
<a href="http://rubyforge.org/projects/gemsonrails" class="numbers">0.6.3</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘gemsonrails’</h1>
|
39
39
|
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: gemsonrails
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.6.
|
7
|
-
date: 2007-05-
|
6
|
+
version: 0.6.3
|
7
|
+
date: 2007-05-28 00:00:00 +02:00
|
8
8
|
summary: Link or freeze RubyGems into your rails apps, instead of plugins
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -53,10 +53,14 @@ files:
|
|
53
53
|
test_files:
|
54
54
|
- test/test_gemsonrails.rb
|
55
55
|
- test/test_helper.rb
|
56
|
-
rdoc_options:
|
57
|
-
|
58
|
-
|
59
|
-
|
56
|
+
rdoc_options:
|
57
|
+
- --main
|
58
|
+
- README.txt
|
59
|
+
extra_rdoc_files:
|
60
|
+
- History.txt
|
61
|
+
- Manifest.txt
|
62
|
+
- README.txt
|
63
|
+
- website/index.txt
|
60
64
|
executables:
|
61
65
|
- gemsonrails
|
62
66
|
extensions: []
|