formtastic-epiceditor 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1ef60e25c598f8d3152927c06a6c1e553923fb44
4
+ data.tar.gz: c081771a690b2e32b25fd07fd05483ec1a8c6efd
5
+ SHA512:
6
+ metadata.gz: be59711f039f13471d81dce5bec5a05384875312fb1cc7a96aefe10ba451352c74b3caa40fc9394d84b8d48e536f11b8b9cbebb67ed93a311cc710e2d48674ce
7
+ data.tar.gz: 5ba99d297450f80544774ce6bc3400a9cbf5069f321ec872b0b35ee073b49345796eb525577927f3070f2d0329a6e806c934a18dd141ff148025ff6ca6493a0c
@@ -15,6 +15,6 @@ Gem::Specification.new do |s|
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = Dir["test/**/*"]
17
17
 
18
- s.add_dependency "rails", "~> 3.2.9"
18
+ s.add_dependency "rails", "~> 4.0.0"
19
19
 
20
20
  end
@@ -6,5 +6,9 @@ module FormtasticEpiceditor
6
6
  class Engine < ::Rails::Engine
7
7
  require "formtastic"
8
8
  require "formtastic-epiceditor/inputs/epic_editor_input.rb"
9
+
10
+ initializer "formtastic-epiceditor.assets.precompile" do |app|
11
+ app.config.assets.precompile += %w(epiceditor/themes/**/*)
12
+ end
9
13
  end
10
14
  end
@@ -17,6 +17,13 @@ class EpicEditorInput < Formtastic::Inputs::TextInput
17
17
  end
18
18
 
19
19
  private
20
+
21
+ def assets_base_path
22
+ example_path = '/themes/base/epiceditor.css'
23
+ precompiled_example_path = ActionController::Base.helpers.asset_path('epiceditor' + example_path)
24
+ File.dirname(precompiled_example_path).gsub(File.dirname(example_path), '')
25
+ end
26
+
20
27
  def buildInitScript(id)
21
28
  randNum = rand(1..100000)
22
29
  return """
@@ -26,7 +33,7 @@ class EpicEditorInput < Formtastic::Inputs::TextInput
26
33
  opts = {
27
34
  container: '#{id}-epiceditor',
28
35
  clientSideStorage: false,
29
- basePath: '#{ActionController::Base.helpers.asset_path('epiceditor')}',
36
+ basePath: '#{assets_base_path}',
30
37
  theme: {
31
38
  base:'/themes/base/epiceditor.css',
32
39
  preview:'/themes/preview/preview-dark.css',
@@ -1,3 +1,3 @@
1
1
  module FormtasticEpiceditor
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,32 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formtastic-epiceditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
5
- prerelease:
4
+ version: 0.0.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ad Taylor
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-22 00:00:00.000000000 Z
11
+ date: 2013-09-30 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 3.2.9
19
+ version: 4.0.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 3.2.9
26
+ version: 4.0.0
30
27
  description:
31
28
  email:
32
29
  - ad@metaunion.co.uk
@@ -41,6 +38,7 @@ files:
41
38
  - README.md
42
39
  - Rakefile
43
40
  - formtastic-epiceditor-0.0.4.gem
41
+ - formtastic-epiceditor-0.0.5.gem
44
42
  - formtastic-epiceditor.gemspec
45
43
  - lib/formtastic-epiceditor.rb
46
44
  - lib/formtastic-epiceditor/inputs/epic_editor_input.rb
@@ -94,27 +92,26 @@ files:
94
92
  - vendor/assets/stylesheets/epiceditor/themes/preview/preview-dark.css
95
93
  homepage: https://github.com/MetaUnion/formtastic-epiceditor
96
94
  licenses: []
95
+ metadata: {}
97
96
  post_install_message:
98
97
  rdoc_options: []
99
98
  require_paths:
100
99
  - lib
101
100
  required_ruby_version: !ruby/object:Gem::Requirement
102
- none: false
103
101
  requirements:
104
- - - ! '>='
102
+ - - '>='
105
103
  - !ruby/object:Gem::Version
106
104
  version: '0'
107
105
  required_rubygems_version: !ruby/object:Gem::Requirement
108
- none: false
109
106
  requirements:
110
- - - ! '>='
107
+ - - '>='
111
108
  - !ruby/object:Gem::Version
112
109
  version: '0'
113
110
  requirements: []
114
111
  rubyforge_project:
115
- rubygems_version: 1.8.24
112
+ rubygems_version: 2.0.2
116
113
  signing_key:
117
- specification_version: 3
114
+ specification_version: 4
118
115
  summary: Adds Epic Editor as a content type to formtastic.
119
116
  test_files:
120
117
  - test/dummy/app/assets/javascripts/application.js
@@ -147,3 +144,4 @@ test_files:
147
144
  - test/dummy/script/rails
148
145
  - test/formtastic-epiceditor_test.rb
149
146
  - test/test_helper.rb
147
+ has_rdoc: