social_colors_rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -0
  3. data/lib/social_colors_rails/version.rb +1 -1
  4. data/spec/helpers/social_colors_rails/application_helper_spec.rb +85 -0
  5. data/spec/rails_helper.rb +59 -0
  6. data/spec/spec_helper.rb +99 -0
  7. data/spec/supports/html_matchers.rb +5 -0
  8. data/spec/test_app/Rakefile +6 -0
  9. data/spec/test_app/app/assets/config/manifest.js +5 -0
  10. data/spec/test_app/app/assets/javascripts/application.js +13 -0
  11. data/spec/test_app/app/assets/javascripts/cable.js +13 -0
  12. data/spec/test_app/app/assets/stylesheets/application.css +15 -0
  13. data/spec/test_app/app/controllers/application_controller.rb +3 -0
  14. data/spec/test_app/app/views/layouts/application.html.erb +14 -0
  15. data/spec/test_app/app/views/layouts/mailer.html.erb +13 -0
  16. data/spec/test_app/app/views/layouts/mailer.text.erb +1 -0
  17. data/spec/test_app/bin/bundle +3 -0
  18. data/spec/test_app/bin/rails +4 -0
  19. data/spec/test_app/bin/rake +4 -0
  20. data/spec/test_app/bin/setup +34 -0
  21. data/spec/test_app/bin/update +29 -0
  22. data/spec/test_app/config/application.rb +19 -0
  23. data/spec/test_app/config/boot.rb +5 -0
  24. data/spec/test_app/config/environment.rb +5 -0
  25. data/spec/test_app/config/initializers/secret_token.rb +8 -0
  26. data/spec/test_app/config/routes.rb +2 -0
  27. data/spec/test_app/config.ru +5 -0
  28. data/spec/test_app/log/test.log +0 -0
  29. metadata +69 -16
  30. data/app/controllers/social_colors_rails/application_controller.rb +0 -5
  31. data/app/jobs/social_colors_rails/application_job.rb +0 -4
  32. data/app/mailers/social_colors_rails/application_mailer.rb +0 -6
  33. data/app/models/social_colors_rails/application_record.rb +0 -5
  34. data/app/views/layouts/social_colors_rails/application.html.erb +0 -14
  35. data/config/routes.rb +0 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 304196c6ade3cbae7f4c750c9b8d33e5bc283ef6
4
- data.tar.gz: e7ced69b9854874276501d3dbe518748b29194fe
3
+ metadata.gz: 1d498d467af2db98912a34763d6fcc933f836996
4
+ data.tar.gz: 2e5daeb9057d10a05eb73c737163b82df9337c53
5
5
  SHA512:
6
- metadata.gz: 119c38d405b963af0f99e86912e87966dacb6d65cec1ab81acc20f8d40625e6c1a273466922f999099047ce3ced53c3f2b7e73b09f25d4ed61621b14eb938d20
7
- data.tar.gz: 839536b8bd2124aa75a983251bc7d81d7fdfd6eb91221cd82a095901f2e9c42355d91d7a4b77ed522af04033d0a2ea020289b6e1be22185bb24726cf906a50b8
6
+ metadata.gz: cd19265fbe0e29428433830d75d69523069d82053dd33cfaa36db16b9e0fa53e10895e9c318f7ea238a6f03a35eccd7de26cd52c88d6afa61e5e02bdbb3c0b8a
7
+ data.tar.gz: 5ab63e7d58db117b44e0cf05ff164b16aa62e734452c8560652c75b7615818ae4bdbb785a5566e5997e6d0bbf5e58d1c0d9c209dd8637de07a6960c939742197
data/Rakefile CHANGED
@@ -24,3 +24,4 @@ load 'rails/tasks/statistics.rake'
24
24
 
25
25
  require 'bundler/gem_tasks'
26
26
 
27
+ task :default => :build
@@ -1,3 +1,3 @@
1
1
  module SocialColorsRails
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -0,0 +1,85 @@
1
+ require 'rails_helper'
2
+
3
+ # Specs in this file have access to a helper object that includes
4
+ # the ApplicationHelper.
5
+
6
+ module SocialColorsRails
7
+ RSpec.describe ApplicationHelper, type: :helper do
8
+
9
+ let(:default_fa) { content_tag(:i, nil, class: "fa fa-facebook") }
10
+ let(:default_tag) { content_tag(:a, default_fa, class: "icon-stack stack-circle facebook", target: "_blank", rel: "external nofollow", href: "#") }
11
+
12
+ let(:social) { social_tag }
13
+ let(:brand) { social_tag "twitter", "http://twitter.com/" }
14
+
15
+ describe 'social_tag' do
16
+
17
+ context "without params" do
18
+ it 'include all default classes' do
19
+ expect( social ).to have_tag('a', with: { class: "icon-stack stack-circle" })
20
+ expect( social ).to have_tag('a[target="_blank"]')
21
+ expect( social ).to have_tag('a[href="#"]')
22
+ expect( social ).to have_tag('i', with: { class: "fa" })
23
+ end
24
+
25
+ it 'generate a nofollow external link' do
26
+ expect( social ).to have_tag('a[rel="external nofollow"]')
27
+ end
28
+
29
+ it 'use circle style' do
30
+ expect( social ).to have_tag('a.stack-circle')
31
+ end
32
+
33
+ it 'use facebook' do
34
+ expect( social ).to have_tag('a.facebook')
35
+ expect( social ).to have_tag('i.fa-facebook')
36
+ end
37
+ end
38
+
39
+ context "with name" do
40
+ it 'generate specific tags' do
41
+ expect( brand ).to have_tag('a.twitter')
42
+ expect( brand ).to have_tag('i.fa-twitter')
43
+ end
44
+ end
45
+
46
+ context "with name & href" do
47
+ it 'generate correct url link' do
48
+ expect( brand ).not_to have_tag('a[href="http://twitter.com"].twitter')
49
+ end
50
+ end
51
+
52
+ context "dofollow" do
53
+ it 'generate dofollow link' do
54
+ expect( social_tag nofollow: false ).to have_tag('a[rel="external"]')
55
+ end
56
+ end
57
+
58
+ context "not external" do
59
+ it 'generate internal dofollow link' do
60
+ expect( social_tag external: false ).not_to have_tag('a[rel]')
61
+ end
62
+ end
63
+
64
+ context "squared" do
65
+ it 'generate squared stack style' do
66
+ expect( social_tag style: "square" ).to have_tag('a.stack-square')
67
+ end
68
+ end
69
+
70
+ context "resized" do
71
+ it 'generate resised stack' do
72
+ expect( social_tag size: "3x" ).to have_tag('a.stack-3x')
73
+ end
74
+ end
75
+
76
+ context "with url" do
77
+ it 'generate correct link' do
78
+ expect( social_tag url: "http://twitter.com/" ).to have_tag('a[href="http://twitter.com/"]')
79
+ end
80
+ end
81
+
82
+ end
83
+
84
+ end
85
+ end
@@ -0,0 +1,59 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ require 'rspec'
3
+ ENV['RAILS_ENV'] ||= 'test'
4
+ require File.expand_path('../test_app/config/environment', __FILE__)
5
+ # Prevent database truncation if the environment is production
6
+ abort("The Rails environment is running in production mode!") if Rails.env.production?
7
+ require 'spec_helper'
8
+ require 'rspec/rails'
9
+ # Add additional requires below this line. Rails is not loaded until this point!
10
+
11
+ # Requires supporting ruby files with custom matchers and macros, etc, in
12
+ # spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
13
+ # run as spec files by default. This means that files in spec/support that end
14
+ # in _spec.rb will both be required and run as specs, causing the specs to be
15
+ # run twice. It is recommended that you do not name files matching this glob to
16
+ # end with _spec.rb. You can configure this pattern with the --pattern
17
+ # option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
18
+ #
19
+ # The following line is provided for convenience purposes. It has the downside
20
+ # of increasing the boot-up time by auto-requiring all files in the support
21
+ # directory. Alternatively, in the individual `*_spec.rb` files, manually
22
+ # require only the support files necessary.
23
+ #
24
+ # Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
25
+ require File.expand_path('../supports/html_matchers.rb', __FILE__)
26
+
27
+ # Checks for pending migration and applies them before tests are run.
28
+ # If you are not using ActiveRecord, you can remove this line.
29
+ # ActiveRecord::Migration.maintain_test_schema!
30
+
31
+ RSpec.configure do |config|
32
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
33
+ # config.fixture_path = "#{::Rails.root}/spec/fixtures"
34
+
35
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
36
+ # examples within a transaction, remove the following line or assign false
37
+ # instead of true.
38
+ # config.use_transactional_fixtures = true
39
+
40
+ # RSpec Rails can automatically mix in different behaviours to your tests
41
+ # based on their file location, for example enabling you to call `get` and
42
+ # `post` in specs under `spec/controllers`.
43
+ #
44
+ # You can disable this behaviour by removing the line below, and instead
45
+ # explicitly tag your specs with their type, e.g.:
46
+ #
47
+ # RSpec.describe UsersController, :type => :controller do
48
+ # # ...
49
+ # end
50
+ #
51
+ # The different available types are documented in the features, such as in
52
+ # https://relishapp.com/rspec/rspec-rails/docs
53
+ config.infer_spec_type_from_file_location!
54
+
55
+ # Filter lines from Rails gems in backtraces.
56
+ config.filter_rails_from_backtrace!
57
+ # arbitrary gems may also be filtered via:
58
+ # config.filter_gems_from_backtrace("gem name")
59
+ end
@@ -0,0 +1,99 @@
1
+ # This file was generated by the `rails generate rspec:install` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
33
+
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
42
+
43
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
44
+ # have no way to turn it off -- the option exists only for backwards
45
+ # compatibility in RSpec 3). It causes shared context metadata to be
46
+ # inherited by the metadata hash of host groups and examples, rather than
47
+ # triggering implicit auto-inclusion in groups with matching metadata.
48
+ config.shared_context_metadata_behavior = :apply_to_host_groups
49
+
50
+ # The settings below are suggested to provide a good initial experience
51
+ # with RSpec, but feel free to customize to your heart's content.
52
+ =begin
53
+ # This allows you to limit a spec run to individual examples or groups
54
+ # you care about by tagging them with `:focus` metadata. When nothing
55
+ # is tagged with `:focus`, all examples get run. RSpec also provides
56
+ # aliases for `it`, `describe`, and `context` that include `:focus`
57
+ # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
58
+ config.filter_run_when_matching :focus
59
+
60
+ # Allows RSpec to persist some state between runs in order to support
61
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
62
+ # you configure your source control system to ignore this file.
63
+ config.example_status_persistence_file_path = "spec/examples.txt"
64
+
65
+ # Limits the available syntax to the non-monkey patched syntax that is
66
+ # recommended. For more details, see:
67
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
68
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
69
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
70
+ config.disable_monkey_patching!
71
+
72
+ # Many RSpec users commonly either run the entire suite or an individual
73
+ # file, and it's useful to allow more verbose output when running an
74
+ # individual spec file.
75
+ if config.files_to_run.one?
76
+ # Use the documentation formatter for detailed output,
77
+ # unless a formatter has already been configured
78
+ # (e.g. via a command-line flag).
79
+ config.default_formatter = 'doc'
80
+ end
81
+
82
+ # Print the 10 slowest examples and example groups at the
83
+ # end of the spec run, to help surface which specs are running
84
+ # particularly slow.
85
+ config.profile_examples = 10
86
+
87
+ # Run specs in random order to surface order dependencies. If you find an
88
+ # order dependency and want to debug it, you can fix the order by providing
89
+ # the seed, which is printed after each run.
90
+ # --seed 1234
91
+ config.order = :random
92
+
93
+ # Seed global randomization in this process using the `--seed` CLI option.
94
+ # Setting this allows you to use `--seed` to deterministically reproduce
95
+ # test failures related to randomization by passing the same `--seed` value
96
+ # as the one that triggered the failure.
97
+ Kernel.srand config.seed
98
+ =end
99
+ end
@@ -0,0 +1,5 @@
1
+ require 'rspec-html-matchers'
2
+
3
+ RSpec.configure do |config|
4
+ config.include RSpecHtmlMatchers
5
+ end
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require_relative 'config/application'
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,5 @@
1
+
2
+ //= link_tree ../images
3
+ //= link_directory ../javascripts .js
4
+ //= link_directory ../stylesheets .css
5
+ //= link social_colors_rails_manifest.js
@@ -0,0 +1,13 @@
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_tree .
@@ -0,0 +1,13 @@
1
+ // Action Cable provides the framework to deal with WebSockets in Rails.
2
+ // You can generate new channels where WebSocket features live using the rails generate channel command.
3
+ //
4
+ //= require action_cable
5
+ //= require_self
6
+ //= require_tree ./channels
7
+
8
+ (function() {
9
+ this.App || (this.App = {});
10
+
11
+ App.cable = ActionCable.createConsumer();
12
+
13
+ }).call(this);
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery with: :exception
3
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>TestApp</title>
5
+ <%= csrf_meta_tags %>
6
+
7
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
8
+ <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
9
+ </head>
10
+
11
+ <body>
12
+ <%= yield %>
13
+ </body>
14
+ </html>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <style>
6
+ /* Email styles need to be inline */
7
+ </style>
8
+ </head>
9
+
10
+ <body>
11
+ <%= yield %>
12
+ </body>
13
+ </html>
@@ -0,0 +1 @@
1
+ <%= yield %>
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../config/application', __dir__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,34 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+ require 'fileutils'
4
+ include FileUtils
5
+
6
+ # path to your application root.
7
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8
+
9
+ def system!(*args)
10
+ system(*args) || abort("\n== Command #{args} failed ==")
11
+ end
12
+
13
+ chdir APP_ROOT do
14
+ # This script is a starting point to setup your application.
15
+ # Add necessary setup steps to this file.
16
+
17
+ puts '== Installing dependencies =='
18
+ system! 'gem install bundler --conservative'
19
+ system('bundle check') || system!('bundle install')
20
+
21
+ # puts "\n== Copying sample files =="
22
+ # unless File.exist?('config/database.yml')
23
+ # cp 'config/database.yml.sample', 'config/database.yml'
24
+ # end
25
+
26
+ puts "\n== Preparing database =="
27
+ system! 'bin/rails db:setup'
28
+
29
+ puts "\n== Removing old logs and tempfiles =="
30
+ system! 'bin/rails log:clear tmp:clear'
31
+
32
+ puts "\n== Restarting application server =="
33
+ system! 'bin/rails restart'
34
+ end
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+ require 'fileutils'
4
+ include FileUtils
5
+
6
+ # path to your application root.
7
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8
+
9
+ def system!(*args)
10
+ system(*args) || abort("\n== Command #{args} failed ==")
11
+ end
12
+
13
+ chdir APP_ROOT do
14
+ # This script is a way to update your development environment automatically.
15
+ # Add necessary update steps to this file.
16
+
17
+ puts '== Installing dependencies =='
18
+ system! 'gem install bundler --conservative'
19
+ system('bundle check') || system!('bundle install')
20
+
21
+ puts "\n== Updating database =="
22
+ system! 'bin/rails db:migrate'
23
+
24
+ puts "\n== Removing old logs and tempfiles =="
25
+ system! 'bin/rails log:clear tmp:clear'
26
+
27
+ puts "\n== Restarting application server =="
28
+ system! 'bin/rails restart'
29
+ end
@@ -0,0 +1,19 @@
1
+ require_relative 'boot'
2
+
3
+ # Pick the frameworks you want:
4
+ require "sprockets/railtie"
5
+
6
+ Bundler.require(:default, :development)
7
+
8
+ module TestApp
9
+ class Application < Rails::Application
10
+ config.encoding = "utf-8"
11
+ config.assets.enabled = true
12
+ config.assets.version = '1.0'
13
+
14
+ # replacement for environments/*.rb
15
+ config.active_support.deprecation = :stderr
16
+ config.eager_load = false
17
+ config.active_support.test_order = :random rescue nil
18
+ end
19
+ end
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
3
+
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
+ $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require_relative 'application'
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ TestApp::Application.config.secret_token = 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef'
8
+ TestApp::Application.config.secret_key_base = 'deadbeef' if TestApp::Application.config.respond_to?(:secret_key_base)
@@ -0,0 +1,2 @@
1
+ Rails.application.routes.draw do
2
+ end
@@ -0,0 +1,5 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require_relative 'config/environment'
4
+
5
+ run Rails.application
File without changes
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_colors_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timothée Ville
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-19 00:00:00.000000000 Z
11
+ date: 2017-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '3.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.1'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - ">="
25
28
  - !ruby/object:Gem::Version
26
- version: '4.2'
29
+ version: '3.2'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.1'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: font-awesome-rails
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +45,7 @@ dependencies:
39
45
  - !ruby/object:Gem::Version
40
46
  version: 4.7.0.1
41
47
  - !ruby/object:Gem::Dependency
42
- name: rspec-rails
48
+ name: activesupport
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - ">="
@@ -53,7 +59,7 @@ dependencies:
53
59
  - !ruby/object:Gem::Version
54
60
  version: '0'
55
61
  - !ruby/object:Gem::Dependency
56
- name: nokogiri
62
+ name: sass-rails
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
65
  - - ">="
@@ -67,7 +73,7 @@ dependencies:
67
73
  - !ruby/object:Gem::Version
68
74
  version: '0'
69
75
  - !ruby/object:Gem::Dependency
70
- name: rspec-html-matchers
76
+ name: sqlite3
71
77
  requirement: !ruby/object:Gem::Requirement
72
78
  requirements:
73
79
  - - ">="
@@ -81,7 +87,35 @@ dependencies:
81
87
  - !ruby/object:Gem::Version
82
88
  version: '0'
83
89
  - !ruby/object:Gem::Dependency
84
- name: sqlite3
90
+ name: rspec-rails
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: nokogiri
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rspec-html-matchers
85
119
  requirement: !ruby/object:Gem::Requirement
