technology-icons 0.1.1 → 1.0.0

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
- SHA1:
3
- metadata.gz: ffd81e80928ab57ca2115951bf33ace3776dddee
4
- data.tar.gz: 38f19f7812dca70c0ad50497031af710a31a32cb
2
+ SHA256:
3
+ metadata.gz: 8f962efef0b4746d868af0894d3e771ad7b4ce4c828673b01772bc5598a843da
4
+ data.tar.gz: 9f9d9a8e47523635d62669cc376f8924fc362eca74541d04dafa019975547638
5
5
  SHA512:
6
- metadata.gz: 3e7aa9d88bc1db8e4bbb62a3c83b055b5b669aa5672b77c207199f7c8e4a471a5ce81c1ac169f7fd9806e91f76dede2df4846500c9ec4619bbc34125f58f4912
7
- data.tar.gz: 8c7d136f74a1f400191315e0b825ea879c679b4013cab50b16f7f4efff0602d6db81bc6b782037b6d7b9620f95ca83ac4c328cb47482d267a108f017c7f9429d
6
+ metadata.gz: 6a33c6d7e3ec2df42519a36159c78c37b01ac5d241e7341a8dc1bbe385c4036781acc4b6c9d054089684e3af637d564fed237e257280b501ae507485840d80c5
7
+ data.tar.gz: 51afced6bc74e6523adaaec6a9f4b019204899be6111a90e1c224b4f402f5db3a35abf1f36021a1a1c08d484c8046d3d77ead84a70b33f175c90da5cb5b11c8e
@@ -0,0 +1,54 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ main, master, modernize ]
6
+ pull_request:
7
+ branches: [ main, master, modernize ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ ruby: ['3.0', '3.1', '3.2', '3.3']
16
+ rails: ['6.0', '6.1', '7.0', '7.1', '7.2', '8.0']
17
+ exclude:
18
+ - ruby: '3.0'
19
+ rails: '7.2'
20
+ - ruby: '3.0'
21
+ rails: '8.0'
22
+
23
+ env:
24
+ RAILS_VERSION: ${{ matrix.rails }}
25
+
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+
29
+ - name: Set up Ruby
30
+ uses: ruby/setup-ruby@v1
31
+ with:
32
+ ruby-version: ${{ matrix.ruby }}
33
+ bundler-cache: true
34
+
35
+ - name: Run tests
36
+ run: bundle exec rake
37
+
38
+ - name: Run RuboCop
39
+ run: bundle exec rubocop
40
+
41
+ security:
42
+ runs-on: ubuntu-latest
43
+
44
+ steps:
45
+ - uses: actions/checkout@v4
46
+
47
+ - name: Set up Ruby
48
+ uses: ruby/setup-ruby@v1
49
+ with:
50
+ ruby-version: '3.3'
51
+ bundler-cache: true
52
+
53
+ - name: Security audit
54
+ run: bundle exec bundle-audit --update
data/.gitignore CHANGED
@@ -1,9 +1,38 @@
1
+ ## Ruby/Bundler
1
2
  /.bundle/
2
- /.yardoc
3
+ /vendor/bundle/
3
4
  /Gemfile.lock
5
+
6
+ ## Documentation
7
+ /.yardoc/
4
8
  /_yardoc/
5
- /coverage/
6
9
  /doc/
7
- /pkg/
10
+ /rdoc/
11
+
12
+ ## Testing
13
+ /coverage/
8
14
  /spec/reports/
15
+ /test/tmp/
16
+ /test/version_tmp/
17
+
18
+ ## Build artifacts
19
+ /pkg/
9
20
  /tmp/
21
+ *.gem
22
+
23
+ ## IDE and OS files
24
+ .DS_Store
25
+ .idea/
26
+ .vscode/
27
+ *.swp
28
+ *.swo
29
+ *~
30
+ .ruby-version
31
+ .ruby-gemset
32
+
33
+ ## Environment
34
+ .env
35
+ .env.local
36
+
37
+ ## Logs
38
+ npm-debug.log
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,34 @@
1
+ AllCops:
2
+ TargetRubyVersion: 3.0
3
+ NewCops: enable
4
+ SuggestExtensions: false
5
+ Exclude:
6
+ - 'vendor/**/*'
7
+ - 'bin/**/*'
8
+
9
+ Style/Documentation:
10
+ Enabled: false
11
+
12
+ Style/StringLiterals:
13
+ Enabled: true
14
+ EnforcedStyle: double_quotes
15
+
16
+ Style/FrozenStringLiteralComment:
17
+ Enabled: true
18
+ EnforcedStyle: always
19
+
20
+ Layout/LineLength:
21
+ Max: 120
22
+ Exclude:
23
+ - '*.gemspec'
24
+
25
+ Metrics/BlockLength:
26
+ Exclude:
27
+ - 'spec/**/*'
28
+ - '*.gemspec'
29
+
30
+ Gemspec/DevelopmentDependencies:
31
+ Enabled: false
32
+
33
+ Gemspec/AddRuntimeDependency:
34
+ Enabled: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,34 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [1.0.0] - 2026-05-30
6
+
7
+ ### Breaking Changes
8
+
9
+ - Minimum Ruby version increased to 3.0
10
+ - Minimum Rails version increased to 6.0
11
+
12
+ ### Added
13
+
14
+ - Explicit `railties` runtime dependency (>= 6.0, < 9.0)
15
+ - GitHub Actions CI with Ruby and Rails matrix
16
+ - RuboCop configuration and linting in CI
17
+ - bundler-audit security scanning in CI
18
+ - RSpec test suite
19
+ - CHANGELOG and UPGRADE_GUIDE
20
+ - Expanded gemspec metadata and MFA requirement
21
+
22
+ ### Changed
23
+
24
+ - Modernized gemspec and development dependencies
25
+ - Updated README with Requirements and modern asset pipeline notes
26
+ - Removed Travis CI
27
+
28
+ ## [0.1.2] - Previous Release
29
+
30
+ - Technology icon webfont packaged as a Rails engine
31
+
32
+ ---
33
+
34
+ For upgrade instructions, see [UPGRADE_GUIDE.md](UPGRADE_GUIDE.md)
data/Gemfile CHANGED
@@ -1,4 +1,9 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
2
4
 
3
- # Specify your gem's dependencies in technology-icons.gemspec
4
5
  gemspec
6
+
7
+ if (rails_version = ENV.fetch("RAILS_VERSION", nil))
8
+ gem "railties", "~> #{rails_version}.0"
9
+ end
data/README.md CHANGED
@@ -1,11 +1,14 @@
1
1
  # Technology::Icons
2
2
 
3
- [![Build Status](https://travis-ci.org/ethirajsrinivasan/technology-icons.svg?branch=master)](https://travis-ci.org/ethirajsrinivasan/technology-icons)
4
- [![Code Climate](https://codeclimate.com/github/ethirajsrinivasan/technology-icons/badges/gpa.svg)](https://codeclimate.com/github/ethirajsrinivasan/technology-icons)
5
- [![security](https://hakiri.io/github/ethirajsrinivasan/technology-icons/master.svg)](https://hakiri.io/github/ethirajsrinivasan/technology-icons/master)
3
+ [![CI](https://github.com/ethirajsrinivasan/technology-icons/actions/workflows/ci.yml/badge.svg)](https://github.com/ethirajsrinivasan/technology-icons/actions/workflows/ci.yml)
4
+ [![Gem Version](https://badge.fury.io/rb/technology-icons.svg)](https://badge.fury.io/rb/technology-icons)
6
5
 
6
+ Technology icon webfont for Rails applications.
7
7
 
8
- technology-icons is a webfont gem which includes many technology icons to be included in your rails application
8
+ ## Requirements
9
+
10
+ - Ruby >= 3.0
11
+ - Rails >= 6.0
9
12
 
10
13
  ## Installation
11
14
 
@@ -17,34 +20,46 @@ gem 'technology-icons'
17
20
 
18
21
  And then execute:
19
22
 
20
- $ bundle install
23
+ ```bash
24
+ bundle install
25
+ ```
21
26
 
22
27
  Or install it yourself as:
23
28
 
24
- $ gem install technology-icons
29
+ ```bash
30
+ gem install technology-icons
31
+ ```
32
+
33
+ ### Asset Pipeline Setup
34
+
35
+ **For Rails 6.x / 7.x with Sprockets:**
25
36
 
37
+ Add to your `application.css`:
26
38
 
27
- To use this gem add this require statement to your application.css file:
39
+ ```css
40
+ *= require technology/icons
41
+ ```
28
42
 
29
- *= require technology/icons
43
+ **For Rails 7+ with Import Maps:**
44
+
45
+ Pin and import the stylesheet through your application's asset setup if you copy or expose the gem asset path.
30
46
 
31
47
  ## Usage
32
48
 
33
- <em class="icon-flash"></em> Flash
34
- <em class="icon-drupal"></em> Drupal
35
- <a href="#" class="icon-mongodb"></a> MongoDb
49
+ ```html
50
+ <em class="icon-flash"></em> Flash
51
+ <em class="icon-drupal"></em> Drupal
52
+ <a href="#" class="icon-mongodb"></a> MongoDb
53
+ ```
36
54
 
37
- ## Contributing
55
+ ## Upgrading from 0.x to 1.0
38
56
 
57
+ Version 1.0.0 requires Ruby 3.0+ and Rails 6.0+. See [UPGRADE_GUIDE.md](UPGRADE_GUIDE.md) for details.
39
58
 
40
- 1.Fork it
41
- 2.Create your feature branch (git checkout -b my-new-feature)
42
- 3.Commit your changes (git commit -am 'Add some feature')
43
- 4.Push to the branch (git push origin my-new-feature)
44
- 5.Create new Pull Request
59
+ ## Contributing
45
60
 
61
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ethirajsrinivasan/technology-icons. Contributors are expected to adhere to the [Contributor Covenant](CODE_OF_CONDUCT.md) code of conduct.
46
62
 
47
63
  ## License
48
64
 
49
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
50
-
65
+ The gem is available as open source under the terms of the [MIT License](LICENSE.txt).
data/Rakefile CHANGED
@@ -1,4 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "bundler/gem_tasks"
2
4
  require "rspec/core/rake_task"
3
- RSpec::Core::RakeTask.new
4
- task :default => :spec
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/UPGRADE_GUIDE.md ADDED
@@ -0,0 +1,24 @@
1
+ # Upgrade Guide: Technology-Icons 0.x to 1.0
2
+
3
+ ## Overview
4
+
5
+ Technology-Icons 1.0 modernizes the gem for current Ruby and Rails versions.
6
+
7
+ ## What Changed
8
+
9
+ | Component | Old Version | New Version |
10
+ |-----------|-------------|-------------|
11
+ | Ruby | >= 1.9.3 | >= 3.0 |
12
+ | Rails | (implicit) | >= 6.0 |
13
+
14
+ ## Upgrade Steps
15
+
16
+ 1. Ensure your application runs Ruby 3.0+ and Rails 6.0+
17
+ 2. Update your Gemfile: `gem 'technology-icons', '~> 1.0'`
18
+ 3. Run `bundle update technology-icons`
19
+ 4. Verify `*= require technology/icons` still works in your asset pipeline
20
+
21
+ ## Getting Help
22
+
23
+ - [GitHub Issues](https://github.com/ethirajsrinivasan/technology-icons/issues)
24
+ - [CHANGELOG.md](CHANGELOG.md)
Binary file