freckle_io 0.1.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +7 -5
  3. data/freckle-io.gemspec +3 -3
  4. data/lib/freckle_io/client/entries.rb +1 -26
  5. data/lib/freckle_io/client/project_groups.rb +0 -2
  6. data/lib/freckle_io/client/projects.rb +1 -13
  7. data/lib/freckle_io/client/tags.rb +1 -6
  8. data/lib/freckle_io/client/users.rb +1 -6
  9. data/lib/freckle_io/configuration.rb +5 -5
  10. data/lib/freckle_io/connection.rb +1 -3
  11. data/lib/freckle_io/params.rb +5 -10
  12. data/lib/freckle_io/request/multiple_pages.rb +3 -3
  13. data/lib/freckle_io/request/single_page.rb +2 -2
  14. data/lib/freckle_io/validator/base_contract.rb +16 -0
  15. data/lib/freckle_io/validator/entry.rb +26 -50
  16. data/lib/freckle_io/validator/project.rb +13 -39
  17. data/lib/freckle_io/validator/project_group.rb +5 -24
  18. data/lib/freckle_io/validator/tag.rb +5 -24
  19. data/lib/freckle_io/validator/user.rb +13 -37
  20. data/lib/freckle_io/validator/validation.yml +8 -13
  21. data/lib/freckle_io.rb +1 -1
  22. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml +23 -18
  23. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/_all/returns_a_entry_for_each_response.yml +23 -18
  24. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/with_unknow_params/doesn_t_raise_a_invalid_params_error.yml +53 -0
  25. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/with_valid_params/params_should_be_valid.yml +22 -17
  26. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/with_validator/call_entry_s_validator.yml +24 -19
  27. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml +261 -35
  28. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/_all/returns_a_project_group_for_each_response.yml +262 -36
  29. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/with_unknow_params/doesn_t_raises_a_invalid_params_error.yml +325 -0
  30. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/with_valid_params/params_should_be_valid.yml +22 -17
  31. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/with_validator/call_project_group_s_validator.yml +261 -35
  32. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml +501 -225
  33. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_all/returns_a_project_for_each_response.yml +501 -225
  34. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_show/get_a_spacific_project.yml +24 -19
  35. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_show/raw_links_should_be_a_empty_array.yml +24 -19
  36. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/with_unknow_params/doesn_t_raises_a_invalid_params_error.yml +865 -0
  37. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/with_valid_params/params_should_be_valid.yml +22 -17
  38. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/with_validator/call_project_s_validator.yml +502 -226
  39. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml +23 -18
  40. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/_all/returns_a_tag_for_each_response.yml +23 -18
  41. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/with_unknow_params/doesn_t_raise_a_invalid_params_error.yml +53 -0
  42. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/with_valid_params/params_should_be_valid.yml +22 -17
  43. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/with_validator/call_tag_s_validator.yml +23 -18
  44. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml +45 -35
  45. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/_all/returns_a_user_for_each_response.yml +45 -35
  46. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/with_unknow_params/doesn_t_raise_a_invalid_params_error.yml +109 -0
  47. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/with_valid_params/params_should_be_valid.yml +22 -17
  48. data/spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/with_validator/call_user_s_validator.yml +45 -35
  49. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_a_valid_response/must_be_a_json_format.yml +23 -18
  50. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_freckle_token_authentication/set_X-FreckleToken.yml +23 -18
  51. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_header/set_user_agent.yml +23 -18
  52. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_invalid_url/raises_a_resource_not_found_error_for_invalid_resource.yml +13 -16
  53. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_page_param/response_must_be_success.yml +23 -18
  54. data/spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_per_page_param/response_must_have_per_page_elements.yml +24 -19
  55. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_MultiplePages/with_configuration/_get/returns_an_array_of_faraday_response.yml +45 -35
  56. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_MultiplePages/with_configuration/_get/returns_freckle_default_per_page_elements.yml +45 -35
  57. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_MultiplePages/with_per_page/_get/return_per_page_number_elements.yml +74 -59
  58. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_first/next_page_should_be_a_SinglePage.yml +45 -35
  59. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_first/prev_page_should_be_nil.yml +23 -18
  60. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_first/when_get_last_page_from_the_first_page/next_should_be_nil.yml +45 -35
  61. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_get/returns_correct_raw_links_for_the_first_page.yml +23 -18
  62. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_last/next_page_should_be_nil.yml +45 -35
  63. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_last/returns_correct_raw_links_for_the_last_page.yml +45 -35
  64. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_last/when_get_prev_page_from_the_last_page/prev_should_be_nil.yml +67 -52
  65. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_next/previous_page_is_a_SinglePage.yml +67 -52
  66. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_next/previous_page_should_be_not_nil.yml +67 -52
  67. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_prev/next_page_is_a_SinglePage.yml +89 -69
  68. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_prev/when_get_prev_page_from_the_first_page/prev_should_be_nil.yml +67 -52
  69. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_total_page/with_first_page/returns_the_range_of_pages.yml +23 -18
  70. data/spec/fixtures/vcr_cassettes/FreckleIO_Request_SinglePage/with_configuration/_total_page/with_next_page/returns_an_empty_array.yml +45 -35
  71. data/spec/freckle_io/client/entries_spec.rb +23 -32
  72. data/spec/freckle_io/client/project_groups_spec.rb +11 -20
  73. data/spec/freckle_io/client/projects_spec.rb +15 -21
  74. data/spec/freckle_io/client/tags_spec.rb +10 -19
  75. data/spec/freckle_io/client/users_spec.rb +13 -21
  76. data/spec/freckle_io/configuration_spec.rb +7 -4
  77. data/spec/freckle_io/connection_spec.rb +1 -1
  78. data/spec/freckle_io/paginator_spec.rb +8 -8
  79. data/spec/freckle_io/params_spec.rb +1 -1
  80. data/spec/freckle_io/request/single_page_spec.rb +6 -6
  81. data/spec/spec_helper.rb +3 -3
  82. data/spec/support/anonymize/entries.rb +9 -8
  83. data/spec/support/anonymize/project_groups.rb +4 -3
  84. data/spec/support/anonymize/projects.rb +9 -8
  85. data/spec/support/anonymize/tags.rb +5 -4
  86. data/spec/support/anonymize/users.rb +13 -15
  87. data/spec/support/anonymize_interaction.rb +5 -5
  88. metadata +29 -24
  89. data/lib/freckle_io/validator/restricted_hash.rb +0 -11
@@ -1,15 +1,16 @@
1
1
  module Anonymize
2
2
  class Projects
3
3
  attr_accessor :interaction
4
+
4
5
  PROJECT_API_REPLACE_VALUES = {
5
- name: /\"name\":\"(.*?)\"/i,
6
- id: /\"id\":(.*?),/i,
7
- url: /\"url\":\"(.*?)\"/i,
8
- description: /\"description\":\"(.*?)\"/i,
9
- email: /\"email\":\"(.*?)\",/i,
10
- first_name: /\"first_name\":\"(.*?)\"/i,
11
- last_name: /\"last_name\":\"(.*?)\"/i,
12
- profile_image_url: /\"profile_image_url\":\"(.*?)\"/i
6
+ name: /"name":"(.*?)"/i,
7
+ id: /"id":(.*?),/i,
8
+ url: /"url":"(.*?)"/i,
9
+ description: /"description":"(.*?)"/i,
10
+ email: /"email":"(.*?)",/i,
11
+ first_name: /"first_name":"(.*?)"/i,
12
+ last_name: /"last_name":"(.*?)"/i,
13
+ profile_image_url: /"profile_image_url":"(.*?)"/i
13
14
  }.freeze
14
15
 
15
16
  def initialize(interaction:)
@@ -1,11 +1,12 @@
1
1
  module Anonymize
2
2
  class Tags
3
3
  attr_accessor :interaction
4
+
4
5
  TAG_API_REPLACE_VALUES = {
5
- id: /\"id\":(.*?),/mi,
6
- name: /\"name\":\"(.*?)\"/mi,
7
- formatted_name: /\"formatted_name\":\"(.*?)\"/mi,
8
- url: /\"url\":\"(.*?)\"/mi
6
+ id: /"id":(.*?),/mi,
7
+ name: /"name":"(.*?)"/mi,
8
+ formatted_name: /"formatted_name":"(.*?)"/mi,
9
+ url: /"url":"(.*?)"/mi
9
10
  }.freeze
10
11
 
11
12
  def initialize(interaction:)
@@ -2,23 +2,21 @@ module Anonymize
2
2
  class Users
3
3
  attr_accessor :interaction
4
4
 
