dry-system 0.7.3 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/lib/dry/system.rb +24 -0
  4. data/lib/dry/system/booter.rb +75 -43
  5. data/lib/dry/system/booter/component_registry.rb +37 -0
  6. data/lib/dry/system/component.rb +9 -4
  7. data/lib/dry/system/components.rb +6 -0
  8. data/lib/dry/system/components/bootable.rb +307 -0
  9. data/lib/dry/system/components/config.rb +33 -0
  10. data/lib/dry/system/constants.rb +2 -0
  11. data/lib/dry/system/container.rb +69 -22
  12. data/lib/dry/system/errors.rb +2 -2
  13. data/lib/dry/system/lifecycle.rb +40 -7
  14. data/lib/dry/system/provider.rb +46 -0
  15. data/lib/dry/system/provider_registry.rb +25 -0
  16. data/lib/dry/system/settings.rb +59 -0
  17. data/lib/dry/system/settings/file_loader.rb +28 -0
  18. data/lib/dry/system/settings/file_parser.rb +49 -0
  19. data/lib/dry/system/system_components/settings.rb +9 -0
  20. data/lib/dry/system/version.rb +1 -1
  21. metadata +27 -144
  22. data/.gitignore +0 -39
  23. data/.rspec +0 -3
  24. data/.travis.yml +0 -22
  25. data/.yardopts +0 -5
  26. data/CONTRIBUTING.md +0 -29
  27. data/Gemfile +0 -9
  28. data/Rakefile +0 -12
  29. data/dry-system.gemspec +0 -31
  30. data/examples/custom_configuration_auto_register/Gemfile +0 -5
  31. data/examples/custom_configuration_auto_register/lib/entities/user.rb +0 -7
  32. data/examples/custom_configuration_auto_register/lib/user_repo.rb +0 -5
  33. data/examples/custom_configuration_auto_register/run.rb +0 -8
  34. data/examples/custom_configuration_auto_register/system/boot/persistence.rb +0 -13
  35. data/examples/custom_configuration_auto_register/system/container.rb +0 -16
  36. data/examples/custom_configuration_auto_register/system/import.rb +0 -3
  37. data/examples/standalone/Gemfile +0 -5
  38. data/examples/standalone/lib/user_repo.rb +0 -5
  39. data/examples/standalone/run.rb +0 -8
  40. data/examples/standalone/system/boot/persistence.rb +0 -13
  41. data/examples/standalone/system/container.rb +0 -9
  42. data/examples/standalone/system/import.rb +0 -3
  43. data/spec/fixtures/components/bar.rb +0 -5
  44. data/spec/fixtures/components/bar/baz.rb +0 -4
  45. data/spec/fixtures/components/foo.rb +0 -2
  46. data/spec/fixtures/components/no_register.rb +0 -4
  47. data/spec/fixtures/import_test/config/application.yml +0 -2
  48. data/spec/fixtures/import_test/lib/test/bar.rb +0 -4
  49. data/spec/fixtures/import_test/lib/test/foo.rb +0 -5
  50. data/spec/fixtures/import_test/system/boot/bar.rb +0 -11
  51. data/spec/fixtures/lazytest/config/application.yml +0 -2
  52. data/spec/fixtures/lazytest/lib/test/dep.rb +0 -4
  53. data/spec/fixtures/lazytest/lib/test/foo.rb +0 -5
  54. data/spec/fixtures/lazytest/lib/test/models.rb +0 -4
  55. data/spec/fixtures/lazytest/lib/test/models/book.rb +0 -6
  56. data/spec/fixtures/lazytest/lib/test/models/user.rb +0 -6
  57. data/spec/fixtures/lazytest/system/boot/bar.rb +0 -15
  58. data/spec/fixtures/magic_comments/comments.rb +0 -17
  59. data/spec/fixtures/manual_registration/container/foo.rb +0 -6
  60. data/spec/fixtures/manual_registration/lib/test/foo.rb +0 -9
  61. data/spec/fixtures/multiple_namespaced_components/multiple/level/baz.rb +0 -7
  62. data/spec/fixtures/multiple_namespaced_components/multiple/level/foz.rb +0 -6
  63. data/spec/fixtures/namespaced_components/namespaced/bar.rb +0 -5
  64. data/spec/fixtures/namespaced_components/namespaced/foo.rb +0 -4
  65. data/spec/fixtures/other/config/boot/bar.rb +0 -11
  66. data/spec/fixtures/other/config/boot/hell.rb +0 -3
  67. data/spec/fixtures/other/lib/test/dep.rb +0 -4
  68. data/spec/fixtures/other/lib/test/foo.rb +0 -5
  69. data/spec/fixtures/other/lib/test/models.rb +0 -4
  70. data/spec/fixtures/other/lib/test/models/book.rb +0 -6
  71. data/spec/fixtures/other/lib/test/models/user.rb +0 -6
  72. data/spec/fixtures/stubbing/lib/test/car.rb +0 -7
  73. data/spec/fixtures/stubbing/system/boot/db.rb +0 -8
  74. data/spec/fixtures/test/config/application.yml +0 -2
  75. data/spec/fixtures/test/config/subapp.yml +0 -2
  76. data/spec/fixtures/test/lib/test/dep.rb +0 -4
  77. data/spec/fixtures/test/lib/test/foo.rb +0 -5
  78. data/spec/fixtures/test/lib/test/models.rb +0 -4
  79. data/spec/fixtures/test/lib/test/models/book.rb +0 -6
  80. data/spec/fixtures/test/lib/test/models/user.rb +0 -6
  81. data/spec/fixtures/test/lib/test/singleton_dep.rb +0 -7
  82. data/spec/fixtures/test/log/.gitkeep +0 -0
  83. data/spec/fixtures/test/system/boot/bar.rb +0 -11
  84. data/spec/fixtures/test/system/boot/client.rb +0 -7
  85. data/spec/fixtures/test/system/boot/db.rb +0 -1
  86. data/spec/fixtures/test/system/boot/hell.rb +0 -3
  87. data/spec/fixtures/test/system/boot/logger.rb +0 -5
  88. data/spec/fixtures/umbrella/system/boot/db.rb +0 -10
  89. data/spec/integration/boot_spec.rb +0 -18
  90. data/spec/integration/container/lazy_loading/manual_registration_spec.rb +0 -18
  91. data/spec/integration/import_spec.rb +0 -81
  92. data/spec/spec_helper.rb +0 -48
  93. data/spec/unit/auto_registrar/configuration_spec.rb +0 -26
  94. data/spec/unit/component_spec.rb +0 -121
  95. data/spec/unit/container/auto_register_spec.rb +0 -113
  96. data/spec/unit/container/config_spec.rb +0 -38
  97. data/spec/unit/container/finalize_spec.rb +0 -97
  98. data/spec/unit/container/import_spec.rb +0 -53
  99. data/spec/unit/container/injector_spec.rb +0 -29
  100. data/spec/unit/container_spec.rb +0 -244
  101. data/spec/unit/loader_spec.rb +0 -64
  102. data/spec/unit/magic_comments_parser_spec.rb +0 -41
