diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-05-31 18:21:56 +0200 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-06-20 17:23:15 +0200 |
commit | 78b0934dd1bb84e8f093fb8ef95ca99b297b51cd (patch) | |
tree | 1890417e0422938367c93ad30316798144e0ed3f /actionview/lib | |
parent | 7c69a829a311a31109939cff19b700b36b97d5c4 (diff) | |
download | rails-78b0934dd1bb84e8f093fb8ef95ca99b297b51cd.tar.gz rails-78b0934dd1bb84e8f093fb8ef95ca99b297b51cd.tar.bz2 rails-78b0934dd1bb84e8f093fb8ef95ca99b297b51cd.zip |
Add bare actionview gem to the root directory
This commit creates structure for Action View gem and is first of a
series of commits extracting Action View from Action Pack.
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view.rb | 24 | ||||
-rw-r--r-- | actionview/lib/action_view/version.rb | 11 |
2 files changed, 35 insertions, 0 deletions
diff --git a/actionview/lib/action_view.rb b/actionview/lib/action_view.rb new file mode 100644 index 0000000000..d6cdd61bbf --- /dev/null +++ b/actionview/lib/action_view.rb @@ -0,0 +1,24 @@ +#-- +# Copyright (c) 2004-2012 David Heinemeier Hansson +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +#++ + +require 'action_view/version' diff --git a/actionview/lib/action_view/version.rb b/actionview/lib/action_view/version.rb new file mode 100644 index 0000000000..b746c55e55 --- /dev/null +++ b/actionview/lib/action_view/version.rb @@ -0,0 +1,11 @@ +module ActionPack + # Returns the version of the currently loaded ActionView as a Gem::Version + def self.version + Gem::Version.new "4.0.0.beta1" + end + + module VERSION #:nodoc: + MAJOR, MINOR, TINY, PRE = ActionPack.version.segments + STRING = ActionPack.version.to_s + end +end |