solidus_br_common 1.1.0 → 1.1.1
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/README.md +1 -0
- data/app/overrides/spree/address/_form/add_district.html.erb.deface +1 -1
- data/app/overrides/spree/address/_form/add_number.html.erb.deface +1 -1
- data/app/overrides/spree/address/_form/hide_country.html.erb.deface +1 -1
- data/app/overrides/spree/address/_form/replace_city_input_text_by_select.html.erb.deface +1 -1
- data/app/overrides/spree/shared/_user_form/add_extra_fields.html.erb.deface +24 -18
- data/solidus_br_common.gemspec +2 -2
- metadata +5 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 645b7dda74a73f03b2a900bb2d208f055ee2d12e
|
|
4
|
+
data.tar.gz: cca49894489c7468bb2b7188e0b7e69566c84ebe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a75703033f4079e2e4a8e8daab9394282eda97fac8efb22db45b11ac227e59dde2b4ee436ec02fcee35a0b9dbd5863f318ce0fe9f79a71ffee2966d00f483cad
|
|
7
|
+
data.tar.gz: e4c458ff8fd5ba63495bd8a6d45ef3fd020d4dbc7301aeaf477f99ac2d34e307e5bbb39f8ca3e33ed45fb621f7289d57f461f1d8f14a30fbd97dc3c1ac14cb38
|
data/README.md
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
[](https://travis-ci.org/ddomingues/solidus_br_common)
|
|
4
4
|
[](https://codeclimate.com/github/ddomingues/solidus_br_common)
|
|
5
5
|
[](https://codeclimate.com/github/ddomingues/solidus_br_common)
|
|
6
|
+
[](https://gemnasium.com/ddomingues/solidus_br_common)
|
|
6
7
|
|
|
7
8
|
This extension has goal to provide common aspects as cities, extras address informations and some seeds to Brazil.
|
|
8
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- insert_after '[data-erb-id*="address2"]' -->
|
|
2
|
-
<p class="
|
|
2
|
+
<p class="field" id=<%="#{address_id}district" %>>
|
|
3
3
|
<%= form.label :district, Spree.t(:district) %><span class="required">*</span><br />
|
|
4
4
|
<%= form.text_field :district, class: 'form-control required ajax-loading' %>
|
|
5
5
|
</p>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- insert_before '[data-erb-id*="address2"]' -->
|
|
2
|
-
<p class="
|
|
2
|
+
<p class="field" id=<%="#{address_id}number" %>>
|
|
3
3
|
<%= form.label :number, Spree.t(:number) %><span class="required">*</span><br />
|
|
4
4
|
<%= form.number_field :number, class: 'form-control required ajax-loading' %>
|
|
5
5
|
</p>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- replace 'p[data-erb-id*="city"]' -->
|
|
2
|
-
<p class="
|
|
2
|
+
<p class="field" id=<%="#{address_id}city" %>>
|
|
3
3
|
<%= form.label :city, Spree.t(:city) %><span class="required">*</span><br />
|
|
4
4
|
<%= form.collection_select(
|
|
5
5
|
:city_id, address.state ? address.state.cities : [],
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
<!-- insert_top '#password-credentials' -->
|
|
2
|
-
<
|
|
3
|
-
<%= f.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
<%= f.text_field :
|
|
13
|
-
</
|
|
14
|
-
<
|
|
15
|
-
<%= f.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
<p>
|
|
3
|
+
<%= f.label :first_name, Spree.t(:first_name) %> <br>
|
|
4
|
+
<%= f.text_field :first_name, class: 'title', maxlength: 100 %>
|
|
5
|
+
</p>
|
|
6
|
+
<p>
|
|
7
|
+
<%= f.label :last_name, Spree.t(:last_name) %> <br>
|
|
8
|
+
<%= f.text_field :last_name, class: 'title', maxlength: 100 %>
|
|
9
|
+
</p>
|
|
10
|
+
<p>
|
|
11
|
+
<%= f.label :cpf, Spree.t(:cpf) %> <br>
|
|
12
|
+
<%= f.text_field :cpf, class: 'title', maxlength: 14, :'data-mask' => '000.000.000-00' %>
|
|
13
|
+
</p>
|
|
14
|
+
<p>
|
|
15
|
+
<%= f.label :date_of_birth, Spree.t(:date_of_birth) %> <br>
|
|
16
|
+
<%= f.text_field :date_of_birth, class: 'title datepicker', value: datepicker_value(@user, :date_of_birth), :'data-mask' => Spree.t('date_picker.js_mask') %>
|
|
17
|
+
</p>
|
|
18
|
+
<p>
|
|
19
|
+
<%= f.label :phone, Spree.t(:phone) %> <br>
|
|
20
|
+
<%= f.telephone_field :phone, class: 'title', maxlength: 12 %>
|
|
21
|
+
</p>
|
|
22
|
+
<p>
|
|
23
|
+
<%= f.label :alternative_phone, Spree.t(:alternative_phone) %> <br>
|
|
24
|
+
<%= f.telephone_field :alternative_phone, class: 'title', maxlength: 16 %>
|
|
25
|
+
</p>
|
data/solidus_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 = 'solidus_br_common'
|
|
5
|
-
s.version = '1.1.
|
|
5
|
+
s.version = '1.1.1'
|
|
6
6
|
s.summary = 'Brazil commons aspects'
|
|
7
7
|
s.description = 'This extension has goal to provide common aspects as cities, extras address information and some seeds to Brazil'
|
|
8
8
|
s.required_ruby_version = '>= 2.0.0'
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
|
18
18
|
|
|
19
19
|
s.add_runtime_dependency 'solidus_core', '~> 1.1'
|
|
20
20
|
s.add_runtime_dependency 'cpf_cnpj', '~> 0.2', '>= 0.2.1'
|
|
21
|
-
s.add_runtime_dependency '
|
|
21
|
+
s.add_runtime_dependency 'validates_timeliness', '~> 4.0'
|
|
22
22
|
s.add_runtime_dependency 'rest-client', '~> 1.8', '>= 1.8.0'
|
|
23
23
|
|
|
24
24
|
s.add_development_dependency 'capybara', '~> 2.4'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: solidus_br_common
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.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-12-
|
|
11
|
+
date: 2015-12-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: solidus_core
|
|
@@ -45,25 +45,19 @@ dependencies:
|
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: 0.2.1
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
|
-
name:
|
|
48
|
+
name: validates_timeliness
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
54
|
-
- - ">="
|
|
55
|
-
- !ruby/object:Gem::Version
|
|
56
|
-
version: 3.1.1
|
|
53
|
+
version: '4.0'
|
|
57
54
|
type: :runtime
|
|
58
55
|
prerelease: false
|
|
59
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
60
57
|
requirements:
|
|
61
58
|
- - "~>"
|
|
62
59
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: '
|
|
64
|
-
- - ">="
|
|
65
|
-
- !ruby/object:Gem::Version
|
|
66
|
-
version: 3.1.1
|
|
60
|
+
version: '4.0'
|
|
67
61
|
- !ruby/object:Gem::Dependency
|
|
68
62
|
name: rest-client
|
|
69
63
|
requirement: !ruby/object:Gem::Requirement
|