@@ -0,0 +1,28 @@
1
+ require "dry/system/settings/file_parser"
2
+
3
+ module Dry
4
+ module System
5
+ module Settings
6
+ class FileLoader
7
+ def call(root, env)
8
+ files(root, env).reduce({}) do |hash, file|
9
+ hash.merge(parser.(file))
10
+ end
11
+ end
12
+
13
+ private
14
+
15
+ def parser
16
+ @parser ||= FileParser.new
17
+ end
18
+
19
+ def files(root, env)
20
+ [
21
+ root.join(".env"),
22
+ root.join(".env.#{env}")
23
+ ].compact
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,49 @@
1
+ module Dry
2
+ module System
3
+ module Settings
4
+ class FileParser
5
+ # Regex extracted from dotenv gem
6
+ # https://github.com/bkeepers/dotenv/blob/master/lib/dotenv/parser.rb#L14
7
+ LINE = %r(
8
+ \A
9
+ \s*
10
+ (?:export\s+)? # optional export
11
+ ([\w\.]+) # key
12
+ (?:\s*=\s*|:\s+?) # separator
13
+ ( # optional value begin
14
+ '(?:\'|[^'])*' # single quoted value
15
+ | # or
16
+ "(?:\"|[^"])*" # double quoted value
17
+ | # or
18
+ [^#\n]+ # unquoted value
19
+ )? # value end
20
+ \s*
21
+ (?:\#.*)? # optional comment
22
+ \z
23
+ )x
24
+
25
+ def call(file)
26
+ File.readlines(file).each_with_object({}) do |line, hash|
27
+ parse_line(line, hash)
28
+ end
29
+ rescue Errno::ENOENT
30
+ {}
31
+ end
32
+
33
+ private
34
+
35
+ def parse_line(line, hash)
36
+ if (match = line.match(LINE))
37
+ key, value = match.captures
38
+ hash[key] = parse_value(value || "")
39
+ end
40
+ hash
41
+ end
42
+
43
+ def parse_value(value)
44
+ value.strip.sub(/\A(['"])(.*)\1\z/, '\2')
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,9 @@
1
+ Dry::System.register_component(:settings, provider: :system) do
2
+ init do
3
+ require 'dry/system/settings'
4
+ end
5
+
6
+ start do
7
+ register(:settings, settings.load(target.root, target.config.env))
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module System
3
- VERSION = '0.7.3'.freeze
3
+ VERSION = '0.8.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-system
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Solnica
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: inflecto
@@ -114,6 +114,20 @@ dependencies:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: 0.7.0
117
+ - !ruby/object:Gem::Dependency
118
+ name: dry-struct
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '0.3'
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: '0.3'
117
131
  - !ruby/object:Gem::Dependency
118
132
  name: bundler
119
133
  requirement: !ruby/object:Gem::Requirement
@@ -163,36 +177,19 @@ executables: []
163
177
  extensions: []
164
178
  extra_rdoc_files: []
165
179
  files:
166
- - ".gitignore"
167
- - ".rspec"
168
- - ".travis.yml"
169
- - ".yardopts"
170
180
  - CHANGELOG.md
171
- - CONTRIBUTING.md
172
- - Gemfile
173
181
  - LICENSE
174
182
  - README.md
175
- - Rakefile
176
- - dry-system.gemspec
177
- - examples/custom_configuration_auto_register/Gemfile
178
- - examples/custom_configuration_auto_register/lib/entities/user.rb
179
- - examples/custom_configuration_auto_register/lib/user_repo.rb
180
- - examples/custom_configuration_auto_register/run.rb
181
- - examples/custom_configuration_auto_register/system/boot/persistence.rb
182
- - examples/custom_configuration_auto_register/system/container.rb
183
- - examples/custom_configuration_auto_register/system/import.rb
184
- - examples/standalone/Gemfile
185
- - examples/standalone/lib/user_repo.rb
186
- - examples/standalone/run.rb
187
- - examples/standalone/system/boot/persistence.rb
188
- - examples/standalone/system/container.rb
189
- - examples/standalone/system/import.rb
190
183
  - lib/dry-system.rb
191
184
  - lib/dry/system.rb
192
185
  - lib/dry/system/auto_registrar.rb
193
186
  - lib/dry/system/auto_registrar/configuration.rb
194
187
  - lib/dry/system/booter.rb
188
+ - lib/dry/system/booter/component_registry.rb
195
189
  - lib/dry/system/component.rb
190
+ - lib/dry/system/components.rb
191
+ - lib/dry/system/components/bootable.rb
192
+ - lib/dry/system/components/config.rb
196
193
  - lib/dry/system/constants.rb
197
194
  - lib/dry/system/container.rb
198
195
  - lib/dry/system/errors.rb
@@ -201,68 +198,14 @@ files:
201
198
  - lib/dry/system/loader.rb
202
199
  - lib/dry/system/magic_comments_parser.rb
203
200
  - lib/dry/system/manual_registrar.rb
201
+ - lib/dry/system/provider.rb
202
+ - lib/dry/system/provider_registry.rb
203
+ - lib/dry/system/settings.rb
204
+ - lib/dry/system/settings/file_loader.rb
205
+ - lib/dry/system/settings/file_parser.rb
204
206
  - lib/dry/system/stubs.rb
207
+ - lib/dry/system/system_components/settings.rb
205
208
  - lib/dry/system/version.rb
206
- - spec/fixtures/components/bar.rb
207
- - spec/fixtures/components/bar/baz.rb
208
- - spec/fixtures/components/foo.rb
209
- - spec/fixtures/components/no_register.rb
210
- - spec/fixtures/import_test/config/application.yml
211
- - spec/fixtures/import_test/lib/test/bar.rb
212
- - spec/fixtures/import_test/lib/test/foo.rb
213
- - spec/fixtures/import_test/system/boot/bar.rb
214
- - spec/fixtures/lazytest/config/application.yml
215
- - spec/fixtures/lazytest/lib/test/dep.rb
216
- - spec/fixtures/lazytest/lib/test/foo.rb
217
- - spec/fixtures/lazytest/lib/test/models.rb
218
- - spec/fixtures/lazytest/lib/test/models/book.rb
219
- - spec/fixtures/lazytest/lib/test/models/user.rb
220
- - spec/fixtures/lazytest/system/boot/bar.rb
221
- - spec/fixtures/magic_comments/comments.rb
222
- - spec/fixtures/manual_registration/container/foo.rb
223
- - spec/fixtures/manual_registration/lib/test/foo.rb
224
- - spec/fixtures/multiple_namespaced_components/multiple/level/baz.rb
225
- - spec/fixtures/multiple_namespaced_components/multiple/level/foz.rb
226
- - spec/fixtures/namespaced_components/namespaced/bar.rb
227
- - spec/fixtures/namespaced_components/namespaced/foo.rb
228
- - spec/fixtures/other/config/boot/bar.rb
229
- - spec/fixtures/other/config/boot/hell.rb
230
- - spec/fixtures/other/lib/test/dep.rb
231
- - spec/fixtures/other/lib/test/foo.rb
232
- - spec/fixtures/other/lib/test/models.rb
233
- - spec/fixtures/other/lib/test/models/book.rb
234
- - spec/fixtures/other/lib/test/models/user.rb
235
- - spec/fixtures/stubbing/lib/test/car.rb
236
- - spec/fixtures/stubbing/system/boot/db.rb
237
- - spec/fixtures/test/config/application.yml
238
- - spec/fixtures/test/config/subapp.yml
239
- - spec/fixtures/test/lib/test/dep.rb
240
- - spec/fixtures/test/lib/test/foo.rb
241
- - spec/fixtures/test/lib/test/models.rb
242
- - spec/fixtures/test/lib/test/models/book.rb
243
- - spec/fixtures/test/lib/test/models/user.rb
244
- - spec/fixtures/test/lib/test/singleton_dep.rb
245
- - spec/fixtures/test/log/.gitkeep
246
- - spec/fixtures/test/system/boot/bar.rb
247
- - spec/fixtures/test/system/boot/client.rb
248
- - spec/fixtures/test/system/boot/db.rb
249
- - spec/fixtures/test/system/boot/hell.rb
250
- - spec/fixtures/test/system/boot/logger.rb
251
- - spec/fixtures/umbrella/system/boot/db.rb
252
- - spec/integration/boot_spec.rb
253
- - spec/integration/container/lazy_loading/manual_registration_spec.rb
254
- - spec/integration/import_spec.rb
255
- - spec/spec_helper.rb
256
- - spec/unit/auto_registrar/configuration_spec.rb
257
- - spec/unit/component_spec.rb
258
- - spec/unit/container/auto_register_spec.rb
259
- - spec/unit/container/config_spec.rb
260
- - spec/unit/container/finalize_spec.rb
261
- - spec/unit/container/import_spec.rb
262
- - spec/unit/container/injector_spec.rb
263
- - spec/unit/container_spec.rb
264
- - spec/unit/loader_spec.rb
265
- - spec/unit/magic_comments_parser_spec.rb
266
209
  homepage: http://dry-rb.org/gems/dry-system
267
210
  licenses:
268
211
  - MIT
@@ -287,64 +230,4 @@ rubygems_version: 2.6.11
287
230
  signing_key:
288
231
  specification_version: 4
289
232
  summary: Organize your code into reusable components
290
- test_files:
291
- - spec/fixtures/components/bar.rb
292
- - spec/fixtures/components/bar/baz.rb
293
- - spec/fixtures/components/foo.rb
294
- - spec/fixtures/components/no_register.rb
295
- - spec/fixtures/import_test/config/application.yml
296
- - spec/fixtures/import_test/lib/test/bar.rb
297
- - spec/fixtures/import_test/lib/test/foo.rb
298
- - spec/fixtures/import_test/system/boot/bar.rb
299
- - spec/fixtures/lazytest/config/application.yml
300
- - spec/fixtures/lazytest/lib/test/dep.rb
301
- - spec/fixtures/lazytest/lib/test/foo.rb
302
- - spec/fixtures/lazytest/lib/test/models.rb
303
- - spec/fixtures/lazytest/lib/test/models/book.rb
304
- - spec/fixtures/lazytest/lib/test/models/user.rb
305
- - spec/fixtures/lazytest/system/boot/bar.rb
306
- - spec/fixtures/magic_comments/comments.rb
307
- - spec/fixtures/manual_registration/container/foo.rb
308
- - spec/fixtures/manual_registration/lib/test/foo.rb
309
- - spec/fixtures/multiple_namespaced_components/multiple/level/baz.rb
310
- - spec/fixtures/multiple_namespaced_components/multiple/level/foz.rb
311
- - spec/fixtures/namespaced_components/namespaced/bar.rb
312
- - spec/fixtures/namespaced_components/namespaced/foo.rb
313
- - spec/fixtures/other/config/boot/bar.rb
314
- - spec/fixtures/other/config/boot/hell.rb
315
- - spec/fixtures/other/lib/test/dep.rb
316
- - spec/fixtures/other/lib/test/foo.rb
317
- - spec/fixtures/other/lib/test/models.rb
318
- - spec/fixtures/other/lib/test/models/book.rb
319
- - spec/fixtures/other/lib/test/models/user.rb
320
- - spec/fixtures/stubbing/lib/test/car.rb
321
- - spec/fixtures/stubbing/system/boot/db.rb
322
- - spec/fixtures/test/config/application.yml
323
- - spec/fixtures/test/config/subapp.yml
324
- - spec/fixtures/test/lib/test/dep.rb
325
- - spec/fixtures/test/lib/test/foo.rb
326
- - spec/fixtures/test/lib/test/models.rb
327
- - spec/fixtures/test/lib/test/models/book.rb
328
- - spec/fixtures/test/lib/test/models/user.rb
329
- - spec/fixtures/test/lib/test/singleton_dep.rb
330
- - spec/fixtures/test/log/.gitkeep
331
- - spec/fixtures/test/system/boot/bar.rb
332
- - spec/fixtures/test/system/boot/client.rb
333
- - spec/fixtures/test/system/boot/db.rb
334
- - spec/fixtures/test/system/boot/hell.rb
335
- - spec/fixtures/test/system/boot/logger.rb
336
- - spec/fixtures/umbrella/system/boot/db.rb
337
- - spec/integration/boot_spec.rb
338
- - spec/integration/container/lazy_loading/manual_registration_spec.rb
339
- - spec/integration/import_spec.rb
340
- - spec/spec_helper.rb
341
- - spec/unit/auto_registrar/configuration_spec.rb
342
- - spec/unit/component_spec.rb
343
- - spec/unit/container/auto_register_spec.rb
344
- - spec/unit/container/config_spec.rb
345
- - spec/unit/container/finalize_spec.rb
346
- - spec/unit/container/import_spec.rb
347
- - spec/unit/container/injector_spec.rb
348
- - spec/unit/container_spec.rb
349
- - spec/unit/loader_spec.rb
350
- - spec/unit/magic_comments_parser_spec.rb
233
+ test_files: []
data/.gitignore DELETED
@@ -1,39 +0,0 @@
1
- *.gem
2
- *.rbc
3
- /.config
4
- /coverage/
5
- /InstalledFiles
6
- /pkg/
7
- /spec/reports/
8
- /test/tmp/
9
- /test/version_tmp/
10
- /tmp/
11
-
12
- ## Specific to RubyMotion:
13
- .dat*
14
- .repl_history
15
- build/
16
-
17
- ## Documentation cache and generated files:
18
- /.yardoc/
19
- /_yardoc/
20
- /doc/
21
- /rdoc/
22
-
23
- ## Environment normalisation:
24
- /.bundle/
25
- /vendor/bundle
26
- /lib/bundler/man/
27
-
28
- # for a library or gem, you might want to ignore these files since the code is
29
- # intended to run in multiple environments; otherwise, check them in:
30
- # Gemfile.lock
31
- # .ruby-version
32
- # .ruby-gemset
33
-
34
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
35
- .rvmrc
36
- Gemfile.lock
37
-
38
- ## Specific to RubyMine
39
- .idea
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --color
2
- --require ./spec/spec_helper
3
- --order random
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- bundler_args: --without tools
5
- script:
6
- - bundle exec rake spec
7
- after_success:
8
- - '[ -d coverage ] && bundle exec codeclimate-test-reporter'
9
- rvm:
10
- - 2.1
11
- - 2.2
12
- - 2.3.1
13
- - 2.4.1
14
- - jruby-9.1.5.0
15
- notifications:
16
- email: false
17
- webhooks:
18
- urls:
19
- - https://webhooks.gitter.im/e/19098b4253a72c9796db
20
- on_success: change # options: [always|never|change] default: always
21
- on_failure: always # options: [always|never|change] default: always
22
- on_start: false # default: false
data/.yardopts DELETED
@@ -1,5 +0,0 @@
1
- --no-private
2
- --hide-void-return
3
-
4
- --markup-provider=redcarpet
5
- --markup=markdown
data/CONTRIBUTING.md DELETED
@@ -1,29 +0,0 @@
1
- # Issue Guidelines
2
-
3
- ## Reporting bugs
4
-
5
- If you found a bug, report an issue and describe what's the expected behavior versus what actually happens. If the bug causes a crash, attach a full backtrace. If possible, a reproduction script showing the problem is highly appreciated.
6
-
7
- ## Reporting feature requests
8
-
9
- Report a feature request **only after discussing it first on [discuss.dry-rb.org](https://discuss.dry-rb.org)** where it was accepted. Please provide a concise description of the feature, don't link to a discussion thread, and instead summarize what was discussed.
10
-
11
- ## Reporting questions, support requests, ideas, concerns etc.
12
-
13
- **PLEASE DON'T** - use [discuss.dry-rb.org](http://discuss.dry-rb.org) instead.
14
-
15
- # Pull Request Guidelines
16
-
17
- A Pull Request will only be accepted if it addresses a specific issue that was reported previously, or fixes typos, mistakes in documentation etc.
18
-
19
- Other requirements:
20
-
21
- 1) Do not open a pull request if you can't provide tests along with it. If you have problems writing tests, ask for help in the related issue.
22
- 2) Follow the style conventions of the surrounding code. In most cases, this is standard ruby style.
23
- 3) Add API documentation if it's a new feature
24
- 4) Update API documentation if it changes an existing feature
25
- 5) Bonus points for sending a PR to [github.com/dry-rb/dry-rb.org](github.com/dry-rb/dry-rb.org) which updates user documentation and guides
26
-
27
- # Asking for help
28
-
29
- If these guidelines aren't helpful, and you're stuck, please post a message on [discuss.dry-rb.org](https://discuss.dry-rb.org).
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- gem 'codeclimate-test-reporter', platforms: :mri
6
-
7
- group :tools do
8
- gem 'byebug', platforms: :mri
9
- end
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env rake
2
- require 'bundler/gem_tasks'
3
-
4
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
5
-
6
- require 'rspec/core'
7
- require 'rspec/core/rake_task'
8
-
9
- task default: :spec
10
-
11
- desc 'Run all specs in spec directory'
12
- RSpec::Core::RakeTask.new(:spec)