imperavi-rails 0.0.5.beta → 0.0.6.beta

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -9,7 +9,7 @@ I created this mountable engine with Imperavi so now you can easily integrate th
9
9
  Put this line into your Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'imperavi-rails', '0.0.5.beta'
12
+ gem 'imperavi-rails', '0.0.6.beta'
13
13
  ```
14
14
 
15
15
  Then mount the engine in routes.rb:
@@ -18,6 +18,12 @@ Then mount the engine in routes.rb:
18
18
  mount ImperaviRails::Engine => "/imperavi"
19
19
  ```
20
20
 
21
+ add this line to `config/environments/production.rb`
22
+
23
+ ```ruby
24
+ config.assets.precompile += ['imperavi-rails/imperavi/redactor.css', 'imperavi-rails/imperavi.js']
25
+ ```
26
+
21
27
  And you're done!
22
28
 
23
29
  ## Usage
@@ -1,4 +1,4 @@
1
- //= require imperavi/linkify
2
- //= require imperavi/textselect
3
- //= require imperavi/dd_upload
4
- //= require imperavi/redactor
1
+ //= require ./imperavi/linkify
2
+ //= require ./imperavi/textselect
3
+ //= require ./imperavi/dd_upload
4
+ //= require ./imperavi/redactor
@@ -2,20 +2,12 @@ module ImperaviRails
2
2
  module ImperaviHelper
3
3
  include ActionView::Helpers::AssetTagHelper
4
4
 
5
- def imperavi_stylesheet_path(source)
6
- stylesheet_path("imperavi-rails/imperavi/#{source}")
7
- end
8
-
9
- def imperavi_javascript_path(source)
10
- javascript_path("imperavi-rails/#{source}")
11
- end
12
-
13
5
  def include_imperavi_stylesheet
14
- stylesheet_link_tag imperavi_stylesheet_path('redactor')
6
+ stylesheet_link_tag "imperavi-rails/imperavi/redactor"
15
7
  end
16
8
 
17
9
  def include_imperavi_javascript
18
- javascript_include_tag imperavi_javascript_path('imperavi')
10
+ javascript_include_tag "imperavi-rails/imperavi"
19
11
  end
20
12
 
21
13
  def imperavi(element, options = {}, wrap = true)
@@ -1,3 +1,3 @@
1
1
  module ImperaviRails
2
- VERSION = "0.0.5.beta"
2
+ VERSION = "0.0.6.beta"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imperavi-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5.beta
4
+ version: 0.0.6.beta
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &20441420 !ruby/object:Gem::Requirement
16
+ requirement: &11757480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *20441420
24
+ version_requirements: *11757480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &20440780 !ruby/object:Gem::Requirement
27
+ requirement: &11756580 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *20440780
35
+ version_requirements: *11756580
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec-rails
38
- requirement: &20438720 !ruby/object:Gem::Requirement
38
+ requirement: &11754480 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *20438720
46
+ version_requirements: *11754480
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: shoulda-matchers
49
- requirement: &20437600 !ruby/object:Gem::Requirement
49
+ requirement: &11753480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *20437600
57
+ version_requirements: *11753480
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: capybara
60
- requirement: &20436680 !ruby/object:Gem::Requirement
60
+ requirement: &11752200 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *20436680
68
+ version_requirements: *11752200
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: factory_girl_rails
71
- requirement: &20435400 !ruby/object:Gem::Requirement
71
+ requirement: &11751520 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *20435400
79
+ version_requirements: *11751520
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: pry
82
- requirement: &20524840 !ruby/object:Gem::Requirement
82
+ requirement: &11842440 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *20524840
90
+ version_requirements: *11842440
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: sqlite3
93
- requirement: &20523560 !ruby/object:Gem::Requirement
93
+ requirement: &11841160 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *20523560
101
+ version_requirements: *11841160
102
102
  description: Imparavi wysiwyg editor for Rails 3.1+
103
103
  email:
104
104
  - demerest@gmail.com
@@ -141,10 +141,10 @@ files:
141
141
  - app/assets/images/imperavi-rails/imperavi/fileicons/mov.png
142
142
  - app/assets/images/imperavi-rails/imperavi/fileicons/other.png
143
143
  - app/assets/images/imperavi-rails/imperavi/hover.png
144
+ - app/assets/stylesheets/imperavi-rails/application.css.scss
144
145
  - app/assets/stylesheets/imperavi-rails/imperavi/wym.css.scss
145
146
  - app/assets/stylesheets/imperavi-rails/imperavi/redactor.css.scss
146
147
  - app/assets/stylesheets/imperavi-rails/imperavi/imperavi-base.css.scss
147
- - app/assets/stylesheets/imperavi-rails/application.css
148
148
  - app/assets/javascripts/imperavi-rails/imperavi.js
149
149
  - app/assets/javascripts/imperavi-rails/imperavi/dd_upload.js
150
150
  - app/assets/javascripts/imperavi-rails/imperavi/redactor.js