lhs 16.1.5 → 16.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +3 -0
  3. data/Gemfile +2 -0
  4. data/lhs.gemspec +2 -0
  5. data/lib/lhs.rb +2 -0
  6. data/lib/lhs/collection.rb +2 -0
  7. data/lib/lhs/complex.rb +2 -0
  8. data/lib/lhs/concerns/autoload_records.rb +2 -0
  9. data/lib/lhs/concerns/collection/handle_nested.rb +2 -0
  10. data/lib/lhs/concerns/collection/internal_collection.rb +2 -0
  11. data/lib/lhs/concerns/configuration.rb +2 -0
  12. data/lib/lhs/concerns/data/becomes.rb +2 -0
  13. data/lib/lhs/concerns/data/equality.rb +2 -0
  14. data/lib/lhs/concerns/data/json.rb +2 -0
  15. data/lib/lhs/concerns/data/to_hash.rb +2 -0
  16. data/lib/lhs/concerns/inspect.rb +2 -0
  17. data/lib/lhs/concerns/item/destroy.rb +2 -0
  18. data/lib/lhs/concerns/item/save.rb +2 -0
  19. data/lib/lhs/concerns/item/update.rb +2 -0
  20. data/lib/lhs/concerns/item/validation.rb +2 -0
  21. data/lib/lhs/concerns/proxy/accessors.rb +2 -0
  22. data/lib/lhs/concerns/proxy/create.rb +2 -0
  23. data/lib/lhs/concerns/proxy/link.rb +2 -0
  24. data/lib/lhs/concerns/proxy/problems.rb +2 -0
  25. data/lib/lhs/concerns/record/batch.rb +2 -0
  26. data/lib/lhs/concerns/record/chainable.rb +2 -0
  27. data/lib/lhs/concerns/record/configuration.rb +2 -0
  28. data/lib/lhs/concerns/record/create.rb +2 -0
  29. data/lib/lhs/concerns/record/custom_setters.rb +2 -0
  30. data/lib/lhs/concerns/record/destroy.rb +2 -0
  31. data/lib/lhs/concerns/record/endpoints.rb +2 -0
  32. data/lib/lhs/concerns/record/equality.rb +2 -0
  33. data/lib/lhs/concerns/record/find.rb +2 -0
  34. data/lib/lhs/concerns/record/find_by.rb +2 -0
  35. data/lib/lhs/concerns/record/first.rb +2 -0
  36. data/lib/lhs/concerns/record/last.rb +2 -0
  37. data/lib/lhs/concerns/record/mapping.rb +2 -0
  38. data/lib/lhs/concerns/record/model.rb +2 -0
  39. data/lib/lhs/concerns/record/pagination.rb +2 -0
  40. data/lib/lhs/concerns/record/relations.rb +2 -0
  41. data/lib/lhs/concerns/record/request.rb +2 -0
  42. data/lib/lhs/concerns/record/request_cycle_cache/interceptor.rb +2 -0
  43. data/lib/lhs/concerns/record/request_cycle_cache/request_cycle_thread_registry.rb +2 -0
  44. data/lib/lhs/concerns/record/scope.rb +2 -0
  45. data/lib/lhs/config.rb +2 -0
  46. data/lib/lhs/data.rb +2 -0
  47. data/lib/lhs/endpoint.rb +2 -0
  48. data/lib/lhs/item.rb +2 -0
  49. data/lib/lhs/pagination/base.rb +2 -0
  50. data/lib/lhs/pagination/offset.rb +2 -0
  51. data/lib/lhs/pagination/page.rb +2 -0
  52. data/lib/lhs/pagination/start.rb +2 -0
  53. data/lib/lhs/problems/base.rb +2 -0
  54. data/lib/lhs/problems/errors.rb +2 -0
  55. data/lib/lhs/problems/nested/base.rb +2 -0
  56. data/lib/lhs/problems/nested/errors.rb +2 -0
  57. data/lib/lhs/problems/nested/warnings.rb +2 -0
  58. data/lib/lhs/problems/warnings.rb +2 -0
  59. data/lib/lhs/proxy.rb +2 -0
  60. data/lib/lhs/railtie.rb +2 -0
  61. data/lib/lhs/record.rb +2 -0
  62. data/lib/lhs/test/request_cycle_cache_helper.rb +2 -0
  63. data/lib/lhs/unprocessable.rb +2 -0
  64. data/lib/lhs/version.rb +3 -1
  65. data/spec/autoloading_spec.rb +2 -0
  66. data/spec/collection/accessors_spec.rb +2 -0
  67. data/spec/collection/collection_items_spec.rb +2 -0
  68. data/spec/collection/configurable_spec.rb +2 -0
  69. data/spec/collection/delegate_spec.rb +2 -0
  70. data/spec/collection/enumerable_spec.rb +2 -0
  71. data/spec/collection/href_spec.rb +2 -0
  72. data/spec/collection/meta_data_spec.rb +2 -0
  73. data/spec/collection/respond_to_spec.rb +2 -0
  74. data/spec/collection/to_a_spec.rb +2 -0
  75. data/spec/collection/to_ary_spec.rb +2 -0
  76. data/spec/collection/without_object_items_spec.rb +2 -0
  77. data/spec/complex/reduce_spec.rb +2 -0
  78. data/spec/concerns/record/request_spec.rb +2 -0
  79. data/spec/data/collection_spec.rb +2 -0
  80. data/spec/data/equality_spec.rb +2 -0
  81. data/spec/data/inspect_spec.rb +2 -0
  82. data/spec/data/is_item_or_collection_spec.rb +2 -0
  83. data/spec/data/item_spec.rb +2 -0
  84. data/spec/data/merge_spec.rb +2 -0
  85. data/spec/data/parent_spec.rb +2 -0
  86. data/spec/data/raw_spec.rb +2 -0
  87. data/spec/data/respond_to_spec.rb +2 -0
  88. data/spec/data/root_spec.rb +2 -0
  89. data/spec/data/select_spec.rb +2 -0
  90. data/spec/data/to_ary_spec.rb +2 -0
  91. data/spec/data/to_json_spec.rb +2 -0
  92. data/spec/dummy/Rakefile +2 -0
  93. data/spec/dummy/app/controllers/application_controller.rb +2 -0
  94. data/spec/dummy/app/controllers/error_handling_with_chains_controller.rb +2 -0
  95. data/spec/dummy/app/controllers/request_cycle_cache_controller.rb +2 -0
  96. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  97. data/spec/dummy/app/models/record.rb +2 -0
  98. data/spec/dummy/app/models/user.rb +2 -0
  99. data/spec/dummy/bin/bundle +2 -0
  100. data/spec/dummy/bin/rails +2 -0
  101. data/spec/dummy/bin/rake +2 -0
  102. data/spec/dummy/config.ru +2 -0
  103. data/spec/dummy/config/application.rb +2 -0
  104. data/spec/dummy/config/boot.rb +2 -0
  105. data/spec/dummy/config/environment.rb +2 -0
  106. data/spec/dummy/config/environments/development.rb +2 -0
  107. data/spec/dummy/config/environments/production.rb +2 -0
  108. data/spec/dummy/config/environments/test.rb +2 -0
  109. data/spec/dummy/config/initializers/assets.rb +2 -0
  110. data/spec/dummy/config/initializers/backtrace_silencers.rb +2 -0
  111. data/spec/dummy/config/initializers/cookies_serializer.rb +2 -0
  112. data/spec/dummy/config/initializers/filter_parameter_logging.rb +2 -0
  113. data/spec/dummy/config/initializers/inflections.rb +2 -0
  114. data/spec/dummy/config/initializers/mime_types.rb +2 -0
  115. data/spec/dummy/config/initializers/session_store.rb +2 -0
  116. data/spec/dummy/config/initializers/wrap_parameters.rb +2 -0
  117. data/spec/dummy/config/routes.rb +2 -0
  118. data/spec/endpoint/for_url_spec.rb +2 -0
  119. data/spec/item/access_errors_spec.rb +2 -0
  120. data/spec/item/accessors_spec.rb +2 -0
  121. data/spec/item/add_error_spec.rb +2 -0
  122. data/spec/item/becomes_spec.rb +2 -0
  123. data/spec/item/blacklisted_keywords_spec.rb +2 -0
  124. data/spec/item/delegate_spec.rb +2 -0
  125. data/spec/item/destroy_spec.rb +2 -0
  126. data/spec/item/dig_spec.rb +2 -0
  127. data/spec/item/error_codes_spec.rb +2 -0
  128. data/spec/item/errors_spec.rb +2 -0
  129. data/spec/item/fetch_spec.rb +2 -0
  130. data/spec/item/getter_spec.rb +2 -0
  131. data/spec/item/internal_data_structure_spec.rb +2 -0
  132. data/spec/item/map_spec.rb +2 -0
  133. data/spec/item/nested_errors_spec.rb +2 -0
  134. data/spec/item/partial_update_spec.rb +2 -0
  135. data/spec/item/respond_to_spec.rb +2 -0
  136. data/spec/item/save_spec.rb +2 -0
  137. data/spec/item/setter_spec.rb +2 -0
  138. data/spec/item/translate_errors_spec.rb +2 -0
  139. data/spec/item/update_spec.rb +2 -0
  140. data/spec/item/validation_spec.rb +2 -0
  141. data/spec/item/warning_codes_spec.rb +2 -0
  142. data/spec/item/warnings_spec.rb +2 -0
  143. data/spec/pagination/pages_left_spec.rb +2 -0
  144. data/spec/pagination/parameters_spec.rb +2 -0
  145. data/spec/proxy/create_sub_resource_spec.rb +2 -0
  146. data/spec/proxy/load_spec.rb +2 -0
  147. data/spec/proxy/record_identification_spec.rb +2 -0
  148. data/spec/rails_helper.rb +2 -0
  149. data/spec/record/all_spec.rb +2 -0
  150. data/spec/record/build_spec.rb +2 -0
  151. data/spec/record/cast_nested_data_spec.rb +2 -0
  152. data/spec/record/create_spec.rb +2 -0
  153. data/spec/record/creation_failed_spec.rb +2 -0
  154. data/spec/record/definitions_spec.rb +2 -0
  155. data/spec/record/destroy_spec.rb +2 -0
  156. data/spec/record/dig_configuration_spec.rb +2 -0
  157. data/spec/record/endpoint_inheritance_spec.rb +2 -0
  158. data/spec/record/endpoint_misconfiguration_spec.rb +2 -0
  159. data/spec/record/endpoint_options_spec.rb +2 -0
  160. data/spec/record/endpoints_spec.rb +2 -0
  161. data/spec/record/equality_spec.rb +2 -0
  162. data/spec/record/error_handling_integration_spec.rb +2 -0
  163. data/spec/record/error_handling_spec.rb +2 -0
  164. data/spec/record/expanded_spec.rb +2 -0
  165. data/spec/record/fetch_spec.rb +2 -0
  166. data/spec/record/find_by_chains_spec.rb +2 -0
  167. data/spec/record/find_by_spec.rb +2 -0
  168. data/spec/record/find_each_spec.rb +2 -0
  169. data/spec/record/find_in_batches_spec.rb +2 -0
  170. data/spec/record/find_in_parallel_spec.rb +2 -0
  171. data/spec/record/find_spec.rb +2 -0
  172. data/spec/record/first_spec.rb +2 -0
  173. data/spec/record/handle_includes_errors_spec.rb +2 -0
  174. data/spec/record/has_many_spec.rb +2 -0
  175. data/spec/record/has_one_spec.rb +2 -0
  176. data/spec/record/ignore_errors_spec.rb +2 -0
  177. data/spec/record/immutable_chains_spec.rb +2 -0
  178. data/spec/record/includes_all_spec.rb +2 -0
  179. data/spec/record/includes_spec.rb +2 -0
  180. data/spec/record/includes_warning_spec.rb +2 -0
  181. data/spec/record/item_key_spec.rb +2 -0
  182. data/spec/record/items_created_key_configuration_spec.rb +2 -0
  183. data/spec/record/last_spec.rb +2 -0
  184. data/spec/record/loading_twice_spec.rb +2 -0
  185. data/spec/record/mapping_spec.rb +2 -0
  186. data/spec/record/model_name_spec.rb +2 -0
  187. data/spec/record/new_spec.rb +2 -0
  188. data/spec/record/options_getter_spec.rb +2 -0
  189. data/spec/record/options_spec.rb +2 -0
  190. data/spec/record/paginatable_collection_spec.rb +2 -0
  191. data/spec/record/pagination_chain_spec.rb +2 -0
  192. data/spec/record/pagination_links_spec.rb +2 -0
  193. data/spec/record/pagination_spec.rb +2 -0
  194. data/spec/record/persisted_spec.rb +2 -0
  195. data/spec/record/references_spec.rb +2 -0
  196. data/spec/record/reload_by_id_spec.rb +2 -0
  197. data/spec/record/reload_spec.rb +2 -0
  198. data/spec/record/request_spec.rb +2 -0
  199. data/spec/record/save_spec.rb +2 -0
  200. data/spec/record/scope_chains_spec.rb +2 -0
  201. data/spec/record/select_spec.rb +2 -0
  202. data/spec/record/to_ary_spec.rb +2 -0
  203. data/spec/record/to_hash_spec.rb +2 -0
  204. data/spec/record/to_json_spec.rb +2 -0
  205. data/spec/record/where_chains_spec.rb +2 -0
  206. data/spec/record/where_spec.rb +2 -0
  207. data/spec/record/where_values_hash_spec.rb +2 -0
  208. data/spec/request_cycle_cache_spec.rb +2 -0
  209. data/spec/require_lhs_spec.rb +2 -0
  210. data/spec/spec_helper.rb +2 -0
  211. data/spec/support/load_json.rb +2 -0
  212. data/spec/support/request_cycle_cache.rb +2 -0
  213. data/spec/support/reset.rb +2 -0
  214. data/spec/views/form_for_spec.rb +2 -0
  215. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a37f6839d542b64f7985aa457544f300c36802a812d5b313a33ae3d35f9fd99
4
- data.tar.gz: 4c00a48d6d2810e18237f36d80aedafb57af16fe04ab5204a6025b747e32bdf0
3
+ metadata.gz: fdc8b24d36b84deb4d414e44dcecd0d97aa5947a233c6aa583ff99599239a5a0
4
+ data.tar.gz: dcc784f12e0c0265626af386f5cbb6315cd98b797e0d3ea7102471b141c5e383
5
5
  SHA512:
6
- metadata.gz: d31442efdfaf1e8d9be0134346baf24c3a5d9808dc965a21c9ef76ba63da572df53069c04277330a9b35013fc0ba876ad3c15337327ac19ee8e54422d4cab93a
7
- data.tar.gz: 0ea81e97b307717fee4200e8fbe521dc6df685f4c1f31c9aab9b5a07d1861f364d760044a7f2eb2b8a37670e3ef09e1bb53a9d66a86c435b6d27dff07b92d243
6
+ metadata.gz: 8398b16962f5ef9b3d50f559497ac28170ed8dd7b8d363d4eeff231a5367af08f008c9d47239179e6c1fb44a62765fa9baf1fec761c7888ed4cac466e988b965
7
+ data.tar.gz: 92a52e3faec2c5971f0bff1a3b8cf3c451d415d344f3cc0fe764b2ccee772b53cc238c5e1e04ed472dc7994bb961be529436027c7d8eca6880d93e4cf3903fb4
@@ -47,3 +47,6 @@ RSpec/MessageSpies:
47
47
 
