redditor 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a898a45dff55b68a00cbf7bdc623a09c2d30d4ec
4
- data.tar.gz: 0e44dca1197cae9e47efce1db64ee3ccd4fe522e
3
+ metadata.gz: 4fdc7efa994e55ae0f3ea39ff81eef77305697f7
4
+ data.tar.gz: b2761bb2dbf961b269f967953e46e4ed650cd720
5
5
  SHA512:
6
- metadata.gz: 8893850c838ec8f61e41a08b2c9dfca45fff6cc3ba3fe615c92d5da5f91b661ab7738703cf2a0b3efc7fc23008fb935acb75525b31eecc3d942cece6701a69bc
7
- data.tar.gz: e8f741718461b281c7531087df09402de04a7a8ff22007fc1cd24e860f0150a3a1a41c50af453a15934d5fcceae35bd73aafa72fc74f816382da137149942c00
6
+ metadata.gz: 37acf288630e5e812f1362951fac84930e9ca6ba4211caaa6b0161d851945d7943b7e0ca27e386b7ddd753d7557bfb8f6b6aa4ecc986b4c36a91c3a42bff232e
7
+ data.tar.gz: 57ed32e80f32c56440371b11efd3a0faa884331571e5bb4da1a09e08cbb94eb972a397e3c5d7215916e1719a3ad71e8e7c2d18806b439ab7519b1691c36ba86b
data/README.md CHANGED
@@ -39,10 +39,22 @@ In admin new/edit view if that model add
39
39
 
40
40
  %div= render "redditor/admin/pages/page", {f: f}
41
41
 
42
+ Add `multipart: true` to form of object with redditor
43
+
44
+ html: {multipart: true}
45
+
42
46
  Add engine to `routes.rb`
43
47
 
44
48
  mount Redditor::Engine => "/redditor"
45
49
 
46
50
  Add this line to edit action in controller (change @article to you model)
47
51
 
48
- @article.build_page.save unless @article.page
52
+ @article.build_page.save unless @article.page
53
+
54
+ Add redditor js to your js manifest file for admin (admin.js)
55
+
56
+ //= require redditor/application
57
+
58
+ Add redditor styles to css manifest file for admin (admin.css)
59
+
60
+ //= require redditor/application
@@ -1,3 +1,3 @@
1
1
  module Redditor
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/lib/redditor.rb CHANGED
@@ -1,9 +1,17 @@
1
1
  require "redditor/engine"
2
-
3
2
  require 'redditor/has_redditor'
4
-
5
3
  require "generators/redditor/views/views_generator"
6
4
  require 'rails/generators/active_record'
5
+ require 'carrierwave/orm/activerecord'
6
+
7
+ require_relative '../app/uploaders/redditor_uploader'
8
+ require_relative '../app/models/redditor/page'
9
+ require_relative '../app/models/redditor/content_block'
10
+ require_relative '../app/uploaders/redditor_uploader'
11
+ require_relative '../app/models/redditor/image'
12
+ require_relative '../app/models/redditor/slider_block'
13
+ require_relative '../app/models/redditor/text_block'
14
+ require_relative '../app/models/redditor/video_block'
7
15
 
8
16
  module Redditor
9
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Bovykin
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-07 00:00:00.000000000 Z
12
+ date: 2013-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails