useless-doc 0.6.4 → 0.6.5

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: 6853e8a5543f4bcaa1b4e204477291bc62f6a6b3
4
- data.tar.gz: 0ab6a2754cc216830b4b433eafb90bf7b01ab44f
3
+ metadata.gz: ba3662a9c3ab173c8820de546884c0bd66fb088e
4
+ data.tar.gz: 694e5e39110439e113372740c7ce0b7bf297825f
5
5
  SHA512:
6
- metadata.gz: 05e0e6ec1d4c42401f7eb512f98bff2bebfc37f68e732a629e783b897723defac27c6e1130b84753b494eb6c9da6246f920ec9960d35d85ad184f8dfe41ab2d8
7
- data.tar.gz: dc282d714cd133e4d35b0ef91e17fe754627938fa660ede8d6a74a2e3b71b1419288cd536a79e433f2b078f3ac28ccf7b597742eb37ca2c301feb4c3471a4762
6
+ metadata.gz: 1f51ce037bc2fa57ad44a202a0db3debd8ce793d4d994e2f4a788b2e41b81f8718609a9b14a17b80a0758204d5acb84bac6cf300c5f7c2d73f1655686965b0b4
7
+ data.tar.gz: 9ce2dddf8b6deb173baa43cd8df40aa23b52498af3522f2d3e60a4b9e1f94b7553041416c169945fe88944159b2649ea8212cda6d374da1eb648d8b1bf501c97
@@ -1,4 +1,4 @@
1
- @import url(http://fonts.googleapis.com/css?family=Open+Sans:300|Open+Sans+Condensed:300,700);
1
+ @import url(http://fonts.googleapis.com/css?family=Open+Sans:300,700|Open+Sans+Condensed:300,700);
2
2
 
3
3
  body {
4
4
  font-family: 'Open Sans', sans-serif;
@@ -6,6 +6,15 @@ body {
6
6
  margin: 0;
7
7
  }
8
8
 
9
+ a {
10
+ color: #333;
11
+ text-decoration: none;
12
+ }
13
+
14
+ a:hover {
15
+ text-decoration: underline;
16
+ }
17
+
9
18
  h1, h2, h3, h4 {
10
19
  font-family: 'Open Sans Condensed', sans-serif;
11
20
  margin-top: 0;
@@ -37,33 +46,52 @@ h4 span.content-type {
37
46
  }
38
47
 
39
48
  article.description {
40
- color: #555;
49
+ color: #333;
41
50
  margin-top: 0;
42
51
  }
43
52
 
53
+ article.description p {
54
+ font-size: 1.2em;
55
+ }
56
+
44
57
  article.description code {
45
58
  font-family: 'Courier New', 'Courier', monospace;
46
59
  }
47
60
 
48
- article.description h2 {
61
+ article.description h2,
62
+ article.description h3,
63
+ article.description h4 {
64
+ margin-top: 1em;
49
65
  margin-bottom: 0.25em;
50
66
  }
51
67
 
68
+ p.description {
69
+ font-size: 1.2em;
70
+ }
71
+
52
72
  p.description.request {
73
+ margin-top: 0;
53
74
  margin-bottom: 0.5em;
54
75
  }
55
76
 
77
+ p.description.response {
78
+ margin-top: 0;
79
+ }
80
+
56
81
  header {
57
- position: fixed;
58
- min-height: 100%;
59
- min-width: 260px;
60
- padding: 10px 20px;
61
- border-right: 3px double #DDD;
82
+ position: absolute;
83
+ width: 260px;
84
+ padding: 2em 0 0 2em;
85
+ }
86
+
87
+ header h1 {
88
+ font-size: 1.5em;
89
+ margin: 0;
62
90
  }
63
91
 
64
- header h1,
65
92
  header p {
66
- width: 260px;
93
+ margin: 0;
94
+ color: #999;
67
95
  }
68
96
 
69
97
  header.domain h1,
@@ -100,7 +128,6 @@ section.main {
100
128
 
101
129
  section.main article {
102
130
  padding: 30px 40px 40px;
103
- border-bottom: 3px double #DDD;
104
131
  }
105
132
 
106
133
  section.main article:last-child {
@@ -1,5 +1,5 @@
1
1
  module Useless
2
2
  module Doc
3
- VERSION = '0.6.4'
3
+ VERSION = '0.6.5'
4
4
  end
5
5
  end
@@ -1,8 +1,8 @@
1
1
  {
2
- "name": "Useless",
2
+ "name": "useless.io",
3
3
  "url": "http://useless.io",
4
4
  "timestamp": "2013-03-06T23:13:00-05:00",
5
- "description": "A collection of useless APIs.",
5
+ "description": "A **collection** of useless APIs.",
6
6
  "apis": [
7
7
  {
8
8
  "name": "The Jah API",
@@ -33,7 +33,7 @@ describe Useless::Doc::Proxy do
33
33
 
34
34
  get 'http://doc.useless.io/'
35
35
  last_response.should be_ok
36
- last_response.body.should =~ /<h1>Useless<\/h1>/
36
+ last_response.body.should =~ /<h1>useless.io<\/h1>/
37
37
  end
38
38
 
39
39
  it 'should return API HTML if proper JSON is retrieved' do
@@ -43,10 +43,10 @@ describe Useless::Doc::Serialization::Load do
43
43
  it 'should parse the specified JSON into a Domain instance' do
44
44
  document = load_document('domain.json')
45
45
  domain = Useless::Doc::Serialization::Load.domain document.read
46
- domain.name.should == 'Useless'
46
+ domain.name.should == 'useless.io'
47
47
  domain.url.should == 'http://useless.io'
48
48
  domain.timestamp.should == Time.parse('2013-03-06T23:13:00-05:00')
49
- domain.description.should == 'A collection of useless APIs.'
49
+ domain.description.should == 'A **collection** of useless APIs.'
50
50
  domain.apis.first.name.should == 'The Jah API'
51
51
  domain.apis.first.url.should == 'http://jah.useless.io'
52
52
  domain.apis.first.description.should == 'Jah, jah, jah.'
@@ -21,7 +21,7 @@ describe Useless::Doc::UI::Godel do
21
21
  it 'should render the name in the only h1' do
22
22
  h1s = @doc.css('h1')
23
23
  h1s.length.should == 1
24
- h1s.first.content.should == 'Useless'
24
+ h1s.first.content.should == 'useless.io'
25
25
  end
26
26
 
27
27
  it 'should render the domain description in an article p' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useless-doc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Hyland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-02 00:00:00.000000000 Z
11
+ date: 2013-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj