modicon 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.
Files changed (64) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +33 -0
  3. data/Rakefile +40 -0
  4. data/app/assets/fonts/modicon/modicon.dev.svg +53 -0
  5. data/app/assets/fonts/modicon/modicon.eot +0 -0
  6. data/app/assets/fonts/modicon/modicon.svg +53 -0
  7. data/app/assets/fonts/modicon/modicon.ttf +0 -0
  8. data/app/assets/fonts/modicon/modicon.woff +0 -0
  9. data/app/assets/stylesheets/modicon/index.sass +124 -0
  10. data/config/routes.rb +2 -0
  11. data/lib/modicon.rb +3 -0
  12. data/lib/modicon/engine.rb +6 -0
  13. data/lib/modicon/version.rb +3 -0
  14. data/lib/tasks/modicon_tasks.rake +4 -0
  15. data/spec/dummy/README.md +0 -0
  16. data/spec/dummy/Rakefile +7 -0
  17. data/spec/dummy/app/assets/fonts/helveticaneueltstdth.eot +0 -0
  18. data/spec/dummy/app/assets/fonts/helveticaneueltstdth.svg +144 -0
  19. data/spec/dummy/app/assets/fonts/helveticaneueltstdth.ttf +0 -0
  20. data/spec/dummy/app/assets/fonts/helveticaneueltstdth.woff +0 -0
  21. data/spec/dummy/app/assets/stylesheets/_config.sass +15 -0
  22. data/spec/dummy/app/assets/stylesheets/_layout.sass +43 -0
  23. data/spec/dummy/app/assets/stylesheets/application.sass +5 -0
  24. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  25. data/spec/dummy/app/controllers/modicon_controller.rb +10 -0
  26. data/spec/dummy/app/views/layouts/application.html.haml +21 -0
  27. data/spec/dummy/app/views/modicon/index.html.haml +110 -0
  28. data/spec/dummy/config.ru +4 -0
  29. data/spec/dummy/config/application.rb +61 -0
  30. data/spec/dummy/config/boot.rb +10 -0
  31. data/spec/dummy/config/database.yml +25 -0
  32. data/spec/dummy/config/environment.rb +5 -0
  33. data/spec/dummy/config/environments/development.rb +37 -0
  34. data/spec/dummy/config/environments/production.rb +67 -0
  35. data/spec/dummy/config/environments/test.rb +37 -0
  36. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  37. data/spec/dummy/config/initializers/inflections.rb +15 -0
  38. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  39. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  40. data/spec/dummy/config/initializers/session_store.rb +8 -0
  41. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  42. data/spec/dummy/config/locales/en.yml +5 -0
  43. data/spec/dummy/config/routes.rb +3 -0
  44. data/spec/dummy/db/development.sqlite3 +0 -0
  45. data/spec/dummy/log/development.log +4313 -0
  46. data/spec/dummy/script/rails +6 -0
  47. data/spec/dummy/tmp/cache/assets/CB0/130/sprockets%2Fd87810c66e05721ba749c5901c1af296 +0 -0
  48. data/spec/dummy/tmp/cache/assets/CE3/000/sprockets%2Fa88d9c609d05fcc4670c8742b41816c0 +0 -0
  49. data/spec/dummy/tmp/cache/assets/D0B/4A0/sprockets%2F0ce5e4677f85538510a9c5c86bb2a0b0 +0 -0
  50. data/spec/dummy/tmp/cache/assets/D24/310/sprockets%2Febe08f689f659c024f467b77f32a1c49 +0 -0
  51. data/spec/dummy/tmp/cache/assets/D32/620/sprockets%2F29a7bbc465050a5860771eec32ec1f1c +0 -0
  52. data/spec/dummy/tmp/cache/assets/D55/140/sprockets%2F2dd971e9e7a9296b683de28e0ad5667a +0 -0
  53. data/spec/dummy/tmp/cache/assets/D60/1A0/sprockets%2F1a21b452e21f5a165454baa8f97dd1fd +0 -0
  54. data/spec/dummy/tmp/cache/assets/D71/550/sprockets%2F2b365b13b9dae7e7c44d90608cf6a6f3 +0 -0
  55. data/spec/dummy/tmp/cache/assets/D75/9A0/sprockets%2F99decc1e07902969bbf3d774b61d1db1 +0 -0
  56. data/spec/dummy/tmp/cache/assets/D82/980/sprockets%2F2f82fa1d9c2d78537a66d6c8ef442c9e +0 -0
  57. data/spec/dummy/tmp/cache/assets/D8A/570/sprockets%2Fec961acc2cd7e84d50046b1c0c55a10f +0 -0
  58. data/spec/dummy/tmp/cache/assets/E0E/FF0/sprockets%2Fa45c4c7021df7cc2b8e9f8ddd9be6f58 +0 -0
  59. data/spec/dummy/tmp/cache/sass/4ea2837916f5412bd06ec0b82938bff26340ee2c/index.sassc +0 -0
  60. data/spec/dummy/tmp/cache/sass/50332f6345f867b0bc14fe8d2ff0fdcd71b21bf4/index.cssc +0 -0
  61. data/spec/dummy/tmp/cache/sass/9fe0273e5538e41409db46559da0f4e8d52802b4/_config.sassc +0 -0
  62. data/spec/dummy/tmp/cache/sass/9fe0273e5538e41409db46559da0f4e8d52802b4/_layout.sassc +0 -0
  63. data/spec/dummy/tmp/cache/sass/9fe0273e5538e41409db46559da0f4e8d52802b4/application.sassc +0 -0
  64. metadata +211 -0
@@ -0,0 +1,15 @@
1
+ @mixin font-face($font-family, $file-path, $weight: normal, $style: normal, $asset-pipeline: true )
2
+ @font-face
3
+ font-family: $font-family
4
+ font-weight: $weight
5
+ font-style: $style
6
+ @if $asset-pipeline == true
7
+ src: font-url("#{$file-path}.eot")
8
+ src: font-url("#{$file-path}.eot?#iefix") format('embedded-opentype'), font-url("#{$file-path}.woff") format('woff'), font-url("#{$file-path}.ttf") format('truetype'), font-url("#{$file-path}.svg##{$font-family}") format('svg')
9
+ @else
10
+ src: url("#{$file-path}.eot")
11
+ src: url("#{$file-path}.eot?#iefix") format('embedded-opentype'), url("#{$file-path}.woff") format('woff'), url("#{$file-path}.ttf") format('truetype'), url("#{$file-path}.svg##{$font-family}") format('svg')
12
+
13
+ +font-face('modicon', 'modicon/modicon', normal, normal, true)
14
+ +font-face('HelveticaNeueLTStd-Th', 'helveticaneueltstdth', normal, normal, true)
15
+
@@ -0,0 +1,43 @@
1
+ h1
2
+ color: #5e5f61
3
+ font-family: "HelveticaNeueLTStd-Th", "HelveticaNeue", "Helvetica Neue", "Helvetica", "Arial", sans-serif
4
+ font-weight: normal
5
+ margin: 0
6
+
7
+ .container
8
+ margin: 0 auto
9
+ padding: 0 1%
10
+
11
+ .container > h1
12
+ margin-top: 1em
13
+
14
+ .container > h1 span
15
+ font-size: 0.5em
16
+
17
+ .section
18
+ border-top: 1px dotted #5e5f61
19
+ border-bottom: 1px dotted #5e5f61
20
+ padding: 1em 0
21
+
22
+ .section + .section
23
+ border-top: 0
24
+
25
+ .icon-column,
26
+ .deets-column
27
+ -webkit-box-sizing: border-box
28
+ -moz-box-sizing: border-box
29
+ box-sizing: border-box
30
+ display: inline-block
31
+ vertical-align: middle
32
+
33
+ .icon-column
34
+ width: 24%
35
+ margin-right: 1%
36
+
37
+ pre
38
+ color: #5e5f61
39
+ font-family: "Bitstream Vera Sans Mono", "Menslo LG M", "Menlo", "Monaco", monospace
40
+ font-size: 85%
41
+ line-height: 1.4
42
+ margin: 0
43
+
@@ -0,0 +1,5 @@
1
+ @import config
2
+ @import normalize-rails
3
+ @import modicon
4
+ @import layout
5
+
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,10 @@
1
+ class ModiconController < ApplicationController
2
+
3
+ def index
4
+ end
5
+
6
+ def show
7
+ render :action => params['page']
8
+ end
9
+
10
+ end
@@ -0,0 +1,21 @@
1
+ !!! 5
2
+ %html(lang="en")
3
+ %head
4
+ %meta(charset="utf-8")
5
+ %meta(http-equiv="X-UA-Compatible" content="IE=edge,chrome=1")
6
+ %title Modicon
7
+ %meta(name="description" content="")
8
+ %meta(name="keywords" content="")
9
+ %meta(name="author" content="Mode Set")
10
+ %meta(name="viewport" content="width=device-width, initial-scale=1.0")
11
+ %meta(name="imagetoolbar" content="no")
12
+ %meta(name="apple-touch-fullscreen" content="yes")
13
+ %meta(name="apple-mobile-web-app-capable" content="yes")
14
+ %meta(name="apple-mobile-web-app-status-bar-style" content="black")
15
+ = stylesheet_link_tag :application, :media => "all"
16
+ = csrf_meta_tag
17
+
18
+ %body(role="document")
19
+ %section.container(role="main")
20
+ = yield
21
+
@@ -0,0 +1,110 @@
1
+ %h1 modicon <span>a font icon for mode set</span>
2
+
3
+ %section.section
4
+ .icon-column
5
+ %div.modicon.modicon-crest
6
+ %div.modicon.modicon-logotype
7
+ %div.modicon.modicon-trademark
8
+ %div.modicon.modicon-binary
9
+ %div.modicon.modicon-mountains
10
+ %div.modicon.modicon-plus
11
+ .deets-column
12
+ %pre
13
+ :preserve
14
+ .modicon.modicon-crest
15
+ .modicon.modicon-logotype
16
+ .modicon.modicon-trademark
17
+ .modicon.modicon-binary
18
+ .modicon.modicon-mountains
19
+ .modicon.modicon-plus
20
+
21
+
22
+ %section.section
23
+ .icon-column
24
+ %div.modeset-crest
25
+ .deets-column
26
+ %pre
27
+ :preserve
28
+ .modeset-crest
29
+
30
+ %section.section
31
+ .icon-column
32
+ %div.modeset-logotype
33
+ .deets-column
34
+ %pre
35
+ :preserve
36
+ .modeset-logotype
37
+
38
+ %section.section
39
+ .icon-column
40
+ %div.modeset-typetrade
41
+ .deets-column
42
+ %pre
43
+ :preserve
44
+ .modeset-typetrade
45
+
46
+ %section.section
47
+ .icon-column
48
+ %div.modeset-logo
49
+ .deets-column
50
+ %pre
51
+ :preserve
52
+ .modeset-logo
53
+
54
+ %section.section
55
+ .icon-column
56
+ %div.modeset-logotrade
57
+ %div.modeset-crest
58
+ %div.modeset-typetrade
59
+ .deets-column
60
+ %pre
61
+ :preserve
62
+ .modeset-logotrade
63
+ .modeset-crest
64
+ .modeset-typetrade
65
+
66
+
67
+ %section.section
68
+ .icon-column
69
+ %h1.modeset-heading modeset heading
70
+ .deets-column
71
+ %pre
72
+ :preserve
73
+ .modeset-heading
74
+
75
+ %section.section
76
+ .icon-column
77
+ %ul.modeset-list
78
+ %li List level 1
79
+ %li<
80
+ List level 1
81
+ %ul
82
+ %li Neseted list
83
+ %li Neseted list
84
+ %li Neseted list
85
+ %li List level 1
86
+ %li List level 1
87
+ %li List level 1
88
+ .deets-column
89
+ %pre
90
+ :preserve
91
+ .modeset-list
92
+
93
+ %section.section
94
+ .icon-column
95
+ %ul.modeset-list.modeset-list-inverted
96
+ %li List level 1
97
+ %li<
98
+ List level 1
99
+ %ul
100
+ %li Neseted list
101
+ %li Neseted list
102
+ %li Neseted list
103
+ %li List level 1
104
+ %li List level 1
105
+ %li List level 1
106
+ .deets-column
107
+ %pre
108
+ :preserve
109
+ .modeset-list.modeset-list-inverted
110
+
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,61 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+ require 'normalize-rails'
5
+ require 'haml-rails'
6
+
7
+ Bundler.require
8
+ require "modicon"
9
+
10
+ module Dummy
11
+ class Application < Rails::Application
12
+ # Settings in config/environments/* take precedence over those specified here.
13
+ # Application configuration should go into files in config/initializers
14
+ # -- all .rb files in that directory are automatically loaded.
15
+
16
+ # Custom directories with classes and modules you want to be autoloadable.
17
+ # config.autoload_paths += %W(#{config.root}/extras)
18
+
19
+ # Only load the plugins named here, in the order given (default is alphabetical).
20
+ # :all can be used as a placeholder for all plugins not explicitly named.
21
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
22
+
23
+ # Activate observers that should always be running.
24
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
25
+
26
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
27
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
28
+ # config.time_zone = 'Central Time (US & Canada)'
29
+
30
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
31
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
32
+ # config.i18n.default_locale = :de
33
+
34
+ # Configure the default encoding used in templates for Ruby 1.9.
35
+ config.encoding = "utf-8"
36
+
37
+ # Configure sensitive parameters which will be filtered from the log file.
38
+ config.filter_parameters += [:password]
39
+
40
+ # Enable escaping HTML in JSON.
41
+ config.active_support.escape_html_entities_in_json = true
42
+
43
+ # Use SQL instead of Active Record's schema dumper when creating the database.
44
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
45
+ # like if you have constraints or database-specific column types
46
+ # config.active_record.schema_format = :sql
47
+
48
+ # Enforce whitelist mode for mass assignment.
49
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
50
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
51
+ # parameters by using an attr_accessible or attr_protected declaration.
52
+ config.active_record.whitelist_attributes = true
53
+
54
+ # Enable the asset pipeline
55
+ config.assets.enabled = true
56
+
57
+ # Version of your assets, change this if you want to expire all your assets
58
+ config.assets.version = '1.0'
59
+ end
60
+ end
61
+
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,37 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Raise exception on mass assignment protection for Active Record models
26
+ config.active_record.mass_assignment_sanitizer = :strict
27
+
28
+ # Log the query plan for queries taking more than this (works
29
+ # with SQLite, MySQL, and PostgreSQL)
30
+ config.active_record.auto_explain_threshold_in_seconds = 0.5
31
+
32
+ # Do not compress assets
33
+ config.assets.compress = false
34
+
35
+ # Expands the lines which load the assets
36
+ config.assets.debug = true
37
+ end
@@ -0,0 +1,67 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+ end