inline_forms 1.3.12 → 1.3.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. data/lib/app/controllers/geo_code_curacao_controller.rb +1 -0
  2. data/lib/app/controllers/inline_forms_application_controller.rb +1 -0
  3. data/lib/app/controllers/inline_forms_controller.rb +1 -0
  4. data/lib/app/helpers/form_elements/check_box.rb +1 -0
  5. data/lib/app/helpers/form_elements/check_list.rb +1 -0
  6. data/lib/app/helpers/form_elements/date.rb +1 -0
  7. data/lib/app/helpers/form_elements/dropdown.rb +1 -0
  8. data/lib/app/helpers/form_elements/dropdown_with_integers.rb +1 -0
  9. data/lib/app/helpers/form_elements/dropdown_with_values.rb +1 -0
  10. data/lib/app/helpers/form_elements/file_field.rb +1 -0
  11. data/lib/app/helpers/form_elements/geo_code_curacao.rb +1 -0
  12. data/lib/app/helpers/form_elements/image_field.rb +1 -0
  13. data/lib/app/helpers/form_elements/info.rb +1 -0
  14. data/lib/app/helpers/form_elements/infoadmin.rb +1 -0
  15. data/lib/app/helpers/form_elements/question_list.rb +1 -0
  16. data/lib/app/helpers/form_elements/radio_button.rb +1 -0
  17. data/lib/app/helpers/form_elements/scale_with_integers.rb +1 -0
  18. data/lib/app/helpers/form_elements/scale_with_values.rb +1 -0
  19. data/lib/app/helpers/form_elements/slider_with_values.rb +1 -0
  20. data/lib/app/helpers/form_elements/text_area.rb +1 -0
  21. data/lib/app/helpers/form_elements/text_area_without_ckeditor.rb +1 -0
  22. data/lib/app/helpers/form_elements/text_field.rb +1 -0
  23. data/lib/app/helpers/inline_forms_helper.rb +1 -0
  24. data/lib/app/models/geo_code_curacao.rb +1 -0
  25. data/lib/app/validators/is_a_curacao_id_number_validator.rb +2 -1
  26. data/lib/app/validators/is_curacao_phone_validator.rb +2 -1
  27. data/lib/app/validators/is_email_address_validator.rb +1 -0
  28. data/lib/app/validators/must_be_a_value_validator.rb +1 -0
  29. data/lib/app/validators/must_be_present_validator.rb +1 -0
  30. data/lib/app/validators/must_be_unique_validator.rb +1 -0
  31. data/lib/generators/inline_forms_generator.rb +1 -0
  32. data/lib/generators/templates/deploy.rb.rb +1 -0
  33. data/lib/inline_forms.rb +1 -0
  34. data/lib/inline_forms/version.rb +2 -1
  35. data/test/helper.rb +1 -0
  36. data/test/test_inline_forms.rb +1 -0
  37. metadata +1 -1
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  # Used in autocomplete
2
3
  #
3
4
  class GeoCodeCuracaoController < ApplicationController
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class InlineFormsApplicationController < ActionController::Base
2
3
  protect_from_forgery
3
4
  layout 'devise' if :devise_controller?
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  # == Generic controller for the inline_forms plugin.
2
3
  # === Usage
3
4
  # If you have an Example class, make an ExampleController
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:check_box]=:boolean
2
3
  # boolean, bit unaptly named check_box
3
4
  def check_box_show(object, attribute)
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:check_list]=:no_migration
2
3
 
3
4
  # checklist
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:date_select]=:date
2
3
 
3
4
  # date
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:dropdown]=:belongs_to
2
3
 
3
4
  # dropdown
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:dropdown_with_integers]=:integer
2
3
 
3
4
  # dropdown_with_integers generates a dropdown menu
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:dropdown_with_values]=:integer
2
3
 
3
4
  # dropdown_with_values
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:file_field]=:string
2
3
 
3
4
  def file_field_show(object, attribute)
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:geo_code_curacao]=:string
2
3
 