48
48
  Style/RegexpLiteral:
49
49
  Enabled: false
50
+
51
+ Style/FrozenStringLiteralComment:
52
+ Enabled: true
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org/'
2
4
 
3
5
  # Declare your gem's dependencies in lhs.gemspec.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  $LOAD_PATH.push File.expand_path("../lib", __FILE__)
2
4
 
3
5
  # Maintain your gem's version:
data/lib/lhs.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'lhc'
2
4
 
3
5
  module LHS
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # A collection is a special type of data
2
4
  # that contains multiple items
3
5
  class LHS::Collection < LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Complex is the main data structure for includes:
2
4
  # Can be for example :place, [:place, :customer],
3
5
  # [{ places: [:customer] }, { places: { customer: :contract }}]
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  # Preload all the LHS::Records that are defined in app/models/*
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Collection < LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Collection < LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  module LHS
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Data
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Data
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Data
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Data
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  module LHS
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Item < LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Item < LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Item < LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Item < LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
  require 'active_model'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
  require 'active_support/core_ext/class/attribute'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
  require 'active_support/core_ext/object'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support'
2
4
 
3
5
  class LHS::Record
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'singleton'
2
4
 
3
5
  class LHS::Config
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Data provides functionalities to accesses information
2
4
  class LHS::Data
