mab 0.0.2 → 0.0.3

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.
Files changed (113) hide show
  1. checksums.yaml +15 -0
  2. data/Gemfile +5 -1
  3. data/Gemfile.lock +3 -3
  4. data/Rakefile +10 -2
  5. data/lib/mab.rb +1 -0
  6. data/lib/mab/indentation.rb +2 -2
  7. data/lib/mab/mixin.rb +57 -57
  8. data/lib/mab/rails.rb +20 -0
  9. data/lib/mab/version.rb +1 -1
  10. data/test/rails/Rakefile +7 -0
  11. data/test/rails/app/assets/images/rails.png +0 -0
  12. data/test/rails/app/assets/javascripts/application.js +15 -0
  13. data/test/rails/app/assets/stylesheets/application.css +13 -0
  14. data/test/rails/app/controllers/application_controller.rb +17 -0
  15. data/test/rails/app/helpers/application_helper.rb +2 -0
  16. data/test/rails/app/views/application/content_for.html.mab +6 -0
  17. data/test/rails/app/views/application/normal.html.mab +2 -0
  18. data/test/rails/app/views/application/variables.html.mab +2 -0
  19. data/test/rails/app/views/layouts/application.html.mab +15 -0
  20. data/test/rails/config.ru +4 -0
  21. data/test/rails/config/application.rb +54 -0
  22. data/test/rails/config/boot.rb +6 -0
  23. data/test/rails/config/environment.rb +5 -0
  24. data/test/rails/config/environments/development.rb +27 -0
  25. data/test/rails/config/environments/production.rb +67 -0
  26. data/test/rails/config/environments/test.rb +29 -0
  27. data/test/rails/config/initializers/backtrace_silencers.rb +7 -0
  28. data/test/rails/config/initializers/inflections.rb +15 -0
  29. data/test/rails/config/initializers/mime_types.rb +5 -0
  30. data/test/rails/config/initializers/secret_token.rb +7 -0
  31. data/test/rails/config/initializers/session_store.rb +8 -0
  32. data/test/rails/config/initializers/wrap_parameters.rb +14 -0
  33. data/test/rails/config/locales/en.yml +5 -0
  34. data/test/rails/config/routes.rb +3 -0
  35. data/test/rails/script/rails +6 -0
  36. data/test/rails/test/helper.rb +7 -0
  37. data/test/rails/test/test_mab.rb +40 -0
  38. data/test/test_mab_mixin.rb +10 -6
  39. metadata +46 -88
  40. data/bench.rb +0 -37
  41. data/mab-0.0.1.gem +0 -0
  42. data/markaby/CHANGELOG.rdoc +0 -106
  43. data/markaby/Markaby.gemspec +0 -109
  44. data/markaby/README.rdoc +0 -317
  45. data/markaby/Rakefile +0 -78
  46. data/markaby/VERSION +0 -1
  47. data/markaby/garlic.rb +0 -29
  48. data/markaby/init.rb +0 -6
  49. data/markaby/lib/markaby.rb +0 -30
  50. data/markaby/lib/markaby/builder.rb +0 -314
  51. data/markaby/lib/markaby/builder_tags.rb +0 -64
  52. data/markaby/lib/markaby/cssproxy.rb +0 -55
  53. data/markaby/lib/markaby/kernel_method.rb +0 -7
  54. data/markaby/lib/markaby/rails.rb +0 -75
  55. data/markaby/lib/markaby/rails/current.rb +0 -85
  56. data/markaby/lib/markaby/rails/deprecated.rb +0 -124
  57. data/markaby/lib/markaby/rails/rails_builder.rb +0 -91
  58. data/markaby/lib/markaby/sinatra.rb +0 -18
  59. data/markaby/lib/markaby/tags.rb +0 -200
  60. data/markaby/lib/markaby/tilt.rb +0 -8
  61. data/markaby/spec/markaby/builder_spec.rb +0 -118
  62. data/markaby/spec/markaby/css_proxy_test.rb +0 -47
  63. data/markaby/spec/markaby/fragment_test.rb +0 -10
  64. data/markaby/spec/markaby/markaby_other_static.mab +0 -1
  65. data/markaby/spec/markaby/markaby_spec.rb +0 -184
  66. data/markaby/spec/markaby/markaby_test.rb +0 -251
  67. data/markaby/spec/markaby/rails/spec_helper.rb +0 -29
  68. data/markaby/spec/markaby/rails/views/layouts/layout.mab +0 -11
  69. data/markaby/spec/markaby/rails/views/markaby/_a_partial.mab +0 -3
  70. data/markaby/spec/markaby/rails/views/markaby/_form_for_with_body_in_erb.erb +0 -1
  71. data/markaby/spec/markaby/rails/views/markaby/_partial_child_with_locals.mab +0 -1
  72. data/markaby/spec/markaby/rails/views/markaby/access_to_helpers.mab +0 -1
  73. data/markaby/spec/markaby/rails/views/markaby/broken.mab +0 -7
  74. data/markaby/spec/markaby/rails/views/markaby/commented_out_template.mab +0 -1
  75. data/markaby/spec/markaby/rails/views/markaby/correct_template_values.mab +0 -5
  76. data/markaby/spec/markaby/rails/views/markaby/double_output.mab +0 -8
  77. data/markaby/spec/markaby/rails/views/markaby/form_for.mab +0 -2
  78. data/markaby/spec/markaby/rails/views/markaby/form_for_with_fields.mab +0 -3
  79. data/markaby/spec/markaby/rails/views/markaby/form_for_with_multiple_fields.mab +0 -4
  80. data/markaby/spec/markaby/rails/views/markaby/no_values_passed.mab +0 -3
  81. data/markaby/spec/markaby/rails/views/markaby/partial_parent.mab +0 -1
  82. data/markaby/spec/markaby/rails/views/markaby/partial_parent_with_locals.mab +0 -7
  83. data/markaby/spec/markaby/rails/views/markaby/render_erb_without_explicit_render_call.erb +0 -1
  84. data/markaby/spec/markaby/rails/views/markaby/render_explicit_but_empty_markaby_layout.mab +0 -0
  85. data/markaby/spec/markaby/rails/views/markaby/render_mab_without_explicit_render_call.mab +0 -3
  86. data/markaby/spec/markaby/rails/views/markaby/render_with_ivar.mab +0 -3
  87. data/markaby/spec/markaby/rails/views/markaby/renders_erb.rhtml +0 -1
  88. data/markaby/spec/markaby/rails/views/markaby/renders_form_for_with_erb_body.mab +0 -3
  89. data/markaby/spec/markaby/rails/views/markaby/routes.mab +0 -1
  90. data/markaby/spec/markaby/rails/views/markaby/yielding.mab +0 -3
  91. data/markaby/spec/markaby/rails/views/markaby/yielding_content_for_with_block_helper.mab +0 -5
  92. data/markaby/spec/markaby/rails/views/markaby/yielding_two.mab +0 -7
  93. data/markaby/spec/markaby/rails/views/markaby/yielding_with_content_for.mab +0 -3
  94. data/markaby/spec/markaby/rails_test.rb +0 -380
  95. data/markaby/spec/markaby/rails_version_spec.rb +0 -37
  96. data/markaby/spec/markaby/sinatra/app.rb +0 -49
  97. data/markaby/spec/markaby/sinatra/sinatra_spec.rb +0 -67
  98. data/markaby/spec/markaby/sinatra/views/helpers.mab +0 -1
  99. data/markaby/spec/markaby/sinatra/views/layout.mab +0 -7
  100. data/markaby/spec/markaby/sinatra/views/markaby_template.mab +0 -0
  101. data/markaby/spec/markaby/sinatra/views/scope_instance_variables.mab +0 -3
  102. data/markaby/spec/markaby/sinatra/views/simple_html.mab +0 -4
  103. data/markaby/spec/markaby/sinatra/views/variables.mab +0 -3
  104. data/markaby/spec/markaby/tilt/erb.erb +0 -1
  105. data/markaby/spec/markaby/tilt/locals.mab +0 -1
  106. data/markaby/spec/markaby/tilt/markaby.mab +0 -1
  107. data/markaby/spec/markaby/tilt/markaby_other_static.mab +0 -1
  108. data/markaby/spec/markaby/tilt/render_twice.mab +0 -1
  109. data/markaby/spec/markaby/tilt/scope.mab +0 -1
  110. data/markaby/spec/markaby/tilt/yielding.mab +0 -2
  111. data/markaby/spec/markaby/tilt_spec.rb +0 -75
  112. data/markaby/spec/spec.opts +0 -2
  113. data/markaby/spec/spec_helper.rb +0 -44