5
- # rubocop:disable Metrics/LineLength
6
5
  USER_API_REPLACE_VALUES = {
7
- id: /\"id\":(.*?),/mi,
8
- mail: /\"email\":\"(.*?)\"/mi,
9
- first_name: /\"first_name\":\"(.*?)\"/mi,
10
- last_name: /\"last_name\":\"(.*?)\"/mi,
11
- profile_image_url: /\"profile_image_url\":\"(.*?)\"/i,
12
- url: /\"url\":\"(.*?)\"/mi,
13
- entries_url: /\"entries_url\":\"(.*?)\"/mi,
14
- expanses_url: /\"expanse_url\":\"(.*?)\"/mi,
15
- activate_url: /\"activate_url\":\"(.*?)\"/mi,
16
- deactivate_url: /\"deactivate_url\":\"(.*?)\"/mi,
17
- access_projects_url: /\"give_access_to_projects_url\":\"(.*?)\"/mi,
18
- revoke_projects_url: /\"revoke_access_to_projects_url\":\"(.*?)\"/mi,
19
- revoke_all_projects_url: /\"revoke_access_to_all_projects_url\":\"(.*?)\"/mi
6
+ id: /"id":(.*?),/mi,
7
+ mail: /"email":"(.*?)"/mi,
8
+ first_name: /"first_name":"(.*?)"/mi,
9
+ last_name: /"last_name":"(.*?)"/mi,
10
+ profile_image_url: /"profile_image_url":"(.*?)"/i,
11
+ url: /"url":"(.*?)"/mi,
12
+ entries_url: /"entries_url":"(.*?)"/mi,
13
+ expanses_url: /"expanse_url":"(.*?)"/mi,
14
+ activate_url: /"activate_url":"(.*?)"/mi,
15
+ deactivate_url: /"deactivate_url":"(.*?)"/mi,
16
+ access_projects_url: /"give_access_to_projects_url":"(.*?)"/mi,
17
+ revoke_projects_url: /"revoke_access_to_projects_url":"(.*?)"/mi,
18
+ revoke_all_projects_url: /"revoke_access_to_all_projects_url":"(.*?)"/mi
20
19
  }.freeze
21
- # rubocop:enable Metrics/LineLength
22
20
 
23
21
  def initialize(interaction:)
24
22
  @interaction = interaction
@@ -6,19 +6,19 @@ class AnonymizeInteraction
6
6
 
7
7
  PATH_TO_CLASS = [
8
8
  {
9
- path: %r{^\/v2\/users(\/\d+)?$},
9
+ path: %r{^/v2/users(/\d+)?$},
10
10
  klass: "Anonymize::Users"},
11
11
  {
12
- path: %r{^\/v2\/projects(\/\d+)?$},
12
+ path: %r{^/v2/projects(/\d+)?$},
13
13
  klass: "Anonymize::Projects"},
14
14
  {
15
- path: %r{^\/v2\/entries(\/\d+)?$},
15
+ path: %r{^/v2/entries(/\d+)?$},
16
16
  klass: "Anonymize::Entries"},
17
17
  {
18
- path: %r{^\/v2\/tags(\/\d+)?$},
18
+ path: %r{^/v2/tags(/\d+)?$},
19
19
  klass: "Anonymize::Tags"},
20
20
  {
21
- path: %r{^\/v2\/project_groups(\/\d+)?$},
21
+ path: %r{^/v2/project_groups(/\d+)?$},
22
22
  klass: "Anonymize::ProjectGroups"
23
23
  }
24
24
  ].freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freckle_io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Domenico Giuseppe Garofoli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-29 00:00:00.000000000 Z
11
+ date: 2022-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -168,16 +168,16 @@ dependencies:
168
168
  name: dry-validation
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '='
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.13.0
173
+ version: 1.9.0
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '='
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.13.0
180
+ version: 1.9.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: faraday
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -254,35 +254,40 @@ files:
254
254
  - lib/freckle_io/params.rb
255
255
  - lib/freckle_io/request/multiple_pages.rb
256
256
  - lib/freckle_io/request/single_page.rb
257
+ - lib/freckle_io/validator/base_contract.rb
257
258
  - lib/freckle_io/validator/entry.rb
258
259
  - lib/freckle_io/validator/project.rb
259
260
  - lib/freckle_io/validator/project_group.rb
260
- - lib/freckle_io/validator/restricted_hash.rb
261
261
  - lib/freckle_io/validator/tag.rb
262
262
  - lib/freckle_io/validator/user.rb
263
263
  - lib/freckle_io/validator/validation.yml
