ipage 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/Gemfile +8 -0
  2. data/Gemfile.lock +123 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.rdoc +22 -0
  5. data/Rakefile +42 -0
  6. data/bin/ipage +9 -0
  7. data/ipage.gemspec +75 -0
  8. data/lib/ipage.rb +177 -0
  9. data/lib/templates/Gemfile +4 -0
  10. data/lib/templates/app/helpers/application_helper.rb +11 -0
  11. data/lib/templates/app/views/layouts/application.html.erb +20 -0
  12. data/lib/templates/config/initializers/js_css.rb +30 -0
  13. data/lib/templates/gitignore +6 -0
  14. data/lib/templates/hgignore +4 -0
  15. data/lib/templates/javascripts/design/main.js +3 -0
  16. data/lib/templates/javascripts/framework/jquery-1.5.1.min.js +16 -0
  17. data/lib/templates/javascripts/test/tdd/qunit.js +1412 -0
  18. data/lib/templates/javascripts/test/tdd/window.js +17 -0
  19. data/lib/templates/javascripts/test/x_test.js +11 -0
  20. data/lib/templates/stylesheets/content/base.css +263 -0
  21. data/lib/templates/stylesheets/content/tables.css +0 -0
  22. data/lib/templates/stylesheets/design/controls/buttons.css +0 -0
  23. data/lib/templates/stylesheets/design/controls/forms.css +0 -0
  24. data/lib/templates/stylesheets/design/controls/notifications.css +0 -0
  25. data/lib/templates/stylesheets/design/controls/tabs.css +142 -0
  26. data/lib/templates/stylesheets/design/footer.css +0 -0
  27. data/lib/templates/stylesheets/design/header.css +0 -0
  28. data/lib/templates/stylesheets/design/menu.css +0 -0
  29. data/lib/templates/stylesheets/design/panels.css +0 -0
  30. data/lib/templates/stylesheets/design/popup-windows.css +0 -0
  31. data/lib/templates/stylesheets/global/global.css +32 -0
  32. metadata +112 -0