@@ -0,0 +1,6 @@
1
+ require 'rubygems'
2
+
3
+ # Set up gems listed in the Gemfile.
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
5
+
6
+ require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,27 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Print deprecation notices to the Rails logger
17
+ config.active_support.deprecation = :log
18
+
19
+ # Only use best-standards-support built into browsers
20
+ config.action_dispatch.best_standards_support = :builtin
21
+
22
+ # Do not compress assets
23
+ config.assets.compress = false
24
+
25
+ # Expands the lines which load the assets
26
+ config.assets.debug = true
27
+ end
@@ -0,0 +1,67 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+ end
@@ -0,0 +1,29 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Print deprecation notices to the stderr
28
+ config.active_support.deprecation = :stderr
29
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '623959e722473332aa626a9e3508ec9c05642609d7440408ece5c2e75a71404999a5b220b27a0b864a09a10180bcb13ed3f3a4bb8e7f90c33f894a7ec9aa9571'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters :format => [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,3 @@
1
+ Dummy::Application.routes.draw do
2
+ get ':controller(/:action(/:id(.:format)))'
3
+ end
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,7 @@
1
+ # Configure Rails Envinronment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../../config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,40 @@
1
+ require File.expand_path('../helper', __FILE__)
2
+
3
+ class TestMab < ActionDispatch::IntegrationTest
4
+ test "normal view" do
5
+ get "application/normal"
6
+ assert_response :success
7
+ assert_template "application/normal"
8
+ assert_template "layouts/application"
9
+ assert_html "<h1>Hello Mab!</h1>"
10
+ end
11
+
12
+ test "no layout" do
13
+ get "application/no_layout"
14
+ assert_response :success
15
+ assert_template "application/normal"
16
+ assert_equal "<h1>Hello Mab!</h1>", @response.body
17
+ end
18
+
19
+ test "variables" do
20
+ get "application/variables"
21
+ assert_response :success
22
+ assert_template "application/variables"
23
+ assert_template "layouts/application"
24
+ assert_html "<h1>Hello world!</h1>"
25
+ end
26
+
27
+ test "content for" do
28
+ get "application/content_for"
29
+ assert_response :success
30
+ assert_template "application/content_for"
31
+ assert_template "layouts/application"
32
+ assert_html "<h2>Sub</h2>", :heading => "<h1>Heading</h1>"
33
+ end
34
+
35
+ def assert_html(expected, options = {})
36
+ expected = "<!DOCTYPE html><html><head><title>Dummy</title></head><body>#{options[:heading]}<div class=\"content\">#{expected}</div></body></html>" unless options[:skip_layout]
37
+ assert_equal expected, @response.body
38
+ end
39
+ end
40
+
@@ -77,6 +77,10 @@ class TestMabMixin < MiniTest::Unit::TestCase
77
77
  tag!(:p).intro.first!('Hello')
78
78
  }
