castor 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/castor/configuration.rb +3 -3
- data/lib/castor/version.rb +1 -1
- metadata +11 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f76543b2c352fd76269fd6c60874dba845f4c221
|
4
|
+
data.tar.gz: a0f83f114145556f32e695cb048a86183a678fb0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: addc68a8c9d69fd4771ab2463adfa27b4e66cb5d4dffe98fffa745679b70df727f98ae0829c12ad270c6756ce43505a2976f49f1e88cad8f25e1680778037d63
|
7
|
+
data.tar.gz: bd66903b77d324d945eb6641c4a0d45cf78ffcace69a164d7013c160073cbdf0fafda43a1c5fe9f3e37a16ed030424e0919178bcb927eca3aa5fdbe0252ad569
|
data/lib/castor/configuration.rb
CHANGED
@@ -27,15 +27,15 @@ module Castor
|
|
27
27
|
|
28
28
|
config_value = Castor::Configuration::Node.new(name, block)
|
29
29
|
|
30
|
-
selfclass.define_method
|
30
|
+
selfclass.send(:define_method, name) do
|
31
31
|
config_value.value
|
32
32
|
end
|
33
33
|
|
34
|
-
selfclass.define_method
|
34
|
+
selfclass.send(:define_method, "#{name}=") do |args|
|
35
35
|
config_value.value = args
|
36
36
|
end
|
37
37
|
|
38
|
-
selfclass.define_method
|
38
|
+
selfclass.send(:define_method, "#{name}!") do
|
39
39
|
config_value
|
40
40
|
end
|
41
41
|
end
|
data/lib/castor/version.rb
CHANGED
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: castor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Guillaume Malette
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-07 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: pry
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rspec
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: Castor is a configuration management gem. It can help write configuration
|
@@ -66,29 +61,27 @@ files:
|
|
66
61
|
- spec/spec_helper.rb
|
67
62
|
homepage: ''
|
68
63
|
licenses: []
|
64
|
+
metadata: {}
|
69
65
|
post_install_message:
|
70
66
|
rdoc_options: []
|
71
67
|
require_paths:
|
72
68
|
- lib
|
73
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
70
|
requirements:
|
76
|
-
- -
|
71
|
+
- - '>='
|
77
72
|
- !ruby/object:Gem::Version
|
78
73
|
version: '0'
|
79
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
75
|
requirements:
|
82
|
-
- -
|
76
|
+
- - '>='
|
83
77
|
- !ruby/object:Gem::Version
|
84
78
|
version: '0'
|
85
79
|
requirements: []
|
86
80
|
rubyforge_project:
|
87
|
-
rubygems_version:
|
81
|
+
rubygems_version: 2.0.3
|
88
82
|
signing_key:
|
89
|
-
specification_version:
|
83
|
+
specification_version: 4
|
90
84
|
summary: Castor is a configuration management gem.
|
91
85
|
test_files:
|
92
86
|
- spec/castor_spec.rb
|
93
87
|
- spec/spec_helper.rb
|
94
|
-
has_rdoc:
|