spree_br_common 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/default/user.rb +2 -2
- data/db/migrate/20150504004509_remove_city_from_spree_address.rb +1 -1
- data/spec/controllers/spree/addresses_controller_spec.rb +2 -2
- data/spec/{controllers/features → features}/address_checkout_spec.rb +0 -0
- data/spec/{controllers/features → features}/user_account_spec.rb +0 -0
- data/spec/{controllers/features → features}/user_signup_spec.rb +0 -0
- data/spec/support/vcr.rb +2 -2
- data/spree_br_common.gemspec +7 -7
- metadata +48 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22bbc1e11211e5537393c674f4ae6242c759492a
|
4
|
+
data.tar.gz: 4b7bb153da253825c32fbfec8ac77eac9382076d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3841c67832981e315f7fd15d948d27380f55705e6c48a6be2b73ebe5f155f3b2a4095cbff8ea8a1f21c7f848ef6b586e5cd6ead2ff8232d076b751432e8f5670
|
7
|
+
data.tar.gz: 2f34b2b21118838a1700b157060604eab3f6235fd894af8fe8d6ec487ad289735a8aa0d552e7ae37bb0f0c5c536c40f70fc53e19557c432c98c603b85f776bee
|
data/db/default/user.rb
CHANGED
@@ -37,8 +37,8 @@ end
|
|
37
37
|
|
38
38
|
def create_admin_user
|
39
39
|
attributes = {
|
40
|
-
:password => '
|
41
|
-
:email => '
|
40
|
+
:password => 'spree123',
|
41
|
+
:email => 'spree@example.com',
|
42
42
|
:first_name => 'admin',
|
43
43
|
:last_name => 'admin',
|
44
44
|
:phone => '11 12212122',
|
@@ -15,13 +15,13 @@ describe Spree::AddressesController, :type => :controller do
|
|
15
15
|
it 'does not find an incorrect cep' do
|
16
16
|
api_get :show, {cep: '00000000'}
|
17
17
|
|
18
|
-
expect(response
|
18
|
+
expect(response).to have_http_status(:not_found)
|
19
19
|
end
|
20
20
|
|
21
21
|
it 'requires :cep parameter' do
|
22
22
|
expect {
|
23
23
|
api_get :show
|
24
|
-
}.to
|
24
|
+
}.to raise_error ActionController::ParameterMissing
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
File without changes
|
File without changes
|
File without changes
|
data/spec/support/vcr.rb
CHANGED
data/spree_br_common.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.platform = Gem::Platform::RUBY
|
4
4
|
s.name = 'spree_br_common'
|
5
|
-
s.version = '3.0.
|
5
|
+
s.version = '3.0.1'
|
6
6
|
s.summary = 'Brazil common aspects'
|
7
7
|
s.description = 'This extension has goal to provide common aspects as cities, extras address informations and some seeds to Brazil'
|
8
8
|
s.required_ruby_version = '>= 2.0.0'
|
@@ -16,14 +16,14 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.require_path = 'lib'
|
17
17
|
s.requirements << 'none'
|
18
18
|
|
19
|
-
s.
|
20
|
-
s.
|
21
|
-
s.
|
22
|
-
s.
|
19
|
+
s.add_runtime_dependency 'spree_core', '~> 3.0', '>= 3.0.0'
|
20
|
+
s.add_runtime_dependency 'cpf_cnpj', '~> 0.2', '>= 0.2.1'
|
21
|
+
s.add_runtime_dependency 'jc-validates_timeliness', '~> 3.1', '>= 3.1.1'
|
22
|
+
s.add_runtime_dependency 'rest-client', '~> 1.8', '>= 1.8.0'
|
23
23
|
|
24
24
|
s.add_development_dependency 'capybara', '~> 2.4'
|
25
|
-
s.add_development_dependency 'coffee-rails'
|
26
|
-
s.add_development_dependency 'database_cleaner'
|
25
|
+
s.add_development_dependency 'coffee-rails', '~> 4.1', '>= 4.1.0'
|
26
|
+
s.add_development_dependency 'database_cleaner', '~> 1.5', '>= 1.5.1'
|
27
27
|
s.add_development_dependency 'factory_girl', '~> 4.5'
|
28
28
|
s.add_development_dependency 'ffaker'
|
29
29
|
s.add_development_dependency 'rspec-rails', '~> 3.1'
|
metadata
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_br_common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Domingues
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: spree_core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 3.0.0
|
20
23
|
type: :runtime
|
@@ -22,6 +25,9 @@ dependencies:
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.0'
|
30
|
+
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 3.0.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
@@ -29,6 +35,9 @@ dependencies:
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.2'
|
40
|
+
- - ">="
|
32
41
|
- !ruby/object:Gem::Version
|
33
42
|
version: 0.2.1
|
34
43
|
type: :runtime
|
@@ -36,6 +45,9 @@ dependencies:
|
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
47
|
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.2'
|
50
|
+
- - ">="
|
39
51
|
- !ruby/object:Gem::Version
|
40
52
|
version: 0.2.1
|
41
53
|
- !ruby/object:Gem::Dependency
|
@@ -43,6 +55,9 @@ dependencies:
|
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
44
56
|
requirements:
|
45
57
|
- - "~>"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '3.1'
|
60
|
+
- - ">="
|
46
61
|
- !ruby/object:Gem::Version
|
47
62
|
version: 3.1.1
|
48
63
|
type: :runtime
|
@@ -50,6 +65,9 @@ dependencies:
|
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
51
66
|
requirements:
|
52
67
|
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.1'
|
70
|
+
- - ">="
|
53
71
|
- !ruby/object:Gem::Version
|
54
72
|
version: 3.1.1
|
55
73
|
- !ruby/object:Gem::Dependency
|
@@ -57,6 +75,9 @@ dependencies:
|
|
57
75
|
requirement: !ruby/object:Gem::Requirement
|
58
76
|
requirements:
|
59
77
|
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '1.8'
|
80
|
+
- - ">="
|
60
81
|
- !ruby/object:Gem::Version
|
61
82
|
version: 1.8.0
|
62
83
|
type: :runtime
|
@@ -64,6 +85,9 @@ dependencies:
|
|
64
85
|
version_requirements: !ruby/object:Gem::Requirement
|
65
86
|
requirements:
|
66
87
|
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.8'
|
90
|
+
- - ">="
|
67
91
|
- !ruby/object:Gem::Version
|
68
92
|
version: 1.8.0
|
69
93
|
- !ruby/object:Gem::Dependency
|
@@ -84,30 +108,42 @@ dependencies:
|
|
84
108
|
name: coffee-rails
|
85
109
|
requirement: !ruby/object:Gem::Requirement
|
86
110
|
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '4.1'
|
87
114
|
- - ">="
|
88
115
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
116
|
+
version: 4.1.0
|
90
117
|
type: :development
|
91
118
|
prerelease: false
|
92
119
|
version_requirements: !ruby/object:Gem::Requirement
|
93
120
|
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '4.1'
|
94
124
|
- - ">="
|
95
125
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
126
|
+
version: 4.1.0
|
97
127
|
- !ruby/object:Gem::Dependency
|
98
128
|
name: database_cleaner
|
99
129
|
requirement: !ruby/object:Gem::Requirement
|
100
130
|
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '1.5'
|
101
134
|
- - ">="
|
102
135
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
136
|
+
version: 1.5.1
|
104
137
|
type: :development
|
105
138
|
prerelease: false
|
106
139
|
version_requirements: !ruby/object:Gem::Requirement
|
107
140
|
requirements:
|
141
|
+
- - "~>"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '1.5'
|
108
144
|
- - ">="
|
109
145
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
146
|
+
version: 1.5.1
|
111
147
|
- !ruby/object:Gem::Dependency
|
112
148
|
name: factory_girl
|
113
149
|
requirement: !ruby/object:Gem::Requirement
|
@@ -291,11 +327,11 @@ files:
|
|
291
327
|
- lib/spree_br_common/factories/address_factory.rb
|
292
328
|
- lib/spree_br_common/factories/city_factory.rb
|
293
329
|
- lib/spree_br_common/factories/user_factory.rb
|
294
|
-
- spec/controllers/features/address_checkout_spec.rb
|
295
|
-
- spec/controllers/features/user_account_spec.rb
|
296
|
-
- spec/controllers/features/user_signup_spec.rb
|
297
330
|
- spec/controllers/spree/addresses_controller_spec.rb
|
298
331
|
- spec/controllers/spree/api/cities_controller_spec.rb
|
332
|
+
- spec/features/address_checkout_spec.rb
|
333
|
+
- spec/features/user_account_spec.rb
|
334
|
+
- spec/features/user_signup_spec.rb
|
299
335
|
- spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/does_not_break_the_per-item_shipping_method_calculator.yml
|
300
336
|
- spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/in_Brazil/should_autocomplete_zipcode.yml
|
301
337
|
- spec/fixtures/vcr_cassettes/Spree_AddressesController/_show/does_not_find_an_incorrect_cep.yml
|
@@ -333,11 +369,11 @@ signing_key:
|
|
333
369
|
specification_version: 4
|
334
370
|
summary: Brazil common aspects
|
335
371
|
test_files:
|
336
|
-
- spec/controllers/features/address_checkout_spec.rb
|
337
|
-
- spec/controllers/features/user_account_spec.rb
|
338
|
-
- spec/controllers/features/user_signup_spec.rb
|
339
372
|
- spec/controllers/spree/addresses_controller_spec.rb
|
340
373
|
- spec/controllers/spree/api/cities_controller_spec.rb
|
374
|
+
- spec/features/address_checkout_spec.rb
|
375
|
+
- spec/features/user_account_spec.rb
|
376
|
+
- spec/features/user_signup_spec.rb
|
341
377
|
- spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/does_not_break_the_per-item_shipping_method_calculator.yml
|
342
378
|
- spec/fixtures/vcr_cassettes/Checkout/visitor_makes_checkout_as_guest_without_registration/full_checkout/in_Brazil/should_autocomplete_zipcode.yml
|
343
379
|
- spec/fixtures/vcr_cassettes/Spree_AddressesController/_show/does_not_find_an_incorrect_cep.yml
|