catchex 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/catchex.rb +4 -4
- metadata +3 -3
data/Rakefile
CHANGED
data/lib/catchex.rb
CHANGED
|
@@ -62,7 +62,7 @@ module CatchEx
|
|
|
62
62
|
end
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
module
|
|
65
|
+
module ActionControllerExt
|
|
66
66
|
def self.included(base) #:nodoc:
|
|
67
67
|
base.send :include, InstanceMethods
|
|
68
68
|
end
|
|
@@ -80,12 +80,12 @@ module CatchEx
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
module
|
|
83
|
+
module ActionViewExt
|
|
84
84
|
def catchex_js
|
|
85
85
|
javascript_include_tag URI.encode("http://www.catchex.com/apps/ce?porject_key=#{Config.prject_key}&scenario=#{Config.scenario}")
|
|
86
86
|
end
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
ActionController::Base.send :include, CatchEx::
|
|
91
|
-
ActionView::Base.send :include, CatchEx::
|
|
90
|
+
ActionController::Base.send :include, CatchEx::ActionControllerExt if defined? ActionController::Base
|
|
91
|
+
ActionView::Base.send :include, CatchEx::ActionViewExt if defined? ActionView::Base
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: catchex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Braisdom
|