translatr 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2011, Garret Alfert, SponsorPay GmbH.
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ 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
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,10 @@
1
+ require 'translatr'
2
+ require 'rails'
3
+
4
+ module Translatr
5
+ class Railtie < Rails::Railtie
6
+ rake_tasks do
7
+ load "tasks/translatr.rake"
8
+ end
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module Translatr
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/translatr.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'core_ext/hash'
2
2
  require 'translatr/merger'
3
+ require 'translatr/railtie' if defined?(Rails::Railtie)
3
4
 
4
5
  Dir["tasks/**/*.rake"].each { |ext| load ext } if defined?(Rake)
5
6
 
data/translatr.gemspec CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.homepage = ""
12
12
  s.summary = %q{Some i18n helpers for handling translations.}
13
13
  s.description = %q{Some i18n helpers for handling translations.}
14
+ s.license = 'MIT'
14
15
 
15
16
  s.files = `git ls-files`.split("\n")
16
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: translatr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Garret Alfert
@@ -104,11 +104,13 @@ files:
104
104
  - .rvmrc
105
105
  - Gemfile
106
106
  - Guardfile
107
+ - MIT-LICENSE
107
108
  - Rakefile
108
109
  - lib/core_ext/hash.rb
109
110
  - lib/tasks/translatr.rake
110
111
  - lib/translatr.rb
111
112
  - lib/translatr/merger.rb
113
+ - lib/translatr/railtie.rb
112
114
  - lib/translatr/version.rb
113
115
  - spec/fixtures/source.yml
114
116
  - spec/fixtures/target.yml
@@ -116,8 +118,8 @@ files:
116
118
  - spec/translatr/merger_spec.rb
117
119
  - translatr.gemspec
118
120
  homepage: ""
119
- licenses: []
120
-
121
+ licenses:
122
+ - MIT
121
123
  post_install_message:
122
124
  rdoc_options: []
123
125