birds 0.0.1 → 0.0.2

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: 7fe5c975045c5cd3f27f17496e5fe94c89517e2f
4
- data.tar.gz: 125796780f21a82f7266294d4f3e64a4671b25e4
3
+ metadata.gz: f77e1a7a79fc91147c346f34296c6bd825c56e8c
4
+ data.tar.gz: 583690db5069a7362542d026ad19dd74b507cbb2
5
5
  SHA512:
6
- metadata.gz: 6036a21f6e4b8e32d5fec07ce207fddf108e942ca488e2e29690512af14c5447fbd310866170de79307f5ec8730435646f255880ab30db01b96ba5a9ab3ecde9
7
- data.tar.gz: f6f880fc852613a626cb2cf8274ab5602bdc05fa03ee62599ce1dd1aa81113df646dfc42dd41066b98478cf3e152be1c6ab6ce6bca7a97c17858f2fd694c4102
6
+ metadata.gz: 77012653edf49a8b32a58a87cf524e68c4dced1e69792adee13da69d3cba5a5d0c15e7223157646bbd84615ba6a017af02757fea9aa53b960a3cebcaa618b9d8
7
+ data.tar.gz: aeca7a8045e56d9b3fcfbcb64501e7335231dc5e32e1c1e246c0f1207ddacdb18b4a4997a6fa4a6e72052ad34571690b8d533d574994e7381d23f009fa6253d9
data/ChangeLog CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  = Revision history for Birds
4
4
 
5
+ == 0.0.2 [2016-10-12]
6
+
7
+ * Include asset files in gemspec.
8
+
5
9
  == 0.0.1 [2016-10-12]
6
10
 
7
11
  * Initial release.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to Birds version 0.0.1
5
+ This documentation refers to Birds version 0.0.2
6
6
 
7
7
 
8
8
  == DESCRIPTION
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ begin
13
13
  email: %q{jens.wille@gmail.com},
14
14
  license: %q{AGPL-3.0},
15
15
  homepage: :blackwinter,
