Skip to content
Browse files

Added license and clarification

  • Loading branch information...
1 parent 9aab841 commit 6c72a8079f1e4ead1b7e0558e154d4d587c65390 @bragi bragi committed
Showing with 16 additions and 13 deletions.
  1. +16 −1 README.textile
  2. +0 −12 Rakefile
View
17 README.textile
@@ -1,5 +1,9 @@
h1. Translations Rails Engine
+h2. DO NOT USE
+
+This engine is deprecated and has been open sourced to simplify maintenance of one of legacy applications built by Ragnarson Sp. z o. o. Ignore.
+
h2. Introduction
Rails engine with a i18n database backend and translations administration capabilities.
@@ -45,7 +49,7 @@ In the top of your layout body section add:
- if superuser?
= render("layouts/administration_menu")
-h2.Hints
+h2. Hints
To be able to load your database schema with 'rake db:schema:load' you should not put any translations in your initializers. I solved this problem in our application by invoking initialization method during first request.
@@ -55,3 +59,14 @@ To run this gem's test suite do:
cd spec/rails_root
rake translations:test
+
+h2. MIT License
+
+Copyright (c) 2010 Ragnarson Sp. z o. o.
+
+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.
+
View
12 Rakefile
@@ -15,16 +15,4 @@ namespace :gem do
task 'build' do
`gem build translations.gemspec`
end
-
- SERVER_ENV = {
- 'PATH' => "/opt/ruby/bin:$PATH",
- 'GEM_HOME' => '/opt/ruby/lib/ruby/gems/1.8/',
- 'GEM_PATH' => '/opt/ruby/lib/ruby/gems/1.8/'
- }.map {|k, v| "#{k}=#{v}"}.join(' ')
-
- desc "Deploys built gem on private gem server"
- task "deploy" do
- `scp translations-*.gem gems@gems.carriles.pl:/web/gems/gems`
- `ssh -l gems gems.carriles.pl env #{SERVER_ENV} gem generate_index -d /web/gems`
- end
end

0 comments on commit 6c72a80

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