active_scaffold 3.4.17 → 3.4.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +12 -1
  3. data/README.md +8 -4
  4. data/app/assets/javascripts/jquery/active_scaffold.js +82 -67
  5. data/app/assets/stylesheets/active_scaffold.scss +1 -1
  6. data/app/assets/stylesheets/active_scaffold_colors.scss +1 -1
  7. data/app/assets/stylesheets/blue-theme.css +1 -1
  8. data/app/views/active_scaffold_overrides/_form_association.html.erb +3 -3
  9. data/app/views/active_scaffold_overrides/_form_association_record.html.erb +3 -3
  10. data/app/views/active_scaffold_overrides/_show_columns.html.erb +1 -1
  11. data/lib/active_scaffold.rb +16 -16
  12. data/lib/active_scaffold/actions/common_search.rb +13 -11
  13. data/lib/active_scaffold/actions/core.rb +85 -78
  14. data/lib/active_scaffold/actions/create.rb +29 -28
  15. data/lib/active_scaffold/actions/delete.rb +17 -17
  16. data/lib/active_scaffold/actions/field_search.rb +18 -19
  17. data/lib/active_scaffold/actions/list.rb +30 -22
  18. data/lib/active_scaffold/actions/mark.rb +1 -1
  19. data/lib/active_scaffold/actions/nested.rb +78 -65
  20. data/lib/active_scaffold/actions/search.rb +13 -10
  21. data/lib/active_scaffold/actions/show.rb +10 -6
  22. data/lib/active_scaffold/actions/subform.rb +1 -2
  23. data/lib/active_scaffold/actions/update.rb +39 -31
  24. data/lib/active_scaffold/active_record_permissions.rb +14 -15
  25. data/lib/active_scaffold/attribute_params.rb +42 -43
  26. data/lib/active_scaffold/bridges.rb +22 -12
  27. data/lib/active_scaffold/bridges/ancestry.rb +1 -1
  28. data/lib/active_scaffold/bridges/ancestry/ancestry_bridge.rb +6 -6
  29. data/lib/active_scaffold/bridges/bitfields.rb +1 -1
  30. data/lib/active_scaffold/bridges/bitfields/bitfields_bridge.rb +12 -13
  31. data/lib/active_scaffold/bridges/calendar_date_select.rb +5 -5
  32. data/lib/active_scaffold/bridges/calendar_date_select/as_cds_bridge.rb +17 -20
  33. data/lib/active_scaffold/bridges/cancan.rb +1 -1
  34. data/lib/active_scaffold/bridges/cancan/cancan_bridge.rb +8 -9
  35. data/lib/active_scaffold/bridges/carrierwave.rb +4 -4
  36. data/lib/active_scaffold/bridges/carrierwave/carrierwave_bridge.rb +9 -8
  37. data/lib/active_scaffold/bridges/carrierwave/form_ui.rb +11 -10
  38. data/lib/active_scaffold/bridges/carrierwave/list_ui.rb +7 -6
  39. data/lib/active_scaffold/bridges/chosen.rb +1 -1
  40. data/lib/active_scaffold/bridges/chosen/helpers.rb +4 -4
  41. data/lib/active_scaffold/bridges/country_helper.rb +1 -1
  42. data/lib/active_scaffold/bridges/country_helper/country_helper_bridge.rb +259 -260
  43. data/lib/active_scaffold/bridges/date_picker.rb +2 -2
  44. data/lib/active_scaffold/bridges/date_picker/ext.rb +9 -11
  45. data/lib/active_scaffold/bridges/date_picker/helper.rb +61 -67
  46. data/lib/active_scaffold/bridges/dragonfly.rb +4 -4
  47. data/lib/active_scaffold/bridges/dragonfly/dragonfly_bridge.rb +9 -8
  48. data/lib/active_scaffold/bridges/dragonfly/form_ui.rb +11 -10
  49. data/lib/active_scaffold/bridges/dragonfly/list_ui.rb +6 -5
  50. data/lib/active_scaffold/bridges/file_column.rb +5 -5
  51. data/lib/active_scaffold/bridges/file_column/as_file_column_bridge.rb +20 -23
  52. data/lib/active_scaffold/bridges/file_column/file_column_helpers.rb +20 -23
  53. data/lib/active_scaffold/bridges/file_column/form_ui.rb +13 -14
  54. data/lib/active_scaffold/bridges/file_column/list_ui.rb +7 -8
  55. data/lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb +18 -22
  56. data/lib/active_scaffold/bridges/file_column/test/mock_model.rb +5 -4
  57. data/lib/active_scaffold/bridges/file_column/test/test_helper.rb +2 -10
  58. data/lib/active_scaffold/bridges/paper_trail.rb +7 -5
  59. data/lib/active_scaffold/bridges/paper_trail/paper_trail_bridge.rb +4 -3
  60. data/lib/active_scaffold/bridges/paperclip.rb +5 -5
  61. data/lib/active_scaffold/bridges/paperclip/form_ui.rb +11 -10
  62. data/lib/active_scaffold/bridges/paperclip/list_ui.rb +6 -5
  63. data/lib/active_scaffold/bridges/paperclip/paperclip_bridge.rb +10 -9
  64. data/lib/active_scaffold/bridges/record_select.rb +1 -1
  65. data/lib/active_scaffold/bridges/record_select/helpers.rb +28 -28
  66. data/lib/active_scaffold/bridges/semantic_attributes.rb +1 -1
  67. data/lib/active_scaffold/bridges/semantic_attributes/column.rb +1 -1
  68. data/lib/active_scaffold/bridges/shared/date_bridge.rb +58 -52
  69. data/lib/active_scaffold/bridges/tiny_mce.rb +2 -2
  70. data/lib/active_scaffold/bridges/tiny_mce/helpers.rb +3 -3
  71. data/lib/active_scaffold/config/base.rb +9 -10
  72. data/lib/active_scaffold/config/core.rb +24 -29
  73. data/lib/active_scaffold/config/create.rb +0 -1
  74. data/lib/active_scaffold/config/field_search.rb +8 -10
  75. data/lib/active_scaffold/config/form.rb +5 -5
  76. data/lib/active_scaffold/config/list.rb +21 -20
  77. data/lib/active_scaffold/config/mark.rb +3 -3
  78. data/lib/active_scaffold/config/nested.rb +11 -10
  79. data/lib/active_scaffold/config/search.rb +2 -3
  80. data/lib/active_scaffold/config/show.rb +1 -1
  81. data/lib/active_scaffold/config/update.rb +1 -2
  82. data/lib/active_scaffold/configurable.rb +9 -11
  83. data/lib/active_scaffold/constraints.rb +9 -8
  84. data/lib/active_scaffold/core.rb +72 -84
  85. data/lib/active_scaffold/data_structures/action_columns.rb +26 -25
  86. data/lib/active_scaffold/data_structures/action_link.rb +43 -43
  87. data/lib/active_scaffold/data_structures/action_links.rb +17 -15
  88. data/lib/active_scaffold/data_structures/actions.rb +5 -5
  89. data/lib/active_scaffold/data_structures/bridge.rb +6 -3
  90. data/lib/active_scaffold/data_structures/column.rb +110 -89
  91. data/lib/active_scaffold/data_structures/columns.rb +3 -3
  92. data/lib/active_scaffold/data_structures/error_message.rb +4 -6
  93. data/lib/active_scaffold/data_structures/nested_info.rb +43 -48
  94. data/lib/active_scaffold/data_structures/set.rb +7 -8
  95. data/lib/active_scaffold/data_structures/sorting.rb +38 -33
  96. data/lib/active_scaffold/delayed_setup.rb +5 -6
  97. data/lib/active_scaffold/engine.rb +4 -4
  98. data/lib/active_scaffold/extensions/action_controller_rendering.rb +3 -4
  99. data/lib/active_scaffold/extensions/action_controller_rescueing.rb +1 -1
  100. data/lib/active_scaffold/extensions/action_view_rendering.rb +5 -6
  101. data/lib/active_scaffold/extensions/left_outer_joins.rb +11 -11
  102. data/lib/active_scaffold/extensions/localize.rb +1 -1
  103. data/lib/active_scaffold/extensions/name_option_for_datetime.rb +1 -1
  104. data/lib/active_scaffold/extensions/paginator_extensions.rb +2 -5
  105. data/lib/active_scaffold/extensions/reverse_associations.rb +13 -13
  106. data/lib/active_scaffold/extensions/routing_mapper.rb +9 -9
  107. data/lib/active_scaffold/extensions/unsaved_associated.rb +9 -9
  108. data/lib/active_scaffold/finder.rb +90 -93
  109. data/lib/active_scaffold/helpers/association_helpers.rb +5 -5
  110. data/lib/active_scaffold/helpers/controller_helpers.rb +22 -19
  111. data/lib/active_scaffold/helpers/form_column_helpers.rb +115 -105
  112. data/lib/active_scaffold/helpers/human_condition_helpers.rb +62 -35
  113. data/lib/active_scaffold/helpers/id_helpers.rb +6 -6
  114. data/lib/active_scaffold/helpers/list_column_helpers.rb +89 -94
  115. data/lib/active_scaffold/helpers/pagination_helpers.rb +9 -9
  116. data/lib/active_scaffold/helpers/search_column_helpers.rb +47 -44
  117. data/lib/active_scaffold/helpers/show_column_helpers.rb +2 -2
  118. data/lib/active_scaffold/helpers/view_helpers.rb +86 -91
  119. data/lib/active_scaffold/marked_model.rb +10 -10
  120. data/lib/active_scaffold/paginator.rb +30 -34
  121. data/lib/active_scaffold/responds_to_parent.rb +27 -28
  122. data/lib/active_scaffold/tableless.rb +20 -15
  123. data/lib/active_scaffold/version.rb +1 -1
  124. data/lib/generators/active_scaffold/active_scaffold_generator.rb +8 -8
  125. data/lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb +9 -9
  126. data/shoulda_macros/macros.rb +27 -22
  127. data/test/bridges/bridge_test.rb +38 -29
  128. data/test/bridges/date_picker_test.rb +1 -1
  129. data/test/bridges/paper_trail_test.rb +17 -0
  130. data/test/bridges/paperclip_test.rb +3 -2
  131. data/test/bridges/tiny_mce_test.rb +5 -2
  132. data/test/company.rb +25 -30
  133. data/test/config/base_test.rb +1 -1
  134. data/test/config/core_test.rb +9 -9
  135. data/test/config/create_test.rb +14 -8
  136. data/test/config/delete_test.rb +4 -4
  137. data/test/config/field_search_test.rb +6 -6
  138. data/test/config/list_test.rb +16 -16
  139. data/test/config/nested_test.rb +4 -4
  140. data/test/config/search_test.rb +8 -8
  141. data/test/config/show_test.rb +6 -6
  142. data/test/config/subform_test.rb +1 -1
  143. data/test/config/update_test.rb +5 -5
  144. data/test/const_mocker.rb +4 -4
  145. data/test/data_structures/action_columns_test.rb +4 -5
  146. data/test/data_structures/action_link_test.rb +1 -0
  147. data/test/data_structures/action_links_test.rb +5 -5
  148. data/test/data_structures/column_test.rb +9 -9
  149. data/test/data_structures/columns_test.rb +2 -2
  150. data/test/data_structures/error_message_test.rb +4 -5
  151. data/test/data_structures/set_test.rb +1 -2
  152. data/test/data_structures/sorting_test.rb +10 -10
  153. data/test/data_structures/validation_reflection_test.rb +8 -0
  154. data/test/extensions/routing_mapper_test.rb +2 -2
  155. data/test/helpers/list_column_helpers_test.rb +3 -2
  156. data/test/helpers/pagination_helpers_test.rb +5 -4
  157. data/test/helpers/search_column_helpers_test.rb +1 -1
  158. data/test/misc/active_record_permissions_test.rb +63 -50
  159. data/test/misc/attribute_params_test.rb +28 -26
  160. data/test/misc/calculation_test.rb +10 -3
  161. data/test/misc/configurable_test.rb +12 -13
  162. data/test/misc/constraints_test.rb +6 -6
  163. data/test/misc/convert_numbers_format_test.rb +7 -6
  164. data/test/misc/finder_test.rb +17 -12
  165. data/test/misc/lang_test.rb +3 -4
  166. data/test/misc/tableless_test.rb +2 -3
  167. data/test/mock_app/app/controllers/addresses_controller.rb +1 -1
  168. data/test/mock_app/app/controllers/buildings_controller.rb +1 -1
  169. data/test/mock_app/app/controllers/cars_controller.rb +1 -1
  170. data/test/mock_app/app/controllers/contacts_controller.rb +1 -1
  171. data/test/mock_app/app/controllers/people_controller.rb +1 -1
  172. data/test/mock_app/app/models/file_model.rb +2 -2
  173. data/test/mock_app/app/models/person.rb +1 -1
  174. data/test/mock_app/config/application.rb +3 -3
  175. data/test/mock_app/config/boot.rb +1 -1
  176. data/test/mock_app/config/environment.rb +1 -0
  177. data/test/mock_app/config/environments/development.rb +0 -1
  178. data/test/mock_app/config/environments/production.rb +1 -1
  179. data/test/mock_app/db/schema.rb +14 -15
  180. data/test/model_stub.rb +13 -16
  181. data/test/run_all.rb +5 -7
  182. data/test/test_helper.rb +12 -9
  183. metadata +19 -3
