bushido 0.0.27 → 0.0.28

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.
@@ -18,15 +18,12 @@ module Bushido
18
18
  def call(env)
19
19
  status, headers, response = @app.call(env)
20
20
 
21
- puts 'lol middle ware'
22
- puts @bushido_app_name.inspect
23
-
24
21
  unless @bushido_app_name.empty?
25
22
  content = ""
26
23
  response.each { |part| content += part }
27
24
 
28
25
  # "claiming" bar + stats ?
29
- content.gsub!(/<\/head>/i, <<-STR
26
+ content.gsub!(/<\/body>/i, <<-STR
30
27
  <script type="text/javascript">
31
28
  var _bushido_app = '#{@bushido_app_name}';
32
29
  var _bushido_claimed = #{@bushido_claimed.to_s};
@@ -37,7 +34,7 @@ module Bushido
37
34
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(bushido, s);
38
35
  })();
39
36
  </script>
40
- </head>
37
+ </body>
41
38
  STR
42
39
  )
43
40
 
@@ -1,4 +1,4 @@
1
1
  module Bushido
2
2
  # Current version of the Bushido gem
3
- VERSION = "0.0.27"
3
+ VERSION = "0.0.28"
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bushido
3
3
  version: !ruby/object:Gem::Version
4
- hash: 41
4
+ hash: 39
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 27
10
- version: 0.0.27
9
+ - 28
10
+ version: 0.0.28
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Grove
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-06-20 00:00:00 -07:00
19
+ date: 2011-06-21 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency