jdoc 0.3.2 → 0.3.3

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
  SHA1:
3
- metadata.gz: 28bc94f091b81a3e04e106f675c00f8940275841
4
- data.tar.gz: 8402b0802f2e5a2a59645b9d5140843964725374
3
+ metadata.gz: 03c85d7d5b7ddfd547d2b5deef9f91f5e457d3c8
4
+ data.tar.gz: 926980a491b7297f7801ff18162b1d39b1c0f326
5
5
  SHA512:
6
- metadata.gz: c5c1fe253da35df82c05ee7628ddeeebcb1e18dccf045006ddc75335304c70352c637480528df9401093c9d8a3f7e8cc7ea3ff86ccdef39673c2ba5ad79c00cd
7
- data.tar.gz: 6a9df487e28224d36af6b1092f9c92c707376df84fa61640c45a96311af64e217fc4e0449080ba173e623c27c647d7acd78b610f2f2f6f690bb1fc5d5429bdb2
6
+ metadata.gz: e8381b0a59d51279cd3faea09f0d20178dfbb426518d7eabeb74ee0e40d4c0344f1d401b77cab916f6e8aa2330affbf02cb663042e2a3bc7b5190b121a546ca9
7
+ data.tar.gz: 9edb70fc6e87f18d31d49e6329fbc0fd765a0832d3d9375582d5a468dcb81f59d03f92e92afb477a6db2f1c548678eb4bdffc5244815ad09e53b8166f6bb94da
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.3.3
2
+ * Improve pattern format in properties section
3
+
1
4
  ## 0.3.2
2
5
  * Add generator options to change template
3
6
  * Add request parameters for each endpoint
@@ -26,7 +26,7 @@ An app is a program to be deployed.
26
26
  * unique name of app
27
27
  * Example: `"example"`
28
28
  * Type: string
29
- * Pattern: `(?-mix:^[a-z][a-z0-9-]{3,50}$)`
29
+ * Pattern: `/^[a-z][a-z0-9-]{3,50}$/`
30
30
  * private
31
31
  * true if this resource is private use
32
32
  * Example: `false`
@@ -47,7 +47,7 @@ Create a new app.
47
47
  * unique name of app
48
48
  * Example: `"example"`
49
49
  * Type: string
50
- * Pattern: `(?-mix:^[a-z][a-z0-9-]{3,50}$)`
50
+ * Pattern: `/^[a-z][a-z0-9-]{3,50}$/`
51
51
 
52
52
  ```
53
53
  POST /apps HTTP/1.1
@@ -153,7 +153,7 @@ Update an existing app.
153
153
  * unique name of app
154
154
  * Example: `"example"`
155
155
  * Type: string
156
- * Pattern: `(?-mix:^[a-z][a-z0-9-]{3,50}$)`
156
+ * Pattern: `/^[a-z][a-z0-9-]{3,50}$/`
157
157
 
158
158
  ```
159
159
  PATCH /apps/01234567-89ab-cdef-0123-456789abcdef HTTP/1.1
data/lib/jdoc/property.rb CHANGED
@@ -35,7 +35,7 @@ module Jdoc
35
35
  # @return [String, nil] Pattern constraint, defined in pattern property
36
36
  def pattern
37
37
  if str = @schema.pattern
38
- "`#{str}`"
38
+ "`#{str.inspect}`"
39
39
  end
40
40
  end
41
41
 
data/lib/jdoc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jdoc
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura