snowpack 1.0.0.alpha4 → 1.0.0.alpha5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -0
- data/README.md +1 -1
- data/lib/snowpack/cli/application/commands/db/migrate.rb +1 -1
- data/lib/snowpack/cli/application/commands/db/seed.rb +1 -2
- data/lib/snowpack/generators/application/templates/Gemfile.tt +1 -2
- data/lib/snowpack/generators/application/templates/lib/__application_path__/operation.rb.tt +6 -3
- data/lib/snowpack/test/suite.rb +1 -1
- data/lib/snowpack/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 362981ee1367500f9298d282f89a4f9c92b376fe327cd9c084cdc9c1edfa4207
|
4
|
+
data.tar.gz: aa2a87c9ae454173ccaddbc34186b2c2876453004f5d5c5b3c1ba8ef84b6c872
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48e5e7aa6dfc1b5bc05a1c266be867efb841c73e43c296518209748ea60fc1c0171df876b727ac49b02673e1238e022cb3dd7db5f5792992bbe366263dada05a
|
7
|
+
data.tar.gz: 1e144be2509cae7300ea58c4404b780bd63925881791a98c3fe604d26117c6d452e3c3ee78370ff882b6817f26c67faec7669e603f0607f9d78d7dfa8f812397
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,29 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.0.0.alpha5] - 2019-09-20
|
4
|
+
|
5
|
+
### Changed
|
6
|
+
|
7
|
+
- Remove dry-transaction from generated application `Gemfile`
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
CLI:
|
12
|
+
|
13
|
+
- Don't crash when referring to seeds file path in `db seed` command
|
14
|
+
- Don't boot application before loading seeds in `db seed` command (the application boot process may depend on the seeds having been run first)
|
15
|
+
- Fix crash when passing a previous migration target to `db migrate` command
|
16
|
+
|
17
|
+
App generation:
|
18
|
+
|
19
|
+
- Ensure `tmp/` dir is generated with new apps
|
20
|
+
- Fixed module nesting of generated `Operation` class
|
21
|
+
- Include dry-monads/dry-matcher directly in generated `Operation` class (rather than `Dry::Transaction::Operation`, given dry-transaction is no longer a generated gem dependency)
|
22
|
+
|
23
|
+
Spec suite:
|
24
|
+
|
25
|
+
- Don't crash when `tmp/` dir is not present
|
26
|
+
|
3
27
|
## [1.0.0.alpha4] - 2019-07-11
|
4
28
|
|
5
29
|
### Fixed
|
data/README.md
CHANGED
@@ -35,7 +35,7 @@ Then enter the application and (if required) generate a new slice:
|
|
35
35
|
|
36
36
|
## CLI
|
37
37
|
|
38
|
-
Snowpack
|
38
|
+
Snowpack's application CLI is accessible via the `bin/run` executable, which provides access to various commands. To learn about these, run:
|
39
39
|
|
40
40
|
```
|
41
41
|
$ ./bin/run
|
@@ -14,7 +14,6 @@ module Snowpack
|
|
14
14
|
def call(**)
|
15
15
|
if has_file?
|
16
16
|
measure "Database seeds loaded" do
|
17
|
-
application.boot
|
18
17
|
load file_path
|
19
18
|
end
|
20
19
|
else
|
@@ -29,7 +28,7 @@ module Snowpack
|
|
29
28
|
end
|
30
29
|
|
31
30
|
def has_file?
|
32
|
-
File.exist?(
|
31
|
+
File.exist?(file_path)
|
33
32
|
end
|
34
33
|
end
|
35
34
|
end
|
@@ -25,11 +25,10 @@ gem "sequel_pg"
|
|
25
25
|
|
26
26
|
# Application dependencies
|
27
27
|
gem "dry-auto_inject"
|
28
|
-
gem "dry-matcher"
|
28
|
+
gem "dry-matcher", "~> 0.8", ">= 0.8.2"
|
29
29
|
gem "dry-monads", "~> 1.0"
|
30
30
|
gem "dry-schema", "~> 1.0"
|
31
31
|
gem "dry-struct", "~> 1.0"
|
32
|
-
gem "dry-transaction"
|
33
32
|
gem "dry-types", "~> 1.0"
|
34
33
|
gem "dry-validation", "~> 1.0"
|
35
34
|
gem "dry-view"
|
@@ -1,12 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
# auto_register: false
|
3
3
|
|
4
|
-
require "dry/
|
4
|
+
require "dry/matcher/result_matcher"
|
5
|
+
require "dry/monads"
|
5
6
|
|
6
|
-
module <%=
|
7
|
+
module <%= application_module %>
|
7
8
|
class Operation
|
8
9
|
def self.inherited(subclass)
|
9
|
-
|
10
|
+
super
|
11
|
+
subclass.include Dry::Monads[:do, :result]
|
12
|
+
subclass.include Dry::Matcher::ResultMatcher.for(:call)
|
10
13
|
end
|
11
14
|
end
|
12
15
|
end
|
data/lib/snowpack/test/suite.rb
CHANGED
@@ -56,7 +56,7 @@ module Snowpack
|
|
56
56
|
config.filter_run :focus
|
57
57
|
config.run_all_when_everything_filtered = true
|
58
58
|
|
59
|
-
config.example_status_persistence_file_path = root.join("../tmp").
|
59
|
+
config.example_status_persistence_file_path = root.join("../tmp").join("spec/examples.txt").expand_path.to_s
|
60
60
|
|
61
61
|
if config.files_to_run.one?
|
62
62
|
config.default_formatter = "doc"
|
data/lib/snowpack/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snowpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.alpha5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Riley
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dry-inflector
|
@@ -273,6 +273,7 @@ files:
|
|
273
273
|
- lib/snowpack/generators/application/templates/system/boot/persistence.rb.tt
|
274
274
|
- lib/snowpack/generators/application/templates/system/boot/settings.rb.tt
|
275
275
|
- lib/snowpack/generators/application/templates/system/boot/web.rb.tt
|
276
|
+
- lib/snowpack/generators/application/templates/tmp/.keep
|
276
277
|
- lib/snowpack/generators/slice/generator.rb
|
277
278
|
- lib/snowpack/generators/slice/templates/lib/__slice_path__/.keep
|
278
279
|
- lib/snowpack/generators/slice/templates/lib/__slice_path__/web/action.rb.tt
|