textualize 0.2.1 → 0.3.0

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: a9c70e32bf82b3847acd0669ec1b814445ee4898
4
- data.tar.gz: 5ab0970e217faa054978efcfe7b46bc0ea13bf7d
3
+ metadata.gz: 1002740ce8312d3042b58cacdc6953f98e7ac271
4
+ data.tar.gz: 8d120ce966239388fc10f6ffa706420aba5dab13
5
5
  SHA512:
6
- metadata.gz: d7a45d017e31940d406008be4b3c83256dcac42e5d368675c4d85447bba6be123551d45a1b06ad2cc46ea42d6b0f8ecadafbb99692882b301c808b52b4f5abc9
7
- data.tar.gz: e12f11480d6153e91c2647e7d80ded150c3077c9b1bcb8de7276420e588b3b27efcea8a20237bf9bc7f371b9f54499ec88004134775408c69a4bb05e2a2751f0
6
+ metadata.gz: a9c1effc970b2bd6773b2acac676f8b17434677660c90921043717fb0ec559d0b9a5e2f6b2d7eaed076eaf691d0e3085b49b3f01f199ca49f543a5fc2c98f8c0
7
+ data.tar.gz: 5d7a8bff9d9bba57bbdb5c8bf41ff251a689701ac20ae27055fdebf40c8be9ec87320753b946d970c2c706c057618937fe3eb80cb2d1bc666d67ecdd003141f2
@@ -0,0 +1,35 @@
1
+ FROM nginx
2
+
3
+ RUN apt-get update
4
+
5
+ RUN apt-get install -y \
6
+ build-essential \
7
+ curl \
8
+ git \
9
+ automake \
10
+ libtool \
11
+ ruby-full
12
+ RUN curl -sL https://deb.nodesource.com/setup | bash - \
13
+ && apt-get install -y nodejs
14
+ RUN npm install -g gulp
15
+ RUN gem install bundler
16
+
17
+ ADD . /website
18
+ WORKDIR /website
19
+ RUN npm install
20
+ RUN gulp
21
+ RUN bundle install
22
+ RUN bundle exec textualize request_specs
23
+
24
+ COPY ./dist /usr/share/nginx/html
25
+
26
+ RUN rm -rf /usr/lib/node_modules
27
+ RUN rm -rf ./node_modules
28
+
29
+ RUN apt-get purge -y nodejs \
30
+ build-essential \
31
+ curl \
32
+ git \
33
+ automake \
34
+ libtool \
35
+ ruby-full
@@ -1,5 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- ruby File.read("#{__dir__}/.ruby-version").chomp
4
-
5
3
  gem 'textualize'
@@ -19,8 +19,8 @@ schemas:
19
19
  resourceTypes:
20
20
  - !include ./resourceTypes/collection.yaml
21
21
  - !include ./resourceTypes/collection-ro.yaml
22
- - !include ./resourceTypes/collection-item.yaml
23
- - !include ./resourceTypes/collection-item-ro.yaml
22
+ - !include ./resourceTypes/item.yaml
23
+ - !include ./resourceTypes/item-ro.yaml
24
24
 
25
25
  /items: !include ./base/routes/items.yaml
26
26
  /orders: !include ./base/routes/orders.yaml
@@ -4,5 +4,5 @@ type:
4
4
  exampleItem: !include ../samples/item.json
5
5
  /{item_id}:
6
6
  type:
7
- collection-item-ro:
7
+ item-ro:
8
8
  exampleItem: !include ../samples/item.json
@@ -4,5 +4,5 @@ type:
4
4
  exampleItem: !include ../samples/order.json
5
5
  /{order_id}:
6
6
  type:
7
- collection-item-ro:
7
+ item-ro:
8
8
  exampleItem: !include ../samples/order.json
@@ -1,4 +1,4 @@
1
- collection-item-ro:
1
+ item-ro:
2
2
  description: Read only entity representing a <<resourcePathName|!singularize>>
3
3
 
4
4
  get:
@@ -1,4 +1,4 @@
1
- collection-item:
1
+ item:
2
2
  description: Entity representing a <<resourcePathName|!singularize>>
3
3
 
4
4
  get:
@@ -0,0 +1,7 @@
1
+ dependencies:
2
+ override:
3
+ - npm install
4
+ - npm install --global gulp
5
+ test:
6
+ override:
7
+ - gulp
@@ -1,3 +1,3 @@
1
1
  module Textualize
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textualize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Q-Centrix Dev Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-10 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -189,7 +189,7 @@ files:
189
189
  - lib/textualize/templates/http_backend/patch.js.erb
190
190
  - lib/textualize/templates/http_backend/post.js.erb
191
191
  - lib/textualize/templates/new/.gitignore
192
- - lib/textualize/templates/new/.ruby-version
192
+ - lib/textualize/templates/new/Dockerfile
193
193
  - lib/textualize/templates/new/Gemfile
194
194
  - lib/textualize/templates/new/Gemfile.lock
195
195
  - lib/textualize/templates/new/Readme.md
@@ -205,10 +205,10 @@ files:
205
205
  - lib/textualize/templates/new/apis/documentation/authentication.yaml
206
206
  - lib/textualize/templates/new/apis/documentation/http_statuses.md
207
207
  - lib/textualize/templates/new/apis/errors.yaml
208
- - lib/textualize/templates/new/apis/resourceTypes/collection-item-ro.yaml
209
- - lib/textualize/templates/new/apis/resourceTypes/collection-item.yaml
210
208
  - lib/textualize/templates/new/apis/resourceTypes/collection-ro.yaml
211
209
  - lib/textualize/templates/new/apis/resourceTypes/collection.yaml
210
+ - lib/textualize/templates/new/apis/resourceTypes/item-ro.yaml
211
+ - lib/textualize/templates/new/apis/resourceTypes/item.yaml
212
212
  - lib/textualize/templates/new/apis/responses/200.yaml
213
213
  - lib/textualize/templates/new/apis/responses/204.yaml
214
214
  - lib/textualize/templates/new/apis/responses/400.yaml
@@ -217,16 +217,17 @@ files:
217
217
  - lib/textualize/templates/new/apis/responses/404.yaml
218
218
  - lib/textualize/templates/new/apis/responses/422.yaml
219
219
  - lib/textualize/templates/new/apis/responses/500.yaml
220
+ - lib/textualize/templates/new/circle.yml
220
221
  - lib/textualize/templates/new/gulpfile.js
221
222
  - lib/textualize/templates/new/package.json
222
223
  - lib/textualize/templates/new/server/api/v1/items/get.json
223
224
  - lib/textualize/templates/new/server/api/v1/items/{item_id}/get.json
224
225
  - lib/textualize/templates/new/server/api/v1/orders/get.json
225
226
  - lib/textualize/templates/new/server/api/v1/orders/{order_id}/get.json
226
- - lib/textualize/templates/request_specs/delete_collection-item.rb.erb
227
- - lib/textualize/templates/request_specs/get_collection-item.rb.erb
227
+ - lib/textualize/templates/request_specs/delete_item.rb.erb
228
228
  - lib/textualize/templates/request_specs/get_collection.rb.erb
229
- - lib/textualize/templates/request_specs/patch_collection-item.rb.erb
229
+ - lib/textualize/templates/request_specs/get_item.rb.erb
230
+ - lib/textualize/templates/request_specs/patch_item.rb.erb
230
231
  - lib/textualize/templates/request_specs/post_collection.rb.erb
231
232
  - lib/textualize/version.rb
232
233
  - sample_item.rb
@@ -1 +0,0 @@
1
- 2.2.1