cup 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/views/cup.sass ADDED
@@ -0,0 +1,167 @@
1
+ $error-red: #E43
2
+
3
+ h1
4
+ margin: 5px 0 10px
5
+ padding: 0
6
+
7
+ h1, h2, h3
8
+ text-transform: uppercase
9
+ padding: 0
10
+
11
+ a, a:link, a:visited, a:hover, a:active
12
+ color: black
13
+
14
+ section
15
+ margin: 0px 20px
16
+
17
+ #cup_header
18
+
19
+ position: relative
20
+ height: 20px
21
+ color: black
22
+ font-size: 0.7em
23
+ padding: 2px 6px 4px
24
+
25
+ nav
26
+
27
+ display: inline-block
28
+ position: absolute
29
+ top: 7px
30
+ right: 20%
31
+
32
+ ul
33
+ display: inline-block
34
+ background-color: white
35
+ margin: 0
36
+ padding: 0 5px
37
+
38
+ li
39
+ display: inline-block
40
+ list-style: none
41
+ margin-left: 8px
42
+ margin-right: 8px
43
+ a
44
+ text-decoration: none
45
+ padding: 3px
46
+
47
+ &.current, &:hover
48
+ text-decoration: overline
49
+
50
+ #cup_version
51
+ display: inline-block
52
+ position: absolute
53
+ top: 0px
54
+ right: 0px
55
+
56
+ #build_failure_notice
57
+ padding: 5px
58
+
59
+ .build-exception
60
+ color: $error-red
61
+ font-weight: bold
62
+ margin: 10px 0
63
+
64
+ .prompt
65
+ color: #acacac
66
+
67
+
68
+ #jasmine
69
+ margin: 10px
70
+
71
+
72
+ #not_found
73
+
74
+ h1
75
+ color: $error-red
76
+
77
+
78
+ #question_mark
79
+ text-align: center
80
+ font-size: 500px
81
+
82
+ #page
83
+ margin: 0px 10px
84
+
85
+ #root_index
86
+
87
+ position: relative
88
+
89
+ #file_list
90
+ vertical-align: top
91
+ position: absolute
92
+ top: 0
93
+ right: 0
94
+ text-align: right
95
+ font-size: 0.7em
96
+
97
+ h2
98
+ margin: 0
99
+ padding: 0
100
+
101
+
102
+ ul.file-list
103
+
104
+ margin: 0
105
+ padding: 0
106
+
107
+ li
108
+ list-style: none
109
+ margin: 5px 0px
110
+
111
+ a
112
+ color: #acacac
113
+ &:hover
114
+ color: black
115
+
116
+ #info
117
+ table
118
+ td.label
119
+ color: #acacac
120
+ font-size: 0.85em
121
+ text-align: right
122
+
123
+
124
+ td.value
125
+ padding: 5px
126
+
127
+ .size
128
+ margin-top: 5px
129
+ font-size: 0.9em
130
+ font-weight: bold
131
+ .percentage
132
+ font-weight: normal
133
+ font-size: 0.9em
134
+
135
+ &.files
136
+ .count, .total
137
+ font-weight: bold
138
+
139
+ .components
140
+ font-size: 0.85em
141
+
142
+ #visuals
143
+
144
+ #listing
145
+
146
+ .count
147
+ font-size: 1.25em
148
+ text-transform: uppercase
149
+ font-weight: normal
150
+ color: #acacac
151
+
152
+ ul
153
+ margin: 0
154
+ padding: 0
155
+
156
+ li
157
+ list-style: none
158
+ margin: 10px 10px
159
+
160
+ input
161
+ margin: 10px
162
+
163
+
164
+
165
+
166
+
167
+
data/views/layout.slim ADDED
@@ -0,0 +1,53 @@
1
+ doctype html
2
+ html
3
+ head
4
+ title = name
5
+
6
+ - for javascript in javascripts do
7
+ script src=javascript type='text/javascript'
8
+
9
+
10
+ script src='/cup.coffee' type='text/javascript'
11
+
12
+ - for stylesheet in stylesheets do
13
+ link rel="stylesheet" type="text/css" href=stylesheet
14
+
15
+ link rel="stylesheet" type="text/css" href="/cup.sass"
16
+
17
+ body
18
+
19
+
20
+ #cup_header
21
+ nav
22
+ ul
23
+ li
24
+ a href='/' = "#{name} v#{version}"
25
+ li
26
+ a href='/debug' debug
27
+ li
28
+ a href='/empty' empty
29
+ li
30
+ span
31
+ ' spec:
32
+ a href='/spec' src
33
+ ',
34
+ a href='/spec/concatenated' concatenated
35
+ ',
36
+ a href='/spec/minified' minified
37
+ ',
38
+ a href='/spec/visual' visual
39
+
40
+ a#cup_version href='https://github.com/sjltaylor/cup' target='blank' = "cup v#{cup_version}"
41
+
42
+ - if build_status == :failed
43
+ #build_failure_notice
44
+ h1 Build Failed
45
+ section
46
+ .build-exception = build_result[:exception]
47
+ .prompt Check the console for syntax errors
48
+ - else
49
+ #page
50
+ == yield
51
+
52
+
53
+
@@ -0,0 +1,3 @@
1
+ #not_found
2
+ h1 not found
3
+ #question_mark ?
data/views/root.slim ADDED
@@ -0,0 +1,42 @@
1
+ #root_index
2
+
3
+ #info
4
+ h1 = name
5
+ section
6
+ table cellpadding='0' cellspacing='0'
7
+ tr
8
+ td.label.path path:
9
+ td.value.path = path
10
+ tr
11
+ td.label.files file count:
12
+ td.value.files
13
+ span.total = lib_count + src_count
14
+ span.components
15
+ ' (
16
+ a href='/lib' lib
17
+ span.count = ": #{lib_count}, "
18
+ a href='/src' src
19
+ span.count = ": #{src_count}"
20
+ | )
21
+ tr
22
+ td.label.concatenated concatenated:
23
+ td.value.concatenated
24
+ div.path
25
+ a href='/concatenate' = concatenated
26
+ div.size = concatenated_size
27
+ tr
28
+ td.label.minified minified:
29
+ td.value.minified
30
+ div.path
31
+ a href='/minify' = minified
32
+ div.size
33
+ = minified_size
34
+ - if minified_percent_available?
35
+ span.percentage = " ( #{minified_percent}% of concatenated size )"
36
+
37
+
38
+ #file_list
39
+ ul.file-list
40
+ - for file in file_list
41
+ li
42
+ a href=file = file
data/views/spec.slim ADDED
@@ -0,0 +1,5 @@
1
+ - if build_status == :ok
2
+ #jasmine
3
+ script
4
+ | jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
5
+ | jasmine.getEnv().execute();
data/views/visual.slim ADDED
@@ -0,0 +1,13 @@
1
+ #visuals
2
+
3
+ h1 Visual Specs
4
+
5
+ section#listing
6
+
7
+ div.count = "count: #{visuals.count}"
8
+
9
+ ul
10
+ - for visual in visuals
11
+ li
12
+ input type='checkbox'
13
+ a.name href=visual.href target='blank' = visual.name
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,55 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-23 00:00:00.000000000Z
12
+ date: 2011-10-12 00:00:00.000000000Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: thor
16
+ requirement: &2152333380 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2152333380
25
+ - !ruby/object:Gem::Dependency
26
+ name: activemodel
27
+ requirement: &2152332760 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *2152332760
14
36
  - !ruby/object:Gem::Dependency
15
37
  name: rake
16
- requirement: &2154194200 !ruby/object:Gem::Requirement
38
+ requirement: &2152332060 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *2152332060
47
+ - !ruby/object:Gem::Dependency
48
+ name: therubyracer
49
+ requirement: &2152331500 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *2152331500
58
+ - !ruby/object:Gem::Dependency
59
+ name: uglifier
60
+ requirement: &2152330900 !ruby/object:Gem::Requirement
17
61
  none: false
18
62
  requirements:
19
63
  - - ! '>='
@@ -21,10 +65,10 @@ dependencies:
21
65
  version: '0'
22
66
  type: :runtime
23
67
  prerelease: false
24
- version_requirements: *2154194200
68
+ version_requirements: *2152330900
25
69
  - !ruby/object:Gem::Dependency
26
70
  name: sinatra
27
- requirement: &2154193760 !ruby/object:Gem::Requirement
71
+ requirement: &2152330100 !ruby/object:Gem::Requirement
28
72
  none: false
29
73
  requirements:
30
74
  - - ! '>='
@@ -32,10 +76,10 @@ dependencies:
32
76
  version: '0'
33
77
  type: :runtime
34
78
  prerelease: false
35
- version_requirements: *2154193760
79
+ version_requirements: *2152330100
36
80
  - !ruby/object:Gem::Dependency
37
- name: versionify
38
- requirement: &2154193340 !ruby/object:Gem::Requirement
81
+ name: slim
82
+ requirement: &2152329460 !ruby/object:Gem::Requirement
39
83
  none: false
40
84
  requirements:
41
85
  - - ! '>='
@@ -43,10 +87,10 @@ dependencies:
43
87
  version: '0'
44
88
  type: :runtime
45
89
  prerelease: false
46
- version_requirements: *2154193340
90
+ version_requirements: *2152329460
47
91
  - !ruby/object:Gem::Dependency
48
- name: uglifier
49
- requirement: &2154192920 !ruby/object:Gem::Requirement
92
+ name: sass
93
+ requirement: &2152328720 !ruby/object:Gem::Requirement
50
94
  none: false
51
95
  requirements:
52
96
  - - ! '>='
@@ -54,10 +98,10 @@ dependencies:
54
98
  version: '0'
55
99
  type: :runtime
56
100
  prerelease: false
57
- version_requirements: *2154192920
101
+ version_requirements: *2152328720
58
102
  - !ruby/object:Gem::Dependency
59
- name: therubyracer
60
- requirement: &2154192500 !ruby/object:Gem::Requirement
103
+ name: coffee-script
104
+ requirement: &2152327820 !ruby/object:Gem::Requirement
61
105
  none: false
62
106
  requirements:
63
107
  - - ! '>='
@@ -65,10 +109,10 @@ dependencies:
65
109
  version: '0'
66
110
  type: :runtime
67
111
  prerelease: false
68
- version_requirements: *2154192500
112
+ version_requirements: *2152327820
69
113
  - !ruby/object:Gem::Dependency
70
- name: thor
71
- requirement: &2154192080 !ruby/object:Gem::Requirement
114
+ name: yard
115
+ requirement: &2152327240 !ruby/object:Gem::Requirement
72
116
  none: false
73
117
  requirements:
74
118
  - - ! '>='
@@ -76,7 +120,95 @@ dependencies:
76
120
  version: '0'
77
121
  type: :runtime
78
122
  prerelease: false
79
- version_requirements: *2154192080
123
+ version_requirements: *2152327240
124
+ - !ruby/object:Gem::Dependency
125
+ name: ruby-debug19
126
+ requirement: &2152326380 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: *2152326380
135
+ - !ruby/object:Gem::Dependency
136
+ name: rspec
137
+ requirement: &2152325200 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: *2152325200
146
+ - !ruby/object:Gem::Dependency
147
+ name: shoulda
148
+ requirement: &2152324400 !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ type: :development
155
+ prerelease: false
156
+ version_requirements: *2152324400
157
+ - !ruby/object:Gem::Dependency
158
+ name: statemachine
159
+ requirement: &2152320260 !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ! '>='
163
+ - !ruby/object:Gem::Version
164
+ version: '0'
165
+ type: :development
166
+ prerelease: false
167
+ version_requirements: *2152320260
168
+ - !ruby/object:Gem::Dependency
169
+ name: rack
170
+ requirement: &2152319180 !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - =
174
+ - !ruby/object:Gem::Version
175
+ version: 1.3.3
176
+ type: :development
177
+ prerelease: false
178
+ version_requirements: *2152319180
179
+ - !ruby/object:Gem::Dependency
180
+ name: rack-test
181
+ requirement: &2152318620 !ruby/object:Gem::Requirement
182
+ none: false
183
+ requirements:
184
+ - - ! '>='
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ type: :development
188
+ prerelease: false
189
+ version_requirements: *2152318620
190
+ - !ruby/object:Gem::Dependency
191
+ name: thin
192
+ requirement: &2152317800 !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: *2152317800
201
+ - !ruby/object:Gem::Dependency
202
+ name: sinatra-reloader
203
+ requirement: &2152317020 !ruby/object:Gem::Requirement
204
+ none: false
205
+ requirements:
206
+ - - ! '>='
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ type: :development
210
+ prerelease: false
211
+ version_requirements: *2152317020
80
212
  description:
81
213
  email:
82
214
  - sjltaylor@gmail.com
@@ -86,15 +218,48 @@ extensions: []
86
218
  extra_rdoc_files: []
87
219
  files:
88
220
  - .gitignore
89
- - .versionify
221
+ - .pryrc
222
+ - .rdebugrc
223
+ - .rspec
90
224
  - Gemfile
225
+ - Gemfile.lock
91
226
  - README.md
92
227
  - Rakefile
228
+ - TODO
93
229
  - bin/cup
94
230
  - cup.gemspec
231
+ - js/extra_matchers.js
95
232
  - lib/cup.rb
96
- - spec/cup_cli.spec.rb
233
+ - lib/cup/builder.rb
234
+ - lib/cup/command_line.rb
235
+ - lib/cup/cupfile.rb
236
+ - lib/cup/directory.rb
237
+ - lib/cup/noop_shell.rb
238
+ - lib/cup/server/app.rb
239
+ - lib/cup/server/middleware.rb
240
+ - lib/cup/server/view_scope.rb
241
+ - lib/cup/server/visual_specs.rb
242
+ - lib/cup/version.rb
243
+ - spec/cup/builder_spec.rb
244
+ - spec/cup/command_line_spec.rb
245
+ - spec/cup/cupfile_spec.rb
246
+ - spec/cup/directory_spec.rb
247
+ - spec/cup/server/app_spec.rb
248
+ - spec/cup/server/visual_specs_spec.rb
249
+ - spec/env.rb
97
250
  - spec/spec_helper.rb
251
+ - spec/support/javascript_load_order_acceptor.rb
252
+ - spec/support/javascripts_matchers.rb
253
+ - spec/support/macros.rb
254
+ - spec/support/stub_helpers.rb
255
+ - views/blank.slim
256
+ - views/cup.coffee
257
+ - views/cup.sass
258
+ - views/layout.slim
259
+ - views/not_found.slim
260
+ - views/root.slim
261
+ - views/spec.slim
262
+ - views/visual.slim
98
263
  homepage: ''
99
264
  licenses: []
100
265
  post_install_message:
@@ -115,10 +280,20 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
280
  version: '0'
116
281
  requirements: []
117
282
  rubyforge_project: cup
118
- rubygems_version: 1.8.5
283
+ rubygems_version: 1.8.10
119
284
  signing_key:
120
285
  specification_version: 3
121
286
  summary: ruby based tools for developing javascript libraries
122
287
  test_files:
123
- - spec/cup_cli.spec.rb
288
+ - spec/cup/builder_spec.rb
289
+ - spec/cup/command_line_spec.rb
290
+ - spec/cup/cupfile_spec.rb
291
+ - spec/cup/directory_spec.rb
292
+ - spec/cup/server/app_spec.rb
293
+ - spec/cup/server/visual_specs_spec.rb
294
+ - spec/env.rb
124
295
  - spec/spec_helper.rb
296
+ - spec/support/javascript_load_order_acceptor.rb
297
+ - spec/support/javascripts_matchers.rb
298
+ - spec/support/macros.rb
299
+ - spec/support/stub_helpers.rb
data/.versionify DELETED
@@ -1 +0,0 @@
1
- 0.0.1
data/spec/cup_cli.spec.rb DELETED
@@ -1,12 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe CupCli do
4
- describe '#create' do
5
- let(:cli) {CupCli.new}
6
- it 'should be run if no other task is specified and an argument is passed' do
7
-
8
-
9
- cli.invoke
10
- end
11
- end
12
- end