configuration 1.3.1 → 1.3.2

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.
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "configuration"
6
- spec.version = "1.3.1"
6
+ spec.version = "1.3.2"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "configuration"
9
9
  spec.description = "description: configuration kicks the ass"
@@ -28,7 +28,9 @@ Gem::Specification::new do |spec|
28
28
  "samples/c.rb",
29
29
  "samples/d.rb",
30
30
  "samples/e.rb",
31
- "samples/f.rb"]
31
+ "samples/f.rb",
32
+ "test",
33
+ "test/overwrite_test.rb"]
32
34
 
33
35
  spec.executables = []
34
36
 
@@ -1,5 +1,5 @@
1
1
  class Configuration
2
- Configuration::Version = '1.3.1'
2
+ Configuration::Version = '1.3.2'
3
3
  def Configuration.version() Configuration::Version end
4
4
 
5
5
  Path = [
@@ -0,0 +1,29 @@
1
+ require 'minitest/autorun'
2
+ require 'configuration.rb'
3
+
4
+ describe Configuration do
5
+
6
+ before do
7
+ # similar to config/sample d.rb
8
+ Configuration.for('d'){
9
+ built_in_object_id Send('object_id')
10
+ object_id 42
11
+ built_in_inspect Send('inspect')
12
+ inspect 'forty-two'
13
+ p 42.0
14
+ }
15
+
16
+ @c = Configuration.for 'd'
17
+ end
18
+
19
+ it "must overwrite built-in methods" do
20
+ @c.object_id.must_equal 42
21
+ @c.object_id.wont_equal @c.built_in_object_id
22
+
23
+ @c.inspect.must_equal 'forty-two'
24
+ @c.inspect.wont_equal @c.built_in_inspect
25
+
26
+ @c.p.must_equal 42.0
27
+ end
28
+
29
+ end
metadata CHANGED
@@ -1,33 +1,22 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: configuration
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.2
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 3
9
- - 1
10
- version: 1.3.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Ara T. Howard
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-06-20 00:00:00 -06:00
19
- default_executable:
12
+ date: 2012-07-05 00:00:00.000000000 Z
20
13
  dependencies: []
21
-
22
- description: "description: configuration kicks the ass"
14
+ description: ! 'description: configuration kicks the ass'
23
15
  email: ara.t.howard@gmail.com
24
16
  executables: []
25
-
26
17
  extensions: []
27
-
28
18
  extra_rdoc_files: []
29
-
30
- files:
19
+ files:
31
20
  - LICENSE
32
21
  - README.rdoc
33
22
  - Rakefile
@@ -45,39 +34,29 @@ files:
45
34
  - samples/d.rb
46
35
  - samples/e.rb
47
36
  - samples/f.rb
48
- has_rdoc: true
37
+ - test/overwrite_test.rb
49
38
  homepage: https://github.com/ahoward/configuration
50
39
  licenses: []
51
-
52
40
  post_install_message:
53
41
  rdoc_options: []
54
-
55
- require_paths:
42
+ require_paths:
56
43
  - lib
57
- required_ruby_version: !ruby/object:Gem::Requirement
44
+ required_ruby_version: !ruby/object:Gem::Requirement
58
45
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
- version: "0"
66
- required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
51
  none: false
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- hash: 3
72
- segments:
73
- - 0
74
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
75
56
  requirements: []
76
-
77
57
  rubyforge_project: codeforpeople
78
- rubygems_version: 1.4.2
58
+ rubygems_version: 1.8.24
79
59
  signing_key:
80
60
  specification_version: 3
81
61
  summary: configuration
82
62
  test_files: []
83
-