build-tool 0.5.7 → 0.6.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. data/.gitignore +1 -0
  2. data/.rvmrc +1 -0
  3. data/.yardopts +1 -0
  4. data/Gemfile +5 -0
  5. data/Gemfile.lock +56 -0
  6. data/History.txt +64 -0
  7. data/README.txt +0 -7
  8. data/Rakefile +8 -56
  9. data/bin/build-tool +4 -1
  10. data/build-tool.gemspec +62 -0
  11. data/db/migrations/20110703074000_add_command_logs.rb +17 -0
  12. data/db/migrations/20110703075000_add_module_logs.rb +20 -0
  13. data/db/migrations/20110815170000_add_features.rb +17 -0
  14. data/db/migrations/20120103204700_add_modules.rb +17 -0
  15. data/db/migrations/20120106181200_add_settings.rb +18 -0
  16. data/lib/build-tool.rb +3 -4
  17. data/lib/build-tool/application.rb +127 -37
  18. data/lib/build-tool/build-system/autoconf.rb +2 -8
  19. data/lib/build-tool/build-system/base.rb +12 -4
  20. data/lib/build-tool/build-system/cmake.rb +2 -0
  21. data/lib/build-tool/build-system/custom.rb +2 -0
  22. data/lib/build-tool/build-system/kdel10n.rb +2 -0
  23. data/lib/build-tool/build-system/make.rb +2 -0
  24. data/lib/build-tool/build-system/none.rb +2 -0
  25. data/lib/build-tool/build-system/qmake.rb +2 -0
  26. data/lib/build-tool/build-system/qt.rb +4 -0
  27. data/lib/build-tool/cfg/lexer.rex +40 -8
  28. data/lib/build-tool/cfg/lexer_base.rb +3 -1
  29. data/lib/build-tool/cfg/node.rb +17 -1
  30. data/lib/build-tool/cfg/parser.y +92 -10
  31. data/lib/build-tool/cfg/visitor.rb +202 -78
  32. data/lib/build-tool/command_actions.rb +26 -10
  33. data/lib/build-tool/commands.rb +289 -197
  34. data/lib/build-tool/commands/build.rb +13 -9
  35. data/lib/build-tool/commands/configuration.rb +25 -0
  36. data/lib/build-tool/commands/configuration/edit.rb +42 -0
  37. data/lib/build-tool/commands/configuration/list.rb +48 -0
  38. data/lib/build-tool/commands/configure.rb +9 -5
  39. data/lib/build-tool/commands/ctags.rb +8 -3
  40. data/lib/build-tool/commands/environments.rb +2 -4
  41. data/lib/build-tool/commands/environments/list.rb +13 -10
  42. data/lib/build-tool/commands/environments/set.rb +5 -1
  43. data/lib/build-tool/commands/features.rb +24 -0
  44. data/lib/build-tool/commands/features/disable.rb +70 -0
  45. data/lib/build-tool/commands/features/enable.rb +66 -0
  46. data/lib/build-tool/commands/features/list.rb +92 -0
  47. data/lib/build-tool/commands/fetch.rb +9 -3
  48. data/lib/build-tool/commands/files.rb +9 -5
  49. data/lib/build-tool/commands/gc.rb +48 -15
  50. data/lib/build-tool/commands/history.rb +21 -16
  51. data/lib/build-tool/commands/info.rb +16 -13
  52. data/lib/build-tool/commands/install.rb +8 -4
  53. data/lib/build-tool/commands/modules.rb +2 -4
  54. data/lib/build-tool/commands/modules/cleanup.rb +52 -0
  55. data/lib/build-tool/commands/modules/disable.rb +95 -0
  56. data/lib/build-tool/commands/modules/enable.rb +52 -0
  57. data/lib/build-tool/commands/modules/info.rb +44 -35
  58. data/lib/build-tool/commands/modules/list.rb +67 -15
  59. data/lib/build-tool/commands/modules/shell.rb +8 -2
  60. data/lib/build-tool/commands/rebase.rb +15 -7
  61. data/lib/build-tool/commands/recipes.rb +2 -4
  62. data/lib/build-tool/commands/recipes/add.rb +16 -2
  63. data/lib/build-tool/commands/recipes/edit.rb +72 -0
  64. data/lib/build-tool/commands/recipes/incoming.rb +11 -7
  65. data/lib/build-tool/commands/recipes/info.rb +12 -8
  66. data/lib/build-tool/commands/recipes/install.rb +37 -42
  67. data/lib/build-tool/commands/recipes/list.rb +6 -2
  68. data/lib/build-tool/configuration.rb +88 -3
  69. data/lib/build-tool/environment.rb +2 -0
  70. data/lib/build-tool/errors.rb +5 -0
  71. data/lib/build-tool/history.rb +3 -181
  72. data/lib/build-tool/model/command_log.rb +93 -0
  73. data/lib/build-tool/model/feature.rb +80 -0
  74. data/lib/build-tool/{module.rb → model/module.rb} +110 -29
  75. data/lib/build-tool/model/module_log.rb +64 -0
  76. data/lib/build-tool/model/setting.rb +84 -0
  77. data/lib/build-tool/recipe.rb +40 -18
  78. data/lib/build-tool/repository.rb +39 -33
  79. data/lib/build-tool/server.rb +27 -3
  80. data/lib/build-tool/singleton.rb +2 -0
  81. data/lib/build-tool/sshkey.rb +2 -0
  82. data/lib/build-tool/state_helper.rb +64 -0
  83. data/lib/build-tool/vcs/archive.rb +3 -1
  84. data/lib/build-tool/vcs/base.rb +13 -0
  85. data/lib/build-tool/vcs/git-svn.rb +36 -14
  86. data/lib/build-tool/vcs/git.rb +180 -44
  87. data/lib/build-tool/vcs/mercurial.rb +25 -13
  88. data/lib/build-tool/vcs/svn.rb +20 -15
  89. data/lib/build-tool/version.rb +30 -0
  90. data/lib/mj/error.rb +2 -0
  91. data/lib/mj/logging.rb +2 -0
  92. data/lib/mj/mixins/inherited_attributes.rb +73 -0
  93. data/lib/mj/tools/editor.rb +34 -0
  94. data/lib/mj/tools/ssh.rb +2 -0
  95. data/lib/mj/tools/subprocess.rb +2 -1
  96. data/lib/mj/vcs/git.rb +14 -2
  97. data/lib/mj/visitor.rb +22 -0
  98. data/tasks/db.rake +36 -0
  99. data/tasks/racc.rake +14 -0
  100. data/tasks/rdoc.rake +8 -0
  101. data/tasks/rexical.rake +14 -0
  102. data/tasks/test.rake +21 -0
  103. data/test/integration/history_test.rb +88 -0
  104. data/test/integration/parser_configuration.rb +36 -0
  105. data/test/integration/parser_environment_parser.rb +156 -0
  106. data/test/integration/parser_feature_test.rb +75 -0
  107. data/test/integration/parser_git-svn_test.rb +92 -0
  108. data/test/integration/parser_git_test.rb +97 -0
  109. data/test/integration/parser_mercurial_test.rb +77 -0
  110. data/test/integration/parser_module_test.rb +103 -0
  111. data/test/integration/parser_svn_test.rb +92 -0
  112. data/test/integration/parser_test.rb +73 -0
  113. data/test/test_helper.rb +61 -0
  114. data/test/unit/configuration_test.rb +36 -0
  115. data/test/unit/git_configuration_test.rb +163 -0
  116. data/test/unit/git_svn_configuration_test.rb +240 -0
  117. data/test/unit/mercurial_configuration_test.rb +64 -0
  118. data/test/unit/model/command_log_test.rb +103 -0
  119. data/test/unit/model/feature_test.rb +29 -0
  120. data/test/unit/model/module_log_test.rb +70 -0
  121. data/test/unit/model/module_test.rb +32 -0
  122. data/test/unit/repository_test.rb +110 -0
  123. data/test/unit/server_test.rb +66 -0
  124. data/test/unit/svn_configuration_test.rb +90 -0
  125. metadata +134 -93
  126. data/Manifest.txt +0 -80
  127. data/db/migrations/001_command_histories.rb +0 -20
  128. data/db/migrations/002_module_events.rb +0 -24
  129. data/db/migrations/003_command_histories_add_logfile.rb +0 -19
  130. data/lib/build-tool/GUI.rb +0 -360
  131. data/lib/build-tool/commands/help.rb +0 -22
  132. data/lib/build-tool/commands/lsfeatures.rb +0 -76
  133. data/lib/build-tool/feature.rb +0 -47
@@ -0,0 +1,32 @@
1
+ require 'test_helper'
2
+
3
+ setup_database()
4
+
5
+ require 'build-tool/model/module'
6
+
7
+ class ModuleTest < ActiveSupport::TestCase
8
+
9
+ test 'Constructor' do
10
+ mod = BuildTool::Module.new( :name => 'test' )
11
+ assert_equal( 'test', mod.name )
12
+ end
13
+
14
+ test 'Active logic' do
15
+ mod = BuildTool::Module.new( :name => 'test_module' )
16
+ assert_equal( 'test_module', mod.name )
17
+ assert( mod.default_active?, 'By default all modules are active' )
18
+ assert( mod.active?, 'By default all module are active' )
19
+ mod.default_active = false
20
+ assert( !mod.default_active? )
21
+ assert( !mod.active?, 'By default active? uses default_active?' )
22
+ mod.active = true
23
+ assert( !mod.default_active? )
24
+ assert( mod.active? )
25
+ mod.active = nil
26
+ assert( !mod.default_active? )
27
+ assert( !mod.active? )
28
+ end
29
+
30
+ end # class FeatureTest
31
+
32
+
@@ -0,0 +1,110 @@
1
+ require 'test_helper'
2
+
3
+ require 'build-tool/repository'
4
+
5
+ class Server
6
+
7
+ def initialize( name )
8
+ @name = name
9
+ @url = url
10
+ end
11
+
12
+ # The Servers name
13
+ attr_reader :name
14
+
15
+ attr_accessor :sshkey
16
+ attr_accessor :path
17
+ attr_accessor :user
18
+
19
+ def url( user = nil )
20
+ if user
21
+ "git://#{user}@gitorious.org/prefix"
22
+ else
23
+ "git://@gitorious.org/prefix"
24
+ end
25
+ end
26
+
27
+ end
28
+
29
+ class TestRepository < ActiveSupport::TestCase
30
+
31
+ test 'A name is required.' do
32
+ # :CHECKME: Change the thrown exception
33
+ assert_raise( StandardError ) { BuildTool::Repository.new( nil ) }
34
+ end
35
+
36
+ test 'Constructor works.' do
37
+ repo = nil
38
+ assert_nothing_raised do
39
+ repo = BuildTool::Repository.new( 'test_repo' )
40
+ end
41
+ assert_equal( 'test_repo', repo.name )
42
+ end
43
+
44
+ test 'The url is correctly build.' do
45
+ repo = BuildTool::Repository.new( 'test_repo' )
46
+ server = Server.new( 'gitorious.org' )
47
+ repo.server = server
48
+ # Add a user
49
+ repo.user = 'mjansen'
50
+ assert_equal( 'git://mjansen@gitorious.org/prefix', repo.url )
51
+ # Set a path
52
+ repo.path = 'qt/qt'
53
+ assert_equal( 'git://mjansen@gitorious.org/prefix/qt/qt', repo.url )
54
+ end
55
+
56
+ test 'Repository inheritance.' do
57
+ repo1 = BuildTool::Repository.new( 'repo1' )
58
+ repo1.server = Server.new( 'anongit.gitorious.org' )
59
+
60
+ repo2 = BuildTool::Repository.new( 'repo2' )
61
+ assert_nil( repo2.server )
62
+
63
+ # Assign it directly
64
+ repo2.parent = repo1
65
+ assert_equal( repo2.server, repo1.server )
66
+
67
+ # Assign it with a lambda
68
+ repo2.parent = lambda { repo1 }
69
+ assert_equal( repo2.server, repo1.server )
70
+
71
+ # Check the name property
72
+ assert_equal( 'repo2', repo2.name )
73
+
74
+ # Check the user property
75
+ assert_nil( repo2.user )
76
+ repo1.user = 'mjansen'
77
+ assert_equal( 'mjansen', repo2.user )
78
+
79
+ # Check the path property
80
+ assert_nil( repo2.path )
81
+ repo1.path = '/kde/trunk'
82
+ assert_equal( '/kde/trunk', repo2.path )
83
+
84
+ # Check the sshkey property (should be class but string works here too)
85
+ assert_nil( repo2.sshkey )
86
+ repo1.sshkey = '/kde/trunk'
87
+ assert_equal( '/kde/trunk', repo2.sshkey )
88
+
89
+ # Remove the parent and check everything is back to nil.
90
+ repo2.parent = nil
91
+ assert_nil( repo2.server )
92
+ assert_nil( repo2.user )
93
+ assert_nil( repo2.path )
94
+ assert_nil( repo2.sshkey )
95
+
96
+ # Set the parent again and check the values from repo2 have precedence
97
+ repo2.parent = repo1
98
+ repo2.server = Server.new( 'git.kde.org' )
99
+ assert_equal( 'git.kde.org', repo2.server.name )
100
+ repo2.user = 'kdedevel'
101
+ assert_equal( 'kdedevel', repo2.user )
102
+ repo2.path = '/tmp'
103
+ assert_equal( '/tmp', repo2.path )
104
+ repo2.sshkey = 'invalid'
105
+ assert_equal( 'invalid', repo2.sshkey )
106
+
107
+ end
108
+
109
+
110
+ end
@@ -0,0 +1,66 @@
1
+ require 'test_helper'
2
+
3
+ require 'build-tool/server'
4
+
5
+
6
+ class TestParser < ActiveSupport::TestCase
7
+
8
+ test 'A name is required.' do
9
+ # :CHECKME: Change the thrown exception
10
+ assert_raise( StandardError ) { BuildTool::Server.new( nil ) }
11
+ end
12
+
13
+ test 'The Constructor works.' do
14
+ server = nil
15
+ assert_nothing_raised do
16
+ server = BuildTool::Server.new( 'gitorious.org' )
17
+ end
18
+ assert_equal( 'gitorious.org', server.name )
19
+ end
20
+
21
+ test "Successfully parses url git://gitorious.org/qt/qt." do
22
+ server = BuildTool::Server.new( 'name', 'git://gitorious.org/qt/qt' )
23
+ assert_equal( 'name', server.name )
24
+ assert_equal( 'git', server.protocol )
25
+ assert_equal( 'gitorious.org', server.host )
26
+ assert_equal( '/qt/qt', server.path )
27
+ assert_equal( 'git://gitorious.org/qt/qt', server.url )
28
+ end
29
+
30
+ test "Successfully parses url git://gitorious.org." do
31
+ server = BuildTool::Server.new( 'name', 'git://gitorious.org' )
32
+ assert_equal( 'name', server.name )
33
+ assert_equal( 'git', server.protocol )
34
+ assert_equal( 'gitorious.org', server.host )
35
+ assert_nil( server.path )
36
+ assert_equal( 'git://gitorious.org', server.url )
37
+ end
38
+
39
+ test 'Host is the only required field.' do
40
+ server = BuildTool::Server.new( 'gitorious.org' )
41
+ assert_raise( BuildTool::ConfigurationError ) { server.url }
42
+ server.host = 'gitorious.org'
43
+ assert_nothing_raised( "Test" ) { server.url }
44
+ end
45
+
46
+ test 'The url is correctly build' do
47
+ server = BuildTool::Server.new( 'gitorious.org' )
48
+ # Just the host
49
+ server.host = 'gitorious.org'
50
+ assert_equal( 'gitorious.org', server.url )
51
+ # Set a path
52
+ server.path = 'qt/qt'
53
+ assert_equal( 'gitorious.org/qt/qt', server.url )
54
+ # Set a protocol
55
+ server.protocol = 'git'
56
+ assert_equal( 'git://gitorious.org/qt/qt', server.url )
57
+ # Unset the path
58
+ server.path = nil
59
+ assert_equal( 'git://gitorious.org', server.url )
60
+ # Now try with a user
61
+ assert_equal( 'git://mjansen@gitorious.org', server.url( 'mjansen' ) )
62
+ end
63
+
64
+
65
+ end
66
+
@@ -0,0 +1,90 @@
1
+ require 'test_helper'
2
+
3
+ require 'build-tool/vcs/svn'
4
+
5
+
6
+ class SvnConfigurationTest < ActiveSupport::TestCase
7
+
8
+ test 'Constructor.' do
9
+ cfg = BuildTool::VCS::SvnConfiguration.new
10
+ cfg.vcs( ModuleMock.new( 'test' ) )
11
+ assert_equal( 'svn', cfg.name )
12
+ assert_nil( cfg.only )
13
+ assert_raise( BuildTool::ConfigurationError ) { cfg.repository }
14
+ assert_equal( 'test', cfg.remote_path )
15
+ end
16
+
17
+ test 'accessor remote_path() works.' do
18
+ cfg = create_configuration
19
+ assert_equal( 'remote/path', cfg.remote_path )
20
+ end
21
+
22
+ test 'accessor remote_path() works with inheritance.' do
23
+ parent = create_configuration
24
+ cfg = BuildTool::VCS::SvnConfiguration.new
25
+ cfg.vcs( ModuleMock.new( 'test' ) )
26
+ cfg.parent = parent
27
+ # We get the value from the parent
28
+ assert_equal( 'remote/path', cfg.remote_path )
29
+ # Unless we override it
30
+ cfg.remote_path = 'remote/other_path'
31
+ assert_equal( 'remote/other_path', cfg.remote_path )
32
+ # And we can reset it
33
+ cfg.remote_path = nil
34
+ assert_equal( 'remote/path', cfg.remote_path )
35
+ end
36
+
37
+ test 'accessor only() works' do
38
+ cfg = create_configuration
39
+ assert_equal( [ 'src', 'CMakeLists.txt' ], cfg.only )
40
+ end
41
+
42
+ test 'accessor only() works with inheritance.' do
43
+ parent = create_configuration
44
+ cfg = BuildTool::VCS::SvnConfiguration.new
45
+ cfg.vcs( ModuleMock.new( 'test' ) )
46
+ cfg.parent = parent
47
+ # We get the value from the parent
48
+ assert_equal( [ 'src', 'CMakeLists.txt' ], cfg.only )
49
+ # Unless we override it
50
+ cfg.only = [ 'src', 'tst', 'CMakeLists.txt' ]
51
+ assert_equal( [ 'src', 'tst', 'CMakeLists.txt' ], cfg.only )
52
+ # And we can reset it
53
+ cfg.only = nil
54
+ assert_equal( [ 'src', 'CMakeLists.txt' ], cfg.only )
55
+ end
56
+
57
+ test 'repository() accessor works.' do
58
+ cfg = create_configuration
59
+ assert_equal( 'repo', cfg.repository.name )
60
+ end
61
+
62
+ test 'repository() accessor works with inheritance.' do
63
+ parent = create_configuration
64
+ # Create a empty object with a parent
65
+ cfg = BuildTool::VCS::SvnConfiguration.new
66
+ cfg.parent = parent
67
+ # Value is taken from parent
68
+ assert_equal( 'repo', cfg.repository.name )
69
+ # Unless we set it locally
70
+ cfg.repository = RepositoryMock.new( 'repo2' )
71
+ assert_equal( 'repo2', cfg.repository.name )
72
+ # After a reset
73
+ cfg.repository = nil
74
+ assert_equal( 'repo', cfg.repository.name )
75
+ end
76
+
77
+ private
78
+
79
+ def create_configuration
80
+ # Create a configuration object
81
+ cfg = BuildTool::VCS::SvnConfiguration.new
82
+ cfg.vcs( ModuleMock.new( 'test' ) )
83
+ cfg.remote_path = 'remote/path'
84
+ cfg.only = [ 'src', 'CMakeLists.txt' ]
85
+ cfg.repository = RepositoryMock.new( 'repo' )
86
+ cfg
87
+ end
88
+
89
+ end
90
+
metadata CHANGED
@@ -1,63 +1,63 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
5
- prerelease:
4
+ version: 0.6.0.rc1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Michael Jansen
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-04 00:00:00.000000000Z
12
+ date: 2012-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: logging
16
- requirement: &6491620 !ruby/object:Gem::Requirement
16
+ requirement: &5457780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.4.3
21
+ version: 1.6.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *6491620
24
+ version_requirements: *5457780
25
25
  - !ruby/object:Gem::Dependency
