flashee 0.3.2 → 0.3.3

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
  SHA256:
3
- metadata.gz: db739791f4f0f26df44f738fd357b6a5c51fe468d324b1a8ada0ac56c3b5067e
4
- data.tar.gz: 2e6e89df16f95ac6a16c7356aa3d23561d96c5d7e3bf7b9d34f7ab82e6032dd2
3
+ metadata.gz: 24d913d85e05b65cba97c90c078b602586ffc7041065afb5343afa20eb9a48dc
4
+ data.tar.gz: 19158e733d9a0c95a19640bf0441768fdb48c660772f121a6d23e462ebed53e4
5
5
  SHA512:
6
- metadata.gz: 2fe1852624da34dac2483cb790ba6c6f4cc4145d35fd7fdad828c5fb15434560cab4f9edac9c0a58d1d0e641a12200ee679597b90b2bed5b2dbbc692a3538bfd
7
- data.tar.gz: 23053ef42fba5034e8a6fc2cc0b2e9ad00b7ef0edbe84f53a6b0314ab1fcd252dd4ef1c665686296ecdbaaa11563d243f9c0b83345fa64c3d2a7a1368785917e
6
+ metadata.gz: 7b606779158af5b140ecc890d3393584755af4a9bf6889f5deaf81e1aacfb33c72a99dc0ab8f10c613d494937193fb30be7d4bcc0eb6acd7f3bb9ec24006e2c8
7
+ data.tar.gz: f837abfd7c06f168f6be930838c0f1cad43c4a24d6c195aa6f3eb9c39398885e8ecc8674affbe84b313c05bcd147aca68eb63e06f6cbe09e18a789b4f068b96e
@@ -1,3 +1,3 @@
1
1
  module Flashee
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
@@ -1,9 +1,11 @@
1
1
  module Flashee
2
2
  module Generators
3
3
  module Install
4
+ # Houses the logic to install flashee into the target rails app using the bootstrap CSS framework.
5
+ # BootstrapGenerator translates to the `flashee:install:bootstrap
4
6
  class BootstrapGenerator < Rails::Generators::Base
5
-
6
- desc "install helper file"
7
+
8
+ # Copies `lib/templates/flashee_bootstrap_helper.rb` into `app/helpers/flashee_helper.rb`.
7
9
  def copy_helper
8
10
  helper_source = File.join(Gem.loaded_specs["flashee"].full_gem_path, "lib", "templates", "flashee_bootstrap_helper.rb")
9
11
  helper_target = File.join(Rails.root, "app", "helpers", "flashee_helper.rb")
@@ -11,7 +13,8 @@ module Flashee
11
13
  FileUtils.cp_r helper_source, helper_target
12
14
  end
13
15
 
14
- desc "install parital"
16
+ # Copies `lib/templates/_flash_messages.html.erb` to `app/views/partials/_flash_messages.html.erb`,
17
+ # will also create `app/partials` if it doesn't exist already.
15
18
  def copy_partial
16
19
  view_partial_source = File.join(Gem.loaded_specs["flashee"].full_gem_path, "lib", "templates", "_flash_messages.html.erb")
17
20
  view_partial_target = File.join(Rails.root, "app", "views", "partials", "_flash_messages.html.erb")
@@ -20,7 +23,7 @@ module Flashee
20
23
  FileUtils.cp_r view_partial_source, view_partial_target
21
24
  end
22
25
 
23
- # Print post install info
26
+ # After installation completes, print the ERB snippet to the command line.
24
27
  def print_post_install_info
25
28
  puts "==================================================================="
26
29
  puts "# One more step to go, To render the #"
@@ -1,9 +1,11 @@
1
1
  module Flashee
2
2
  module Generators
3
3
  module Install
4
+ # Houses the logic to install flashee into the target rails app using the bulma CSS framework.
5
+ # BulmaGenerator translates to the `flashee:install:bulma` command.
4
6
  class BulmaGenerator < Rails::Generators::Base
5
7
 
6
- desc "install helper file"
8
+ # Copies `lib/templates/flashee_bulma_helper.rb` into `app/helpers/flashee_helper.rb`.
7
9
  def copy_helper
8
10
  helper_source = File.join(Gem.loaded_specs["flashee"].full_gem_path, "lib", "templates", "flashee_bulma_helper.rb")
9
11
  helper_target = File.join(Rails.root, "app", "helpers", "flashee_helper.rb")
@@ -11,7 +13,8 @@ module Flashee
11
13
  FileUtils.cp_r helper_source, helper_target
12
14
  end
13
15
 
14
- desc "install parital"
16
+ # Copies `lib/templates/_flash_messages.html.erb` to `app/views/partials/_flash_messages.html.erb`,
17
+ # will also create `app/partials` if it doesn't exist already.
15
18
  def copy_partial
16
19
  view_partial_source = File.join(Gem.loaded_specs["flashee"].full_gem_path, "lib", "templates", "_flash_messages.html.erb")
17
20
  view_partial_target = File.join(Rails.root, "app", "views", "partials", "_flash_messages.html.erb")
