anima-core 1.0.0 → 1.0.1

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
2
  SHA256:
3
- metadata.gz: dc93f4b5db26b568dfab170e30d994cb8eef9c46c82efa840fe1824c7b0208ec
4
- data.tar.gz: dedf6e6b8847b679a4dc9614992ca0c7f535199d9f53efc88b224acd73b87b17
3
+ metadata.gz: 01f6abf9be50f84c1fc486d498362f0602cf8f566ca0b2912465cfee8a7c9612
4
+ data.tar.gz: b218ac8c5cdb7c5c082578542edca3df4f5ea5a08787fe9b1689723e1c609cfe
5
5
  SHA512:
6
- metadata.gz: a9a846df2eea35a39991e594515501003074b39b8d7e9682c5c3f50cf37257e37d4b7e966df9351258fcf2daa3cb7cdbda84fab3f035e886e86419a49e9ccfae
7
- data.tar.gz: 16c00ccc5a67b7b1dd8f06f7db1e4e7407edfa4f887ca645525f03f5679f1b961bea17534518ce312a3f59d44b57e527e51c95375c8fffae02de19ca13c86675
6
+ metadata.gz: b477acc81a975d3df10044385510d614b23c60dd0972c50a66d51fda46e0d5645ce3b093f95e33a60808ab2bfc8e95229e61efde133e7351cc802e3e05049300
7
+ data.tar.gz: 32e70fb526b72b909fc7635a702bfacc3c1869a908b8761f19aa8ff3a245f3ac85ec5f22ae47a1a70a4aa89d314617cd4467c412b4c1131d8c0fc5a1431f28a5
data/anima-core.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
22
  spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
23
23
  ls.readlines("\x0", chomp: true).reject do |f|
24
- f.start_with?(*%w[bin/console bin/dev bin/setup .gitignore .rspec spec/ .github/ .standard.yml thoughts/ CLAUDE.md])
24
+ f.start_with?(*%w[bin/console bin/dev bin/setup .gitignore .rspec spec/ .github/ .standard.yml thoughts/ CLAUDE.md .mise.toml])
25
25
  end
26
26
  end
27
27
  spec.bindir = "exe"
@@ -251,13 +251,10 @@ module Anima
251
251
  def create_systemd_service
252
252
  service_dir = Pathname.new(File.expand_path("~/.config/systemd/user"))
253
253
  service_path = service_dir.join("anima.service")
254
-
255
- return if service_path.exist?
256
-
257
254
  FileUtils.mkdir_p(service_dir)
258
- anima_bin = File.join(Gem.bindir, "anima")
259
255
 
260
- service_path.write(<<~UNIT)
256
+ anima_bin = File.join(Gem.bindir, "anima")
257
+ unit_content = <<~UNIT
261
258
  [Unit]
262
259
  Description=Anima - Personal AI Agent
263
260
  After=network.target
@@ -272,7 +269,18 @@ module Anima
272
269
  WantedBy=default.target
273
270
  UNIT
274
271
 
275
- say " created #{service_path}"
272
+ if service_path.exist?
273
+ if service_path.read == unit_content
274
+ say " anima.service unchanged"
275
+ else
276
+ service_path.write(unit_content)
277
+ say " updated #{service_path}"
278
+ end
279
+ else
280
+ service_path.write(unit_content)
281
+ say " created #{service_path}"
282
+ end
283
+
276
284
  system("systemctl", "--user", "daemon-reload", err: File::NULL, out: File::NULL)
277
285
  system("systemctl", "--user", "enable", "--now", "anima.service", err: File::NULL, out: File::NULL)
278
286
  say " enabled and started anima.service"
data/lib/anima/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anima
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anima-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yevhenii Hurin
@@ -198,7 +198,6 @@ executables:
198
198
  extensions: []
199
199
  extra_rdoc_files: []
200
200
  files:
201
- - ".mise.toml"
202
201
  - ".reek.yml"
203
202
  - CHANGELOG.md
204
203
  - Gemfile
data/.mise.toml DELETED
@@ -1,2 +0,0 @@
1
- [tools]
2
- ruby = "3.4"