pythonconfig 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 1.0.1 / 2009-03-28
2
+
3
+ * Forgot to remove the bin directory. Sorry!
4
+
1
5
  === 1.0.0 / 2009-03-28
2
6
 
3
7
  * First release
@@ -2,6 +2,5 @@ History.txt
2
2
  Manifest.txt
3
3
  README.txt
4
4
  Rakefile
5
- bin/pythonconfig
6
5
  lib/pythonconfig.rb
7
6
  test/test_pythonconfig.rb
data/README.txt CHANGED
@@ -4,8 +4,8 @@
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- Class for parsing and writing Python configuration files created by the
8
- ConfigParser classes in Python. These files are structured like this:
7
+ PythonConfig is a module with classes for parsing and writing Python configuration
8
+ files created by the ConfigParser classes in Python. These files are structured like this:
9
9
  [Section Name]
10
10
  key = value
11
11
  otherkey: othervalue
@@ -47,7 +47,7 @@ require 'delegate'
47
47
  # out.write config.to_s
48
48
  # end
49
49
  module PythonConfig
50
- VERSION = '1.0.0'
50
+ VERSION = '1.0.1'
51
51
  MAX_INTERPOLATION_DEPTH = 200
52
52
  # Don't make recursive interpolating values!
53
53
  class InterpolationTooDeepError < StandardError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pythonconfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - FIX
@@ -22,11 +22,11 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: 1.11.0
24
24
  version:
25
- description: "Class for parsing and writing Python configuration files created by the ConfigParser classes in Python. These files are structured like this: [Section Name] key = value otherkey: othervalue [Other Section] key: value3 otherkey = value4 Leading whitespace before values are trimmed, and the key must be the at the start of the line - no leading whitespace there. You can use : or = . Multiline values are supported, as long as the second (or third, etc.) lines start with whitespace: [Section] bigstring: This is a very long string, so I'm not sure I'll be able to fit it on one line, but as long as there is one space before each line, I'm ok. Tabs work too. Also, this class supports interpolation: [Awards] output: Congratulations for winning %(prize)! prize: the lottery Will result in: config.sections[\"Awards\"][\"output\"] == \"Congratulations for winning the lottery!\" You can also access the sections with the dot operator, but only with all-lowercase: [Awards] key:value [prizes] lottery=3.2 million config.awards[\"key\"] #=> \"value\" config.prizes[\"lottery\"] #=> \"3.2 million\" You can modify any values you want, though to add sections, you should use the add_section method. config.sections[\"prizes\"][\"lottery\"] = \"100 dollars\" # someone hit the jackpot config.add_section(\"Candies\") config.candies[\"green\"] = \"tasty\" When you want to output a configuration, just call its +to_s+ method. File.open(\"output.ini\",\"w\") do |out| out.write config.to_s end"
25
+ description: "PythonConfig is a module with classes for parsing and writing Python configuration files created by the ConfigParser classes in Python. These files are structured like this: [Section Name] key = value otherkey: othervalue [Other Section] key: value3 otherkey = value4 Leading whitespace before values are trimmed, and the key must be the at the start of the line - no leading whitespace there. You can use : or = . Multiline values are supported, as long as the second (or third, etc.) lines start with whitespace: [Section] bigstring: This is a very long string, so I'm not sure I'll be able to fit it on one line, but as long as there is one space before each line, I'm ok. Tabs work too. Also, this class supports interpolation: [Awards] output: Congratulations for winning %(prize)! prize: the lottery Will result in: config.sections[\"Awards\"][\"output\"] == \"Congratulations for winning the lottery!\" You can also access the sections with the dot operator, but only with all-lowercase: [Awards] key:value [prizes] lottery=3.2 million config.awards[\"key\"] #=> \"value\" config.prizes[\"lottery\"] #=> \"3.2 million\" You can modify any values you want, though to add sections, you should use the add_section method. config.sections[\"prizes\"][\"lottery\"] = \"100 dollars\" # someone hit the jackpot config.add_section(\"Candies\") config.candies[\"green\"] = \"tasty\" When you want to output a configuration, just call its +to_s+ method. File.open(\"output.ini\",\"w\") do |out| out.write config.to_s end"
26
26
  email:
27
27
  - FIX@example.com
28
- executables:
29
- - pythonconfig
28
+ executables: []
29
+
30
30
  extensions: []
31
31
 
32
32
  extra_rdoc_files:
@@ -38,7 +38,6 @@ files:
38
38
  - Manifest.txt
39
39
  - README.txt
40
40
  - Rakefile
41
- - bin/pythonconfig
42
41
  - lib/pythonconfig.rb
43
42
  - test/test_pythonconfig.rb
44
43
  has_rdoc: true
@@ -67,6 +66,6 @@ rubyforge_project: pythonconfig
67
66
  rubygems_version: 1.3.1
68
67
  signing_key:
69
68
  specification_version: 2
70
- summary: Class for parsing and writing Python configuration files created by the ConfigParser classes in Python
69
+ summary: PythonConfig is a module with classes for parsing and writing Python configuration files created by the ConfigParser classes in Python
71
70
  test_files:
72
71
  - test/test_pythonconfig.rb
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- abort "you need to write me"