hocus_pocus 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README.rdoc +12 -11
- data/lib/generators/hocus_pocus/templates/hocus_pocus_config.rb +1 -1
- data/lib/hocus_pocus/filter.rb +0 -7
- data/lib/hocus_pocus/version.rb +1 -1
- metadata +5 -5
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
= hocus_pocus
|
2
2
|
|
3
|
-
|
3
|
+
See this blog post for the details
|
4
|
+
http://blog.dio.jp/2010/12/21/hocus_pocus
|
5
|
+
|
6
|
+
|
7
|
+
== Questions, Feedback
|
8
|
+
|
9
|
+
Feel free to message me on Github (amatsuda) or Twitter (@a_matsuda) ☇3☇3☇3
|
10
|
+
|
4
11
|
|
5
12
|
== Contributing to hocus_pocus
|
6
|
-
|
7
|
-
*
|
8
|
-
|
9
|
-
* Fork the project
|
10
|
-
* Start a feature/bugfix branch
|
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.
|
13
|
+
|
14
|
+
* Fork, fix, then send me a pull request.
|
15
|
+
|
14
16
|
|
15
17
|
== Copyright
|
16
18
|
|
17
|
-
Copyright (c)
|
19
|
+
Copyright (c) 2011 Akira Matsuda. See LICENSE.txt for
|
18
20
|
further details.
|
19
|
-
|
data/lib/hocus_pocus/filter.rb
CHANGED
@@ -10,8 +10,6 @@ module HocusPocus
|
|
10
10
|
def self.after(controller)
|
11
11
|
unless controller.request.format.js?
|
12
12
|
filter = self.new(controller)
|
13
|
-
#FIXME avoid loading jquery twice
|
14
|
-
# filter.add_jquery
|
15
13
|
filter.add_steak_recorder if HocusPocus.config.enable_scenario_recorder
|
16
14
|
# filter.add_js
|
17
15
|
unless controller.is_a?(HocusPocus::EditorController) || controller.is_a?(HocusPocus::GeneratorController)
|
@@ -28,11 +26,6 @@ module HocusPocus
|
|
28
26
|
@body = controller.response.body
|
29
27
|
end
|
30
28
|
|
31
|
-
def add_jquery
|
32
|
-
# insert_text :before, /<\/head>/i, '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script><script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js"></script><link rel="stylesheet" href="/hocus_pocus/stylesheets/jquery.ui.dialog.css" type="text/css">'
|
33
|
-
insert_text :before, /<\/head>/i, '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>'
|
34
|
-
end
|
35
|
-
|
36
29
|
def add_steak_recorder
|
37
30
|
#TODO exclude EDITOR and GENERATOR
|
38
31
|
insert_text :before, /<\/body>/i, <<-TEPPAN
|
data/lib/hocus_pocus/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hocus_pocus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Akira Matsuda
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: nested_scaffold
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements: []
|
108
108
|
|
109
109
|
rubyforge_project: hocus_pocus
|
110
|
-
rubygems_version: 1.8.
|
110
|
+
rubygems_version: 1.8.1
|
111
111
|
signing_key:
|
112
112
|
specification_version: 3
|
113
113
|
summary: An Isolated Engine that casts a spell on your Rails 3.1 app
|