polisher 0.4 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +20 -661
- data/README.md +39 -0
- data/Rakefile +11 -88
- data/bin/binary_gem_resolver.rb +95 -0
- data/bin/gem_dependency_checker.rb +165 -0
- data/bin/git_gem_updater.rb +86 -0
- data/bin/ruby_rpm_spec_updater.rb +29 -0
- data/lib/polisher.rb +19 -0
- data/lib/polisher/apt.rb +12 -0
- data/lib/polisher/bodhi.rb +21 -0
- data/lib/polisher/bugzilla.rb +9 -0
- data/lib/polisher/core.rb +33 -0
- data/lib/polisher/errata.rb +43 -0
- data/lib/polisher/fedora.rb +43 -0
- data/lib/polisher/gem.rb +155 -0
- data/lib/polisher/gemfile.rb +72 -0
- data/lib/polisher/gemspec.rb +32 -0
- data/lib/polisher/git.rb +135 -0
- data/lib/polisher/koji.rb +54 -0
- data/lib/polisher/rhn.rb +14 -0
- data/lib/polisher/rpmspec.rb +254 -0
- data/lib/polisher/upstream.rb +29 -0
- data/lib/polisher/vendor.rb +9 -0
- data/lib/polisher/version_checker.rb +100 -0
- data/lib/polisher/yum.rb +28 -0
- data/spec/core_spec.rb +64 -0
- data/spec/fedora_spec.rb +14 -0
- data/spec/gem_spec.rb +82 -0
- data/spec/gemfile_spec.rb +45 -0
- data/spec/git_spec.rb +74 -0
- data/spec/rpmspec_spec.rb +105 -0
- data/spec/spec_helper.rb +50 -37
- data/spec/upstream_spec.rb +39 -0
- metadata +173 -179
- data/COPYING +0 -8
- data/README.rdoc +0 -105
- data/TODO +0 -7
- data/bin/server +0 -4
- data/config.ru +0 -25
- data/config/database.yml +0 -13
- data/config/polisher.yml +0 -5
- data/db/connection.rb +0 -52
- data/db/migrations/001_create_projects.rb +0 -23
- data/db/migrations/002_create_sources.rb +0 -25
- data/db/migrations/003_create_project_source_versions.rb +0 -28
- data/db/migrations/004_create_events.rb +0 -27
- data/db/migrations/005_create_project_dependencies.rb +0 -28
- data/db/models/event.rb +0 -87
- data/db/models/project.rb +0 -110
- data/db/models/project_dependency.rb +0 -27
- data/db/models/project_source_version.rb +0 -31
- data/db/models/source.rb +0 -101
- data/lib/common.rb +0 -71
- data/lib/dsl.rb +0 -292
- data/lib/event_handlers.rb +0 -166
- data/lib/gem_adapter.rb +0 -94
- data/lib/sinatra/url_for.rb +0 -40
- data/polisher.rb +0 -372
- data/public/stylesheets/style.css +0 -67
- data/spec/common_spec.rb +0 -28
- data/spec/dsl_spec.rb +0 -357
- data/spec/event_handlers_spec.rb +0 -300
- data/spec/gem_adapter_spec.rb +0 -89
- data/spec/models_spec.rb +0 -721
- data/spec/polisher_spec.rb +0 -573
- data/views/layout.haml +0 -22
- data/views/projects/index.haml +0 -42
- data/views/projects/index.html.haml +0 -38
- data/views/result.haml +0 -9
- data/views/sources/index.haml +0 -24
- data/views/sources/index.html.haml +0 -26
data/views/layout.haml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
!!! XML
|
3
|
-
|
4
|
-
%html
|
5
|
-
%head
|
6
|
-
%link{:rel => "stylesheet", :type => "text/css", :href => '/stylesheets/style.css', :media => 'all'}
|
7
|
-
%body
|
8
|
-
#header
|
9
|
-
%h3
|
10
|
-
Polisher
|
11
|
-
|
12
|
-
%ul{:id => "primary_nav"}
|
13
|
-
%li
|
14
|
-
%a{:href => url_for("/projects.html")}projects
|
15
|
-
%li
|
16
|
-
%a{:href => url_for("/sources.html")}sources
|
17
|
-
|
18
|
-
%div{:style => "clear: both;"}
|
19
|
-
|
20
|
-
#main
|
21
|
-
= yield
|
22
|
-
#footer/
|
data/views/projects/index.haml
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
- haml_tag(:projects) do
|
2
|
-
- @projects.each do |project|
|
3
|
-
- haml_tag(:project) do
|
4
|
-
- haml_tag(:id) do
|
5
|
-
= project.id
|
6
|
-
- haml_tag(:name) do
|
7
|
-
= project.name
|
8
|
-
- haml_tag(:versions) do
|
9
|
-
- project.versions.each do |version|
|
10
|
-
- haml_tag(:version) do
|
11
|
-
- haml_tag(:id) do
|
12
|
-
= version
|
13
|
-
- psources = project.project_source_versions_for_version(version)
|
14
|
-
- haml_tag(:sources) do
|
15
|
-
- psources.each do |ps|
|
16
|
-
- haml_tag(:source) do
|
17
|
-
- haml_tag(:uri) do
|
18
|
-
= ps.source.uri
|
19
|
-
- haml_tag(:version) do
|
20
|
-
= ps.source_version
|
21
|
-
- pevents = project.events_for_version(version)
|
22
|
-
- haml_tag(:events) do
|
23
|
-
- pevents.each do |event|
|
24
|
-
- haml_tag(:event) do
|
25
|
-
- haml_tag(:process) do
|
26
|
-
= event.process
|
27
|
-
- haml_tag(:process_options) do
|
28
|
-
= event.process_options
|
29
|
-
- haml_tag(:version_qualifier) do
|
30
|
-
= event.version_qualifier
|
31
|
-
- haml_tag(:version) do
|
32
|
-
= event.version
|
33
|
-
- pdependencies = project.dependencies_for_version(version)
|
34
|
-
- haml_tag(:dependencies) do
|
35
|
-
- pdependencies.each do |dep|
|
36
|
-
- haml_tag(:dependency) do
|
37
|
-
- haml_tag(:project_id) do
|
38
|
-
= dep.depends_on_project.id
|
39
|
-
- haml_tag(:project_name) do
|
40
|
-
= dep.depends_on_project.name
|
41
|
-
- haml_tag(:project_version) do
|
42
|
-
= dep.depends_on_project_version
|
@@ -1,38 +0,0 @@
|
|
1
|
-
%h1
|
2
|
-
Projects
|
3
|
-
|
4
|
-
%ul
|
5
|
-
- @projects.sort { |x,y| x.name <=> y.name }.each do |project|
|
6
|
-
%li
|
7
|
-
%h2
|
8
|
-
= project.name
|
9
|
-
%br/
|
10
|
-
%h3
|
11
|
-
sources
|
12
|
-
%ul
|
13
|
-
- project.versions.each do |version|
|
14
|
-
- pevents = project.events_for_version(version)
|
15
|
-
- psources = project.project_source_versions_for_version(version)
|
16
|
-
%li
|
17
|
-
%h4
|
18
|
-
= "version " + version
|
19
|
-
%br/
|
20
|
-
%ul
|
21
|
-
- psources.each do |ps|
|
22
|
-
%li
|
23
|
-
= ps.source.uri
|
24
|
-
= ps.source_version
|
25
|
-
%h3
|
26
|
-
events
|
27
|
-
%ul
|
28
|
-
- project.events.each do |event|
|
29
|
-
%li
|
30
|
-
= event.process.humanize
|
31
|
-
= (event.version != "" ? " on version #{event.version_qualifier} #{event.version}" : "")
|
32
|
-
= (event.process_options != "" ? " with options #{event.process_options}" : "")
|
33
|
-
%h3
|
34
|
-
dependencies
|
35
|
-
%ul
|
36
|
-
- project.project_dependencies.each do |dep|
|
37
|
-
%li
|
38
|
-
= "version " + dep.project_version.to_s + " depens on " + dep.depends_on_project.name + "(" + dep.depends_on_project_version.to_s + ")"
|
data/views/result.haml
DELETED
data/views/sources/index.haml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
- haml_tag(:sources) do
|
2
|
-
- @sources.each do |source|
|
3
|
-
- haml_tag(:source) do
|
4
|
-
- haml_tag(:id) do
|
5
|
-
= source.id
|
6
|
-
- haml_tag(:name) do
|
7
|
-
= source.name
|
8
|
-
- haml_tag(:source_type) do
|
9
|
-
= source.source_type
|
10
|
-
- haml_tag(:uri) do
|
11
|
-
= source.uri
|
12
|
-
- haml_tag(:versions) do
|
13
|
-
- source.versions.each do |version|
|
14
|
-
- haml_tag(:version) do
|
15
|
-
- haml_tag(:id) do
|
16
|
-
= version
|
17
|
-
- sprojects = source.project_source_versions_for_version(version)
|
18
|
-
- haml_tag(:projects) do
|
19
|
-
- sprojects.each do |ps|
|
20
|
-
- haml_tag(:project) do
|
21
|
-
- haml_tag(:name) do
|
22
|
-
= ps.project.name
|
23
|
-
- haml_tag(:version) do
|
24
|
-
= ps.project_version
|
@@ -1,26 +0,0 @@
|
|
1
|
-
%h1
|
2
|
-
Sources
|
3
|
-
|
4
|
-
%ul
|
5
|
-
- @sources.sort { |x,y| x.name <=> y.name }.each do |source|
|
6
|
-
%li
|
7
|
-
%h2
|
8
|
-
= source.name
|
9
|
-
%br/
|
10
|
-
%h3
|
11
|
-
versions
|
12
|
-
%ul
|
13
|
-
- source.versions.each do |version|
|
14
|
-
- sprojects = source.project_source_versions_for_version(version)
|
15
|
-
%li
|
16
|
-
%h4
|
17
|
-
= version
|
18
|
-
%br/
|
19
|
-
%h5
|
20
|
-
projects
|
21
|
-
%ul
|
22
|
-
- sprojects.each do |ps|
|
23
|
-
%h6
|
24
|
-
= ps.project.name
|
25
|
-
= ps.project_version
|
26
|
-
%br/
|