@@ -4,15 +4,14 @@ class TablelessTest < MiniTest::Test
4
4
  def test_find_all
5
5
  assert FileModel.all.to_a.empty?
6
6
  end
7
-
7
+
8
8
  def test_find_by_id
9
9
  assert_raises ActiveRecord::RecordNotFound do
10
10
  FileModel.find('filename')
11
11
  end
12
12
  end
13
-
13
+
14
14
  def test_find_with_association
15
15
  assert Person.new.files.empty?
16
16
  end
17
17
  end
18
-
@@ -1,4 +1,4 @@
1
1
  class AddressesController < ApplicationController
2
- active_scaffold do |conf|
2
+ active_scaffold do
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
1
  class BuildingsController < ApplicationController
2
- active_scaffold do |conf|
2
+ active_scaffold do
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
1
  class CarsController < ApplicationController
2
- active_scaffold do |conf|
2
+ active_scaffold do
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
1
  class ContactsController < ApplicationController
2
- active_scaffold do |conf|
2
+ active_scaffold do
3
3
  end
4
4
  end
@@ -1,4 +1,4 @@
1
1
  class PeopleController < ApplicationController
2
- active_scaffold do |conf|
2
+ active_scaffold do
3
3
  end
4
4
  end
@@ -2,9 +2,9 @@ class FileModel < ActiveScaffold::Tableless
2
2
  column :name, :string
