gem_activity_tracker 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1d25cb2bbf3c1e686dd780fa27dd35dfa6d1bf7c6a0c55630ae1e24ba8afd7e7
4
+ data.tar.gz: bba4fdb1fc98d3772159b150d4e65aeab13b2a08dbff438b716d77d10d0328d3
5
+ SHA512:
6
+ metadata.gz: e571832eebfd184aa356c7207d9b2270ac24587d7cfdaffaffc6e11a4581f3f2e38cc78ce50ff4a05f06f1fd80c9439944628d6378435fee35d14b96a407bfbb
7
+ data.tar.gz: ae6fd1d52fdfcbf131e9281149bf0fde98a50905053d31da4eb934367d623a081bfb17303bf3df6b015f3a5a7c978f99abb9738d0d601dfa538751a3b59d9c8e
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2025-04-09
4
+
5
+ - Initial release
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # GemActivityTracker
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/gem_activity_tracker`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ ```bash
14
+ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/gem_activity_tracker.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ task default: %i[]
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "optparse"
4
+ require "gem_activity_tracker"
5
+
6
+ options = {}
7
+
8
+ OptionParser.new do |opts|
9
+ opts.banner = "Usage: gem_activity_tracker [options]"
10
+
11
+ opts.on("-tPATH", "--track=PATH", "Track a Rails/Ruby project") do |path|
12
+ options[:track] = path
13
+ end
14
+
15
+ opts.on("-r", "--report", "Show last generated report") do
16
+ options[:report] = true
17
+ end
18
+
19
+ opts.on("-eFORMAT", "--export=FORMAT", "Export as json or csv") do |format|
20
+ options[:export] = format.to_sym
21
+ end
22
+
23
+ opts.on("-w", "--watch", "Start the file watcher") do
24
+ options[:watch] = true
25
+ end
26
+ end.parse!
27
+
28
+ if options[:track]
29
+ GemActivityTracker::Tracker.track(options[:track])
30
+ elsif options[:report]
31
+ GemActivityTracker::Tracker.report
32
+ elsif options[:export]
33
+ GemActivityTracker::Tracker.export(Dir.pwd, options[:export])
34
+ elsif options[:watch]
35
+ GemActivityTracker::Watcher.start(Dir.pwd)
36
+ else
37
+ puts "❗ Please use --track, --report, --export=json|csv, or --watch"
38
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module GemActivityTracker
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,11 @@
1
+ # lib/gem_activity_tracker.rb
2
+
3
+ require_relative "gem_activity_tracker/version"
4
+ require_relative "gem_activity_tracker/tracker"
5
+ require_relative "gem_activity_tracker/railtie" if defined?(Rails)
6
+ require_relative "gem_activity_tracker/watcher"
7
+
8
+ module GemActivityTracker
9
+ class Error < StandardError; end
10
+ # Additional code (if needed) goes here
11
+ end
@@ -0,0 +1,4 @@
1
+ module GemActivityTracker
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gem_activity_tracker
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Atul Yadav
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2025-04-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: listen
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: gem_activity_tracker is a CLI tool to track and analyze gems used in
28
+ any Ruby project using its Gemfile.lock
29
+ email:
30
+ - atulyadav9039@gmail.com
31
+ executables:
32
+ - gem_activity_tracker
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - CHANGELOG.md
37
+ - README.md
38
+ - Rakefile
39
+ - exe/gem_activity_tracker
40
+ - lib/gem_activity_tracker.rb
41
+ - lib/gem_activity_tracker/version.rb
42
+ - sig/gem_activity_tracker.rbs
43
+ homepage: https://example.com/gem_activity_tracker
44
+ licenses: []
45
+ metadata:
46
+ allowed_push_host: https://rubygems.org
47
+ homepage_uri: https://example.com/gem_activity_tracker
48
+ source_code_uri: https://example.com/gem_activity_tracker
49
+ changelog_uri: https://example.com/gem_activity_tracker/CHANGELOG.md
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: 3.1.0
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ requirements: []
65
+ rubygems_version: 3.4.10
66
+ signing_key:
67
+ specification_version: 4
68
+ summary: Track gem dependencies of any Ruby project
69
+ test_files: []