3
4
  # geo_code_curacao
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:image_field]=:string
2
3
 
3
4
  def image_field_show(object, attribute)
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  # not needed here, since this is only used in the views InlineForms::SPECIAL_COLUMN_TYPES[:info]=:string
2
3
 
3
4
  def info_show(object, attribute)
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  # FIXME not needed here, since this is only used in the views InlineForms::SPECIAL_COLUMN_TYPES[:info]=:string
2
3
 
3
4
  def infoadmin_show(object, attribute)
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  #InlineForms::SPECIAL_COLUMN_TYPES[:question_list]=:no_migration
2
3
 
3
4
  # checklist
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:radio_button]=:integer
2
3
  # radio buttons are integers in this version
3
4
  # us like this:
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:scale_with_integers]=:integer
2
3
 
3
4
  # scale_with_integers generates a scale
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:scale_with_values]=:integer
2
3
 
3
4
  # scale_with_values generates a scale
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:slider_with_values]=:integer
2
3
 
3
4
  # slider_with_values
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:text_area]=:text
2
3
 
3
4
  def text_area_show(object, attribute)
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:text_area_without_ckeditor]=:text
2
3
 
3
4
  def text_area_without_ckeditor_show(object, attribute)
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  InlineForms::SPECIAL_COLUMN_TYPES[:text_field]=:string
2
3
 
3
4
  def text_field_show(object, attribute)
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module InlineFormsHelper
2
3
  # load form elements. Each element goes into a separate file
3
4
  # and defines a _show, _edit and _update method.
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class GeoCodeCuracao
2
3
  attr_accessor :street, :neighbourhood, :zone
3
4
 
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  # == usage:
2
3
  # in your model, add:
3
4
  # validates :id_number, must_be_present => true, is_a_curacao_id_number => true;
@@ -21,4 +22,4 @@ class IsACuracaoIdNumberValidator < ActiveModel::EachValidator
21
22
 
22
23
  end
23
24
 
24
- #"moet bestaan uit tien cijfers (bijvoorbeeld 1983040812)."
25
+ #"moet bestaan uit tien cijfers (bijvoorbeeld 1983040812)."
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  # == usage:
2
3
  # in your model, add:
3
4
  # validates :email, :presence => true, :is_email_address => true;
@@ -6,7 +7,7 @@
6
7
  class IsCuracaoPhoneValidator < ActiveModel::EachValidator
7
8
 
8
9
  def error_message
9
- "is geen geldig Curacao telefoon nummer."
10
+ "is geen geldig Curaçao telefoon nummer."
10
11
  end
11
12
 
12
13
  def help_message
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  # == usage:
2
3
  # in your model, add:
3
4
  # validates :email, :presence => true, :is_email_address => true;
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  # == usage:
2
3
  # in your model, add:
3
4
  # validates :sex, :must_be_a_value => true;
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class MustBePresentValidator < ActiveModel::Validations::PresenceValidator
2
3
 
3
4
  def error_message
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  class MustBeUniqueValidator < ActiveRecord::Validations::UniquenessValidator
2
3
 
3
4
  def error_message
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require File.expand_path(File.join(File.dirname(__FILE__),'../app/helpers/inline_forms_helper.rb'))
2
3
  module InlineForms
3
4
  # == Usage
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require "bundler/capistrano"
2
3
 
3
4
  set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"") # Read from local system
data/lib/inline_forms.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require ('inline_forms/version.rb')
2
3
  # InlineForms is a Rails Engine that let you setup an admin interface quick and
3
4
  # easy. Please install it as a gem or include it in your Gemfile.
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  module InlineForms
2
- VERSION = "1.3.12"
3
+ VERSION = "1.3.13"
3
4
  end
data/test/helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'rubygems'
2
3
  require 'bundler'
3
4
  begin
@@ -1,3 +1,4 @@
1
+ # -*- encoding : utf-8 -*-
1
2
  require 'helper'
2
3
 
3
4
  class TestInlineForms < Test::Unit::TestCase
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: 1.3.12
4
+ version: 1.3.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: