textualize 0.1.0 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/lib/textualize/tasks/http_backend.rb +7 -7
- data/lib/textualize/templates/http_backend/module.js +5 -0
- data/lib/textualize/version.rb +1 -1
- metadata +2 -3
- data/.travis.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bc030cb3681f8cbcdf60c54f2d4ed193f4d4550
|
4
|
+
data.tar.gz: f9284d8ea795725741f78becd3c89b30588740c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01cdfcdf587e6583b4b23f7193988426088d355ca39b866c8f6cee18ecc0df01e3b56278d940c5f45c36b50158c08856d742f3013fe77443182cf029d2f1fff3
|
7
|
+
data.tar.gz: d77325d5a6c4139f56e32e7ce77e36a3ee52484f1952b194d9def9bd3985327c9fdfacdf7584a09d8726dd3638d7d310ecfb2b8bc9a57ad7025373ad36998072
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Textualize
|
2
2
|
|
3
|
+
[![Circle
|
4
|
+
CI](https://circleci.com/gh/q-centrix/textualize.svg?style=svg)](https://circleci.com/gh/q-centrix/textualize)
|
5
|
+
|
3
6
|
A documentation template written in RAML and thor tasks to turn documentation
|
4
7
|
into so much more.
|
5
8
|
|
@@ -31,7 +34,7 @@ textualize server
|
|
31
34
|
```
|
32
35
|
|
33
36
|
The ``textualize server`` command creates a folder structure of JSON in the
|
34
|
-
``server`` folder.
|
37
|
+
``dist/server`` folder.
|
35
38
|
|
36
39
|
### HttpBackend
|
37
40
|
|
@@ -40,7 +43,7 @@ textualize http_backend
|
|
40
43
|
```
|
41
44
|
|
42
45
|
The ``textualize http_backend`` command creates a minified javascript file,
|
43
|
-
``angular/
|
46
|
+
``dist/angular/backend/fake_http_backend.min.js`` that contains an angular module that
|
44
47
|
can be injected to provide a stubbed
|
45
48
|
[httpBackend](https://docs.angularjs.org/api/ngMockE2E/service/$httpBackend).
|
46
49
|
This can be used in both e2e tests and for prototyping.
|
@@ -52,9 +55,10 @@ textualize request_specs
|
|
52
55
|
```
|
53
56
|
|
54
57
|
The ``textualize request_specs`` command creates a folder of request specs
|
55
|
-
written in [airborne](https://github.com/brooklynDev/airborne)
|
56
|
-
writing ruby apps with Rack.
|
57
|
-
|
58
|
+
written in [airborne](https://github.com/brooklynDev/airborne) at
|
59
|
+
``dist/spec/request_specs`` that can be used writing ruby apps with Rack.
|
60
|
+
It is recommended that tests are run in isolation while developing, and
|
61
|
+
as a suite in continuous integration.
|
58
62
|
|
59
63
|
## Development
|
60
64
|
|
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'uglifier'
|
2
1
|
require 'erb'
|
3
2
|
|
4
3
|
module Textualize
|
@@ -20,9 +19,7 @@ module Textualize
|
|
20
19
|
def create_basic_http_backend_file
|
21
20
|
File.open(dist_file, 'w') do |file|
|
22
21
|
file.write(
|
23
|
-
|
24
|
-
File.read("#{template_directory}/module.js")
|
25
|
-
)
|
22
|
+
File.read("#{template_directory}/module.js")
|
26
23
|
)
|
27
24
|
end
|
28
25
|
end
|
@@ -46,11 +43,14 @@ module Textualize
|
|
46
43
|
|
47
44
|
def append_uglified_hashes
|
48
45
|
RouteHashes.hashes.each do |route_hash|
|
46
|
+
# replace sample ids with 1
|
47
|
+
modified_hash = route_hash
|
48
|
+
modified_hash.relative_path.gsub!(/{.*}/, '1')
|
49
|
+
modified_hash.url.gsub!(/{.*}/, '1')
|
50
|
+
|
49
51
|
File.open(dist_file, 'a') do |file|
|
50
52
|
file.write(
|
51
|
-
|
52
|
-
http_backend_template(route_hash)
|
53
|
-
)
|
53
|
+
http_backend_template(modified_hash)
|
54
54
|
)
|
55
55
|
end
|
56
56
|
end
|
data/lib/textualize/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.4
|
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-
|
11
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -166,7 +166,6 @@ files:
|
|
166
166
|
- ".gitignore"
|
167
167
|
- ".rspec"
|
168
168
|
- ".ruby-version"
|
169
|
-
- ".travis.yml"
|
170
169
|
- CODE_OF_CONDUCT.md
|
171
170
|
- Gemfile
|
172
171
|
- LICENSE.txt
|
data/.travis.yml
DELETED