inqlude 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +1 -0
  3. data/.travis.yml +7 -3
  4. data/CHANGELOG.md +9 -0
  5. data/Gemfile +4 -0
  6. data/README.md +4 -0
  7. data/lib/cli.rb +24 -26
  8. data/lib/cli_controller.rb +24 -0
  9. data/lib/inqlude.rb +1 -0
  10. data/lib/kde_frameworks_release.rb +6 -1
  11. data/lib/manifest_handler.rb +44 -1
  12. data/lib/verifier.rb +4 -0
  13. data/lib/version.rb +1 -1
  14. data/lib/view.rb +62 -15
  15. data/manifest-format.md +30 -5
  16. data/spec/data/inqlude-all.json +11 -2
  17. data/spec/data/manifests/awesomelib/awesomelib.2013-09-08.manifest +4 -2
  18. data/spec/data/manifests/bleedingedge/bleedingedge.2012-01-01.manifest +3 -0
  19. data/spec/data/manifests/commercial/commercial.manifest +3 -0
  20. data/spec/data/manifests/newlib/newlib.manifest +1 -0
  21. data/spec/data/missing-topics/miss-topics/miss-topics.manifest +2 -1
  22. data/spec/integration/cli_verify_spec.rb +2 -0
  23. data/spec/integration/cli_view_spec.rb +102 -0
  24. data/spec/integration/spec_helper.rb +3 -0
  25. data/spec/online/cli_view_spec.rb +64 -0
  26. data/spec/online/spec_helper.rb +5 -0
  27. data/spec/stubs/qmake/qmake +2 -0
  28. data/spec/unit/cli_controller_spec.rb +51 -0
  29. data/spec/unit/kde_frameworks_release_spec.rb +36 -23
  30. data/spec/unit/manifest_handler_spec.rb +15 -1
  31. data/spec/unit/manifest_spec.rb +1 -1
  32. data/spec/unit/spec_helper.rb +10 -0
  33. data/spec/unit/view_spec.rb +68 -0
  34. data/topics/Manifest_updater/README.md +19 -0
  35. data/topics/Manifest_updater/app.js +43 -0
  36. data/topics/Manifest_updater/manifests/example/example.manifest +20 -0
  37. data/topics/Manifest_updater/package.json +9 -0
  38. data/topics/Manifest_updater/topics.csv +1 -0
  39. data/topics/Manifest_updater/update_manifests/example/example.manifest +24 -0
  40. data/topics/topics.csv +3 -0
  41. data/view/{about.html.haml → one-column/about.html.haml} +0 -0
  42. data/view/{all.html.haml → one-column/all.html.haml} +0 -0
  43. data/view/{commercial.html.haml → one-column/commercial.html.haml} +0 -0
  44. data/view/{contribute.html.haml → one-column/contribute.html.haml} +0 -0
  45. data/view/{development.html.haml → one-column/development.html.haml} +0 -0
  46. data/view/{favicon.ico → one-column/favicon.ico} +0 -0
  47. data/view/{get.html.haml → one-column/get.html.haml} +0 -0
  48. data/view/{group.html.haml → one-column/group.html.haml} +0 -0
  49. data/view/{index.html.haml → one-column/index.html.haml} +0 -0
  50. data/view/{layout.html.haml → one-column/layout.html.haml} +0 -0
  51. data/view/{library.html.haml → one-column/library.html.haml} +1 -1
  52. data/view/{public → one-column/public}/inqlude.css +0 -0
  53. data/view/{search.html.haml → one-column/search.html.haml} +0 -0
  54. data/view/{unreleased.html.haml → one-column/unreleased.html.haml} +0 -0
  55. data/view/two-column/about.html.haml +34 -0
  56. data/view/two-column/all.html.haml +47 -0
  57. data/view/two-column/contribute.html.haml +49 -0
  58. data/view/two-column/favicon.ico +0 -0
  59. data/view/two-column/get.html.haml +57 -0
  60. data/view/two-column/group.html.haml +52 -0
  61. data/view/two-column/index.html.haml +194 -0
  62. data/view/two-column/ios.ico +0 -0
  63. data/view/two-column/layout.html.haml +102 -0
  64. data/view/two-column/library.html.haml +64 -0
  65. data/view/two-column/public/inqlude.css +265 -0
  66. data/view/two-column/search.html.haml +20 -0
  67. data/view/two-column/topic.html.haml +47 -0
  68. metadata +41 -16
@@ -0,0 +1,64 @@
1
+ %home
2
+ = link_to "Home", "index"
3
+
4
+ %h3
5
+ -if m.display_name
6
+ = m.display_name
7
+ -else
8
+ = m.name
9
+
10
+ %p
11
+ = m.summary
12
+
13
+ - if m.has_version?
14
+ = list_attribute_content "Version", version_content
15
+ = list_attribute "licenses"
16
+ = list_attribute "platforms"
17
+ = list_attribute "authors"
18
+ = list_attribute "topics"
19
+ = list_attribute_content "Home page", link( m.urls.homepage )
20
+ = render_description
21
+
22
+ %br
23
+
24
+ - if more_urls?
25
+ %h4 Read more
26
+ %ul
27
+ = link_item "api_docs", "API documentation"
28
+ = link_item "tutorial", "Tutorial"
29
+ = link_item "download", "Download sources"
30
+ = link_item "vcs", "Source code repository"
31
+ = link_item "announcement", "Announcement"
32
+ = custom_urls
33
+
34
+ %br
35
+
36
+ - if m.packages.source
37
+ %h4 Packages
38
+ %ul
39
+ %li
40
+ = link_to "Source code", m.packages.source
41
+
42
+ %p{:class => "edit-link"}
43
+ = link_to "[Edit]", editor_url
44
+
45
+ %br{:clear => "all"}
46
+
47
+ - if disqus_enabled?
48
+ %hr
49
+
50
+ #disqus_thread
51
+
52
+ :javascript
53
+ var disqus_config = function () {
54
+ this.page.url = 'http://inqlude.org/libraries/#{m.name}.html';
55
+ this.page.identifier = '#{m.name}';
56
+ };
57
+ (function() {
58
+ var d = document, s = d.createElement('script');
59
+
60
+ s.src = 'https://inqlude.disqus.com/embed.js';
61
+
62
+ s.setAttribute('data-timestamp', +new Date());
63
+ (d.head || d.body).appendChild(s);
64
+ })();
@@ -0,0 +1,265 @@
1
+ body {
2
+ color: #111;
3
+ margin: 0px;
4
+ font-family: 'Droid Sans', arial, serif;
5
+ font-size: 155%;
6
+ }
7
+
8
+ a:link {
9
+ color: #44a51c;
10
+ text-decoration: none;
11
+ }
12
+ a:visited {
13
+ color: #2F7213;
14
+ text-decoration: none;
15
+ }
16
+ a:hover {
17
+ color: #44a51c;
18
+ text-decoration: underline;
19
+ }
20
+ a:active {
21
+ color: #2F7213;
22
+ text-decoration: underline;
23
+ }
24
+
25
+ .ribbon {
26
+ background-color: #a00;
27
+ overflow: hidden;
28
+ position: absolute;
29
+ left: -2em;
30
+ top: 1em;
31
+ -moz-transform: rotate(-45deg);
32
+ -webkit-transform: rotate(-45deg);
33
+ -moz-box-shadow: 0 0 1em #888;
34
+ -webkit-box-shadow: 0 0 1em #888;
35
+ }
36
+ .ribbon a {
37
+ border: 1px solid #faa;
38
+ color: #fff;
39
+ display: block;
40
+ font: bold 81.25% 'Helvetiva Neue', Helvetica, Arial, sans-serif;
41
+ margin: 0.05em 0 0.075em 0;
42
+ padding: 0.5em 3.5em;
43
+ text-align: center;
44
+ text-decoration: none;
45
+ text-shadow: 0 0 0.5em #444;
46
+ }
47
+
48
+ h1 {
49
+ font-family: monospace;
50
+ font-size: 180%;
51
+ margin-bottom: 0px;
52
+ }
53
+
54
+ h1 .logo {
55
+ font-size: 180%;
56
+ font-weight: bold;
57
+ }
58
+
59
+ h2 {
60
+ margin-top: -5px;
61
+ }
62
+
63
+ h2 .subtitle {
64
+ font-weight: bold;
65
+ font-size: 78%;
66
+ }
67
+
68
+ .logo a {
69
+ color: #111;
70
+ text-decoration: none;
71
+ }
72
+ .logo.green a {
73
+ color: #80C342;
74
+ text-decoration: none;
75
+ }
76
+ .subtitle a {
77
+ color: #111;
78
+ text-decoration: none;
79
+ }
80
+
81
+ h3 {
82
+ font-weight: bold;
83
+ font-size: 140%;
84
+ margin-top: 0px;
85
+ padding-bottom: 15px;
86
+ }
87
+
88
+ h4 {
89
+ font-weight: bold;
90
+ font-size: 120%;
91
+ }
92
+
93
+ .container-fluid.header {
94
+ -webkit-box-shadow: 0px 6px 0px rgba(50, 50, 50, 0.5);
95
+ -moz-box-shadow: 0px 6px 0px rgba(50, 50, 50, 0.5);
96
+ box-shadow: 0px 2px 4px rgba(0,0,0,.2);
97
+ background-color: #eee;
98
+ padding-left: 0px;
99
+ padding-right: 0px;
100
+ }
101
+
102
+ .col-sm-8.left {
103
+ margin-top: 0px;
104
+ padding: 0px;
105
+ padding-bottom: 5px;
106
+ padding-left: 55px;
107
+ }
108
+
109
+ .col-sm-4.right {
110
+ float: right;
111
+ text-align: right;
112
+ padding-top: 40px;
113
+ padding-right: 30px;
114
+ }
115
+
116
+ .container-fluid.content {
117
+ padding-right: 15px;
118
+ padding-left: 15px;
119
+ }
120
+
121
+ .col-sm-3.side-bar {
122
+ padding: 20px;
123
+ padding-top: 30px;
124
+ }
125
+
126
+ .description {
127
+ text-align: justify;
128
+ }
129
+
130
+ ul.titles-list {
131
+ list-style-type: circle;
132
+ padding-left: 15px;
133
+ }
134
+
135
+ .title {
136
+ font-weight: bold;
137
+ margin-top: 30px;
138
+ }
139
+
140
+ ul.side-list {
141
+ list-style-type: none;
142
+ padding-left: 0px;
143
+ }
144
+
145
+ date {
146
+ float: right;
147
+ }
148
+
149
+ number {
150
+ font-size: 80%;
151
+ }
152
+
153
+ .col-sm-9.main-pane {
154
+ padding-top: 30px;
155
+ padding-left: 15px;
156
+ padding-right: 20px;
157
+ }
158
+
159
+ table.table-hover.col-sm-12 {
160
+ margin-bottom: 20px;
161
+ }
162
+
163
+ table.table-hover.col-sm-12 tr:hover td {
164
+ background-color: #a4d477;
165
+ cursor: pointer;
166
+ }
167
+
168
+ tr:nth-child(odd) {
169
+ background-color: #eee;
170
+ }
171
+
172
+ td {
173
+ vertical-align: top;
174
+ padding: 5px;
175
+ padding-left: 6px;
176
+ }
177
+
178
+ td.name {
179
+ width: 15%;
180
+ }
181
+
182
+ td.summary {
183
+ width: 32%;
184
+ }
185
+
186
+ td.platforms {
187
+ width: 15%;
188
+ }
189
+
190
+ td.topics {
191
+ width: 19%;
192
+ }
193
+
194
+ td.licenses {
195
+ width: 19%;
196
+ }
197
+
198
+ .code {
199
+ background-color: #111;
200
+ color: #eee;
201
+ padding: 10px;
202
+ font-family: monospace;
203
+ margin: 6px;
204
+ }
205
+
206
+ .release-date {
207
+ font-size: 80%;
208
+ margin-left: 5px;
209
+ margin-right: 5px;
210
+ }
211
+
212
+ .old-versions {
213
+ font-size: 80%;
214
+ }
215
+
216
+ home {
217
+ float: right;
218
+ font-style: italic;
219
+ }
220
+
221
+ .footer {
222
+ float: right;
223
+ font-size: 80%;
224
+ font-style: italic;
225
+ }
226
+
227
+ .edit-link {
228
+ float: right;
229
+ font-size: 80%;
230
+ }
231
+
232
+ .col-sm-12.legal {
233
+ text-align: center;
234
+ font-size: 75%;
235
+ padding-bottom: 10px;
236
+ }
237
+
238
+ .attribute {
239
+ margin: 8px;
240
+ margin-left: 10%;
241
+ }
242
+
243
+ .attribute .label {
244
+ display: inline;
245
+ color: #555;
246
+ width: 120px;
247
+ text-align: right;
248
+ float: left;
249
+ margin-right: 8px;
250
+ font-size: inherit;
251
+ font-weight: normal;
252
+ }
253
+
254
+ .attribute .value {
255
+ display: inline;
256
+ }
257
+
258
+ i.fa {
259
+ font-size: 16px;
260
+ margin-left: 2px;
261
+ }
262
+
263
+ hr {
264
+ margin-top: 0px;
265
+ }
@@ -0,0 +1,20 @@
1
+ %home
2
+ = link_to "Home", "index"
3
+
4
+ .col-sm-12.inner-box
5
+ %h3 Search results
6
+
7
+ %hr
8
+
9
+ %gcse:searchresults-only
10
+ Loading...
11
+ :javascript
12
+ (function() {
13
+ var cx = '012526638842992167133:g7thmrlp2uw';
14
+ var gcse = document.createElement('script');
15
+ gcse.type = 'text/javascript';
16
+ gcse.async = true;
17
+ gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
18
+ var s = document.getElementsByTagName('script')[0];
19
+ s.parentNode.insertBefore(gcse, s);
20
+ })();
@@ -0,0 +1,47 @@
1
+ %home
2
+ = link_to "Home", "index"
3
+
4
+ %h3
5
+ = t
6
+
7
+ %table.table-hover.col-sm-12
8
+ - topic(t).each do |library|
9
+ %tr
10
+ %td.name
11
+ - if library.latest_manifest.display_name
12
+ = link_to_library(library.latest_manifest.name, library.latest_manifest.display_name)
13
+ - else
14
+ = link_to_library(library.latest_manifest.name, library.latest_manifest.name)
15
+ %td.summary
16
+ = library.manifests.last.summary
17
+ %td.platforms
18
+ - if library.manifests.last.platforms.include? 'Linux'
19
+ %i.fa.fa-linux
20
+ - if library.manifests.last.platforms.include? 'OS X'
21
+ %i.fa.fa-apple
22
+ - if library.manifests.last.platforms.include? 'Windows'
23
+ %i.fa.fa-windows
24
+ - if library.manifests.last.platforms.include? 'Android'
25
+ %i.fa.fa-android
26
+ - if library.manifests.last.platforms.include? 'iOS'
27
+ %img{:src => "../ios.ico", :height => "15%;"}
28
+ %td.topics
29
+ - if library.manifests.last.topics
30
+ - library.manifests.last.topics.each do |topic|
31
+ - if (topic != library.manifests.last.topics.last)
32
+ = topic + ", "
33
+ - else
34
+ = topic
35
+ %td.licenses
36
+ - library.manifests.last.licenses.each do |license|
37
+ - if (license != library.manifests.last.licenses.last)
38
+ = license + ", "
39
+ - else
40
+ = license
41
+ :javascript
42
+ $('table.table-hover.col-sm-12 tr').click( function() {
43
+ window.location = $(this).find('a').attr('href');
44
+ }).hover( function() {
45
+ $(this).toggleClass('hover');
46
+ });
47
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inqlude
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cornelius Schumacher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-12 00:00:00.000000000 Z
11
+ date: 2016-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -160,6 +160,7 @@ files:
160
160
  - examples/qjson.manifest
161
161
  - inqlude.gemspec
162
162
  - lib/cli.rb
163
+ - lib/cli_controller.rb
163
164
  - lib/creator.rb
164
165
  - lib/distro.rb
165
166
  - lib/distros/suse.rb
@@ -214,6 +215,10 @@ files:
214
215
  - spec/integration/cli_verify_spec.rb
215
216
  - spec/integration/cli_view_spec.rb
216
217
  - spec/integration/spec_helper.rb
218
+ - spec/online/cli_view_spec.rb
219
+ - spec/online/spec_helper.rb
220
+ - spec/stubs/qmake/qmake
221
+ - spec/unit/cli_controller_spec.rb
217
222
  - spec/unit/creator_spec.rb
218
223
  - spec/unit/downloader_spec.rb
219
224
  - spec/unit/json_object_spec.rb
@@ -227,26 +232,45 @@ files:
227
232
  - spec/unit/spec_helper.rb
228
233
  - spec/unit/verifier_spec.rb
229
234
  - spec/unit/view_spec.rb
235
+ - topics/Manifest_updater/README.md
236
+ - topics/Manifest_updater/app.js
237
+ - topics/Manifest_updater/manifests/example/example.manifest
238
+ - topics/Manifest_updater/package.json
239
+ - topics/Manifest_updater/topics.csv
240
+ - topics/Manifest_updater/update_manifests/example/example.manifest
230
241
  - topics/README.md
