skyward 0.4.1 → 0.4.2
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/README.md +1 -1
- data/lib/skyward/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e14ce47342c3e4aef4fce27d7ecf9c2536673a7df249b69d985fa49d83fe52f1
|
|
4
|
+
data.tar.gz: 1f8aa953c9b81fcdfca039e5764cbfaa30bc6dba85699ccbee756ac62b3ba98d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ae3372c45e3720d4979f79eb4dec61cbd5382f44f17da5d20de115f017006b098b208a01c3675e6d918a5894a04d7096ee69728979ef3d175eb6a794f735091
|
|
7
|
+
data.tar.gz: 9ff878a6574679c63021053f46ee8ab4161f7ffef2fca013fff62dcd7c5348ddb4f6705e2a7822ecb1744102c8091a4a9f427ca0d759b5cc43bfdc41a290cf82
|
data/README.md
CHANGED
|
@@ -67,4 +67,4 @@ This README is the spec, and this section lists each part of it that's built, as
|
|
|
67
67
|
|
|
68
68
|
- **One reading of each type.** The `skyward` gem's tests hold Skyward API and Skyward ORM to the promise both READMEs make, that a row read from the database and the same class sent as JSON are the same thing, on SQLite and on PostgreSQL. A table class with a column of every type both read (`Integer`, `Float`, `BigDecimal`, `String`, `bool`, `Date`, `Time`, a union of symbols, `Hash[String, untyped]` and an `Array[T]` of each of those but the Hash, a nullable one of each scalar and of the Hash, and a nullable `Array[String]?`) makes the round trip: a row the ORM inserts, returned from an endpoint typed with the class, read back with `Skyward::API::Test.client` and posted to an endpoint that takes the class as `body:`, arrives `==` to the row the database holds, a `Time` with microseconds and a non-UTC offset included, a `BigDecimal` with more digits than a `Float` holds, a `Hash[String, untyped]` that nests an object in an array in an object and holds a Float, an Integer past 64 bits, `null`, `false`, an empty object and a non-ASCII key, and Arrays, an empty one among them, whose Strings hold a comma, a quote, a brace, a backslash and `"NULL"`. The class's OpenAPI component and the ORM's columns agree, field by field, on name, type, an Array's items, nullability and enum values. The types only one gem reads are listed in the test, so teaching either gem a type means updating the list: for now `Hash[String, T]` with any `T` but `untyped`, `Array[T]` of any other `T`, records, classes with typed readers, unions of them and literals are read by Skyward API alone.
|
|
69
69
|
- **`skyward new`.** `skyward new NAME` writes the app [Starting an app](#starting-an-app) describes, every file of it from a function of the name alone, then runs `bundle install` in it unless given `--skip-bundle`, outside any bundle `skyward` runs under, so `bundle exec skyward new` installs the app's Gemfile, not the outer one. The app is blank: its one endpoint is `GET /up`, and `modules/` and `db/migrate/` are empty, each holding only a `.keep` so git keeps it. A missing name, more than one, a name that isn't lowercase letters, digits and underscores starting with a letter, or a path that exists and isn't an empty directory prints why and exits 1, writing nothing. The packaging check builds and installs the gems, runs `skyward new demo`, and fails unless the app's own `bin/ci` passes with them, Steep, `skyward check` and `skyward migrate` with no migrations included.
|
|
70
|
-
- **The getting-started guide and `llms.txt`.** [`docs/getting-started.md`](../docs/getting-started.md) walks a newcomer from `gem install skyward` to a running, tested, documented API, showing each step's command, code and output, for Skyward 0.3. It starts from the blank app and builds a resource from nothing: a table class, its migration, a typed API mounted in `app.rb`, its tests, `bin/ci`, `skyward serve` and `curl`. Every command in it has been run, in order, on a fresh app. [`llms.txt`](
|
|
70
|
+
- **The getting-started guide and `llms.txt`.** [`docs/getting-started.md`](../docs/getting-started.md) walks a newcomer from `gem install skyward` to a running, tested, documented API, showing each step's command, code and output, for Skyward 0.3. It starts from the blank app and builds a resource from nothing: a table class, its migration, a typed API mounted in `app.rb`, its tests, `bin/ci`, `skyward serve` and `curl`. Every command in it has been run, in order, on a fresh app. [`llms.txt`](https://github.com/bottrall/skyward/blob/main/llms.txt), at the repository root, points agents at the guide, each gem's README and the `AGENTS.md` that `skyward new` writes, as raw Markdown.
|
data/lib/skyward/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: skyward
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jake Bottrall
|
|
@@ -15,42 +15,42 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.4.
|
|
18
|
+
version: 0.4.2
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.4.
|
|
25
|
+
version: 0.4.2
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: skyward-core
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.4.
|
|
32
|
+
version: 0.4.2
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.4.
|
|
39
|
+
version: 0.4.2
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: skyward-orm
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - '='
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.4.
|
|
46
|
+
version: 0.4.2
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - '='
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 0.4.
|
|
53
|
+
version: 0.4.2
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: zeitwerk
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|