enki-engine 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,11 +2,11 @@ module Enki
2
2
  module UrlHelper
3
3
  def post_path(post, options = {})
4
4
  suffix = options[:anchor] ? "##{options[:anchor]}" : ""
5
- path = post.published_at.strftime("/%Y/%m/%d/") + post.slug + suffix
5
+ path = [Enki.config[:engine, :mount_at], post.published_at.strftime("/%Y/%m/%d/") + post.slug + suffix].join
6
6
  if options[:only_path] == false
7
- URI.join(Enki.config[:url], Enki.config[:engine, :mount_at], path)
7
+ URI.join(Enki.config[:url], path)
8
8
  else
9
- [Enki.config[:engine, :mount_at], path].join
9
+ path
10
10
  end
11
11
  end
12
12
 
data/lib/enki/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Enki
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enki-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2012-02-22 00:00:00.000000000Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: RedCloth
18
- requirement: &2156200340 !ruby/object:Gem::Requirement
18
+ requirement: &2152528580 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 4.2.9
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2156200340
26
+ version_requirements: *2152528580
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aaronh-chronic
29
- requirement: &2156198420 !ruby/object:Gem::Requirement
29
+ requirement: &2152528140 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2156198420
37
+ version_requirements: *2152528140
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: coderay
40
- requirement: &2156197600 !ruby/object:Gem::Requirement
40
+ requirement: &2152527540 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *2156197600
48
+ version_requirements: *2152527540
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: lesstile
51
- requirement: &2156196460 !ruby/object:Gem::Requirement
51
+ requirement: &2152527080 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '0'
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *2156196460
59
+ version_requirements: *2152527080
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: simple_form
62
- requirement: &2156194040 !ruby/object:Gem::Requirement
62
+ requirement: &2152526580 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: '0'
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *2156194040
70
+ version_requirements: *2152526580
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: acts-as-taggable-on
73
- requirement: &2156192900 !ruby/object:Gem::Requirement
73
+ requirement: &2152526140 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2156192900
81
+ version_requirements: *2152526140
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: rails
84
- requirement: &2156191560 !ruby/object:Gem::Requirement
84
+ requirement: &2152525520 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ~>
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '3.2'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2156191560
92
+ version_requirements: *2152525520
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: rspec-rails
95
- requirement: &2156189640 !ruby/object:Gem::Requirement
95
+ requirement: &2152524920 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: '2.9'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *2156189640
103
+ version_requirements: *2152524920
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: factory_girl_rails
106
- requirement: &2156188580 !ruby/object:Gem::Requirement
106
+ requirement: &2152524520 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: '0'
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *2156188580
114
+ version_requirements: *2152524520
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: nokogiri
117
- requirement: &2156187720 !ruby/object:Gem::Requirement
117
+ requirement: &2152523860 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ~>
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: 1.5.0
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *2156187720
125
+ version_requirements: *2152523860
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: webrat
128
- requirement: &2156187120 !ruby/object:Gem::Requirement
128
+ requirement: &2152523440 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,10 +133,10 @@ dependencies:
133
133
  version: '0'
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *2156187120
136
+ version_requirements: *2152523440
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: sqlite3
139
- requirement: &2156186320 !ruby/object:Gem::Requirement
139
+ requirement: &2152522880 !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements:
142
142
  - - ! '>='
@@ -144,7 +144,7 @@ dependencies:
144
144
  version: '0'
145
145
  type: :development
146
146
  prerelease: false
147
- version_requirements: *2156186320
147
+ version_requirements: *2152522880
148
148
  description: An adaptation of the Enki blogging application as a Rails::Engine, for
149
149
  mounting in a host application
150
150
  email: