giraffesoft-integrity 0.1.4

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/views/layout.haml ADDED
@@ -0,0 +1,25 @@
1
+ !!! Strict
2
+ %html{ :lang => "en", :"xml:lang" => "en", :xmlns => "http://www.w3.org/1999/xhtml" }
3
+ %head
4
+ %meta{ :content => "text/html; charset=utf-8", :"http-equiv" => "Content-Type" }
5
+ %meta{ :content => "en", :"http-equiv" => "Content-Language" }
6
+ %title= "#{@title.last} | integrity"
7
+ %link{ :media => "screen", :type => "text/css", :href => "/reset.css", :rel => "stylesheet" }
8
+ %link{ :media => "screen", :type => "text/css", :href => "/buttons.css", :rel => "stylesheet" }
9
+ %link{ :media => "screen", :type => "text/css", :href => "/integrity.css", :rel => "stylesheet" }
10
+ %body
11
+ #header
12
+ %h1= @title.join(" / ")
13
+ %address.watermark
14
+ checked with
15
+ %a{ :href => "http://integrityapp.com", :title => "The fun continuous integration server" } integrity
16
+ #content= yield
17
+ - if Integrity.config && Integrity.config[:use_basic_auth]
18
+ #footer
19
+ - if authorized?
20
+ Oh, hello
21
+ %strong&= current_user
22
+ - else
23
+ Hey there!
24
+ %a{ :href => "/login" } Log In
25
+ if you have a user
data/views/new.haml ADDED
@@ -0,0 +1,53 @@
1
+ %form{ :method => "post", :action => (@project.new_record? ? "/" : project_url(@project)) }
2
+ - unless @project.new_record?
3
+ .hidden
4
+ %input{ :name => "_method", :type => "hidden", :value => "put" }
5
+
6
+ %p.required{ :class => error_class(@project, :name) }
7
+ %label{ :for => "project_name" }
8
+ Name
9
+ = errors_on @project, :name
10
+ %input.text#project_name{ :name => "project_data[name]", :type => "text", :value => h(@project.name) }
11
+
12
+ %p.required{ :class => error_class(@project, :uri) }
13
+ %label{ :for => "project_repository" }
14
+ Git repository
15
+ = errors_on @project, :uri
16
+ %input.text#project_repository{ :name => "project_data[uri]", :type => "text", :value => h(@project.uri) }
17
+
18
+ %p.normal{ :class => error_class(@project, :branch) }
19
+ %label{ :for => "project_branch" }
20
+ Branch to track
21
+ = errors_on @project, :branch
22
+ %input.text#project_branch{ :name => "project_data[branch]", :type => "text", :value => "master", :value => h(@project.branch) }
23
+
24
+ %p.normal{ :class => error_class(@project, :command) }
25
+ %label{ :for => "project_build_script" }
26
+ Build script
27
+ = errors_on @project, :command
28
+ %textarea#project_build_script{ :name => "project_data[command]", :cols => 40, :rows => 1 }&= @project.command.to_s
29
+
30
+ %p.normal.checkbox
31
+ %label{ :for => "project_public" } Public project
32
+ %input.checkbox#project_public{ checkbox("project_data[public]", @project.public?) }
33
+
34
+ - Notifier.available.each do |notifier|
35
+ = notifier_form(notifier)
36
+
37
+ %p.submit
38
+ %button.positive{ :type => "submit" }= @project.new_record? ? "Create Project" : "Update Project"
39
+
40
+ - unless @project.new_record?
41
+ %h2 Push URL
42
+ %p
43
+ You can use this Push URL with your GitHub project to enable automated continuous integration.
44
+ %p
45
+ %code#push_url= push_url_for(@project)
46
+
47
+ %form{ :method => "post", :action => project_url(@project) }
48
+ .hidden
49
+ %input{ :name => "_method", :type => "hidden", :value => "delete" }
50
+ %h2 Delete this project
51
+ %p.submit.destroy
52
+ This will delete the project and all the builds in the system
53
+ %button.negative{ :type => "submit" } Yes, I'm sure, nuke it
@@ -0,0 +1,31 @@
1
+ .error
2
+ %h1
3
+ Ehm, you seem a bit lost, sir. Maybe going to the
4
+ %a{ :href => "/", :rel => "home" } list of projects
5
+ will help?
6
+ %dl
7
+ %dt Ouch. This is a 404 error-thingie, right?
8
+ %dd Yeah, you browsed to a page that doesn't exist in this server.
9
+
10
+ %dt What can I do?
11
+ %dd
12
+ As a very good book says on its cover:
13
+ = succeed "." do
14
+ %strong DON'T PANIC
15
+ / if you didn't get the reference you aren't as nerd as you should be
16
+ You should probably just go back to
17
+ %a{ :href => "/", :rel => "home" } the projects list
18
+ or, alternatively, go
19
+ = succeed "." do
20
+ %a{ :href => request.referer } back from whence you came
21
+
22
+ %dt
23
+ What the hell is
24
+ = succeed "?" do
25
+ %strong Integrity
26
+ %dd
27
+ Integrity is your friendly
28
+ %a{ :href => "http://en.wikipedia.org/wiki/Continuous_integration" } Continuous Integration
29
+ server. If you want to know more about us, check our website at
30
+ = succeed "." do
31
+ %a{ :href => "http://integrityapp.com" } integrityapp.com
@@ -0,0 +1,7 @@
1
+ %h2.notifier
2
+ %label
3
+ %input.checkbox{ checkbox("enabled_notifiers[]", enabled, :value => notifier) }
4
+ == #{notifier} Notifications
5
+ %span.warning be aware that no validation will be made on these fields
6
+ %fieldset{ :id => "#{notifier.downcase}_config" }
7
+ = yield
@@ -0,0 +1,32 @@
1
+ #administrative
2
+ %a{ :href => project_url(@project, :edit) } Edit Project
3
+
4
+ - if @project.builds.empty?
5
+ %form.blank_slate{ :action => project_url(@project, :builds), :method => :post }
6
+ %p No builds for this project, buddy
7
+ %h1
8
+ You can request a
9
+ %button{ :type => :submit } manual build
10
+ - else
11
+ - @build = @project.last_build
12
+ #last_build{ :class => @build.status }
13
+ = haml(:build_info, :layout => false)
14
+
15
+ %form{ :action => project_url(@project, :builds), :method => :post }
16
+ %p.submit
17
+ %button{ :type => :submit } Request Manual Build
18
+
19
+ - unless @project.previous_builds.empty?
20
+ %h2 Previous builds
21
+ %ul#previous_builds
22
+ - @project.previous_builds.each do |build|
23
+ %li{ :class => build.status }
24
+ %a{ :href => build_url(build) }
25
+ %strong.build
26
+ Build
27
+ &= build.short_commit_identifier
28
+ %span.attribution
29
+ by
30
+ = succeed "," do
31
+ &= build.commit_author.name
32
+ &= pretty_date build.commited_at
@@ -0,0 +1,38 @@
1
+ .error
2
+ %h1
3
+ So... you don't know the password? Hmm... You can
4
+ %a{ :href => "/login" } try again
5
+ or
6
+ = succeed "." do
7
+ %a{ :href => "/", :rel => "home" } go back
8
+
9
+ %dl
10
+ %dt Er... So... I'm trying to login without a password...
11
+ %dd
12
+ Hey pal, sorry, but I can't let in anyone that isn't
13
+ = succeed "." do
14
+ %strong on the list
15
+ I could lose my job you know? You'll have to come up with
16
+ a valid password :-(
17
+
18
+ %dt What can I do?
19
+ %dd
20
+ This just means that you can't access some part of this Integrity
21
+ server, but that shouldn't let you out of some of the
22
+ %a{ :href => "/" } awesome projects
23
+ hosted here. If this was just a misunderstanding and you
24
+ %strong do
25
+ have a password, then
26
+ = succeed "." do
27
+ %a{ :href => "/login" } click here to try again
28
+
29
+ %dt
30
+ So what the hell is
31
+ = succeed "?" do
32
+ %strong Integrity
33
+ %dd
34
+ Integrity is your friendly
35
+ %a{ :href => "http://en.wikipedia.org/wiki/Continuous_integration" } Continuous Integration
36
+ server. If you want to know more about us, check our website at
37
+ = succeed "." do
38
+ %a{ :href => "http://integrityapp.com" } integrityapp.com
metadata ADDED
@@ -0,0 +1,207 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: giraffesoft-integrity
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ platform: ruby
6
+ authors:
7
+ - "Nicol\xC3\xA1s Sanguinetti"
8
+ - Simon Rozet
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2008-11-22 00:00:00 -08:00
14
+ default_executable: integrity
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: sinatra
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 0.3.2
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: haml
27
+ version_requirement:
28
+ version_requirements: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: "0"
33
+ version:
34
+ - !ruby/object:Gem::Dependency
35
+ name: dm-core
36
+ version_requirement:
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 0.9.5
42
+ version:
43
+ - !ruby/object:Gem::Dependency
44
+ name: dm-validations
45
+ version_requirement:
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.9.5
51
+ version:
52
+ - !ruby/object:Gem::Dependency
53
+ name: dm-types
54
+ version_requirement:
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 0.9.5
60
+ version:
61
+ - !ruby/object:Gem::Dependency
62
+ name: dm-timestamps
63
+ version_requirement:
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 0.9.5
69
+ version:
70
+ - !ruby/object:Gem::Dependency
71
+ name: dm-aggregates
72
+ version_requirement:
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: 0.9.5
78
+ version:
79
+ - !ruby/object:Gem::Dependency
80
+ name: data_objects
81
+ version_requirement:
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 0.9.5
87
+ version:
88
+ - !ruby/object:Gem::Dependency
89
+ name: do_sqlite3
90
+ version_requirement:
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: 0.9.5
96
+ version:
97
+ - !ruby/object:Gem::Dependency
98
+ name: json
99
+ version_requirement:
100
+ version_requirements: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: "0"
105
+ version:
106
+ - !ruby/object:Gem::Dependency
107
+ name: foca-sinatra-diddies
108
+ version_requirement:
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: 0.0.2
114
+ version:
115
+ - !ruby/object:Gem::Dependency
116
+ name: rspec_hpricot_matchers
117
+ version_requirement:
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: "0"
123
+ version:
124
+ - !ruby/object:Gem::Dependency
125
+ name: thor
126
+ version_requirement:
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: "0"
132
+ version:
133
+ description: Your Friendly Continuous Integration server. Easy, fun and painless!
134
+ email: contacto@nicolassanguinetti.info
135
+ executables:
136
+ - integrity
137
+ extensions: []
138
+
139
+ extra_rdoc_files: []
140
+
141
+ files:
142
+ - README.markdown
143
+ - Rakefile
144
+ - VERSION.yml
145
+ - app.rb
146
+ - bin/integrity
147
+ - config/config.sample.ru
148
+ - config/config.sample.yml
149
+ - config/thin.sample.yml
150
+ - integrity.gemspec
151
+ - lib/integrity.rb
152
+ - lib/integrity/build.rb
153
+ - lib/integrity/builder.rb
154
+ - lib/integrity/core_ext/object.rb
155
+ - lib/integrity/core_ext/string.rb
156
+ - lib/integrity/core_ext/time.rb
157
+ - lib/integrity/notifier.rb
158
+ - lib/integrity/notifier/base.rb
159
+ - lib/integrity/project.rb
160
+ - lib/integrity/scm.rb
161
+ - lib/integrity/scm/git.rb
162
+ - lib/integrity/scm/git/uri.rb
163
+ - public/buttons.css
164
+ - public/reset.css
165
+ - public/spinner.gif
166
+ - vendor/sinatra-hacks/lib/hacks.rb
167
+ - views/build.haml
168
+ - views/build_info.haml
169
+ - views/error.haml
170
+ - views/home.haml
171
+ - views/integrity.sass
172
+ - views/layout.haml
173
+ - views/new.haml
174
+ - views/not_found.haml
175
+ - views/notifier.haml
176
+ - views/project.haml
177
+ - views/unauthorized.haml
178
+ - spec/spec_helper.rb
179
+ - spec/form_field_matchers.rb
180
+ has_rdoc: false
181
+ homepage: http://integrityapp.com
182
+ post_install_message: Run `integrity help` for information on how to setup Integrity.
183
+ rdoc_options: []
184
+
185
+ require_paths:
186
+ - lib
187
+ required_ruby_version: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: "0"
192
+ version:
193
+ required_rubygems_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: "0"
198
+ version:
199
+ requirements: []
200
+
201
+ rubyforge_project: integrity
202
+ rubygems_version: 1.2.0
203
+ signing_key:
204
+ specification_version: 2
205
+ summary: The easy and fun Continuous Integration server
206
+ test_files: []
207
+