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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18fa251531c1dca3225752899a9b0682007179b6a0048e669ac70133e53784d0
4
- data.tar.gz: 6c68c1d6de1b1db0eae9aef82b3ef2e72ed81ea3d2c95f1b8ce9bed9f16af0e5
3
+ metadata.gz: 362981ee1367500f9298d282f89a4f9c92b376fe327cd9c084cdc9c1edfa4207
4
+ data.tar.gz: aa2a87c9ae454173ccaddbc34186b2c2876453004f5d5c5b3c1ba8ef84b6c872
5
5
  SHA512:
6
- metadata.gz: 4cec172a496203dec14988541ff4768f2159a8919ab542895e9c6bc0061a6c1ce546fd1e0d03964fbc13d0aa65a26749588999d26aaea70eb927fb4cbcb64dd2
7
- data.tar.gz: 2e9c433bd416cf31e77e4436d30c5fbd5283bdf2ca28d984871a8318c66be14e9903824a6dc407d69b6c63a758c9d05036f9c26c027eaab808f7ab874ffaa6ee
6
+ metadata.gz: 48e5e7aa6dfc1b5bc05a1c266be867efb841c73e43c296518209748ea60fc1c0171df876b727ac49b02673e1238e022cb3dd7db5f5792992bbe366263dada05a
7
+ data.tar.gz: 1e144be2509cae7300ea58c4404b780bd63925881791a98c3fe604d26117c6d452e3c3ee78370ff882b6817f26c67faec7669e603f0607f9d78d7dfa8f812397
@@ -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 application CLI is accessible via the `bin/run` executable, which provides access to various commands. To learn about these, simply run:
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
@@ -17,7 +17,7 @@ module Snowpack
17
17
  def call(target: nil, **)
18
18
  measure "database #{database.name} migrated" do
19
19
  if target
20
- run_migrations(target: target)
20
+ run_migrations(target: Integer(target))
21
21
  else
22
22
  run_migrations
23
23
  end
@@ -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?(seeds_path)
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/transaction/operation"
4
+ require "dry/matcher/result_matcher"
5
+ require "dry/monads"
5
6
 
6
- module <%= application_path %>
7
+ module <%= application_module %>
7
8
  class Operation
8
9
  def self.inherited(subclass)
9
- subclass.include Dry::Transaction::Operation
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
@@ -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").realpath.join("spec/examples.txt").to_s
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Snowpack
4
- VERSION = "1.0.0.alpha4"
4
+ VERSION = "1.0.0.alpha5"
5
5
  end
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.alpha4
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-07-11 00:00:00.000000000 Z
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