development 1.0.8 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/CHANGELOG.md +3 -0
  2. data/README.md +59 -82
  3. data/lib/development/configuration_interface.rb +123 -0
  4. data/lib/development/directory/directory_interface.rb +165 -0
  5. data/lib/development/directory.rb +9 -0
  6. data/lib/development/gem/gem_interface.rb +191 -0
  7. data/lib/development/gem.rb +9 -0
  8. data/lib/development/gemset/gemset_interface.rb +314 -0
  9. data/lib/development/gemset.rb +9 -0
  10. data/lib/development.rb +428 -783
  11. data/lib/namespaces.rb +9 -0
  12. data/lib/requires.rb +23 -0
  13. data/lib/setup.rb +15 -0
  14. data/spec/development/directory_spec.rb +75 -0
  15. data/spec/development/gem_spec.rb +63 -0
  16. data/spec/development/gemset_spec.rb +105 -0
  17. data/spec/development_spec.rb +142 -277
  18. data/spec/{require_mock → mock/require_mock}/lib/require_mock.rb +0 -0
  19. data/spec/mock/require_mock-submock/lib/require_mock/submock.rb +3 -0
  20. data/spec/{require_mock2 → mock/require_mock2}/lib/require_mock2.rb +0 -0
  21. data/spec/mock/require_mock3/lib/require_mock3.rb +4 -0
  22. data/spec/mock/require_mock4/lib/require_mock4.rb +4 -0
  23. metadata +20 -19
  24. data/lib/development/exception/expression_error/unknown_directory_name.rb +0 -14
  25. data/lib/development/exception/expression_error/unknown_gem_or_gemset_name.rb +0 -14
  26. data/lib/development/exception/expression_error.rb +0 -18
  27. data/lib/development/exception/malformed_expression/malformed_enable_disable_expression.rb +0 -15
  28. data/lib/development/exception/malformed_expression/malformed_gemset_expression.rb +0 -15
  29. data/lib/development/exception/malformed_expression/malformed_general_directory_expression.rb +0 -15
  30. data/lib/development/exception/malformed_expression/malformed_location_expression.rb +0 -15
  31. data/lib/development/exception/malformed_expression/malformed_named_directory_expression.rb +0 -15
  32. data/lib/development/exception/malformed_expression/malformed_remove_general_directory_expression.rb +0 -15
  33. data/lib/development/exception/malformed_expression.rb +0 -16
  34. data/spec/mock_gem/lib/mock_gem.rb +0 -4
  35. data/spec/mock_gem-subgem/lib/mock_gem/subgem.rb +0 -4
  36. data/spec/mock_gem-subgem2/lib/mock_gem/subgem2.rb +0 -4
  37. data/spec/mock_gem2/lib/mock_gem2.rb +0 -4
  38. data/spec/other_require_mock/lib/other_require_mock.rb +0 -4
@@ -0,0 +1,3 @@
1
+
2
+ class ::Development::RequireMock::SubMock
3
+ end
@@ -0,0 +1,4 @@
1
+
2
+ class ::Development::RequireMock3
3
+
4
+ end
@@ -0,0 +1,4 @@
1
+
2
+ class ::Development::RequireMock4
3
+
4
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: development
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-10 00:00:00.000000000 Z
12
+ date: 2012-07-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Sometimes problems in one gem under development only appear in the context
15
15
  of use in another gem. In these contexts it can be difficult to discern the particular
@@ -26,26 +26,27 @@ executables: []
26
26
  extensions: []
27
27
  extra_rdoc_files: []
28
28
  files:
29
- - lib/development/exception/expression_error/unknown_directory_name.rb
30
- - lib/development/exception/expression_error/unknown_gem_or_gemset_name.rb
31
- - lib/development/exception/expression_error.rb
32
- - lib/development/exception/malformed_expression/malformed_enable_disable_expression.rb
33
- - lib/development/exception/malformed_expression/malformed_gemset_expression.rb
34
- - lib/development/exception/malformed_expression/malformed_general_directory_expression.rb
35
- - lib/development/exception/malformed_expression/malformed_location_expression.rb
36
- - lib/development/exception/malformed_expression/malformed_named_directory_expression.rb
37
- - lib/development/exception/malformed_expression/malformed_remove_general_directory_expression.rb
38
- - lib/development/exception/malformed_expression.rb
29
+ - lib/development/configuration_interface.rb
30
+ - lib/development/directory/directory_interface.rb
31
+ - lib/development/directory.rb
32
+ - lib/development/gem/gem_interface.rb
33
+ - lib/development/gem.rb
34
+ - lib/development/gemset/gemset_interface.rb
35
+ - lib/development/gemset.rb
39
36
  - lib/development/require.rb
40
37
  - lib/development.rb
38
+ - lib/namespaces.rb
39
+ - lib/requires.rb
40
+ - lib/setup.rb
41
+ - spec/development/directory_spec.rb
42
+ - spec/development/gem_spec.rb
43
+ - spec/development/gemset_spec.rb
41
44
  - spec/development_spec.rb
42
- - spec/mock_gem/lib/mock_gem.rb
43
- - spec/mock_gem-subgem/lib/mock_gem/subgem.rb
44
- - spec/mock_gem-subgem2/lib/mock_gem/subgem2.rb
45
- - spec/mock_gem2/lib/mock_gem2.rb
46
- - spec/other_require_mock/lib/other_require_mock.rb
47
- - spec/require_mock/lib/require_mock.rb
48
- - spec/require_mock2/lib/require_mock2.rb
45
+ - spec/mock/require_mock/lib/require_mock.rb
46
+ - spec/mock/require_mock-submock/lib/require_mock/submock.rb
47
+ - spec/mock/require_mock2/lib/require_mock2.rb
48
+ - spec/mock/require_mock3/lib/require_mock3.rb
49
+ - spec/mock/require_mock4/lib/require_mock4.rb
49
50
  - README.md
