inline_forms 5.0.17 → 5.0.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02d87727a6d1983a9c56c5ec7444d1a14468e001
4
- data.tar.gz: e5d859931b845dfab0deb0d68856b977f4617b9c
3
+ metadata.gz: 77b83cb4c26fb63ab88bdba4b47d8696022c183a
4
+ data.tar.gz: 4c3a672f959085ccef0aeebd35495db1c7523d89
5
5
  SHA512:
6
- metadata.gz: 33fc9e3b37714ac722515abb84cd8c83d8b98d431f0d2e32ceb7929717246ed9a151d1f58aba818dc7a7e005583435d57668ac5e6ece6bb4976e966ea4c2261f
7
- data.tar.gz: 3b8a79d2474311676196de18b2deefe54c755fb610047381f4c21fd5853dd941896d0d5b7b8bed562da40ef1e9bf608f40f0e3c130d84532509094dee3d42e39
6
+ metadata.gz: c769b9f73ffea49cfb36ff83eb056f90397307990937e6e0048b10e928affb51951ecb8c1ec8d3bc91ff72179ab9dde71f0b5de9e3fa5f9fb95669a88c3282f5
7
+ data.tar.gz: 52517ec04ea8ae2351238a58e56c8e30bf381a867b15ce40ee53c7022bb09c3a627ac6e3ff5c0eae230fb78384b72280a6a8bd8026efadb64dcb96561f59c443
@@ -1,50 +1,51 @@
1
1
  GENERATOR_PATH = File.dirname(File.expand_path(__FILE__)) + '/../'
2
2
 
3
- create_file 'Gemfile', "# created by inline_forms #{ENV['inline_forms_version']}\n"
3
+ create_file 'Gemfile', "# created by inline_forms #{ENV['inline_forms_version']} on {Date.today}\n"
4
4
 
5
5
  add_source 'https://rubygems.org'
6
6
 
7
- gem 'rails', '~> 5.0.2'
8
- gem 'rake'
9
- gem 'jquery-rails'
10
- gem 'jquery-ui-sass-rails'
11
- gem 'capistrano'
12
- gem 'will_paginate' #, git: 'https://github.com/acesuares/will_paginate.git'
13
- gem 'tabs_on_rails', git: 'https://github.com/acesuares/tabs_on_rails.git', :branch => 'update_remote'
14
- gem 'ckeditor'
15
7
  gem 'cancan', git: 'https://github.com/acesuares/cancan.git', :branch => '2.0'
8
+ gem 'capistrano'
16
9
  gem 'carrierwave'
17
- gem 'remotipart', '~> 1.0'
18
- gem 'paper_trail'
10
+ gem 'ckeditor'
11
+ gem 'coffee-rails'
12
+ gem 'compass-rails'
19
13
  gem 'devise'
14
+ gem 'foundation-icons-sass-rails'
15
+ gem 'foundation-rails', '~> 5.5'
16
+ gem 'i18n-active_record', git: 'https://github.com/acesuares/i18n-active_record.git'
20
17
  gem 'inline_forms', '>=5'
21
- gem 'validation_hints'
18
+ gem 'jquery-rails'
19
+ gem 'jquery-timepicker-rails'
20
+ gem 'jquery-ui-sass-rails'
22
21
  gem 'mini_magick'
22
+ gem 'mysql2'
23
+ gem 'paper_trail'
23
24
  gem 'rails-i18n'
24
- gem 'i18n-active_record', git: 'https://github.com/acesuares/i18n-active_record.git'
25
- gem 'unicorn'
26
- gem 'rvm'
25
+ gem 'rails', '~> 5.0.6'
26
+ gem 'rake'
27
+ gem 'remotipart', '~> 1.0'
27
28
  gem 'rvm-capistrano', require: false
28
- gem 'foundation-rails', '~> 5.5'
29
- gem 'mysql2'
29
+ gem 'rvm'
30
30
  gem 'sass-rails'
