Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add Userstamp::VERSION

  • Loading branch information...
commit 72586b6ca42e9870e33d2644f3ee28033e4ba87f 1 parent bbb935d
Michael Grosser grosser authored

Showing 2 changed files with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 lib/userstamp.rb
  2. +7 0 test/userstamp_test.rb
4 lib/userstamp.rb
@@ -2,6 +2,10 @@
2 2 require 'stampable'
3 3 require 'migration_helper'
4 4
  5 +module Userstamp
  6 + VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip
  7 +end
  8 +
5 9 module Ddb
6 10 module Controller
7 11 # The Userstamp module, when included into a controller, adds a before filter
7 test/userstamp_test.rb
... ... @@ -0,0 +1,7 @@
  1 +require 'test/helper'
  2 +
  3 +class UserstampTests < ActiveSupport::TestCase
  4 + test "it has a VERSION" do
  5 + assert_match /^\d+\.\d+\.\d+$/, Userstamp::VERSION
  6 + end
  7 +end

0 comments on commit 72586b6

Please sign in to comment.
Something went wrong with that request. Please try again.