hamlit-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.travis.yml +13 -0
- data/Appraisals +15 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +49 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/gemfiles/rails_4_0.gemfile +7 -0
- data/gemfiles/rails_4_1.gemfile +7 -0
- data/gemfiles/rails_4_2.gemfile +7 -0
- data/gemfiles/rails_latest.gemfile +7 -0
- data/hamlit-rails.gemspec +31 -0
- data/lib/generators/haml/controller/controller_generator.rb +16 -0
- data/lib/generators/haml/controller/templates/view.html.haml +2 -0
- data/lib/generators/haml/mailer/mailer_generator.rb +44 -0
- data/lib/generators/haml/mailer/templates/layout.html.haml +3 -0
- data/lib/generators/haml/mailer/templates/layout.text.haml +1 -0
- data/lib/generators/haml/mailer/templates/view.html.haml +4 -0
- data/lib/generators/haml/mailer/templates/view.text.haml +3 -0
- data/lib/generators/haml/scaffold/scaffold_generator.rb +36 -0
- data/lib/generators/haml/scaffold/templates/_form.html.haml +15 -0
- data/lib/generators/haml/scaffold/templates/edit.html.haml +7 -0
- data/lib/generators/haml/scaffold/templates/index.html.haml +25 -0
- data/lib/generators/haml/scaffold/templates/new.html.haml +5 -0
- data/lib/generators/haml/scaffold/templates/show.html.haml +11 -0
- data/lib/hamlit-rails.rb +53 -0
- data/lib/hamlit-rails/version.rb +5 -0
- metadata +186 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fca344c31d639d38aec24ea6010a7c873c4abd87
|
4
|
+
data.tar.gz: 9ff7c5782883541e345687be15f35c0d07af1005
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a766c4f7f79bba4e8683065fcc65e3275d6180b26bbc7902182017a292341dbcc48e92968fba060a0f13435c7282f2a2f9ae24fc0cf0a63b587b67c9a3d9fefa
|
7
|
+
data.tar.gz: 279a5b4c3d98b202be418de52d6448daf17bbd878abb9d8a6e59d20871ac9ad41c568ded8895b5b549344a7daeaefb16177753f29507fdd116ef8fb5f658f9ef
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
language: ruby
|
2
|
+
cache: bundler
|
3
|
+
before_install: "gem install bundler"
|
4
|
+
rvm:
|
5
|
+
- 2.0.0
|
6
|
+
- 2.1.0
|
7
|
+
- 2.2.0
|
8
|
+
gemfile:
|
9
|
+
- gemfiles/rails_4_0.gemfile
|
10
|
+
- gemfiles/rails_4_1.gemfile
|
11
|
+
- gemfiles/rails_4_2.gemfile
|
12
|
+
- gemfiles/rails_latest.gemfile
|
13
|
+
script: "bundle exec rake test"
|
data/Appraisals
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Meng Fung
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
Hamlit-rails
|
2
|
+
============
|
3
|
+
|
4
|
+
[![Build Status](https://travis-ci.org/mfung/hamlit-rails.svg)](https://travis-ci.org/mfung/hamlit-rails)
|
5
|
+
|
6
|
+
Provides hamlit generators for Rails 4. It also enables hamlit as the templating
|
7
|
+
engine.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
gem 'hamlit-rails'
|
15
|
+
```
|
16
|
+
|
17
|
+
And then execute:
|
18
|
+
|
19
|
+
$ bundle
|
20
|
+
|
21
|
+
Or install it yourself as:
|
22
|
+
|
23
|
+
$ gem install hamlit-rails
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
TODO: Write usage instructions here
|
28
|
+
|
29
|
+
## Development
|
30
|
+
|
31
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
32
|
+
|
33
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
1. Fork it ( https://github.com/mfung/hamlit-rails/fork )
|
38
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
39
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
40
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
41
|
+
5. Create a new Pull Request
|
42
|
+
|
43
|
+
## Acknowledgement
|
44
|
+
This code is heavily influenced by [haml-rails](https://github.com/indirect/haml-rails).
|
45
|
+
And is written because of an issue created in that repo.
|
46
|
+
|
47
|
+
## License
|
48
|
+
|
49
|
+
MIT license
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "hamlit/rails"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'hamlit-rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "hamlit-rails"
|
8
|
+
spec.version = Hamlit::Rails::VERSION
|
9
|
+
spec.authors = ["Meng Fung"]
|
10
|
+
spec.email = ["meng.fung@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{hamlit and rails}
|
13
|
+
spec.description = %q{hamlit-rails provides generators for Rails 4.}
|
14
|
+
spec.homepage = "https://github.com/mfung/hamlit-rails"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.add_runtime_dependency "hamlit", ">= 1.2.0"
|
23
|
+
spec.add_runtime_dependency "activesupport", ">= 4.0.1"
|
24
|
+
spec.add_runtime_dependency "actionpack", ">= 4.0.1"
|
25
|
+
spec.add_runtime_dependency "railties", ">= 4.0.1"
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.9"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "rails", ">= 4.0.1"
|
30
|
+
spec.add_development_dependency "appraisal", "~> 1.0"
|
31
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'rails/generators/erb/controller/controller_generator'
|
2
|
+
|
3
|
+
module Haml
|
4
|
+
module Generators
|
5
|
+
class ControllerGenerator < Erb::Generators::ControllerGenerator
|
6
|
+
source_root File.expand_path("../templates", __FILE__)
|
7
|
+
|
8
|
+
protected
|
9
|
+
|
10
|
+
def handler
|
11
|
+
:haml
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'generators/haml/controller/controller_generator'
|
2
|
+
|
3
|
+
module Haml
|
4
|
+
module Generators
|
5
|
+
class MailerGenerator < ControllerGenerator
|
6
|
+
source_root File.expand_path("../templates", __FILE__)
|
7
|
+
|
8
|
+
def copy_view_files
|
9
|
+
if ::Rails.version.to_s >= "4.2.0"
|
10
|
+
view_base_path = File.join("app/views", class_path, file_name)
|
11
|
+
empty_directory view_base_path
|
12
|
+
|
13
|
+
if self.behavior == :invoke
|
14
|
+
formats.each do |format|
|
15
|
+
layout_path = File.join("app/views/layouts", filename_with_extensions("mailer", format))
|
16
|
+
template filename_with_extensions(:layout, format), layout_path
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
actions.each do |action|
|
21
|
+
@action = action
|
22
|
+
|
23
|
+
formats.each do |format|
|
24
|
+
@path = File.join(view_base_path, filename_with_extensions(action, format))
|
25
|
+
template filename_with_extensions(:view, format), @path
|
26
|
+
end
|
27
|
+
end
|
28
|
+
else
|
29
|
+
super
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
protected
|
34
|
+
|
35
|
+
def format
|
36
|
+
:text
|
37
|
+
end
|
38
|
+
|
39
|
+
def formats
|
40
|
+
[:text, :html]
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
= yield
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'rails/generators/erb/scaffold/scaffold_generator'
|
2
|
+
|
3
|
+
module Haml
|
4
|
+
module Generators
|
5
|
+
class ScaffoldGenerator < Erb::Generators::ScaffoldGenerator
|
6
|
+
source_root File.expand_path("../templates", __FILE__)
|
7
|
+
|
8
|
+
def copy_view_files
|
9
|
+
available_views.each do |view|
|
10
|
+
filename = filename_with_extensions(view)
|
11
|
+
template "#{view}.html.haml", File.join("app/views", controller_file_path, filename)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
hook_for :form_builder, :as => :scaffold
|
16
|
+
|
17
|
+
def copy_form_file
|
18
|
+
if options[:form_builder].nil?
|
19
|
+
filename = filename_with_extensions("_form")
|
20
|
+
template "_form.html.haml", File.join("app/views", controller_file_path, filename)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
protected
|
25
|
+
|
26
|
+
def available_views
|
27
|
+
%w(index edit show new)
|
28
|
+
end
|
29
|
+
|
30
|
+
def handler
|
31
|
+
:haml
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
= form_for @<%= singular_table_name %> do |f|
|
2
|
+
- if @<%= singular_table_name %>.errors.any?
|
3
|
+
#error_explanation
|
4
|
+
%h2= "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
|
5
|
+
%ul
|
6
|
+
- @<%= singular_table_name %>.errors.full_messages.each do |msg|
|
7
|
+
%li= msg
|
8
|
+
|
9
|
+
<% for attribute in attributes -%>
|
10
|
+
.field
|
11
|
+
= f.label :<%= attribute.name %>
|
12
|
+
= f.<%= attribute.field_type %> :<%= attribute.name %>
|
13
|
+
<% end -%>
|
14
|
+
.actions
|
15
|
+
= f.submit 'Save'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
%h1 Listing <%= plural_table_name %>
|
2
|
+
|
3
|
+
%table
|
4
|
+
%thead
|
5
|
+
%tr
|
6
|
+
<% for attribute in attributes -%>
|
7
|
+
%th <%= attribute.human_name %>
|
8
|
+
<% end -%>
|
9
|
+
%th
|
10
|
+
%th
|
11
|
+
%th
|
12
|
+
|
13
|
+
%tbody
|
14
|
+
- @<%= plural_table_name %>.each do |<%= singular_table_name %>|
|
15
|
+
%tr
|
16
|
+
<% for attribute in attributes -%>
|
17
|
+
%td= <%= singular_table_name %>.<%= attribute.name %>
|
18
|
+
<% end -%>
|
19
|
+
%td= link_to 'Show', <%= singular_table_name %>
|
20
|
+
%td= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>)
|
21
|
+
%td= link_to 'Destroy', <%= singular_table_name %>, :method => :delete, :data => { :confirm => 'Are you sure?' }
|
22
|
+
|
23
|
+
%br
|
24
|
+
|
25
|
+
= link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path
|
@@ -0,0 +1,11 @@
|
|
1
|
+
%p#notice= notice
|
2
|
+
|
3
|
+
<% for attribute in attributes -%>
|
4
|
+
%p
|
5
|
+
%b <%= attribute.human_name %>:
|
6
|
+
= @<%= singular_table_name %>.<%= attribute.name %>
|
7
|
+
<% end -%>
|
8
|
+
|
9
|
+
= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
|
10
|
+
\|
|
11
|
+
= link_to 'Back', <%= index_helper %>_path
|
data/lib/hamlit-rails.rb
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
require "hamlit-rails/version"
|
2
|
+
require "rails"
|
3
|
+
require "hamlit"
|
4
|
+
require "hamlit/railtie"
|
5
|
+
|
6
|
+
module Haml
|
7
|
+
module Rails
|
8
|
+
class Engine < ::Rails::Engine
|
9
|
+
config.app_generators do |g|
|
10
|
+
g.template_engine :haml
|
11
|
+
end
|
12
|
+
end
|
13
|
+
class Railtie < ::Rails::Railtie
|
14
|
+
config.app_generators.template_engine :haml
|
15
|
+
|
16
|
+
initializer 'hamlit_rails.configure_template_digestor' do
|
17
|
+
|
18
|
+
ActiveSupport.on_load(:action_view) do
|
19
|
+
ActiveSupport.on_load(:after_initialize) do
|
20
|
+
begin
|
21
|
+
if defined?(CacheDigests::DependencyTracker)
|
22
|
+
# 'cache_digests' gem being used (overrides Rails 4 implementation)
|
23
|
+
CacheDigests::DependencyTracker.register_tracker :haml, CacheDigests::DependencyTracker::ERBTracker
|
24
|
+
|
25
|
+
if ::Rails.env.development?
|
26
|
+
# recalculate cache digest keys for each request
|
27
|
+
CacheDigests::TemplateDigestor.cache = ActiveSupport::Cache::NullStore.new
|
28
|
+
end
|
29
|
+
elsif ::Rails.version.to_s >= '4.0'
|
30
|
+
# will only apply if Rails 4, which includes 'action_view/dependency_tracker'
|
31
|
+
require 'action_view/dependency_tracker'
|
32
|
+
ActionView::DependencyTracker.register_tracker :haml, ActionView::DependencyTracker::ERBTracker
|
33
|
+
ActionView::Base.cache_template_loading = false if ::Rails.env.development?
|
34
|
+
end
|
35
|
+
rescue
|
36
|
+
# likely this version of Rails doesn't support dependency tracking
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
# Configure source annotation on haml files (support for HAML was
|
43
|
+
# provided directly by railties 3.2..4.1 but was dropped in 4.2.
|
44
|
+
if Gem::Requirement.new(">= 4.2").satisfied_by?(Gem::Version.new(::Rails.version))
|
45
|
+
initializer 'hamlit_rails.configure_source_annotation' do
|
46
|
+
SourceAnnotationExtractor::Annotation.register_extensions('haml') do |tag|
|
47
|
+
/\s*-#\s*(#{tag}):?\s*(.*)/
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
metadata
ADDED
@@ -0,0 +1,186 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hamlit-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Meng Fung
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: hamlit
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.0.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 4.0.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: actionpack
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 4.0.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.0.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: railties
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 4.0.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 4.0.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.9'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.9'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '10.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '10.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 4.0.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 4.0.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: appraisal
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.0'
|
125
|
+
description: hamlit-rails provides generators for Rails 4.
|
126
|
+
email:
|
127
|
+
- meng.fung@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".travis.yml"
|
134
|
+
- Appraisals
|
135
|
+
- CODE_OF_CONDUCT.md
|
136
|
+
- Gemfile
|
137
|
+
- LICENSE.txt
|
138
|
+
- README.md
|
139
|
+
- Rakefile
|
140
|
+
- bin/console
|
141
|
+
- bin/setup
|
142
|
+
- gemfiles/rails_4_0.gemfile
|
143
|
+
- gemfiles/rails_4_1.gemfile
|
144
|
+
- gemfiles/rails_4_2.gemfile
|
145
|
+
- gemfiles/rails_latest.gemfile
|
146
|
+
- hamlit-rails.gemspec
|
147
|
+
- lib/generators/haml/controller/controller_generator.rb
|
148
|
+
- lib/generators/haml/controller/templates/view.html.haml
|
149
|
+
- lib/generators/haml/mailer/mailer_generator.rb
|
150
|
+
- lib/generators/haml/mailer/templates/layout.html.haml
|
151
|
+
- lib/generators/haml/mailer/templates/layout.text.haml
|
152
|
+
- lib/generators/haml/mailer/templates/view.html.haml
|
153
|
+
- lib/generators/haml/mailer/templates/view.text.haml
|
154
|
+
- lib/generators/haml/scaffold/scaffold_generator.rb
|
155
|
+
- lib/generators/haml/scaffold/templates/_form.html.haml
|
156
|
+
- lib/generators/haml/scaffold/templates/edit.html.haml
|
157
|
+
- lib/generators/haml/scaffold/templates/index.html.haml
|
158
|
+
- lib/generators/haml/scaffold/templates/new.html.haml
|
159
|
+
- lib/generators/haml/scaffold/templates/show.html.haml
|
160
|
+
- lib/hamlit-rails.rb
|
161
|
+
- lib/hamlit-rails/version.rb
|
162
|
+
homepage: https://github.com/mfung/hamlit-rails
|
163
|
+
licenses:
|
164
|
+
- MIT
|
165
|
+
metadata: {}
|
166
|
+
post_install_message:
|
167
|
+
rdoc_options: []
|
168
|
+
require_paths:
|
169
|
+
- lib
|
170
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
requirements: []
|
181
|
+
rubyforge_project:
|
182
|
+
rubygems_version: 2.4.6
|
183
|
+
signing_key:
|
184
|
+
specification_version: 4
|
185
|
+
summary: hamlit and rails
|
186
|
+
test_files: []
|