264
264
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml
265
265
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/_all/returns_a_entry_for_each_response.yml
266
+ - spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/with_unknow_params/doesn_t_raise_a_invalid_params_error.yml
266
267
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/with_valid_params/params_should_be_valid.yml
267
268
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Entries/with_configuration/with_validator/call_entry_s_validator.yml
268
269
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml
269
270
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/_all/returns_a_project_group_for_each_response.yml
271
+ - spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/with_unknow_params/doesn_t_raises_a_invalid_params_error.yml
270
272
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/with_valid_params/params_should_be_valid.yml
271
273
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_ProjectGroups/with_configuration/with_validator/call_project_group_s_validator.yml
272
274
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml
273
275
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_all/returns_a_project_for_each_response.yml
274
276
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_show/get_a_spacific_project.yml
275
277
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/_show/raw_links_should_be_a_empty_array.yml
278
+ - spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/with_unknow_params/doesn_t_raises_a_invalid_params_error.yml
276
279
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/with_valid_params/params_should_be_valid.yml
277
280
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Projects/with_configuration/with_validator/call_project_s_validator.yml
278
281
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml
279
282
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/_all/returns_a_tag_for_each_response.yml
283
+ - spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/with_unknow_params/doesn_t_raise_a_invalid_params_error.yml
280
284
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/with_valid_params/params_should_be_valid.yml
281
285
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Tags/with_configuration/with_validator/call_tag_s_validator.yml
282
286
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/_all/result_must_be_a_Request_MultiplePages.yml
283
287
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/_all/returns_a_user_for_each_response.yml
284
288
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/_show/get_a_spacific_user.yml
285
289
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/_show/raw_links_should_be_a_empty_array.yml
290
+ - spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/with_unknow_params/doesn_t_raise_a_invalid_params_error.yml
286
291
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/with_valid_params/params_should_be_valid.yml
287
292
  - spec/fixtures/vcr_cassettes/FreckleIO_Client_Users/with_configuration/with_validator/call_user_s_validator.yml
288
293
  - spec/fixtures/vcr_cassettes/FreckleIO_Connection/with_default_configuration/with_a_valid_response/must_be_a_json_format.yml
@@ -343,39 +348,39 @@ required_ruby_version: !ruby/object:Gem::Requirement
343
348
  requirements:
344
349
  - - ">="
345
350
  - !ruby/object:Gem::Version
346
- version: 2.4.0
351
+ version: 2.7.0
347
352
  required_rubygems_version: !ruby/object:Gem::Requirement
348
353
  requirements:
349
354
  - - ">="
350
355
  - !ruby/object:Gem::Version
351
356
  version: '0'
352
357
  requirements: []
353
- rubygems_version: 3.0.3
358
+ rubygems_version: 3.1.6
354
359
  signing_key:
355
360
  specification_version: 4
356
361
  summary: Yet another Ruby client for the Freckle API
357
362
  test_files:
358
363
  - spec/spec_helper.rb
364
+ - spec/support/entry_info.rb
365
+ - spec/support/user_info.rb
366
+ - spec/support/project_group_info.rb
367
+ - spec/support/anonymize_interaction.rb
368
+ - spec/support/shared/links/raw_links.rb
369
+ - spec/support/project_info.rb
359
370
  - spec/support/anonymize/entries.rb
371
+ - spec/support/anonymize/projects.rb
360
372
  - spec/support/anonymize/users.rb
361
- - spec/support/anonymize/tags.rb
362
373
  - spec/support/anonymize/project_groups.rb
363
- - spec/support/anonymize/projects.rb
364
- - spec/support/shared/links/raw_links.rb
365
- - spec/support/user_info.rb
374
+ - spec/support/anonymize/tags.rb
366
375
  - spec/support/tag_info.rb
367
- - spec/support/project_info.rb
368
- - spec/support/anonymize_interaction.rb
369
- - spec/support/entry_info.rb
370
- - spec/support/project_group_info.rb
371
- - spec/freckle_io/paginator_spec.rb
376
+ - spec/freckle_io/configuration_spec.rb
377
+ - spec/freckle_io/params_spec.rb
378
+ - spec/freckle_io/connection_spec.rb
372
379
  - spec/freckle_io/request/single_page_spec.rb
373
380
  - spec/freckle_io/request/multiple_pages_spec.rb
374
- - spec/freckle_io/connection_spec.rb
375
- - spec/freckle_io/configuration_spec.rb
376
- - spec/freckle_io/client/projects_spec.rb
377
- - spec/freckle_io/client/project_groups_spec.rb
378
- - spec/freckle_io/client/users_spec.rb
381
+ - spec/freckle_io/paginator_spec.rb
379
382
  - spec/freckle_io/client/entries_spec.rb
380
383
  - spec/freckle_io/client/tags_spec.rb
381
- - spec/freckle_io/params_spec.rb
384
+ - spec/freckle_io/client/projects_spec.rb
385
+ - spec/freckle_io/client/users_spec.rb
386
+ - spec/freckle_io/client/project_groups_spec.rb
@@ -1,11 +0,0 @@
1
- module FreckleIO
2
- module Validator
3
- module RestrictedHash
4
- include Dry::Logic::Predicates
5
-
6
- predicate(:restricted_hash?) do |allowed_keys, hash|
7
- (hash.keys - allowed_keys).empty?
8
- end
9
- end
10
- end
11
- end