embedded_localization 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -1
- data/Gemfile +14 -3
- data/README.md +137 -7
- data/Rakefile +10 -13
- data/embedded_localization.gemspec +16 -12
- data/lib/embedded_localization/active_record/act_macro.rb +29 -67
- data/lib/embedded_localization/active_record/class_methods.rb +14 -0
- data/lib/embedded_localization/active_record/instance_methods.rb +52 -32
- data/lib/embedded_localization/storage/hstore.rb +61 -0
- data/lib/embedded_localization/storage/json.rb +25 -0
- data/lib/embedded_localization/version.rb +1 -1
- data/lib/embedded_localization.rb +7 -3
- metadata +25 -25
- data/.gitignore +0 -7
- data/.travis.yml +0 -32
- data/lib/extensions/hash.rb +0 -7
- data/spec/embedded_localization/native_column_spec.rb +0 -191
- data/spec/embedded_localization/simple_model_spec.rb +0 -190
- data/spec/models.rb +0 -7
- data/spec/schema.rb +0 -18
- data/spec/spec.opts +0 -2
- data/spec/spec_helper.rb +0 -25
data/spec/spec_helper.rb
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
require 'active_record'
|
|
2
|
-
require 'i18n'
|
|
3
|
-
|
|
4
|
-
require 'embedded_localization'
|
|
5
|
-
|
|
6
|
-
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
|
|
7
|
-
|
|
8
|
-
load File.dirname(__FILE__) + '/schema.rb'
|
|
9
|
-
require File.dirname(__FILE__) + '/models.rb'
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
I18n.enforce_available_locales = false
|
|
13
|
-
I18n.config.available_locales = [:ru,:jp,:ko,:fr,:en,:de]
|
|
14
|
-
|
|
15
|
-
RSpec.configure do |config|
|
|
16
|
-
config.expect_with :rspec do |expectations|
|
|
17
|
-
expectations.syntax = :should
|
|
18
|
-
end
|
|
19
|
-
config.mock_with :rspec do |mocks|
|
|
20
|
-
mocks.syntax = :should
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
config.filter_run_including :focus => true
|
|
24
|
-
config.run_all_when_everything_filtered = true
|
|
25
|
-
end
|