Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove timestamp from non-release versions

  • Loading branch information...
commit 62eb466cf2aa1e67754ecb854e1c12b90976ecf5 1 parent aba4818
@dazuma dazuma authored
Showing with 4 additions and 2 deletions.
  1. +1 −0  .gitignore
  2. +2 −1  Rakefile
  3. +1 −1  rgeo.gemspec
View
1  .gitignore
@@ -2,6 +2,7 @@
/pkg/
/tmp/
/future/
+.rbx
.#*
.DS_Store
*.dSYM
View
3  Rakefile
@@ -46,7 +46,7 @@ RAKEFILE_CONFIG = {} unless defined?(::RAKEFILE_CONFIG)
require 'rubygems'
gemspec_ = eval(::File.read(::Dir.glob('*.gemspec').first))
release_gemspec_ = eval(::File.read(::Dir.glob('*.gemspec').first))
-release_gemspec_.version = gemspec_.version.to_s.sub(/\.build\d+$/, '')
+release_gemspec_.version = gemspec_.version.to_s.sub(/\.nonrelease$/, '')
# Platform info
@@ -149,6 +149,7 @@ clean_files_ = [doc_directory_, pkg_directory_, tmp_directory_] +
::Dir.glob('ext/**/Makefile*') +
::Dir.glob('ext/**/*.{o,class,log,dSYM}') +
::Dir.glob("**/*.{bundle,so,dll,rbc,jar}") +
+ ::Dir.glob('**/.rbx') +
(::RAKEFILE_CONFIG[:extra_clean_files] || [])
task :clean do
clean_files_.each{ |path_| rm_rf path_ }
View
2  rgeo.gemspec
@@ -38,7 +38,7 @@
s_.name = 'rgeo'
s_.summary = 'RGeo is a geospatial data library for Ruby.'
s_.description = "RGeo is a geospatial data library for Ruby. It provides an implementation of the Open Geospatial Consortium's Simple Features Specification, used by most standard spatial/geographic data storage systems such as PostGIS. A number of add-on modules are also available to help with writing location-based applications using Ruby-based frameworks such as Ruby On Rails."
- s_.version = "#{::File.read('Version').strip}.build#{::Time.now.utc.strftime('%Y%m%d%H%M%S')}"
+ s_.version = "#{::File.read('Version').strip}.nonrelease"
s_.author = 'Daniel Azuma'
s_.email = 'dazuma@gmail.com'
s_.homepage = "http://dazuma.github.com/rgeo"
Please sign in to comment.
Something went wrong with that request. Please try again.