50
51
  - CHANGELOG.md
51
52
  homepage: http://rubygems.org/gems/development
@@ -1,14 +0,0 @@
1
-
2
- class ::Development::Exception::ExpressionError::UnknownDirectoryName < ::Development::Exception::ExpressionError
3
-
4
- ################
5
- # initialize #
6
- ################
7
-
8
- def initialize( named_directory_name, configuration_line_number )
9
-
10
- super( 'Unknown named directory "' << named_directory_name.to_s + '"', configuration_line_number )
11
-
12
- end
13
-
14
- end
@@ -1,14 +0,0 @@
1
-
2
- class ::Development::Exception::ExpressionError::UnknownGemOrGemsetName < ::Development::Exception::ExpressionError
3
-
4
- ################
5
- # initialize #
6
- ################
7
-
8
- def initialize( gem_name, configuration_line_number )
9
-
10
- super( 'Unknown gem or gemset name "' << gem_name.to_s + '"', configuration_line_number )
11
-
12
- end
13
-
14
- end
@@ -1,18 +0,0 @@
1
-
2
- class ::Development::Exception::ExpressionError < ::Exception
3
-
4
- ################
5
- # initialize #
6
- ################
7
-
8
- def initialize( exception_string, configuration_line_number )
9
-
10
- exception_string << ' on line ' << configuration_line_number.to_s << ' of configuration file' +
11
- ' (' + ::File.expand_path( '~/' + ::Development::ConfigurationFileName ) +
12
- ').'
13
-
14
- super( exception_string )
15
-
16
- end
17
-
18
- end
@@ -1,15 +0,0 @@
1
-
2
- class ::Development::Exception::MalformedExpression::MalformedEnableDisableExpression <
3
- ::Development::Exception::MalformedExpression
4
-
5
- ################
6
- # initialize #
7
- ################
8
-
9
- def initialize( expression_string, configuration_line_number )
10
-
11
- super( 'enable/disable', expression_string, configuration_line_number )
12
-
13
- end
14
-
15
- end
@@ -1,15 +0,0 @@
1
-
2
- class ::Development::Exception::MalformedExpression::MalformedGemsetExpression <
3
- ::Development::Exception::MalformedExpression
4
-
5
- ################
6
- # initialize #
7
- ################
8
-
9
- def initialize( expression_string, configuration_line_number )
10
-
11
- super( 'gemset', expression_string, configuration_line_number )
12
-
13
- end
14
-
15
- end
@@ -1,15 +0,0 @@
1
-
2
- class ::Development::Exception::MalformedExpression::MalformedGeneralDirectoryExpression <
3
- ::Development::Exception::MalformedExpression
4
-
5
- ################
6
- # initialize #
7
- ################
8
-
9
- def initialize( expression_string, configuration_line_number )
10
-
11
- super( 'general directory', expression_string, configuration_line_number )
12
-
13
- end
14
-
15
- end
@@ -1,15 +0,0 @@
1
-
2
- class ::Development::Exception::MalformedExpression::MalformedLocationExpression <
3
- ::Development::Exception::MalformedExpression
4
-
5
- ################
6
- # initialize #
7
- ################
8
-
9
- def initialize( expression_string, configuration_line_number )
10
-
11
- super( 'location', expression_string, configuration_line_number )
12
-
13
- end
14
-
15
- end
@@ -1,15 +0,0 @@
1
-
2
- class ::Development::Exception::MalformedExpression::MalformedNamedDirectoryExpression <
3
- ::Development::Exception::MalformedExpression
4
-
5
- ################
6
- # initialize #
7
- ################
8
-
9
- def initialize( expression_string, configuration_line_number )
10
-
11
- super( 'named directory', expression_string, configuration_line_number )
12
-
13
- end
14
-
15
- end
@@ -1,15 +0,0 @@
1
-
2
- class ::Development::Exception::MalformedExpression::MalformedRemoveGeneralDirectoryExpression <
3
- ::Development::Exception::MalformedExpression
4
-
5
- ################
6
- # initialize #
7
- ################
8
-
9
- def initialize( expression_string, configuration_line_number )
10
-
11
- super( 'remove general directory', expression_string, configuration_line_number )
12
-
13
- end
14
-
15
- end
@@ -1,16 +0,0 @@
1
-
2
- class ::Development::Exception::MalformedExpression < ::Development::Exception::ExpressionError
3
-
4
- ################
5
- # initialize #
6
- ################
7
-
8
- def initialize( expression_name_string, expression_string, configuration_line_number )
9
-
10
- exception_string = 'Malformed ' << expression_name_string + ' expression "' << expression_string <<'"'
11
-
12
- super( exception_string, configuration_line_number )
13
-
14
- end
15
-
16
- end
@@ -1,4 +0,0 @@
1
-
2
- class ::Development::MockGem
3
-
4
- end
@@ -1,4 +0,0 @@
1
-
2
- class ::Development::MockGem::Subgem
3
-
4
- end
@@ -1,4 +0,0 @@
1
-
2
- class ::Development::MockGem2::Subgem2
3
-
4
- end
@@ -1,4 +0,0 @@
1
-
2
- class ::Development::MockGem2
3
-
4
- end
@@ -1,4 +0,0 @@
1
-
2
- class ::Development::OtherRequireMock
3
-
4
- end