el_vfs_client 0.0.2.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,3 +1,77 @@
1
1
  = ElVfsClient
2
2
 
3
+ elFinder 2.0 (beta) jQuery plugin for VFS
4
+
5
+ = Quick start
6
+
7
+ Gemfile:
8
+
9
+ gem 'el_vfs_client'
10
+
11
+ Install gem:
12
+
13
+ $ bundle install
14
+
15
+ For Rails 3.1.x in application.js
16
+
17
+ /*
18
+ ...
19
+ *= require jquery
20
+ *= require jquery_ujs
21
+ ...
22
+ *= require jquery-ui
23
+ *= require el_vfs/elfinder.js
24
+ */
25
+
26
+ $(function() {
27
+ $('#elfinder').elfinder({
28
+ url: '/api/el_finder/v2',
29
+ lang: 'en'
30
+ });
31
+ });
32
+
33
+ In view:
34
+
35
+ <div id='elfinder'></div>
36
+
37
+ === Styling
38
+
39
+ For Rails 3.1.x in application.css
40
+
41
+ /*
42
+ *= require_self
43
+ ...
44
+ *= require el_vfs/el_vfs
45
+ ...
46
+ */
47
+
48
+ === Localize:
49
+
50
+ For Rails 3.1.x in application.js
51
+
52
+ /*
53
+ ...
54
+ *= require jquery-ui
55
+ *= require el_vfs/elfinder.js
56
+ *= require el_vfs/i18n/elfinder.ru.js
57
+ */
58
+ ...
59
+ lang: 'ru'
60
+ ...
61
+
62
+ === Routes
63
+
64
+ mount ElVfsClient::Engine => '/'
65
+
66
+ === Set el_vfs url
67
+
68
+ In config/settings.yml
69
+
70
+ el_vfs:
71
+ protocol: <protocol>
72
+ host: <host>
73
+ port: <port>
74
+
75
+ = LICENSE
76
+
3
77
  This project rocks and uses MIT-LICENSE.
@@ -8,7 +8,7 @@ module ElVfsClient
8
8
  params.delete(:format)
9
9
  params.delete(:controller)
10
10
  params.delete(:action)
11
- c = Curl::Easy.new("#{Settings[:el_vfs][:protocol]}://#{Settings[:el_vfs][:host]}:#{Settings[:el_vfs][:port]}/el_vfs/api/elfinder") do |curl|
11
+ c = Curl::Easy.new("#{Settings[:el_vfs][:protocol]}://#{Settings[:el_vfs][:host]}:#{Settings[:el_vfs][:port]}/api/el_finder/v2") do |curl|
12
12
  curl.headers['User-Agent'] = request.user_agent
13
13
  curl.headers['Accept'] = 'application/json'
14
14
  curl.headers['CLIENT_IP'] = request.env['HTTP_CLIENT_IP']
data/config/routes.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module ElVfsClient
2
2
  Engine.routes.draw do
3
- match '/api/elfinder' => 'el_finder#run'
3
+ match '/api/el_finder/v2' => 'el_finder#run'
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module ElVfsClient
2
- VERSION = "0.0.2.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: el_vfs_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2011-11-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: configliere
17
- requirement: &19921400 !ruby/object:Gem::Requirement
17
+ requirement: &19807800 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *19921400
25
+ version_requirements: *19807800
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: curb
28
- requirement: &19920940 !ruby/object:Gem::Requirement
28
+ requirement: &19807280 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *19920940
36
+ version_requirements: *19807280
37
37
  description: Description of ElVfsClient.
38
38
  email:
39
39
  - mail@openteam.ru
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  segments:
100
100
  - 0
101
- hash: -1085864375118120718
101
+ hash: 510922676192146877
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  none: false
104
104
  requirements:
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  segments:
109
109
  - 0
110
- hash: -1085864375118120718
110
+ hash: 510922676192146877
111
111
  requirements: []
112
112
  rubyforge_project:
113
113
  rubygems_version: 1.8.10