lolita-file-upload 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile +4 -3
- data/Gemfile.lock +42 -25
- data/README.md +3 -2
- data/lolita-file-upload.gemspec +4 -4
- data/spec/spec_helper.rb +2 -2
- data/test_orm/rails/config/application.rb +4 -5
- metadata +10 -12
- data/log/development.log +0 -0
- data/test_orm/rails/log/development.log +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4b55a583846c741e9a422004046034dd113be46
|
4
|
+
data.tar.gz: 38377ec221d29ddc9e79c319b1efcf889b24a64f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8668c8bccc272eb99db7d2ea27a9b9e1ff1855cad2d7044fb80caa030e1b9cee081399b38e1b06174a4c08ad3ef3299fb823fe7aa7abd7515268c8b81e5457a8
|
7
|
+
data.tar.gz: fcb1f167cdea749270b3bd5196db8c2f886bdf27b22dd3f28d36522b90c9902b7af9dd686f3ee802fe405701518ffa04f0c4419d2a4f0e6f628a7c25f342c892
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -3,11 +3,12 @@ source 'http://rubygems.org'
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
group :test do
|
6
|
+
gem 'lolita', '~> 4.0'
|
6
7
|
gem 'rspec-rails', '~> 2.14'
|
7
8
|
gem 'ffaker', '~> 1.16.2'
|
8
9
|
gem 'factory_girl', '~> 3.6.2'
|
9
10
|
gem 'sqlite3', '~> 1.3.7'
|
10
11
|
gem 'rspec', '~> 2.14'
|
11
|
-
gem 'rails', '~> 3.2
|
12
|
-
gem 'byebug'
|
13
|
-
end
|
12
|
+
gem 'rails', '~> 3.2'
|
13
|
+
gem 'pry-byebug'
|
14
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -2,9 +2,9 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
lolita-file-upload (1.0.1)
|
5
|
-
carrierwave (~> 0.6
|
6
|
-
lolita (
|
7
|
-
mini_magick (~> 3.6
|
5
|
+
carrierwave (~> 0.6)
|
6
|
+
lolita (>= 3.2)
|
7
|
+
mini_magick (~> 3.6)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: http://rubygems.org/
|
@@ -39,48 +39,63 @@ GEM
|
|
39
39
|
multi_json (~> 1.0)
|
40
40
|
arel (3.0.2)
|
41
41
|
builder (3.0.4)
|
42
|
-
byebug (
|
43
|
-
columnize (~> 0.
|
44
|
-
debugger-linecache (~> 1.2
|
45
|
-
|
42
|
+
byebug (3.5.1)
|
43
|
+
columnize (~> 0.8)
|
44
|
+
debugger-linecache (~> 1.2)
|
45
|
+
slop (~> 3.6)
|
46
|
+
carrierwave (0.10.0)
|
46
47
|
activemodel (>= 3.2.0)
|
47
48
|
activesupport (>= 3.2.0)
|
48
|
-
|
49
|
+
json (>= 1.7)
|
50
|
+
mime-types (>= 1.16)
|
51
|
+
coderay (1.1.0)
|
52
|
+
columnize (0.9.0)
|
49
53
|
debugger-linecache (1.2.0)
|
50
54
|
diff-lcs (1.2.4)
|
51
55
|
erubis (2.7.0)
|
52
56
|
factory_girl (3.6.2)
|
53
57
|
activesupport (>= 3.0.0)
|
54
58
|
ffaker (1.16.2)
|
55
|
-
haml (4.0.
|
59
|
+
haml (4.0.6)
|
56
60
|
tilt
|
57
61
|
hike (1.2.3)
|
58
62
|
i18n (0.6.1)
|
59
63
|
journey (1.0.4)
|
60
|
-
jquery-rails (
|
64
|
+
jquery-rails (3.1.2)
|
61
65
|
railties (>= 3.0, < 5.0)
|
62
66
|
thor (>= 0.14, < 2.0)
|
67
|
+
jquery-ui-rails (4.1.2)
|
68
|
+
railties (>= 3.1.0)
|
63
69
|
json (1.8.0)
|
64
70
|
kaminari (0.16.1)
|
65
71
|
actionpack (>= 3.0.0)
|
66
72
|
activesupport (>= 3.0.0)
|
67
|
-
lolita (
|
68
|
-
abstract (~> 1)
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
jquery-rails (
|
73
|
-
kaminari (~> 0.
|
74
|
-
|
75
|
-
tinymce-rails
|
73
|
+
lolita (4.0.2)
|
74
|
+
abstract (~> 1.0.0)
|
75
|
+
activesupport (>= 3.2.0)
|
76
|
+
haml (>= 3.0.0, < 5.0.0)
|
77
|
+
jquery-rails (> 0)
|
78
|
+
jquery-ui-rails (> 0)
|
79
|
+
kaminari (~> 0.16)
|
80
|
+
railties (>= 3.2.0)
|
81
|
+
tinymce-rails (~> 4.1)
|
82
|
+
tinymce-rails-langs (~> 4.0)
|
76
83
|
mail (2.5.4)
|
77
84
|
mime-types (~> 1.16)
|
78
85
|
treetop (~> 1.4.8)
|
86
|
+
method_source (0.8.2)
|
79
87
|
mime-types (1.23)
|
80
|
-
mini_magick (3.
|
88
|
+
mini_magick (3.8.1)
|
81
89
|
subexec (~> 0.2.1)
|
82
90
|
multi_json (1.7.7)
|
83
91
|
polyglot (0.3.3)
|
92
|
+
pry (0.10.1)
|
93
|
+
coderay (~> 1.1.0)
|
94
|
+
method_source (~> 0.8.1)
|
95
|
+
slop (~> 3.4)
|
96
|
+
pry-byebug (2.0.0)
|
97
|
+
byebug (~> 3.4)
|
98
|
+
pry (~> 0.10)
|
84
99
|
rack (1.4.5)
|
85
100
|
rack-cache (1.2)
|
86
101
|
rack (>= 0.4)
|
@@ -121,6 +136,7 @@ GEM
|
|
121
136
|
rspec-core (~> 2.14.0)
|
122
137
|
rspec-expectations (~> 2.14.0)
|
123
138
|
rspec-mocks (~> 2.14.0)
|
139
|
+
slop (3.6.0)
|
124
140
|
sprockets (2.2.2)
|
125
141
|
hike (~> 1.2)
|
126
142
|
multi_json (~> 1.0)
|
@@ -130,10 +146,10 @@ GEM
|
|
130
146
|
subexec (0.2.3)
|
131
147
|
thor (0.18.1)
|
132
148
|
tilt (1.4.1)
|
133
|
-
tinymce-rails (
|
149
|
+
tinymce-rails (4.1.6)
|
134
150
|
railties (>= 3.1.1)
|
135
|
-
tinymce-rails-
|
136
|
-
|
151
|
+
tinymce-rails-langs (4.20140129)
|
152
|
+
tinymce-rails (~> 4.0)
|
137
153
|
treetop (1.4.14)
|
138
154
|
polyglot
|
139
155
|
polyglot (>= 0.3.1)
|
@@ -143,11 +159,12 @@ PLATFORMS
|
|
143
159
|
ruby
|
144
160
|
|
145
161
|
DEPENDENCIES
|
146
|
-
byebug
|
147
162
|
factory_girl (~> 3.6.2)
|
148
163
|
ffaker (~> 1.16.2)
|
164
|
+
lolita (~> 4.0)
|
149
165
|
lolita-file-upload!
|
150
|
-
|
166
|
+
pry-byebug
|
167
|
+
rails (~> 3.2)
|
151
168
|
rspec (~> 2.14)
|
152
169
|
rspec-rails (~> 2.14)
|
153
170
|
sqlite3 (~> 1.3.7)
|
data/README.md
CHANGED
@@ -8,6 +8,7 @@ File upload gem for Lolita.
|
|
8
8
|
* include in gemfile like this: `gem "lolita-file-upload"`
|
9
9
|
* cd your_project_path
|
10
10
|
* rails g lolita_file_upload:install
|
11
|
+
* add `lolita_gallery` as plugin to `config/tinymce.yml` configuration.
|
11
12
|
|
12
13
|
Install will copy migration to your project.
|
13
14
|
If you update to newest version of gem, than run `rails g lolita_file_upload:assets`
|
@@ -18,11 +19,11 @@ Gem will not used until any of lolita configuration blocks define tab with type
|
|
18
19
|
```ruby
|
19
20
|
class Post
|
20
21
|
include Lolita::Configuration
|
21
|
-
has_many :files, :
|
22
|
+
has_many :files, as: :fileable, class_name: 'Lolita::Upload::File'
|
22
23
|
|
23
24
|
lolita do
|
24
25
|
tab(:content)
|
25
26
|
tab(:files)
|
26
27
|
end
|
27
28
|
end
|
28
|
-
```
|
29
|
+
```
|
data/lolita-file-upload.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "lolita-file-upload"
|
6
|
-
s.version = "1.0.
|
6
|
+
s.version = "1.0.2"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["ITHouse (Latvia)", "Arturs Meisters", "Gatis Tomsons"]
|
9
9
|
s.description = "File upload gem for Lolita with with fulll integration - models, controller, views"
|
@@ -14,9 +14,9 @@ Gem::Specification.new do |s|
|
|
14
14
|
"README.md"
|
15
15
|
]
|
16
16
|
s.licenses = ["MIT"]
|
17
|
-
s.add_runtime_dependency(%q<lolita>, ["
|
18
|
-
s.add_runtime_dependency(%q<carrierwave>, ["~> 0.6
|
19
|
-
s.add_runtime_dependency(%q<mini_magick>, ["~> 3.6
|
17
|
+
s.add_runtime_dependency(%q<lolita>, [">= 3.2"])
|
18
|
+
s.add_runtime_dependency(%q<carrierwave>, ["~> 0.6"])
|
19
|
+
s.add_runtime_dependency(%q<mini_magick>, ["~> 3.6"])
|
20
20
|
s.files = `git ls-files`.split("\n")
|
21
21
|
s.test_files = `git ls-files -- {test_orm,spec}/*`.split("\n")
|
22
22
|
s.require_paths = ["lib"]
|
data/spec/spec_helper.rb
CHANGED
@@ -3,7 +3,7 @@ require "rails"
|
|
3
3
|
require "lolita"
|
4
4
|
|
5
5
|
unless ENV['CI']
|
6
|
-
require 'byebug'
|
6
|
+
require 'pry-byebug'
|
7
7
|
end
|
8
8
|
|
9
9
|
require File.expand_path('test_orm/support')
|
@@ -21,4 +21,4 @@ require File.expand_path("test_orm/#{current_orm}")
|
|
21
21
|
|
22
22
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
23
23
|
|
24
|
-
Support.load_rails_application
|
24
|
+
Support.load_rails_application
|
@@ -1,8 +1,7 @@
|
|
1
1
|
module Test
|
2
2
|
class Application < Rails::Application
|
3
|
-
config.root=File.expand_path("#{File.dirname(__FILE__)}/..")
|
4
|
-
config.logger=Logger.new(File.join(config.root,
|
5
|
-
config.active_support.deprecation
|
6
|
-
#config.autoload_paths=File.expand_path("../#{File.dirname(__FILE__)}")
|
3
|
+
config.root = File.expand_path("#{File.dirname(__FILE__)}/..")
|
4
|
+
config.logger = Logger.new(File.join(config.root,'../', 'log', 'development.log'))
|
5
|
+
config.active_support.deprecation = :log
|
7
6
|
end
|
8
|
-
end
|
7
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolita-file-upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ITHouse (Latvia)
|
@@ -10,20 +10,20 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: lolita
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '3.2'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - "
|
26
|
+
- - ">="
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '3.2'
|
29
29
|
- !ruby/object:Gem::Dependency
|
@@ -32,28 +32,28 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.6
|
35
|
+
version: '0.6'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.6
|
42
|
+
version: '0.6'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: mini_magick
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 3.6
|
49
|
+
version: '3.6'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 3.6
|
56
|
+
version: '3.6'
|
57
57
|
description: File upload gem for Lolita with with fulll integration - models, controller,
|
58
58
|
views
|
59
59
|
email: support@ithouse.lv
|
@@ -151,7 +151,6 @@ files:
|
|
151
151
|
- lib/lolita-file-upload/rails.rb
|
152
152
|
- lib/lolita-file-upload/rails/file_upload_routes.rb
|
153
153
|
- lib/support/bytes.rb
|
154
|
-
- log/development.log
|
155
154
|
- lolita-file-upload.gemspec
|
156
155
|
- spec/configuration/tab/files_spec.rb
|
157
156
|
- spec/lolita/support/bytes_spec.rb
|
@@ -173,7 +172,6 @@ files:
|
|
173
172
|
- test_orm/rails/config/application.rb
|
174
173
|
- test_orm/rails/config/enviroment.rb
|
175
174
|
- test_orm/rails/config/routes.rb
|
176
|
-
- test_orm/rails/log/development.log
|
177
175
|
- test_orm/support.rb
|
178
176
|
- test_orm/uploaders/list_image_uploader.rb
|
179
177
|
- test_orm/uploaders/main_image_uploader.rb
|
@@ -221,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
219
|
version: '0'
|
222
220
|
requirements: []
|
223
221
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.2.
|
222
|
+
rubygems_version: 2.2.0
|
225
223
|
signing_key:
|
226
224
|
specification_version: 4
|
227
225
|
summary: File upload gem for Lolita CMS
|
@@ -246,7 +244,7 @@ test_files:
|
|
246
244
|
- test_orm/rails/config/application.rb
|
247
245
|
- test_orm/rails/config/enviroment.rb
|
248
246
|
- test_orm/rails/config/routes.rb
|
249
|
-
- test_orm/rails/log/development.log
|
250
247
|
- test_orm/support.rb
|
251
248
|
- test_orm/uploaders/list_image_uploader.rb
|
252
249
|
- test_orm/uploaders/main_image_uploader.rb
|
250
|
+
has_rdoc:
|
data/log/development.log
DELETED
File without changes
|
@@ -1,12 +0,0 @@
|
|
1
|
-
DEPRECATION WARNING: human_name has been deprecated, please use model_name.human instead. (called from block in <top (required)> at /home/kungs/a_work/ruby_docs/lolita-file-upload/test_orm/rails/config/routes.rb:2)
|
2
|
-
DEPRECATION WARNING: human_name has been deprecated, please use model_name.human instead. (called from block in <top (required)> at /home/kungs/a_work/ruby_docs/lolita-file-upload/test_orm/rails/config/routes.rb:2)
|
3
|
-
DEPRECATION WARNING: human_name has been deprecated, please use model_name.human instead. (called from block in <top (required)> at /home/kungs/a_work/ruby_docs/lolita-file-upload/test_orm/rails/config/routes.rb:2)
|
4
|
-
DEPRECATION WARNING: human_name has been deprecated, please use model_name.human instead. (called from block in <top (required)> at /home/kungs/a_work/ruby_docs/lolita-file-upload/test_orm/rails/config/routes.rb:2)
|
5
|
-
DEPRECATION WARNING: human_name has been deprecated, please use model_name.human instead. (called from block in <top (required)> at /home/kungs/a_work/ruby_docs/lolita-file-upload/test_orm/rails/config/routes.rb:2)
|
6
|
-
DEPRECATION WARNING: human_name has been deprecated, please use model_name.human instead. (called from block in <top (required)> at /home/kungs/a_work/ruby_docs/lolita-file-upload/test_orm/rails/config/routes.rb:2)
|
7
|
-
DEPRECATION WARNING: human_name has been deprecated, please use model_name.human instead. (called from block in <top (required)> at /home/kungs/a_work/ruby_docs/lolita-file-upload/test_orm/rails/config/routes.rb:2)
|
8
|
-
DEPRECATION WARNING: Factory.create is deprecated; use FactoryGirl.create instead. (called from block (3 levels) in <top (required)> at /home/gatis/Code/ruby/lolita-file-upload/spec/models/file_spec.rb:24)
|
9
|
-
DEPRECATION WARNING: Factory.create is deprecated; use FactoryGirl.create instead. (called from block (3 levels) in <top (required)> at /home/gatis/Code/ruby/lolita-file-upload/spec/models/file_spec.rb:24)
|
10
|
-
DEPRECATION WARNING: Factory.create is deprecated; use FactoryGirl.create instead. (called from block (3 levels) in <top (required)> at /home/gatis/Code/ruby/lolita-file-upload/spec/models/file_spec.rb:24)
|
11
|
-
DEPRECATION WARNING: Factory.create is deprecated; use FactoryGirl.create instead. (called from block (3 levels) in <top (required)> at /home/gatis/Code/ruby/lolita-file-upload/spec/models/file_spec.rb:24)
|
12
|
-
DEPRECATION WARNING: Factory.create is deprecated; use FactoryGirl.create instead. (called from block (3 levels) in <top (required)> at /home/gatis/Code/ruby/lolita-file-upload/spec/models/file_spec.rb:24)
|