skyblue_rails 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +22 -0
  3. data/assets/fonts/pe-icon/Pe-icon-7-stroke.eot +0 -0
  4. data/assets/fonts/pe-icon/Pe-icon-7-stroke.svg +212 -0
  5. data/assets/fonts/pe-icon/Pe-icon-7-stroke.ttf +0 -0
  6. data/assets/fonts/pe-icon/Pe-icon-7-stroke.woff +0 -0
  7. data/assets/images/select-webkit-backup.png +0 -0
  8. data/assets/images/select-webkit.png +0 -0
  9. data/assets/javascripts/skyblue/ie.js +1 -0
  10. data/assets/javascripts/skyblue/ie/html5shiv.js +322 -0
  11. data/assets/javascripts/skyblue/ie/respond.src.js +237 -0
  12. data/assets/stylesheets/skyblue.scss +38 -0
  13. data/assets/stylesheets/skyblue/_buttons.scss +136 -0
  14. data/assets/stylesheets/skyblue/_forms.scss +221 -0
  15. data/assets/stylesheets/skyblue/_grid.scss +78 -0
  16. data/assets/stylesheets/skyblue/_helpers.scss +72 -0
  17. data/assets/stylesheets/skyblue/_icons.scss +633 -0
  18. data/assets/stylesheets/skyblue/_main.scss +15 -0
  19. data/assets/stylesheets/skyblue/_mixins.scss +46 -0
  20. data/assets/stylesheets/skyblue/_reset.scss +77 -0
  21. data/assets/stylesheets/skyblue/_tables.scss +174 -0
  22. data/assets/stylesheets/skyblue/_typography.scss +162 -0
  23. data/assets/stylesheets/skyblue/_variables.scss +100 -0
  24. data/lib/skyblue/rails.rb +20 -0
  25. data/lib/skyblue/rails/railtie.rb +13 -0
  26. data/lib/skyblue/rails/version.rb +5 -0
  27. data/lib/skyblue_rails.rb +2 -0
  28. data/readme.md +58 -0
  29. data/spec/dummy/README.rdoc +28 -0
  30. data/spec/dummy/Rakefile +6 -0
  31. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  32. data/spec/dummy/app/assets/stylesheets/application.scss +15 -0
  33. data/spec/dummy/app/controllers/application_controller.rb +7 -0
  34. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  35. data/spec/dummy/app/views/application/icons_test.html.erb +5 -0
  36. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  37. data/spec/dummy/bin/bundle +3 -0
  38. data/spec/dummy/bin/rails +4 -0
  39. data/spec/dummy/bin/rake +4 -0
  40. data/spec/dummy/bin/setup +29 -0
  41. data/spec/dummy/config.ru +4 -0
  42. data/spec/dummy/config/application.rb +26 -0
  43. data/spec/dummy/config/boot.rb +5 -0
  44. data/spec/dummy/config/database.yml +25 -0
  45. data/spec/dummy/config/environment.rb +5 -0
  46. data/spec/dummy/config/environments/development.rb +41 -0
  47. data/spec/dummy/config/environments/production.rb +79 -0
  48. data/spec/dummy/config/environments/test.rb +42 -0
  49. data/spec/dummy/config/initializers/assets.rb +11 -0
  50. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  51. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  52. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  53. data/spec/dummy/config/initializers/inflections.rb +16 -0
  54. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  55. data/spec/dummy/config/initializers/session_store.rb +3 -0
  56. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  57. data/spec/dummy/config/locales/en.yml +23 -0
  58. data/spec/dummy/config/routes.rb +3 -0
  59. data/spec/dummy/config/secrets.yml +22 -0
  60. data/spec/dummy/db/development.sqlite3 +0 -0
  61. data/spec/dummy/db/schema.rb +16 -0
  62. data/spec/dummy/db/test.sqlite3 +0 -0
  63. data/spec/dummy/log/test.log +49 -0
  64. data/spec/dummy/public/404.html +67 -0
  65. data/spec/dummy/public/422.html +67 -0
  66. data/spec/dummy/public/500.html +66 -0
  67. data/spec/dummy/public/favicon.ico +0 -0
  68. data/spec/skyblue/rails/railtie_spec.rb +43 -0
  69. data/spec/skyblue/rails_spec.rb +17 -0
  70. data/spec/spec_helper.rb +16 -0
  71. metadata +241 -0
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,43 @@
1
+ require 'spec_helper'
2
+
3
+ describe Skyblue::Rails::Railtie do
4
+ let(:gemfile) { File.expand_path('../Gemfile', File.dirname(__FILE__)) }
5
+ let(:asset_cache_directory) { "spec/dummy/tmp/cache/" }
6
+ let(:compiled_asset_directory) { "spec/dummy/public/assets/" }
7
+
8
+ let(:compiled_css_file) { Dir.glob("#{compiled_asset_directory}/application*.css")[0]}
9
+ let(:compiled_css) { File.read(compiled_css_file) }
10
+
11
+ let(:compiled_js_file) { Dir.glob("#{compiled_asset_directory}/application*.js")[0]}
12
+ let(:compiled_js) { File.read(compiled_js_file) }
13
+
14
+ let(:compiled_font_files) { Dir.glob("#{compiled_asset_directory}/pe-icon/*")}
15
+ let(:compiled_image_files) { Dir.glob("#{compiled_asset_directory}/*.png")}
16
+
17
+ it 'compiles files' do
18
+ begin
19
+ precompile_command = "bundle exec rake assets:precompile GEMFILE=#{gemfile}"
20
+ compiled = Dir.chdir "spec/dummy" do
21
+ system(precompile_command)
22
+ end
23
+ assert(compiled, "Assets compile successfully")
24
+
25
+ # css
26
+ assert_match(/margin-top-5/, compiled_css, "it includes Skyblue")
27
+ assert_match(%r{/assets/pe-icon/Pe-icon-7-stroke}, compiled_css, "it has slugged font paths")
28
+
29
+ # js
30
+ assert_match(/matchMedia/, compiled_js, "it may include skyblue/ie")
31
+
32
+ # fonts
33
+ assert_equal(4, compiled_font_files.length)
34
+
35
+ # images
36
+ assert_equal(2, compiled_image_files.length)
37
+
38
+ ensure
39
+
40
+ FileUtils.rm_rf [asset_cache_directory, compiled_asset_directory], secure: true
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+
4
+ describe Skyblue::Rails do
5
+ it 'puts skyblue in Sass load paths' do
6
+ assert(Sass.compile("@import 'skyblue';"), 'it finds the whole framework')
7
+ assert(Sass.compile("@import 'skyblue/_variables';"), 'it finds individual files')
8
+ end
9
+
10
+ it 'puts skyblue in Sprockets load paths' do
11
+ environment = Rails.application.assets
12
+ assert(environment.find_asset('skyblue/ie.js'), "it exposes JS")
13
+ assert(environment.find_asset('application.js'), "it exposes JS")
14
+ assert(environment.find_asset('skyblue.css'), "it exposes CSS")
15
+ assert(environment.find_asset('application.css'), "it exposes CSS")
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ require "minitest/autorun"
2
+ require "minitest/reporters"
3
+
4
+ # Configure Rails Environment
5
+ ENV["RAILS_ENV"] = "test"
6
+
7
+ require File.expand_path("../../spec/dummy/config/environment.rb", __FILE__)
8
+ require "rails/test_help"
9
+
10
+ Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new
11
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
12
+ # to be shown.
13
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
14
+
15
+ # Load support files
16
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
metadata ADDED
@@ -0,0 +1,241 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: skyblue_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.6
5
+ platform: ruby
6
+ authors:
7
+ - Robert Mosolgo
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: sass-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.6'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sqlite3
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest-reporters
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
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
+ description: SkyBlue is a Bootstrap-like style framework written in Sass. `skyblue_rails`
98
+ adds SkyBlue to the Rails asset pipeline.
99
+ email:
100
+ - rdmosolgo@gmail.com
101
+ executables: []
102
+ extensions: []
103
+ extra_rdoc_files: []
104
+ files:
105
+ - LICENSE.txt
106
+ - assets/fonts/pe-icon/Pe-icon-7-stroke.eot
107
+ - assets/fonts/pe-icon/Pe-icon-7-stroke.svg
108
+ - assets/fonts/pe-icon/Pe-icon-7-stroke.ttf
109
+ - assets/fonts/pe-icon/Pe-icon-7-stroke.woff
110
+ - assets/images/select-webkit-backup.png
111
+ - assets/images/select-webkit.png
112
+ - assets/javascripts/skyblue/ie.js
113
+ - assets/javascripts/skyblue/ie/html5shiv.js
114
+ - assets/javascripts/skyblue/ie/respond.src.js
115
+ - assets/stylesheets/skyblue.scss
116
+ - assets/stylesheets/skyblue/_buttons.scss
117
+ - assets/stylesheets/skyblue/_forms.scss
118
+ - assets/stylesheets/skyblue/_grid.scss
119
+ - assets/stylesheets/skyblue/_helpers.scss
120
+ - assets/stylesheets/skyblue/_icons.scss
121
+ - assets/stylesheets/skyblue/_main.scss
122
+ - assets/stylesheets/skyblue/_mixins.scss
123
+ - assets/stylesheets/skyblue/_reset.scss
124
+ - assets/stylesheets/skyblue/_tables.scss
125
+ - assets/stylesheets/skyblue/_typography.scss
126
+ - assets/stylesheets/skyblue/_variables.scss
127
+ - lib/skyblue/rails.rb
128
+ - lib/skyblue/rails/railtie.rb
129
+ - lib/skyblue/rails/version.rb
130
+ - lib/skyblue_rails.rb
131
+ - readme.md
132
+ - spec/dummy/README.rdoc
133
+ - spec/dummy/Rakefile
134
+ - spec/dummy/app/assets/javascripts/application.js
135
+ - spec/dummy/app/assets/stylesheets/application.scss
136
+ - spec/dummy/app/controllers/application_controller.rb
137
+ - spec/dummy/app/helpers/application_helper.rb
138
+ - spec/dummy/app/views/application/icons_test.html.erb
139
+ - spec/dummy/app/views/layouts/application.html.erb
140
+ - spec/dummy/bin/bundle
141
+ - spec/dummy/bin/rails
142
+ - spec/dummy/bin/rake
143
+ - spec/dummy/bin/setup
144
+ - spec/dummy/config.ru
145
+ - spec/dummy/config/application.rb
146
+ - spec/dummy/config/boot.rb
147
+ - spec/dummy/config/database.yml
148
+ - spec/dummy/config/environment.rb
149
+ - spec/dummy/config/environments/development.rb
150
+ - spec/dummy/config/environments/production.rb
151
+ - spec/dummy/config/environments/test.rb
152
+ - spec/dummy/config/initializers/assets.rb
153
+ - spec/dummy/config/initializers/backtrace_silencers.rb
154
+ - spec/dummy/config/initializers/cookies_serializer.rb
155
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
156
+ - spec/dummy/config/initializers/inflections.rb
157
+ - spec/dummy/config/initializers/mime_types.rb
158
+ - spec/dummy/config/initializers/session_store.rb
159
+ - spec/dummy/config/initializers/wrap_parameters.rb
160
+ - spec/dummy/config/locales/en.yml
161
+ - spec/dummy/config/routes.rb
162
+ - spec/dummy/config/secrets.yml
163
+ - spec/dummy/db/development.sqlite3
164
+ - spec/dummy/db/schema.rb
165
+ - spec/dummy/db/test.sqlite3
166
+ - spec/dummy/log/test.log
167
+ - spec/dummy/public/404.html
168
+ - spec/dummy/public/422.html
169
+ - spec/dummy/public/500.html
170
+ - spec/dummy/public/favicon.ico
171
+ - spec/skyblue/rails/railtie_spec.rb
172
+ - spec/skyblue/rails_spec.rb
173
+ - spec/spec_helper.rb
174
+ homepage: http://github.com/rmosolgo/skyblue_rails
175
+ licenses:
176
+ - MIT
177
+ metadata: {}
178
+ post_install_message:
179
+ rdoc_options: []
180
+ require_paths:
181
+ - lib
182
+ required_ruby_version: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ required_rubygems_version: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
192
+ requirements: []
193
+ rubyforge_project:
194
+ rubygems_version: 2.2.2
195
+ signing_key:
196
+ specification_version: 4
197
+ summary: Use the SkyBlue style framework with Rails
198
+ test_files:
199
+ - spec/dummy/app/assets/javascripts/application.js
200
+ - spec/dummy/app/assets/stylesheets/application.scss
201
+ - spec/dummy/app/controllers/application_controller.rb
202
+ - spec/dummy/app/helpers/application_helper.rb
203
+ - spec/dummy/app/views/application/icons_test.html.erb
204
+ - spec/dummy/app/views/layouts/application.html.erb
205
+ - spec/dummy/bin/bundle
206
+ - spec/dummy/bin/rails
207
+ - spec/dummy/bin/rake
208
+ - spec/dummy/bin/setup
209
+ - spec/dummy/config/application.rb
210
+ - spec/dummy/config/boot.rb
211
+ - spec/dummy/config/database.yml
212
+ - spec/dummy/config/environment.rb
213
+ - spec/dummy/config/environments/development.rb
214
+ - spec/dummy/config/environments/production.rb
215
+ - spec/dummy/config/environments/test.rb
216
+ - spec/dummy/config/initializers/assets.rb
217
+ - spec/dummy/config/initializers/backtrace_silencers.rb
218
+ - spec/dummy/config/initializers/cookies_serializer.rb
219
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
220
+ - spec/dummy/config/initializers/inflections.rb
221
+ - spec/dummy/config/initializers/mime_types.rb
222
+ - spec/dummy/config/initializers/session_store.rb
223
+ - spec/dummy/config/initializers/wrap_parameters.rb
224
+ - spec/dummy/config/locales/en.yml
225
+ - spec/dummy/config/routes.rb
226
+ - spec/dummy/config/secrets.yml
227
+ - spec/dummy/config.ru
228
+ - spec/dummy/db/development.sqlite3
229
+ - spec/dummy/db/schema.rb
230
+ - spec/dummy/db/test.sqlite3
231
+ - spec/dummy/log/test.log
232
+ - spec/dummy/public/404.html
233
+ - spec/dummy/public/422.html
234
+ - spec/dummy/public/500.html
235
+ - spec/dummy/public/favicon.ico
236
+ - spec/dummy/Rakefile
237
+ - spec/dummy/README.rdoc
238
+ - spec/skyblue/rails/railtie_spec.rb
239
+ - spec/skyblue/rails_spec.rb
240
+ - spec/spec_helper.rb
241
+ has_rdoc: