lolita-translation 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/lib/lolita-translation/record.rb +0 -3
- data/lib/lolita-translation/version.rb +1 -1
- data/spec/lolita-translation/builder/abstract_builder_spec.rb +0 -1
- data/spec/lolita-translation/builder/active_record_builder_spec.rb +0 -1
- data/spec/lolita-translation/configuration_spec.rb +0 -1
- data/spec/lolita-translation/locale_spec.rb +0 -1
- data/spec/lolita-translation/locales_spec.rb +0 -1
- data/spec/lolita-translation/orm/mixin_spec.rb +0 -1
- data/spec/lolita-translation/record_spec.rb +2 -1
- data/spec/lolita-translation/translation_class_builder_spec.rb +0 -1
- data/spec/lolita_translation_spec.rb +0 -1
- data/spec/spec_helper.rb +3 -2
- metadata +9 -10
- data/spec/header.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 688c3ccc5a593530530da8349faca89f96b3fce1
|
4
|
+
data.tar.gz: 651660c2ea1eb2b03c3a8c6c06d9ffa9e410d8e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 584b8f2dab48f28b96107df17dd725bd064d118a86e02e681098d21ea9abd341d8dda114189c0be17661782057acd8db8326231d9594fe55a35af6f4ea9e2427
|
7
|
+
data.tar.gz: 4c45b2282ddba3342479a12765b61243bd5928b42fa7511bd593ed8a6d3659ec25323cdc4b9edc451dd9dc0d970386406e5ed10434b5944a73a76c270a2e1aab
|
data/Gemfile
CHANGED
@@ -176,7 +176,6 @@ module Lolita
|
|
176
176
|
yield
|
177
177
|
@record_current_locale = old_locale
|
178
178
|
end
|
179
|
-
original_record
|
180
179
|
end
|
181
180
|
|
182
181
|
def system_current_locale
|
@@ -214,8 +213,6 @@ module Lolita
|
|
214
213
|
def original_class
|
215
214
|
original_record.class
|
216
215
|
end
|
217
|
-
|
218
216
|
end
|
219
|
-
|
220
217
|
end
|
221
218
|
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'header'
|
2
1
|
require File.expand_path("lib/lolita-translation/record")
|
3
2
|
|
4
3
|
describe Lolita::Translation::Record do
|
@@ -112,4 +111,6 @@ describe Lolita::Translation::Record do
|
|
112
111
|
obj.attribute(:name)
|
113
112
|
end
|
114
113
|
end
|
114
|
+
|
115
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
115
116
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
# Now there are support only for "active_record"
|
3
3
|
ENV["ORM"] = "active_record"
|
4
4
|
|
5
|
-
require 'header'
|
6
|
-
|
7
5
|
if ENV["ORM"] == "active_record"
|
8
6
|
require 'ar_schema'
|
9
7
|
end
|
@@ -16,6 +14,9 @@ end
|
|
16
14
|
|
17
15
|
require 'logger'
|
18
16
|
|
17
|
+
require 'simplecov'
|
18
|
+
SimpleCov.start
|
19
|
+
|
19
20
|
# setup I18n
|
20
21
|
I18n.available_locales = [:en,:lv,:ru,:fr]
|
21
22
|
I18n.default_locale = :lv
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolita-translation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ITHouse (Latvia) and Arturs Meisters
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lolita
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.2'
|
27
27
|
description: Lolita extension that allow users to change language and translate DB
|
@@ -33,8 +33,8 @@ extra_rdoc_files:
|
|
33
33
|
- LICENSE.txt
|
34
34
|
- README.md
|
35
35
|
files:
|
36
|
-
- .gitignore
|
37
|
-
- .rspec
|
36
|
+
- ".gitignore"
|
37
|
+
- ".rspec"
|
38
38
|
- Gemfile
|
39
39
|
- LICENSE.txt
|
40
40
|
- README.md
|
@@ -73,7 +73,6 @@ files:
|
|
73
73
|
- spec/ar_schema.rb
|
74
74
|
- spec/features/record_language_switch_spec.rb
|
75
75
|
- spec/features/record_saving_spec.rb
|
76
|
-
- spec/header.rb
|
77
76
|
- spec/integrations/active_record_integration_spec.rb
|
78
77
|
- spec/lolita-translation/builder/abstract_builder_spec.rb
|
79
78
|
- spec/lolita-translation/builder/active_record_builder_spec.rb
|
@@ -113,17 +112,17 @@ require_paths:
|
|
113
112
|
- lib
|
114
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
115
114
|
requirements:
|
116
|
-
- -
|
115
|
+
- - ">="
|
117
116
|
- !ruby/object:Gem::Version
|
118
117
|
version: '0'
|
119
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
119
|
requirements:
|
121
|
-
- -
|
120
|
+
- - ">="
|
122
121
|
- !ruby/object:Gem::Version
|
123
122
|
version: '0'
|
124
123
|
requirements: []
|
125
124
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.1
|
125
|
+
rubygems_version: 2.2.1
|
127
126
|
signing_key:
|
128
127
|
specification_version: 4
|
129
128
|
summary: Lolita extension that add multilanguate support to Lolita.
|
data/spec/header.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'bundler/setup'
|
3
|
-
require 'cover_me'
|
4
|
-
|
5
|
-
CoverMe.config do |c|
|
6
|
-
# where is your project's root:
|
7
|
-
c.project.root = File.expand_path("../lolita-translation") # => "Rails.root" (default)
|
8
|
-
|
9
|
-
# what files are you interested in coverage for:
|
10
|
-
c.file_pattern = [
|
11
|
-
/(#{CoverMe.config.project.root}\/app\/.+\.rb)/i,
|
12
|
-
/(#{CoverMe.config.project.root}\/lib\/.+\.rb)/i
|
13
|
-
]
|
14
|
-
end
|