86
120
  requirements:
87
121
  - - ">="
@@ -113,17 +147,36 @@ files:
113
147
  - app/assets/stylesheets/social_colors_rails/_mixins.scss
114
148
  - app/assets/stylesheets/social_colors_rails/_variables.scss
115
149
  - app/assets/stylesheets/social_colors_rails/init.scss
116
- - app/controllers/social_colors_rails/application_controller.rb
117
150
  - app/helpers/social_colors_rails/application_helper.rb
118
- - app/jobs/social_colors_rails/application_job.rb
119
- - app/mailers/social_colors_rails/application_mailer.rb
120
- - app/models/social_colors_rails/application_record.rb
121
- - app/views/layouts/social_colors_rails/application.html.erb
122
- - config/routes.rb
123
151
  - lib/social_colors_rails.rb
124
152
  - lib/social_colors_rails/engine.rb
125
153
  - lib/social_colors_rails/version.rb
126
154
  - lib/tasks/social_colors_rails_tasks.rake
155
+ - spec/helpers/social_colors_rails/application_helper_spec.rb
156
+ - spec/rails_helper.rb
157
+ - spec/spec_helper.rb
158
+ - spec/supports/html_matchers.rb
159
+ - spec/test_app/Rakefile
160
+ - spec/test_app/app/assets/config/manifest.js
161
+ - spec/test_app/app/assets/javascripts/application.js
162
+ - spec/test_app/app/assets/javascripts/cable.js
163
+ - spec/test_app/app/assets/stylesheets/application.css
164
+ - spec/test_app/app/controllers/application_controller.rb
165
+ - spec/test_app/app/views/layouts/application.html.erb
166
+ - spec/test_app/app/views/layouts/mailer.html.erb
167
+ - spec/test_app/app/views/layouts/mailer.text.erb
168
+ - spec/test_app/bin/bundle
169
+ - spec/test_app/bin/rails
170
+ - spec/test_app/bin/rake
171
+ - spec/test_app/bin/setup
172
+ - spec/test_app/bin/update
173
+ - spec/test_app/config.ru
174
+ - spec/test_app/config/application.rb
175
+ - spec/test_app/config/boot.rb
176
+ - spec/test_app/config/environment.rb
177
+ - spec/test_app/config/initializers/secret_token.rb
178
+ - spec/test_app/config/routes.rb
179
+ - spec/test_app/log/test.log
127
180
  homepage: https://github.com/TimVille/social_colors_rails
