flash_notifier 1.0.0 → 1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05db456c676cb2f9f3f74e42965c8f1186b03a9cf75e1aca494565d00f2df7c4
4
- data.tar.gz: 6f2037288205cbac034cf63d5b675cc9524d4d873043daa43c284aa53ba62da9
3
+ metadata.gz: d871eaf5f5450cbd1bd7621e60076ae0372fdc9136179c5e56da12522219e8ae
4
+ data.tar.gz: 1a19d918a2a90fe5b06d674de5debb170dd12b11401468c952228a4de0bdf133
5
5
  SHA512:
6
- metadata.gz: ed92d06a66c5e41214ee9a970c3c526077fbc881f7e797da40bb2335f61474356e5a8c409e004f49bc8925e1bc763d613d2b4a4c82c7822dd28f5dca6333cf54
7
- data.tar.gz: 8eee344a6301f5e16b45b9e3c290e80679f93c53cdb02b574c35c4ea3771ef0ae8e72f7c97a79fa17751bfb0927076d485cbb31698d3e44d193cd7f94402c5b1
6
+ metadata.gz: 3e3dede9a1c444126c02b8a266604c9c0f1b56a6501191712c8c8afad75164ba0427bd238fee2e54d50337ee9cbc5768d43524a1b2d182f52fcdb6f7880e071e
7
+ data.tar.gz: e01ad19f7721b16a6f68a07e17cea6ec3978c5e680c866f3f5bcac9c2d0b3b6029484f56ee707dbd5918ccbd1fb77c80e00dbf77e04489e186c65b21dbc1a194
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  .idea/
2
2
  *.gem
3
+ bin/
3
4
  /bin
4
5
  /.bundle/
5
6
  /.yardoc
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
 
23
23
  ### For Bootstrap Flash Messages
24
24
 
25
- Add this helper method in your layout and leave rest to the gem!
25
+ Add this helper method in your layout and make sure you have bootstrap installed!
26
26
 
27
27
  <%= build_bootstrap_flash %>
28
28
 
@@ -76,12 +76,6 @@ To set default theme pass param (Note this param works only for Noty JS)
76
76
 
77
77
  ##### Values for these params can be found here [Noty JS](https://ned.im/noty/#/options), [Toastr JS](https://codeseven.github.io/toastr/demo.html)
78
78
 
79
- ## Development
80
-
81
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
82
-
83
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
84
-
85
79
  ## Contributing
86
80
 
87
81
  Bug reports and pull requests are welcome on GitHub at [https://github.com/fakhir-shad/flash_notifier](https://github.com/fakhir-shad/flash_notifier). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
@@ -7,7 +7,8 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "flash_notifier"
8
8
  spec.version = FlashNotifier::VERSION
9
9
  spec.authors = ["fakhir-shad"]
10
- spec.email = ["fakhir.shad@virtual-force.com"]
10
+ spec.email = ["fakhir.shad@virtual-force.com","muaazrafi@gmail.com"]
11
+ spec.platform = Gem::Platform::RUBY
11
12
 
12
13
  spec.summary = %q{Integrate Flash Messages with ease using Noty JS, Toastr JS or Bootstrap}
13
14
  spec.description = %q{A simple Gem that allows you to integrate flash messages using Noty JS, Toastr JS or Bootstrap }
@@ -16,7 +17,7 @@ Gem::Specification.new do |spec|
16
17
 
17
18
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
19
  # to allow pushing to a single host or delete this section to allow pushing to any host.
19
-
20
+ spec.required_ruby_version = '>= 2.0.0'
20
21
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
21
22
  f.match(%r{^(test|spec|features)/})
22
23
  end
@@ -5,8 +5,5 @@ module FlashNotifier
5
5
  initializer 'build_flash.helper' do |app|
6
6
  ActionView::Base.send :include, FlashHelper
7
7
  end
8
- initializer 'build_bootstrap_flash.helper' do |app|
9
- ActionView::Base.send :include, FlashHelper
10
- end
11
8
  end
12
9
  end
@@ -1,3 +1,3 @@
1
1
  module FlashNotifier
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -1,5 +1,4 @@
1
1
  buildNotyFlash = () ->
2
- console.log('Noty Flash')
3
2
  Noty.overrideDefaults({
4
3
  layout: fetchFlashOption('placement','topRight')
5
4
  theme: fetchFlashOption('theme','mint')
@@ -1,5 +1,4 @@
1
1
  buildFlash = () ->
2
- console.log('Inside Gem')
3
2
  toastr.options =
4
3
  positionClass: fetchFlashOption('placement', 'toast-bottom-right')
5
4
  timeOut: fetchFlashOption('timeout','3500')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flash_notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - fakhir-shad
@@ -42,6 +42,7 @@ description: 'A simple Gem that allows you to integrate flash messages using Not
42
42
  JS, Toastr JS or Bootstrap '
43
43
  email:
44
44
  - fakhir.shad@virtual-force.com
45
+ - muaazrafi@gmail.com
45
46
  executables: []
46
47
  extensions: []
47
48
  extra_rdoc_files: []
@@ -52,8 +53,6 @@ files:
52
53
  - LICENSE.txt
53
54
  - README.md
54
55
  - Rakefile
55
- - bin/console
56
- - bin/setup
57
56
  - flash_notifier.gemspec
58
57
  - lib/flash_notifier.rb
59
58
  - lib/flash_notifier/flash_helper.rb
@@ -80,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
79
  requirements:
81
80
  - - ">="
82
81
  - !ruby/object:Gem::Version
83
- version: '0'
82
+ version: 2.0.0
84
83
  required_rubygems_version: !ruby/object:Gem::Requirement
85
84
  requirements:
86
85
  - - ">="
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "flash_notifier"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here