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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af940a0bcbb1bca548ca4e51e84f68b5d69acaba
4
- data.tar.gz: de4ec19be34141abc6612c767e861771819dab32
3
+ metadata.gz: 8bc030cb3681f8cbcdf60c54f2d4ed193f4d4550
4
+ data.tar.gz: f9284d8ea795725741f78becd3c89b30588740c7
5
5
  SHA512:
6
- metadata.gz: 1b6ceb22aa93feea2da4318fcd4a20bb356e96f497791ed99c43e5d834359ab56c0fc476e68376097c4bf26de746b865ec3e27be9708d254cd965faa912f4649
7
- data.tar.gz: ba3df8ebf284c32d7dd086bffcb4c09f4b8db37902c8acd18b2eba909a0c8a12e5f5e9ed6913815594d66e4ce022d98c3a7beb70b718c7a003eb2f7b6eadc555
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/textualize_http_backend.min.js`` that contains an angular module that
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) that can be used
56
- writing ruby apps with Rack. It is recommended that tests are run in isolation
57
- while developing, and as a suite in continuous integration.
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
- Uglifier.compile(
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
- Uglifier.compile(
52
- http_backend_template(route_hash)
53
- )
53
+ http_backend_template(modified_hash)
54
54
  )
55
55
  end
56
56
  end
@@ -1 +1,6 @@
1
1
  angular.module('textualize_http_backend', ['ngMockE2E'])
2
+ .run(['$httpBackend', function($httpBackend) {
3
+ $httpBackend.whenGET(/^app\//).passThrough();
4
+ $httpBackend.whenGET(/^components\//).passThrough();
5
+ }
6
+ ])
@@ -1,3 +1,3 @@
1
1
  module Textualize
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.4'
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.1.0
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-04-30 00:00:00.000000000 Z
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
@@ -1,3 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.0