flashee 0.3.2 → 0.3.3
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 +4 -4
- data/lib/flashee/version.rb +1 -1
- data/lib/generators/flashee/install/bootstrap_generator.rb +7 -4
- data/lib/generators/flashee/install/bulma_generator.rb +6 -3
- data/lib/generators/flashee/install/foundation_generator.rb +7 -4
- data/lib/generators/flashee/install/install.rb +15 -0
- data/lib/generators/flashee/install_generator.rb +6 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24d913d85e05b65cba97c90c078b602586ffc7041065afb5343afa20eb9a48dc
|
4
|
+
data.tar.gz: 19158e733d9a0c95a19640bf0441768fdb48c660772f121a6d23e462ebed53e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b606779158af5b140ecc890d3393584755af4a9bf6889f5deaf81e1aacfb33c72a99dc0ab8f10c613d494937193fb30be7d4bcc0eb6acd7f3bb9ec24006e2c8
|
7
|
+
data.tar.gz: f837abfd7c06f168f6be930838c0f1cad43c4a24d6c195aa6f3eb9c39398885e8ecc8674affbe84b313c05bcd147aca68eb63e06f6cbe09e18a789b4f068b96e
|
data/lib/flashee/version.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
#
|
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
|
-
|
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
|
-
|
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
|
-
#
|
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
|
-
|
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
|
-
|
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
|
-
#
|
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
|
-
|
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
|
-
|
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
|
-
#
|
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.
|
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-
|
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
|