@@ -20,7 +23,7 @@ module Flashee
20
23
  FileUtils.cp_r view_partial_source, view_partial_target
21
24
  end
22
25
 
23
- # Print post install info
26
+ # After installation completes, print the ERB snippet to the command line.
24
27
  def print_post_install_info
25
28
  puts "==================================================================="
26
29
  puts "# One more step to go, To render the #"
@@ -1,9 +1,11 @@
1
1
  module Flashee
2
2
  module Generators
3
3
  module Install
4
+ # Houses the logic to install flashee into the target rails app using the foundation CSS framework.
5
+ # FoundationGenerator translates to the `flashee:install:foundation` command.
4
6
  class FoundationGenerator < Rails::Generators::Base
5
-
6
- desc "install helper file"
7
+
8
+ # Copies `lib/templates/flashee_foundation_helper.rb` into `app/helpers/flashee_helper.rb`.
7
9
  def copy_helper
8
10
  helper_source = File.join(Gem.loaded_specs["flashee"].full_gem_path, "lib", "templates", "flashee_foundation_helper.rb")
9
11
  helper_target = File.join(Rails.root, "app", "helpers", "flashee_helper.rb")
@@ -11,7 +13,8 @@ module Flashee
11
13
  FileUtils.cp_r helper_source, helper_target
12
14
  end
13
15
 
14
- desc "install parital"
16
+ # Copies `lib/templates/_flash_messages_foundation.html.erb` to `app/views/partials/_flash_messages.html.erb`,
17
+ # will also create `app/partials` if it doesn't exist already.
15
18
  def copy_partial
16
19
  view_partial_source = File.join(Gem.loaded_specs["flashee"].full_gem_path, "lib", "templates", "_flash_messages_foundation.html.erb")
17
20
  view_partial_target = File.join(Rails.root, "app", "views", "partials", "_flash_messages.html.erb")
@@ -20,7 +23,7 @@ module Flashee
20
23
  FileUtils.cp_r view_partial_source, view_partial_target
21
24
  end
22
25
 
23
- # Print post install info
26
+ # After installation completes, print the ERB snippet to the command line.
24
27
  def print_post_install_info
25
28
  puts "==================================================================="
26
29
  puts "# One more step to go, To render the #"
@@ -0,0 +1,15 @@
1
+ module Flashee
2
+ module Generators
3
+ # Parent class that houses all of the sub generators, fund below a list of current generators and their corresponding commands.
4
+ #
5
+ # * Install::BootstrapGenerator
6
+ # flashee:install:bootstrap
7
+ # * Install::BulmaGenerator
8
+ # flashee:install:bulma
9
+ # * Install::FoundationGenerator
10
+ # flashee:install:foundation
11
+ #
12
+ module Install
13
+ end
14
+ end
15
+ end
@@ -1,8 +1,10 @@
1
1
  module Flashee
2
2
  module Generators
3
+ # Houses the logic to install flashee into the target rails app.
4
+ # InstallGenerator translates to the `flashee:install` command.
3
5
  class InstallGenerator < Rails::Generators::Base
4
6
 
5
- desc "install helper file"
7
+ # Copies `lib/templates/flashee_helper.rb` into `app/helpers/flashee_helper.rb`.
6
8
  def copy_helper
7
9
  helper_source = File.join(Gem.loaded_specs["flashee"].full_gem_path, "lib", "templates", "flashee_helper.rb")
8
10
  helper_target = File.join(Rails.root, "app", "helpers", "flashee_helper.rb")
@@ -10,7 +12,8 @@ module Flashee
10
12
  FileUtils.cp_r helper_source, helper_target
11
13
  end
12
14
 
13
- desc "install parital"
15
+ # Copies `lib/templates/_flash_messages.html.erb` to `app/views/partials/_flash_messages.html.erb`,
16
+ # will also create `app/partials` if it doesn't exist already.
14
17
  def copy_partial
15
18
  view_partial_source = File.join(Gem.loaded_specs["flashee"].full_gem_path, "lib", "templates", "_flash_messages.html.erb")
16
19
  view_partial_target = File.join(Rails.root, "app", "views", "partials", "_flash_messages.html.erb")
@@ -19,7 +22,7 @@ module Flashee
19
22
  FileUtils.cp_r view_partial_source, view_partial_target
20
23
  end
21
24
 
22
- # Print post install info
25
+ # After installation completes, print the ERB snippet to the command line.
23
26
  def print_post_install_info
24
27
  puts "==================================================================="
25
28
  puts "# One more step to go, To render the #"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flashee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Burns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-30 00:00:00.000000000 Z
11
+ date: 2018-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -53,6 +53,7 @@ files:
53
53
  - lib/generators/flashee/install/bootstrap_generator.rb
54
54
  - lib/generators/flashee/install/bulma_generator.rb
55
55
  - lib/generators/flashee/install/foundation_generator.rb
56
+ - lib/generators/flashee/install/install.rb
56
57
  - lib/generators/flashee/install_generator.rb
57
58
  - lib/templates/_flash_messages.html.erb
58
59
  - lib/templates/_flash_messages_foundation.html.erb