231
242
  - topics/list_topics
232
243
  - topics/list_topics.rb
233
244
  - topics/list_topics_spec.rb
234
245
  - topics/topics-test.csv
235
246
  - topics/topics.csv
236
- - view/about.html.haml
237
- - view/all.html.haml
238
- - view/commercial.html.haml
239
- - view/contribute.html.haml
240
- - view/development.html.haml
241
- - view/favicon.ico
242
- - view/get.html.haml
243
- - view/group.html.haml
244
- - view/index.html.haml
245
- - view/layout.html.haml
246
- - view/library.html.haml
247
- - view/public/inqlude.css
248
- - view/search.html.haml
249
- - view/unreleased.html.haml
247
+ - view/one-column/about.html.haml
248
+ - view/one-column/all.html.haml
249
+ - view/one-column/commercial.html.haml
250
+ - view/one-column/contribute.html.haml
251
+ - view/one-column/development.html.haml
252
+ - view/one-column/favicon.ico
253
+ - view/one-column/get.html.haml
254
+ - view/one-column/group.html.haml
255
+ - view/one-column/index.html.haml
256
+ - view/one-column/layout.html.haml
257
+ - view/one-column/library.html.haml
258
+ - view/one-column/public/inqlude.css
259
+ - view/one-column/search.html.haml
260
+ - view/one-column/unreleased.html.haml
261
+ - view/two-column/about.html.haml
262
+ - view/two-column/all.html.haml
263
+ - view/two-column/contribute.html.haml
264
+ - view/two-column/favicon.ico
265
+ - view/two-column/get.html.haml
266
+ - view/two-column/group.html.haml
267
+ - view/two-column/index.html.haml
268
+ - view/two-column/ios.ico
269
+ - view/two-column/layout.html.haml
270
+ - view/two-column/library.html.haml
271
+ - view/two-column/public/inqlude.css
272
+ - view/two-column/search.html.haml
273
+ - view/two-column/topic.html.haml
250
274
  - yes_ship_it.conf
251
275
  homepage: http://inqlude.org
252
276
  licenses:
@@ -273,3 +297,4 @@ signing_key:
273
297
  specification_version: 4
274
298
  summary: Command line tool for handling Qt based libraries
275
299
  test_files: []
300
+ has_rdoc: