pin_flags 0.1.5 → 0.1.6
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/app/assets/images/pin_flags/pin_flags_logo.svg +20 -0
- data/app/helpers/pin_flags/feature_tags_helper.rb +1 -1
- data/lib/generators/pin_flags/install/install_generator.rb +2 -2
- data/lib/generators/pin_flags/install/templates/create_feature_subscriptions.rb +1 -1
- data/lib/generators/pin_flags/install/templates/create_feature_tag.rb +1 -1
- data/lib/pin_flags/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d0eb969ad24f960bbb344689250470be9ee8fbac7fc1ebe48153a642e8d165b7
|
|
4
|
+
data.tar.gz: b008a4d7ba86a8c86cae958502382e497dd9cc8d6aaea738c27ff7d771410fac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7e49716f239259c2b6fdaa7bce65fc42e19b9eeeb1c65ef293f89359808e2474e4e4a637039dd70edf41068688f6fd81c74d7b095a94224a3de11b706d0bbef0
|
|
7
|
+
data.tar.gz: 71174abd758b75bdcdaa64c993b17ae3b638bfb21d1034589d31c5192d281e599a8a9298dfb4bb6ff6d427e4c1c7e31d51399c962b99c170f93c4ca1a9540dca
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<svg width="520" height="170" viewBox="0 0 520 170" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- Icon (scaled down to fit horizontal layout) -->
|
|
3
|
+
<g transform="translate(0, 0) scale(0.85)">
|
|
4
|
+
<!-- Binary/Code Bracket Meta -->
|
|
5
|
+
<path d="M50 40 L30 40 L30 160 L50 160" fill="none" stroke="#334155" stroke-width="12" stroke-linecap="round"/>
|
|
6
|
+
<path d="M150 40 L170 40 L170 160 L150 160" fill="none" stroke="#334155" stroke-width="12" stroke-linecap="round"/>
|
|
7
|
+
<!-- Flag formed by Code Lines -->
|
|
8
|
+
<g transform="translate(65, 60)">
|
|
9
|
+
<rect x="0" y="0" width="10" height="80" fill="#C01E2E"/>
|
|
10
|
+
<path d="M10 5 C10 5 30 -5 50 5 C70 15 85 5 85 5 V45 C85 45 70 55 50 45 C30 35 10 45 10 45 Z" fill="#C01E2E"/>
|
|
11
|
+
<!-- Map Pin dot in the flag -->
|
|
12
|
+
<circle cx="45" cy="25" r="8" fill="white"/>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
<!-- Wordmark to the right of the icon -->
|
|
16
|
+
<text x="200" y="100" text-anchor="start" font-family="'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="52" font-weight="800" letter-spacing="2">
|
|
17
|
+
<tspan fill="white" stroke="#C01E2E" stroke-width="2">Pin</tspan>
|
|
18
|
+
<tspan dx="2" fill="#C01E2E">Flags</tspan>
|
|
19
|
+
</text>
|
|
20
|
+
</svg>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module PinFlags
|
|
2
2
|
module FeatureTagsHelper
|
|
3
3
|
def pin_flags_logo(width: 260, height: 85)
|
|
4
|
-
file_path = PinFlags::Engine.root.join("
|
|
4
|
+
file_path = PinFlags::Engine.root.join("app", "assets", "images", "pin_flags", "pin_flags_logo.svg")
|
|
5
5
|
svg = File.read(file_path)
|
|
6
6
|
svg = svg.sub(/width="[^"]*"/, %(width="#{width}"))
|
|
7
7
|
svg = svg.sub(/height="[^"]*"/, %(height="#{height}"))
|
|
@@ -6,8 +6,8 @@ module PinFlags
|
|
|
6
6
|
source_root File.expand_path("../templates", __FILE__)
|
|
7
7
|
|
|
8
8
|
def copy_migrations
|
|
9
|
-
migration_template "create_feature_tag.rb", "db/migrate/
|
|
10
|
-
migration_template "create_feature_subscriptions.rb", "db/migrate/
|
|
9
|
+
migration_template "create_feature_tag.rb", "db/migrate/create_pin_flags_feature_tags.rb"
|
|
10
|
+
migration_template "create_feature_subscriptions.rb", "db/migrate/create_pin_flags_feature_subscriptions.rb"
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def self.next_migration_number(dirname)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class CreatePinFlagsFeatureSubscriptions < ActiveRecord::Migration[8.0]
|
|
2
2
|
def up
|
|
3
3
|
create_table :pin_flags_feature_subscriptions do |t|
|
|
4
4
|
t.references :feature_tag, null: false, foreign_key: { to_table: :pin_flags_feature_tags }
|
data/lib/pin_flags/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pin_flags
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Demetrious Wilson
|
|
@@ -112,6 +112,7 @@ files:
|
|
|
112
112
|
- MIT-LICENSE
|
|
113
113
|
- README.md
|
|
114
114
|
- Rakefile
|
|
115
|
+
- app/assets/images/pin_flags/pin_flags_logo.svg
|
|
115
116
|
- app/assets/javascripts/pin_flags/alpine.min.js
|
|
116
117
|
- app/assets/stylesheets/pin_flags/application.css
|
|
117
118
|
- app/assets/stylesheets/pin_flags/bulma.min.css
|