spree_zaez_clearsale 3.0.1 → 3.0.2

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: 416686e6dff14e98ee9585eaf3e04f7f18228e66
4
- data.tar.gz: 7440b728c4cea3dbd294d1a4b4eea97a7fcc996b
3
+ metadata.gz: f00b8d860ec4f4de467431aad49df16a13b0f12e
4
+ data.tar.gz: 63b5efe445cfff694bce338114e1dcfe9e53a40c
5
5
  SHA512:
6
- metadata.gz: 755e80597ca81be437e3ead35a089119191ba5bc458d177f2365323c98ec7b05a03b9b9a37f98adba52dba416c37719369844c49cccad4a72817c058bfa3fd62
7
- data.tar.gz: 1a0de27f5573c1d57d17938e35072772806b85cecc9ab28ab1f0ecae186e98bef91d59f6879d6796f25eadb677279aa05d9defa3d1553fb2d8744e3ddc41343e
6
+ metadata.gz: 89defcd4e3ae5f3fb68b7e1e6fe1b870a7314be6cb7fcb90c6fed2119173a303f1ccca7ffb2a135c7b2d8ca572a873386d43d6409fc7d5658e713a5f973ae7af
7
+ data.tar.gz: 51f28efee958a18d8cf4d1202ae10d94cac373a9094facf59e774ef96fa40df064690547dbfb003f9074fbe2e21d59f01d388aa62222f36dff30a242a6bed817
data/.gitignore CHANGED
@@ -12,3 +12,4 @@ nbproject
12
12
  pkg
13
13
  *.swp
14
14
  spec/dummy
15
+ *.gem
@@ -1,5 +1,5 @@
1
1
  <!-- insert_before "erb[silent]:contains('if can? :index, Spree::ReturnAuthorization')" -->
2
- <% if can?(:edit, Spree::Payment) and payments_registered_in_clearsale? %>
2
+ <% if can?(:clear_sale, Spree::Payment) and payments_registered_in_clearsale? %>
3
3
  <li<%== 'class="active"' if current == 'Clear Sale' %> data-hook='admin_order_tabs_clearsale'>
4
4
  <%= link_to_with_icon 'lock', Spree.t(:clear_sale), spree.admin_order_payments_clear_sale_url(@order) %>
5
5
  </li>
@@ -1,2 +1,2 @@
1
1
  <!-- insert_bottom "[data-hook='admin_configurations_sidebar_menu'], #admin_configurations_sidebar_menu[data-hook]" -->
2
- <%= configurations_sidebar_menu_item t(:clear_sale_settings), edit_admin_clear_sale_settings_path %>
2
+ <%= configurations_sidebar_menu_item(t(:clear_sale_settings), edit_admin_clear_sale_settings_path) if can? :manage, :clear_sale_settings %>
@@ -46,7 +46,7 @@
46
46
  <div class="col-sm-6">
47
47
  <%= label_tag(:doc_customer_attr, Spree.t(:doc_customer_attr) + ': ') + tag(:br) %>
48
48
  <%= select_tag :doc_customer_attr,
49
- options_for_select(@user_attr.collect { |item| [t(item), item] }, @config.doc_customer_attr),
49
+ options_for_select(@user_attr.collect { |item| [Spree.t(item), item] }, @config.doc_customer_attr),
50
50
  class: 'select2', include_blank: true %>
51
51
  </div>
52
52
  </div>
@@ -64,7 +64,7 @@
64
64
  </div>
65
65
  <div class="col-sm-12 p-l-n p-r-n" id="birth_date_container">
66
66
  <%= select_tag :birth_date_customer_attr,
67
- options_for_select(@user_attr.collect { |item| [t(item), item] }, @config.birth_date_customer_attr),
67
+ options_for_select(@user_attr.collect { |item| [Spree.t(item), item] }, @config.birth_date_customer_attr),
68
68
  class: 'select2', include_blank: true %>
69
69
  </div>
70
70
  </div>
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'spree_zaez_clearsale'
5
- s.version = '3.0.1'
5
+ s.version = '3.0.2'
6
6
  s.summary = 'Add the ClearSale verification to Spree Commerce'
7
7
  s.description = 'Add the ClearSale verification to Spree Commerce'
8
8
  s.required_ruby_version = '>= 2.0.0'
@@ -35,4 +35,5 @@ Gem::Specification.new do |s|
35
35
  s.add_development_dependency 'guard-rspec'
36
36
  s.add_development_dependency 'guard-shell'
37
37
  s.add_development_dependency 'webmock'
38
+ s.add_development_dependency 'better_errors'
38
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_zaez_clearsale
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zaez Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-20 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree_core
@@ -262,6 +262,20 @@ dependencies:
262
262
  - - ">="
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: better_errors
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
265
279
  description: Add the ClearSale verification to Spree Commerce
266
280
  email: contato@zaez.net
267
281
  executables: []