netguru_bootstrapper 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 +22 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +74 -0
- data/Rakefile +2 -0
- data/lib/netguru_bootstrapper/engine.rb +7 -0
- data/lib/netguru_bootstrapper/generators/netguru_bootstrapper/bootstrap_generator.rb +41 -0
- data/lib/netguru_bootstrapper/generators/templates/application.scss +13 -0
- data/lib/netguru_bootstrapper/generators/templates/settings/bootstrap-components.scss +53 -0
- data/lib/netguru_bootstrapper/generators/templates/settings/bootstrap-overrides.scss +53 -0
- data/lib/netguru_bootstrapper/generators/templates/settings/bootstrap-variables.scss +852 -0
- data/lib/netguru_bootstrapper/generators/templates/settings/custom-variables.scss +0 -0
- data/lib/netguru_bootstrapper/generators/templates/settings/z-index-variables.scss +9 -0
- data/lib/netguru_bootstrapper/generators/templates/utilities/functions.scss +0 -0
- data/lib/netguru_bootstrapper/generators/templates/utilities/mixins.scss +35 -0
- data/lib/netguru_bootstrapper/generators/templates/utilities/shared.scss +0 -0
- data/lib/netguru_bootstrapper/generators/templates/utilities/typography.scss +0 -0
- data/lib/netguru_bootstrapper/structure_parser.rb +10 -0
- data/lib/netguru_bootstrapper/version.rb +3 -0
- data/lib/netguru_bootstrapper.rb +5 -0
- data/lib/structure.yml +19 -0
- data/netguru_bootstrapper.gemspec +22 -0
- metadata +94 -0
File without changes
|
File without changes
|
@@ -0,0 +1,35 @@
|
|
1
|
+
@mixin _position($position, $args) {
|
2
|
+
@each $dir in top, left, bottom, right {
|
3
|
+
$i: index($args, $dir);
|
4
|
+
@if $i {
|
5
|
+
#{$dir}: nth($args, $i + 1);
|
6
|
+
}
|
7
|
+
}
|
8
|
+
position: $position;
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin absolute($args) {
|
12
|
+
@include _position(absolute, $args);
|
13
|
+
}
|
14
|
+
@mixin relative($args) {
|
15
|
+
@include _position(relative, $args);
|
16
|
+
}
|
17
|
+
@mixin fixed($args) {
|
18
|
+
@include _position(fixed, $args);
|
19
|
+
}
|
20
|
+
|
21
|
+
@mixin sizing($args) {
|
22
|
+
@if length($args) == 2 {
|
23
|
+
width: nth($args, 1);
|
24
|
+
height: nth($args, 2);
|
25
|
+
}
|
26
|
+
@else {
|
27
|
+
width: $args;
|
28
|
+
height: $args;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@mixin circle($args) {
|
33
|
+
@include sizing($args);
|
34
|
+
border-radius: 50%;
|
35
|
+
}
|
File without changes
|
File without changes
|
data/lib/structure.yml
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
directories:
|
2
|
+
- settings
|
3
|
+
- utilities
|
4
|
+
- components
|
5
|
+
- controllers
|
6
|
+
- settings/bootstrap-overrides
|
7
|
+
|
8
|
+
files:
|
9
|
+
settings:
|
10
|
+
- bootstrap-variables
|
11
|
+
- bootstrap-components
|
12
|
+
- bootstrap-overrides
|
13
|
+
- custom-variables
|
14
|
+
- z-index-variables
|
15
|
+
utilities:
|
16
|
+
- functions
|
17
|
+
- mixins
|
18
|
+
- shared
|
19
|
+
- typography
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'netguru_bootstrapper/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "netguru_bootstrapper"
|
8
|
+
spec.version = NetguruBootstrapper::VERSION
|
9
|
+
spec.authors = ["Mateusz Czajka"]
|
10
|
+
spec.email = ["mat.czajka@gmail.com"]
|
11
|
+
spec.summary = 'Twitter Bootstrap generator for Rails'
|
12
|
+
spec.homepage = 'https://github.com/netguru/netguru_bootstrapper'
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files`.split($/)
|
16
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
21
|
+
spec.add_development_dependency "rake"
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: netguru_bootstrapper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mateusz Czajka
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-10-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description:
|
42
|
+
email:
|
43
|
+
- mat.czajka@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
49
|
+
- Gemfile
|
50
|
+
- LICENSE.txt
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- lib/netguru_bootstrapper.rb
|
54
|
+
- lib/netguru_bootstrapper/engine.rb
|
55
|
+
- lib/netguru_bootstrapper/generators/netguru_bootstrapper/bootstrap_generator.rb
|
56
|
+
- lib/netguru_bootstrapper/generators/templates/application.scss
|
57
|
+
- lib/netguru_bootstrapper/generators/templates/settings/bootstrap-components.scss
|
58
|
+
- lib/netguru_bootstrapper/generators/templates/settings/bootstrap-overrides.scss
|
59
|
+
- lib/netguru_bootstrapper/generators/templates/settings/bootstrap-variables.scss
|
60
|
+
- lib/netguru_bootstrapper/generators/templates/settings/custom-variables.scss
|
61
|
+
- lib/netguru_bootstrapper/generators/templates/settings/z-index-variables.scss
|
62
|
+
- lib/netguru_bootstrapper/generators/templates/utilities/functions.scss
|
63
|
+
- lib/netguru_bootstrapper/generators/templates/utilities/mixins.scss
|
64
|
+
- lib/netguru_bootstrapper/generators/templates/utilities/shared.scss
|
65
|
+
- lib/netguru_bootstrapper/generators/templates/utilities/typography.scss
|
66
|
+
- lib/netguru_bootstrapper/structure_parser.rb
|
67
|
+
- lib/netguru_bootstrapper/version.rb
|
68
|
+
- lib/structure.yml
|
69
|
+
- netguru_bootstrapper.gemspec
|
70
|
+
homepage: https://github.com/netguru/netguru_bootstrapper
|
71
|
+
licenses:
|
72
|
+
- MIT
|
73
|
+
metadata: {}
|
74
|
+
post_install_message:
|
75
|
+
rdoc_options: []
|
76
|
+
require_paths:
|
77
|
+
- lib
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
requirements: []
|
89
|
+
rubyforge_project:
|
90
|
+
rubygems_version: 2.2.2
|
91
|
+
signing_key:
|
92
|
+
specification_version: 4
|
93
|
+
summary: Twitter Bootstrap generator for Rails
|
94
|
+
test_files: []
|