16
- extra_files: FileList['*.sample', 'lib/**/{public,views}/*'].to_a,
16
+ extra_files: FileList['*.sample', 'lib/**/{public{,/{css,images,js}},views}/*'].to_a,
17
17
  dependencies: {
18
18
  'sinatra-bells' => '~> 0.4',
19
19
  'solr4r' => '~> 0.3',
@@ -0,0 +1,81 @@
1
+ html, body {
2
+ height: 100%;
3
+ }
4
+
5
+ #wrap {
6
+ min-height: 100%;
7
+ height: auto !important;
8
+ height: 100%;
9
+ margin: 0 auto -120px;
10
+ }
11
+
12
+ #push {
13
+ height: 120px;
14
+ }
15
+
16
+ footer {
17
+ height: 80px;
18
+ margin-top: 40px;
19
+ padding-bottom: 20px;
20
+ padding-top: 20px;
21
+ border-top: 1px solid #E5E5E5;
22
+ color: #777777;
23
+ }
24
+
25
+ .navbar-brand {
26
+ padding: 1px 15px;
27
+ }
28
+
29
+ .facet-filter input {
30
+ width: 90%;
31
+ height: 30px;
32
+ font-size: 12px;
33
+ }
34
+
35
+ .facet-filter, .filter-list {
36
+ margin-top: 0.5em;
37
+ }
38
+
39
+ .filter-list > li {
40
+ line-height: 1.7em;
41
+ }
42
+
43
+ .list-group-item.collapse {
44
+ display: none;
45
+ }
46
+
47
+ .list-group-item.collapse.in {
48
+ display: block;
49
+ }
50
+
51
+ .toggle-explain {
52
+ cursor: help;
53
+ }
54
+
55
+ .toggle-explain + pre[id|=explain] {
56
+ margin-top: 0.5em;
57
+ }
58
+
59
+ .toggle-facet, .facet-filter .glyphicon-remove {
60
+ cursor: pointer;
61
+ }
62
+
63
+ .facet-filter .glyphicon-remove::before {
64
+ vertical-align: middle;
65
+ }
66
+
67
+ .facet-group > li {
68
+ font-size: small;
69
+ padding: 5px 10px;
70
+ }
71
+
72
+ .info-display {
73
+ margin: 0.5em 0;
74
+ padding: 5px 10px;
75
+ border-radius: 4px;
76
+ font-size: small;
77
+ }
78
+
79
+ a[href] > mark {
80
+ color: inherit;
81
+ }
@@ -0,0 +1,48 @@
1
+ $(function() { $.support.transition = false; })
2
+
3
+ with ($('.facet-filter')) {
4
+
5
+ find('form').submit(function() {
6
+ return false;
7
+ });
8
+
9
+ find('input').keyup(function() {
10
+ var v = $(this).val(), f,
11
+ c = function(e) { return e.hasClass('collapse'); };
12
+
13
+ if (v) {
14
+ v = v.toLowerCase();
15
+
16
+ f = function(e) {
17
+ if (e.find('a').text().toLowerCase().indexOf(v) < 0) {
18
+ c(e) ? e.collapse('hide') : e.hide();
19
+ }
20
+ else {
21
+ c(e) ? e.collapse('show') : e.show();
22
+ }
23
+ };
24
+ }
25
+ else {
26
+ f = function(e) {
27
+ c(e) ? e.collapse('hide') : e.show();
28
+ }
29
+ }
30
+
31
+ $(this).closest('.panel').find('li').each(function(i, e) {
32
+ f($(e));
33
+ });
34
+ });
35
+
36
+ find('.glyphicon-remove').click(function() {
37
+ var i = $(this).closest('.facet-filter').find('input');
38
+
39
+ i.val('');
40
+ i.keyup();
41
+ i.focus();
42
+ });
43
+
44
+ on('shown.bs.collapse', function() {
45
+ $(this).find('input').focus();
46
+ });
47
+
48
+ }
@@ -4,7 +4,7 @@ class Birds
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 0
7
- TINY = 1
7
+ TINY = 2
8
8
 
9
9
  class << self
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: birds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
@@ -106,7 +106,13 @@ files:
106
106
  - lib/birds/app/helpers.rb
107
107
  - lib/birds/app/helpers/controller.rb
108
108
  - lib/birds/app/helpers/view.rb
109
+ - lib/birds/app/public/css/birds.css
109
110
  - lib/birds/app/public/favicon.ico
111
+ - lib/birds/app/public/images/bird1.png
112
+ - lib/birds/app/public/images/bird2.png
113
+ - lib/birds/app/public/images/bird3.png
114
+ - lib/birds/app/public/images/birds.png
115
+ - lib/birds/app/public/js/birds.js
110
116
  - lib/birds/app/settings.rb
111
117
  - lib/birds/app/views/_display.erb
112
118
  - lib/birds/app/views/_documents.erb
@@ -125,13 +131,13 @@ licenses:
125
131
  metadata: {}
126
132
  post_install_message: |2+
127
133
 
128
- birds-0.0.1 [2016-10-12]:
134
+ birds-0.0.2 [2016-10-12]:
129
135
 
130
- * Initial release.
136
+ * Include asset files in gemspec.
131
137
 
132
138
  rdoc_options:
133
139
  - "--title"
134
- - birds Application documentation (v0.0.1)
140
+ - birds Application documentation (v0.0.2)
135
141
  - "--charset"
136
142
  - UTF-8
137
143
  - "--line-numbers"
@@ -152,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
158
  version: '0'
153
159
  requirements: []
154
160
  rubyforge_project:
155
- rubygems_version: 2.6.6
161
+ rubygems_version: 2.6.7
156
162
  signing_key:
157
163
  specification_version: 4
158
164
  summary: Bibliographic information retrieval & document search.