79
79
 
80
+ assert_equal '<div class="content">Hello</div>', @obj.mab {
81
+ tag!(:div).content("Hello")
82
+ }
83
+
80
84
  assert_raises(Mab::Mixin::Error) do
81
85
  @obj.mab do
82
86
  tag!(:p).intro('Hello').first!('Hello')
@@ -101,7 +105,7 @@ class TestMabMixin < MiniTest::Unit::TestCase
101
105
  def test_mab_done
102
106
  @obj.extend Mab::Mixin
103
107
  def @obj.mab_done(tag)
104
- tag.attributes = { :nope => 123 }
108
+ tag._attributes = { :nope => 123 }
105
109
  end
106
110
 
107
111
  assert_equal '<p nope="123"><br nope="123"></p>', @obj.mab {
@@ -114,8 +118,8 @@ class TestMabMixin < MiniTest::Unit::TestCase
114
118
  def test_mab_done_ignore_block
115
119
  @obj.extend Mab::Mixin
116
120
  def @obj.mab_done(tag)
117
- tag.block = nil
118
- tag.content = ''
121
+ tag._block = nil
122
+ tag._content = ''
119
123
  end
120
124
 
121
125
  assert_equal '<p></p>', @obj.mab {
@@ -128,10 +132,10 @@ class TestMabMixin < MiniTest::Unit::TestCase
128
132
  def test_mab_done_wrap_block
129
133
  @obj.extend Mab::Mixin
130
134
  def @obj.mab_done(tag)
131
- tag.block do |blk|
135
+ tag._block do |blk|
132
136
  tag! :p, 'nice'
133
137
  blk.call
134
- end if tag.name == :body
138
+ end if tag._name == :body
135
139
  end
136
140
 
137
141
  assert_equal "<body><p>nice</p><br></body>", @obj.mab {
@@ -144,7 +148,7 @@ class TestMabMixin < MiniTest::Unit::TestCase
144
148
  def test_mab_insert
145
149
  @obj.extend Mab::Mixin
146
150
  def @obj.mab_insert(tag)
147
- tag.name = :nope if tag.respond_to?(:name=)
151
+ tag._name = :nope if tag.respond_to?(:_name=)
148
152
  super
149
153
  end
150
154
 
metadata CHANGED
@@ -1,38 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Magnus Holm
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-10 00:00:00.000000000 Z
11
+ date: 2013-03-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
- requirement: &70117518819120 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *70117518819120
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: minitest
27
- requirement: &70117518828900 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ! '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *70117518828900
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  description:
37
42
  email:
38
43
  - judofyr@gmail.com
@@ -40,7 +45,6 @@ executables: []
40
45
  extensions: []
41
46
  extra_rdoc_files: []
42
47
  files:
43
- - bench.rb
44
48
  - COPYING
45
49
  - Gemfile
46
50
  - Gemfile.lock
@@ -48,112 +52,66 @@ files:
48
52
  - lib/mab/indentation.rb
49
53
  - lib/mab/kernel_method.rb
50
54
  - lib/mab/mixin.rb
55
+ - lib/mab/rails.rb
51
56
  - lib/mab/version.rb
52
57
  - lib/mab.rb
53
- - mab-0.0.1.gem
54
58
  - mab.gemspec
55
- - markaby/CHANGELOG.rdoc
56
- - markaby/garlic.rb
57
- - markaby/init.rb
58
- - markaby/lib/markaby/builder.rb
59
- - markaby/lib/markaby/builder_tags.rb
60
- - markaby/lib/markaby/cssproxy.rb
61
- - markaby/lib/markaby/kernel_method.rb
62
- - markaby/lib/markaby/rails/current.rb
63
- - markaby/lib/markaby/rails/deprecated.rb
64
- - markaby/lib/markaby/rails/rails_builder.rb
65
- - markaby/lib/markaby/rails.rb
66
- - markaby/lib/markaby/sinatra.rb
67
- - markaby/lib/markaby/tags.rb
68
- - markaby/lib/markaby/tilt.rb
69
- - markaby/lib/markaby.rb
70
- - markaby/Markaby.gemspec
71
- - markaby/Rakefile
72
- - markaby/README.rdoc
73
- - markaby/spec/markaby/builder_spec.rb
74
- - markaby/spec/markaby/css_proxy_test.rb
75
- - markaby/spec/markaby/fragment_test.rb
76
- - markaby/spec/markaby/markaby_other_static.mab
77
- - markaby/spec/markaby/markaby_spec.rb
78
- - markaby/spec/markaby/markaby_test.rb
79
- - markaby/spec/markaby/rails/spec_helper.rb
80
- - markaby/spec/markaby/rails/views/layouts/layout.mab
81
- - markaby/spec/markaby/rails/views/markaby/_a_partial.mab
82
- - markaby/spec/markaby/rails/views/markaby/_form_for_with_body_in_erb.erb
83
- - markaby/spec/markaby/rails/views/markaby/_partial_child_with_locals.mab
84
- - markaby/spec/markaby/rails/views/markaby/access_to_helpers.mab
85
- - markaby/spec/markaby/rails/views/markaby/broken.mab
86
- - markaby/spec/markaby/rails/views/markaby/commented_out_template.mab
87
- - markaby/spec/markaby/rails/views/markaby/correct_template_values.mab
88
- - markaby/spec/markaby/rails/views/markaby/double_output.mab
89
- - markaby/spec/markaby/rails/views/markaby/form_for.mab
90
- - markaby/spec/markaby/rails/views/markaby/form_for_with_fields.mab
91
- - markaby/spec/markaby/rails/views/markaby/form_for_with_multiple_fields.mab
92
- - markaby/spec/markaby/rails/views/markaby/no_values_passed.mab
93
- - markaby/spec/markaby/rails/views/markaby/partial_parent.mab
94
- - markaby/spec/markaby/rails/views/markaby/partial_parent_with_locals.mab
95
- - markaby/spec/markaby/rails/views/markaby/render_erb_without_explicit_render_call.erb
96
- - markaby/spec/markaby/rails/views/markaby/render_explicit_but_empty_markaby_layout.mab
97
- - markaby/spec/markaby/rails/views/markaby/render_mab_without_explicit_render_call.mab
98
- - markaby/spec/markaby/rails/views/markaby/render_with_ivar.mab
99
- - markaby/spec/markaby/rails/views/markaby/renders_erb.rhtml
100
- - markaby/spec/markaby/rails/views/markaby/renders_form_for_with_erb_body.mab
101
- - markaby/spec/markaby/rails/views/markaby/routes.mab
102
- - markaby/spec/markaby/rails/views/markaby/yielding.mab
103
- - markaby/spec/markaby/rails/views/markaby/yielding_content_for_with_block_helper.mab
104
- - markaby/spec/markaby/rails/views/markaby/yielding_two.mab
105
- - markaby/spec/markaby/rails/views/markaby/yielding_with_content_for.mab
106
- - markaby/spec/markaby/rails_test.rb
107
- - markaby/spec/markaby/rails_version_spec.rb
108
- - markaby/spec/markaby/sinatra/app.rb
109
- - markaby/spec/markaby/sinatra/sinatra_spec.rb
110
- - markaby/spec/markaby/sinatra/views/helpers.mab
111
- - markaby/spec/markaby/sinatra/views/layout.mab
112
- - markaby/spec/markaby/sinatra/views/markaby_template.mab
113
- - markaby/spec/markaby/sinatra/views/scope_instance_variables.mab
114
- - markaby/spec/markaby/sinatra/views/simple_html.mab
115
- - markaby/spec/markaby/sinatra/views/variables.mab
116
- - markaby/spec/markaby/tilt/erb.erb
117
- - markaby/spec/markaby/tilt/locals.mab
118
- - markaby/spec/markaby/tilt/markaby.mab
119
- - markaby/spec/markaby/tilt/markaby_other_static.mab
120
- - markaby/spec/markaby/tilt/render_twice.mab
121
- - markaby/spec/markaby/tilt/scope.mab
122
- - markaby/spec/markaby/tilt/yielding.mab
123
- - markaby/spec/markaby/tilt_spec.rb
124
- - markaby/spec/spec.opts
125
- - markaby/spec/spec_helper.rb
126
- - markaby/VERSION
127
59
  - Rakefile
128
60
  - README.md
129
61
  - test/helper.rb
62
+ - test/rails/app/assets/images/rails.png
63
+ - test/rails/app/assets/javascripts/application.js
64
+ - test/rails/app/assets/stylesheets/application.css
65
+ - test/rails/app/controllers/application_controller.rb
66
+ - test/rails/app/helpers/application_helper.rb
67
+ - test/rails/app/views/application/content_for.html.mab
68
+ - test/rails/app/views/application/normal.html.mab
69
+ - test/rails/app/views/application/variables.html.mab
70
+ - test/rails/app/views/layouts/application.html.mab
71
+ - test/rails/config/application.rb
72
+ - test/rails/config/boot.rb
73
+ - test/rails/config/environment.rb
74
+ - test/rails/config/environments/development.rb
75
+ - test/rails/config/environments/production.rb
76
+ - test/rails/config/environments/test.rb
77
+ - test/rails/config/initializers/backtrace_silencers.rb
78
+ - test/rails/config/initializers/inflections.rb
79
+ - test/rails/config/initializers/mime_types.rb
80
+ - test/rails/config/initializers/secret_token.rb
81
+ - test/rails/config/initializers/session_store.rb
82
+ - test/rails/config/initializers/wrap_parameters.rb
83
+ - test/rails/config/locales/en.yml
84
+ - test/rails/config/routes.rb
85
+ - test/rails/config.ru
86
+ - test/rails/Rakefile
87
+ - test/rails/script/rails
88
+ - test/rails/test/helper.rb
89
+ - test/rails/test/test_mab.rb
130
90
  - test/test_mab_builder.rb
131
91
  - test/test_mab_indentation.rb
132
92
  - test/test_mab_kernel_method.rb
133
93
  - test/test_mab_mixin.rb
134
94
  homepage:
135
95
  licenses: []
96
+ metadata: {}
136
97
  post_install_message:
137
98
  rdoc_options: []
138
99
  require_paths:
139
100
  - lib
140
101
  required_ruby_version: !ruby/object:Gem::Requirement
141
- none: false
142
102
  requirements:
143
103
  - - ! '>='
144
104
  - !ruby/object:Gem::Version
145
105
  version: '0'
146
106
  required_rubygems_version: !ruby/object:Gem::Requirement
147
- none: false
148
107
  requirements:
149
108
  - - ! '>='
150
109
  - !ruby/object:Gem::Version
151
110
  version: '0'
152
111
  requirements: []
153
112
  rubyforge_project:
154
- rubygems_version: 1.8.10
113
+ rubygems_version: 2.0.2
155
114
  signing_key:
156
- specification_version: 3
115
+ specification_version: 4
157
116
  summary: Markup as Ruby
158
117
  test_files: []
159
- has_rdoc: