friendly 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. data/.document +5 -0
  2. data/.gitignore +23 -0
  3. data/APACHE-LICENSE +202 -0
  4. data/LICENSE +20 -0
  5. data/README.md +173 -0
  6. data/Rakefile +67 -0
  7. data/VERSION +1 -0
  8. data/examples/friendly.yml +7 -0
  9. data/friendly.gemspec +201 -0
  10. data/lib/friendly/attribute.rb +65 -0
  11. data/lib/friendly/boolean.rb +6 -0
  12. data/lib/friendly/cache/by_id.rb +33 -0
  13. data/lib/friendly/cache.rb +24 -0
  14. data/lib/friendly/config.rb +5 -0
  15. data/lib/friendly/data_store.rb +72 -0
  16. data/lib/friendly/document.rb +165 -0
  17. data/lib/friendly/document_table.rb +56 -0
  18. data/lib/friendly/index.rb +73 -0
  19. data/lib/friendly/memcached.rb +48 -0
  20. data/lib/friendly/newrelic.rb +6 -0
  21. data/lib/friendly/query.rb +42 -0
  22. data/lib/friendly/sequel_monkey_patches.rb +35 -0
  23. data/lib/friendly/storage.rb +31 -0
  24. data/lib/friendly/storage_factory.rb +24 -0
  25. data/lib/friendly/storage_proxy.rb +103 -0
  26. data/lib/friendly/table.rb +15 -0
  27. data/lib/friendly/table_creator.rb +43 -0
  28. data/lib/friendly/time.rb +14 -0
  29. data/lib/friendly/translator.rb +32 -0
  30. data/lib/friendly/uuid.rb +143 -0
  31. data/lib/friendly.rb +49 -0
  32. data/rails/init.rb +3 -0
  33. data/spec/fakes/data_store_fake.rb +29 -0
  34. data/spec/fakes/database_fake.rb +12 -0
  35. data/spec/fakes/dataset_fake.rb +28 -0
  36. data/spec/fakes/document.rb +18 -0
  37. data/spec/fakes/serializer_fake.rb +12 -0
  38. data/spec/fakes/time_fake.rb +12 -0
  39. data/spec/integration/basic_object_lifecycle_spec.rb +114 -0
  40. data/spec/integration/batch_insertion_spec.rb +29 -0
  41. data/spec/integration/convenience_api_spec.rb +25 -0
  42. data/spec/integration/count_spec.rb +12 -0
  43. data/spec/integration/default_value_spec.rb +15 -0
  44. data/spec/integration/find_via_cache_spec.rb +101 -0
  45. data/spec/integration/finder_spec.rb +64 -0
  46. data/spec/integration/index_spec.rb +57 -0
  47. data/spec/integration/pagination_spec.rb +63 -0
  48. data/spec/integration/table_creator_spec.rb +52 -0
  49. data/spec/integration/write_through_cache_spec.rb +53 -0
  50. data/spec/spec.opts +1 -0
  51. data/spec/spec_helper.rb +90 -0
  52. data/spec/unit/attribute_spec.rb +64 -0
  53. data/spec/unit/cache_by_id_spec.rb +102 -0
  54. data/spec/unit/cache_spec.rb +21 -0
  55. data/spec/unit/config_spec.rb +4 -0
  56. data/spec/unit/data_store_spec.rb +188 -0
  57. data/spec/unit/document_spec.rb +311 -0
  58. data/spec/unit/document_table_spec.rb +126 -0
  59. data/spec/unit/friendly_spec.rb +25 -0
  60. data/spec/unit/index_spec.rb +196 -0
  61. data/spec/unit/memcached_spec.rb +114 -0
  62. data/spec/unit/query_spec.rb +104 -0
  63. data/spec/unit/storage_factory_spec.rb +59 -0
  64. data/spec/unit/storage_proxy_spec.rb +218 -0
  65. data/spec/unit/translator_spec.rb +96 -0
  66. data/website/index.html +210 -0
  67. data/website/scripts/clipboard.swf +0 -0
  68. data/website/scripts/shBrushAS3.js +61 -0
  69. data/website/scripts/shBrushBash.js +66 -0
  70. data/website/scripts/shBrushCSharp.js +67 -0
  71. data/website/scripts/shBrushColdFusion.js +102 -0
  72. data/website/scripts/shBrushCpp.js +99 -0
  73. data/website/scripts/shBrushCss.js +93 -0
  74. data/website/scripts/shBrushDelphi.js +57 -0
  75. data/website/scripts/shBrushDiff.js +43 -0
  76. data/website/scripts/shBrushErlang.js +54 -0
  77. data/website/scripts/shBrushGroovy.js +69 -0
  78. data/website/scripts/shBrushJScript.js +52 -0
  79. data/website/scripts/shBrushJava.js +59 -0
  80. data/website/scripts/shBrushJavaFX.js +60 -0
  81. data/website/scripts/shBrushPerl.js +74 -0
  82. data/website/scripts/shBrushPhp.js +91 -0
  83. data/website/scripts/shBrushPlain.js +35 -0
  84. data/website/scripts/shBrushPowerShell.js +76 -0
  85. data/website/scripts/shBrushPython.js +66 -0
  86. data/website/scripts/shBrushRuby.js +57 -0
  87. data/website/scripts/shBrushScala.js +53 -0
  88. data/website/scripts/shBrushSql.js +68 -0
  89. data/website/scripts/shBrushVb.js +58 -0
  90. data/website/scripts/shBrushXml.js +71 -0
  91. data/website/scripts/shCore.js +30 -0
  92. data/website/scripts/shLegacy.js +30 -0
  93. data/website/styles/friendly.css +103 -0
  94. data/website/styles/help.png +0 -0
  95. data/website/styles/ie.css +35 -0
  96. data/website/styles/magnifier.png +0 -0
  97. data/website/styles/page_white_code.png +0 -0
  98. data/website/styles/page_white_copy.png +0 -0
  99. data/website/styles/print.css +29 -0
  100. data/website/styles/printer.png +0 -0
  101. data/website/styles/screen.css +257 -0
  102. data/website/styles/shCore.css +330 -0
  103. data/website/styles/shThemeDefault.css +173 -0
  104. data/website/styles/shThemeDjango.css +176 -0
  105. data/website/styles/shThemeEclipse.css +190 -0
  106. data/website/styles/shThemeEmacs.css +175 -0
  107. data/website/styles/shThemeFadeToGrey.css +177 -0
  108. data/website/styles/shThemeMidnight.css +175 -0
  109. data/website/styles/shThemeRDark.css +175 -0
  110. metadata +264 -0
@@ -0,0 +1,175 @@
1
+ /**
2
+ * SyntaxHighlighter
3
+ * http://alexgorbatchev.com/
4
+ *
5
+ * SyntaxHighlighter is donationware. If you are using it, please donate.
6
+ * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7
+ *
8
+ * @version
9
+ * 2.1.364 (October 15 2009)
10
+ *
11
+ * @copyright
12
+ * Copyright (C) 2004-2009 Alex Gorbatchev.
13
+ *
14
+ * @license
15
+ * This file is part of SyntaxHighlighter.
16
+ *
17
+ * SyntaxHighlighter is free software: you can redistribute it and/or modify
18
+ * it under the terms of the GNU Lesser General Public License as published by
19
+ * the Free Software Foundation, either version 3 of the License, or
20
+ * (at your option) any later version.
21
+ *
22
+ * SyntaxHighlighter is distributed in the hope that it will be useful,
23
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
+ * GNU General Public License for more details.
26
+ *
27
+ * You should have received a copy of the GNU General Public License
28
+ * along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
29
+ */
30
+ /**
31
+ * RDark SyntaxHighlighter theme based on theme by Radu Dineiu
32
+ * http://www.vim.org/scripts/script.php?script_id=1732
33
+ */
34
+
35
+ /************************************
36
+ * Interface elements.
37
+ ************************************/
38
+
39
+ .syntaxhighlighter
40
+ {
41
+ background-color: #1B2426 !important;
42
+ }
43
+
44
+ /* Gutter line numbers */
45
+ .syntaxhighlighter .line .number
46
+ {
47
+ color: #B9BDB6 !important;
48
+ }
49
+
50
+ /* Add border to the lines */
51
+ .syntaxhighlighter .line .content
52
+ {
53
+ border-left: 3px solid #435A5F !important;
54
+ color: #B9BDB6 !important;
55
+ }
56
+
57
+ .syntaxhighlighter.printing .line .content
58
+ {
59
+ border: 0 !important;
60
+ }
61
+
62
+ /* First line */
63
+ .syntaxhighlighter .line.alt1
64
+ {
65
+ background-color: #1B2426 !important;
66
+ }
67
+
68
+ /* Second line */
69
+ .syntaxhighlighter .line.alt2
70
+ {
71
+ background-color: #1B2426 !important;
72
+ }
73
+
74
+ /* Highlighed line number */
75
+ .syntaxhighlighter .line.highlighted .number
76
+ {
77
+ background-color: #435A5F !important;
78
+ color: #fff !important;
79
+ }
80
+
81
+ /* Highlighed line */
82
+ .syntaxhighlighter .line.highlighted.alt1,
83
+ .syntaxhighlighter .line.highlighted.alt2
84
+ {
85
+ background-color: #435A5F !important;
86
+ }
87
+
88
+ .syntaxhighlighter .toolbar
89
+ {
90
+ background-color: #1B2426 !important;
91
+ }
92
+
93
+ .syntaxhighlighter .toolbar a
94
+ {
95
+ color: #646763 !important;
96
+ }
97
+
98
+ .syntaxhighlighter .toolbar a:hover
99
+ {
100
+ color: #E0E8FF !important;
101
+ }
102
+
103
+ /************************************
104
+ * Actual syntax highlighter colors.
105
+ ************************************/
106
+ .syntaxhighlighter .plain,
107
+ .syntaxhighlighter .plain a
108
+ {
109
+ color: #B9BDB6 !important;
110
+ }
111
+
112
+ .syntaxhighlighter .comments,
113
+ .syntaxhighlighter .comments a
114
+ {
115
+ color: #878A85 !important;
116
+ }
117
+
118
+ .syntaxhighlighter .string,
119
+ .syntaxhighlighter .string a
120
+ {
121
+ color: #5CE638 !important;
122
+ }
123
+
124
+ .syntaxhighlighter .keyword
125
+ {
126
+ color: #5BA1CF !important;
127
+ }
128
+
129
+ .syntaxhighlighter .preprocessor
130
+ {
131
+ color: #435A5F !important;
132
+ }
133
+
134
+ .syntaxhighlighter .variable
135
+ {
136
+ color: #FFAA3E !important;
137
+ }
138
+
139
+ .syntaxhighlighter .value
140
+ {
141
+ color: #090 !important;
142
+ }
143
+
144
+ .syntaxhighlighter .functions
145
+ {
146
+ color: #FFAA3E !important;
147
+ }
148
+
149
+ .syntaxhighlighter .constants
150
+ {
151
+ color: #E0E8FF !important;
152
+ }
153
+
154
+ .syntaxhighlighter .script
155
+ {
156
+ background-color: #435A5F !important;
157
+ }
158
+
159
+ .syntaxhighlighter .color1,
160
+ .syntaxhighlighter .color1 a
161
+ {
162
+ color: #E0E8FF !important;
163
+ }
164
+
165
+ .syntaxhighlighter .color2,
166
+ .syntaxhighlighter .color2 a
167
+ {
168
+ color: #FFFFFF !important;
169
+ }
170
+
171
+ .syntaxhighlighter .color3,
172
+ .syntaxhighlighter .color3 a
173
+ {
174
+ color: #FFAA3E !important;
175
+ }
metadata ADDED
@@ -0,0 +1,264 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: friendly
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.3
5
+ platform: ruby
6
+ authors:
7
+ - James Golick
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-12-17 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.9
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: cucumber
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: jferris-mocha
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: sequel
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 3.7.0
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: json
57
+ type: :runtime
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ - !ruby/object:Gem::Dependency
66
+ name: activesupport
67
+ type: :runtime
68
+ version_requirement:
69
+ version_requirements: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: "0"
74
+ version:
75
+ - !ruby/object:Gem::Dependency
76
+ name: will_paginate
77
+ type: :runtime
78
+ version_requirement:
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: "0"
84
+ version:
85
+ description: ""
86
+ email: james@giraffesoft.ca
87
+ executables: []
88
+
89
+ extensions: []
90
+
91
+ extra_rdoc_files:
92
+ - LICENSE
93
+ - README.md
94
+ files:
95
+ - .document
96
+ - .gitignore
97
+ - APACHE-LICENSE
98
+ - LICENSE
99
+ - README.md
100
+ - Rakefile
101
+ - VERSION
102
+ - examples/friendly.yml
103
+ - friendly.gemspec
104
+ - lib/friendly.rb
105
+ - lib/friendly/attribute.rb
106
+ - lib/friendly/boolean.rb
107
+ - lib/friendly/cache.rb
108
+ - lib/friendly/cache/by_id.rb
109
+ - lib/friendly/config.rb
110
+ - lib/friendly/data_store.rb
111
+ - lib/friendly/document.rb
112
+ - lib/friendly/document_table.rb
113
+ - lib/friendly/index.rb
114
+ - lib/friendly/memcached.rb
115
+ - lib/friendly/newrelic.rb
116
+ - lib/friendly/query.rb
117
+ - lib/friendly/sequel_monkey_patches.rb
118
+ - lib/friendly/storage.rb
119
+ - lib/friendly/storage_factory.rb
120
+ - lib/friendly/storage_proxy.rb
121
+ - lib/friendly/table.rb
122
+ - lib/friendly/table_creator.rb
123
+ - lib/friendly/time.rb
124
+ - lib/friendly/translator.rb
125
+ - lib/friendly/uuid.rb
126
+ - rails/init.rb
127
+ - spec/fakes/data_store_fake.rb
128
+ - spec/fakes/database_fake.rb
129
+ - spec/fakes/dataset_fake.rb
130
+ - spec/fakes/document.rb
131
+ - spec/fakes/serializer_fake.rb
132
+ - spec/fakes/time_fake.rb
133
+ - spec/integration/basic_object_lifecycle_spec.rb
134
+ - spec/integration/batch_insertion_spec.rb
135
+ - spec/integration/convenience_api_spec.rb
136
+ - spec/integration/count_spec.rb
137
+ - spec/integration/default_value_spec.rb
138
+ - spec/integration/find_via_cache_spec.rb
139
+ - spec/integration/finder_spec.rb
140
+ - spec/integration/index_spec.rb
141
+ - spec/integration/pagination_spec.rb
142
+ - spec/integration/table_creator_spec.rb
143
+ - spec/integration/write_through_cache_spec.rb
144
+ - spec/spec.opts
145
+ - spec/spec_helper.rb
146
+ - spec/unit/attribute_spec.rb
147
+ - spec/unit/cache_by_id_spec.rb
148
+ - spec/unit/cache_spec.rb
149
+ - spec/unit/config_spec.rb
150
+ - spec/unit/data_store_spec.rb
151
+ - spec/unit/document_spec.rb
152
+ - spec/unit/document_table_spec.rb
153
+ - spec/unit/friendly_spec.rb
154
+ - spec/unit/index_spec.rb
155
+ - spec/unit/memcached_spec.rb
156
+ - spec/unit/query_spec.rb
157
+ - spec/unit/storage_factory_spec.rb
158
+ - spec/unit/storage_proxy_spec.rb
159
+ - spec/unit/translator_spec.rb
160
+ - website/index.html
161
+ - website/scripts/clipboard.swf
162
+ - website/scripts/shBrushAS3.js
163
+ - website/scripts/shBrushBash.js
164
+ - website/scripts/shBrushCSharp.js
165
+ - website/scripts/shBrushColdFusion.js
166
+ - website/scripts/shBrushCpp.js
167
+ - website/scripts/shBrushCss.js
168
+ - website/scripts/shBrushDelphi.js
169
+ - website/scripts/shBrushDiff.js
170
+ - website/scripts/shBrushErlang.js
171
+ - website/scripts/shBrushGroovy.js
172
+ - website/scripts/shBrushJScript.js
173
+ - website/scripts/shBrushJava.js
174
+ - website/scripts/shBrushJavaFX.js
175
+ - website/scripts/shBrushPerl.js
176
+ - website/scripts/shBrushPhp.js
177
+ - website/scripts/shBrushPlain.js
178
+ - website/scripts/shBrushPowerShell.js
179
+ - website/scripts/shBrushPython.js
180
+ - website/scripts/shBrushRuby.js
181
+ - website/scripts/shBrushScala.js
182
+ - website/scripts/shBrushSql.js
183
+ - website/scripts/shBrushVb.js
184
+ - website/scripts/shBrushXml.js
185
+ - website/scripts/shCore.js
186
+ - website/scripts/shLegacy.js
187
+ - website/styles/friendly.css
188
+ - website/styles/help.png
189
+ - website/styles/ie.css
190
+ - website/styles/magnifier.png
191
+ - website/styles/page_white_code.png
192
+ - website/styles/page_white_copy.png
193
+ - website/styles/print.css
194
+ - website/styles/printer.png
195
+ - website/styles/screen.css
196
+ - website/styles/shCore.css
197
+ - website/styles/shThemeDefault.css
198
+ - website/styles/shThemeDjango.css
199
+ - website/styles/shThemeEclipse.css
200
+ - website/styles/shThemeEmacs.css
201
+ - website/styles/shThemeFadeToGrey.css
202
+ - website/styles/shThemeMidnight.css
203
+ - website/styles/shThemeRDark.css
204
+ has_rdoc: true
205
+ homepage: http://github.com/giraffesoft/friendly
206
+ licenses: []
207
+
208
+ post_install_message:
209
+ rdoc_options:
210
+ - --charset=UTF-8
211
+ require_paths:
212
+ - lib
213
+ required_ruby_version: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ version: "0"
218
+ version:
219
+ required_rubygems_version: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ">="
222
+ - !ruby/object:Gem::Version
223
+ version: "0"
224
+ version:
225
+ requirements: []
226
+
227
+ rubyforge_project:
228
+ rubygems_version: 1.3.5
229
+ signing_key:
230
+ specification_version: 3
231
+ summary: ""
232
+ test_files:
233
+ - spec/fakes/data_store_fake.rb
234
+ - spec/fakes/database_fake.rb
235
+ - spec/fakes/dataset_fake.rb
236
+ - spec/fakes/document.rb
237
+ - spec/fakes/serializer_fake.rb
238
+ - spec/fakes/time_fake.rb
239
+ - spec/integration/basic_object_lifecycle_spec.rb
240
+ - spec/integration/batch_insertion_spec.rb
241
+ - spec/integration/convenience_api_spec.rb
242
+ - spec/integration/count_spec.rb
243
+ - spec/integration/default_value_spec.rb
244
+ - spec/integration/find_via_cache_spec.rb
245
+ - spec/integration/finder_spec.rb
246
+ - spec/integration/index_spec.rb
247
+ - spec/integration/pagination_spec.rb
248
+ - spec/integration/table_creator_spec.rb
249
+ - spec/integration/write_through_cache_spec.rb
250
+ - spec/spec_helper.rb
251
+ - spec/unit/attribute_spec.rb
252
+ - spec/unit/cache_by_id_spec.rb
253
+ - spec/unit/cache_spec.rb
254
+ - spec/unit/config_spec.rb
255
+ - spec/unit/data_store_spec.rb
256
+ - spec/unit/document_spec.rb
257
+ - spec/unit/document_table_spec.rb
258
+ - spec/unit/friendly_spec.rb
259
+ - spec/unit/index_spec.rb
260
+ - spec/unit/memcached_spec.rb
261
+ - spec/unit/query_spec.rb
262
+ - spec/unit/storage_factory_spec.rb
263
+ - spec/unit/storage_proxy_spec.rb
264
+ - spec/unit/translator_spec.rb