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.
@@ -0,0 +1,9 @@
1
+ $z-index-1: 1000;
2
+ $z-index-2: 2000;
3
+ $z-index-3: 3000;
4
+ $z-index-4: 4000;
5
+ $z-index-5: 5000;
6
+ $z-index-6: 6000;
7
+ $z-index-7: 7000;
8
+ $z-index-8: 8000;
9
+ $z-index-9: 9000;
@@ -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
+ }
@@ -0,0 +1,10 @@
1
+ require 'yaml'
2
+
3
+ module NetguruBootstrapper
4
+ class StructureParser < OpenStruct
5
+ def initialize
6
+ path = File.expand_path('../../structure.yml', __FILE__)
7
+ super(YAML.load_file(path))
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module NetguruBootstrapper
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,5 @@
1
+ require 'netguru_bootstrapper/version'
2
+
3
+ module NetguruBootstrapper
4
+ require 'netguru_bootstrapper/engine' if defined?(Rails)
5
+ end
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: []