properties-ruby 0.0.2 → 0.0.3
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.
- data/lib/example/example.properties +14 -0
- data/lib/example/override.properties +2 -0
- data/lib/utils/properties.rb +1 -1
- metadata +6 -4
@@ -0,0 +1,14 @@
|
|
1
|
+
# Simple properties.
|
2
|
+
app_name = Properties Example
|
3
|
+
version = 0.0.1
|
4
|
+
|
5
|
+
# Usage of references.
|
6
|
+
full_name = ${app_name} v${version}
|
7
|
+
|
8
|
+
# Forward references are allowed.
|
9
|
+
author = ${last_name}, ${first_name}
|
10
|
+
first_name = Suraj
|
11
|
+
last_name = Vijayakumar
|
12
|
+
|
13
|
+
# Using a property that will be overridden.
|
14
|
+
information = Simple properties example.
|
data/lib/utils/properties.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: properties-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-02-
|
12
|
+
date: 2011-02-21 00:00:00.000000000 +05:30
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: logeasy
|
17
|
-
requirement: &
|
17
|
+
requirement: &24076512 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 0.0.4
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *24076512
|
26
26
|
description: A simple properties file API. Support for Java style properties file.
|
27
27
|
The property files can contain references to other properties using the ${<key_name>}
|
28
28
|
format. Access their values directly using p.prop_name.
|
@@ -34,6 +34,8 @@ files:
|
|
34
34
|
- lib/properties-ruby.rb
|
35
35
|
- lib/utils/properties.rb
|
36
36
|
- lib/example/example.rb
|
37
|
+
- lib/example/example.properties
|
38
|
+
- lib/example/override.properties
|
37
39
|
has_rdoc: true
|
38
40
|
homepage: http://rubyforge.org/projects/properties-ruby/
|
39
41
|
licenses: []
|