hackety_sling 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 148a5cee29c169c17d8a2c85a2171273e27d885af0354dd72dda8f07b9168ae8
4
+ data.tar.gz: f67df9aa1312ac1738b73e3c77d9a8c6a806bf8d27b48c37ea071de0bd415a08
5
+ SHA512:
6
+ metadata.gz: 0b5fd361da1b5191af6f9d779736ffa9044ab5517a1f7fe1173aa9eb055218f285267017fa7f2c14db63cc95e91ff784f4261307b699ba32c9982560b5049df9
7
+ data.tar.gz: da9aa15e248076a4fdee6f1ccf9c213e815a846ae5af49eece3aefa9c1031bc599f680d82343b5449538f3626697aee745b7823b10f7fe06d8808f21b1439174
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ['lib']
18
18
  s.add_dependency 'document_mapper'
19
- s.add_dependency 'erubis'
20
19
  s.add_dependency 'sinatra'
21
20
  s.add_dependency 'ratom'
22
21
  s.add_development_dependency 'rack-test'
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module HacketySling
3
- VERSION = '0.0.6'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  end
@@ -34,14 +34,14 @@ module Sinatra
34
34
  @post = post
35
35
  erb :post
36
36
  end
37
- base_name = post.file_name_without_extension.sub(/^\d{4}-\d{2}-\d{2}-/, '')
37
+ base_name = post.file_name_without_extension.sub(/\d{4}-\d{2}-\d{2}-/, '')
38
38
  app.get "/#{base_name}/?" do
39
39
  redirect post.permalink, 301
40
40
  end
41
41
  end
42
42
 
43
43
  ymd = [:year, :month, :day]
44
- app.get %r{^/(\d{4}/?)(\d{2}/?)?(\d{2}/?)?$} do
44
+ app.get %r{/(\d{4}/?)(\d{2}/?)?(\d{2}/?)?} do
45
45
  selector_hash = {}
46
46
  params[:captures].each_with_index do |date_part, index|
47
47
  selector_hash[ymd[index]] = date_part.to_i unless date_part.nil?
metadata CHANGED
@@ -1,82 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hackety_sling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ralph von der Heyden
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-01-12 00:00:00.000000000 Z
11
+ date: 2022-07-28 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: document_mapper
16
- requirement: &70312818736560 !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'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70312818736560
25
- - !ruby/object:Gem::Dependency
26
- name: erubis
27
- requirement: &70312818736140 !ruby/object:Gem::Requirement
28
- none: false
22
+ version_requirements: !ruby/object:Gem::Requirement
29
23
  requirements:
30
- - - ! '>='
24
+ - - ">="
31
25
  - !ruby/object:Gem::Version
32
26
  version: '0'
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *70312818736140
36
27
  - !ruby/object:Gem::Dependency
37
28
  name: sinatra
38
- requirement: &70312818735720 !ruby/object:Gem::Requirement
39
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
40
30
  requirements:
41
- - - ! '>='
31
+ - - ">="
42
32
  - !ruby/object:Gem::Version
43
33
  version: '0'
44
34
  type: :runtime
45
35
  prerelease: false
46
- version_requirements: *70312818735720
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: ratom
49
- requirement: &70312818735280 !ruby/object:Gem::Requirement
50
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
51
44
  requirements:
52
- - - ! '>='
45
+ - - ">="
53
46
  - !ruby/object:Gem::Version
54
47
  version: '0'
55
48
  type: :runtime
56
49
  prerelease: false
57
- version_requirements: *70312818735280
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
58
55
  - !ruby/object:Gem::Dependency
59
56
  name: rack-test
60
- requirement: &70312818734820 !ruby/object:Gem::Requirement
61
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
62
58
  requirements:
63
- - - ! '>='
59
+ - - ">="
64
60
  - !ruby/object:Gem::Version
65
61
  version: '0'
66
62
  type: :development
67
63
  prerelease: false
68
- version_requirements: *70312818734820
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: RedCloth
71
- requirement: &70312818734320 !ruby/object:Gem::Requirement
72
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
73
72
  requirements:
74
- - - ! '>='
73
+ - - ">="
75
74
  - !ruby/object:Gem::Version
76
75
  version: '0'
77
76
  type: :development
78
77
  prerelease: false
79
- version_requirements: *70312818734320
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
80
83
  description: A simple blog engine based on Sinatra and document_mapper
81
84
  email:
82
85
  - ralph@rvdh.de
@@ -84,8 +87,8 @@ executables: []
84
87
  extensions: []
85
88
  extra_rdoc_files: []
86
89
  files:
87
- - .gitignore
88
- - .travis.yml
90
+ - ".gitignore"
91
+ - ".travis.yml"
89
92
  - Gemfile
90
93
  - README.md
91
94
  - Rakefile
@@ -106,33 +109,25 @@ files:
106
109
  - views/posts.erb
107
110
  homepage: http://rvdh.de
108
111
  licenses: []
112
+ metadata: {}
109
113
  post_install_message:
110
114
  rdoc_options: []
111
115
  require_paths:
112
116
  - lib
113
117
  required_ruby_version: !ruby/object:Gem::Requirement
114
- none: false
115
118
  requirements:
116
- - - ! '>='
119
+ - - ">="
117
120
  - !ruby/object:Gem::Version
118
121
  version: '0'
119
- segments:
120
- - 0
121
- hash: -930684126590065733
122
122
  required_rubygems_version: !ruby/object:Gem::Requirement
123
- none: false
124
123
  requirements:
125
- - - ! '>='
124
+ - - ">="
126
125
  - !ruby/object:Gem::Version
127
126
  version: '0'
128
- segments:
129
- - 0
130
- hash: -930684126590065733
131
127
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 1.8.10
128
+ rubygems_version: 3.1.6
134
129
  signing_key:
135
- specification_version: 3
130
+ specification_version: 4
136
131
  summary: A simple blog engine based on Sinatra and document_mapper
137
132
  test_files:
138
133
  - test/hackety_sling_test.rb