flutter 0.1.0.pre.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -5
  3. data/Gemfile +1 -0
  4. data/README.md +62 -2
  5. data/Rakefile +35 -1
  6. data/codecov.yml +13 -0
  7. data/lib/flutter/minitest.rb +6 -8
  8. data/lib/flutter/parser.rb +18 -16
  9. data/lib/flutter/persistence.rb +51 -5
  10. data/lib/flutter/rspec.rb +7 -7
  11. data/lib/flutter/tracker.rb +48 -5
  12. data/lib/flutter/version.rb +1 -1
  13. metadata +21 -95
  14. data/integration_tests/minitest/grape_app/.gitignore +0 -67
  15. data/integration_tests/minitest/grape_app/.ruby-version +0 -1
  16. data/integration_tests/minitest/grape_app/Gemfile +0 -17
  17. data/integration_tests/minitest/grape_app/Gemfile.lock +0 -89
  18. data/integration_tests/minitest/grape_app/README.md +0 -2
  19. data/integration_tests/minitest/grape_app/Rakefile +0 -9
  20. data/integration_tests/minitest/grape_app/api/api.rb +0 -34
  21. data/integration_tests/minitest/grape_app/api/routes/api_helpers.rb +0 -12
  22. data/integration_tests/minitest/grape_app/api/routes/change_request/api.rb +0 -69
  23. data/integration_tests/minitest/grape_app/api/routes/change_request/response_entity.rb +0 -18
  24. data/integration_tests/minitest/grape_app/api/routes/event/api.rb +0 -121
  25. data/integration_tests/minitest/grape_app/api/routes/event/response_entity.rb +0 -41
  26. data/integration_tests/minitest/grape_app/api/routes/project/api.rb +0 -59
  27. data/integration_tests/minitest/grape_app/api/routes/project/response_entity.rb +0 -13
  28. data/integration_tests/minitest/grape_app/api/routes/property/api.rb +0 -78
  29. data/integration_tests/minitest/grape_app/api/routes/property/response_entity.rb +0 -31
  30. data/integration_tests/minitest/grape_app/api/routes/trackable_object/api.rb +0 -64
  31. data/integration_tests/minitest/grape_app/api/routes/trackable_object/response_entity.rb +0 -24
  32. data/integration_tests/minitest/grape_app/api/routes/tracking_spec/api.rb +0 -88
  33. data/integration_tests/minitest/grape_app/api/routes/tracking_spec/response_entity.rb +0 -17
  34. data/integration_tests/minitest/grape_app/api/routes/tracking_spec/spec_response.rb +0 -19
  35. data/integration_tests/minitest/grape_app/api/routes/user/api.rb +0 -22
  36. data/integration_tests/minitest/grape_app/api/routes/user/response_entity.rb +0 -12
  37. data/integration_tests/minitest/grape_app/app/app.rb +0 -30
  38. data/integration_tests/minitest/grape_app/app/change_request/endpoint.rb +0 -24
  39. data/integration_tests/minitest/grape_app/app/change_request/generate_system_changes.rb +0 -25
  40. data/integration_tests/minitest/grape_app/app/change_request/service.rb +0 -79
  41. data/integration_tests/minitest/grape_app/app/event/endpoint.rb +0 -78
  42. data/integration_tests/minitest/grape_app/app/event/service.rb +0 -68
  43. data/integration_tests/minitest/grape_app/app/event/validator.rb +0 -108
  44. data/integration_tests/minitest/grape_app/app/project/endpoint.rb +0 -24
  45. data/integration_tests/minitest/grape_app/app/project/service.rb +0 -42
  46. data/integration_tests/minitest/grape_app/app/property/endpoint.rb +0 -39
  47. data/integration_tests/minitest/grape_app/app/property/service.rb +0 -56
  48. data/integration_tests/minitest/grape_app/app/trackable_object/endpoint.rb +0 -38
  49. data/integration_tests/minitest/grape_app/app/trackable_object/service.rb +0 -49
  50. data/integration_tests/minitest/grape_app/app/trackable_object/validator.rb +0 -40
  51. data/integration_tests/minitest/grape_app/app/tracking_spec/endpoint.rb +0 -58
  52. data/integration_tests/minitest/grape_app/app/tracking_spec/expand_tracking_spec_events.rb +0 -91
  53. data/integration_tests/minitest/grape_app/app/tracking_spec/service.rb +0 -51
  54. data/integration_tests/minitest/grape_app/app/tracking_spec/validator.rb +0 -61
  55. data/integration_tests/minitest/grape_app/app/utils/errors/api_exceptions.rb +0 -10
  56. data/integration_tests/minitest/grape_app/app/utils/errors/service_exceptions.rb +0 -12
  57. data/integration_tests/minitest/grape_app/app/versioned_entity/entity.rb +0 -110
  58. data/integration_tests/minitest/grape_app/app/versioned_entity/service.rb +0 -47
  59. data/integration_tests/minitest/grape_app/app/versioned_entity/validator.rb +0 -61
  60. data/integration_tests/minitest/grape_app/app/versioned_entity_snapshot/entity.rb +0 -32
  61. data/integration_tests/minitest/grape_app/config/boot.rb +0 -9
  62. data/integration_tests/minitest/grape_app/config.ru +0 -3
  63. data/integration_tests/minitest/grape_app/db/proto/change_request.rb +0 -10
  64. data/integration_tests/minitest/grape_app/db/proto/common/doc.rb +0 -86
  65. data/integration_tests/minitest/grape_app/db/proto/event.rb +0 -10
  66. data/integration_tests/minitest/grape_app/db/proto/event_snapshot.rb +0 -10
  67. data/integration_tests/minitest/grape_app/db/proto/project.rb +0 -21
  68. data/integration_tests/minitest/grape_app/db/proto/property.rb +0 -10
  69. data/integration_tests/minitest/grape_app/db/proto/property_snapshot.rb +0 -10
  70. data/integration_tests/minitest/grape_app/db/proto/trackable_object.rb +0 -10
  71. data/integration_tests/minitest/grape_app/db/proto/trackable_object_snapshot.rb +0 -10
  72. data/integration_tests/minitest/grape_app/db/proto/tracking_spec.rb +0 -10
  73. data/integration_tests/minitest/grape_app/test/api/functional/event_test.rb +0 -186
  74. data/integration_tests/minitest/grape_app/test/api/functional/property_test.rb +0 -197
  75. data/integration_tests/minitest/grape_app/test/api/functional/trackable_object_test.rb +0 -134
  76. data/integration_tests/minitest/grape_app/test/api/functional/tracking_spec_test.rb +0 -56
  77. data/integration_tests/minitest/grape_app/test/api/functional/user_test.rb +0 -24
  78. data/integration_tests/minitest/grape_app/test/api/functional/versioned_entity_helper.rb +0 -157
  79. data/integration_tests/minitest/grape_app/test/fixtures/change_requests.rb +0 -83
  80. data/integration_tests/minitest/grape_app/test/fixtures/event_snapshots.rb +0 -105
  81. data/integration_tests/minitest/grape_app/test/fixtures/events.rb +0 -58
  82. data/integration_tests/minitest/grape_app/test/fixtures/properties.rb +0 -66
  83. data/integration_tests/minitest/grape_app/test/fixtures/property_snapshots.rb +0 -124
  84. data/integration_tests/minitest/grape_app/test/fixtures/sample_tracking_spec.json +0 -125
  85. data/integration_tests/minitest/grape_app/test/fixtures/trackable_objects.rb +0 -58
  86. data/integration_tests/minitest/grape_app/test/fixtures/trackable_objects_snapshots.rb +0 -61
  87. data/integration_tests/minitest/grape_app/test/fixtures/tracking_specs.rb +0 -22
  88. data/integration_tests/minitest/grape_app/test/test_helper.rb +0 -15
@@ -1,125 +0,0 @@
1
- [
2
- {
3
- "name": "Closed App",
4
- "description": "Description of event A.",
5
- "payload": {
6
- "primary_user": {
7
- "name": {
8
- "data_type": "String",
9
- "description": "user's name",
10
- "is_nullable": false,
11
- "additional_instructions": null,
12
- "data_format_id": null,
13
- "regex_validation": null,
14
- "is_removed": null
15
- }
16
- },
17
- "created_timestamp": {
18
- "data_type": "String",
19
- "description": "created_at timestamp",
20
- "is_nullable": false,
21
- "additional_instructions": null,
22
- "data_format_id": null,
23
- "regex_validation": null,
24
- "is_removed": null
25
- },
26
- "cart": {
27
- "products": [
28
- {
29
- "name": {
30
- "data_type": "String",
31
- "description": "user's name",
32
- "is_nullable": false,
33
- "additional_instructions": null,
34
- "data_format_id": null,
35
- "regex_validation": null,
36
- "is_removed": null
37
- }
38
- }
39
- ]
40
- }
41
- }
42
- },
43
- {
44
- "name": "Opened App",
45
- "description": "Description of event A.",
46
- "payload": {
47
- "primary_user": {
48
- "name": {
49
- "data_type": "String",
50
- "description": "user's name",
51
- "is_nullable": false,
52
- "additional_instructions": null,
53
- "data_format_id": null,
54
- "regex_validation": null,
55
- "is_removed": null
56
- }
57
- },
58
- "created_timestamp": {
59
- "data_type": "String",
60
- "description": "created_at timestamp",
61
- "is_nullable": false,
62
- "additional_instructions": null,
63
- "data_format_id": null,
64
- "regex_validation": null,
65
- "is_removed": null
66
- },
67
- "cart": {
68
- "products": [
69
- {
70
- "name": {
71
- "data_type": "String",
72
- "description": "user's name",
73
- "is_nullable": false,
74
- "additional_instructions": null,
75
- "data_format_id": null,
76
- "regex_validation": null,
77
- "is_removed": null
78
- }
79
- }
80
- ]
81
- }
82
- }
83
- },
84
- {
85
- "name": "Launched App",
86
- "description": "Description of event A.",
87
- "payload": {
88
- "primary_user": {
89
- "name": {
90
- "data_type": "String",
91
- "description": "user's name",
92
- "is_nullable": false,
93
- "additional_instructions": null,
94
- "data_format_id": null,
95
- "regex_validation": null,
96
- "is_removed": null
97
- }
98
- },
99
- "created_timestamp": {
100
- "data_type": "String",
101
- "description": "created_at timestamp",
102
- "is_nullable": false,
103
- "additional_instructions": null,
104
- "data_format_id": null,
105
- "regex_validation": null,
106
- "is_removed": null
107
- },
108
- "cart": {
109
- "products": [
110
- {
111
- "name": {
112
- "data_type": "String",
113
- "description": "user's name",
114
- "is_nullable": false,
115
- "additional_instructions": null,
116
- "data_format_id": null,
117
- "regex_validation": null,
118
- "is_removed": null
119
- }
120
- }
121
- ]
122
- }
123
- }
124
- }
125
- ]
@@ -1,58 +0,0 @@
1
- module Skee
2
- module Test
3
- module Fixtures
4
- class TrackableObjects
5
- def self.all
6
- [{
7
- 'id': '1',
8
- 'latest_snapshot_id': '1',
9
- 'snapshot_mapping': {
10
- '0' => '1'
11
- },
12
- 'is_removed': nil,
13
- }, {
14
- 'id': '2',
15
- 'latest_snapshot_id': '2',
16
- 'snapshot_mapping': {
17
- '0' => '2'
18
- },
19
- 'is_removed': nil,
20
- }, {
21
- 'id': '3',
22
- 'latest_snapshot_id': '3',
23
- 'snapshot_mapping': {
24
- '0' => '3'
25
- },
26
- 'is_removed': nil,
27
- }, {
28
- 'id': '4',
29
- 'latest_snapshot_id': '4',
30
- 'snapshot_mapping': {
31
- },
32
- 'is_removed': nil,
33
- }, {
34
- 'id': '5',
35
- 'latest_snapshot_id': '4',
36
- 'snapshot_mapping': {
37
- },
38
- 'is_removed': nil,
39
- }, {
40
- 'id': '6',
41
- 'latest_snapshot_id': '6',
42
- 'snapshot_mapping': {
43
- '0' => '6'
44
- },
45
- 'is_removed': nil,
46
- }, {
47
- 'id': '7',
48
- 'latest_snapshot_id': nil,
49
- 'snapshot_mapping': {
50
- },
51
- 'is_removed': nil,
52
- }
53
- ]
54
- end
55
- end
56
- end
57
- end
58
- end
@@ -1,61 +0,0 @@
1
- module Skee
2
- module Test
3
- module Fixtures
4
- class TrackableObjectSnapshots
5
- def self.all
6
- [{
7
- 'id': '1',
8
- 'name': 'User',
9
- 'change_request_id': '16',
10
- 'previous_snapshot_id': nil,
11
- 'property_ids': ['1'],
12
- 'is_removed': nil,
13
- }, {
14
- 'id': '2',
15
- 'name': 'Product',
16
- 'change_request_id': '12',
17
- 'previous_snapshot_id': nil,
18
- 'property_ids': ['4'],
19
- 'is_removed': nil,
20
- }, {
21
- 'id': '3',
22
- 'name': 'Cart',
23
- 'change_request_id': '16',
24
- 'previous_snapshot_id': '15',
25
- 'property_ids': ['3'],
26
- 'is_removed': nil,
27
- }, {
28
- 'id': '4',
29
- 'name': 'Shop',
30
- 'change_request_id': '14',
31
- 'previous_snapshot_id': '15',
32
- 'property_ids': [],
33
- 'is_removed': nil,
34
- }, {
35
- 'id': '5',
36
- 'name': 'Shops',
37
- 'change_request_id': '18',
38
- 'previous_snapshot_id': '4',
39
- 'property_ids': [],
40
- 'is_removed': nil,
41
- }, {
42
- 'id': '6',
43
- 'name': 'Store',
44
- 'change_request_id': '18',
45
- 'previous_snapshot_id': nil,
46
- 'property_ids': ['7', '8'],
47
- 'is_removed': nil,
48
- }, {
49
- 'id': '7',
50
- 'name': 'Signed-in User',
51
- 'change_request_id': '1',
52
- 'previous_snapshot_id': nil,
53
- 'property_ids': ['1'],
54
- 'is_removed': nil,
55
- }
56
- ]
57
- end
58
- end
59
- end
60
- end
61
- end
@@ -1,22 +0,0 @@
1
- module Skee
2
- module Test
3
- module Fixtures
4
- class TrackingSpecs
5
- def self.all
6
- [
7
- {
8
- 'id': '1',
9
- 'identifier': 'Solarbreeze',
10
- 'version': 'v1',
11
- 'project_id': '1',
12
- 'change_request_id': '1',
13
- 'prev_tracking_spec_id': nil,
14
- 'status': 'current',
15
- 'events': ['1', '3', '4'],
16
- }
17
- ]
18
- end
19
- end
20
- end
21
- end
22
- end
@@ -1,15 +0,0 @@
1
- require 'rack/test'
2
- require 'minitest/autorun'
3
- require 'flutter'
4
- require 'flutter/persistence'
5
-
6
- require_relative '../config/boot'
7
-
8
- Flutter.configure do |config|
9
- config.enabled = true
10
- end
11
-
12
-
13
- Dir.glob(File.join(__dir__, 'fixtures/*.rb')).each do |f|
14
- require_relative f unless File.absolute_path(f) == __FILE__
15
- end