alert_message 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7f41950d533c0e1c628fbc30c994e9ec04e6f38
4
- data.tar.gz: 942a6d831a384b536ca855706cced7c0653b3310
3
+ metadata.gz: 3d348dccb2882760611a061aca94fa61d9957f60
4
+ data.tar.gz: 0f70f6cc9872aad1684f9e6f4ce4a4efe7ba5b0c
5
5
  SHA512:
6
- metadata.gz: ea0a9660a4bfd60d03859feaf232b577e6977deb37bd02a670b38d1999e3f5367587635994b4e639bfdfd06705d57555030a56712d61780df0f99807676ad13a
7
- data.tar.gz: f64036bcf9a8d153a65a9da4937f0b2989fdb5a51ae79d0acfd5cdf2a42d10c8379faa47a218e6188f97a1579e424256bfb701d5d02fad93ffffa8f5eba17339
6
+ metadata.gz: b2f0d083be52b7cfafa254ac2481a84f510e152de363151b58d518ca644340792c735c3b30dbfc656105b676503a160663ebc4fee79d4164172c32fe4507fb1e
7
+ data.tar.gz: f6f097550ef36fc4fce51d22961751d7faca9a23912538469ebb503e9f9ec45ef4a2d7e53e674ab44a927b08f3c7ec48fc2e14b07d4556d8adde9d98a8b62180
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
data/Gemfile CHANGED
@@ -4,3 +4,7 @@ gem 'jquery-rails'
4
4
  gem 'sass-rails'
5
5
 
6
6
  gemspec
7
+
8
+ group :test do
9
+ gem 'rspec'
10
+ end
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Alert Message
1
+ # [Alert Message](http://rubygems.org/gems/alert_message)
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/alert_message.svg)](http://badge.fury.io/rb/alert_message)
2
4
 
3
5
  This is a simple gem for alerts messages.
4
6
 
@@ -16,9 +18,17 @@ Run install script:
16
18
 
17
19
  $ rails g alert_message:install
18
20
 
21
+ Rename *app/assets/application.css* to *app/assets/application.css.scss* and add in app/assets/application.css.scss
22
+
23
+ *= require alert_message
24
+
25
+ and in app/assets/application.js
26
+
27
+ //= require alert_message
28
+
19
29
  ## How to use
20
30
 
21
- Add to *application.html.erb*
31
+ Add in *application.html.erb*
22
32
 
23
33
  <%= render "layouts/alerts" %>
24
34
 
@@ -28,6 +38,19 @@ To show your alerts, use:
28
38
  flash[:notice] = "YOUR MESSAGE"
29
39
  flash[:success] = "YOUR MESSAGE"
30
40
 
41
+ ## Example
42
+
43
+ class HomeController < ApplicationController
44
+ def index
45
+ flash[:error] = "YOUR MESSAGE"
46
+ end
47
+ end
48
+
49
+ ## Demo
50
+
51
+ [https://alert-message.herokuapp.com/](https://alert-message.herokuapp.com/)
52
+
53
+
31
54
  ## Contributing
32
55
 
33
56
  **Welcome to contribute**
@@ -38,7 +61,6 @@ To show your alerts, use:
38
61
  4. Push to the branch (git push origin my-new-feature)
39
62
  5. Create new Pull Request
40
63
 
41
-
42
64
  ## License
43
65
 
44
66
  MIT License. Copyright 2014 Luiz Picolo. http://www.luizpicolo.com.br
@@ -15,7 +15,10 @@ $alert-notice: #2980b9; // azul
15
15
  cursor: pointer;
16
16
  @include box-sizing(border-box);
17
17
 
18
- position: absolute;
18
+ position: fixed;
19
+ z-index: 9999;
20
+ top: 0;
21
+ left: 0;
19
22
 
20
23
  width: 100%;
21
24
 
@@ -1,5 +1,5 @@
1
1
  module AlertMessage
2
2
  module Version
3
- VERSION = '1.0.5'
3
+ VERSION = '1.0.6'
4
4
  end
5
5
  end
@@ -0,0 +1,89 @@
1
+ # This file was generated by the `rspec --init` 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 this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # will add to the boot time of your test suite on EVERY test run, even for an
9
+ # individual file that may not need all of that loaded. Instead, consider making
10
+ # a separate helper file that requires the additional dependencies and performs
11
+ # the additional setup, and require it from the spec files that actually need it.
12
+ #
13
+ # The `.rspec` file also contains a few flags that are not defaults but that
14
+ # users commonly want.
15
+ #
16
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
17
+ RSpec.configure do |config|
18
+ # rspec-expectations config goes here. You can use an alternate
19
+ # assertion/expectation library such as wrong or the stdlib/minitest
20
+ # assertions if you prefer.
21
+ config.expect_with :rspec do |expectations|
22
+ # This option will default to `true` in RSpec 4. It makes the `description`
23
+ # and `failure_message` of custom matchers include text for helper methods
24
+ # defined using `chain`, e.g.:
25
+ # be_bigger_than(2).and_smaller_than(4).description
26
+ # # => "be bigger than 2 and smaller than 4"
27
+ # ...rather than:
28
+ # # => "be bigger than 2"
29
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
30
+ end
31
+
32
+ # rspec-mocks config goes here. You can use an alternate test double
33
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
34
+ config.mock_with :rspec do |mocks|
35
+ # Prevents you from mocking or stubbing a method that does not exist on
36
+ # a real object. This is generally recommended, and will default to
37
+ # `true` in RSpec 4.
38
+ mocks.verify_partial_doubles = true
39
+ end
40
+
41
+ # The settings below are suggested to provide a good initial experience
42
+ # with RSpec, but feel free to customize to your heart's content.
43
+ =begin
44
+ # These two settings work together to allow you to limit a spec run
45
+ # to individual examples or groups you care about by tagging them with
46
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
47
+ # get run.
48
+ config.filter_run :focus
49
+ config.run_all_when_everything_filtered = true
50
+
51
+ # Limits the available syntax to the non-monkey patched syntax that is recommended.
52
+ # For more details, see:
53
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
54
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
55
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
56
+ config.disable_monkey_patching!
57
+
58
+ # This setting enables warnings. It's recommended, but in some cases may
59
+ # be too noisy due to issues in dependencies.
60
+ config.warnings = true
61
+
62
+ # Many RSpec users commonly either run the entire suite or an individual
63
+ # file, and it's useful to allow more verbose output when running an
64
+ # individual spec file.
65
+ if config.files_to_run.one?
66
+ # Use the documentation formatter for detailed output,
67
+ # unless a formatter has already been configured
68
+ # (e.g. via a command-line flag).
69
+ config.default_formatter = 'doc'
70
+ end
71
+
72
+ # Print the 10 slowest examples and example groups at the
73
+ # end of the spec run, to help surface which specs are running
74
+ # particularly slow.
75
+ config.profile_examples = 10
76
+
77
+ # Run specs in random order to surface order dependencies. If you find an
78
+ # order dependency and want to debug it, you can fix the order by providing
79
+ # the seed, which is printed after each run.
80
+ # --seed 1234
81
+ config.order = :random
82
+
83
+ # Seed global randomization in this process using the `--seed` CLI option.
84
+ # Setting this allows you to use `--seed` to deterministically reproduce
85
+ # test failures related to randomization by passing the same `--seed` value
86
+ # as the one that triggered the failure.
87
+ Kernel.srand config.seed
88
+ =end
89
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alert_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luiz Picolo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-31 00:00:00.000000000 Z
11
+ date: 2014-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -46,6 +46,7 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
+ - ".rspec"
49
50
  - Gemfile
50
51
  - LICENSE
51
52
  - README.md
@@ -58,6 +59,7 @@ files:
58
59
  - lib/generators/alert_message/templates/alerts.css.scss
59
60
  - lib/generators/alert_message/templates/alerts.js
60
61
  - lib/version/version.rb
62
+ - spec/spec_helper.rb
61
63
  - vendor/assets/javascripts/alert_message.js
62
64
  - vendor/assets/stylesheets/alert_message.css.scss
63
65
  homepage: https://github.com/luizpicolo/alert_message