solidus_br_common 1.1.0 → 1.1.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: 9b0c10dced182787ee316101915a0a147cbff419
4
- data.tar.gz: 35170c6022fcc61906d3b8797ae816574c321502
3
+ metadata.gz: 645b7dda74a73f03b2a900bb2d208f055ee2d12e
4
+ data.tar.gz: cca49894489c7468bb2b7188e0b7e69566c84ebe
5
5
  SHA512:
6
- metadata.gz: 44ff2360905131ede86e3630b34292986ed90aaae45517444db1381cfd9fe0c44c5e57a3cdb26d89e0b65e92a48f4eff6a807f33413e00cf8e333a4921f8405e
7
- data.tar.gz: 8c826ac445da5fa6507229afc0d8bf20921cde2510af73084fcd3648f74a54e9d5b135aff2c189b5eb12f5999aad666d8342ed10d2e0b317412a85c2393e1c6d
6
+ metadata.gz: a75703033f4079e2e4a8e8daab9394282eda97fac8efb22db45b11ac227e59dde2b4ee436ec02fcee35a0b9dbd5863f318ce0fe9f79a71ffee2966d00f483cad
7
+ data.tar.gz: e4c458ff8fd5ba63495bd8a6d45ef3fd020d4dbc7301aeaf477f99ac2d34e307e5bbb39f8ca3e33ed45fb621f7289d57f461f1d8f14a30fbd97dc3c1ac14cb38
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![Build Status](https://travis-ci.org/ddomingues/solidus_br_common.svg)](https://travis-ci.org/ddomingues/solidus_br_common)
4
4
  [![Code Climate](https://codeclimate.com/github/ddomingues/solidus_br_common/badges/gpa.svg)](https://codeclimate.com/github/ddomingues/solidus_br_common)
5
5
  [![Test Coverage](https://codeclimate.com/github/ddomingues/solidus_br_common/badges/coverage.svg)](https://codeclimate.com/github/ddomingues/solidus_br_common)
6
+ [![Dependency Status](https://gemnasium.com/ddomingues/solidus_br_common.svg)](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="form-group" id=<%="#{address_id}district" %>>
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="form-group" id=<%="#{address_id}number" %>>
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,4 +1,4 @@
1
1
  <!-- replace 'p[data-erb-id*="country"]' -->
2
- <p class="form-group" id=<%="#{address_id}country" %>>
2
+ <p class="field" id=<%="#{address_id}country" %>>
3
3
  <%= form.hidden_field :country_id %>
4
4
  </p>
@@ -1,5 +1,5 @@
1
1
  <!-- replace 'p[data-erb-id*="city"]' -->
2
- <p class="form-group" id=<%="#{address_id}city" %>>
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
- <div class="form-group">
3
- <%= f.text_field :first_name, :class => 'form-control', :placeholder => Spree.t(:first_name), :maxlength => 100 %>
4
- </div>
5
- <div class="form-group">
6
- <%= f.text_field :last_name, :class => 'form-control', :placeholder => Spree.t(:last_name), :maxlength => 100 %>
7
- </div>
8
- <div class="form-group">
9
- <%= f.text_field :cpf, :class => 'form-control', :placeholder => Spree.t(:cpf), :maxlength => 14, :'data-mask' => '000.000.000-00' %>
10
- </div>
11
- <div class="form-group">
12
- <%= f.text_field :date_of_birth, :class => 'form-control datepicker', :value => datepicker_value(@user, :date_of_birth), :'data-mask' => Spree.t('date_picker.js_mask'), :placeholder => Spree.t(:date_of_birth) %>
13
- </div>
14
- <div class="form-group">
15
- <%= f.telephone_field :phone, :class => 'form-control', :placeholder => Spree.t(:phone), :maxlength => 12 %>
16
- </div>
17
- <div class="form-group">
18
- <%= f.telephone_field :alternative_phone, :class => 'form-control', :placeholder => Spree.t(:alternative_phone), :maxlength => 16 %>
19
- </div>
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>
@@ -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.0'
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 'jc-validates_timeliness', '~> 3.1', '>= 3.1.1'
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.0
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-28 00:00:00.000000000 Z
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: jc-validates_timeliness
48
+ name: validates_timeliness
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '3.1'
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: '3.1'
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