128
181
  licenses:
129
182
  - MIT
@@ -136,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
189
  requirements:
137
190
  - - ">="
138
191
  - !ruby/object:Gem::Version
139
- version: '0'
192
+ version: 1.9.3
140
193
  required_rubygems_version: !ruby/object:Gem::Requirement
141
194
  requirements:
142
195
  - - ">="
@@ -1,5 +0,0 @@
1
- module SocialColorsRails
2
- class ApplicationController < ActionController::Base
3
- protect_from_forgery with: :exception
4
- end
5
- end
@@ -1,4 +0,0 @@
1
- module SocialColorsRails
2
- class ApplicationJob < ActiveJob::Base
3
- end
4
- end
@@ -1,6 +0,0 @@
1
- module SocialColorsRails
2
- class ApplicationMailer < ActionMailer::Base
3
- default from: 'from@example.com'
4
- layout 'mailer'
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- module SocialColorsRails
2
- class ApplicationRecord < ActiveRecord::Base
3
- self.abstract_class = true
4
- end
5
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Social colors rails</title>
5
- <%= stylesheet_link_tag "social_colors_rails/application", media: "all" %>
6
- <%= javascript_include_tag "social_colors_rails/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
data/config/routes.rb DELETED
@@ -1,2 +0,0 @@
1
- SocialColorsRails::Engine.routes.draw do
2
- end