props 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # `props` - Manage Settings Hierachies (Commandline, User, Home, Defaults, etc.)
2
2
 
3
- ## Description
3
+ * home :: [github.com/rubylibs/props](https://github.com/rubylibs/props)
4
+ * bugs :: [github.com/rubylibs/props/issues](https://github.com/rubylibs/props/issues)
5
+ * gem :: [rubygems.org/gems/props](https://rubygems.org/gems/props)
6
+ * rdoc :: [rubydoc.info/gems/props](http://rubydoc.info/gems/props)
4
7
 
5
- TBD
6
8
 
7
9
  ## Usage
8
10
 
@@ -67,6 +69,7 @@ Just install the gem:
67
69
  $ gem install props
68
70
 
69
71
 
72
+
70
73
  ## Real World Usage
71
74
 
72
75
  The [`slideshow`](http://slideshow-s9.github.io) gem (also known as Slide Show (S9))
@@ -76,11 +79,21 @@ and author slides in plain text using a wiki-style markup language that's easy-t
76
79
  The [`markdown`](https://github.com/rubylibs/markdown) gem that lets you use your markdown library
77
80
  of choice.
78
81
 
82
+
79
83
  ## Alternatives
80
84
 
85
+ ### Config / Settings
86
+
81
87
  * [`configtoolkit`](http://configtoolkit.rubyforge.org) gem
82
88
 
89
+ ### Environment / Env
90
+
91
+ * [`env`](https://github.com/postmodern/env) gem
92
+
93
+ ### Ini
94
+
95
+
83
96
  ## License
84
97
 
85
98
  The `props` scripts are dedicated to the public domain.
86
- Use it as you please with no restrictions whatsoever.
99
+ Use it as you please with no restrictions whatsoever.
@@ -37,7 +37,8 @@ end # module INI
37
37
  module ConfUtils
38
38
 
39
39
  def self.banner
40
- "props #{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
40
+ # todo: add RUBY_PATCHLEVEL or RUBY_PATCH_LEVEL??
41
+ "props/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
41
42
  end
42
43
 
43
44
  =begin
@@ -49,4 +50,4 @@ module ConfUtils
49
50
  end # module ConfUtils
50
51
 
51
52
 
52
- puts ConfUtils.banner # say hello
53
+ puts ConfUtils.banner if $DEBUG # say hello
@@ -16,7 +16,8 @@ require 'props/db/deleter'
16
16
  module ConfDb
17
17
 
18
18
  def self.banner
19
- "confdb #{ConfUtils::VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
19
+ # todo: add RUBY_PATCHLEVEL or RUBY_PATCH_LEVEL??
20
+ "confdb/#{ConfUtils::VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
20
21
  end
21
22
 
22
23
  def self.create
@@ -37,5 +38,5 @@ module ConfDb
37
38
  end # module ConfDb
38
39
 
39
40
 
40
- # say hello
41
- puts ConfDb.banner
41
+
42
+ puts ConfDb.banner if $DEBUG # say hello
@@ -25,6 +25,20 @@ class Env
25
25
  path
26
26
  end
27
27
 
28
+
29
+ def self.path # returns array of paths (that is, path env gets split using PATH_SEPARATOR)
30
+ parse_paths( ENV['PATH'] )
31
+ end
32
+
33
+ def self.parse_paths( paths )
34
+ if paths
35
+ paths.split( File::PATH_SEPARATOR ) # e.g. UNIX-style => : or Windows-style => ;
36
+ else
37
+ []
38
+ end
39
+ end
40
+
41
+
28
42
  end # class Env
29
43
 
30
44
  end # module ConfUtils
@@ -1,5 +1,4 @@
1
1
 
2
2
  module ConfUtils
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
5
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: props
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-28 00:00:00.000000000 Z
12
+ date: 2013-11-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
16
- requirement: &79922660 !ruby/object:Gem::Requirement
16
+ requirement: &82474830 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.10'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *79922660
24
+ version_requirements: *82474830
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: hoe
27
- requirement: &79922080 !ruby/object:Gem::Requirement
27
+ requirement: &82474420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '3.3'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *79922080
35
+ version_requirements: *82474420
36
36
  description: props - Manage Settings Hierachies (Commandline, User, Home, Defaults,
37
37
  etc.)
38
38
  email: webslideshow@googlegroups.com