polygon 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d2a37c9af6737fc61e664aa4f6e8d6a08a1a1ccb
4
+ data.tar.gz: 375d8be250e463a01af97b821b1c45a15520b158
5
+ SHA512:
6
+ metadata.gz: e68105438cdcc0bd8de16c9ae65317353bcb4ab557b6d0673e553b35784046d32197f4ab3d9885589d4141670274fed981602ff50d3ca1f5dad184425c2b64ed
7
+ data.tar.gz: 93dca483e58e56d13e26f8a69e80d9e4ac700e275d88f8b65773c3cf67f2bebebc48ce77a20e75828b0eb840d26d2e20dbf86ecf97c1fdb224f1e15feb3f2992
@@ -1,3 +1,9 @@
1
+ # 0.0.2 / 2018-03-21
2
+
3
+ * Force UTF8 encoding on content
4
+
5
+ * Remove json dependency
6
+
1
7
  # 0.0.1 / FIX ME
2
8
 
3
9
  * Enhancements
data/Gemfile CHANGED
@@ -3,7 +3,6 @@ source 'http://rubygems.org'
3
3
  group :runtime do
4
4
  gem "sinatra", "~> 1.3"
5
5
  gem "epath", "~> 0.2.0"
6
- gem "json", ">= 0"
7
6
  gem "wlang", "~> 0.10.2"
8
7
  end
9
8
 
@@ -4,7 +4,6 @@ GEM
4
4
  bluecloth (2.2.0)
5
5
  diff-lcs (1.1.3)
6
6
  epath (0.2.0)
7
- json (1.7.3)
8
7
  rack (1.4.1)
9
8
  rack-protection (1.2.0)
10
9
  rack
@@ -32,9 +31,11 @@ DEPENDENCIES
32
31
  bluecloth (~> 2.2)
33
32
  bundler (~> 1.0)
34
33
  epath (~> 0.2.0)
35
- json
36
34
  rake (~> 0.9.2)
37
35
  rspec (~> 2.10)
38
36
  sinatra (~> 1.3)
39
37
  wlang (~> 0.10.2)
40
38
  yard (~> 0.7.2)
39
+
40
+ BUNDLED WITH
41
+ 1.16.0
@@ -47,7 +47,7 @@ module Polygon
47
47
  def enable_yaml_front_matter!(*ext)
48
48
  ext = [".md"] if ext.empty?
49
49
  register(*ext) do |f|
50
- content = f.read
50
+ content = f.read.force_encoding(Encoing::UTF_8)
51
51
  if content =~ /^(---\s*\n.*?\n?)^(---\s*$\n?)/m
52
52
  YAML::load($1).merge("content" => $')
53
53
  else
@@ -3,7 +3,7 @@ module Polygon
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 0
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  def self.to_s
9
9
  [ MAJOR, MINOR, TINY ].join('.')
metadata CHANGED
@@ -1,116 +1,142 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polygon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bernard Lambeau
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-06-11 00:00:00.000000000Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
- requirement: &70159370960020 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.9.2
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *70159370960020
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.9.2
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: bundler
27
- requirement: &70159370959520 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ~>
31
+ - - "~>"
31
32
  - !ruby/object:Gem::Version
32
33
  version: '1.0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *70159370959520
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rspec
38
- requirement: &70159370959060 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ~>
45
+ - - "~>"
42
46
  - !ruby/object:Gem::Version
43
47
  version: '2.10'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70159370959060
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.10'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: yard
49
- requirement: &70159370958600 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ~>
59
+ - - "~>"
53
60
  - !ruby/object:Gem::Version
54
61
  version: 0.7.2
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *70159370958600
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.7.2
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: bluecloth
60
- requirement: &70159370984760 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ~>
73
+ - - "~>"
64
74
  - !ruby/object:Gem::Version
65
75
  version: '2.2'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *70159370984760
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.2'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: sinatra
71
- requirement: &70159370984300 !ruby/object:Gem::Requirement
72
- none: false
85
+ requirement: !ruby/object:Gem::Requirement
73
86
  requirements:
74
- - - ~>
87
+ - - "~>"
75
88
  - !ruby/object:Gem::Version
76
89
  version: '1.3'
77
90
  type: :runtime
78
91
  prerelease: false
79
- version_requirements: *70159370984300
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.3'
80
97
  - !ruby/object:Gem::Dependency
81
98
  name: epath
82
- requirement: &70159370983840 !ruby/object:Gem::Requirement
83
- none: false
99
+ requirement: !ruby/object:Gem::Requirement
84
100
  requirements:
85
- - - ~>
101
+ - - "~>"
86
102
  - !ruby/object:Gem::Version
87
103
  version: 0.2.0
88
104
  type: :runtime
89
105
  prerelease: false
90
- version_requirements: *70159370983840
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.2.0
91
111
  - !ruby/object:Gem::Dependency
92
112
  name: json
93
- requirement: &70159370983380 !ruby/object:Gem::Requirement
94
- none: false
113
+ requirement: !ruby/object:Gem::Requirement
95
114
  requirements:
96
- - - ! '>='
115
+ - - ">="
97
116
  - !ruby/object:Gem::Version
98
117
  version: '0'
99
118
  type: :runtime
100
119
  prerelease: false
101
- version_requirements: *70159370983380
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
102
125
  - !ruby/object:Gem::Dependency
103
126
  name: wlang
104
- requirement: &70159370982920 !ruby/object:Gem::Requirement
105
- none: false
127
+ requirement: !ruby/object:Gem::Requirement
106
128
  requirements:
107
- - - ~>
129
+ - - "~>"
108
130
  - !ruby/object:Gem::Version
109
131
  version: 0.10.2
110
132
  type: :runtime
111
133
  prerelease: false
112
- version_requirements: *70159370982920
113
- description: ! "Polygon provides a framework with strong separation of concerns between
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.10.2
139
+ description: "Polygon provides a framework with strong separation of concerns between
114
140
  \nclients, developers and web designers"
115
141
  email:
116
142
  - blambeau@gmail.com
@@ -121,22 +147,22 @@ extra_rdoc_files:
121
147
  - CHANGELOG.md
122
148
  - LICENCE.md
123
149
  files:
124
- - polygon.gemspec
125
- - polygon.noespec
126
150
  - CHANGELOG.md
127
151
  - Gemfile
128
152
  - Gemfile.lock
153
+ - LICENCE.md
154
+ - Manifest.txt
155
+ - README.md
156
+ - Rakefile
157
+ - lib/polygon.rb
129
158
  - lib/polygon/base.rb
130
159
  - lib/polygon/content.rb
131
160
  - lib/polygon/content_loader.rb
132
161
  - lib/polygon/helpers.rb
133
162
  - lib/polygon/loader.rb
134
163
  - lib/polygon/version.rb
135
- - lib/polygon.rb
136
- - LICENCE.md
137
- - Manifest.txt
138
- - Rakefile
139
- - README.md
164
+ - polygon.gemspec
165
+ - polygon.noespec
140
166
  - spec/spec_helper.rb
141
167
  - spec/test_polygon.rb
142
168
  - tasks/debug_mail.rake
@@ -144,7 +170,6 @@ files:
144
170
  - tasks/gem.rake
145
171
  - tasks/spec_test.rake
146
172
  - tasks/unit_test.rake
147
- - tasks/yard.rake
148
173
  - test/content/test_entry.rb
149
174
  - test/fixtures/data/data.json
150
175
  - test/fixtures/data/data.md
@@ -164,45 +189,44 @@ files:
164
189
  - test/test_content_loader.rb
165
190
  homepage: http://github.com/blambeau/polygon
166
191
  licenses: []
192
+ metadata: {}
167
193
  post_install_message:
168
194
  rdoc_options: []
169
195
  require_paths:
170
196
  - lib
171
197
  required_ruby_version: !ruby/object:Gem::Requirement
172
- none: false
173
198
  requirements:
174
- - - ! '>='
199
+ - - ">="
175
200
  - !ruby/object:Gem::Version
176
201
  version: '0'
177
202
  required_rubygems_version: !ruby/object:Gem::Requirement
178
- none: false
179
203
  requirements:
180
- - - ! '>='
204
+ - - ">="
181
205
  - !ruby/object:Gem::Version
182
206
  version: '0'
183
207
  requirements: []
184
208
  rubyforge_project:
185
- rubygems_version: 1.8.10
209
+ rubygems_version: 2.5.2
186
210
  signing_key:
187
- specification_version: 3
211
+ specification_version: 4
188
212
  summary: A web framework powered by sinatra for mostly static websites
189
213
  test_files:
214
+ - test/runall.rb
215
+ - test/helper.rb
216
+ - test/test_content.rb
190
217
  - test/content/test_entry.rb
191
- - test/fixtures/data/data.json
192
- - test/fixtures/data/data.md
193
- - test/fixtures/data/data.rb
194
- - test/fixtures/data/data.ruby
195
- - test/fixtures/data/data.yaml
196
- - test/fixtures/data/data.yml
197
- - test/fixtures/data/text.md
198
- - test/fixtures/index.yml
218
+ - test/test_content_loader.rb
199
219
  - test/fixtures/with_index_md/index.md
200
- - test/fixtures/with_index_yml/index.yml
201
220
  - test/fixtures/with_index_yml/say-hello.md
221
+ - test/fixtures/with_index_yml/index.yml
222
+ - test/fixtures/data/text.md
223
+ - test/fixtures/data/data.rb
224
+ - test/fixtures/data/data.md
225
+ - test/fixtures/data/data.yml
226
+ - test/fixtures/data/data.json
227
+ - test/fixtures/data/data.yaml
228
+ - test/fixtures/data/data.ruby
202
229
  - test/fixtures/without_index/hello.md
203
- - test/helper.rb
204
- - test/runall.rb
205
- - test/test_content.rb
206
- - test/test_content_loader.rb
230
+ - test/fixtures/index.yml
207
231
  - spec/spec_helper.rb
208
232
  - spec/test_polygon.rb
@@ -1,51 +0,0 @@
1
- # Installs a rake task to generate API documentation using yard.
2
- #
3
- # This file installs the 'rake yard' task. It is automatically generated by Noe from
4
- # your .noespec file, and should therefore be configured there, under the
5
- # variables/rake_tasks/yard entry, as illustrated below:
6
- #
7
- # variables:
8
- # rake_tasks:
9
- # yard:
10
- # files: lib/**/*.rb
11
- # options: []
12
- # ...
13
- #
14
- # If you have specific needs requiring manual intervention on this file,
15
- # don't forget to set safe-override to false in your noe specification:
16
- #
17
- # template-info:
18
- # manifest:
19
- # tasks/yard.rake:
20
- # safe-override: false
21
- #
22
- # This file has been written to conform to yard v0.6.4. More information about
23
- # yard and the rake task installed below can be found on http://yardoc.org/
24
- #
25
- begin
26
- require "yard"
27
- desc "Generate yard documentation"
28
- YARD::Rake::YardocTask.new(:yard) do |t|
29
- # Array of options passed to yardoc commandline. See 'yardoc --help' about this
30
- t.options = ["--output-dir", "doc/api", "-", "README.md", "CHANGELOG.md", "LICENCE.md"]
31
-
32
- # Array of ruby source files (and any extra documentation files
33
- # separated by '-')
34
- t.files = ["lib/**/*.rb"]
35
-
36
- # A proc to call before running the task
37
- # t.before = proc{ }
38
-
39
- # A proc to call after running the task
40
- # r.after = proc{ }
41
-
42
- # An optional lambda to run against all objects being generated.
43
- # Any object that the lambda returns false for will be excluded
44
- # from documentation.
45
- # t.verifier = lambda{|obj| true}
46
- end
47
- rescue LoadError
48
- task :yard do
49
- abort 'yard is not available. In order to run yard, you must: gem install yard'
50
- end
51
- end