26
- name: sequel
27
- requirement: &6490920 !ruby/object:Gem::Requirement
26
+ name: activerecord
27
+ requirement: &5457040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
31
31
  - !ruby/object:Gem::Version
32
- version: 3.18.0
32
+ version: 3.2.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *6490920
35
+ version_requirements: *5457040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sqlite3
38
- requirement: &6490420 !ruby/object:Gem::Requirement
38
+ requirement: &5454900 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
- version: 1.3.3
43
+ version: 1.3.5
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *6490420
46
+ version_requirements: *5454900
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: ansi
49
- requirement: &6489840 !ruby/object:Gem::Requirement
49
+ requirement: &5454320 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.2.2
54
+ version: 1.4.2
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *6489840
57
+ version_requirements: *5454320
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: grit
60
- requirement: &6489140 !ruby/object:Gem::Requirement
60
+ requirement: &5453780 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,113 +65,89 @@ dependencies:
65
65
  version: 2.4.1
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *6489140
68
+ version_requirements: *5453780
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: racc
71
- requirement: &6488480 !ruby/object:Gem::Requirement
72
- none: false
73
- requirements:
74
- - - ~>
75
- - !ruby/object:Gem::Version
76
- version: 1.4.7
77
- type: :development
78
- prerelease: false
79
- version_requirements: *6488480
80
- - !ruby/object:Gem::Dependency
81
- name: hoe-debugging
82
- requirement: &6487820 !ruby/object:Gem::Requirement
71
+ requirement: &5453320 !ruby/object:Gem::Requirement
83
72
  none: false
84
73
  requirements:
85
74
  - - ! '>='
86
75
  - !ruby/object:Gem::Version
87
- version: 1.0.1
76
+ version: 1.4.7
88
77
  type: :development
89
78
  prerelease: false
90
- version_requirements: *6487820
79
+ version_requirements: *5453320
91
80
  - !ruby/object:Gem::Dependency
92
- name: hoe-doofus
93
- requirement: &6487360 !ruby/object:Gem::Requirement
81
+ name: rexical
82
+ requirement: &5452780 !ruby/object:Gem::Requirement
94
83
  none: false
95
84
  requirements:
96
85
  - - ! '>='
97
86
  - !ruby/object:Gem::Version
98
- version: 1.0.0
87
+ version: 1.0.5
99
88
  type: :development
100
89
  prerelease: false
101
- version_requirements: *6487360
90
+ version_requirements: *5452780
102
91
  - !ruby/object:Gem::Dependency
103
- name: hoe-git
104
- requirement: &6486640 !ruby/object:Gem::Requirement
92
+ name: rake
93
+ requirement: &5452280 !ruby/object:Gem::Requirement
105
94
  none: false
106
95
  requirements:
107
96
  - - ! '>='
108
97
  - !ruby/object:Gem::Version
109
- version: 1.3.0
98
+ version: 0.9.2
110
99
  type: :development
