dinsley-markaby 0.0.5 → 0.0.6

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/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :minor: 0
3
- :patch: 5
4
2
  :major: 0
3
+ :minor: 0
4
+ :patch: 6
data/lib/markaby.rb CHANGED
@@ -36,4 +36,12 @@ module Kernel
36
36
  def mab(*args, &block)
37
37
  Markaby::Builder.new(*args, &block).to_s
38
38
  end
39
+ end
40
+
41
+ if defined?(Rails) and defined?(ActionController) and defined?(ActionView)
42
+ require 'markaby/rails/template_handler'
43
+ require 'markaby/rails/action_controller_helpers'
44
+
45
+ ActionView::Template.register_template_handler 'mab', Markaby::Rails::TemplateHandler
46
+ ActionController::Base.send :include, Markaby::Rails::ActionControllerHelpers
39
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dinsley-markaby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Fletcher
@@ -16,7 +16,7 @@ default_executable:
16
16
  dependencies: []
17
17
 
18
18
  description: Markaby is a very short bit of code for writing HTML pages in pure Ruby.
19
- email: dinsley@gmail.com
19
+ email: "dinsley@gmail.com "
20
20
  executables: []
21
21
 
22
22
  extensions: []
@@ -51,7 +51,6 @@ files:
51
51
  - test/app_root/config/environments/sqlite3.rb
52
52
  - test/app_root/config/routes.rb
53
53
  - test/app_root/lib/console_with_fixtures.rb
54
- - test/app_root/log/in_memory.log
55
54
  - test/app_root/script/console
56
55
  - test/markaby_controller_test.rb
57
56
  - test/markaby_test.rb
@@ -82,7 +81,7 @@ requirements: []
82
81
  rubyforge_project:
83
82
  rubygems_version: 1.2.0
84
83
  signing_key:
85
- specification_version: 2
84
+ specification_version: 3
86
85
  summary: Markaby is a very short bit of code for writing HTML pages in pure Ruby.
87
86
  test_files:
88
87
  - test/app_root/app/controllers/application_controller.rb