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 CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.1
2
+
3
+ * Ensure not to fail on test env
4
+
1
5
  == 0.1.0
2
6
 
3
7
  * Works with Rails 3.1.0.beta1
data/README.rdoc CHANGED
@@ -1,19 +1,20 @@
1
1
  = hocus_pocus
2
2
 
3
- Description goes here.
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
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
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) 2010 Akira Matsuda. See LICENSE.txt for
19
+ Copyright (c) 2011 Akira Matsuda. See LICENSE.txt for
18
20
  further details.
19
-
@@ -3,4 +3,4 @@ HocusPocus.configure do |config|
3
3
  # config.enable_editor = true
4
4
  # config.enable_scenario_recorder = true
5
5
  # config.enable_command_line = false
6
- end if defined? HocusPocus
6
+ end if defined?(HocusPocus) && HocusPocus.respond_to?(:configure)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module HocusPocus
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-06 00:00:00 Z
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.0
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