111
100
  prerelease: false
112
- version_requirements: *6486640
101
+ version_requirements: *5452280
113
102
  - !ruby/object:Gem::Dependency
114
- name: racc
115
- requirement: &6486040 !ruby/object:Gem::Requirement
103
+ name: yard
104
+ requirement: &5451800 !ruby/object:Gem::Requirement
116
105
  none: false
117
106
  requirements:
118
107
  - - ! '>='
119
108
  - !ruby/object:Gem::Version
120
- version: 1.4.6
109
+ version: 0.7.5
121
110
  type: :development
122
111
  prerelease: false
123
- version_requirements: *6486040
112
+ version_requirements: *5451800
124
113
  - !ruby/object:Gem::Dependency
125
- name: rexical
126
- requirement: &6485440 !ruby/object:Gem::Requirement
114
+ name: turn
115
+ requirement: &5482100 !ruby/object:Gem::Requirement
127
116
  none: false
128
117
  requirements:
129
118
  - - ! '>='
130
119
  - !ruby/object:Gem::Version
131
- version: 1.0.5
132
- type: :development
133
- prerelease: false
134
- version_requirements: *6485440
135
- - !ruby/object:Gem::Dependency
136
- name: hoe
137
- requirement: &6484840 !ruby/object:Gem::Requirement
138
- none: false
139
- requirements:
140
- - - ~>
141
- - !ruby/object:Gem::Version
142
- version: '2.9'
120
+ version: '0.9'
143
121
  type: :development
