plug 0.1.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 (41) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +28 -0
  4. data/Rakefile +22 -0
  5. data/app/assets/config/plug_manifest.js +2 -0
  6. data/app/assets/javascripts/plug/application.js +15 -0
  7. data/app/assets/javascripts/plug/features.js +2 -0
  8. data/app/assets/stylesheets/plug/_settings.scss +865 -0
  9. data/app/assets/stylesheets/plug/application.scss +35 -0
  10. data/app/assets/stylesheets/plug/blocks/_nav.scss +6 -0
  11. data/app/assets/stylesheets/plug/blocks/_plugs.scss +17 -0
  12. data/app/assets/stylesheets/plug/features.scss +3 -0
  13. data/app/assets/stylesheets/plug/foundation_and_overrides.scss +59 -0
  14. data/app/assets/stylesheets/plug/mixins/_bem.scss +17 -0
  15. data/app/assets/stylesheets/plug/partials/_main.scss +3 -0
  16. data/app/assets/stylesheets/plug/partials/_utils.scss +3 -0
  17. data/app/assets/stylesheets/plug/scaffolds.scss +84 -0
  18. data/app/assets/stylesheets/plug/variables/_colors.scss +5 -0
  19. data/app/assets/stylesheets/scaffolds.scss +84 -0
  20. data/app/controllers/plug/application_controller.rb +5 -0
  21. data/app/controllers/plug/features_controller.rb +71 -0
  22. data/app/helpers/plug/application_helper.rb +4 -0
  23. data/app/jobs/plug/application_job.rb +4 -0
  24. data/app/mailers/plug/application_mailer.rb +6 -0
  25. data/app/models/plug/application_record.rb +5 -0
  26. data/app/models/plug/feature.rb +30 -0
  27. data/app/views/layouts/plug/application.html.haml +11 -0
  28. data/app/views/plug/features/_form.html.haml +19 -0
  29. data/app/views/plug/features/edit.html.haml +7 -0
  30. data/app/views/plug/features/index.html.haml +27 -0
  31. data/app/views/plug/features/new.html.haml +5 -0
  32. data/app/views/plug/features/show.html.haml +18 -0
  33. data/app/views/plug/shared/_head.html.haml +8 -0
  34. data/app/views/plug/shared/_nav.html.haml +6 -0
  35. data/config/routes.rb +5 -0
  36. data/db/migrate/20171207020316_create_plug_features.rb +15 -0
  37. data/lib/plug/engine.rb +14 -0
  38. data/lib/plug/version.rb +3 -0
  39. data/lib/plug.rb +13 -0
  40. data/lib/tasks/plug_tasks.rake +4 -0
  41. metadata +251 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 30b5068e60f79e7ddefdbd901803939b3c11dcbf
4
+ data.tar.gz: 8bd7d69c6bd8b663ccfef4560e12acb36030597b
5
+ SHA512:
6
+ metadata.gz: f0493e90b6ff487db3b9148da98ad377414e549107e041578ea50111e2d4731941cee420f70884c1d71e6ebf421dffe805a75822a20becbc1a393571b008a239
7
+ data.tar.gz: a56fcd558294859776750ac56ad44ed754c4b4f31016db7f1d78a290858629f99dff21633164a1eacfbd1a36620550a49d1886304338da1bd4aaa7ab64b31775
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2017 Benedict Aluan
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # Plug
2
+ Short description and motivation.
3
+
4
+ ## Usage
5
+ How to use my plugin.
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'plug'
12
+ ```
13
+
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install plug
22
+ ```
23
+
24
+ ## Contributing
25
+ Contribution directions go here.
26
+
27
+ ## License
28
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,22 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'Plug'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.md')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path('../spec/dummy/Rakefile', __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+ load 'rails/tasks/statistics.rake'
21
+
22
+ require 'bundler/gem_tasks'
@@ -0,0 +1,2 @@
1
+ //= link_directory ../javascripts/plug .js
2
+ //= link_directory ../stylesheets/plug .css
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.