appdoc 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/controllers/documents_controller.rb +72 -0
- data/app/models/document.rb +32 -0
- data/app/views/documents/_documents.html.haml +18 -0
- data/app/views/documents/_form.html.haml +31 -0
- data/app/views/documents/_index_aside.html.haml +5 -0
- data/app/views/documents/edit.html.haml +2 -0
- data/app/views/documents/index.html.haml +12 -0
- data/app/views/documents/new.html.haml +2 -0
- data/app/views/documents/show.html.haml +8 -0
- data/config/routes.rb +5 -0
- data/lib/appdoc/engine.rb +7 -0
- data/lib/appdoc/version.rb +3 -0
- data/lib/appdoc.rb +22 -0
- data/lib/generators/appdoc/appdoc_generator.rb +31 -0
- data/lib/generators/appdoc/templates/appdoc_config.rb +6 -0
- data/lib/generators/appdoc/templates/migration.rb +15 -0
- data/lib/generators/appdoc/templates/public/javascripts/SmartTextBox.js +962 -0
- data/lib/generators/appdoc/templates/public/stylesheets/jquery/smart_text_box/SmartTextBox.css +148 -0
- data/lib/generators/appdoc/templates/public/stylesheets/jquery/smart_text_box/imgs/close.gif +0 -0
- metadata +119 -0
data/lib/generators/appdoc/templates/public/stylesheets/jquery/smart_text_box/SmartTextBox.css
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
/*
|
2
|
+
* SmartTextBox.css
|
3
|
+
*
|
4
|
+
* SmartTextBox default styles
|
5
|
+
* Copyright (c) 2009-2010 Pierre Gayvallet - GPL license.
|
6
|
+
*/
|
7
|
+
|
8
|
+
.smartTextBox{
|
9
|
+
font: 12px "Lucida Grande",
|
10
|
+
Verdana;
|
11
|
+
cursor: text;
|
12
|
+
}
|
13
|
+
|
14
|
+
.smartTextBox-items{
|
15
|
+
zoom: 1;
|
16
|
+
overflow: hidden;
|
17
|
+
margin: 0;
|
18
|
+
padding: 3px 4px 0;
|
19
|
+
border: 1px solid #999;
|
20
|
+
*padding-bottom: 3px;
|
21
|
+
}
|
22
|
+
|
23
|
+
.smartTextBox-elem{
|
24
|
+
list-style-type: none;
|
25
|
+
line-height: 18px;
|
26
|
+
float: left;
|
27
|
+
display: block;
|
28
|
+
padding: 0;
|
29
|
+
margin: 0 5px 3px 0;
|
30
|
+
cursor: default;
|
31
|
+
}
|
32
|
+
|
33
|
+
.smartTextBox-box-elem{
|
34
|
+
position: relative;
|
35
|
+
padding: 0 5px;
|
36
|
+
border: 1px solid #CAD8F3;
|
37
|
+
background: #DEE7F8;
|
38
|
+
cursor: default;
|
39
|
+
-moz-border-radius: 2px;
|
40
|
+
-webkit-border-radius: 2px;
|
41
|
+
border-radius: 2px;
|
42
|
+
}
|
43
|
+
|
44
|
+
.smartTextBox-input-elem{
|
45
|
+
backgound-color : transparent;
|
46
|
+
}
|
47
|
+
|
48
|
+
.smartTextBox-input-elem-valueInput{
|
49
|
+
border: none;
|
50
|
+
}
|
51
|
+
|
52
|
+
.smartTextBox-elem-hover{
|
53
|
+
|
54
|
+
}
|
55
|
+
|
56
|
+
.smartTextBox-elem-box-hover{
|
57
|
+
background-color: #BBCEF1;
|
58
|
+
}
|
59
|
+
|
60
|
+
.smartTextBox-elem-input-hover{
|
61
|
+
|
62
|
+
}
|
63
|
+
|
64
|
+
.smartTextBox-elem-focus{
|
65
|
+
|
66
|
+
}
|
67
|
+
|
68
|
+
.smartTextBox-elem-box-focus{
|
69
|
+
background-color: #598BEC;
|
70
|
+
}
|
71
|
+
|
72
|
+
.smartTextBox-elem-input-focus{
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
.smartTextBox-elem-valueContainer{
|
77
|
+
margin-right: 8px;
|
78
|
+
white-space: nowrap;
|
79
|
+
}
|
80
|
+
|
81
|
+
.smartTextBox-elem-deleteButton{
|
82
|
+
position: absolute;
|
83
|
+
right: 4px;
|
84
|
+
top: 6px;
|
85
|
+
display: block;
|
86
|
+
width: 7px;
|
87
|
+
height: 7px;
|
88
|
+
font-size: 1px;
|
89
|
+
background: url('imgs/close.gif');
|
90
|
+
}
|
91
|
+
|
92
|
+
.smartTextBox-elem-deleteButton:hover{
|
93
|
+
border: none;
|
94
|
+
background-position: 7px;
|
95
|
+
text-decoration: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
/* AutoComplete */
|
101
|
+
.smartTextBox-autocomplete{
|
102
|
+
position: absolute;
|
103
|
+
z-index: 10;
|
104
|
+
}
|
105
|
+
|
106
|
+
.smartTextBox-autocomplete-placeholder{
|
107
|
+
opacity: 0.9;
|
108
|
+
filter: alpha(opacity=90);
|
109
|
+
background: #eee;
|
110
|
+
border: 1px solid #999;
|
111
|
+
border-top: none;
|
112
|
+
padding: 5px 7px;
|
113
|
+
}
|
114
|
+
|
115
|
+
.smartTextBox-autocomplete-results{
|
116
|
+
opacity: 0.9;
|
117
|
+
filter: alpha(opacity=90);
|
118
|
+
background: #eee;
|
119
|
+
border: 1px solid #999;
|
120
|
+
border-top: none;
|
121
|
+
margin: 0;
|
122
|
+
padding: 0;
|
123
|
+
}
|
124
|
+
|
125
|
+
.smartTextBox-autocomplete-result{
|
126
|
+
margin: 0;
|
127
|
+
padding: 5px;
|
128
|
+
list-style-type: none;
|
129
|
+
background: #eee;
|
130
|
+
cursor: pointer;
|
131
|
+
.width: 100%;
|
132
|
+
}
|
133
|
+
|
134
|
+
.smartTextBox-autocomplete-value {
|
135
|
+
display: none;
|
136
|
+
}
|
137
|
+
|
138
|
+
.smartTextBox-autocomplete-highligh {
|
139
|
+
font-weight: bold;
|
140
|
+
}
|
141
|
+
|
142
|
+
.smartTextBox-autocomplete-result-focus{
|
143
|
+
background: #C6D9E4;
|
144
|
+
}
|
145
|
+
|
146
|
+
span.help_text {
|
147
|
+
font-style: italic;
|
148
|
+
}
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: appdoc
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ryan Hall
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-09-06 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: acts-as-taggable-on
|
16
|
+
requirement: &73967610 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.1.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *73967610
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: declarative_authorization
|
27
|
+
requirement: &73966490 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.5.3
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *73966490
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: haml
|
38
|
+
requirement: &73964810 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 3.1.2
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *73964810
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: kaminari
|
49
|
+
requirement: &73963450 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.12.4
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *73963450
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: meta_search
|
60
|
+
requirement: &73960980 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.0.6
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *73960980
|
69
|
+
description: Allows you to add documents and documentation to your app
|
70
|
+
email:
|
71
|
+
- ryan.e.hall@biola.edu
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- app/models/document.rb
|
77
|
+
- app/views/documents/new.html.haml
|
78
|
+
- app/views/documents/edit.html.haml
|
79
|
+
- app/views/documents/show.html.haml
|
80
|
+
- app/views/documents/index.html.haml
|
81
|
+
- app/views/documents/_documents.html.haml
|
82
|
+
- app/views/documents/_form.html.haml
|
83
|
+
- app/views/documents/_index_aside.html.haml
|
84
|
+
- app/controllers/documents_controller.rb
|
85
|
+
- lib/appdoc/version.rb
|
86
|
+
- lib/appdoc/engine.rb
|
87
|
+
- lib/generators/appdoc/appdoc_generator.rb
|
88
|
+
- lib/generators/appdoc/templates/public/stylesheets/jquery/smart_text_box/imgs/close.gif
|
89
|
+
- lib/generators/appdoc/templates/public/stylesheets/jquery/smart_text_box/SmartTextBox.css
|
90
|
+
- lib/generators/appdoc/templates/public/javascripts/SmartTextBox.js
|
91
|
+
- lib/generators/appdoc/templates/migration.rb
|
92
|
+
- lib/generators/appdoc/templates/appdoc_config.rb
|
93
|
+
- lib/appdoc.rb
|
94
|
+
- config/routes.rb
|
95
|
+
homepage: https://github.com/biola/appdoc
|
96
|
+
licenses: []
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
require_paths:
|
100
|
+
- lib
|
101
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ! '>='
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
requirements: []
|
114
|
+
rubyforge_project: appdoc
|
115
|
+
rubygems_version: 1.8.10
|
116
|
+
signing_key:
|
117
|
+
specification_version: 3
|
118
|
+
summary: Documentation for your app
|
119
|
+
test_files: []
|