lorem 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +19 -4
  2. data/lib/lorem/version.rb +1 -1
  3. metadata +10 -7
data/Rakefile CHANGED
@@ -53,11 +53,26 @@ hoe = Hoe.new(GEM_NAME, VERS) do |p|
53
53
  #p.spec_extras - A hash of extra values to set in the gemspec.
54
54
  end
55
55
 
56
- desc 'Publish HTML to RubyForge'
57
- task :publish_html do
56
+ desc 'Upload website files to rubyforge'
57
+ task :website do
58
58
  config = YAML.load(File.read(File.expand_path("~/.rubyforge/user-config.yml")))
59
59
  host = "#{config["username"]}@rubyforge.org"
60
- remote_dir = "/var/www/gforge-projects/lorem/"
61
- local_dir = 'html'
60
+ remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/"
61
+ # remote_dir = "/var/www/gforge-projects/#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
62
+ local_dir = 'website'
62
63
  sh %{rsync -av #{local_dir}/ #{host}:#{remote_dir}}
64
+ end
65
+
66
+ desc 'Release the website and new gem version'
67
+ task :deploy => [:check_version, :website, :release]
68
+
69
+ task :check_version do
70
+ unless ENV['VERSION']
71
+ puts 'Must pass a VERSION=x.y.z release version'
72
+ exit
73
+ end
74
+ unless ENV['VERSION'] == VERS
75
+ puts "Please update your version.rb to match the release version, currently #{VERS}"
76
+ exit
77
+ end
63
78
  end
@@ -2,7 +2,7 @@ module Lorem #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
2
+ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: lorem
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.0
7
- date: 2007-04-17 00:00:00 -04:00
6
+ version: 0.1.1
7
+ date: 2007-10-23 00:00:00 -04:00
8
8
  summary: Simple gem for generating lorem ipsum from the command line
9
9
  require_paths:
10
10
  - lib
@@ -42,10 +42,13 @@ files:
42
42
  - test/unit/base_test.rb
43
43
  test_files:
44
44
  - test/unit/base_test.rb
45
- rdoc_options: []
46
-
47
- extra_rdoc_files: []
48
-
45
+ rdoc_options:
46
+ - --main
47
+ - README.txt
48
+ extra_rdoc_files:
49
+ - CHANGELOG.txt
50
+ - Manifest.txt
51
+ - README.txt
49
52
  executables:
50
53
  - lorem
51
54
  extensions: []