3
3
  column :person_id, :integer
4
4
  self.primary_key = :name
5
-
5
+
6
6
  belongs_to :person
7
-
7
+
8
8
  def self.find_all(relation)
9
9
  []
10
10
  end
@@ -7,6 +7,6 @@ class Person < ActiveRecord::Base
7
7
  has_many :contacts, :as => :contactable
8
8
  has_one :car, :dependent => :destroy
9
9
  has_and_belongs_to_many :roles
10
-
10
+
11
11
  has_many :files, :dependent => :destroy, :class_name => 'FileModel'
12
12
  end
@@ -1,13 +1,13 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
- require "rails/all"
4
- require "rails/test_unit/railtie"
3
+ require 'rails/all'
4
+ require 'rails/test_unit/railtie'
5
5
  require 'active_scaffold'
6
6
 
7
7
  module RailsApp
8
8
  class Application < Rails::Application
9
9
  config.filter_parameters << :password
10
- config.action_mailer.default_url_options = { :host => "localhost:3000" }
10
+ config.action_mailer.default_url_options = {:host => 'localhost:3000'}
11
11
  I18n.enforce_available_locales = false
12
12
  end
13
13
  end
@@ -1,5 +1,5 @@
1
1
  begin
2
- require File.expand_path("../../../../.bundle/environment", __FILE__)
2
+ require File.expand_path('../../../../.bundle/environment', __FILE__)
3
3
  rescue LoadError
