smartkiosk-server 0.11.10 → 0.11.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -179,6 +179,7 @@ ActiveAdmin.register Provider do
179
179
  :style => ('display:none' unless fpf.object.kind == 'string')
180
180
  },
181
181
  :hint => I18n.t('smartkiosk.admin.messages.provider_fields.mask_hint')
182
+ fpf.input :groupping
182
183
  fpf.input :regexp
183
184
  fpf.input :values, :as => :string,
184
185
  :wrapper_html => {
@@ -52,6 +52,6 @@ class Provider < ActiveRecord::Base
52
52
  # METHODS
53
53
  #
54
54
  def fields_dump
55
- provider_fields.as_json(:only => [:keyword, :title, :kind, :mask, :values, :priority])
55
+ provider_fields.as_json(:only => [:keyword, :title, :kind, :mask, :values, :priority, :regexp, :groupping])
56
56
  end
57
57
  end
@@ -499,6 +499,7 @@ ru:
499
499
  title: Название
500
500
  kind: Тип
501
501
  mask: Маска
502
+ groupping: Группировка
502
503
  regexp: Проверка
503
504
  priority: Приоритет
504
505
  values: Значения
@@ -0,0 +1,5 @@
1
+ class AddGrouppingToProviderFields < ActiveRecord::Migration
2
+ def change
3
+ add_column :provider_fields, :groupping, :string
4
+ end
5
+ end
data/db/schema.rb CHANGED
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20130325154559) do
14
+ ActiveRecord::Schema.define(:version => 20130410085714) do
15
15
 
16
16
  create_table "active_admin_comments", :force => true do |t|
17
17
  t.string "resource_id", :null => false
@@ -215,6 +215,7 @@ ActiveRecord::Schema.define(:version => 20130325154559) do
215
215
  t.integer "priority"
216
216
  t.datetime "created_at", :null => false
217
217
  t.datetime "updated_at", :null => false
218
+ t.string "groupping"
218
219
  end
219
220
 
220
221
  create_table "provider_gateways", :force => true do |t|
@@ -1,5 +1,5 @@
1
1
  module Smartkiosk
2
2
  module Server
3
- VERSION = '0.11.10'
3
+ VERSION = '0.11.11'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartkiosk-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.10
4
+ version: 0.11.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -261,6 +261,7 @@ files:
261
261
  - db/migrate/20130217113617_add_last_session_started_at_to_terminals.rb
262
262
  - db/migrate/20130217113740_create_session_records.rb
263
263
  - db/migrate/20130325154559_add_externally_paid_to_payments.rb
264
+ - db/migrate/20130410085714_add_groupping_to_provider_fields.rb
264
265
  - db/schema.rb
265
266
  - db/seeds.rb
266
267
  - db/seeds/receipt_templates/payment.txt
@@ -333,7 +334,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
333
334
  version: '0'
334
335
  segments:
335
336
  - 0
336
- hash: -45483200909211820
337
+ hash: 1269099127532595486
337
338
  required_rubygems_version: !ruby/object:Gem::Requirement
338
339
  none: false
339
340
  requirements: