amcss-rails 0.0.1
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.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +115 -0
- data/Rakefile +7 -0
- data/amcss-rails.gemspec +30 -0
- data/app/helpers/amcss/rails/application_helper.rb +47 -0
- data/config.ru +7 -0
- data/lib/amcss/rails.rb +9 -0
- data/lib/amcss/rails/engine.rb +21 -0
- data/lib/amcss/rails/helper.rb +5 -0
- data/lib/amcss/rails/version.rb +5 -0
- data/spec/amcss/rails_spec.rb +7 -0
- data/spec/helpers/amcss/rails/application_helper_spec.rb +145 -0
- data/spec/internal/config/database.yml +3 -0
- data/spec/internal/config/routes.rb +3 -0
- data/spec/internal/db/schema.rb +3 -0
- data/spec/internal/log/.gitignore +1 -0
- data/spec/internal/public/favicon.ico +0 -0
- data/spec/spec_helper.rb +31 -0
- data/spec/support/matchers/be_rendered_as.rb +18 -0
- data/spec/support/matchers/match_html.rb +18 -0
- metadata +190 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 838da3f9febc9919156f618ba2ed77674ef3cbb4
|
4
|
+
data.tar.gz: 199c41bca0326f56adc22831f2cfea09d4146bd1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2ef0d5c640088115a3e92f9966598ec97985fd4f16e1ffb0f6fc84509c3602615e8242be4bcb6aa94a01a51ef2740be0dba5107085363626d103e3e4b9993c51
|
7
|
+
data.tar.gz: c8ae610b27576daba71259d4bbb96ffa87a2860d0f04bf33197eb03110543f420334e72c83ddc9ddff5854aedd71ed9816e7fff0e8ff605570a0de66d274a568
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Silvano Stralla
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
# Amcss::Rails
|
2
|
+
|
3
|
+
amcss-rails makes [amcss](https://github.com/sistrall/amcss) available in Rails (don't know amcss? Take a look at [README](https://github.com/sistrall/amcss/blob/master/README.md)).
|
4
|
+
|
5
|
+
Shortly: you write this...
|
6
|
+
|
7
|
+
```haml
|
8
|
+
= am(:box) do |b|
|
9
|
+
= b.am(:header) do
|
10
|
+
Header
|
11
|
+
= b.am(:content) do
|
12
|
+
Body
|
13
|
+
```
|
14
|
+
|
15
|
+
...and get this:
|
16
|
+
|
17
|
+
```html
|
18
|
+
<div data-am-box>
|
19
|
+
<div data-am-box__header>Header</div>
|
20
|
+
<div data-am-box__content>Content</div>
|
21
|
+
</div>
|
22
|
+
```
|
23
|
+
|
24
|
+
## Installation
|
25
|
+
|
26
|
+
Add this line to your application's Gemfile:
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
gem 'amcss-rails'
|
30
|
+
```
|
31
|
+
|
32
|
+
And then execute:
|
33
|
+
|
34
|
+
$ bundle
|
35
|
+
|
36
|
+
Or install it yourself as:
|
37
|
+
|
38
|
+
$ gem install amcss-rails
|
39
|
+
|
40
|
+
## Usage
|
41
|
+
|
42
|
+
amcss-rails allows you to use helper in your views like this:
|
43
|
+
|
44
|
+
```erb
|
45
|
+
<%= am('Calendar', variation: 'flat') do %>
|
46
|
+
<p>Hi, I'm a calendar</p>
|
47
|
+
<% end %>
|
48
|
+
```
|
49
|
+
|
50
|
+
What you'll get is a `div` with AMCSS attribute:
|
51
|
+
|
52
|
+
```html
|
53
|
+
<div am-Calendar="flat">
|
54
|
+
<p>Hi, I'm a calendar</p>
|
55
|
+
</div>
|
56
|
+
```
|
57
|
+
|
58
|
+
It seems nothing, but the interesting part comes when you try to nest blocks and add a little bit of configuration. Take a look.
|
59
|
+
|
60
|
+
Create 2 initializer files:
|
61
|
+
|
62
|
+
```ruby
|
63
|
+
# In config/initializers/amcss.rb
|
64
|
+
Amcss.configure do |configuration|
|
65
|
+
configuration.prefix = :data
|
66
|
+
end
|
67
|
+
```
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
# In config/initializers/amcss-rails.rb
|
71
|
+
Amcss::Rails::Engine.configure do |engine|
|
72
|
+
engine.config.amcss.style = :bem
|
73
|
+
engine.config.amcss.block_element_separator = '__'
|
74
|
+
end
|
75
|
+
```
|
76
|
+
|
77
|
+
Than write this code in your template:
|
78
|
+
|
79
|
+
```erb
|
80
|
+
<%= am(:calendar, variation: 'flat') do |calendar| %>
|
81
|
+
<%= calendar.am(:header, variation: 'padded') do %>
|
82
|
+
Header
|
83
|
+
<% end %>
|
84
|
+
<%= calendar.am(:body) do %>
|
85
|
+
Body
|
86
|
+
<% end %>
|
87
|
+
<% end %>
|
88
|
+
```
|
89
|
+
|
90
|
+
This is what you get:
|
91
|
+
|
92
|
+
```html
|
93
|
+
<div data-am-calendar="flat">
|
94
|
+
<div data-am-calendar__header="padded"></div>
|
95
|
+
<div data-am-calendar__body=""></div>
|
96
|
+
</div>
|
97
|
+
```
|
98
|
+
|
99
|
+
Even easier to read if you are a HAML fan:
|
100
|
+
|
101
|
+
```haml
|
102
|
+
= am(:calendar, variation: 'flat') do |calendar|
|
103
|
+
= calendar.am(:header, variation: 'padded') do
|
104
|
+
Header
|
105
|
+
= calendar.am(:body) do
|
106
|
+
Body
|
107
|
+
```
|
108
|
+
|
109
|
+
## Contributing
|
110
|
+
|
111
|
+
1. Fork it ( https://github.com/[my-github-username]/amcss-rails/fork )
|
112
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
113
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
114
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
115
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/amcss-rails.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'amcss/rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "amcss-rails"
|
8
|
+
spec.version = Amcss::Rails::VERSION
|
9
|
+
spec.authors = ["Silvano Stralla"]
|
10
|
+
spec.email = ["silvano.stralla@sistrall.it"]
|
11
|
+
spec.summary = %q{AMCSS for Rails}
|
12
|
+
spec.description = %q{Define a series of helpers to make it easy to use AMCSS in Rails project}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency 'amcss'
|
22
|
+
spec.add_dependency 'rails'
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec"
|
27
|
+
spec.add_development_dependency "rspec-rails"
|
28
|
+
spec.add_development_dependency 'sqlite3'
|
29
|
+
spec.add_development_dependency 'combustion'
|
30
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module Amcss::Rails::ApplicationHelper
|
2
|
+
def am(m, content_or_options_with_block = nil, options = nil, escape = true, &block)
|
3
|
+
options = case
|
4
|
+
when content_or_options_with_block.is_a?(Hash) then content_or_options_with_block
|
5
|
+
when options.is_a?(Hash) then options
|
6
|
+
else {}
|
7
|
+
end
|
8
|
+
|
9
|
+
options_with_amcss_attribute = am_options(m, options)
|
10
|
+
|
11
|
+
klass = "amcss/rails/application_helper/#{Amcss::Rails::Engine.config.amcss.style}_style_am_module_or_trait".classify.constantize
|
12
|
+
|
13
|
+
content = block_given? ? capture(klass.new(self, m), &block) : content_or_options_with_block
|
14
|
+
|
15
|
+
content_tag(:div, content, options_with_amcss_attribute, escape)
|
16
|
+
end
|
17
|
+
|
18
|
+
def am_options(m, options = {})
|
19
|
+
attribute = Amcss::Html::Attribute.from(m, *(options[:variation] || options[:variations]))
|
20
|
+
|
21
|
+
options
|
22
|
+
.except(:variation, :variations)
|
23
|
+
.merge(attribute)
|
24
|
+
end
|
25
|
+
|
26
|
+
class AmModuleOrTrait < Struct.new(:template, :m)
|
27
|
+
def am(*args, &block)
|
28
|
+
template.am(*args, &block)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class AmcssStyleAmModuleOrTrait < AmModuleOrTrait
|
33
|
+
end
|
34
|
+
|
35
|
+
class BemStyleAmModuleOrTrait < AmModuleOrTrait
|
36
|
+
def am(*args, &block)
|
37
|
+
template.am(*module_element(args), &block)
|
38
|
+
end
|
39
|
+
|
40
|
+
private
|
41
|
+
def module_element(args)
|
42
|
+
element = args.shift
|
43
|
+
|
44
|
+
["#{m}#{Amcss::Rails::Engine.config.amcss.block_element_separator}#{element}"] + args
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/config.ru
ADDED
data/lib/amcss/rails.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
module Amcss::Rails
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
isolate_namespace Amcss::Rails
|
4
|
+
|
5
|
+
config.amcss = ActiveSupport::OrderedOptions.new
|
6
|
+
config.amcss.style = :bem
|
7
|
+
|
8
|
+
initializer 'amcss-rails.action_controller' do |app|
|
9
|
+
ActiveSupport.on_load :action_controller do
|
10
|
+
### (§)
|
11
|
+
#
|
12
|
+
# Makes all helpers to be avaiblable in the main app.
|
13
|
+
#
|
14
|
+
# See: http://stackoverflow.com/a/9641149
|
15
|
+
#
|
16
|
+
helper Amcss::Rails::ApplicationHelper
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
@@ -0,0 +1,145 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# = am('author-experience') do |m|
|
4
|
+
# = m.am('header') do
|
5
|
+
# Best practice of the author
|
6
|
+
|
7
|
+
# = am('counter', mod: 'check-ins') do |n|
|
8
|
+
# = n.am('icon') do
|
9
|
+
# Content
|
10
|
+
|
11
|
+
# = am('best-practice-card', for: %w{am js}) do
|
12
|
+
# Content
|
13
|
+
|
14
|
+
RSpec.describe Amcss::Rails::ApplicationHelper, type: :helper do
|
15
|
+
describe "#am" do
|
16
|
+
it 'supports symbols' do
|
17
|
+
expect(helper.am(:Calendar, 'Monthly calendar', variations: %i{big flat}))
|
18
|
+
.to eq '<div am-Calendar="big flat">Monthly calendar</div>'
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'supports strings' do
|
22
|
+
expect(helper.am('Calendar', 'Monthly calendar', variation: 'big'))
|
23
|
+
.to eq '<div am-Calendar="big">Monthly calendar</div>'
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'supports passing options' do
|
27
|
+
expect(helper.am('Calendar', 'Monthly calendar', variation: 'big', class: 'bootstrap-class', style: "You know you should not inline style!"))
|
28
|
+
.to match_html <<-HTML
|
29
|
+
<div class="bootstrap-class" style="You know you should not inline style!" am-Calendar="big">
|
30
|
+
Monthly calendar
|
31
|
+
</div>
|
32
|
+
HTML
|
33
|
+
end
|
34
|
+
|
35
|
+
context "without blocks" do
|
36
|
+
it "returns a div tag" do
|
37
|
+
expect(helper.am('Calendar', 'Monthly calendar'))
|
38
|
+
.to eq '<div am-Calendar="">Monthly calendar</div>'
|
39
|
+
|
40
|
+
expect(helper.am('Calendar', 'Monthly calendar', variation: 'big'))
|
41
|
+
.to eq '<div am-Calendar="big">Monthly calendar</div>'
|
42
|
+
|
43
|
+
expect(helper.am('Calendar', 'Monthly calendar', variations: 'small rounded'))
|
44
|
+
.to eq '<div am-Calendar="small rounded">Monthly calendar</div>'
|
45
|
+
|
46
|
+
expect(helper.am('Calendar', 'Monthly calendar', variations: %w{small rounded}))
|
47
|
+
.to eq '<div am-Calendar="small rounded">Monthly calendar</div>'
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
context "with blocks" do
|
52
|
+
it "returns a div tag" do
|
53
|
+
expect(helper.am('Calendar') {})
|
54
|
+
.to eq '<div am-Calendar=""></div>'
|
55
|
+
|
56
|
+
expect(helper.am('Calendar', variation: 'big') {})
|
57
|
+
.to eq '<div am-Calendar="big"></div>'
|
58
|
+
|
59
|
+
expect(helper.am('Calendar', variations: 'small rounded') {})
|
60
|
+
.to eq '<div am-Calendar="small rounded"></div>'
|
61
|
+
|
62
|
+
expect(helper.am('Calendar', variations: %w{small rounded}) {})
|
63
|
+
.to eq '<div am-Calendar="small rounded"></div>'
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
context "nested usage" do
|
68
|
+
it "returns a div within a div" do
|
69
|
+
expect(helper.am('Calendar') { |m|
|
70
|
+
m.am('CalendarHeader') {}
|
71
|
+
}).to match_html <<-HTML
|
72
|
+
<div am-Calendar="">
|
73
|
+
<div am-CalendarHeader=""></div>
|
74
|
+
</div>
|
75
|
+
HTML
|
76
|
+
end
|
77
|
+
|
78
|
+
it "returns nested divs" do
|
79
|
+
expect(helper.am('Calendar', variation: 'flat') { |m|
|
80
|
+
m.am('CalendarHeader', '', variation: 'padded') + m.am('CalendarBody', '')
|
81
|
+
}).to match_html <<-HTML
|
82
|
+
<div am-Calendar="flat">
|
83
|
+
<div am-CalendarHeader="padded"></div>
|
84
|
+
<div am-CalendarBody=""></div>
|
85
|
+
</div>
|
86
|
+
HTML
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
context "with gem configuration for data-* attributes" do
|
91
|
+
before(:each) do
|
92
|
+
Amcss.configure do |configuration|
|
93
|
+
configuration.prefix = :data
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
it 'return HTML with data-am-* attributes' do
|
98
|
+
expect(helper.am(:Calendar, 'Monthly calendar', variation: %i{big flat}))
|
99
|
+
.to eq '<div data-am-Calendar="big flat">Monthly calendar</div>'
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
context "with gem configuration for BEM style" do
|
104
|
+
before(:each) do
|
105
|
+
Amcss::Rails::Engine.configure do
|
106
|
+
config.amcss.style = :bem
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
it 'returns HTML with attribute in BEM style (am-block--element)' do
|
111
|
+
expect(helper.am(:calendar, variation: 'flat') { |calendar|
|
112
|
+
calendar.am(:header, '', variation: 'padded') + calendar.am(:body, '')
|
113
|
+
}).to match_html <<-HTML
|
114
|
+
<div am-calendar="flat">
|
115
|
+
<div am-calendar__header="padded"></div>
|
116
|
+
<div am-calendar__body=""></div>
|
117
|
+
</div>
|
118
|
+
HTML
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
context "with gem configuration for data-* attributes and BEM style" do
|
123
|
+
before(:each) do
|
124
|
+
Amcss.configure do |configuration|
|
125
|
+
configuration.prefix = :data
|
126
|
+
end
|
127
|
+
|
128
|
+
Amcss::Rails::Engine.configure do
|
129
|
+
config.amcss.style = :bem
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
it 'return HTML with data-am-* attributes in BEM style' do
|
134
|
+
expect(helper.am(:calendar, variation: 'flat') { |calendar|
|
135
|
+
calendar.am(:header, '', variation: 'padded') + calendar.am(:body, '')
|
136
|
+
}).to match_html <<-HTML
|
137
|
+
<div data-am-calendar="flat">
|
138
|
+
<div data-am-calendar__header="padded"></div>
|
139
|
+
<div data-am-calendar__body=""></div>
|
140
|
+
</div>
|
141
|
+
HTML
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
*.log
|
File without changes
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
2
|
+
|
3
|
+
ENV["RAILS_ENV"] ||= "test"
|
4
|
+
|
5
|
+
require 'rubygems'
|
6
|
+
|
7
|
+
require 'bundler/setup'
|
8
|
+
|
9
|
+
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each { |f| require f }
|
10
|
+
|
11
|
+
require 'combustion'
|
12
|
+
|
13
|
+
Combustion.initialize! :action_controller, :action_view
|
14
|
+
|
15
|
+
require 'rspec/rails'
|
16
|
+
|
17
|
+
require 'amcss/rails'
|
18
|
+
|
19
|
+
RSpec.configure do |config|
|
20
|
+
config.before(:each) do
|
21
|
+
Amcss.configure do |configuration|
|
22
|
+
configuration.prefix = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
Amcss::Rails::Engine.configure do |engine|
|
26
|
+
engine.config.amcss.style = :amcss
|
27
|
+
engine.config.amcss.block_element_separator = '__'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
RSpec::Matchers.define :be_rendered_as do |expected|
|
2
|
+
match do |actual|
|
3
|
+
render(actual) == render(expected)
|
4
|
+
end
|
5
|
+
|
6
|
+
def failure_message
|
7
|
+
"\nexpected: #{expected}\n got: #{render(actual)}\n\n(compared using ==, after rendering SASS with Sass::Engine)\n"
|
8
|
+
end
|
9
|
+
|
10
|
+
def failure_message_when_negated
|
11
|
+
"\nexpected: value != #{expected}\n got: #{render(actual)}\n\n(compared using ==, after rendering SASS with Sass::Engine)\n"
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
def render(sass)
|
16
|
+
Sass::Engine.new(sass, style: :compact, syntax: :scss).render
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
RSpec::Matchers.define :match_html do |expected|
|
2
|
+
match do |actual|
|
3
|
+
actual == squished_expected
|
4
|
+
end
|
5
|
+
|
6
|
+
def failure_message
|
7
|
+
"\nexpected: #{squished_expected}\n got: #{actual}\n\n(compared using ==, after removing /\\n\\s+/ and squishing HTML)\n"
|
8
|
+
end
|
9
|
+
|
10
|
+
def failure_message_when_negated
|
11
|
+
"\nexpected: value != #{squished_expected}\n got: #{actual}\n\n(compared using ==, after removing /\\n\\s+/ and squishing HTML)\n"
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
def squished_expected
|
16
|
+
expected.gsub(/\n\s+/, '').squish
|
17
|
+
end
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,190 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: amcss-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Silvano Stralla
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: amcss
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.7'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.7'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: sqlite3
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: combustion
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Define a series of helpers to make it easy to use AMCSS in Rails project
|
126
|
+
email:
|
127
|
+
- silvano.stralla@sistrall.it
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".rspec"
|
134
|
+
- ".travis.yml"
|
135
|
+
- Gemfile
|
136
|
+
- LICENSE.txt
|
137
|
+
- README.md
|
138
|
+
- Rakefile
|
139
|
+
- amcss-rails.gemspec
|
140
|
+
- app/helpers/amcss/rails/application_helper.rb
|
141
|
+
- config.ru
|
142
|
+
- lib/amcss/rails.rb
|
143
|
+
- lib/amcss/rails/engine.rb
|
144
|
+
- lib/amcss/rails/helper.rb
|
145
|
+
- lib/amcss/rails/version.rb
|
146
|
+
- spec/amcss/rails_spec.rb
|
147
|
+
- spec/helpers/amcss/rails/application_helper_spec.rb
|
148
|
+
- spec/internal/config/database.yml
|
149
|
+
- spec/internal/config/routes.rb
|
150
|
+
- spec/internal/db/schema.rb
|
151
|
+
- spec/internal/log/.gitignore
|
152
|
+
- spec/internal/public/favicon.ico
|
153
|
+
- spec/spec_helper.rb
|
154
|
+
- spec/support/matchers/be_rendered_as.rb
|
155
|
+
- spec/support/matchers/match_html.rb
|
156
|
+
homepage: ''
|
157
|
+
licenses:
|
158
|
+
- MIT
|
159
|
+
metadata: {}
|
160
|
+
post_install_message:
|
161
|
+
rdoc_options: []
|
162
|
+
require_paths:
|
163
|
+
- lib
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
requirements: []
|
175
|
+
rubyforge_project:
|
176
|
+
rubygems_version: 2.2.2
|
177
|
+
signing_key:
|
178
|
+
specification_version: 4
|
179
|
+
summary: AMCSS for Rails
|
180
|
+
test_files:
|
181
|
+
- spec/amcss/rails_spec.rb
|
182
|
+
- spec/helpers/amcss/rails/application_helper_spec.rb
|
183
|
+
- spec/internal/config/database.yml
|
184
|
+
- spec/internal/config/routes.rb
|
185
|
+
- spec/internal/db/schema.rb
|
186
|
+
- spec/internal/log/.gitignore
|
187
|
+
- spec/internal/public/favicon.ico
|
188
|
+
- spec/spec_helper.rb
|
189
|
+
- spec/support/matchers/be_rendered_as.rb
|
190
|
+
- spec/support/matchers/match_html.rb
|