lolita-file-upload 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +22 -14
- data/VERSION +1 -1
- data/lib/lolita-file-upload.rb +2 -2
- data/lolita-file-upload.gemspec +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -1,19 +1,27 @@
|
|
1
|
-
=
|
1
|
+
= Lolita file upload
|
2
2
|
|
3
|
-
|
3
|
+
File upload gem for Lolita.
|
4
4
|
|
5
|
-
==
|
6
|
-
|
7
|
-
*
|
8
|
-
|
9
|
-
*
|
10
|
-
*
|
11
|
-
* Commit and push until you are happy with your contribution
|
12
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
5
|
+
==Instalation
|
6
|
+
* gem install lolita-file-upload
|
7
|
+
* include in gemfile like this:
|
8
|
+
gem "lolita-file-upload", ">=0.1.0"
|
9
|
+
* cd your_project_path
|
10
|
+
* rails g lolita_file_upload:install
|
14
11
|
|
15
|
-
|
12
|
+
Install will copy all assets and migrations to your project.
|
13
|
+
If you update to newest version of gem, than run <i>rails g lolita_file_upload:assets</i>
|
16
14
|
|
17
|
-
|
18
|
-
|
15
|
+
==Configuration
|
16
|
+
|
17
|
+
Gem will not used until any of lolita configuration blocks define tab with type :files. Like this
|
18
|
+
class Post
|
19
|
+
include Lolita::Configuration
|
20
|
+
has_many :files, :as=>:fileable, :class_name=>"Lolita::Upload::File"
|
21
|
+
|
22
|
+
lolita do
|
23
|
+
tab(:content)
|
24
|
+
tab(:files)
|
25
|
+
end
|
26
|
+
end
|
19
27
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/lolita-file-upload.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
#TODO add exception if lolita not found, show exception and msg that user should install this gem
|
2
|
+
# if files tab is defined, but there no tab for that, maybe check that through gem.
|
3
3
|
$:<<File.dirname(__FILE__) unless $:.include?(File.dirname(__FILE__))
|
4
4
|
|
5
5
|
I18n.load_path += Dir[File.expand_path("config/locales")+"/**/*.yml"]
|
data/lolita-file-upload.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{lolita-file-upload}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["ITHouse", "Arturs Meisters"]
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: lolita-file-upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- ITHouse
|
@@ -169,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
169
169
|
requirements:
|
170
170
|
- - ">="
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
hash:
|
172
|
+
hash: 307725709
|
173
173
|
segments:
|
174
174
|
- 0
|
175
175
|
version: "0"
|