Skip to content

Commit d629332

Browse files
committed
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. I don't want to do it in one large commit to allow easier track of changes later on.
1 parent 6bd729e commit d629332

File tree

8 files changed

+143
-0
lines changed

8 files changed

+143
-0
lines changed

actionview/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Rails 4.0.0 (unreleased) ##
2+
3+
* First public release

actionview/MIT-LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) 2004-2012 David Heinemeier Hansson
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21+

actionview/README.rdoc

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
= Action View
2+
3+
4+
5+
== Download and installation
6+
7+
The latest version of Action View can be installed with RubyGems:
8+
9+
% [sudo] gem install actionview
10+
11+
Source code can be downloaded as part of the Rails project on GitHub
12+
13+
* https://github.com/rails/rails/tree/master/actionview
14+
15+
16+
== License
17+
18+
Action View is released under the MIT license:
19+
20+
* http://www.opensource.org/licenses/MIT
21+
22+
23+
== Support
24+
25+
API documentation is at
26+
27+
* http://api.rubyonrails.org
28+
29+
Bug reports and feature requests can be filed with the rest for the Ruby on Rails project here:
30+
31+
* https://github.com/rails/rails/issues

actionview/RUNNING_UNIT_TESTS

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
== Running with Rake
2+
3+
The easiest way to run the unit tests is through Rake. The default task runs
4+
the entire test suite for all classes. For more information, checkout the
5+
full array of rake tasks with "rake -T"
6+
7+
Rake can be found at http://rake.rubyforge.org
8+
9+
== Running by hand
10+
11+
To run a single test suite
12+
13+
rake test TEST=path/to/test.rb
14+
15+
which can be further narrowed down to one test:
16+
17+
rake test TEST=path/to/test.rb TESTOPTS="--name=test_something"
18+
19+
== Dependency on Active Record and database setup
20+
21+
Test cases in the test/active_record/ directory depend on having
22+
activerecord and sqlite installed. If Active Record is not in
23+
actionpack/../activerecord directory, or the sqlite rubygem is not installed,
24+
these tests are skipped.
25+
26+
Other tests are runnable from a fresh copy of actionpack without any configuration.
27+

actionview/actionview.gemspec

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
version = File.read(File.expand_path("../../RAILS_VERSION", __FILE__)).strip
2+
3+
Gem::Specification.new do |s|
4+
s.platform = Gem::Platform::RUBY
5+
s.name = 'actionview'
6+
s.version = version
7+
s.summary = 'Rendering framework putting the V in MVC (part of Rails).'
8+
s.description = ''
9+
s.required_ruby_version = '>= 1.9.3'
10+
s.license = 'MIT'
11+
12+
s.author = 'David Heinemeier Hansson'
13+
s.email = 'david@loudthinking.com'
14+
s.homepage = 'http://www.rubyonrails.org'
15+
16+
s.files = Dir['CHANGELOG.md', 'README.rdoc', 'MIT-LICENSE', 'lib/**/*']
17+
s.require_path = 'lib'
18+
s.requirements << 'none'
19+
20+
s.add_dependency('activesupport', version)
21+
s.add_dependency('activemodel', version)
22+
s.add_dependency('builder', '~> 3.0.0')
23+
s.add_dependency('erubis', '~> 2.7.0')
24+
25+
s.add_development_dependency('tzinfo', '~> 0.3.29')
26+
end

actionview/lib/action_view.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#--
2+
# Copyright (c) 2004-2012 David Heinemeier Hansson
3+
#
4+
# Permission is hereby granted, free of charge, to any person obtaining
5+
# a copy of this software and associated documentation files (the
6+
# "Software"), to deal in the Software without restriction, including
7+
# without limitation the rights to use, copy, modify, merge, publish,
8+
# distribute, sublicense, and/or sell copies of the Software, and to
9+
# permit persons to whom the Software is furnished to do so, subject to
10+
# the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be
13+
# included in all copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+
#++
23+
24+
require 'action_view/version'

actionview/lib/action_view/version.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module ActionView
2+
module VERSION #:nodoc:
3+
MAJOR = 4
4+
MINOR = 0
5+
TINY = 0
6+
PRE = "beta"
7+
8+
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9+
end
10+
end

rails.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
2121

2222
s.add_dependency('activesupport', version)
2323
s.add_dependency('actionpack', version)
24+
s.add_dependency('actionview', version)
2425
s.add_dependency('activerecord', version)
2526
s.add_dependency('actionmailer', version)
2627
s.add_dependency('railties', version)

0 commit comments

Comments
 (0)