4
4
  require 'rubygems'
5
5
  require 'bundler'
@@ -2,4 +2,5 @@
2
2
  require File.expand_path('../application', __FILE__)
3
3
 
4
4
  # Initialize the rails application
5
+ RailsApp::Application.config.root = File.expand_path('../..', __FILE__)
5
6
  RailsApp::Application.initialize!
@@ -22,4 +22,3 @@ RailsApp::Application.configure do
22
22
  # Only use best-standards-support built into browsers
23
23
  config.action_dispatch.best_standards_support = :builtin
24
24
  end
25
-
@@ -10,7 +10,7 @@ RailsApp::Application.configure do
10
10
  config.action_controller.perform_caching = true
11
11
 
12
12
  # Specifies the header that your server uses for sending files
13
- config.action_dispatch.x_sendfile_header = "X-Sendfile"
13
+ config.action_dispatch.x_sendfile_header = 'X-Sendfile'
14
14
 
15
15
  # For nginx:
16
16
  # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
@@ -4,24 +4,24 @@ ActiveRecord::Schema.define do
4
4
  t.string 'addressable_type'
5
5
  t.string 'street'
6
6
  t.string 'city'
7
- t.datetime "created_at"
8
- t.datetime "updated_at"
7
+ t.datetime 'created_at'
8
+ t.datetime 'updated_at'
9
9
  end