31
- gem 'coffee-rails'
32
- gem 'compass-rails'
33
- gem 'foundation-icons-sass-rails'
31
+ gem 'tabs_on_rails', git: 'https://github.com/acesuares/tabs_on_rails.git', :branch => 'update_remote'
34
32
  gem 'therubyracer'
35
33
  gem 'uglifier'
34
+ gem 'unicorn'
35
+ gem 'validation_hints'
36
+ gem 'will_paginate' #, git: 'https://github.com/acesuares/will_paginate.git'
36
37
 
37
38
 
38
39
  gem_group :development do
39
- gem 'yaml_db'
40
- gem 'seed_dump', git: 'https://github.com/acesuares/seed_dump.git'
41
- gem 'switch_user'
42
- gem 'sqlite3'
43
- gem 'rspec-rails'
44
- gem 'shoulda'
45
40
  gem 'bundler'
46
- gem 'rspec'
47
41
  gem 'listen'
42
+ gem 'rspec-rails'
43
+ gem 'rspec'
44
+ gem 'seed_dump', git: 'https://github.com/acesuares/seed_dump.git'
45
+ gem 'shoulda'
46
+ gem 'sqlite3'
47
+ gem 'switch_user'
48
+ gem 'yaml_db'
48
49
  end
49
50
 
50
51
  say "- Running bundle..."
@@ -0,0 +1,22 @@
1
+ # -*- encoding : utf-8 -*-
2
+ InlineForms::SPECIAL_COLUMN_TYPES[:time_select]=:time
3
+
4
+ # time
5
+ def time_select_show(object, attribute)
6
+ link_to_inline_edit object, attribute, object.send(attribute).nil? ? "<i class='fi-plus'></i>".html_safe : object.send(attribute).to_datetime.strftime("%l:%M%P")
7
+ end
8
+
9
+ def time_select_edit(object, attribute)
10
+ css_id = 'timepicker_' + object.class.to_s.underscore + '_' + object.id.to_s + '_' + attribute.to_s
11
+ out = text_field_tag attribute, ( object.send(attribute).nil? ? "" : object.send(attribute).to_datetime.strftime("%l:%M%P") ), :id => css_id, :class =>'timepicker'
12
+ out << "<script>$('##{css_id}').timepicker();</script>".html_safe
13
+ end
14
+
15
+ def time_select_update(object, attribute)
16
+ object[attribute.to_sym] = params[attribute.to_sym]
17
+ end
18
+
19
+ def time_select_info(object, attribute)
20
+ object.send(attribute).nil? ? "-" : object.send(attribute).to_date
21
+ end
22
+
@@ -14,6 +14,7 @@
14
14
  //= require jquery_ujs
15
15
  //= require jquery.ui.all
16
16
  //= require ckeditor/init
17
+ //= require jquery.timepicker.js
17
18
  //= require foundation
18
19
  //= require jquery.remotipart
19
20
  //= require inline_forms
@@ -10,5 +10,7 @@
10
10
  *
11
11
  *= require jquery.ui.core
12
12
  *= require jquery.ui.theme
13
+ *= require foundation_and_overrides
14
+ *= require jquery.timepicker.css
13
15
  *= require inline_forms
14
16
  */
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineForms
3
- VERSION = "5.0.17"
3
+ VERSION = "5.0.18"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.17
4
+ version: 5.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-21 00:00:00.000000000 Z
12
+ date: 2017-10-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rvm
@@ -200,6 +200,7 @@ files:
200
200
  - lib/app/helpers/form_elements/text_area.rb
201
201
  - lib/app/helpers/form_elements/text_area_without_ckeditor.rb
202
202
  - lib/app/helpers/form_elements/text_field.rb
203
+ - lib/app/helpers/form_elements/time.rb
203
204
  - lib/app/helpers/inline_forms_helper.rb
204
205
  - lib/app/models/geo_code_curacao.rb
205
206
  - lib/app/validators/curacao_id_number_validator.rb