144
122
  prerelease: false
145
- version_requirements: *6484840
146
- description: ! 'This project is inspired by kdesrc-build[http://kdesrc-build.kde.org/].
147
-
148
-
149
- It help in building and maintaining a development environment. It downloads
150
-
151
- and configures sources and updates them later.'
123
+ version_requirements: *5482100
124
+ description: ! "\n The tool helps \n\n ...\n "
152
125
  email:
153
126
  - info@michael-jansen.biz
154
127
  executables:
155
128
  - build-tool
156
129
  extensions: []
157
130
  extra_rdoc_files:
158
- - History.txt
159
- - Manifest.txt
160
131
  - README.txt
161
132
  files:
162
133
  - .gitattributes
163
134
  - .gitignore
135
+ - .rvmrc
136
+ - .yardopts
137
+ - Gemfile
138
+ - Gemfile.lock
164
139
  - History.txt
165
140
  - KNOWN_PROBLEMS
166
- - Manifest.txt
167
141
  - README.txt
168
142
  - Rakefile
169
143
  - bin/build-tool
170
- - db/migrations/001_command_histories.rb
171
- - db/migrations/002_module_events.rb
172
- - db/migrations/003_command_histories_add_logfile.rb
144
+ - build-tool.gemspec
145
+ - db/migrations/20110703074000_add_command_logs.rb
146
+ - db/migrations/20110703075000_add_module_logs.rb
147
+ - db/migrations/20110815170000_add_features.rb
148
+ - db/migrations/20120103204700_add_modules.rb
149
+ - db/migrations/20120106181200_add_settings.rb
173
150
  - lib/build-tool.rb
174
- - lib/build-tool/GUI.rb
175
151
  - lib/build-tool/application.rb
