ai_summary 0.1.2 → 0.1.4
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/.idea/workspace.xml +49 -13
- data/README.md +9 -2
- data/lib/ai_summary/railtie.rb +10 -0
- data/lib/ai_summary/version.rb +1 -1
- data/lib/ai_summary.rb +2 -5
- metadata +26 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 422c6ef278ff8c09594823a6f0fbb88f91d188adc1d36dba9479fd2c5d498ac9
|
|
4
|
+
data.tar.gz: 7d5affbb9b322c2ba0e82b24db2111ab7a257088f14d72de59b949023ec8c0a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26a34bc7218877e6dd0241246e7479deb56376c8c3b5e549d20062aaa546624cbe0b233072b68458102bfaf537f196eed685fe6fcd38e97eedb897b64fb20365
|
|
7
|
+
data.tar.gz: 0dbb8aef55bd6ee350fef0e0a7325e396bf3ac67a819e7d634e5b28dd3ec069e59112c4855a88c728f0d0a59c3fd9dfbe1ee37712adec3a084162593e72d1e7a
|
data/.idea/workspace.xml
CHANGED
|
@@ -4,17 +4,9 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="34d5e5cf-2804-4d8f-a534-bf8fd82f58ab" name="Changes" comment="
|
|
8
|
-
<change afterPath="$PROJECT_DIR$/lib/ai_summary/summary_generator.rb" afterDir="false" />
|
|
9
|
-
<change afterPath="$PROJECT_DIR$/lib/tasks/ai_summary.rake" afterDir="false" />
|
|
10
|
-
<change afterPath="$PROJECT_DIR$/spec/rails_helper.rb" afterDir="false" />
|
|
11
|
-
<change afterPath="$PROJECT_DIR$/spec/tasks/ai_summary_spec.rb" afterDir="false" />
|
|
7
|
+
<list default="true" id="34d5e5cf-2804-4d8f-a534-bf8fd82f58ab" name="Changes" comment="Hotfix Rails s Error">
|
|
12
8
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
13
|
-
<change beforePath="$PROJECT_DIR$/
|
|
14
|
-
<change beforePath="$PROJECT_DIR$/ai_summary.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/ai_summary.gemspec" afterDir="false" />
|
|
15
|
-
<change beforePath="$PROJECT_DIR$/lib/ai_summary.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ai_summary.rb" afterDir="false" />
|
|
16
|
-
<change beforePath="$PROJECT_DIR$/spec/ai_summary_spec.rb" beforeDir="false" afterPath="$PROJECT_DIR$/spec/ai_summary_spec.rb" afterDir="false" />
|
|
17
|
-
<change beforePath="$PROJECT_DIR$/spec/spec_helper.rb" beforeDir="false" afterPath="$PROJECT_DIR$/spec/spec_helper.rb" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/lib/ai_summary/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/ai_summary/version.rb" afterDir="false" />
|
|
18
10
|
</list>
|
|
19
11
|
<option name="SHOW_DIALOG" value="false" />
|
|
20
12
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -89,7 +81,7 @@
|
|
|
89
81
|
<option name="presentableId" value="Default" />
|
|
90
82
|
<updated>1753281082472</updated>
|
|
91
83
|
<workItem from="1753281097573" duration="753000" />
|
|
92
|
-
<workItem from="1753281853845" duration="
|
|
84
|
+
<workItem from="1753281853845" duration="4088000" />
|
|
93
85
|
</task>
|
|
94
86
|
<task id="LOCAL-00001" summary="Add README and Gemspec">
|
|
95
87
|
<option name="closed" value="true" />
|
|
@@ -139,7 +131,47 @@
|
|
|
139
131
|
<option name="project" value="LOCAL" />
|
|
140
132
|
<updated>1753283147557</updated>
|
|
141
133
|
</task>
|
|
142
|
-
<
|
|
134
|
+
<task id="LOCAL-00007" summary="Add Dummy app and rspec">
|
|
135
|
+
<option name="closed" value="true" />
|
|
136
|
+
<created>1753285049613</created>
|
|
137
|
+
<option name="number" value="00007" />
|
|
138
|
+
<option name="presentableId" value="LOCAL-00007" />
|
|
139
|
+
<option name="project" value="LOCAL" />
|
|
140
|
+
<updated>1753285049613</updated>
|
|
141
|
+
</task>
|
|
142
|
+
<task id="LOCAL-00008" summary="Add Dummy app and rspec">
|
|
143
|
+
<option name="closed" value="true" />
|
|
144
|
+
<created>1753285065962</created>
|
|
145
|
+
<option name="number" value="00008" />
|
|
146
|
+
<option name="presentableId" value="LOCAL-00008" />
|
|
147
|
+
<option name="project" value="LOCAL" />
|
|
148
|
+
<updated>1753285065962</updated>
|
|
149
|
+
</task>
|
|
150
|
+
<task id="LOCAL-00009" summary="Add Dummy app and rspec v2">
|
|
151
|
+
<option name="closed" value="true" />
|
|
152
|
+
<created>1753285169489</created>
|
|
153
|
+
<option name="number" value="00009" />
|
|
154
|
+
<option name="presentableId" value="LOCAL-00009" />
|
|
155
|
+
<option name="project" value="LOCAL" />
|
|
156
|
+
<updated>1753285169489</updated>
|
|
157
|
+
</task>
|
|
158
|
+
<task id="LOCAL-00010" summary="Update README and Dependencies to allow rails 7 <">
|
|
159
|
+
<option name="closed" value="true" />
|
|
160
|
+
<created>1753285608911</created>
|
|
161
|
+
<option name="number" value="00010" />
|
|
162
|
+
<option name="presentableId" value="LOCAL-00010" />
|
|
163
|
+
<option name="project" value="LOCAL" />
|
|
164
|
+
<updated>1753285608911</updated>
|
|
165
|
+
</task>
|
|
166
|
+
<task id="LOCAL-00011" summary="Hotfix Rails s Error">
|
|
167
|
+
<option name="closed" value="true" />
|
|
168
|
+
<created>1753285929263</created>
|
|
169
|
+
<option name="number" value="00011" />
|
|
170
|
+
<option name="presentableId" value="LOCAL-00011" />
|
|
171
|
+
<option name="project" value="LOCAL" />
|
|
172
|
+
<updated>1753285929263</updated>
|
|
173
|
+
</task>
|
|
174
|
+
<option name="localTasksCounter" value="12" />
|
|
143
175
|
<servers />
|
|
144
176
|
</component>
|
|
145
177
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -162,6 +194,10 @@
|
|
|
162
194
|
<MESSAGE value="Test Github Action" />
|
|
163
195
|
<MESSAGE value="Test Github Action v2" />
|
|
164
196
|
<MESSAGE value="Test Github Action v3" />
|
|
165
|
-
<
|
|
197
|
+
<MESSAGE value="Add Dummy app and rspec" />
|
|
198
|
+
<MESSAGE value="Add Dummy app and rspec v2" />
|
|
199
|
+
<MESSAGE value="Update README and Dependencies to allow rails 7 <" />
|
|
200
|
+
<MESSAGE value="Hotfix Rails s Error" />
|
|
201
|
+
<option name="LAST_COMMIT_MESSAGE" value="Hotfix Rails s Error" />
|
|
166
202
|
</component>
|
|
167
203
|
</project>
|
data/README.md
CHANGED
|
@@ -28,10 +28,17 @@ Then run:
|
|
|
28
28
|
bundle install
|
|
29
29
|
|
|
30
30
|
## 🚀 Usage
|
|
31
|
-
|
|
31
|
+
# Rails Runner
|
|
32
32
|
bundle exec rails runner 'AiSummary::SummaryGenerator.generate'
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
# Rails Console
|
|
34
35
|
AiSummary::SummaryGenerator.generate
|
|
36
|
+
|
|
37
|
+
# Rake Task
|
|
38
|
+
bundle exec rake ai_summary:generate # Default output: rails_summary.txt
|
|
39
|
+
bundle exec rake ai_summary:generate[json] # Output: rails_summary.json
|
|
40
|
+
bundle exec rake ai_summary:generate[yaml] # Output: rails_summary.yaml
|
|
41
|
+
|
|
35
42
|
By default, this will generate a rails_summary.txt file in your project root.
|
|
36
43
|
|
|
37
44
|
## 📂 Output Example
|
data/lib/ai_summary/version.rb
CHANGED
data/lib/ai_summary.rb
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
+
# lib/ai_summary.rb
|
|
1
2
|
# frozen_string_literal: true
|
|
2
3
|
|
|
3
4
|
require_relative "ai_summary/version"
|
|
4
5
|
require_relative "ai_summary/summary_generator"
|
|
5
6
|
|
|
6
|
-
# Auto-load Rake tasks
|
|
7
|
-
task_file = File.expand_path("../tasks/ai_summary.rake", __FILE__)
|
|
8
|
-
load task_file if defined?(Rake)
|
|
9
|
-
|
|
10
7
|
module AiSummary
|
|
11
8
|
class Error < StandardError; end
|
|
12
|
-
# Your code goes here...
|
|
13
9
|
end
|
|
10
|
+
require_relative "ai_summary/railtie" if defined?(Rails::Railtie)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ai_summary
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anders Jonassen
|
|
@@ -14,44 +14,62 @@ dependencies:
|
|
|
14
14
|
name: rails
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '7.1'
|
|
20
|
+
- - "<"
|
|
21
|
+
- !ruby/object:Gem::Version
|
|
22
|
+
version: '9.0'
|
|
20
23
|
type: :runtime
|
|
21
24
|
prerelease: false
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
26
|
requirements:
|
|
24
|
-
- - "
|
|
27
|
+
- - ">="
|
|
25
28
|
- !ruby/object:Gem::Version
|
|
26
29
|
version: '7.1'
|
|
30
|
+
- - "<"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '9.0'
|
|
27
33
|
- !ruby/object:Gem::Dependency
|
|
28
34
|
name: activerecord
|
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
|
30
36
|
requirements:
|
|
31
|
-
- - "
|
|
37
|
+
- - ">="
|
|
32
38
|
- !ruby/object:Gem::Version
|
|
33
39
|
version: '7.1'
|
|
40
|
+
- - "<"
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '9.0'
|
|
34
43
|
type: :runtime
|
|
35
44
|
prerelease: false
|
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
46
|
requirements:
|
|
38
|
-
- - "
|
|
47
|
+
- - ">="
|
|
39
48
|
- !ruby/object:Gem::Version
|
|
40
49
|
version: '7.1'
|
|
50
|
+
- - "<"
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '9.0'
|
|
41
53
|
- !ruby/object:Gem::Dependency
|
|
42
54
|
name: activesupport
|
|
43
55
|
requirement: !ruby/object:Gem::Requirement
|
|
44
56
|
requirements:
|
|
45
|
-
- - "
|
|
57
|
+
- - ">="
|
|
46
58
|
- !ruby/object:Gem::Version
|
|
47
59
|
version: '7.1'
|
|
60
|
+
- - "<"
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: '9.0'
|
|
48
63
|
type: :runtime
|
|
49
64
|
prerelease: false
|
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
66
|
requirements:
|
|
52
|
-
- - "
|
|
67
|
+
- - ">="
|
|
53
68
|
- !ruby/object:Gem::Version
|
|
54
69
|
version: '7.1'
|
|
70
|
+
- - "<"
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: '9.0'
|
|
55
73
|
- !ruby/object:Gem::Dependency
|
|
56
74
|
name: rspec
|
|
57
75
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -112,6 +130,7 @@ files:
|
|
|
112
130
|
- README.md
|
|
113
131
|
- Rakefile
|
|
114
132
|
- lib/ai_summary.rb
|
|
133
|
+
- lib/ai_summary/railtie.rb
|
|
115
134
|
- lib/ai_summary/summary_generator.rb
|
|
116
135
|
- lib/ai_summary/version.rb
|
|
117
136
|
- lib/tasks/ai_summary.rake
|