simple_localizer 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/Gemfile +2 -0
  2. data/Gemfile.lock +73 -14
  3. data/Rakefile +71 -31
  4. data/VERSION +1 -1
  5. data/lib/generators/simple_localizer/create_migration_generator.rb +1 -1
  6. data/lib/generators/simple_localizer/templates/create_translations.rb +13 -8
  7. data/lib/simple_localizer.rb +15 -7
  8. data/simple_localizer.gemspec +80 -4
  9. data/spec/dummy/.gitignore +15 -0
  10. data/spec/dummy/Gemfile +40 -0
  11. data/spec/dummy/Gemfile.lock +120 -0
  12. data/spec/dummy/README.rdoc +261 -0
  13. data/spec/dummy/Rakefile +7 -0
  14. data/spec/dummy/app/assets/images/rails.png +0 -0
  15. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  16. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  17. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  18. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  19. data/spec/dummy/app/mailers/.gitkeep +0 -0
  20. data/spec/dummy/app/models/admin/catalog.rb +3 -0
  21. data/spec/dummy/app/models/admin.rb +5 -0
  22. data/spec/dummy/app/models/food/restaurant.rb +3 -0
  23. data/spec/dummy/app/models/food.rb +2 -0
  24. data/spec/dummy/app/models/legacy/service.rb +4 -0
  25. data/spec/dummy/app/models/legacy.rb +2 -0
  26. data/spec/dummy/app/models/product.rb +3 -0
  27. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/spec/dummy/config/application.rb +62 -0
  29. data/spec/dummy/config/boot.rb +6 -0
  30. data/spec/dummy/config/database.yml +25 -0
  31. data/spec/dummy/config/environment.rb +5 -0
  32. data/spec/dummy/config/environments/development.rb +37 -0
  33. data/spec/dummy/config/environments/production.rb +67 -0
  34. data/spec/dummy/config/environments/test.rb +37 -0
  35. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/spec/dummy/config/initializers/inflections.rb +15 -0
  37. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  38. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  39. data/spec/dummy/config/initializers/session_store.rb +8 -0
  40. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/spec/dummy/config/locales/en.yml +5 -0
  42. data/spec/dummy/config/routes.rb +58 -0
  43. data/spec/dummy/config.ru +4 -0
  44. data/spec/dummy/db/migrate/20130123145651_create_admin_catalogs.rb +8 -0
  45. data/spec/dummy/db/migrate/20130123151746_create_food_restaurants.rb +8 -0
  46. data/spec/dummy/db/migrate/20130123151803_create_legacy_services.rb +8 -0
  47. data/spec/dummy/db/migrate/20130123151814_create_products.rb +8 -0
  48. data/spec/dummy/db/migrate/20130123200420_create_admin_catalog_translations.rb +15 -0
  49. data/spec/dummy/db/migrate/20130123200525_create_food_restaurant_translations.rb +15 -0
  50. data/spec/dummy/db/migrate/20130123200536_create_legacy_service_translations.rb +15 -0
  51. data/spec/dummy/db/migrate/20130123200543_create_product_translations.rb +15 -0
  52. data/spec/dummy/db/schema.rb +84 -0
  53. data/spec/dummy/db/seeds.rb +7 -0
  54. data/spec/dummy/lib/assets/.gitkeep +0 -0
  55. data/spec/dummy/lib/tasks/.gitkeep +0 -0
  56. data/spec/dummy/log/.gitkeep +0 -0
  57. data/spec/dummy/public/404.html +26 -0
  58. data/spec/dummy/public/422.html +26 -0
  59. data/spec/dummy/public/500.html +25 -0
  60. data/spec/dummy/public/favicon.ico +0 -0
  61. data/spec/dummy/public/index.html +241 -0
  62. data/spec/dummy/public/robots.txt +5 -0
  63. data/spec/dummy/script/rails +6 -0
  64. data/spec/dummy/test/fixtures/.gitkeep +0 -0
  65. data/spec/dummy/test/fixtures/admin/catalogs.yml +11 -0
  66. data/spec/dummy/test/fixtures/food/restaurants.yml +11 -0
  67. data/spec/dummy/test/fixtures/legacy/services.yml +11 -0
  68. data/spec/dummy/test/fixtures/products.yml +11 -0
  69. data/spec/dummy/test/functional/.gitkeep +0 -0
  70. data/spec/dummy/test/integration/.gitkeep +0 -0
  71. data/spec/dummy/test/performance/browsing_test.rb +12 -0
  72. data/spec/dummy/test/test_helper.rb +13 -0
  73. data/spec/dummy/test/unit/.gitkeep +0 -0
  74. data/spec/dummy/test/unit/admin/catalog_test.rb +7 -0
  75. data/spec/dummy/test/unit/food/restaurant_test.rb +7 -0
  76. data/spec/dummy/test/unit/legacy/service_test.rb +7 -0
  77. data/spec/dummy/test/unit/product_test.rb +7 -0
  78. data/spec/dummy/vendor/assets/javascripts/.gitkeep +0 -0
  79. data/spec/dummy/vendor/assets/stylesheets/.gitkeep +0 -0
  80. data/spec/dummy/vendor/plugins/.gitkeep +0 -0
  81. data/spec/simple_localizer_spec.rb +114 -46
  82. data/spec/spec_helper.rb +2 -6
  83. metadata +109 -17
  84. data/spec/database.yml +0 -4
  85. data/spec/db/test.sqlite3 +0 -0
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
File without changes
File without changes
@@ -0,0 +1,12 @@
1
+ require 'test_helper'
2
+ require 'rails/performance_test_help'
3
+
4
+ class BrowsingTest < ActionDispatch::PerformanceTest
5
+ # Refer to the documentation for all available options
6
+ # self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
7
+ # :output => 'tmp/performance', :formats => [:flat] }
8
+
9
+ def test_homepage
10
+ get '/'
11
+ end
12
+ end
@@ -0,0 +1,13 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path('../../config/environment', __FILE__)
3
+ require 'rails/test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
7
+ #
8
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
9
+ # -- they do not yet inherit this setting
10
+ fixtures :all
11
+
12
+ # Add more helper methods to be used by all tests here...
13
+ end
File without changes
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class Admin::CatalogTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class Food::RestaurantTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class Legacy::ServiceTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ProductTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
File without changes
File without changes
File without changes
@@ -1,23 +1,77 @@
1
1
  # encoding: UTF-8
2
2
 
3
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
3
+ require File.expand_path('../spec_helper', __FILE__)
4
+
5
+ describe "проверяем всякие штуки с неймспейсами" do
6
+ describe Food::Restaurant do
7
+ it "должна быть доступна связь translations" do
8
+ owner = Food::Restaurant.create! :name => 'asd'
9
+ expect {
10
+ owner.translations
11
+ }.to_not raise_error
12
+ end
13
+ end
4
14
 
5
- class Product < ActiveRecord::Base
6
- translates :name
7
- end
15
+ describe Food::Restaurant::Translation do
16
+ it "должна быть доступна связь admin_catalog" do
17
+ translation = Food::Restaurant::Translation.create!(
18
+ :locale => 'ru',
19
+ :food_restaurant_id => Food::Restaurant.create!.id,
20
+ :name => 'asd'
21
+ )
22
+
23
+ expect {
24
+ translation.food_restaurant
25
+ }.to_not raise_error
26
+ end
27
+ end
28
+
29
+ describe Admin::Catalog do
30
+ it "должна быть доступна связь translations" do
31
+ owner = Admin::Catalog.create! :name => 'asd'
32
+ expect {
33
+ owner.translations
34
+ }.to_not raise_error
35
+ end
36
+ end
8
37
 
9
- module Admin
10
- class Catalog < ActiveRecord::Base
11
- translates :name
38
+ describe Admin::Catalog::Translation do
39
+ it "должна быть доступна связь admin_catalog" do
40
+ translation = Admin::Catalog::Translation.create!(
41
+ :locale => 'ru',
42
+ :admin_catalog_id => Admin::Catalog.create!.id,
43
+ :name => 'asd'
44
+ )
45
+
46
+ expect {
47
+ translation.admin_catalog
48
+ }.to_not raise_error
49
+ end
12
50
  end
13
- end
14
51
 
15
- describe Admin::Catalog::Translation do
16
- it "должен правильно установить название таблици" do
17
- Admin::Catalog::Translation.table_name.should == 'admin_catalog_translations'
52
+ describe Legacy::Service do
53
+ it "должна быть доступна связь translations" do
54
+ owner = Legacy::Service.create! :name => 'asd'
55
+ expect {
56
+ owner.translations
57
+ }.to_not raise_error
58
+ end
18
59
  end
19
- end
20
60
 
61
+ describe Legacy::Service::Translation do
62
+ it "должна быть доступна связь legacy_service" do
63
+ translation = Legacy::Service::Translation.create!(
64
+ :locale => 'ru',
65
+ :legacy_service_id => Legacy::Service.create!.id,
66
+ :name => 'asd'
67
+ )
68
+
69
+ expect {
70
+ translation.legacy_service
71
+ }.to_not raise_error
72
+ end
73
+ end
74
+ end
21
75
 
22
76
  describe SimpleLocalizer do
23
77
  it "должен выполнить блок с установленным языком" do
@@ -30,81 +84,95 @@ end
30
84
 
31
85
  describe Product::Translation do
32
86
  describe "валидация" do
33
- before(:each) do
34
- @translation = Product::Translation.new
35
- end
87
+ let(:translation) { Product::Translation.new }
88
+ let(:product) { Product.create! }
36
89
 
37
90
  it "не должен быть валидным если поле локали пустое" do
38
- @translation.valid?.should be_false
39
- @translation.errors['locale'].should be_include "can't be blank"
91
+ translation.valid?.should be_false
92
+ translation.errors['locale'].should be_include "can't be blank"
40
93
  end
41
94
 
42
95
  it "не должен быть валидным если поле для belongs_to связи не уникальное в скопе с полем locale" do
43
- Product::Translation.create! :locale => 'ru', :product_id => 123, :name => 'asd'
44
- @translation.locale = 'ru'
45
- @translation.name = 'qwe'
46
- @translation.product_id = 123
47
- @translation.valid?.should be_false
48
- @translation.errors['locale'].should be_include "has already been taken"
96
+ Product::Translation.create!(
97
+ :locale => 'ru',
98
+ :product_id => product.id,
99
+ :name => 'asd'
100
+ )
101
+ translation.locale = 'ru'
102
+ translation.name = 'qwe'
103
+ translation.product_id = product.id
104
+ translation.valid?.should be_false
105
+ translation.errors['locale'].should be_include "has already been taken"
49
106
  end
50
107
 
51
108
  it "должна работать предзагрузка ассоциаций" do
52
- Product::Translation.create! :locale => 'ru', :product_id => 123, :name => 'asd'
53
- Product::Translation.includes(:product).first.should be_instance_of(Product::Translation)
109
+ Product::Translation.create!(
110
+ :locale => 'ru',
111
+ :product_id => product.id,
112
+ :name => 'asd'
113
+ )
114
+ expect {
115
+ Product::Translation.includes(:product).all
116
+ }.to_not raise_error
54
117
  end
55
118
  end
56
119
  end
57
120
 
58
121
  describe Product do
122
+ let(:product) { Product.create! :name_ru => 'asd' }
123
+
59
124
  describe "после обвноления" do
60
- before(:each) do
61
- @product = Product.create! :name_ru => 'asd'
62
- end
63
125
 
64
126
  it "должен обновлять перевод" do
65
- @product.update_attributes :name_ru => 'qwe'
66
- @product.translations.first.name.should == 'qwe'
127
+ product.update_attributes :name_ru => 'qwe'
128
+ product.translations.where(:locale => 'ru').first.name.should == 'qwe'
67
129
  end
68
130
 
69
131
  it "должен добавить новый перевод" do
70
- @product.translations.count.should == 1
71
- @product.update_attributes :name_en => 'qwe'
72
- @product.translations.count.should == 2
132
+ product.translations.count.should == 1
133
+ product.update_attributes :name_en => 'qwe'
134
+ product.translations.count.should == 2
73
135
  end
74
136
  end
75
137
 
76
138
  describe "после создания" do
77
- before(:each) do
78
- @product = Product.create! :name_ru => 'asd'
79
- end
80
-
81
139
  it "должен создать несколько переводов" do
82
- product = Product.create! :name_ru => 'asd', :name_en => 'asd'
83
- product.translations.count.should == 2
140
+ Product.create!(
141
+ :name_ru => 'asd',
142
+ :name_en => 'asd'
143
+ ).translations.count.should == 2
84
144
  end
85
145
 
86
146
  it "должен создать перевод с заданной локалью" do
87
- @product.translations.count.should == 1
147
+ product.translations.count.should == 1
88
148
  end
89
149
 
90
150
  it "локаль в созданном переводе должна равняться заданной при создании" do
91
- @product.translations.first.locale.should == 'ru'
151
+ product.translations.first.locale.should == 'ru'
92
152
  end
93
153
 
94
154
  it "значение в переводе должено равняться переданному при создании" do