10
10
 
11
11
  create_table 'buildings' do |t|
12
12
  t.string 'name'
13
13
  t.integer 'owner_id'
14
14
  t.integer 'floors_count', :null => false, :default => 0
15
- t.datetime "created_at"
16
- t.datetime "updated_at"
15
+ t.datetime 'created_at'
16
+ t.datetime 'updated_at'
17
17
  end
18
18
 
19
19
  create_table 'cars' do |t|
20
20
  t.integer 'person_id'
21
21
  t.string 'brand'
22
22
  t.string 'model'
23
- t.datetime "created_at"
24
- t.datetime "updated_at"
23
+ t.datetime 'created_at'
24
+ t.datetime 'updated_at'
25
25
  end
26
26
 
27
27
  create_table 'contacts' do |t|
@@ -30,16 +30,16 @@ ActiveRecord::Schema.define do
30
30
  t.string 'first_name'
31
31
  t.string 'last_name'
32
32
  t.date 'birthday'
33
- t.datetime "created_at"
34
- t.datetime "updated_at"
33
+ t.datetime 'created_at'
34
+ t.datetime 'updated_at'
35
35
  end
36
36
 
37
37
  create_table 'floors' do |t|
38
38
  t.integer 'number'
39
39
  t.integer 'building_id'
40
40
  t.integer 'tenant_id'
41
- t.datetime "created_at"
42
- t.datetime "updated_at"
41
+ t.datetime 'created_at'
42
+ t.datetime 'updated_at'
43
43
  end
44
44
 
45
45
  create_table 'people' do |t|
