flutter 0.1.0.pre.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -5
- data/Gemfile +1 -0
- data/README.md +62 -2
- data/Rakefile +35 -1
- data/codecov.yml +13 -0
- data/lib/flutter/minitest.rb +6 -8
- data/lib/flutter/parser.rb +18 -16
- data/lib/flutter/persistence.rb +51 -5
- data/lib/flutter/rspec.rb +7 -7
- data/lib/flutter/tracker.rb +48 -5
- data/lib/flutter/version.rb +1 -1
- metadata +21 -95
- data/integration_tests/minitest/grape_app/.gitignore +0 -67
- data/integration_tests/minitest/grape_app/.ruby-version +0 -1
- data/integration_tests/minitest/grape_app/Gemfile +0 -17
- data/integration_tests/minitest/grape_app/Gemfile.lock +0 -89
- data/integration_tests/minitest/grape_app/README.md +0 -2
- data/integration_tests/minitest/grape_app/Rakefile +0 -9
- data/integration_tests/minitest/grape_app/api/api.rb +0 -34
- data/integration_tests/minitest/grape_app/api/routes/api_helpers.rb +0 -12
- data/integration_tests/minitest/grape_app/api/routes/change_request/api.rb +0 -69
- data/integration_tests/minitest/grape_app/api/routes/change_request/response_entity.rb +0 -18
- data/integration_tests/minitest/grape_app/api/routes/event/api.rb +0 -121
- data/integration_tests/minitest/grape_app/api/routes/event/response_entity.rb +0 -41
- data/integration_tests/minitest/grape_app/api/routes/project/api.rb +0 -59
- data/integration_tests/minitest/grape_app/api/routes/project/response_entity.rb +0 -13
- data/integration_tests/minitest/grape_app/api/routes/property/api.rb +0 -78
- data/integration_tests/minitest/grape_app/api/routes/property/response_entity.rb +0 -31
- data/integration_tests/minitest/grape_app/api/routes/trackable_object/api.rb +0 -64
- data/integration_tests/minitest/grape_app/api/routes/trackable_object/response_entity.rb +0 -24
- data/integration_tests/minitest/grape_app/api/routes/tracking_spec/api.rb +0 -88
- data/integration_tests/minitest/grape_app/api/routes/tracking_spec/response_entity.rb +0 -17
- data/integration_tests/minitest/grape_app/api/routes/tracking_spec/spec_response.rb +0 -19
- data/integration_tests/minitest/grape_app/api/routes/user/api.rb +0 -22
- data/integration_tests/minitest/grape_app/api/routes/user/response_entity.rb +0 -12
- data/integration_tests/minitest/grape_app/app/app.rb +0 -30
- data/integration_tests/minitest/grape_app/app/change_request/endpoint.rb +0 -24
- data/integration_tests/minitest/grape_app/app/change_request/generate_system_changes.rb +0 -25
- data/integration_tests/minitest/grape_app/app/change_request/service.rb +0 -79
- data/integration_tests/minitest/grape_app/app/event/endpoint.rb +0 -78
- data/integration_tests/minitest/grape_app/app/event/service.rb +0 -68
- data/integration_tests/minitest/grape_app/app/event/validator.rb +0 -108
- data/integration_tests/minitest/grape_app/app/project/endpoint.rb +0 -24
- data/integration_tests/minitest/grape_app/app/project/service.rb +0 -42
- data/integration_tests/minitest/grape_app/app/property/endpoint.rb +0 -39
- data/integration_tests/minitest/grape_app/app/property/service.rb +0 -56
- data/integration_tests/minitest/grape_app/app/trackable_object/endpoint.rb +0 -38
- data/integration_tests/minitest/grape_app/app/trackable_object/service.rb +0 -49
- data/integration_tests/minitest/grape_app/app/trackable_object/validator.rb +0 -40
- data/integration_tests/minitest/grape_app/app/tracking_spec/endpoint.rb +0 -58
- data/integration_tests/minitest/grape_app/app/tracking_spec/expand_tracking_spec_events.rb +0 -91
- data/integration_tests/minitest/grape_app/app/tracking_spec/service.rb +0 -51
- data/integration_tests/minitest/grape_app/app/tracking_spec/validator.rb +0 -61
- data/integration_tests/minitest/grape_app/app/utils/errors/api_exceptions.rb +0 -10
- data/integration_tests/minitest/grape_app/app/utils/errors/service_exceptions.rb +0 -12
- data/integration_tests/minitest/grape_app/app/versioned_entity/entity.rb +0 -110
- data/integration_tests/minitest/grape_app/app/versioned_entity/service.rb +0 -47
- data/integration_tests/minitest/grape_app/app/versioned_entity/validator.rb +0 -61
- data/integration_tests/minitest/grape_app/app/versioned_entity_snapshot/entity.rb +0 -32
- data/integration_tests/minitest/grape_app/config/boot.rb +0 -9
- data/integration_tests/minitest/grape_app/config.ru +0 -3
- data/integration_tests/minitest/grape_app/db/proto/change_request.rb +0 -10
- data/integration_tests/minitest/grape_app/db/proto/common/doc.rb +0 -86
- data/integration_tests/minitest/grape_app/db/proto/event.rb +0 -10
- data/integration_tests/minitest/grape_app/db/proto/event_snapshot.rb +0 -10
- data/integration_tests/minitest/grape_app/db/proto/project.rb +0 -21
- data/integration_tests/minitest/grape_app/db/proto/property.rb +0 -10
- data/integration_tests/minitest/grape_app/db/proto/property_snapshot.rb +0 -10
- data/integration_tests/minitest/grape_app/db/proto/trackable_object.rb +0 -10
- data/integration_tests/minitest/grape_app/db/proto/trackable_object_snapshot.rb +0 -10
- data/integration_tests/minitest/grape_app/db/proto/tracking_spec.rb +0 -10
- data/integration_tests/minitest/grape_app/test/api/functional/event_test.rb +0 -186
- data/integration_tests/minitest/grape_app/test/api/functional/property_test.rb +0 -197
- data/integration_tests/minitest/grape_app/test/api/functional/trackable_object_test.rb +0 -134
- data/integration_tests/minitest/grape_app/test/api/functional/tracking_spec_test.rb +0 -56
- data/integration_tests/minitest/grape_app/test/api/functional/user_test.rb +0 -24
- data/integration_tests/minitest/grape_app/test/api/functional/versioned_entity_helper.rb +0 -157
- data/integration_tests/minitest/grape_app/test/fixtures/change_requests.rb +0 -83
- data/integration_tests/minitest/grape_app/test/fixtures/event_snapshots.rb +0 -105
- data/integration_tests/minitest/grape_app/test/fixtures/events.rb +0 -58
- data/integration_tests/minitest/grape_app/test/fixtures/properties.rb +0 -66
- data/integration_tests/minitest/grape_app/test/fixtures/property_snapshots.rb +0 -124
- data/integration_tests/minitest/grape_app/test/fixtures/sample_tracking_spec.json +0 -125
- data/integration_tests/minitest/grape_app/test/fixtures/trackable_objects.rb +0 -58
- data/integration_tests/minitest/grape_app/test/fixtures/trackable_objects_snapshots.rb +0 -61
- data/integration_tests/minitest/grape_app/test/fixtures/tracking_specs.rb +0 -22
- data/integration_tests/minitest/grape_app/test/test_helper.rb +0 -15
metadata
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flutter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ali-Akber Saifee
|
|
8
8
|
- Ankita Gupta
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2022-
|
|
12
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: deep_merge
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- - "
|
|
18
|
+
- - "~>"
|
|
19
19
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '
|
|
20
|
+
version: '1.2'
|
|
21
21
|
type: :runtime
|
|
22
22
|
prerelease: false
|
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
24
24
|
requirements:
|
|
25
|
-
- - "
|
|
25
|
+
- - "~>"
|
|
26
26
|
- !ruby/object:Gem::Version
|
|
27
|
-
version: '
|
|
27
|
+
version: '1.2'
|
|
28
28
|
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: dry-configurable
|
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
|
31
31
|
requirements:
|
|
32
|
-
- - "
|
|
32
|
+
- - "~>"
|
|
33
33
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: '0'
|
|
34
|
+
version: '0.15'
|
|
35
35
|
type: :runtime
|
|
36
36
|
prerelease: false
|
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
|
-
- - "
|
|
39
|
+
- - "~>"
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '0'
|
|
41
|
+
version: '0.15'
|
|
42
42
|
- !ruby/object:Gem::Dependency
|
|
43
43
|
name: parser
|
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
|
45
45
|
requirements:
|
|
46
|
-
- - "
|
|
46
|
+
- - "~>"
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
|
-
version: '
|
|
48
|
+
version: '3.1'
|
|
49
49
|
type: :runtime
|
|
50
50
|
prerelease: false
|
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
52
52
|
requirements:
|
|
53
|
-
- - "
|
|
53
|
+
- - "~>"
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: '
|
|
55
|
+
version: '3.1'
|
|
56
56
|
description: "Flutter plugs in to your RSpec or Minitest test suites\n and helps
|
|
57
57
|
you run only the tests that exercise the code you have changed since the last run\n
|
|
58
58
|
\ "
|
|
@@ -73,81 +73,7 @@ files:
|
|
|
73
73
|
- README.md
|
|
74
74
|
- Rakefile
|
|
75
75
|
- TODO.md
|
|
76
|
-
-
|
|
77
|
-
- integration_tests/minitest/grape_app/.ruby-version
|
|
78
|
-
- integration_tests/minitest/grape_app/Gemfile
|
|
79
|
-
- integration_tests/minitest/grape_app/Gemfile.lock
|
|
80
|
-
- integration_tests/minitest/grape_app/README.md
|
|
81
|
-
- integration_tests/minitest/grape_app/Rakefile
|
|
82
|
-
- integration_tests/minitest/grape_app/api/api.rb
|
|
83
|
-
- integration_tests/minitest/grape_app/api/routes/api_helpers.rb
|
|
84
|
-
- integration_tests/minitest/grape_app/api/routes/change_request/api.rb
|
|
85
|
-
- integration_tests/minitest/grape_app/api/routes/change_request/response_entity.rb
|
|
86
|
-
- integration_tests/minitest/grape_app/api/routes/event/api.rb
|
|
87
|
-
- integration_tests/minitest/grape_app/api/routes/event/response_entity.rb
|
|
88
|
-
- integration_tests/minitest/grape_app/api/routes/project/api.rb
|
|
89
|
-
- integration_tests/minitest/grape_app/api/routes/project/response_entity.rb
|
|
90
|
-
- integration_tests/minitest/grape_app/api/routes/property/api.rb
|
|
91
|
-
- integration_tests/minitest/grape_app/api/routes/property/response_entity.rb
|
|
92
|
-
- integration_tests/minitest/grape_app/api/routes/trackable_object/api.rb
|
|
93
|
-
- integration_tests/minitest/grape_app/api/routes/trackable_object/response_entity.rb
|
|
94
|
-
- integration_tests/minitest/grape_app/api/routes/tracking_spec/api.rb
|
|
95
|
-
- integration_tests/minitest/grape_app/api/routes/tracking_spec/response_entity.rb
|
|
96
|
-
- integration_tests/minitest/grape_app/api/routes/tracking_spec/spec_response.rb
|
|
97
|
-
- integration_tests/minitest/grape_app/api/routes/user/api.rb
|
|
98
|
-
- integration_tests/minitest/grape_app/api/routes/user/response_entity.rb
|
|
99
|
-
- integration_tests/minitest/grape_app/app/app.rb
|
|
100
|
-
- integration_tests/minitest/grape_app/app/change_request/endpoint.rb
|
|
101
|
-
- integration_tests/minitest/grape_app/app/change_request/generate_system_changes.rb
|
|
102
|
-
- integration_tests/minitest/grape_app/app/change_request/service.rb
|
|
103
|
-
- integration_tests/minitest/grape_app/app/event/endpoint.rb
|
|
104
|
-
- integration_tests/minitest/grape_app/app/event/service.rb
|
|
105
|
-
- integration_tests/minitest/grape_app/app/event/validator.rb
|
|
106
|
-
- integration_tests/minitest/grape_app/app/project/endpoint.rb
|
|
107
|
-
- integration_tests/minitest/grape_app/app/project/service.rb
|
|
108
|
-
- integration_tests/minitest/grape_app/app/property/endpoint.rb
|
|
109
|
-
- integration_tests/minitest/grape_app/app/property/service.rb
|
|
110
|
-
- integration_tests/minitest/grape_app/app/trackable_object/endpoint.rb
|
|
111
|
-
- integration_tests/minitest/grape_app/app/trackable_object/service.rb
|
|
112
|
-
- integration_tests/minitest/grape_app/app/trackable_object/validator.rb
|
|
113
|
-
- integration_tests/minitest/grape_app/app/tracking_spec/endpoint.rb
|
|
114
|
-
- integration_tests/minitest/grape_app/app/tracking_spec/expand_tracking_spec_events.rb
|
|
115
|
-
- integration_tests/minitest/grape_app/app/tracking_spec/service.rb
|
|
116
|
-
- integration_tests/minitest/grape_app/app/tracking_spec/validator.rb
|
|
117
|
-
- integration_tests/minitest/grape_app/app/utils/errors/api_exceptions.rb
|
|
118
|
-
- integration_tests/minitest/grape_app/app/utils/errors/service_exceptions.rb
|
|
119
|
-
- integration_tests/minitest/grape_app/app/versioned_entity/entity.rb
|
|
120
|
-
- integration_tests/minitest/grape_app/app/versioned_entity/service.rb
|
|
121
|
-
- integration_tests/minitest/grape_app/app/versioned_entity/validator.rb
|
|
122
|
-
- integration_tests/minitest/grape_app/app/versioned_entity_snapshot/entity.rb
|
|
123
|
-
- integration_tests/minitest/grape_app/config.ru
|
|
124
|
-
- integration_tests/minitest/grape_app/config/boot.rb
|
|
125
|
-
- integration_tests/minitest/grape_app/db/proto/change_request.rb
|
|
126
|
-
- integration_tests/minitest/grape_app/db/proto/common/doc.rb
|
|
127
|
-
- integration_tests/minitest/grape_app/db/proto/event.rb
|
|
128
|
-
- integration_tests/minitest/grape_app/db/proto/event_snapshot.rb
|
|
129
|
-
- integration_tests/minitest/grape_app/db/proto/project.rb
|
|
130
|
-
- integration_tests/minitest/grape_app/db/proto/property.rb
|
|
131
|
-
- integration_tests/minitest/grape_app/db/proto/property_snapshot.rb
|
|
132
|
-
- integration_tests/minitest/grape_app/db/proto/trackable_object.rb
|
|
133
|
-
- integration_tests/minitest/grape_app/db/proto/trackable_object_snapshot.rb
|
|
134
|
-
- integration_tests/minitest/grape_app/db/proto/tracking_spec.rb
|
|
135
|
-
- integration_tests/minitest/grape_app/test/api/functional/event_test.rb
|
|
136
|
-
- integration_tests/minitest/grape_app/test/api/functional/property_test.rb
|
|
137
|
-
- integration_tests/minitest/grape_app/test/api/functional/trackable_object_test.rb
|
|
138
|
-
- integration_tests/minitest/grape_app/test/api/functional/tracking_spec_test.rb
|
|
139
|
-
- integration_tests/minitest/grape_app/test/api/functional/user_test.rb
|
|
140
|
-
- integration_tests/minitest/grape_app/test/api/functional/versioned_entity_helper.rb
|
|
141
|
-
- integration_tests/minitest/grape_app/test/fixtures/change_requests.rb
|
|
142
|
-
- integration_tests/minitest/grape_app/test/fixtures/event_snapshots.rb
|
|
143
|
-
- integration_tests/minitest/grape_app/test/fixtures/events.rb
|
|
144
|
-
- integration_tests/minitest/grape_app/test/fixtures/properties.rb
|
|
145
|
-
- integration_tests/minitest/grape_app/test/fixtures/property_snapshots.rb
|
|
146
|
-
- integration_tests/minitest/grape_app/test/fixtures/sample_tracking_spec.json
|
|
147
|
-
- integration_tests/minitest/grape_app/test/fixtures/trackable_objects.rb
|
|
148
|
-
- integration_tests/minitest/grape_app/test/fixtures/trackable_objects_snapshots.rb
|
|
149
|
-
- integration_tests/minitest/grape_app/test/fixtures/tracking_specs.rb
|
|
150
|
-
- integration_tests/minitest/grape_app/test/test_helper.rb
|
|
76
|
+
- codecov.yml
|
|
151
77
|
- lib/flutter.rb
|
|
152
78
|
- lib/flutter/config.rb
|
|
153
79
|
- lib/flutter/minitest.rb
|
|
@@ -165,7 +91,7 @@ metadata:
|
|
|
165
91
|
homepage_uri: https://github.com/indydevs/flutter
|
|
166
92
|
source_code_uri: https://github.com/indydevs/flutter
|
|
167
93
|
changelog_uri: https://github.com/indydevs/flutter/blob/master/CHANGELOG.md
|
|
168
|
-
post_install_message:
|
|
94
|
+
post_install_message:
|
|
169
95
|
rdoc_options: []
|
|
170
96
|
require_paths:
|
|
171
97
|
- lib
|
|
@@ -173,15 +99,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
173
99
|
requirements:
|
|
174
100
|
- - ">="
|
|
175
101
|
- !ruby/object:Gem::Version
|
|
176
|
-
version: 2.
|
|
102
|
+
version: 2.7.0
|
|
177
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
104
|
requirements:
|
|
179
|
-
- - "
|
|
105
|
+
- - ">="
|
|
180
106
|
- !ruby/object:Gem::Version
|
|
181
|
-
version:
|
|
107
|
+
version: '0'
|
|
182
108
|
requirements: []
|
|
183
109
|
rubygems_version: 3.3.7
|
|
184
|
-
signing_key:
|
|
110
|
+
signing_key:
|
|
185
111
|
specification_version: 4
|
|
186
112
|
summary: Intelligent test selection based on incremental code changes
|
|
187
113
|
test_files: []
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
*.gem
|
|
2
|
-
*.rbc
|
|
3
|
-
/.config
|
|
4
|
-
/coverage/
|
|
5
|
-
/InstalledFiles
|
|
6
|
-
/pkg/
|
|
7
|
-
/spec/reports/
|
|
8
|
-
/spec/examples.txt
|
|
9
|
-
/test/tmp/
|
|
10
|
-
/test/version_tmp/
|
|
11
|
-
/tmp/
|
|
12
|
-
|
|
13
|
-
# Used by dotenv library to load environment variables.
|
|
14
|
-
# .env
|
|
15
|
-
|
|
16
|
-
# Ignore Byebug command history file.
|
|
17
|
-
.byebug_history
|
|
18
|
-
|
|
19
|
-
## Specific to RubyMotion:
|
|
20
|
-
.dat*
|
|
21
|
-
.repl_history
|
|
22
|
-
build/
|
|
23
|
-
*.bridgesupport
|
|
24
|
-
build-iPhoneOS/
|
|
25
|
-
build-iPhoneSimulator/
|
|
26
|
-
|
|
27
|
-
## Specific to RubyMotion (use of CocoaPods):
|
|
28
|
-
#
|
|
29
|
-
# We recommend against adding the Pods directory to your .gitignore. However
|
|
30
|
-
# you should judge for yourself, the pros and cons are mentioned at:
|
|
31
|
-
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
|
|
32
|
-
#
|
|
33
|
-
# vendor/Pods/
|
|
34
|
-
|
|
35
|
-
## Documentation cache and generated files:
|
|
36
|
-
/.yardoc/
|
|
37
|
-
/_yardoc/
|
|
38
|
-
/doc/
|
|
39
|
-
/rdoc/
|
|
40
|
-
|
|
41
|
-
## Environment normalization:
|
|
42
|
-
/.bundle/
|
|
43
|
-
/vendor/bundle
|
|
44
|
-
/lib/bundler/man/
|
|
45
|
-
|
|
46
|
-
# for a library or gem, you might want to ignore these files since the code is
|
|
47
|
-
# intended to run in multiple environments; otherwise, check them in:
|
|
48
|
-
# Gemfile.lock
|
|
49
|
-
# .ruby-version
|
|
50
|
-
# .ruby-gemset
|
|
51
|
-
|
|
52
|
-
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
|
53
|
-
.rvmrc
|
|
54
|
-
|
|
55
|
-
# Used by RuboCop. Remote config files pulled in from inherit_from directive.
|
|
56
|
-
# .rubocop-https?--*
|
|
57
|
-
|
|
58
|
-
### VisualStudioCode ###
|
|
59
|
-
.vscode/
|
|
60
|
-
|
|
61
|
-
### VisualStudioCode Patch ###
|
|
62
|
-
# Ignore all local history of files
|
|
63
|
-
.history
|
|
64
|
-
|
|
65
|
-
.idea/
|
|
66
|
-
|
|
67
|
-
# End of https://www.gitignore.io/api/visualstudiocode
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.7.1
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
source 'https://rubygems.org'
|
|
3
|
-
gem 'dotenv'
|
|
4
|
-
# api definitions
|
|
5
|
-
gem 'grape'
|
|
6
|
-
gem 'grape-entity'
|
|
7
|
-
gem 'grape-swagger'
|
|
8
|
-
# web server
|
|
9
|
-
gem 'puma'
|
|
10
|
-
# task runner for ruby
|
|
11
|
-
gem 'rake'
|
|
12
|
-
gem 'flutter', path: '../../../'
|
|
13
|
-
|
|
14
|
-
group :development, :test do
|
|
15
|
-
gem 'minitest' #, require: false
|
|
16
|
-
gem 'rack-test', require: 'rack/test'
|
|
17
|
-
end
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: ../../..
|
|
3
|
-
specs:
|
|
4
|
-
flutter (0.1.0)
|
|
5
|
-
deep_merge
|
|
6
|
-
dry-configurable
|
|
7
|
-
parser
|
|
8
|
-
|
|
9
|
-
GEM
|
|
10
|
-
remote: https://rubygems.org/
|
|
11
|
-
specs:
|
|
12
|
-
activesupport (7.0.4)
|
|
13
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
|
-
i18n (>= 1.6, < 2)
|
|
15
|
-
minitest (>= 5.1)
|
|
16
|
-
tzinfo (~> 2.0)
|
|
17
|
-
ast (2.4.2)
|
|
18
|
-
builder (3.2.4)
|
|
19
|
-
concurrent-ruby (1.1.10)
|
|
20
|
-
deep_merge (1.2.2)
|
|
21
|
-
dotenv (2.8.1)
|
|
22
|
-
dry-configurable (0.15.0)
|
|
23
|
-
concurrent-ruby (~> 1.0)
|
|
24
|
-
dry-core (~> 0.6)
|
|
25
|
-
dry-container (0.11.0)
|
|
26
|
-
concurrent-ruby (~> 1.0)
|
|
27
|
-
dry-core (0.8.1)
|
|
28
|
-
concurrent-ruby (~> 1.0)
|
|
29
|
-
dry-inflector (0.3.0)
|
|
30
|
-
dry-logic (1.2.0)
|
|
31
|
-
concurrent-ruby (~> 1.0)
|
|
32
|
-
dry-core (~> 0.5, >= 0.5)
|
|
33
|
-
dry-types (1.5.1)
|
|
34
|
-
concurrent-ruby (~> 1.0)
|
|
35
|
-
dry-container (~> 0.3)
|
|
36
|
-
dry-core (~> 0.5, >= 0.5)
|
|
37
|
-
dry-inflector (~> 0.1, >= 0.1.2)
|
|
38
|
-
dry-logic (~> 1.0, >= 1.0.2)
|
|
39
|
-
grape (1.6.2)
|
|
40
|
-
activesupport
|
|
41
|
-
builder
|
|
42
|
-
dry-types (>= 1.1)
|
|
43
|
-
mustermann-grape (~> 1.0.0)
|
|
44
|
-
rack (>= 1.3.0)
|
|
45
|
-
rack-accept
|
|
46
|
-
grape-entity (0.10.2)
|
|
47
|
-
activesupport (>= 3.0.0)
|
|
48
|
-
multi_json (>= 1.3.2)
|
|
49
|
-
grape-swagger (1.5.0)
|
|
50
|
-
grape (~> 1.3)
|
|
51
|
-
i18n (1.12.0)
|
|
52
|
-
concurrent-ruby (~> 1.0)
|
|
53
|
-
minitest (5.16.3)
|
|
54
|
-
multi_json (1.15.0)
|
|
55
|
-
mustermann (3.0.0)
|
|
56
|
-
ruby2_keywords (~> 0.0.1)
|
|
57
|
-
mustermann-grape (1.0.2)
|
|
58
|
-
mustermann (>= 1.0.0)
|
|
59
|
-
nio4r (2.5.8)
|
|
60
|
-
parser (3.1.2.1)
|
|
61
|
-
ast (~> 2.4.1)
|
|
62
|
-
puma (5.6.5)
|
|
63
|
-
nio4r (~> 2.0)
|
|
64
|
-
rack (3.0.0)
|
|
65
|
-
rack-accept (0.4.5)
|
|
66
|
-
rack (>= 0.4)
|
|
67
|
-
rack-test (2.0.2)
|
|
68
|
-
rack (>= 1.3)
|
|
69
|
-
rake (13.0.6)
|
|
70
|
-
ruby2_keywords (0.0.5)
|
|
71
|
-
tzinfo (2.0.5)
|
|
72
|
-
concurrent-ruby (~> 1.0)
|
|
73
|
-
|
|
74
|
-
PLATFORMS
|
|
75
|
-
ruby
|
|
76
|
-
|
|
77
|
-
DEPENDENCIES
|
|
78
|
-
dotenv
|
|
79
|
-
flutter!
|
|
80
|
-
grape
|
|
81
|
-
grape-entity
|
|
82
|
-
grape-swagger
|
|
83
|
-
minitest
|
|
84
|
-
puma
|
|
85
|
-
rack-test
|
|
86
|
-
rake
|
|
87
|
-
|
|
88
|
-
BUNDLED WITH
|
|
89
|
-
2.1.4
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
task default: %w[test]
|
|
2
|
-
|
|
3
|
-
task :test do
|
|
4
|
-
ruby 'api/test/functional/user_test.rb'
|
|
5
|
-
ruby 'api/test/functional/event_test.rb'
|
|
6
|
-
ruby 'api/test/functional/trackable_object_test.rb'
|
|
7
|
-
ruby 'api/test/functional/property_test.rb'
|
|
8
|
-
ruby 'api/test/functional/tracking_spec_test.rb'
|
|
9
|
-
end
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
require_relative './routes/trackable_object/api'
|
|
2
|
-
require_relative './routes/property/api'
|
|
3
|
-
require_relative './routes/event/api'
|
|
4
|
-
require_relative './routes/project/api'
|
|
5
|
-
require_relative './routes/change_request/api'
|
|
6
|
-
require_relative './routes/tracking_spec/api'
|
|
7
|
-
require_relative './routes/user/api'
|
|
8
|
-
|
|
9
|
-
module Skee
|
|
10
|
-
module API
|
|
11
|
-
class API < Grape::API
|
|
12
|
-
version 'v1', using: :header, vendor: 'skee'
|
|
13
|
-
format :json
|
|
14
|
-
prefix :api
|
|
15
|
-
|
|
16
|
-
rescue_from Skee::App::Utils::Errors::ValidationError do |e|
|
|
17
|
-
error!(e, 400)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
before do
|
|
21
|
-
header 'Access-Control-Allow-Origin', '*'
|
|
22
|
-
header 'Access-Control-Allow-Headers', 'content-type'
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
mount Skee::API::Routes::TrackableObject::API
|
|
26
|
-
mount Skee::API::Routes::Property::API
|
|
27
|
-
mount Skee::API::Routes::Event::API
|
|
28
|
-
mount Skee::API::Routes::Project::API
|
|
29
|
-
mount Skee::API::Routes::ChangeRequest::API
|
|
30
|
-
mount Skee::API::Routes::TrackingSpec::API
|
|
31
|
-
mount Skee::API::Routes::User::API
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
end
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
require_relative '../api_helpers'
|
|
2
|
-
require_relative './response_entity'
|
|
3
|
-
require_relative '../tracking_spec/spec_response'
|
|
4
|
-
require_relative '../../../app/change_request/endpoint'
|
|
5
|
-
|
|
6
|
-
module Skee::API::Routes::ChangeRequest
|
|
7
|
-
class API < Grape::API
|
|
8
|
-
helpers Skee::API::Routes::APIHelpers
|
|
9
|
-
|
|
10
|
-
resource :change_requests do
|
|
11
|
-
desc 'List all Change Requests.'
|
|
12
|
-
get do
|
|
13
|
-
change_requests = Skee::App::ChangeRequest::Endpoint.list
|
|
14
|
-
present change_requests,
|
|
15
|
-
with: Skee::API::Routes::ChangeRequest::ResponseEntity
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
desc 'Retrieve a Change Request.'
|
|
19
|
-
params do
|
|
20
|
-
requires :id, type: String, desc: 'Change Request ID.'
|
|
21
|
-
end
|
|
22
|
-
get ':id' do
|
|
23
|
-
change_request = Skee::App::ChangeRequest::Endpoint.get(whitelisted_params)
|
|
24
|
-
present change_request,
|
|
25
|
-
with: Skee::API::Routes::ChangeRequest::ResponseEntity
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
desc 'Generate a full Tracking Spec with the changes in the Change Request.'
|
|
29
|
-
params do
|
|
30
|
-
requires :id, type: String, desc: 'Change Request ID.'
|
|
31
|
-
end
|
|
32
|
-
get ':id/full_spec' do
|
|
33
|
-
full_spec = Skee::App::ChangeRequest::Endpoint.full_spec(whitelisted_params)
|
|
34
|
-
present full_spec,
|
|
35
|
-
with: Skee::API::Routes::TrackingSpec::SpecResponse
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
desc 'Create a Change Request.'
|
|
39
|
-
params do
|
|
40
|
-
requires :name, type: String, desc: 'Change Request name.'
|
|
41
|
-
end
|
|
42
|
-
post do
|
|
43
|
-
new_change_request = Skee::App::ChangeRequest::Endpoint.create(whitelisted_params)
|
|
44
|
-
present new_change_request,
|
|
45
|
-
with: Skee::API::Routes::ChangeRequest::ResponseEntity
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
desc 'Update a Change Request.'
|
|
49
|
-
params do
|
|
50
|
-
requires :id, type: String, desc: 'Change Request ID.'
|
|
51
|
-
optional :name, type: String, desc: 'Change Request name.'
|
|
52
|
-
end
|
|
53
|
-
post ':id' do
|
|
54
|
-
updated_change_request = Skee::App::ChangeRequest::Endpoint.update(whitelisted_params)
|
|
55
|
-
present updated_change_request,
|
|
56
|
-
with: Skee::API::Routes::ChangeRequest::ResponseEntity
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
desc 'Delete a Change Request.'
|
|
60
|
-
params do
|
|
61
|
-
requires :id, type: String, desc: 'Change Request ID.'
|
|
62
|
-
end
|
|
63
|
-
delete ':id' do
|
|
64
|
-
Skee::App::ChangeRequest::Endpoint.delete(whitelisted_params)
|
|
65
|
-
status 200
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
69
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
module Skee
|
|
2
|
-
module API
|
|
3
|
-
module Routes
|
|
4
|
-
module ChangeRequest
|
|
5
|
-
class ResponseEntity < Grape::Entity
|
|
6
|
-
expose :id, documentation: { type: 'String', desc: 'Unique ID of a ChangeRequest.' }
|
|
7
|
-
expose :identifier, documentation: { type: 'String', desc: 'Identifier of a ChangeRequest.' }
|
|
8
|
-
expose :project_id, documentation: { type: 'String', desc: 'Project in which ChangeRequest created.' }
|
|
9
|
-
expose :base_tracking_spec_id, documentation: { type: 'String', desc: 'ID of the Tracking Spec on which changes are requested.' }
|
|
10
|
-
expose :status, documentation: { type: 'String', desc: 'Status of a ChangeRequest.' }
|
|
11
|
-
expose :name, documentation: { type: 'String', desc: 'Name of the ChangeRequest.' }
|
|
12
|
-
expose :description, documentation: { type: 'String', desc: 'Description of the ChangeRequest.' }
|
|
13
|
-
expose :change_set, documentation: { type: 'String', desc: 'Dictionary with list of IDs of updated and new entities.' }
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
require_relative '../api_helpers'
|
|
2
|
-
require_relative './response_entity'
|
|
3
|
-
require_relative '../../../app/event/endpoint'
|
|
4
|
-
module Skee::API::Routes::Event
|
|
5
|
-
class API < Grape::API
|
|
6
|
-
helpers Skee::API::Routes::APIHelpers
|
|
7
|
-
|
|
8
|
-
resource :events do
|
|
9
|
-
desc 'List all events.'
|
|
10
|
-
get do
|
|
11
|
-
events = Skee::App::Event::Endpoint.list
|
|
12
|
-
present events,
|
|
13
|
-
with: Skee::API::Routes::Event::ResponseEntity
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
desc 'Retrieve an event.'
|
|
17
|
-
params do
|
|
18
|
-
requires :id, type: String, desc: 'Event ID.'
|
|
19
|
-
optional :change_request_id, type: String, desc: 'Change request ID for the request.'
|
|
20
|
-
end
|
|
21
|
-
get ':id' do
|
|
22
|
-
event = Skee::App::Event::Endpoint.get(whitelisted_params)
|
|
23
|
-
present event,
|
|
24
|
-
with: Skee::API::Routes::Event::ResponseEntity
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
desc 'Create an event.'
|
|
28
|
-
params do
|
|
29
|
-
requires :change_request_id, type: String, desc: 'Change request ID for the request.'
|
|
30
|
-
requires :name, type: String, desc: 'Event name.'
|
|
31
|
-
optional :description, type: String, desc: 'Description of the event.'
|
|
32
|
-
requires :payload, type: Array do
|
|
33
|
-
requires :key, type: String, desc: 'Key of the event.'
|
|
34
|
-
requires :reference_entity_type, type: String, desc: 'Type of reference entity: trackable object or property'
|
|
35
|
-
requires :reference_entity_id, type: String, desc: 'ID of the reference entity.'
|
|
36
|
-
requires :is_array, type: Boolean, desc: 'Defines if the reference entity is an array or singular object'
|
|
37
|
-
requires :is_primary, type: Boolean, desc: 'Defines if the payload key is primary'
|
|
38
|
-
requires :selected_property_ids, type: Array[String], desc: 'Defines the array of property IDs that the key contains'
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
post do
|
|
42
|
-
new_event = Skee::App::Event::Endpoint.create(whitelisted_params)
|
|
43
|
-
present new_event,
|
|
44
|
-
with: Skee::API::Routes::Event::ResponseEntity
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
desc 'Update an event.'
|
|
48
|
-
params do
|
|
49
|
-
requires :id, type: String, desc: 'Event ID.'
|
|
50
|
-
requires :change_request_id, type: String, desc: 'Change request ID for the request.'
|
|
51
|
-
optional :name, type: String, desc: 'Event name.'
|
|
52
|
-
optional :description, type: String, desc: 'Description of the event.'
|
|
53
|
-
end
|
|
54
|
-
post ':id' do
|
|
55
|
-
updated_event = Skee::App::Event::Endpoint.update(whitelisted_params)
|
|
56
|
-
present updated_event,
|
|
57
|
-
with: Skee::API::Routes::Event::ResponseEntity
|
|
58
|
-
end
|
|
59
|
-
|
|
60
|
-
desc 'Add payload keys to an event.'
|
|
61
|
-
params do
|
|
62
|
-
requires :id, type: String, desc: 'Event ID.'
|
|
63
|
-
requires :change_request_id, type: String, desc: 'Change request ID for the request.'
|
|
64
|
-
requires :payload, type: Array do
|
|
65
|
-
requires :key, type: String, desc: 'Key of the event.'
|
|
66
|
-
requires :reference_entity_type, type: String, desc: 'Type of reference entity: trackable object or property'
|
|
67
|
-
requires :reference_entity_id, type: String, desc: 'ID of the reference entity.'
|
|
68
|
-
requires :is_array, type: Boolean, desc: 'Defines if the reference entity is an array or singular object'
|
|
69
|
-
requires :is_primary, type: Boolean, desc: 'Defines if the payload key is primary'
|
|
70
|
-
requires :selected_property_ids, type: Array[String], desc: 'Defines the array of property IDs that the key contains'
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
post ':id/add_payload' do
|
|
74
|
-
updated_event = Skee::App::Event::Endpoint.add_payload_keys(whitelisted_params)
|
|
75
|
-
present updated_event,
|
|
76
|
-
with: Skee::API::Routes::Event::ResponseEntity
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
desc 'Update payload for the given keys.'
|
|
80
|
-
params do
|
|
81
|
-
requires :id, type: String, desc: 'Event ID.'
|
|
82
|
-
requires :change_request_id, type: String, desc: 'Change request ID for the request.'
|
|
83
|
-
requires :payload, type: Array do
|
|
84
|
-
requires :key, type: String, desc: 'Key of the event.'
|
|
85
|
-
requires :reference_entity_type, type: String, desc: 'Type of reference entity: trackable object or property'
|
|
86
|
-
requires :reference_entity_id, type: String, desc: 'ID of the reference entity.'
|
|
87
|
-
requires :is_array, type: Boolean, desc: 'Defines if the reference entity is an array or singular object'
|
|
88
|
-
requires :is_primary, type: Boolean, desc: 'Defines if the payload key is primary'
|
|
89
|
-
requires :selected_property_ids, type: Array[String], desc: 'Defines the array of property IDs that the key contains'
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
|
-
post ':id/update_payload' do
|
|
93
|
-
updated_event = Skee::App::Event::Endpoint.update_payload_keys(whitelisted_params)
|
|
94
|
-
present updated_event,
|
|
95
|
-
with: Skee::API::Routes::Event::ResponseEntity
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
desc 'Remove keys from the payload.'
|
|
99
|
-
params do
|
|
100
|
-
requires :id, type: String, desc: 'Event ID.'
|
|
101
|
-
requires :payload_keys, type: Array, desc: 'List of keys to be removed'
|
|
102
|
-
requires :change_request_id, type: String, desc: 'Change request ID for the request.'
|
|
103
|
-
end
|
|
104
|
-
post ':id/remove_payload' do
|
|
105
|
-
updated_event = Skee::App::Event::Endpoint.remove_payload_keys(whitelisted_params)
|
|
106
|
-
present updated_event,
|
|
107
|
-
with: Skee::API::Routes::Event::ResponseEntity
|
|
108
|
-
end
|
|
109
|
-
|
|
110
|
-
desc 'Remove an event from the tracking spec.'
|
|
111
|
-
params do
|
|
112
|
-
requires :change_request_id, type: String, desc: 'Change request ID for the request.'
|
|
113
|
-
requires :id, type: String, desc: 'Event ID.'
|
|
114
|
-
end
|
|
115
|
-
post ':id/remove' do
|
|
116
|
-
Skee::App::Event::Endpoint.remove(whitelisted_params)
|
|
117
|
-
status 200
|
|
118
|
-
end
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
end
|