95
- @product.translations.first.name.should == 'asd'
155
+ product.translations.first.name.should == 'asd'
96
156
  end
97
157
  end
98
158
 
99
159
  it "должен отдать с fallback локалью" do
100
160
  I18n::Backend::Simple.include(I18n::Backend::Fallbacks)
101
161
  I18n.fallbacks[:ru] = [:ru, :en, :fr]
102
- product = Product.create! :name_fr => 'asd', :name_ru => nil, :name_en => nil
103
- product.name_ru.should == 'asd'
162
+ Product.create!(
163
+ :name_fr => 'asd',
164
+ :name_ru => nil,
165
+ :name_en => nil
166
+ ).name_ru.should == 'asd'
104
167
  end
105
168
 
106
169
  it "должен создать перевод с локалью I18n.default_locale" do
107
- product = Product.create! :name => 'asd'
108
- product.translations.first.locale == I18n.default_locale
170
+ Product.create!(
171
+ :name => 'asd'
172
+ ).translations.first.locale == I18n.default_locale
109
173
  end
110
174
  end
175
+
176
+ describe "генерация миграций" do
177
+ pending
178
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,13 +1,9 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
3
1
  require 'rspec'
4
2
  require 'simple_localizer'
5
3
  require 'database_cleaner'
6
- require 'logger'
7
4
  require 'pp'
8
-
9
- config = YAML.load_file File.expand_path(File.join(File.dirname(__FILE__), 'database.yml'))
10
- ActiveRecord::Base.establish_connection config
5
+ ENV["RAILS_ENV"] ||= 'test'
6
+ require File.expand_path("../dummy/config/environment", __FILE__)
11
7
 
12
8
  I18n.default_locale = :ru
13
9
  I18n.locale = :en
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_localizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-17 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &70247857739520 !ruby/object:Gem::Requirement
16
+ requirement: &70257384619060 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70247857739520
24
+ version_requirements: *70257384619060
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70247857764020 !ruby/object:Gem::Requirement
27
+ requirement: &70257384631020 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.8.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70247857764020
35
+ version_requirements: *70257384631020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70247857782260 !ruby/object:Gem::Requirement
38
+ requirement: &70257384628940 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.0.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70247857782260
46
+ version_requirements: *70257384628940
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &70247857789420 !ruby/object:Gem::Requirement
49
+ requirement: &70257384626000 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.8.4
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70247857789420
57
+ version_requirements: *70257384626000
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: database_cleaner
60
- requirement: &70247857812580 !ruby/object:Gem::Requirement
60
+ requirement: &70257384624000 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70247857812580
68
+ version_requirements: *70257384624000
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
- requirement: &70247857811000 !ruby/object:Gem::Requirement
71
+ requirement: &70257384638660 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,29 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70247857811000
79
+ version_requirements: *70257384638660
80
+ - !ruby/object:Gem::Dependency
81
+ name: rails
82
+ requirement: &70257384637400 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - =
86
+ - !ruby/object:Gem::Version
87
+ version: 3.2.10
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *70257384637400
91
+ - !ruby/object:Gem::Dependency
92
+ name: rack
93
+ requirement: &70257384634960 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - =
97
+ - !ruby/object:Gem::Version
98
+ version: 1.4.1
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *70257384634960
80
102
  description: Simple localization your ActiveRecord fields without magic
81
103
  email: vad4msiu@gmail.com
82
104
  executables: []
@@ -95,8 +117,78 @@ files:
95
117
  - lib/generators/simple_localizer/templates/create_translations.rb
96
118
  - lib/simple_localizer.rb
97
119
  - simple_localizer.gemspec