@@ -49,19 +49,18 @@ ActiveRecord::Schema.define do
49
49
  t.integer 'floors_count', :null => false, :default => 0
50
50
  t.integer 'contacts_count', :null => false, :default => 0
51
51
  t.boolean 'adult', :null => false, :default => false
52
- t.datetime "created_at"
53
- t.datetime "updated_at"
52
+ t.datetime 'created_at'
53
+ t.datetime 'updated_at'
54
54
  end
55
55
 
56
56
  create_table 'roles' do |t|
57
57
  t.string 'name'
58
- t.datetime "created_at"
59
- t.datetime "updated_at"
58
+ t.datetime 'created_at'
59
+ t.datetime 'updated_at'
60
60
  end
61
61
 
62
62
  create_table 'people_roles', :id => false do |t|
63
63
  t.integer 'person_id'
64
64
  t.integer 'role_id'
65
65
  end
66
-
67
66
  end
@@ -1,47 +1,44 @@
1
1
  class ModelStub < ActiveRecord::Base
2
+ validates :b, :presence => true
2
3
  has_one :other_model, :class_name => 'ModelStub'
3
4
  has_many :other_models, :class_name => 'ModelStub'
4
-
5
+
5
6
  cattr_accessor :stubbed_columns
6
7
  self.stubbed_columns = [:a, :b, :c, :d, :id]
7
- attr_accessor *self.stubbed_columns
8
-
8
+ attr_accessor *stubbed_columns
9
+
9
10
  @@nested_scope_calls = []
10
11
  cattr_accessor :nested_scope_calls
11
-
12
- scope :a_is_defined, lambda { where.not(:a => nil) }
13
- scope :b_like, lambda { |pattern| where("b like ?", pattern) }
14
-
12
+
13
+ scope :a_is_defined, -> { where.not(:a => nil) }
14
+ scope :b_like, ->(pattern) { where('b like ?', pattern) }
15
+
15
16
  def self.a_is_defined
16
17
  @@nested_scope_calls << :a_is_defined
17
18
  self
18
19
  end
19
-
20
+
20
21
  def self.b_like(pattern)
21
22
  @@nested_scope_calls << :b_like
22
23
  self
23
24
  end
24
25
 
25
- def other_model=(val)
26
- @other_model = val
27
- end
26
+ attr_writer :other_model
28
27
  def other_model
29
28
  @other_model || nil
30
29
  end
31
30
 
32
- def other_models=(val)
33
- @other_models = val
34
- end
31
+ attr_writer :other_models
35
32
  def other_models
36
33
  @other_models || []
37
34
  end
38
35
 
39
36
  def self.columns
40
- @columns ||= self.stubbed_columns.map{|c| ColumnMock.new(c.to_s, '', 'varchar(255)') }
37
+ @columns ||= stubbed_columns.map { |c| ColumnMock.new(c.to_s, '', 'varchar(255)') }
41
38
  end
42
39
 
43
40
  def self.columns_hash
44
- @columns_hash ||= columns.inject({}) { |hash, column| hash[column.name.to_s] = column; hash }
41
+ @columns_hash ||= columns.each_with_object({}) { |column, hash| hash[column.name.to_s] = column }
45
42
  end
46
43
 
47
44
  # column-level security methods, used for testing
@@ -1,8 +1,6 @@
1
- test_folders = %w[bridges config data_structures extensions misc]
1
+ test_folders = %w(bridges config data_structures extensions misc)
2
2
 
3
- all_tests = test_folders.inject([]) {|output, folder|
4
- output + Dir[File.join(File.dirname(__FILE__), "#{folder}/**/*.rb")]
5
- }
6
- all_tests.each{|filename|
7
- require filename
8
- }
3
+ all_tests = test_folders.inject([]) do |folder, output|
4
+ output << Dir[File.join(File.dirname(__FILE__), "#{folder}/**/*.rb")]
5
+ end
6
+ all_tests.each { |filename| require filename }
@@ -2,15 +2,16 @@ require 'simplecov'
2
2
  SimpleCov.start { add_filter 'test' }
