fastfood 0.1.0

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 (84) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.travis.yml +26 -0
  4. data/Gemfile +3 -0
  5. data/LICENSE +21 -0
  6. data/README.md +18 -0
  7. data/Rakefile +12 -0
  8. data/app/assets/stylesheets/_fastfood.scss +48 -0
  9. data/app/assets/stylesheets/fastfood/_alerts.scss +73 -0
  10. data/app/assets/stylesheets/fastfood/_badges.scss +68 -0
  11. data/app/assets/stylesheets/fastfood/_breadcrumbs.scss +26 -0
  12. data/app/assets/stylesheets/fastfood/_button-groups.scss +243 -0
  13. data/app/assets/stylesheets/fastfood/_buttons.scss +160 -0
  14. data/app/assets/stylesheets/fastfood/_carousel.scss +269 -0
  15. data/app/assets/stylesheets/fastfood/_close.scss +36 -0
  16. data/app/assets/stylesheets/fastfood/_code.scss +69 -0
  17. data/app/assets/stylesheets/fastfood/_component-animations.scss +37 -0
  18. data/app/assets/stylesheets/fastfood/_dropdowns.scss +214 -0
  19. data/app/assets/stylesheets/fastfood/_forms.scss +578 -0
  20. data/app/assets/stylesheets/fastfood/_grid.scss +85 -0
  21. data/app/assets/stylesheets/fastfood/_input-groups.scss +166 -0
  22. data/app/assets/stylesheets/fastfood/_jumbotron.scss +50 -0
  23. data/app/assets/stylesheets/fastfood/_labels.scss +66 -0
  24. data/app/assets/stylesheets/fastfood/_list-group.scss +124 -0
  25. data/app/assets/stylesheets/fastfood/_media.scss +61 -0
  26. data/app/assets/stylesheets/fastfood/_mixins.scss +39 -0
  27. data/app/assets/stylesheets/fastfood/_modals.scss +150 -0
  28. data/app/assets/stylesheets/fastfood/_navbar.scss +664 -0
  29. data/app/assets/stylesheets/fastfood/_navs.scss +242 -0
  30. data/app/assets/stylesheets/fastfood/_normalize.scss +427 -0
  31. data/app/assets/stylesheets/fastfood/_pager.scss +54 -0
  32. data/app/assets/stylesheets/fastfood/_pagination.scss +88 -0
  33. data/app/assets/stylesheets/fastfood/_panels.scss +265 -0
  34. data/app/assets/stylesheets/fastfood/_popovers.scss +135 -0
  35. data/app/assets/stylesheets/fastfood/_print.scss +107 -0
  36. data/app/assets/stylesheets/fastfood/_progress-bars.scss +87 -0
  37. data/app/assets/stylesheets/fastfood/_responsive-embed.scss +35 -0
  38. data/app/assets/stylesheets/fastfood/_responsive-utilities.scss +177 -0
  39. data/app/assets/stylesheets/fastfood/_scaffolding.scss +204 -0
  40. data/app/assets/stylesheets/fastfood/_tables.scss +234 -0
  41. data/app/assets/stylesheets/fastfood/_theme.scss +273 -0
  42. data/app/assets/stylesheets/fastfood/_thumbnails.scss +38 -0
  43. data/app/assets/stylesheets/fastfood/_tooltip.scss +102 -0
  44. data/app/assets/stylesheets/fastfood/_type.scss +306 -0
  45. data/app/assets/stylesheets/fastfood/_utilities.scss +73 -0
  46. data/app/assets/stylesheets/fastfood/_wells.scss +29 -0
  47. data/app/assets/stylesheets/fastfood/mixins/_alerts.scss +14 -0
  48. data/app/assets/stylesheets/fastfood/mixins/_background-variant.scss +11 -0
  49. data/app/assets/stylesheets/fastfood/mixins/_border-radius.scss +18 -0
  50. data/app/assets/stylesheets/fastfood/mixins/_buttons.scss +52 -0
  51. data/app/assets/stylesheets/fastfood/mixins/_center-block.scss +7 -0
  52. data/app/assets/stylesheets/fastfood/mixins/_clearfix.scss +22 -0
  53. data/app/assets/stylesheets/fastfood/mixins/_forms.scss +88 -0
  54. data/app/assets/stylesheets/fastfood/mixins/_gradients.scss +58 -0
  55. data/app/assets/stylesheets/fastfood/mixins/_grid-framework.scss +81 -0
  56. data/app/assets/stylesheets/fastfood/mixins/_grid.scss +123 -0
  57. data/app/assets/stylesheets/fastfood/mixins/_hide-text.scss +21 -0
  58. data/app/assets/stylesheets/fastfood/mixins/_image.scss +33 -0
  59. data/app/assets/stylesheets/fastfood/mixins/_labels.scss +12 -0
  60. data/app/assets/stylesheets/fastfood/mixins/_list-group.scss +31 -0
  61. data/app/assets/stylesheets/fastfood/mixins/_nav-divider.scss +10 -0
  62. data/app/assets/stylesheets/fastfood/mixins/_nav-vertical-align.scss +9 -0
  63. data/app/assets/stylesheets/fastfood/mixins/_opacity.scss +8 -0
  64. data/app/assets/stylesheets/fastfood/mixins/_pagination.scss +23 -0
  65. data/app/assets/stylesheets/fastfood/mixins/_panels.scss +24 -0
  66. data/app/assets/stylesheets/fastfood/mixins/_progress-bar.scss +10 -0
  67. data/app/assets/stylesheets/fastfood/mixins/_reset-filter.scss +8 -0
  68. data/app/assets/stylesheets/fastfood/mixins/_resize.scss +6 -0
  69. data/app/assets/stylesheets/fastfood/mixins/_responsive-visibility.scss +21 -0
  70. data/app/assets/stylesheets/fastfood/mixins/_size.scss +10 -0
  71. data/app/assets/stylesheets/fastfood/mixins/_tab-focus.scss +9 -0
  72. data/app/assets/stylesheets/fastfood/mixins/_table-row.scss +28 -0
  73. data/app/assets/stylesheets/fastfood/mixins/_text-emphasis.scss +11 -0
  74. data/app/assets/stylesheets/fastfood/mixins/_text-overflow.scss +8 -0
  75. data/app/assets/stylesheets/fastfood/mixins/_vendor-prefixes.scss +222 -0
  76. data/bin/fastfood +6 -0
  77. data/fastfood.gemspec +30 -0
  78. data/lib/.gitkeep +0 -0
  79. data/lib/fastfood.rb +28 -0
  80. data/lib/fastfood/engine.rb +5 -0
  81. data/lib/fastfood/generator.rb +80 -0
  82. data/lib/fastfood/version.rb +3 -0
  83. data/lib/tasks/install.rake +20 -0
  84. metadata +225 -0
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # CodeKit needs relative paths
4
+ require File.dirname(__FILE__) + '/../lib/fastfood.rb'
5
+
6
+ FastFood::Generator.start
@@ -0,0 +1,30 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+ require "fastfood/version"
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "fastfood"
6
+ s.version = FastFood::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["Flaverton Rodrigues Rosa"]
9
+ s.email = "contato@flaverton.com"
10
+ s.license = "MIT"
11
+ s.homepage = "https://github.com/flavertonrr/fastfood"
12
+ s.summary = "Simple and fast ui kit"
13
+ s.description = <<-DESC
14
+ Simple and fast ui kit
15
+ DESC
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.require_paths = ["lib"]
21
+
22
+ s.add_runtime_dependency("sass", "~> 3.4")
23
+ s.add_runtime_dependency("thor", "~> 0.19")
24
+
25
+ s.add_development_dependency("aruba", "~> 0.6.2")
26
+ s.add_development_dependency("css_parser", "~> 1.3")
27
+ s.add_development_dependency("rake", "~> 10.4")
28
+ s.add_development_dependency("rspec", "~> 3.3")
29
+ s.add_development_dependency("scss_lint", "0.41")
30
+ end
File without changes
@@ -0,0 +1,28 @@
1
+ # CodeKit needs relative paths
2
+ dir = File.dirname(__FILE__)
3
+ $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
4
+
5
+ require "fastfood/generator"
6
+
7
+ unless defined?(Sass)
8
+ require 'sass'
9
+ end
10
+
11
+ module FastFood
12
+ if defined?(Rails) && defined?(Rails::Engine)
13
+ class Engine < ::Rails::Engine
14
+ require 'fastfood/engine'
15
+ end
16
+
17
+ module Rails
18
+ class Railtie < ::Rails::Railtie
19
+ rake_tasks do
20
+ load "tasks/install.rake"
21
+ end
22
+ end
23
+ end
24
+ else
25
+ fastfood_path = File.expand_path("../../app/assets/stylesheets", __FILE__)
26
+ ENV["SASS_PATH"] = [ENV["SASS_PATH"], fastfood_path].compact.join(File::PATH_SEPARATOR)
27
+ end
28
+ end
@@ -0,0 +1,5 @@
1
+ module FastFood
2
+ class Engine < Rails::Engine
3
+ # auto wire
4
+ end
5
+ end
@@ -0,0 +1,80 @@
1
+ require 'fastfood/version'
2
+ require "fileutils"
3
+ require 'thor'
4
+
5
+ module FastFood
6
+ class Generator < Thor
7
+ map ['-v', '--version'] => :version
8
+
9
+ desc 'install', 'Install FastFood into your project'
10
+ method_options :path => :string, :force => :boolean
11
+ def install
12
+ if fastfood_files_already_exist? && !options[:force]
13
+ puts "FastFood files already installed, doing nothing."
14
+ else
15
+ install_files
16
+ puts "FastFood files installed to #{install_path}/"
17
+ end
18
+ end
19
+
20
+ desc 'update', 'Update FastFood'
21
+ method_options :path => :string
22
+ def update
23
+ if fastfood_files_already_exist?
24
+ remove_fastfood_directory
25
+ install_files
26
+ puts "FastFood files updated."
27
+ else
28
+ puts "No existing fastfood installation. Doing nothing."
29
+ end
30
+ end
31
+
32
+ desc 'version', 'Show FastFood version'
33
+ def version
34
+ say "FastFood #{FastFood::VERSION}"
35
+ end
36
+
37
+ private
38
+
39
+ def fastfood_files_already_exist?
40
+ install_path.exist?
41
+ end
42
+
43
+ def install_path
44
+ @install_path ||= if options[:path]
45
+ Pathname.new(File.join(options[:path], 'fastfood'))
46
+ else
47
+ Pathname.new('fastfood')
48
+ end
49
+ end
50
+
51
+ def install_files
52
+ make_install_directory
53
+ copy_in_scss_files
54
+ end
55
+
56
+ def remove_fastfood_directory
57
+ FileUtils.rm_rf("fastfood")
58
+ end
59
+
60
+ def make_install_directory
61
+ FileUtils.mkdir_p(install_path)
62
+ end
63
+
64
+ def copy_in_scss_files
65
+ FileUtils.cp_r(all_stylesheets, install_path)
66
+ end
67
+
68
+ def all_stylesheets
69
+ Dir["#{stylesheets_directory}/*"]
70
+ end
71
+
72
+ def stylesheets_directory
73
+ File.join(top_level_directory, "app", "assets", "stylesheets")
74
+ end
75
+
76
+ def top_level_directory
77
+ File.dirname(File.dirname(File.dirname(__FILE__)))
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,3 @@
1
+ module FastFood
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,20 @@
1
+ # Needed for pre-3.1.
2
+
3
+ require "fileutils"
4
+ require "find"
5
+
6
+ namespace :fastfood do
7
+ desc "Move files to the Rails assets directory."
8
+ task :install, [:sass_path] do |t, args|
9
+ args.with_defaults(:sass_path => 'public/stylesheets/sass')
10
+ source_root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
11
+ FileUtils.mkdir_p("#{Rails.root}/#{args.sass_path}/fastfood")
12
+ FileUtils.cp_r("#{source_root}/app/assets/stylesheets/.", "#{Rails.root}/#{args.sass_path}/fastfood", { :preserve => true })
13
+ Find.find("#{Rails.root}/#{args.sass_path}/fastfood") do |path|
14
+ if path.end_with?(".css.scss")
15
+ path_without_css_extension = path.gsub(/\.css\.scss$/, ".scss")
16
+ FileUtils.mv(path, path_without_css_extension)
17
+ end
18
+ end
19
+ end
20
+ end
metadata ADDED
@@ -0,0 +1,225 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fastfood
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Flaverton Rodrigues Rosa
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-01-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sass
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: thor
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.19'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.19'
41
+ - !ruby/object:Gem::Dependency
42
+ name: aruba
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.6.2
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.6.2
55
+ - !ruby/object:Gem::Dependency
56
+ name: css_parser
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.4'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.4'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.3'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.3'
97
+ - !ruby/object:Gem::Dependency
98
+ name: scss_lint
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '='
102
+ - !ruby/object:Gem::Version
103
+ version: '0.41'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '='
109
+ - !ruby/object:Gem::Version
110
+ version: '0.41'
111
+ description: |
112
+ Simple and fast ui kit
113
+ email: contato@flaverton.com
114
+ executables:
115
+ - fastfood
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - ".gitignore"
120
+ - ".travis.yml"
121
+ - Gemfile
122
+ - LICENSE
123
+ - README.md
124
+ - Rakefile
125
+ - app/assets/stylesheets/_fastfood.scss
126
+ - app/assets/stylesheets/fastfood/_alerts.scss
127
+ - app/assets/stylesheets/fastfood/_badges.scss
128
+ - app/assets/stylesheets/fastfood/_breadcrumbs.scss
129
+ - app/assets/stylesheets/fastfood/_button-groups.scss
130
+ - app/assets/stylesheets/fastfood/_buttons.scss
131
+ - app/assets/stylesheets/fastfood/_carousel.scss
132
+ - app/assets/stylesheets/fastfood/_close.scss
133
+ - app/assets/stylesheets/fastfood/_code.scss
134
+ - app/assets/stylesheets/fastfood/_component-animations.scss
135
+ - app/assets/stylesheets/fastfood/_dropdowns.scss
136
+ - app/assets/stylesheets/fastfood/_forms.scss
137
+ - app/assets/stylesheets/fastfood/_grid.scss
138
+ - app/assets/stylesheets/fastfood/_input-groups.scss
139
+ - app/assets/stylesheets/fastfood/_jumbotron.scss
140
+ - app/assets/stylesheets/fastfood/_labels.scss
141
+ - app/assets/stylesheets/fastfood/_list-group.scss
142
+ - app/assets/stylesheets/fastfood/_media.scss
143
+ - app/assets/stylesheets/fastfood/_mixins.scss
144
+ - app/assets/stylesheets/fastfood/_modals.scss
145
+ - app/assets/stylesheets/fastfood/_navbar.scss
146
+ - app/assets/stylesheets/fastfood/_navs.scss
147
+ - app/assets/stylesheets/fastfood/_normalize.scss
148
+ - app/assets/stylesheets/fastfood/_pager.scss
149
+ - app/assets/stylesheets/fastfood/_pagination.scss
150
+ - app/assets/stylesheets/fastfood/_panels.scss
151
+ - app/assets/stylesheets/fastfood/_popovers.scss
152
+ - app/assets/stylesheets/fastfood/_print.scss
153
+ - app/assets/stylesheets/fastfood/_progress-bars.scss
154
+ - app/assets/stylesheets/fastfood/_responsive-embed.scss
155
+ - app/assets/stylesheets/fastfood/_responsive-utilities.scss
156
+ - app/assets/stylesheets/fastfood/_scaffolding.scss
157
+ - app/assets/stylesheets/fastfood/_tables.scss
158
+ - app/assets/stylesheets/fastfood/_theme.scss
159
+ - app/assets/stylesheets/fastfood/_thumbnails.scss
160
+ - app/assets/stylesheets/fastfood/_tooltip.scss
161
+ - app/assets/stylesheets/fastfood/_type.scss
162
+ - app/assets/stylesheets/fastfood/_utilities.scss
163
+ - app/assets/stylesheets/fastfood/_wells.scss
164
+ - app/assets/stylesheets/fastfood/mixins/_alerts.scss
165
+ - app/assets/stylesheets/fastfood/mixins/_background-variant.scss
166
+ - app/assets/stylesheets/fastfood/mixins/_border-radius.scss
167
+ - app/assets/stylesheets/fastfood/mixins/_buttons.scss
168
+ - app/assets/stylesheets/fastfood/mixins/_center-block.scss
169
+ - app/assets/stylesheets/fastfood/mixins/_clearfix.scss
170
+ - app/assets/stylesheets/fastfood/mixins/_forms.scss
171
+ - app/assets/stylesheets/fastfood/mixins/_gradients.scss
172
+ - app/assets/stylesheets/fastfood/mixins/_grid-framework.scss
173
+ - app/assets/stylesheets/fastfood/mixins/_grid.scss
174
+ - app/assets/stylesheets/fastfood/mixins/_hide-text.scss
175
+ - app/assets/stylesheets/fastfood/mixins/_image.scss
176
+ - app/assets/stylesheets/fastfood/mixins/_labels.scss
177
+ - app/assets/stylesheets/fastfood/mixins/_list-group.scss
178
+ - app/assets/stylesheets/fastfood/mixins/_nav-divider.scss
179
+ - app/assets/stylesheets/fastfood/mixins/_nav-vertical-align.scss
180
+ - app/assets/stylesheets/fastfood/mixins/_opacity.scss
181
+ - app/assets/stylesheets/fastfood/mixins/_pagination.scss
182
+ - app/assets/stylesheets/fastfood/mixins/_panels.scss
183
+ - app/assets/stylesheets/fastfood/mixins/_progress-bar.scss
184
+ - app/assets/stylesheets/fastfood/mixins/_reset-filter.scss
185
+ - app/assets/stylesheets/fastfood/mixins/_resize.scss
186
+ - app/assets/stylesheets/fastfood/mixins/_responsive-visibility.scss
187
+ - app/assets/stylesheets/fastfood/mixins/_size.scss
188
+ - app/assets/stylesheets/fastfood/mixins/_tab-focus.scss
189
+ - app/assets/stylesheets/fastfood/mixins/_table-row.scss
190
+ - app/assets/stylesheets/fastfood/mixins/_text-emphasis.scss
191
+ - app/assets/stylesheets/fastfood/mixins/_text-overflow.scss
192
+ - app/assets/stylesheets/fastfood/mixins/_vendor-prefixes.scss
193
+ - bin/fastfood
194
+ - fastfood.gemspec
195
+ - lib/.gitkeep
196
+ - lib/fastfood.rb
197
+ - lib/fastfood/engine.rb
198
+ - lib/fastfood/generator.rb
199
+ - lib/fastfood/version.rb
200
+ - lib/tasks/install.rake
201
+ homepage: https://github.com/flavertonrr/fastfood
202
+ licenses:
203
+ - MIT
204
+ metadata: {}
205
+ post_install_message:
206
+ rdoc_options: []
207
+ require_paths:
208
+ - lib
209
+ required_ruby_version: !ruby/object:Gem::Requirement
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ required_rubygems_version: !ruby/object:Gem::Requirement
215
+ requirements:
216
+ - - ">="
217
+ - !ruby/object:Gem::Version
218
+ version: '0'
219
+ requirements: []
220
+ rubyforge_project:
221
+ rubygems_version: 2.2.2
222
+ signing_key:
223
+ specification_version: 4
224
+ summary: Simple and fast ui kit
225
+ test_files: []