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 +4 -4
- data/anima-core.gemspec +1 -1
- data/lib/anima/installer.rb +14 -6
- data/lib/anima/version.rb +1 -1
- metadata +1 -2
- data/.mise.toml +0 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 01f6abf9be50f84c1fc486d498362f0602cf8f566ca0b2912465cfee8a7c9612
|
|
4
|
+
data.tar.gz: b218ac8c5cdb7c5c082578542edca3df4f5ea5a08787fe9b1689723e1c609cfe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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"
|
data/lib/anima/installer.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
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.
|
|
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