3
3
 
4
4
  ENV['RAILS_ENV'] = 'test'
5
- require "mock_app/config/environment"
5
+ require 'mock_app/config/environment'
6
6
  require 'rails/test_help'
7
7
  require 'minitest/autorun'
8
-
9
8
  require 'mocha/setup'
10
- begin
11
- require 'redgreen'
12
- rescue LoadError
13
- end
9
+
10
+ require 'minitest/reporters'
11
+ Minitest::Reporters.use!
12
+
13
+ require 'codeclimate-test-reporter'
14
+ CodeClimate::TestReporter.start
14
15
 
15
16
  def load_schema
16
17
  stdout = $stdout
@@ -20,11 +21,11 @@ def load_schema
20
21
  end
21
22
  load_schema
22
23
 
23
- for file in %w[model_stub const_mocker company]
24
+ %w(model_stub const_mocker company).each do |file|
24
25
  require File.join(File.dirname(__FILE__), file)
25
26
  end
26
27
 
27
- I18n.backend.store_translations :en, YAML.load_file(File.expand_path('../../config/locales/en.yml', __FILE__))["en"]
28
+ I18n.backend.store_translations :en, YAML.load_file(File.expand_path('../../config/locales/en.yml', __FILE__))['en']
28
29
 
29
30
  unless defined? Minitest::Test
30
31
  class Minitest::Test < MiniTest::Unit::TestCase
@@ -33,10 +34,12 @@ end
33
34
 
34
35
  class MiniTest::Test
35
36
  protected
37
+
36
38
  def config_for(klass, namespace = nil)
37
39
  ActiveScaffold::Config::Core.new("#{namespace}#{klass.to_s.underscore.downcase}")
38
40
  end
39
41
  end
40
42
 
41
- Object.send :remove_const, :Config
43
+ Config = RbConfig # HACK needed some comments
44
+
42
45
  class ColumnMock < ActiveScaffold::Tableless::Column; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.17
4
+ version: 3.4.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Many, see README
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-05 00:00:00.000000000 Z
11
+ date: 2015-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda
@@ -58,6 +58,20 @@ dependencies:
58
58
  - - <
59
59
  - !ruby/object:Gem::Version
60
60
  version: '5'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rubocop
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - '>='
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
61
75
  description: Save time and headaches, and create a more easily maintainable set of
62
76
  pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read,
63
77
  update, delete) user interface needs, leaving you more time to focus on more challenging
@@ -303,6 +317,7 @@ files:
303
317
  - shoulda_macros/macros.rb
304
318
  - test/bridges/bridge_test.rb
305
319
  - test/bridges/date_picker_test.rb
320
+ - test/bridges/paper_trail_test.rb
306
321
  - test/bridges/paperclip_test.rb
307
322
  - test/bridges/tiny_mce_test.rb
308
323
  - test/company.rb
@@ -404,7 +419,7 @@ files:
404
419
  - vendor/assets/javascripts/jquery-ui-timepicker-addon.js
405
420
  - vendor/assets/stylesheets/jquery-ui-theme.css.erb
406
421
  - vendor/assets/stylesheets/jquery-ui.css
407
- homepage: http://activescaffold.com
422
+ homepage: https://github.com/activescaffold/active_scaffold
408
423
  licenses:
409
424
  - MIT
410
425
  metadata: {}
@@ -431,6 +446,7 @@ summary: Rails 3.2 and 4.0 version of activescaffold supporting prototype and jq
431
446
  test_files:
432
447
  - test/bridges/bridge_test.rb
433
448
  - test/bridges/date_picker_test.rb
449
+ - test/bridges/paper_trail_test.rb
434
450
  - test/bridges/paperclip_test.rb
435
451
  - test/bridges/tiny_mce_test.rb
436
452
  - test/company.rb