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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82d4dfe1c5fbf9846029e38c41e8651c8152d81c
4
- data.tar.gz: d0474e27688f2fe3360ae616e7b511e2f150811a
3
+ metadata.gz: 688c3ccc5a593530530da8349faca89f96b3fce1
4
+ data.tar.gz: 651660c2ea1eb2b03c3a8c6c06d9ffa9e410d8e1
5
5
  SHA512:
6
- metadata.gz: 3babc9b1de2e3c6efbf8f685cd6ee649a24f2394fb1119b1f075dbdc44bf9421bd67685b6c0c158fe1facfa4e374f211cf2a5de0dcdaac07f39d94aedff56683
7
- data.tar.gz: e7405f2d718d9dc9fa4a349c0da8ee23ab877133eee78354c0a2de5df5c30bf59cd7f4b744f59107b11a3d50bf2e9b26512cc1d97a27a6ca198ec4c548de99ff
6
+ metadata.gz: 584b8f2dab48f28b96107df17dd725bd064d118a86e02e681098d21ea9abd341d8dda114189c0be17661782057acd8db8326231d9594fe55a35af6f4ea9e2427
7
+ data.tar.gz: 4c45b2282ddba3342479a12765b61243bd5928b42fa7511bd593ed8a6d3659ec25323cdc4b9edc451dd9dc0d970386406e5ed10434b5944a73a76c270a2e1aab
data/Gemfile CHANGED
@@ -10,6 +10,7 @@ group :test do
10
10
  gem 'selenium-webdriver', '~> 2.38.0'
11
11
  gem 'sqlite3', '~> 1.3.7'
12
12
  gem 'byebug'
13
- gem 'cover_me'
13
+ gem 'simplecov'
14
14
  gem "coffee-rails"
15
+ gem "pry-byebug"
15
16
  end
@@ -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
@@ -3,7 +3,7 @@ module Lolita
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 7
6
- PATCH = 3
6
+ PATCH = 4
7
7
  BUILD = nil
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -1,4 +1,3 @@
1
- require 'header'
2
1
  require File.expand_path("lib/lolita-translation/builder/abstract_builder")
3
2
 
4
3
  describe Lolita::Translation::Builder::AbstractBuilder do
@@ -1,4 +1,3 @@
1
- require 'header'
2
1
  require 'ar_schema'
3
2
  require File.expand_path("lib/lolita-translation/builder/active_record_builder")
4
3
  require File.expand_path("lib/lolita-translation/configuration")
@@ -1,4 +1,3 @@
1
- require 'header'
2
1
  require File.expand_path("lib/lolita-translation/configuration")
3
2
  require File.expand_path("lib/lolita-translation/translation_class_builder")
4
3
  require File.expand_path("lib/lolita-translation/errors")
@@ -1,4 +1,3 @@
1
- require 'header'
2
1
  require File.expand_path("lib/lolita-translation/locale")
3
2
 
4
3
  describe Lolita::Translation::Locale do
@@ -1,4 +1,3 @@
1
- require 'header'
2
1
  require File.expand_path("lib/lolita-translation/locales")
3
2
 
4
3
  describe Lolita::Translation::Locales do
@@ -1,4 +1,3 @@
1
- require 'header'
2
1
  require File.expand_path("lib/lolita-translation/orm/mixin")
3
2
  require File.expand_path("lib/lolita-translation/errors")
4
3
 
@@ -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
@@ -1,4 +1,3 @@
1
- require 'header'
2
1
  require File.expand_path("lib/lolita-translation/translation_class_builder")
3
2
  require File.expand_path("lib/lolita-translation/errors")
4
3
  require 'ar_schema'
@@ -1,4 +1,3 @@
1
- require 'header'
2
1
  require File.expand_path("lib/lolita-translation")
3
2
 
4
3
  describe Lolita::Translation do
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.3
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: 2013-12-17 00:00:00.000000000 Z
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.9
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