benhoskings-ambition 0.5.4.3 → 0.5.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Rakefile +16 -0
- data/ambition.gemspec +106 -105
- data/deps.rip +3 -0
- data/lib/ambition/processors/base.rb +1 -1
- data/site/Rakefile +61 -0
- data/site/src/_adapters.textile +23 -0
- data/site/src/adapters.textile +163 -0
- data/site/src/adapters/activerecord.textile +234 -0
- data/site/src/api.textile +105 -0
- data/site/src/index.textile +47 -0
- data/site/src/layout.textile +35 -0
- data/site/src/static/bg.png +0 -0
- data/site/src/static/code_highlighter.js +188 -0
- data/site/src/static/css.js +21 -0
- data/site/src/static/html.js +19 -0
- data/site/src/static/hubris.css +139 -0
- data/site/src/static/javascript.js +17 -0
- data/site/src/static/ruby.js +29 -0
- metadata +48 -36
@@ -0,0 +1,21 @@
|
|
1
|
+
CodeHighlighter.addStyle("css", {
|
2
|
+
comment : {
|
3
|
+
exp : /\/\*[^*]*\*+([^\/][^*]*\*+)*\//
|
4
|
+
},
|
5
|
+
keywords : {
|
6
|
+
exp : /@\w[\w\s]*/
|
7
|
+
},
|
8
|
+
selectors : {
|
9
|
+
exp : "([\\w-:\\[.#][^{};>]*)(?={)"
|
10
|
+
},
|
11
|
+
properties : {
|
12
|
+
exp : "([\\w-]+)(?=\\s*:)"
|
13
|
+
},
|
14
|
+
units : {
|
15
|
+
exp : /([0-9])(em|en|px|%|pt)\b/,
|
16
|
+
replacement : "$1<span class=\"$0\">$2</span>"
|
17
|
+
},
|
18
|
+
urls : {
|
19
|
+
exp : /url\([^\)]*\)/
|
20
|
+
}
|
21
|
+
});
|
@@ -0,0 +1,19 @@
|
|
1
|
+
CodeHighlighter.addStyle("html", {
|
2
|
+
comment : {
|
3
|
+
exp: /<!\s*(--([^-]|[\r\n]|-[^-])*--\s*)>/
|
4
|
+
},
|
5
|
+
tag : {
|
6
|
+
exp: /(<\/?)([a-zA-Z]+\s?)/,
|
7
|
+
replacement: "$1<span class=\"$0\">$2</span>"
|
8
|
+
},
|
9
|
+
string : {
|
10
|
+
exp : /'[^']*'|"[^"]*"/
|
11
|
+
},
|
12
|
+
attribute : {
|
13
|
+
exp: /\b([a-zA-Z-:]+)(=)/,
|
14
|
+
replacement: "<span class=\"$0\">$1</span>$2"
|
15
|
+
},
|
16
|
+
doctype : {
|
17
|
+
exp: /<!DOCTYPE([^&]|&[^g]|&g[^t])*>/
|
18
|
+
}
|
19
|
+
});
|
@@ -0,0 +1,139 @@
|
|
1
|
+
* {
|
2
|
+
margin: 0;
|
3
|
+
padding: 0;
|
4
|
+
}
|
5
|
+
|
6
|
+
body {
|
7
|
+
background: url(/static/bg.png) repeat;
|
8
|
+
color: #333;
|
9
|
+
font-family: serif;
|
10
|
+
}
|
11
|
+
|
12
|
+
#main {
|
13
|
+
background: white;
|
14
|
+
width: 700px;
|
15
|
+
margin: 0 auto;
|
16
|
+
border-right: 2px solid black;
|
17
|
+
border-bottom: 2px solid black;
|
18
|
+
}
|
19
|
+
|
20
|
+
#header {
|
21
|
+
border-bottom: 1px solid #aaa;
|
22
|
+
background: #eee;
|
23
|
+
padding-left: 10px;
|
24
|
+
margin-bottom: 10px;
|
25
|
+
}
|
26
|
+
|
27
|
+
#header h1 {
|
28
|
+
font-family: georgia;
|
29
|
+
color: #aaa;
|
30
|
+
letter-spacing: -3px;
|
31
|
+
font-size: 3em;
|
32
|
+
text-shadow: #0c0c0c 2px 2px 1px;
|
33
|
+
}
|
34
|
+
|
35
|
+
.a {
|
36
|
+
color: red;
|
37
|
+
}
|
38
|
+
|
39
|
+
#header h1 .a {
|
40
|
+
font-size: 1.4em;
|
41
|
+
}
|
42
|
+
|
43
|
+
#nav {
|
44
|
+
float: right;
|
45
|
+
padding: 10px;
|
46
|
+
margin-top: -35px;
|
47
|
+
font-family: sans-serif;
|
48
|
+
font-size: 0.9em;
|
49
|
+
}
|
50
|
+
|
51
|
+
#nav a {
|
52
|
+
text-decoration: none;
|
53
|
+
}
|
54
|
+
|
55
|
+
#nav a:hover {
|
56
|
+
text-decoration: underline;
|
57
|
+
}
|
58
|
+
|
59
|
+
#body {
|
60
|
+
padding: 0 20px 0 10px;
|
61
|
+
}
|
62
|
+
|
63
|
+
h2 {
|
64
|
+
border-bottom: 1px dotted #aaa;
|
65
|
+
margin-bottom: 10px;
|
66
|
+
margin-top: 15px;
|
67
|
+
}
|
68
|
+
|
69
|
+
ul, p {
|
70
|
+
padding: 0 0 10px 10px;
|
71
|
+
line-height: 17px;
|
72
|
+
font-family: verdana, arial, sans-serif;
|
73
|
+
font-size: 0.7em;
|
74
|
+
}
|
75
|
+
|
76
|
+
a {
|
77
|
+
color: #333;
|
78
|
+
}
|
79
|
+
|
80
|
+
a:hover {
|
81
|
+
text-decoration: none;
|
82
|
+
}
|
83
|
+
|
84
|
+
ul {
|
85
|
+
margin-left: 20px;
|
86
|
+
}
|
87
|
+
|
88
|
+
code {
|
89
|
+
font-size: 1.3em;
|
90
|
+
background: #eee;
|
91
|
+
}
|
92
|
+
|
93
|
+
pre {
|
94
|
+
margin: 0 18px 10px 10px;
|
95
|
+
padding: 10px;
|
96
|
+
border: 1px solid #aaa;
|
97
|
+
background: #eee;
|
98
|
+
}
|
99
|
+
|
100
|
+
#footer {
|
101
|
+
font-family: helvetica;
|
102
|
+
font-size:0.9em;
|
103
|
+
border-top: 1px solid #aaa;
|
104
|
+
background: #eee;
|
105
|
+
padding: 10px;
|
106
|
+
text-align: center;
|
107
|
+
margin-top: 15px;
|
108
|
+
}
|
109
|
+
|
110
|
+
.ruby .string {
|
111
|
+
color: #ff0000;
|
112
|
+
}
|
113
|
+
.ruby .brackets {
|
114
|
+
color: #777;
|
115
|
+
}
|
116
|
+
|
117
|
+
.ruby .regex {
|
118
|
+
color: #37ffff;
|
119
|
+
}
|
120
|
+
|
121
|
+
.normal {}
|
122
|
+
.comment { color: #9900FF; }
|
123
|
+
.keywords, .expression { color: #C71585; font-weight: bold; }
|
124
|
+
.method { color: #077; }
|
125
|
+
.class { color: #074; }
|
126
|
+
.module { color: #050; }
|
127
|
+
.punct { color: #447; font-weight: bold; }
|
128
|
+
.symbol { color: #099; }
|
129
|
+
.string { color: #6600CC; background: #FFE; }
|
130
|
+
.char { color: #F07; }
|
131
|
+
.ident { color: #004; }
|
132
|
+
.constant { color: #07F; }
|
133
|
+
.regex { color: #B66; background: #FEF; }
|
134
|
+
.number { color: blue; }
|
135
|
+
.attribute { color: #7BB; }
|
136
|
+
.global { color: #7FB; }
|
137
|
+
.expr { color: #227; }
|
138
|
+
.escape { color: #277; }
|
139
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
CodeHighlighter.addStyle("javascript",{
|
2
|
+
comment : {
|
3
|
+
exp : /(\/\/[^\n]*(\n|$))|(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)/
|
4
|
+
},
|
5
|
+
brackets : {
|
6
|
+
exp : /\(|\)/
|
7
|
+
},
|
8
|
+
string : {
|
9
|
+
exp : /'[^']*'|"[^"]*"/
|
10
|
+
},
|
11
|
+
keywords : {
|
12
|
+
exp : /\b(arguments|break|case|continue|default|delete|do|else|false|for|function|if|in|instanceof|new|null|return|switch|this|true|typeof|var|void|while|with)\b/
|
13
|
+
},
|
14
|
+
global : {
|
15
|
+
exp : /\b(toString|valueOf|window|element|prototype|constructor|document|escape|unescape|parseInt|parseFloat|setTimeout|clearTimeout|setInterval|clearInterval|NaN|isNaN|Infinity)\b/
|
16
|
+
}
|
17
|
+
});
|
@@ -0,0 +1,29 @@
|
|
1
|
+
CodeHighlighter.addStyle("ruby",{
|
2
|
+
comment : {
|
3
|
+
exp : /(#[^\n]+)|(#\s*\n)/
|
4
|
+
},
|
5
|
+
brackets : {
|
6
|
+
exp : /\(|\)/
|
7
|
+
},
|
8
|
+
string : {
|
9
|
+
exp : /'[^']*'|"[^"]*"/
|
10
|
+
},
|
11
|
+
keywords : {
|
12
|
+
exp : /\b(extend|def|module|class|require)\b/
|
13
|
+
},
|
14
|
+
expression : {
|
15
|
+
exp : /\b(do|end|if|yield|then|else|for|trap|exit|until|unless|while|elsif|case|when|break|retry|redo|rescue|raise)\b|\bdefined\?/ },
|
16
|
+
/* Added by Shelly Fisher (shelly@agileevolved.com) */
|
17
|
+
symbol : {
|
18
|
+
exp : /([^:])(:[A-Za-z0-9_!?]+)/
|
19
|
+
},
|
20
|
+
constant : {
|
21
|
+
exp : /[A-Z]{1}\w+|\bself\b/
|
22
|
+
},
|
23
|
+
regex : {
|
24
|
+
exp : /\/.+\//
|
25
|
+
},
|
26
|
+
number : {
|
27
|
+
exp : /\d/
|
28
|
+
}
|
29
|
+
});
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: benhoskings-ambition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.4.
|
4
|
+
version: 0.5.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Wanstrath
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2009-10-22 00:00:00 +10:00
|
14
14
|
default_executable: ambition_adapter
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -44,43 +44,39 @@ dependencies:
|
|
44
44
|
version: 1.1.1
|
45
45
|
version:
|
46
46
|
description: Ambition builds yer API calls from plain jane Ruby.
|
47
|
-
email: chris@ozmm.org
|
47
|
+
email: chris@ozmm.org
|
48
48
|
executables:
|
49
49
|
- ambition_adapter
|
50
50
|
extensions: []
|
51
51
|
|
52
52
|
extra_rdoc_files:
|
53
|
-
- bin/ambition_adapter
|
54
|
-
- lib/ambition/api.rb
|
55
|
-
- lib/ambition/context.rb
|
56
|
-
- lib/ambition/core_ext.rb
|
57
|
-
- lib/ambition/enumerable.rb
|
58
|
-
- lib/ambition/processors/base.rb
|
59
|
-
- lib/ambition/processors/ruby.rb
|
60
|
-
- lib/ambition/processors/select.rb
|
61
|
-
- lib/ambition/processors/slice.rb
|
62
|
-
- lib/ambition/processors/sort.rb
|
63
|
-
- lib/ambition/sexp_translator.rb
|
64
|
-
- lib/ambition.rb
|
65
53
|
- LICENSE
|
66
54
|
- README
|
67
55
|
files:
|
56
|
+
- .gitignore
|
57
|
+
- LICENSE
|
58
|
+
- Manifest
|
59
|
+
- README
|
60
|
+
- Rakefile
|
61
|
+
- ambition.gemspec
|
62
|
+
- app_generators/ambition_adapter/USAGE
|
68
63
|
- app_generators/ambition_adapter/ambition_adapter_generator.rb
|
64
|
+
- app_generators/ambition_adapter/templates/LICENSE
|
65
|
+
- app_generators/ambition_adapter/templates/README
|
66
|
+
- app_generators/ambition_adapter/templates/Rakefile
|
69
67
|
- app_generators/ambition_adapter/templates/lib/adapter/base.rb.erb
|
70
68
|
- app_generators/ambition_adapter/templates/lib/adapter/query.rb.erb
|
71
69
|
- app_generators/ambition_adapter/templates/lib/adapter/select.rb.erb
|
72
70
|
- app_generators/ambition_adapter/templates/lib/adapter/slice.rb.erb
|
73
71
|
- app_generators/ambition_adapter/templates/lib/adapter/sort.rb.erb
|
74
72
|
- app_generators/ambition_adapter/templates/lib/init.rb.erb
|
75
|
-
- app_generators/ambition_adapter/templates/LICENSE
|
76
|
-
- app_generators/ambition_adapter/templates/Rakefile
|
77
|
-
- app_generators/ambition_adapter/templates/README
|
78
73
|
- app_generators/ambition_adapter/templates/test/helper.rb.erb
|
79
74
|
- app_generators/ambition_adapter/templates/test/select_test.rb.erb
|
80
75
|
- app_generators/ambition_adapter/templates/test/slice_test.rb.erb
|
81
76
|
- app_generators/ambition_adapter/templates/test/sort_test.rb.erb
|
82
|
-
- app_generators/ambition_adapter/USAGE
|
83
77
|
- bin/ambition_adapter
|
78
|
+
- deps.rip
|
79
|
+
- lib/ambition.rb
|
84
80
|
- lib/ambition/api.rb
|
85
81
|
- lib/ambition/context.rb
|
86
82
|
- lib/ambition/core_ext.rb
|
@@ -91,10 +87,20 @@ files:
|
|
91
87
|
- lib/ambition/processors/slice.rb
|
92
88
|
- lib/ambition/processors/sort.rb
|
93
89
|
- lib/ambition/sexp_translator.rb
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
90
|
+
- site/Rakefile
|
91
|
+
- site/src/_adapters.textile
|
92
|
+
- site/src/adapters.textile
|
93
|
+
- site/src/adapters/activerecord.textile
|
94
|
+
- site/src/api.textile
|
95
|
+
- site/src/index.textile
|
96
|
+
- site/src/layout.textile
|
97
|
+
- site/src/static/bg.png
|
98
|
+
- site/src/static/code_highlighter.js
|
99
|
+
- site/src/static/css.js
|
100
|
+
- site/src/static/html.js
|
101
|
+
- site/src/static/hubris.css
|
102
|
+
- site/src/static/javascript.js
|
103
|
+
- site/src/static/ruby.js
|
98
104
|
- test/adapters/exemplar/association_test.rb
|
99
105
|
- test/adapters/exemplar/count_test.rb
|
100
106
|
- test/adapters/exemplar/detect_test.rb
|
@@ -107,24 +113,20 @@ files:
|
|
107
113
|
- test/adapters/exemplar/sort_test.rb
|
108
114
|
- test/debug
|
109
115
|
- test/helper.rb
|
110
|
-
- ambition.gemspec
|
111
116
|
has_rdoc: true
|
112
117
|
homepage: http://errtheblog.com/
|
118
|
+
licenses: []
|
119
|
+
|
113
120
|
post_install_message:
|
114
121
|
rdoc_options:
|
115
|
-
- --
|
116
|
-
- --inline-source
|
117
|
-
- --title
|
118
|
-
- Ambition
|
119
|
-
- --main
|
120
|
-
- README
|
122
|
+
- --charset=UTF-8
|
121
123
|
require_paths:
|
122
124
|
- lib
|
123
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
124
126
|
requirements:
|
125
127
|
- - ">="
|
126
128
|
- !ruby/object:Gem::Version
|
127
|
-
version:
|
129
|
+
version: "0"
|
128
130
|
version:
|
129
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
132
|
requirements:
|
@@ -134,10 +136,20 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
136
|
version:
|
135
137
|
requirements: []
|
136
138
|
|
137
|
-
rubyforge_project:
|
138
|
-
rubygems_version: 1.
|
139
|
+
rubyforge_project:
|
140
|
+
rubygems_version: 1.3.5
|
139
141
|
signing_key:
|
140
|
-
specification_version:
|
142
|
+
specification_version: 3
|
141
143
|
summary: Ambition builds yer API calls from plain jane Ruby.
|
142
|
-
test_files:
|
143
|
-
|
144
|
+
test_files:
|
145
|
+
- test/adapters/exemplar/association_test.rb
|
146
|
+
- test/adapters/exemplar/count_test.rb
|
147
|
+
- test/adapters/exemplar/detect_test.rb
|
148
|
+
- test/adapters/exemplar/enumerable_test.rb
|
149
|
+
- test/adapters/exemplar/helper.rb
|
150
|
+
- test/adapters/exemplar/index_operator.rb
|
151
|
+
- test/adapters/exemplar/reject_test.rb
|
152
|
+
- test/adapters/exemplar/select_test.rb
|
153
|
+
- test/adapters/exemplar/slice_test.rb
|
154
|
+
- test/adapters/exemplar/sort_test.rb
|
155
|
+
- test/helper.rb
|