alert_message 1.0.3 → 1.0.4

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: bb9558898e61bb173fa12e563ba400efc8b5fa61
4
- data.tar.gz: 396c42426917894a5e4f181ecbc1bc2216d09e93
3
+ metadata.gz: 252728fcca4313e6f9df261de6eec9bb892ed383
4
+ data.tar.gz: 799b4e21731b8a9667898e3909ee6012c37c2457
5
5
  SHA512:
6
- metadata.gz: b3f4c0352d8c95b88173562ea1311b7488936ef341148f956f95a249c1c17447d6153fa71f164e1b3ec31065ea9d8f5416c1f19b5dfae389dd318f963ed3829c
7
- data.tar.gz: 408abbb825827ec522987bec8d7d02ca824cc65b3fa5b795f3e8a81f78900c3f90be285c80791bb0941d05bbca436aba10bcaa07835828f2499bff14eba7c113
6
+ metadata.gz: dedf87e2a1854a93c71b5a2adb14304557efb3dd5b964a8abce8ad6a314067d8c799c0c2028eab2658ffbae1bdb4286962e97849f3b6ddf8cede2a3cddb68213
7
+ data.tar.gz: 74393397776f3a84fc529bedbb246ff6353134dbe79af8c038a441cd3fe65ce9dfd43f62a36864226da8adb877fbb110103b6cecfb4dcc1b903fc858cdf346ee
data/README.md CHANGED
@@ -28,9 +28,16 @@ To show your alerts, use:
28
28
  flash[:notice] = "YOUR MESSAGE"
29
29
  flash[:success] = "YOUR MESSAGE"
30
30
 
31
- ## Contributors
31
+ ## Contributing
32
+
33
+ **Welcome to contribute**
34
+
35
+ 1. Fork it
36
+ 2. Create your feature branch (git checkout -b my-new-feature)
37
+ 3. Commit your changes (git commit -am 'Added some feature')
38
+ 4. Push to the branch (git push origin my-new-feature)
39
+ 5. Create new Pull Request
32
40
 
33
- Welcome to contribute
34
41
 
35
42
  ## License
36
43
 
data/lib/alert_message.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require "alert_message/engine"
2
+
1
3
  module AlertMessage
2
- # Your code goes here...
4
+ # Yor code goes here...
3
5
  end
@@ -0,0 +1,7 @@
1
+ module AlertMessage
2
+ class Engine < ::Rails::Engine
3
+ initializer 'alert_message.load_static_assets' do |app|
4
+ app.middleware.use ::ActionDispatch::Static, "#{root}/vendor"
5
+ end
6
+ end
7
+ end
@@ -3,8 +3,8 @@ module AlertMessage
3
3
  source_root File.expand_path('../templates', __FILE__)
4
4
 
5
5
  def copy_gfiles_alert
6
- copy_file "alerts.js", "app/assets/javascripts/alerts.js"
7
- copy_file "alerts.css.scss", "app/assets/stylesheets/alerts.css.scss"
6
+ # copy_file "alerts.js", "app/assets/javascripts/alerts.js"
7
+ # copy_file "alerts.css.scss", "app/assets/stylesheets/alerts.css.scss"
8
8
  copy_file "_alerts.html.erb", "app/views/layouts/_alerts.html.erb"
9
9
  end
10
10
  end
@@ -1,5 +1,5 @@
1
1
  module AlertMessage
2
2
  module Version
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alert_message
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luiz Picolo
@@ -51,14 +51,15 @@ files:
51
51
  - README.md
52
52
  - Rakefile
53
53
  - alert_message.gemspec
54
- - app/assets/javascripts/alert_message/alerts.js
55
- - app/assets/stylesheets/alert_message/alerts.css.scss
56
54
  - lib/alert_message.rb
55
+ - lib/alert_message/engine.rb
57
56
  - lib/generators/alert_message/install_generator.rb
58
57
  - lib/generators/alert_message/templates/_alerts.html.erb
59
58
  - lib/generators/alert_message/templates/alerts.css.scss
60
59
  - lib/generators/alert_message/templates/alerts.js
61
60
  - lib/version/version.rb
61
+ - vendor/assets/javascripts/alerts.js
62
+ - vendor/assets/stylesheets/alerts.css.scss
62
63
  homepage: https://github.com/luizpicolo/alert_message
63
64
  licenses:
64
65
  - MIT