@@ -0,0 +1,17 @@
1
+ $(function(){
2
+ $('body').append('<div id="qunit_window" style="position:absolute;top:0px;margin: 0px auto;"><h1 id="qunit-header">Тесты</h1><h2 id="qunit-banner"></h2><div id="qunit-testrunner-toolbar"></div><h2 id="qunit-userAgent"></h2><ol id="qunit-tests"></ol><div id="qunit-fixture">test markup, will be hidden</div></div>');
3
+ $('#qunit_window').hide();
4
+ $(document).keydown(function(event){
5
+ //alert(event.keyCode);
6
+ if(event.keyCode==192){
7
+ $('#qunit_window').toggle();
8
+ }
9
+ });
10
+ QUnit.done=function(){
11
+ var error_count = $('div#qunit_window span.failed').text();
12
+ if(error_count!='0'){
13
+ $('#qunit_window').show();
14
+ }
15
+ }
16
+
17
+ });
@@ -0,0 +1,11 @@
1
+ $(function(){
2
+ module("Пример");
3
+ test('Работа с x', function(){
4
+ ok(true,'Создание 1');
5
+ equals(1, 1, 'Описание');
6
+ });
7
+
8
+ });
9
+
10
+
11
+
@@ -0,0 +1,263 @@
1
+ h1
2
+ {
3
+ font:40px Georgia;
4
+ margin-left:15px;
5
+ margin-top:15px;
6
+ margin-bottom:10px;
7
+ font-style:italic;
8
+ clear:both;
9
+ }
10
+
11
+ p.h1
12
+ {
13
+ font:40px Georgia;
14
+ margin-left:15px;
15
+ margin-top:15px;
16
+ margin-bottom:10px;
17
+ font-style:italic;
18
+ clear:both;
19
+ }
20
+
21
+
22
+ p.h2
23
+ {
24
+ font:20px Arial;
25
+ margin-left:15px;
26
+ margin-top:20px;
27
+ margin-bottom:5px;
28
+ clear:both;
29
+ }
30
+
31
+ h2
32
+ {
33
+ font:20px Arial;
34
+ margin-left:15px;
35
+ margin-top:20px;
36
+ margin-bottom:5px;
37
+ clear:both;
38
+ }
39
+
40
+
41
+ p.h3
42
+ {
43
+ font:18px Arial;
44
+ margin-left:15px;
45
+ margin-top:48px;
46
+ margin-bottom:10px;
47
+ clear:both;
48
+ }
49
+
50
+ h3
51
+ {
52
+ font:18px Arial;
53
+ margin-left:15px;
54
+ margin-top:48px;
55
+ margin-bottom:10px;
56
+ clear:both;
57
+ }
58
+
59
+ p
60
+ {
61
+ font:14px Arial;
62
+ margin-left:15px;
63
+ margin-right:15px;
64
+ margin-bottom:10px;
65
+ line-height:18px;
66
+ }
67
+
68
+ p.marg
69
+ {
70
+ font:14px Arial;
71
+ margin-left:30px;
72
+ margin-right:15px;
73
+ margin-bottom:10px;
74
+ line-height:18px;
75
+ }
76
+
77
+
78
+ p.prim
79
+ {
80
+ font:13px Arial;
81
+ margin-left:30px;
82
+ margin-right:40px;
83
+ margin-bottom:10px;
84
+ line-height:18px;
85
+ color:#555555;
86
+ font-style:italic;
87
+ }
88
+
89
+ p.grey
90
+ {
91
+ font:14px Arial;
92
+ margin-left:15px;
93
+ margin-right:15px;
94
+ margin-bottom:10px;
95
+ line-height:18px;
96
+ color:#555555;
97
+ }
98
+
99
+ .marker
100
+ {
101
+ font:17px Arial;
102
+ margin-left:15px;
103
+ margin-right:15px;
104
+ margin-bottom:10px;
105
+ margin-top:5px;
106
+ line-height:18px;
107
+ font-style:italic;
108
+ color:#b3261f;
109
+ }
110
+
111
+ .news
112
+ {
113
+ font:14px Arial;
114
+ margin-left:0px;
115
+ margin-right:15px;
116
+ margin-bottom:10px;
117
+ line-height:18px;
118
+ }
119
+
120
+ .newsdata
121
+ {
122
+ font:15px Arial;
123
+ margin-left:15px;
124
+ margin-right:0px;
125
+ margin-top:1px;
126
+ line-height:18px;
127
+ color:#b4b4b4;
128
+ }
129
+
130
+
131
+ .turnir
132
+ {
133
+ font:14px Arial;
134
+ margin-left:0px;
135
+ margin-right:15px;
136
+ margin-bottom:10px;
137
+ line-height:18px;
138
+ }
139
+
140
+ .turnirdata
141
+ {
142
+ font:15px Arial;
143
+ margin-left:0px;
144
+ margin-right:30px;
145
+ margin-bottom:10px;
146
+ line-height:18px;
147
+ font-weight:bold;
148
+ text-align:right;
149
+ }
150
+
151
+ .dosth3
152
+ {
153
+ font:18px Georgia;
154
+ margin-left:28px;
155
+ margin-top:20px;
156
+ margin-bottom:4px;
157
+ color:#787878;
158
+ font-style:italic;
159
+ }
160
+
161
+ .dostzag
162
+ {
163
+ font:15px Georgia;
164
+ margin:0px;
165
+ text-indent:0px;
166
+ margin-left:-1px;
167
+ margin-top:5px;
168
+ margin-bottom:3px;
169
+ font-style:italic;
170
+ color:#b3261f;
171
+ }
172
+
173
+ .dosttext
174
+ {
175
+ font:13px Arial;
176
+ margin:0px;
177
+ text-indent:0px;
178
+ margin-bottom:8px;
179
+ margin-right:10px;
180
+ }
181
+
182
+
183
+ .dostgramm
184
+ {
185
+ font:14px Arial;
186
+ padding:10px;
187
+ color:#b4b4b4;
188
+ text-align:center;
189
+ text-indent:0px;
190
+ margin:0px;
191
+ margin-top:5px;
192
+ }
193
+
194
+ .dostprice
195
+ {
196
+ font:18px Georgia;
197
+ padding:10px;
198
+ margin:0px;
199
+ text-indent:0px;
200
+ margin-top:5px;
201
+ text-align:center;
202
+ font-style:italic;
203
+ color:#b3261f;
204
+ }
205
+
206
+
207
+ ul
208
+ {
209
+ margin-top:20px;
210
+ list-style:url('pic/marker.png') outside;
211
+ }
212
+
213
+
214
+ li
215
+ {
216
+ font:16px Arial;
217
+ margin-left:40px;
218
+ margin-right:15px;
219
+ margin-bottom:10px;
220
+ line-height:18px;
221
+ font-style:italic;
222
+ color:#b3261f;
223
+ }
224
+
225
+
226
+ a:link, a:visited, a:hover, a:active
227
+ {
228
+ color:#b3261f;
229
+ text-decoration:underline;
230
+ }
231
+
232
+ a:hover
233
+ {
234
+ color:#000000;
235
+ text-decoration:none;
236
+ }
237
+
238
+
239
+ a.content:link, a.content:visited, a.content:hover, a.content:active
240
+ {
241
+ color:#b3261f;
242
+ text-decoration:underline;
243
+ }
244
+
245
+ a.content:hover
246
+ {
247
+ color:#000000;
248
+ text-decoration:none;
249
+ }
250
+
251
+
252
+ .icon_content
253
+
254
+ {
255
+ margin-right:4px;
256
+ margin-left:2px;
257
+ margin-top:-6px;
258
+ }
259
+
260
+
261
+
262
+
263
+
File without changes
@@ -0,0 +1,142 @@
1
+ /* ������ �����, ����� */
2
+
3
+ div.get_but
4
+ {
5
+ position:absolute;
6
+ bottom:-5px;
7
+ left:40px;
8
+ width:184px;
9
+ height:59px;
10
+ background:url('/pic/design/buttons/get_norm.png') 0% 0% no-repeat;
11
+ z-index:999;
12
+ }
13
+
14
+ div.get_but p
15
+ {
16
+ text-align:center;
17
+ font:24px Tahoma;
18
+ margin:0px;
19
+ color:#ffffff;
20
+ height:59px;
21
+ line-height:53px;
22
+ }
23
+
24
+ div.get_but a
25
+ {
26
+ color:#ffffff;
27
+ text-decoration:underline;
28
+ }
29
+
30
+ div.get_but a:hover
31
+ {
32
+ color:#ffffff;
33
+ text-decoration:none;
34
+ }
35
+
36
+ div.get_but:hover
37
+ {
38
+ background:url('/pic/design/buttons/get_hover.png') 0% 0% no-repeat;
39
+ }
40
+
41
+ div.get_but.inside
42
+ {
43
+ background:url('/pic/design/buttons/get_inside.png') 0% 0% no-repeat;
44
+ }
45
+
46
+
47
+
48
+ div.add_but
49
+ {
50
+ position:absolute;
51
+ bottom:-5px;
52
+ left:224px;
53
+ width:175px;
54
+ height:59px;
55
+ background:url('/pic/design/buttons/add_norm.png') 0% 0% no-repeat;
56
+ z-index:999;
57
+ }
58
+
59
+ div.add_but p
60
+ {
61
+ text-align:center;
62
+ font:24px Tahoma;
63
+ margin:0px;
64
+ color:#ffffff;
65
+ height:59px;
66
+ line-height:53px;
67
+ }
68
+
69
+ div.add_but a
70
+ {
71
+ color:#ffffff;
72
+ text-decoration:underline;
73
+ }
74
+
75
+ div.add_but a:hover
76
+ {
77
+ color:#ffffff;
78
+ text-decoration:none;
79
+ }
80
+
81
+ div.add_but:hover
82
+ {
83
+ background:url('/pic/design/buttons/add_hover.png') 0% 0% no-repeat;
84
+ }
85
+
86
+ div.add_but.inside
87
+ {
88
+ background:url('/pic/design/buttons/add_inside.png') 0% 0% no-repeat;
89
+ }
90
+
91
+ /* ������� � ������ ����� */
92
+
93
+ div.tabs
94
+ {
95
+ margin-left:22px;
96
+ margin-top:38px;
97
+ margin-bottom:10px;
98
+ }
99
+
100
+
101
+ div.get_tab
102
+ {
103
+ display:inline-table;
104
+ margin:10px;
105
+ }
106
+
107
+ div.get_tab p
108
+ {
109
+ font:19px Tahoma;
110
+ margin:4px 8px 6px 8px;
111
+ }
112
+
113
+ div.get_tab.act
114
+ {
115
+ background-color:#b7d5e8;
116
+ }
117
+
118
+ div.get_tab.act p
119
+ {
120
+ color:#0a4f7d;
121
+ cursor:default;
122
+ }
123
+
124
+
125
+ div.get_tab.dis
126
+ {
127
+ background-color:transparent;
128
+ }
129
+
130
+ div.get_tab.dis p
131
+ {
132
+ color:#ffffff;
133
+ cursor:pointer;
134
+ }
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,32 @@
1
+ *
2
+ {
3
+ margin:0;
4
+ padding:0;
5
+ border-collapse:collapse;
6
+ }
7
+
8
+ html, body
9
+ {
10
+ height:100%;
11
+ }
12
+
13
+ acronym
14
+ {
15
+ cursor:help;
16
+ }
17
+
18
+ img
19
+ {
20
+ display:block;
21
+ border:0;
22
+ }
23
+
24
+ table
25
+ {
26
+ border: 0;
27
+ }
28
+
29
+ td
30
+ {
31
+ vertical-align:top;
32
+ }
metadata ADDED
@@ -0,0 +1,112 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ipage
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.1
5
+ prerelease: !!null
6
+ platform: ruby
7
+ authors:
8
+ - dvil
9
+ autorequire: !!null
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-03-26 00:00:00.000000000 +06:00
13
+ default_executable: ipage
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: thor
17
+ requirement: &22778964 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: '0.14'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *22778964
26
+ - !ruby/object:Gem::Dependency
27
+ name: rails
28
+ requirement: &22778664 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.0.3
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *22778664
37
+ - !ruby/object:Gem::Dependency
38
+ name: rake
39
+ requirement: &22778328 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: '0.8'
45
+ type: :runtime
46
+ prerelease: false
47
+ version_requirements: *22778328
48
+ description: Creates a Rails 3 engine with Rakefile, Gemfile and running tests
49
+ email: ''
50
+ executables:
51
+ - ipage
52
+ extensions: []
53
+ extra_rdoc_files:
54
+ - README.rdoc
55
+ files:
56
+ - Gemfile
57
+ - Gemfile.lock
58
+ - MIT-LICENSE
59
+ - README.rdoc
60
+ - Rakefile
61
+ - ipage.gemspec
62
+ - lib/ipage.rb
63
+ - lib/templates/Gemfile
64
+ - lib/templates/app/helpers/application_helper.rb
65
+ - lib/templates/app/views/layouts/application.html.erb
66
+ - lib/templates/config/initializers/js_css.rb
67
+ - lib/templates/gitignore
68
+ - lib/templates/hgignore
69
+ - lib/templates/javascripts/design/main.js
70
+ - lib/templates/javascripts/framework/jquery-1.5.1.min.js
71
+ - lib/templates/javascripts/test/tdd/qunit.js
72
+ - lib/templates/javascripts/test/tdd/window.js
73
+ - lib/templates/javascripts/test/x_test.js
74
+ - lib/templates/stylesheets/content/base.css
75
+ - lib/templates/stylesheets/content/tables.css
76
+ - lib/templates/stylesheets/design/controls/buttons.css
77
+ - lib/templates/stylesheets/design/controls/forms.css
78
+ - lib/templates/stylesheets/design/controls/notifications.css
79
+ - lib/templates/stylesheets/design/controls/tabs.css
80
+ - lib/templates/stylesheets/design/footer.css
81
+ - lib/templates/stylesheets/design/header.css
82
+ - lib/templates/stylesheets/design/menu.css
83
+ - lib/templates/stylesheets/design/panels.css
84
+ - lib/templates/stylesheets/design/popup-windows.css
85
+ - lib/templates/stylesheets/global/global.css
86
+ - bin/ipage
87
+ has_rdoc: true
88
+ homepage: ''
89
+ licenses: []
90
+ post_install_message: !!null
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ none: false
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ requirements: []
107
+ rubyforge_project: !!null
108
+ rubygems_version: 1.5.0
109
+ signing_key: !!null
110
+ specification_version: 3
111
+ summary: Creates a Rails 3 app
112
+ test_files: []