3
5
  autoload :Becomes,
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # An endpoint is used as source to fetch objects
2
4
  class LHS::Endpoint
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # An item is a concrete record.
2
4
  # It can be part of another proxy like collection.
3
5
  class LHS::Item < LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support/core_ext/module/delegation'
2
4
 
3
5
  # Pagination is used to navigate paginateable collections
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class LHS::Pagination::Offset < LHS::Pagination::Base
2
4
 
3
5
  DEFAULT_OFFSET = 0
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class LHS::Pagination::Page < LHS::Pagination::Base
2
4
 
3
5
  DEFAULT_OFFSET = 1
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class LHS::Pagination::Start < LHS::Pagination::Base
2
4
 
3
5
  DEFAULT_OFFSET = 1
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_support/core_ext/module'
2
4
  require 'active_support/core_ext/hash'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module LHS::Problems
2
4
  class Errors < Base
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module LHS::Problems
2
4
  module Nested
3
5
  module Base
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module LHS::Problems
2
4
  module Nested
3
5
  class Errors < LHS::Problems::Errors
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module LHS::Problems
2
4
  module Nested
3
5
  class Warnings < LHS::Problems::Warnings
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module LHS::Problems
2
4
  class Warnings < Base
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Proxy makes different kind of data accessible
2
4
  # If href is present it also alows loading/reloading
3
5
  class LHS::Proxy
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module LHS
2
4
  class Railtie < Rails::Railtie
3
5
  initializer "lhs.hook_into_controller_initialization" do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class LHS::Record
2
4
  autoload :Batch,
3
5
  'lhs/concerns/record/batch'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  RSpec.configure do |config|
2
4
  config.before(:each) do
3
5
  LHS.config.request_cycle_cache.clear
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module LHS
2
4
  class Unprocessable < StandardError
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module LHS
2
- VERSION = '16.1.5'
4
+ VERSION = '16.1.6'
3
5
  end