jintastic 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -1
- data/VERSION.yml +2 -2
- data/generators/jintastic/USAGE +8 -0
- data/generators/jintastic/jintastic_generator.rb +15 -0
- data/{assets/app/views/jintastic → generators/jintastic/templates}/_in_place_editor.html.erb +0 -0
- data/{assets/public/javascripts → generators/jintastic/templates}/jintastic.js +1 -1
- data/jintastic.gemspec +6 -4
- data/lib/jintastic.rb +0 -5
- metadata +6 -4
data/README.md
CHANGED
@@ -24,10 +24,14 @@ Add Jintastic as a dependency in your environment.rb file:
|
|
24
24
|
**Plugin**
|
25
25
|
|
26
26
|
script/plugin install git://github.com/rubymood/jintastic.git
|
27
|
+
|
28
|
+
**After Jintastic gem or plugin installed generate jintastic assets**
|
29
|
+
|
30
|
+
script/generate jintastic
|
27
31
|
|
28
32
|
## Usage
|
29
33
|
|
30
|
-
Having downloaded jQuery(>=1.3.2) include
|
34
|
+
Having downloaded jQuery(>=1.3.2) include jintastic in your template:
|
31
35
|
|
32
36
|
<%= javascripts_include_tag 'jquery', 'jintastic' %>
|
33
37
|
|
data/VERSION.yml
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
class JintasticGenerator < Rails::Generator::Base
|
2
|
+
def manifest
|
3
|
+
record do |m|
|
4
|
+
m.directory File.join(%w[app views jintastic])
|
5
|
+
m.file "_in_place_editor.html.erb", File.join(%w[app views jintastic _in_place_editor.html.erb])
|
6
|
+
m.file "jintastic.js", File.join(%w[public javascripts jintastic.js])
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
protected
|
11
|
+
|
12
|
+
def banner
|
13
|
+
%{Usage: #{$0} #{spec.name}\nCopies jintastic.js to public/javascripts/ and a partial to app/views/jintastic/_in_place_editor.html.erb}
|
14
|
+
end
|
15
|
+
end
|
data/{assets/app/views/jintastic → generators/jintastic/templates}/_in_place_editor.html.erb
RENAMED
File without changes
|
@@ -12,7 +12,7 @@
|
|
12
12
|
$('.in_place_attribute').live('click', function() {
|
13
13
|
$.inPlaceEditor.attribute = $(this)
|
14
14
|
$.inPlaceEditor.form = $.inPlaceEditor.attribute.next()
|
15
|
-
$.inPlaceEditor.toggle()
|
15
|
+
$.inPlaceEditor.toggle()
|
16
16
|
})
|
17
17
|
|
18
18
|
$('.in_place_save').live('click', function() {
|
data/jintastic.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{jintastic}
|
8
|
-
s.version = "1.0
|
8
|
+
s.version = "1.1.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nandor Komzak"]
|
12
|
-
s.date = %q{2010-02-
|
12
|
+
s.date = %q{2010-02-19}
|
13
13
|
s.description = %q{jQuery based in-place editor generated by Formtastic}
|
14
14
|
s.email = %q{nandor.komzak@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -22,9 +22,11 @@ Gem::Specification.new do |s|
|
|
22
22
|
"README.md",
|
23
23
|
"Rakefile",
|
24
24
|
"VERSION.yml",
|
25
|
-
"assets/app/views/jintastic/_in_place_editor.html.erb",
|
26
|
-
"assets/public/javascripts/jintastic.js",
|
27
25
|
"config/locale/en.yml",
|
26
|
+
"generators/jintastic/USAGE",
|
27
|
+
"generators/jintastic/jintastic_generator.rb",
|
28
|
+
"generators/jintastic/templates/_in_place_editor.html.erb",
|
29
|
+
"generators/jintastic/templates/jintastic.js",
|
28
30
|
"init.rb",
|
29
31
|
"jintastic.gemspec",
|
30
32
|
"lib/jintastic.rb",
|
data/lib/jintastic.rb
CHANGED
@@ -54,8 +54,3 @@ class ActionView::Base
|
|
54
54
|
:form_partial=>form_partial}
|
55
55
|
end
|
56
56
|
end
|
57
|
-
|
58
|
-
# hack for assets because gems hasn't got rake tasks
|
59
|
-
#
|
60
|
-
# copy assets at every server start because after update maybe they have to update too
|
61
|
-
FileUtils.cp_r File.join(File.dirname(__FILE__), *%w{.. assets .}), Rails.root
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jintastic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nandor Komzak
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-19 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -37,9 +37,11 @@ files:
|
|
37
37
|
- README.md
|
38
38
|
- Rakefile
|
39
39
|
- VERSION.yml
|
40
|
-
- assets/app/views/jintastic/_in_place_editor.html.erb
|
41
|
-
- assets/public/javascripts/jintastic.js
|
42
40
|
- config/locale/en.yml
|
41
|
+
- generators/jintastic/USAGE
|
42
|
+
- generators/jintastic/jintastic_generator.rb
|
43
|
+
- generators/jintastic/templates/_in_place_editor.html.erb
|
44
|
+
- generators/jintastic/templates/jintastic.js
|
43
45
|
- init.rb
|
44
46
|
- jintastic.gemspec
|
45
47
|
- lib/jintastic.rb
|