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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b084b052b4a0639e7874cc8156ec820262e4db6
4
- data.tar.gz: a1c325860440697713771be07a69e50c40a7c92c
3
+ metadata.gz: 22bbc1e11211e5537393c674f4ae6242c759492a
4
+ data.tar.gz: 4b7bb153da253825c32fbfec8ac77eac9382076d
5
5
  SHA512:
6
- metadata.gz: 1d1eb57c77ac92baf4b5eb8a6961275039e991a6b90dce03c96e68f456d03048e86ffced341020310b95e26f0eb8224e0b21e4b12e8839f7e4aab10ebdd6c6ed
7
- data.tar.gz: 485b2f7a4acd64a55fd476d2b41985fceb1a26292ecffa1d0be9676a8b3a4daab37ba201ead024b55d2fe93d7e9e16ab37dd39a679206a8202e0fa5229309221
6
+ metadata.gz: 3841c67832981e315f7fd15d948d27380f55705e6c48a6be2b73ebe5f155f3b2a4095cbff8ea8a1f21c7f848ef6b586e5cd6ead2ff8232d076b751432e8f5670
7
+ data.tar.gz: 2f34b2b21118838a1700b157060604eab3f6235fd894af8fe8d6ec487ad289735a8aa0d552e7ae37bb0f0c5c536c40f70fc53e19557c432c98c603b85f776bee
@@ -37,8 +37,8 @@ end
37
37
 
38
38
  def create_admin_user
39
39
  attributes = {
40
- :password => 'fulano',
41
- :email => 'admin@bluesoft.com.br',
40
+ :password => 'spree123',
41
+ :email => 'spree@example.com',
42
42
  :first_name => 'admin',
43
43
  :last_name => 'admin',
44
44
  :phone => '11 12212122',
@@ -1,5 +1,5 @@
1
1
  class RemoveCityFromSpreeAddress < ActiveRecord::Migration
2
2
  def change
3
- remove_column :spree_addresses, :city
3
+ remove_column :spree_addresses, :city, :string
4
4
  end
5
5
  end
@@ -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.status).to eq 404
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 raise_exception
24
+ }.to raise_error ActionController::ParameterMissing
25
25
  end
26
26
  end
27
27
  end
@@ -4,5 +4,5 @@ VCR.configure do |c|
4
4
  c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
5
5
  c.hook_into :webmock
6
6
  c.configure_rspec_metadata!
7
- c.ignore_hosts '127.0.0.1', 'localhost'
8
- end
7
+ c.ignore_hosts '127.0.0.1', 'localhost', 'codeclimate.com'
8
+ end
@@ -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.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.add_dependency 'spree_core', '~> 3.0.0'
20
- s.add_dependency 'cpf_cnpj', '~> 0.2.1'
21
- s.add_dependency 'jc-validates_timeliness', '~> 3.1.1'
22
- s.add_dependency 'rest-client', '~> 1.8.0'
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.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-05-14 00:00:00.000000000 Z
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: '0'
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: '0'
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: '0'
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: '0'
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