properties-ruby 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.
@@ -0,0 +1,2 @@
1
+ # Overriding a property and using a reference that is not present in the property files.
2
+ information = ${time_now}
@@ -132,7 +132,7 @@ module Utils
132
132
 
133
133
  @@logger = LogEasy::Logger.get_logger(name)
134
134
 
135
- REFERENCE_REGEX = /\${[^}]+}/
135
+ REFERENCE_REGEX = /\$\{[^}]+}/
136
136
 
137
137
  attr_reader :name
138
138
  attr_reader :value
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.2
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-20 00:00:00.000000000 +05:30
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: &22772172 !ruby/object:Gem::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: *22772172
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: []