176
152
  - lib/build-tool/build-system/autoconf.rb
177
153
  - lib/build-tool/build-system/base.rb
@@ -187,31 +163,38 @@ files:
187
163
  - lib/build-tool/cfg/node.rb
188
164
  - lib/build-tool/cfg/parser.y
189
165
  - lib/build-tool/cfg/visitor.rb
190
- - lib/build-tool/cfg/parser.rb
191
- - lib/build-tool/cfg/lexer.rb
192
166
  - lib/build-tool/command_actions.rb
193
167
  - lib/build-tool/commands.rb
194
168
  - lib/build-tool/commands/build.rb
169
+ - lib/build-tool/commands/configuration.rb
170
+ - lib/build-tool/commands/configuration/edit.rb
171
+ - lib/build-tool/commands/configuration/list.rb
195
172
  - lib/build-tool/commands/configure.rb
196
173
  - lib/build-tool/commands/ctags.rb
197
174
  - lib/build-tool/commands/environments.rb
198
175
  - lib/build-tool/commands/environments/list.rb
199
176
  - lib/build-tool/commands/environments/set.rb
177
+ - lib/build-tool/commands/features.rb
178
+ - lib/build-tool/commands/features/disable.rb
179
+ - lib/build-tool/commands/features/enable.rb
180
+ - lib/build-tool/commands/features/list.rb
200
181
  - lib/build-tool/commands/fetch.rb
201
182
  - lib/build-tool/commands/files.rb
202
183
  - lib/build-tool/commands/gc.rb
203
- - lib/build-tool/commands/help.rb
204
184
  - lib/build-tool/commands/history.rb
205
185
  - lib/build-tool/commands/info.rb
206
186
  - lib/build-tool/commands/install.rb
207
- - lib/build-tool/commands/lsfeatures.rb
208
187
  - lib/build-tool/commands/modules.rb
188
+ - lib/build-tool/commands/modules/cleanup.rb
189
+ - lib/build-tool/commands/modules/disable.rb
190
+ - lib/build-tool/commands/modules/enable.rb
209
191
  - lib/build-tool/commands/modules/info.rb
210
192
  - lib/build-tool/commands/modules/list.rb
211
193
  - lib/build-tool/commands/modules/shell.rb
212
194
  - lib/build-tool/commands/rebase.rb
213
195
  - lib/build-tool/commands/recipes.rb
214
196
  - lib/build-tool/commands/recipes/add.rb
197
+ - lib/build-tool/commands/recipes/edit.rb
215
198
  - lib/build-tool/commands/recipes/incoming.rb
216
199
  - lib/build-tool/commands/recipes/info.rb
217
200
  - lib/build-tool/commands/recipes/install.rb
@@ -219,35 +202,70 @@ files:
219
202
  - lib/build-tool/configuration.rb
220
203
  - lib/build-tool/environment.rb
221
204
  - lib/build-tool/errors.rb
222
- - lib/build-tool/feature.rb
223
205
  - lib/build-tool/history.rb
224
- - lib/build-tool/module.rb
206
+ - lib/build-tool/model/command_log.rb
207
+ - lib/build-tool/model/feature.rb
208
+ - lib/build-tool/model/module.rb
209
+ - lib/build-tool/model/module_log.rb
210
+ - lib/build-tool/model/setting.rb
225
211
  - lib/build-tool/recipe.rb
226
212
  - lib/build-tool/repository.rb
227
213
  - lib/build-tool/server.rb
228
214
  - lib/build-tool/singleton.rb
229
215
  - lib/build-tool/sshkey.rb
216
+ - lib/build-tool/state_helper.rb
230
217
  - lib/build-tool/vcs/archive.rb
231
218
  - lib/build-tool/vcs/base.rb
232
219
  - lib/build-tool/vcs/git-svn.rb
233
220
  - lib/build-tool/vcs/git.rb
234
221
  - lib/build-tool/vcs/mercurial.rb
235
222
  - lib/build-tool/vcs/svn.rb
223
+ - lib/build-tool/version.rb
236
224
  - lib/mj/error.rb
237
225
  - lib/mj/logging.rb
226
+ - lib/mj/mixins/inherited_attributes.rb
227
+ - lib/mj/tools/editor.rb
238
228
  - lib/mj/tools/ssh.rb
239
229
  - lib/mj/tools/subprocess.rb
240
230
  - lib/mj/vcs/git.rb
241
231
  - lib/mj/visitor.rb
