Skip to content

Commit 78b0934

Browse files
droguslukaszx0
authored andcommitted
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.
1 parent 7c69a82 commit 78b0934

File tree

9 files changed

+147
-2
lines changed

9 files changed

+147
-2
lines changed

Diff for: actionpack/actionpack.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ Gem::Specification.new do |s|
2020
s.requirements << 'none'
2121

2222
s.add_dependency 'activesupport', version
23-
s.add_dependency 'builder', '~> 3.1.0'
23+
s.add_dependency 'actionview', version
24+
2425
s.add_dependency 'rack', '~> 1.5.2'
2526
s.add_dependency 'rack-test', '~> 0.6.2'
26-
s.add_dependency 'erubis', '~> 2.7.0'
2727

2828
s.add_development_dependency 'activemodel', version
2929
s.add_development_dependency 'tzinfo', '~> 0.3.37'

Diff for: actionview/CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## Rails 4.0.0 (unreleased) ##
2+
3+
* First public release

Diff for: actionview/MIT-LICENSE

+21
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+

Diff for: actionview/README.rdoc

+31
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

Diff for: actionview/RUNNING_UNIT_TESTS

+27
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+

Diff for: actionview/actionview.gemspec

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
10+
s.required_ruby_version = '>= 1.9.3'
11+
12+
s.license = 'MIT'
13+
14+
s.author = 'David Heinemeier Hansson'
15+
s.email = 'david@loudthinking.com'
16+
s.homepage = 'http://www.rubyonrails.org'
17+
18+
s.files = Dir['CHANGELOG.md', 'README.rdoc', 'MIT-LICENSE', 'lib/**/*']
19+
s.require_path = 'lib'
20+
s.requirements << 'none'
21+
22+
s.add_dependency 'activesupport', version
23+
s.add_dependency 'activemodel', version
24+
25+
s.add_dependency 'builder', '~> 3.1.0'
26+
s.add_dependency 'erubis', '~> 2.7.0'
27+
end

Diff for: actionview/lib/action_view.rb

+24
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'

Diff for: actionview/lib/action_view/version.rb

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module ActionPack
2+
# Returns the version of the currently loaded ActionView as a Gem::Version
3+
def self.version
4+
Gem::Version.new "4.0.0.beta1"
5+
end
6+
7+
module VERSION #:nodoc:
8+
MAJOR, MINOR, TINY, PRE = ActionPack.version.segments
9+
STRING = ActionPack.version.to_s
10+
end
11+
end

Diff for: rails.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
2020

2121
s.add_dependency 'activesupport', version
2222
s.add_dependency 'actionpack', version
23+
s.add_dependency 'actionview', version
2324
s.add_dependency 'activerecord', version
2425
s.add_dependency 'actionmailer', version
2526
s.add_dependency 'railties', version

0 commit comments

Comments
 (0)