Skip to content

Commit

Permalink
Create version.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 24, 2019
1 parent f0a2de3 commit b352bb3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -77,7 +77,7 @@ As you can see, this is a very Builder-like DSL. This code will spit out an Atom

After checking out the repo, run `rake test` to run the tests.

To install this gem onto your local machine, run `rake install`. To release a new version, update the version number in `lib/rss/rss.rb`, and then run `rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
To install this gem onto your local machine, run `rake install`. To release a new version, update the version number in `lib/rss/version.rb`, and then run `rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Contributing

Expand Down
2 changes: 2 additions & 0 deletions lib/rss.rb
Expand Up @@ -77,6 +77,8 @@
module RSS
end

require "rss/version"

require 'rss/1.0'
require 'rss/2.0'
require 'rss/atom'
Expand Down
4 changes: 0 additions & 4 deletions lib/rss/rss.rb
Expand Up @@ -68,10 +68,6 @@ def w3cdtf
require_relative "xml-stylesheet"

module RSS

# The current version of RSS
VERSION = "0.2.8"

# The URI of the RSS 1.0 specification
URI = "http://purl.org/rss/1.0/"

Expand Down
4 changes: 4 additions & 0 deletions lib/rss/version.rb
@@ -0,0 +1,4 @@
module RSS
# The current version of RSS
VERSION = "0.2.8"
end
5 changes: 3 additions & 2 deletions rss.gemspec
@@ -1,8 +1,8 @@
begin
require_relative "lib/rss"
require_relative "lib/rss/version"
rescue LoadError
# for Ruby core repository
require_relative "rss"
require_relative "version"
end

Gem::Specification.new do |spec|
Expand Down Expand Up @@ -63,6 +63,7 @@ Gem::Specification.new do |spec|
"lib/rss/taxonomy.rb",
"lib/rss/trackback.rb",
"lib/rss/utils.rb",
"lib/rss/version.rb",
"lib/rss/xml-stylesheet.rb",
"lib/rss/xml.rb",
"lib/rss/xmlparser.rb",
Expand Down
10 changes: 0 additions & 10 deletions test/rss/test_version.rb

This file was deleted.

0 comments on commit b352bb3

Please sign in to comment.