98
- - spec/database.yml
99
- - spec/db/test.sqlite3
120
+ - spec/dummy/.gitignore
121
+ - spec/dummy/Gemfile
122
+ - spec/dummy/Gemfile.lock
123
+ - spec/dummy/README.rdoc
124
+ - spec/dummy/Rakefile
125
+ - spec/dummy/app/assets/images/rails.png
126
+ - spec/dummy/app/assets/javascripts/application.js
127
+ - spec/dummy/app/assets/stylesheets/application.css
128
+ - spec/dummy/app/controllers/application_controller.rb
129
+ - spec/dummy/app/helpers/application_helper.rb
130
+ - spec/dummy/app/mailers/.gitkeep
131
+ - spec/dummy/app/models/admin.rb
132
+ - spec/dummy/app/models/admin/catalog.rb
133
+ - spec/dummy/app/models/food.rb
134
+ - spec/dummy/app/models/food/restaurant.rb
135
+ - spec/dummy/app/models/legacy.rb
136
+ - spec/dummy/app/models/legacy/service.rb
137
+ - spec/dummy/app/models/product.rb
138
+ - spec/dummy/app/views/layouts/application.html.erb
139
+ - spec/dummy/config.ru
140
+ - spec/dummy/config/application.rb
141
+ - spec/dummy/config/boot.rb
142
+ - spec/dummy/config/database.yml
143
+ - spec/dummy/config/environment.rb
144
+ - spec/dummy/config/environments/development.rb
145
+ - spec/dummy/config/environments/production.rb
146
+ - spec/dummy/config/environments/test.rb
147
+ - spec/dummy/config/initializers/backtrace_silencers.rb
148
+ - spec/dummy/config/initializers/inflections.rb
149
+ - spec/dummy/config/initializers/mime_types.rb
150
+ - spec/dummy/config/initializers/secret_token.rb
151
+ - spec/dummy/config/initializers/session_store.rb
152
+ - spec/dummy/config/initializers/wrap_parameters.rb
153
+ - spec/dummy/config/locales/en.yml
154
+ - spec/dummy/config/routes.rb
155
+ - spec/dummy/db/migrate/20130123145651_create_admin_catalogs.rb
156
+ - spec/dummy/db/migrate/20130123151746_create_food_restaurants.rb
157
+ - spec/dummy/db/migrate/20130123151803_create_legacy_services.rb
158
+ - spec/dummy/db/migrate/20130123151814_create_products.rb
159
+ - spec/dummy/db/migrate/20130123200420_create_admin_catalog_translations.rb
160
+ - spec/dummy/db/migrate/20130123200525_create_food_restaurant_translations.rb
161
+ - spec/dummy/db/migrate/20130123200536_create_legacy_service_translations.rb
162
+ - spec/dummy/db/migrate/20130123200543_create_product_translations.rb
163
+ - spec/dummy/db/schema.rb
164
+ - spec/dummy/db/seeds.rb
165
+ - spec/dummy/lib/assets/.gitkeep
166
+ - spec/dummy/lib/tasks/.gitkeep
167
+ - spec/dummy/log/.gitkeep
168
+ - spec/dummy/public/404.html
169
+ - spec/dummy/public/422.html
170
+ - spec/dummy/public/500.html
171
+ - spec/dummy/public/favicon.ico
172
+ - spec/dummy/public/index.html
173
+ - spec/dummy/public/robots.txt
174
+ - spec/dummy/script/rails
175
+ - spec/dummy/test/fixtures/.gitkeep
176
+ - spec/dummy/test/fixtures/admin/catalogs.yml
177
+ - spec/dummy/test/fixtures/food/restaurants.yml
178
+ - spec/dummy/test/fixtures/legacy/services.yml
179
+ - spec/dummy/test/fixtures/products.yml
180
+ - spec/dummy/test/functional/.gitkeep
181
+ - spec/dummy/test/integration/.gitkeep
182
+ - spec/dummy/test/performance/browsing_test.rb
183
+ - spec/dummy/test/test_helper.rb
184
+ - spec/dummy/test/unit/.gitkeep
185
+ - spec/dummy/test/unit/admin/catalog_test.rb
186
+ - spec/dummy/test/unit/food/restaurant_test.rb
187
+ - spec/dummy/test/unit/legacy/service_test.rb
188
+ - spec/dummy/test/unit/product_test.rb
189
+ - spec/dummy/vendor/assets/javascripts/.gitkeep
190
+ - spec/dummy/vendor/assets/stylesheets/.gitkeep
191
+ - spec/dummy/vendor/plugins/.gitkeep
100
192
  - spec/simple_localizer_spec.rb
101
193
  - spec/spec_helper.rb
102
194
  homepage: https://github.com/vad4msiu/simple_localizer.git
@@ -114,7 +206,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
206
  version: '0'
115
207
  segments:
116
208
  - 0
117
- hash: -1871419541144395559
209
+ hash: 434225171533963133
118
210
  required_rubygems_version: !ruby/object:Gem::Requirement
119
211
  none: false
120
212
  requirements:
data/spec/database.yml DELETED
@@ -1,4 +0,0 @@
1
- adapter: sqlite3
2
- database: spec/db/test.sqlite3
3
- pool: 5
4
- timeout: 5000
data/spec/db/test.sqlite3 DELETED
Binary file