murlsh 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -39
- data/Gemfile.app +8 -0
- data/README.textile +10 -19
- data/bin/murlsh +0 -9
- data/lib/murlsh/install.rb +5 -0
- data/lib/murlsh/version.rb +3 -0
- data/lib/murlsh.rb +1 -0
- data/murlsh.gemspec +32 -28
- metadata +71 -108
- data/plugins/add_pre_30_unajax_twitter.rb +0 -19
data/Gemfile
CHANGED
@@ -1,41 +1,3 @@
|
|
1
1
|
source :rubygems
|
2
2
|
|
3
|
-
|
4
|
-
# murlsh as a "gem" and will not work on Heroku, which sees murlsh as an
|
5
|
-
# "app".
|
6
|
-
|
7
|
-
# Dependencies duplicated in gemspec and here until a better solution is
|
8
|
-
# found.
|
9
|
-
|
10
|
-
%w{
|
11
|
-
activerecord >= 2.3.4
|
12
|
-
aws-s3 ~> 0.6
|
13
|
-
bcrypt-ruby >= 2.1.2
|
14
|
-
builder > 0
|
15
|
-
htmlentities >= 4.2.0
|
16
|
-
json >= 1.2.3
|
17
|
-
nokogiri ~> 1.0
|
18
|
-
plumnailer >= 0.1.3
|
19
|
-
postrank-uri ~> 1.0
|
20
|
-
public_suffix_service ~> 0.0
|
21
|
-
push-notify >= 0.1.0
|
22
|
-
rack >= 1.0.0
|
23
|
-
rack-cache >= 0.5.2
|
24
|
-
rack-rewrite >= 1.0.2
|
25
|
-
rack-throttle >= 0.3.0
|
26
|
-
rmagick >= 1.15.14
|
27
|
-
rmail ~> 1.0
|
28
|
-
sqlite3 ~> 1.3
|
29
|
-
tinyatom >= 0.3.4
|
30
|
-
treetop ~> 1.4
|
31
|
-
twitter >= 0.9.12
|
32
|
-
}.each_slice(3) { |g,o,v| gem g, "#{o} #{v}" }
|
33
|
-
|
34
|
-
group :development do
|
35
|
-
%w{
|
36
|
-
fakeweb ~> 1.3
|
37
|
-
flog >= 2.5.0
|
38
|
-
rack-test ~> 0.5
|
39
|
-
rspec ~> 2.0
|
40
|
-
}.each_slice(3) { |g,o,v| gem g, "#{o} #{v}" }
|
41
|
-
end
|
3
|
+
gemspec
|
data/Gemfile.app
ADDED
data/README.textile
CHANGED
@@ -26,30 +26,29 @@ DESTINATION_DIRECTORY is the web directory to install the murlsh site to.
|
|
26
26
|
|
27
27
|
<pre>
|
28
28
|
<code>
|
29
|
-
gem sources -a http://gemcutter.org/
|
30
29
|
gem install murlsh
|
31
30
|
murlsh DESTINATION_DIRECTORY
|
32
31
|
cd DESTINATION_DIRECTORY
|
33
|
-
|
32
|
+
rake config[root_url,<site root url>]
|
33
|
+
change anything else you want in config.yaml
|
34
34
|
rake init
|
35
35
|
</code>
|
36
36
|
</pre>
|
37
37
|
|
38
38
|
h2. Heroku
|
39
39
|
|
40
|
+
S3 is used for thumbnail storage because Heroku cannot write local files.
|
41
|
+
|
40
42
|
<pre>
|
41
43
|
<code>
|
42
44
|
gem install heroku
|
43
45
|
heroku keys:add
|
44
|
-
</code>
|
45
|
-
</pre>
|
46
46
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
git
|
52
|
-
cd murlsh
|
47
|
+
gem install murlsh
|
48
|
+
mkdir murlsh_deploy <or any other name>
|
49
|
+
cd murlsh_deploy
|
50
|
+
murlsh .
|
51
|
+
git init
|
53
52
|
bundle install
|
54
53
|
heroku create <choose a name>
|
55
54
|
rake heroku:config
|
@@ -58,15 +57,7 @@ rake config[root_url,<your app's Heroku url>]
|
|
58
57
|
rake config[s3_bucket,<your S3 bucket name>]
|
59
58
|
rake config[s3_id,<your S3 id>]
|
60
59
|
rake config[s3_secret,<your S3 secret>]
|
61
|
-
|
62
|
-
</pre>
|
63
|
-
|
64
|
-
S3 is used for thumbnail storage because Heroku cannot write local files.
|
65
|
-
|
66
|
-
Other config in config.yaml is optional.
|
67
|
-
|
68
|
-
<pre>
|
69
|
-
<code>
|
60
|
+
change anything else you want in config.yaml
|
70
61
|
rake user:add
|
71
62
|
git add .
|
72
63
|
git commit
|
data/bin/murlsh
CHANGED
@@ -16,12 +16,3 @@ if ARGV.empty?; usage; exit 1; end
|
|
16
16
|
dest_dir = ARGV[0]
|
17
17
|
|
18
18
|
Murlsh.install(dest_dir)
|
19
|
-
|
20
|
-
cd_command = File.expand_path(dest_dir) == Dir.pwd ? '' : "cd #{dest_dir}\n"
|
21
|
-
|
22
|
-
puts <<eos
|
23
|
-
Next steps:
|
24
|
-
|
25
|
-
#{cd_command}edit config.yaml
|
26
|
-
rake init
|
27
|
-
eos
|
data/lib/murlsh/install.rb
CHANGED
@@ -21,8 +21,13 @@ module Murlsh
|
|
21
21
|
db/
|
22
22
|
plugins/
|
23
23
|
public/
|
24
|
+
Gemfile.app
|
24
25
|
}.map { |x| File.join(MurlshRoot, x) }, dest_dir, :verbose => true)
|
25
26
|
|
27
|
+
File.rename(
|
28
|
+
File.join(dest_dir, 'Gemfile.app'),
|
29
|
+
File.join(dest_dir, 'Gemfile'))
|
30
|
+
|
26
31
|
FileUtils.mkdir_p(File.join(dest_dir, 'tmp'), :verbose => true)
|
27
32
|
end
|
28
33
|
|
data/lib/murlsh.rb
CHANGED
data/murlsh.gemspec
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
|
+
$:.unshift(File.join(File.dirname(__FILE__), 'lib'))
|
4
|
+
|
5
|
+
require 'murlsh/version'
|
6
|
+
|
3
7
|
Gem::Specification.new do |s|
|
4
8
|
s.name = 'murlsh'
|
5
|
-
s.version =
|
9
|
+
s.version = Murlsh::VERSION
|
6
10
|
s.summary = 'Host your bookmarks or maintain a link blog'
|
7
11
|
s.description = s.summary
|
8
12
|
s.homepage = 'https://github.com/mmb/murlsh'
|
@@ -12,35 +16,35 @@ Gem::Specification.new do |s|
|
|
12
16
|
s.required_rubygems_version = '>= 1.3.6'
|
13
17
|
|
14
18
|
%w{
|
15
|
-
activerecord
|
16
|
-
aws-s3
|
17
|
-
bcrypt-ruby
|
18
|
-
builder
|
19
|
-
htmlentities
|
20
|
-
json
|
21
|
-
nokogiri
|
22
|
-
plumnailer
|
23
|
-
postrank-uri
|
24
|
-
public_suffix_service
|
25
|
-
push-notify
|
26
|
-
rack
|
27
|
-
rack-cache
|
28
|
-
rack-rewrite
|
29
|
-
rack-throttle
|
30
|
-
rmagick
|
31
|
-
rmail
|
32
|
-
sqlite3
|
33
|
-
tinyatom
|
34
|
-
treetop
|
35
|
-
twitter
|
36
|
-
}.
|
19
|
+
activerecord
|
20
|
+
aws-s3
|
21
|
+
bcrypt-ruby
|
22
|
+
builder
|
23
|
+
htmlentities
|
24
|
+
json
|
25
|
+
nokogiri
|
26
|
+
plumnailer
|
27
|
+
postrank-uri
|
28
|
+
public_suffix_service
|
29
|
+
push-notify
|
30
|
+
rack
|
31
|
+
rack-cache
|
32
|
+
rack-rewrite
|
33
|
+
rack-throttle
|
34
|
+
rmagick
|
35
|
+
rmail
|
36
|
+
sqlite3
|
37
|
+
tinyatom
|
38
|
+
treetop
|
39
|
+
twitter
|
40
|
+
}.each { |g| s.add_dependency g }
|
37
41
|
|
38
42
|
%w{
|
39
|
-
fakeweb
|
40
|
-
flog
|
41
|
-
rack-test
|
42
|
-
rspec
|
43
|
-
}.
|
43
|
+
fakeweb
|
44
|
+
flog
|
45
|
+
rack-test
|
46
|
+
rspec
|
47
|
+
}.each { |g| s.add_development_dependency g }
|
44
48
|
|
45
49
|
s.files = `git ls-files`.split("\n")
|
46
50
|
s.test_files = `git ls-files spec/*`.split("\n")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: murlsh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 6
|
9
9
|
- 0
|
10
|
-
version: 1.
|
10
|
+
version: 1.6.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matthew M. Boedicker
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-22 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,10 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 3
|
30
30
|
segments:
|
31
|
-
-
|
32
|
-
|
33
|
-
- 4
|
34
|
-
version: 2.3.4
|
31
|
+
- 0
|
32
|
+
version: "0"
|
35
33
|
type: :runtime
|
36
34
|
version_requirements: *id001
|
37
35
|
- !ruby/object:Gem::Dependency
|
@@ -40,13 +38,12 @@ dependencies:
|
|
40
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
40
|
requirements:
|
43
|
-
- -
|
41
|
+
- - ">="
|
44
42
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
43
|
+
hash: 3
|
46
44
|
segments:
|
47
45
|
- 0
|
48
|
-
|
49
|
-
version: "0.6"
|
46
|
+
version: "0"
|
50
47
|
type: :runtime
|
51
48
|
version_requirements: *id002
|
52
49
|
- !ruby/object:Gem::Dependency
|
@@ -57,12 +54,10 @@ dependencies:
|
|
57
54
|
requirements:
|
58
55
|
- - ">="
|
59
56
|
- !ruby/object:Gem::Version
|
60
|
-
hash:
|
57
|
+
hash: 3
|
61
58
|
segments:
|
62
|
-
-
|
63
|
-
|
64
|
-
- 2
|
65
|
-
version: 2.1.2
|
59
|
+
- 0
|
60
|
+
version: "0"
|
66
61
|
type: :runtime
|
67
62
|
version_requirements: *id003
|
68
63
|
- !ruby/object:Gem::Dependency
|
@@ -71,7 +66,7 @@ dependencies:
|
|
71
66
|
requirement: &id004 !ruby/object:Gem::Requirement
|
72
67
|
none: false
|
73
68
|
requirements:
|
74
|
-
- - "
|
69
|
+
- - ">="
|
75
70
|
- !ruby/object:Gem::Version
|
76
71
|
hash: 3
|
77
72
|
segments:
|
@@ -87,12 +82,10 @@ dependencies:
|
|
87
82
|
requirements:
|
88
83
|
- - ">="
|
89
84
|
- !ruby/object:Gem::Version
|
90
|
-
hash:
|
85
|
+
hash: 3
|
91
86
|
segments:
|
92
|
-
- 4
|
93
|
-
- 2
|
94
87
|
- 0
|
95
|
-
version:
|
88
|
+
version: "0"
|
96
89
|
type: :runtime
|
97
90
|
version_requirements: *id005
|
98
91
|
- !ruby/object:Gem::Dependency
|
@@ -103,12 +96,10 @@ dependencies:
|
|
103
96
|
requirements:
|
104
97
|
- - ">="
|
105
98
|
- !ruby/object:Gem::Version
|
106
|
-
hash:
|
99
|
+
hash: 3
|
107
100
|
segments:
|
108
|
-
-
|
109
|
-
|
110
|
-
- 3
|
111
|
-
version: 1.2.3
|
101
|
+
- 0
|
102
|
+
version: "0"
|
112
103
|
type: :runtime
|
113
104
|
version_requirements: *id006
|
114
105
|
- !ruby/object:Gem::Dependency
|
@@ -117,13 +108,12 @@ dependencies:
|
|
117
108
|
requirement: &id007 !ruby/object:Gem::Requirement
|
118
109
|
none: false
|
119
110
|
requirements:
|
120
|
-
- -
|
111
|
+
- - ">="
|
121
112
|
- !ruby/object:Gem::Version
|
122
|
-
hash:
|
113
|
+
hash: 3
|
123
114
|
segments:
|
124
|
-
- 1
|
125
115
|
- 0
|
126
|
-
version: "
|
116
|
+
version: "0"
|
127
117
|
type: :runtime
|
128
118
|
version_requirements: *id007
|
129
119
|
- !ruby/object:Gem::Dependency
|
@@ -134,12 +124,10 @@ dependencies:
|
|
134
124
|
requirements:
|
135
125
|
- - ">="
|
136
126
|
- !ruby/object:Gem::Version
|
137
|
-
hash:
|
127
|
+
hash: 3
|
138
128
|
segments:
|
139
129
|
- 0
|
140
|
-
|
141
|
-
- 3
|
142
|
-
version: 0.1.3
|
130
|
+
version: "0"
|
143
131
|
type: :runtime
|
144
132
|
version_requirements: *id008
|
145
133
|
- !ruby/object:Gem::Dependency
|
@@ -148,13 +136,12 @@ dependencies:
|
|
148
136
|
requirement: &id009 !ruby/object:Gem::Requirement
|
149
137
|
none: false
|
150
138
|
requirements:
|
151
|
-
- -
|
139
|
+
- - ">="
|
152
140
|
- !ruby/object:Gem::Version
|
153
|
-
hash:
|
141
|
+
hash: 3
|
154
142
|
segments:
|
155
|
-
- 1
|
156
143
|
- 0
|
157
|
-
version: "
|
144
|
+
version: "0"
|
158
145
|
type: :runtime
|
159
146
|
version_requirements: *id009
|
160
147
|
- !ruby/object:Gem::Dependency
|
@@ -163,13 +150,12 @@ dependencies:
|
|
163
150
|
requirement: &id010 !ruby/object:Gem::Requirement
|
164
151
|
none: false
|
165
152
|
requirements:
|
166
|
-
- -
|
153
|
+
- - ">="
|
167
154
|
- !ruby/object:Gem::Version
|
168
|
-
hash:
|
155
|
+
hash: 3
|
169
156
|
segments:
|
170
157
|
- 0
|
171
|
-
|
172
|
-
version: "0.0"
|
158
|
+
version: "0"
|
173
159
|
type: :runtime
|
174
160
|
version_requirements: *id010
|
175
161
|
- !ruby/object:Gem::Dependency
|
@@ -180,12 +166,10 @@ dependencies:
|
|
180
166
|
requirements:
|
181
167
|
- - ">="
|
182
168
|
- !ruby/object:Gem::Version
|
183
|
-
hash:
|
169
|
+
hash: 3
|
184
170
|
segments:
|
185
171
|
- 0
|
186
|
-
|
187
|
-
- 0
|
188
|
-
version: 0.1.0
|
172
|
+
version: "0"
|
189
173
|
type: :runtime
|
190
174
|
version_requirements: *id011
|
191
175
|
- !ruby/object:Gem::Dependency
|
@@ -196,12 +180,10 @@ dependencies:
|
|
196
180
|
requirements:
|
197
181
|
- - ">="
|
198
182
|
- !ruby/object:Gem::Version
|
199
|
-
hash:
|
183
|
+
hash: 3
|
200
184
|
segments:
|
201
|
-
- 1
|
202
185
|
- 0
|
203
|
-
|
204
|
-
version: 1.0.0
|
186
|
+
version: "0"
|
205
187
|
type: :runtime
|
206
188
|
version_requirements: *id012
|
207
189
|
- !ruby/object:Gem::Dependency
|
@@ -212,12 +194,10 @@ dependencies:
|
|
212
194
|
requirements:
|
213
195
|
- - ">="
|
214
196
|
- !ruby/object:Gem::Version
|
215
|
-
hash:
|
197
|
+
hash: 3
|
216
198
|
segments:
|
217
199
|
- 0
|
218
|
-
|
219
|
-
- 2
|
220
|
-
version: 0.5.2
|
200
|
+
version: "0"
|
221
201
|
type: :runtime
|
222
202
|
version_requirements: *id013
|
223
203
|
- !ruby/object:Gem::Dependency
|
@@ -228,12 +208,10 @@ dependencies:
|
|
228
208
|
requirements:
|
229
209
|
- - ">="
|
230
210
|
- !ruby/object:Gem::Version
|
231
|
-
hash:
|
211
|
+
hash: 3
|
232
212
|
segments:
|
233
|
-
- 1
|
234
213
|
- 0
|
235
|
-
|
236
|
-
version: 1.0.2
|
214
|
+
version: "0"
|
237
215
|
type: :runtime
|
238
216
|
version_requirements: *id014
|
239
217
|
- !ruby/object:Gem::Dependency
|
@@ -244,12 +222,10 @@ dependencies:
|
|
244
222
|
requirements:
|
245
223
|
- - ">="
|
246
224
|
- !ruby/object:Gem::Version
|
247
|
-
hash:
|
225
|
+
hash: 3
|
248
226
|
segments:
|
249
227
|
- 0
|
250
|
-
|
251
|
-
- 0
|
252
|
-
version: 0.3.0
|
228
|
+
version: "0"
|
253
229
|
type: :runtime
|
254
230
|
version_requirements: *id015
|
255
231
|
- !ruby/object:Gem::Dependency
|
@@ -260,12 +236,10 @@ dependencies:
|
|
260
236
|
requirements:
|
261
237
|
- - ">="
|
262
238
|
- !ruby/object:Gem::Version
|
263
|
-
hash:
|
239
|
+
hash: 3
|
264
240
|
segments:
|
265
|
-
-
|
266
|
-
|
267
|
-
- 14
|
268
|
-
version: 1.15.14
|
241
|
+
- 0
|
242
|
+
version: "0"
|
269
243
|
type: :runtime
|
270
244
|
version_requirements: *id016
|
271
245
|
- !ruby/object:Gem::Dependency
|
@@ -274,13 +248,12 @@ dependencies:
|
|
274
248
|
requirement: &id017 !ruby/object:Gem::Requirement
|
275
249
|
none: false
|
276
250
|
requirements:
|
277
|
-
- -
|
251
|
+
- - ">="
|
278
252
|
- !ruby/object:Gem::Version
|
279
|
-
hash:
|
253
|
+
hash: 3
|
280
254
|
segments:
|
281
|
-
- 1
|
282
255
|
- 0
|
283
|
-
version: "
|
256
|
+
version: "0"
|
284
257
|
type: :runtime
|
285
258
|
version_requirements: *id017
|
286
259
|
- !ruby/object:Gem::Dependency
|
@@ -289,13 +262,12 @@ dependencies:
|
|
289
262
|
requirement: &id018 !ruby/object:Gem::Requirement
|
290
263
|
none: false
|
291
264
|
requirements:
|
292
|
-
- -
|
265
|
+
- - ">="
|
293
266
|
- !ruby/object:Gem::Version
|
294
|
-
hash:
|
267
|
+
hash: 3
|
295
268
|
segments:
|
296
|
-
-
|
297
|
-
|
298
|
-
version: "1.3"
|
269
|
+
- 0
|
270
|
+
version: "0"
|
299
271
|
type: :runtime
|
300
272
|
version_requirements: *id018
|
301
273
|
- !ruby/object:Gem::Dependency
|
@@ -306,12 +278,10 @@ dependencies:
|
|
306
278
|
requirements:
|
307
279
|
- - ">="
|
308
280
|
- !ruby/object:Gem::Version
|
309
|
-
hash:
|
281
|
+
hash: 3
|
310
282
|
segments:
|
311
283
|
- 0
|
312
|
-
|
313
|
-
- 4
|
314
|
-
version: 0.3.4
|
284
|
+
version: "0"
|
315
285
|
type: :runtime
|
316
286
|
version_requirements: *id019
|
317
287
|
- !ruby/object:Gem::Dependency
|
@@ -320,13 +290,12 @@ dependencies:
|
|
320
290
|
requirement: &id020 !ruby/object:Gem::Requirement
|
321
291
|
none: false
|
322
292
|
requirements:
|
323
|
-
- -
|
293
|
+
- - ">="
|
324
294
|
- !ruby/object:Gem::Version
|
325
|
-
hash:
|
295
|
+
hash: 3
|
326
296
|
segments:
|
327
|
-
-
|
328
|
-
|
329
|
-
version: "1.4"
|
297
|
+
- 0
|
298
|
+
version: "0"
|
330
299
|
type: :runtime
|
331
300
|
version_requirements: *id020
|
332
301
|
- !ruby/object:Gem::Dependency
|
@@ -337,12 +306,10 @@ dependencies:
|
|
337
306
|
requirements:
|
338
307
|
- - ">="
|
339
308
|
- !ruby/object:Gem::Version
|
340
|
-
hash:
|
309
|
+
hash: 3
|
341
310
|
segments:
|
342
311
|
- 0
|
343
|
-
|
344
|
-
- 12
|
345
|
-
version: 0.9.12
|
312
|
+
version: "0"
|
346
313
|
type: :runtime
|
347
314
|
version_requirements: *id021
|
348
315
|
- !ruby/object:Gem::Dependency
|
@@ -351,13 +318,12 @@ dependencies:
|
|
351
318
|
requirement: &id022 !ruby/object:Gem::Requirement
|
352
319
|
none: false
|
353
320
|
requirements:
|
354
|
-
- -
|
321
|
+
- - ">="
|
355
322
|
- !ruby/object:Gem::Version
|
356
|
-
hash:
|
323
|
+
hash: 3
|
357
324
|
segments:
|
358
|
-
-
|
359
|
-
|
360
|
-
version: "1.3"
|
325
|
+
- 0
|
326
|
+
version: "0"
|
361
327
|
type: :development
|
362
328
|
version_requirements: *id022
|
363
329
|
- !ruby/object:Gem::Dependency
|
@@ -368,12 +334,10 @@ dependencies:
|
|
368
334
|
requirements:
|
369
335
|
- - ">="
|
370
336
|
- !ruby/object:Gem::Version
|
371
|
-
hash:
|
337
|
+
hash: 3
|
372
338
|
segments:
|
373
|
-
- 2
|
374
|
-
- 5
|
375
339
|
- 0
|
376
|
-
version:
|
340
|
+
version: "0"
|
377
341
|
type: :development
|
378
342
|
version_requirements: *id023
|
379
343
|
- !ruby/object:Gem::Dependency
|
@@ -382,13 +346,12 @@ dependencies:
|
|
382
346
|
requirement: &id024 !ruby/object:Gem::Requirement
|
383
347
|
none: false
|
384
348
|
requirements:
|
385
|
-
- -
|
349
|
+
- - ">="
|
386
350
|
- !ruby/object:Gem::Version
|
387
|
-
hash:
|
351
|
+
hash: 3
|
388
352
|
segments:
|
389
353
|
- 0
|
390
|
-
|
391
|
-
version: "0.5"
|
354
|
+
version: "0"
|
392
355
|
type: :development
|
393
356
|
version_requirements: *id024
|
394
357
|
- !ruby/object:Gem::Dependency
|
@@ -397,13 +360,12 @@ dependencies:
|
|
397
360
|
requirement: &id025 !ruby/object:Gem::Requirement
|
398
361
|
none: false
|
399
362
|
requirements:
|
400
|
-
- -
|
363
|
+
- - ">="
|
401
364
|
- !ruby/object:Gem::Version
|
402
365
|
hash: 3
|
403
366
|
segments:
|
404
|
-
- 2
|
405
367
|
- 0
|
406
|
-
version: "
|
368
|
+
version: "0"
|
407
369
|
type: :development
|
408
370
|
version_requirements: *id025
|
409
371
|
description: Host your bookmarks or maintain a link blog
|
@@ -420,6 +382,7 @@ files:
|
|
420
382
|
- .htaccess
|
421
383
|
- COPYING
|
422
384
|
- Gemfile
|
385
|
+
- Gemfile.app
|
423
386
|
- README.textile
|
424
387
|
- Rakefile
|
425
388
|
- bin/murlsh
|
@@ -469,11 +432,11 @@ files:
|
|
469
432
|
- lib/murlsh/url_body.rb
|
470
433
|
- lib/murlsh/url_result_set.rb
|
471
434
|
- lib/murlsh/url_server.rb
|
435
|
+
- lib/murlsh/version.rb
|
472
436
|
- lib/murlsh/write_ordered_hash.rb
|
473
437
|
- lib/murlsh/yaml_ordered_hash.rb
|
474
438
|
- murlsh.gemspec
|
475
439
|
- plugins/add_post_60_notify_hubs.rb
|
476
|
-
- plugins/add_pre_30_unajax_twitter.rb
|
477
440
|
- plugins/add_pre_35_url_clean.rb
|
478
441
|
- plugins/add_pre_40_convert_mobile.rb
|
479
442
|
- plugins/add_pre_40_thumbnail_shortcuts.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
require 'murlsh'
|
2
|
-
|
3
|
-
module Murlsh
|
4
|
-
|
5
|
-
# Convert Ajax friendly Twitter urls (with #!) into usable urls.
|
6
|
-
class AddPre30UnajaxTwitter < Plugin
|
7
|
-
|
8
|
-
@hook = 'add_pre'
|
9
|
-
|
10
|
-
TwitterAjaxRe = %r{^(https?://twitter\.com/)#!/}i
|
11
|
-
|
12
|
-
def self.run(url, config)
|
13
|
-
url.url.sub! TwitterAjaxRe, '\1'
|
14
|
-
url.via.sub!(TwitterAjaxRe, '\1') if url.via
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|