242
- homepage: http://michael-jansen.biz/build-tool
243
- licenses: []
244
- post_install_message: ! " To start with build-tool try the following commands:\n
245
- \ > build-tool recipe add git://gitorious.org/build-tool/kde-trunk-recipe.git
246
- kde\n > build-tool recipe list\n > build-tool recipe install kde\n\n For
247
- documentation see http://michael-jansen.biz/build-tool\n\n"
248
- rdoc_options:
249
- - --main
250
- - README.txt
232
+ - tasks/db.rake
233
+ - tasks/racc.rake
234
+ - tasks/rdoc.rake
235
+ - tasks/rexical.rake
236
+ - tasks/test.rake
237
+ - test/integration/history_test.rb
238
+ - test/integration/parser_configuration.rb
239
+ - test/integration/parser_environment_parser.rb
240
+ - test/integration/parser_feature_test.rb
241
+ - test/integration/parser_git-svn_test.rb
242
+ - test/integration/parser_git_test.rb
243
+ - test/integration/parser_mercurial_test.rb
244
+ - test/integration/parser_module_test.rb
245
+ - test/integration/parser_svn_test.rb
246
+ - test/integration/parser_test.rb
247
+ - test/test_helper.rb
248
+ - test/unit/configuration_test.rb
249
+ - test/unit/git_configuration_test.rb
250
+ - test/unit/git_svn_configuration_test.rb
251
+ - test/unit/mercurial_configuration_test.rb
252
+ - test/unit/model/command_log_test.rb
253
+ - test/unit/model/feature_test.rb
254
+ - test/unit/model/module_log_test.rb
255
+ - test/unit/model/module_test.rb
256
+ - test/unit/repository_test.rb
257
+ - test/unit/server_test.rb
258
+ - test/unit/svn_configuration_test.rb
259
+ - lib/build-tool/cfg/parser.rb
260
+ - lib/build-tool/cfg/lexer.rb
261
+ homepage: http://michael-jansen.biz
262
+ licenses:
263
+ - GPL-V2+
264
+ post_install_message: ! "Thank you for using build-tool. For documentation see http://michael-jansen.biz/build-tool
265
+ .\nReport bugs to kde (at) michael-jansen.biz. \n\nTo start with build-tool try
266
+ the following commands:\n> build-tool recipe add git://gitorious.org/build-tool/kde-trunk-recipe.git
267
+ kde\n> build-tool recipe list\n> build-tool recipe install kde\n\n"
268
+ rdoc_options: []
251
269
  require_paths:
252
270
  - lib
253
271
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -255,17 +273,40 @@ required_ruby_version: !ruby/object:Gem::Requirement
255
273
  requirements:
256
274
  - - ! '>='
257
275
  - !ruby/object:Gem::Version
258
- version: '0'
276
+ version: 1.9.2
259
277
  required_rubygems_version: !ruby/object:Gem::Requirement
260
278
  none: false
261
279
  requirements:
262
- - - ! '>='
280
+ - - ! '>'
263
281
  - !ruby/object:Gem::Version
264
- version: '0'
282
+ version: 1.3.1
265
283
  requirements: []
266
284
  rubyforge_project: build-tool
267
- rubygems_version: 1.8.6
285
+ rubygems_version: 1.8.15
268
286
  signing_key:
269
287
  specification_version: 3
270
- summary: This project is inspired by kdesrc-build[http://kdesrc-build.kde.org/]
271
- test_files: []
288
+ summary: A tool helping to download, configure and compile from sources.
289
+ test_files:
290
+ - test/integration/history_test.rb
291
+ - test/integration/parser_configuration.rb
292
+ - test/integration/parser_environment_parser.rb
293
+ - test/integration/parser_feature_test.rb
294
+ - test/integration/parser_git-svn_test.rb
295
+ - test/integration/parser_git_test.rb
296
+ - test/integration/parser_mercurial_test.rb
297
+ - test/integration/parser_module_test.rb
298
+ - test/integration/parser_svn_test.rb
299
+ - test/integration/parser_test.rb
300
+ - test/test_helper.rb
301
+ - test/unit/configuration_test.rb
302
+ - test/unit/git_configuration_test.rb
303
+ - test/unit/git_svn_configuration_test.rb
304
+ - test/unit/mercurial_configuration_test.rb
305
+ - test/unit/model/command_log_test.rb
306
+ - test/unit/model/feature_test.rb
307
+ - test/unit/model/module_log_test.rb
308
+ - test/unit/model/module_test.rb
309
+ - test/unit/repository_test.rb
310
+ - test/unit/server_test.rb
311
+ - test/unit/svn_configuration_test.rb
312
+ has_rdoc: