hocon 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDJiNDQ0ZDY5ZmZkYWI5NjgzYTUxMGE3NTVmZDBiOTI4ZjAwYjJkZQ==
5
- data.tar.gz: !binary |-
6
- NGQ4M2E2NGZlNjZhNDMzNTRhZmFlNTFiY2UzNzMxNWM2ZDY0NGQxMw==
2
+ SHA1:
3
+ metadata.gz: 7095db4599e49bba826383bbef6a4794c47f5184
4
+ data.tar.gz: 7c7a561001db4d555533c3a5fbc7ade0e0ce6012
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YWU5Yzg3M2IyMTVjZTIxNzQyZjdmODBkZDRhZTcyMzliMmEyZmJkNDU2MTlh
10
- YTYxOTc5MTgxOGViYTJjYzI3MThlZTllZDNjNzg5MTU1NjMwOWU0ZTIwYzIx
11
- N2I0OTVhMWNkYTVjYzU0NzNkNzZlZmZmODIwZWI3YTIzMzI1MDI=
12
- data.tar.gz: !binary |-
13
- N2ViYjQ1MTkyMGFkNzJhZTFkZWUwZWIwMzVlNmJmYTE0OGEzZmMyZWY1MzVj
14
- MGE4OWU1MGVhMmUwMDMyOGJmNTEyMzFkZTZmYjgzNGViMzE5MDZhZGE3ZDhj
15
- M2I3MWE2YzU1NjU2MTM0OTFhM2VjNjQ5M2QyYWRkODlmY2M3MWE=
6
+ metadata.gz: 43599721551ba020537e5ccfadac221f84ea3e85d8a5489bd7113e6874d91ffd109c4699675822c9b77b7c60c1960642e027f1fc89168025e2b3e2288376a664
7
+ data.tar.gz: 60ec87ed27f06f2c0fb6b10a667bf7989c77dfb1abcc993fb3c274cfb0a9b2bded126ffa4507cbe4970f7c9adc3585555b7d41c0302c252e0847a988b9597422
@@ -1,8 +1,16 @@
1
- ## 1.2.0
1
+ ## 1.2.5
2
+ This is a bugfix release
3
+
4
+ * Fixed loading files with UTF-8 characters in their file paths
5
+
6
+ ## 1.2.4
2
7
  This is a feature release.
3
8
 
4
9
  * Added a cli tool called `hocon` for reading and manipulating hocon files
5
10
 
11
+ Note that the version numbers 1.2.0-1.2.3 were not used because of bugs in our
12
+ release pipeline we were working out
13
+
6
14
  ## 1.1.3
7
15
  This is a bugfix release.
8
16
 
data/HISTORY.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # enterprise_ruby-hocon_bump_and_tag_master - History
2
2
  ## Tags
3
- * [LATEST - 3 Nov, 2016 (67ff0795)](#LATEST)
3
+ * [LATEST - 4 Apr, 2017 (b42a72f0)](#LATEST)
4
+ * [1.2.4 - 3 Nov, 2016 (5157cc60)](#1.2.4)
4
5
  * [1.2.3 - 3 Nov, 2016 (cd9a5c8d)](#1.2.3)
5
6
  * [1.2.2 - 1 Nov, 2016 (4a29c034)](#1.2.2)
6
7
  * [1.2.1 - 27 Oct, 2016 (b6edea48)](#1.2.1)
@@ -22,7 +23,130 @@
22
23
  * [0.0.1 - 16 Mar, 2014 (f7dbca52)](#0.0.1)
23
24
 
24
25
  ## Details
25
- ### <a name = "LATEST">LATEST - 3 Nov, 2016 (67ff0795)
26
+ ### <a name = "LATEST">LATEST - 4 Apr, 2017 (b42a72f0)
27
+
28
+ * (GEM) update hocon version to 1.2.5 (b42a72f0)
29
+
30
+ * Merge pull request #108 from jpinsonault/maint-prepare-for-1.2.5 (50b0087b)
31
+
32
+
33
+ ```
34
+ Merge pull request #108 from jpinsonault/maint-prepare-for-1.2.5
35
+
36
+ (MAINT) Change version back 1.2.5.SNAPSHOT
37
+ ```
38
+ * (MAINT) Change version back 1.2.5.SNAPSHOT (40d45c77)
39
+
40
+
41
+ ```
42
+ (MAINT) Change version back 1.2.5.SNAPSHOT
43
+
44
+ CI needs the current to be less than the next version to be released
45
+ ```
46
+ * Merge pull request #107 from jpinsonault/PE-18165-support-for-utf8-file-paths (c65941f2)
47
+
48
+
49
+ ```
50
+ Merge pull request #107 from jpinsonault/PE-18165-support-for-utf8-file-paths
51
+
52
+ (PE-18165) Support for utf-8 file paths
53
+ ```
54
+ * (MAINT) Prepare for 1.2.5 release (8edf0841)
55
+
56
+
57
+ ```
58
+ (MAINT) Prepare for 1.2.5 release
59
+
60
+ Update changelog and version
61
+ ```
62
+ * (PE-18165) Support for utf-8 file paths (a54c93b5)
63
+
64
+
65
+ ```
66
+ (PE-18165) Support for utf-8 file paths
67
+
68
+ This commit removes the dependency on Addressable and adds some comments
69
+ regarding some screwy areas in the code where we half heartedly tried to
70
+ support loading of URIs
71
+
72
+ It maintains utf-8 file support
73
+ ```
74
+ * Merge pull request #105 from mwbutcher/maint/master/PE-18165_encode_file_URIs_in_order_to_handle_utf-8_chars (e2725955)
75
+
76
+
77
+ ```
78
+ Merge pull request #105 from mwbutcher/maint/master/PE-18165_encode_file_URIs_in_order_to_handle_utf-8_chars
79
+
80
+ (PE-18165) encode file URIs to handle utf8 chars
81
+ ```
82
+ * (PE-18165) encode file URIs to handle utf8 chars (51525f43)
83
+
84
+
85
+ ```
86
+ (PE-18165) encode file URIs to handle utf8 chars
87
+
88
+ Prior to this change, the hocon parser would
89
+ error when give file names like ᚠᛇᚻ.conf or
90
+ /tmp/旗本/pe.conf.
91
+
92
+ This commit URI encodes the filenames to
93
+ avoid that issue.
94
+ ```
95
+ * Merge pull request #104 from puppetlabs/rm_cprice404 (ddb4afb2)
96
+
97
+
98
+ ```
99
+ Merge pull request #104 from puppetlabs/rm_cprice404
100
+
101
+ remove cprice404
102
+ ```
103
+ * remove cprice404 (f74fb2ca)
104
+
105
+ * Merge pull request #98 from puppetlabs/theshanx-patch-1 (c532a69e)
106
+
107
+
108
+ ```
109
+ Merge pull request #98 from puppetlabs/theshanx-patch-1
110
+
111
+ (maint) Add internal_list key to MAINTAINERS
112
+ ```
113
+ * Merge pull request #102 from jpinsonault/maint-fix-typo-in-readme (ecd2de47)
114
+
115
+
116
+ ```
117
+ Merge pull request #102 from jpinsonault/maint-fix-typo-in-readme
118
+
119
+ (MAINT) Fix typo in readme
120
+ ```
121
+ * (MAINT) Fix typo in readme (10961a98)
122
+
123
+ * Merge pull request #101 from jpinsonault/maint-update-changelog-after-1.2.4-release (c8d543ad)
124
+
125
+
126
+ ```
127
+ Merge pull request #101 from jpinsonault/maint-update-changelog-after-1.2.4-release
128
+
129
+ (MAINT) Update changelog for 1.2.4
130
+ ```
131
+ * (MAINT) Update changelog for 1.2.4 (c7a5edf1)
132
+
133
+
134
+ ```
135
+ (MAINT) Update changelog for 1.2.4
136
+
137
+ And explain missing version numbers
138
+ ```
139
+ * (maint) Add internal_list key to MAINTAINERS (e327d214)
140
+
141
+
142
+ ```
143
+ (maint) Add internal_list key to MAINTAINERS
144
+
145
+ This change adds a reference to the Google group the maintainers are associated with.
146
+ ```
147
+ ### <a name = "1.2.4">1.2.4 - 3 Nov, 2016 (5157cc60)
148
+
149
+ * (HISTORY) update ruby-hocon history for gem release 1.2.4 (5157cc60)
26
150
 
27
151
  * (GEM) update hocon version to 1.2.4 (67ff0795)
28
152
 
data/README.md CHANGED
@@ -116,7 +116,9 @@ $ cat settings.conf
116
116
  $ hocon -i settings.conf get foo
117
117
  bar
118
118
 
119
- $ hocon -i settings.conf set foo.baz
119
+ $ hocon -i settings.conf set foo baz
120
+
121
+ $ cat settings.conf
120
122
  {
121
123
  foo: baz
122
124
  }
@@ -23,6 +23,9 @@ class Hocon::Impl::SimpleConfigOrigin
23
23
  @line_number = line_number
24
24
  @end_line_number = end_line_number
25
25
  @origin_type = origin_type
26
+
27
+ # TODO: Currently ruby hocon does not support URLs, and so this variable
28
+ # is not actually a URL/URI, but a string
26
29
  @url_or_nil = url_or_nil
27
30
  @resource_or_nil = resource_or_nil
28
31
  @comments_or_nil = comments_or_nil
@@ -39,10 +42,9 @@ class Hocon::Impl::SimpleConfigOrigin
39
42
  end
40
43
 
41
44
  def self.new_file(file_path)
42
- url = URI.join('file:///', file_path)
43
45
  self.new(file_path, -1, -1,
44
46
  OriginType::FILE,
45
- url, nil, nil)
47
+ file_path, nil, nil)
46
48
  end
47
49
 
48
50
  # NOTE: not porting `new_url` because we're not going to support URLs for now
@@ -153,6 +155,10 @@ class Hocon::Impl::SimpleConfigOrigin
153
155
  end
154
156
 
155
157
  def filename
158
+ # TODO because we don't support URLs, this function's URL handling
159
+ # is completely pointless. It will only return _description (a string that
160
+ # is the file path) or nil.
161
+ # It should be cleaned up
156
162
  if origin_type == OriginType::FILE
157
163
  _description
158
164
  elsif ! url_or_nil.nil?
@@ -1,5 +1,5 @@
1
1
  module Hocon
2
2
  module Version
3
- STRING = '1.2.4'
3
+ STRING = '1.2.5'
4
4
  end
5
5
  end
@@ -705,6 +705,11 @@ describe "Config Parser" do
705
705
  assert_comments_at_path([], conf8, "a")
706
706
  end
707
707
 
708
+ context "loading unicode file paths" do
709
+ it "should be able to parse files with unicode file paths" do
710
+ expect(Hocon.load("#{FIXTURE_DIR}/test_utils/resources/ᚠᛇᚻ.conf")).to eq({'ᚠᛇᚻ' => '᛫ᛒᛦᚦ᛫ᚠᚱᚩᚠᚢ'})
711
+ end
712
+ end
708
713
 
709
714
  it "includeFile" do
710
715
  conf = Hocon::ConfigFactory.parse_string("include file(" +
@@ -781,12 +786,6 @@ describe "Config Parser" do
781
786
  # Skipping 'includeURLHeuristically' because we don't support URLs
782
787
  # Skipping 'includeURLBasenameHeuristically' because we don't support URLs
783
788
 
784
- it "shouldacceptUTF8FileNames" do
785
- skip('UTF-8 filenames not currently supported') do
786
- expect { Hocon::ConfigFactory.parse_file(TestUtils.resource_file("ᚠᛇᚻ.conf")) }.to raise_error
787
- end
788
- end
789
-
790
789
  it "acceptsUTF8FileContents" do
791
790
  # utf8.conf is UTF-8 with no BOM
792
791
  rune_utf8 = "\u16EB\u16D2\u16E6\u16A6\u16EB\u16A0\u16B1\u16A9\u16A0\u16A2"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hocon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Price
@@ -19,32 +19,32 @@ dependencies:
19
19
  name: bundler
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
- - - ~>
22
+ - - "~>"
23
23
  - !ruby/object:Gem::Version
24
24
  version: '1.5'
25
25
  type: :development
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - ~>
29
+ - - "~>"
30
30
  - !ruby/object:Gem::Version
31
31
  version: '1.5'
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: rspec
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - ~>
36
+ - - "~>"
37
37
  - !ruby/object:Gem::Version
38
38
  version: '2.14'
39
39
  type: :development
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
42
42
  requirements:
43
- - - ~>
43
+ - - "~>"
44
44
  - !ruby/object:Gem::Version
45
45
  version: '2.14'
46
- description: == A port of the Java {Typesafe Config}[https://github.com/typesafehub/config]
47
- library to Ruby
46
+ description: "== A port of the Java {Typesafe Config}[https://github.com/typesafehub/config]
47
+ library to Ruby"
48
48
  email: chris@puppetlabs.com
49
49
  executables:
50
50
  - hocon
@@ -200,17 +200,17 @@ require_paths:
200
200
  - lib
201
201
  required_ruby_version: !ruby/object:Gem::Requirement
202
202
  requirements:
203
- - - ! '>='
203
+ - - ">="
204
204
  - !ruby/object:Gem::Version
205
205
  version: 1.9.0
206
206
  required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  requirements:
208
- - - ! '>='
208
+ - - ">="
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
212
  rubyforge_project:
213
- rubygems_version: 2.4.5
213
+ rubygems_version: 2.5.1
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: HOCON Config Library