activityko 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 85650ce75cf3c80e8b9d16899a8af0b6840d75c6
4
+ data.tar.gz: a8620a8c25b0bd40aaf1c2b3d2b9657a3258f425
5
+ SHA512:
6
+ metadata.gz: eeac9e0f7a31f243cda1cfab9aae99fa9618af8a3b3a113bd734d065896b50b58ecbc82493673227a953d368fa38b714b3d17c4986f83c84f9b608555d594455
7
+ data.tar.gz: 263f40f1fc552f3455f1a68311d4789a71d5280c0e84abad2a3655dd62d88bbbe80092c37758e0759f5664f708c1c135388601a1beddc94961629884c27dd8da
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.14.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at valerosjoseph@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,18 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in activityko.gemspec
4
+
5
+ gemspec
6
+
7
+ gem 'actionpack', '~> 5.1'
8
+ gem 'railties', '~> 5.1'
9
+ #
10
+ # group :development, :test do
11
+ # gem 'sqlite3', '~> 1.3.7'
12
+ # gem 'mocha', '~> 0.13.0', require: false
13
+ # gem 'simplecov', '~> 0.7.0'
14
+ # gem 'minitest', '~> 4.7.5'
15
+ # gem 'redcarpet'
16
+ # gem 'yard', '~> 0.8'
17
+ # gem 'activerecord', '~> 4.0.0'
18
+ # end
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 linkin
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,90 @@
1
+ # Activityko
2
+ An activity logger for rails 5. It provides view helpers to render basic format of activity.
3
+
4
+ ## Installation
5
+
6
+ ```ruby
7
+ gem 'activityko'
8
+ ```
9
+
10
+ And then execute:
11
+
12
+ $ bundle
13
+ Then generate model and migration files
14
+
15
+ $ rails g activityko:install
16
+ $ rake db:migrate
17
+
18
+ ## Usage
19
+ ### Owner of the Activity
20
+ Add this to your ```User``` model
21
+ ```ruby
22
+ class User < ApplicationRecord
23
+ act_as_loggable
24
+ end
25
+ ```
26
+ This will add ```create_activity(action, options={})``` method to your model
27
+ ### Object of the Activity
28
+ Then, make all possible objects of ```Activity``` an activty object.
29
+
30
+ ```ruby
31
+ class Group < ApplicationRecord
32
+ act_as_activity_object
33
+ end
34
+ class Location <ApplicationRecord
35
+ act_as_activity_object
36
+ end
37
+ ```
38
+ or
39
+ ``` ruby
40
+ class ApplicationRecord < ActiveRecord::Base
41
+ act_as_activity_object
42
+ end
43
+ ```
44
+
45
+ An ```activity_name``` method is added to all activity objects.
46
+
47
+ The ```User``` model is also an activity object.
48
+
49
+ ### View Helpers
50
+ User ``` basic_activity ``` method to display an activity
51
+
52
+ ```ruby
53
+ <% @activities.each do |a| %>
54
+ <%= basic_activity %>
55
+ <% end %>
56
+ ```
57
+ or
58
+ basic_activity also accepts ```block```
59
+ ```ruby
60
+ <% basic_activity @activity do%>
61
+ <%= activity_subj %>
62
+ <%= activity_action %>
63
+ <%= activity_dir_obj %>
64
+ <%= activity_prep %>
65
+ <%= activity_prep_obj %>
66
+ <%= activity_time %>
67
+ <% end %>
68
+ ```
69
+
70
+ You can customize each activity output by using ```render_activity```. Inspired by [Public Activity](https://github.com/chaps-io/public_activity) gem. Check it out.
71
+
72
+ ```ruby
73
+ <%= render_activity @activity%>
74
+ ```
75
+ File structure
76
+ ```
77
+ app:
78
+ views:
79
+ activities:
80
+ <activity_obj_model>:
81
+ _<activity_action>.html.erb
82
+ ```
83
+ ## Contributing
84
+
85
+ Bug reports and pull requests are welcome on GitHub at https://github.com/neume/activityko. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
86
+
87
+
88
+ ## License
89
+
90
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,43 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'activityko/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "activityko"
8
+ spec.version = Activityko::VERSION
9
+ spec.authors = ["Joseph Nelson Valeros"]
10
+ spec.email = ["valerosjoseph@gmail.com"]
11
+
12
+ spec.summary = %q{An activity logger for Rails 5}
13
+ spec.description = %q{An activity logger for rails 5 that provides view helpers to render basic format of activity.}
14
+ spec.homepage = "https://github.com/neume/activityko"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against " \
23
+ # "public gem pushes."
24
+ # end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_dependency 'activerecord', '>= 5.1'
34
+ spec.add_dependency 'actionview', '>= 5.1'
35
+ spec.add_dependency 'actionpack', '>= 5.1'
36
+ spec.add_dependency 'railties', '>= 5.1'
37
+ spec.add_dependency 'activesupport', '>= 5.1'
38
+ spec.add_development_dependency 'sqlite3'
39
+ spec.add_development_dependency "generator_spec"
40
+ spec.add_development_dependency "bundler", "~> 1.14"
41
+ spec.add_development_dependency "rake", "~> 10.0"
42
+ spec.add_development_dependency "rspec", "~> 3.0"
43
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "activityko"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,7 @@
1
+ require "activityko/version"
2
+ require "activityko/loggable"
3
+ require "activityko/view_helpers"
4
+ require 'active_record'
5
+ module Activityko
6
+ end
7
+ ActiveRecord::Base.send :extend, Activityko::Loggable
@@ -0,0 +1,7 @@
1
+ module Activityko
2
+ module ActivityObject
3
+ def activity_name
4
+ try(:name) || self.class.to_s
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,13 @@
1
+ require 'active_support/concern'
2
+ module Activityko
3
+ module ActivitySubject
4
+ extend ActiveSupport::Concern
5
+ included do
6
+ has_many :activities, as: :subj
7
+ end
8
+ def create_activity action, options={}
9
+ options.merge!({action: action})
10
+ activities.create(options)
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ require "activityko/activity_subject"
2
+ require "activityko/activity_object"
3
+ module Activityko
4
+ module Loggable
5
+ def act_as_loggable
6
+ include Activityko::ActivitySubject
7
+ include Activityko::ActivityObject
8
+ end
9
+ def act_as_activity_object
10
+ include Activityko::ActivityObject
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ module Activityko
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,45 @@
1
+ require "action_view"
2
+ module Activityko
3
+ module ViewHelpers
4
+ def render_activity activity
5
+ render partial: "activities/#{activity.dir_obj_type.downcase}/#{activity.action}",
6
+ locals: { activity: activity } rescue basic_activity(activity)
7
+ end
8
+ def basic_activity activity
9
+ @activityko_instance = activity
10
+ if block_given?
11
+ yield
12
+ else
13
+ sentence = []
14
+ sentence << activity_subj if activity.subj
15
+ sentence << activity_action
16
+ sentence << activity_dir_obj if activity.dir_obj
17
+ sentence << activity_prep if activity.prep
18
+ sentence << activity_prep_obj if activity.prep_obj
19
+ return sentence.join(" ").html_safe
20
+ end
21
+ end
22
+ def activity_dir_obj
23
+ dir_obj = @activityko_instance.dir_obj
24
+ link_to dir_obj.activity_name, dir_obj
25
+ end
26
+ def activity_subj
27
+ subj = @activityko_instance.subj
28
+ link_to(subj.activity_name, subj)
29
+ end
30
+ def activity_action
31
+ @activityko_instance.action.humanize.downcase
32
+ end
33
+ def activity_prep
34
+ @activityko_instance.prep.humanize.downcase
35
+ end
36
+ def activity_prep_obj
37
+ prep_obj = @activityko_instance.prep_obj
38
+ link_to prep_obj.activity_name, prep_obj
39
+ end
40
+ def activity_time
41
+ time_ago_in_words @activityko_instance.created_at
42
+ end
43
+ end
44
+ ActionView::Base.send :include, ViewHelpers
45
+ end
@@ -0,0 +1,20 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/active_record'
3
+ require 'generators/activityko/model/model_generator'
4
+ require 'generators/activityko/migration/migration_generator'
5
+ module Activityko
6
+ module Generators
7
+ class InstallGenerator < Rails::Generators::Base
8
+ include Rails::Generators::Migration
9
+ def self.next_migration_number(dirname)
10
+ ActiveRecord::Generators::Base.next_migration_number(dirname)
11
+ end
12
+ source_root File.expand_path("../..", __FILE__)
13
+ desc "generates migration file"
14
+ def generate_migration
15
+ migration_template 'migration/templates/migration.rb', 'db/migrate/create_activities.rb'
16
+ copy_file 'model/templates/activity.rb', 'app/models/activity.rb'
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,17 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/active_record'
3
+ module Activityko
4
+ module Generators
5
+ class MigrationGenerator < Rails::Generators::Base
6
+ include Rails::Generators::Migration
7
+ def self.next_migration_number(dirname)
8
+ ActiveRecord::Generators::Base.next_migration_number(dirname)
9
+ end
10
+ source_root File.expand_path("../templates", __FILE__)
11
+ desc "generates migration file"
12
+ def generate_migration
13
+ migration_template 'migration.rb', 'db/migrate/create_activities.rb'
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,24 @@
1
+ class CreateActivities < ActiveRecord::Migration
2
+ def change
3
+ create_table :activities do |t|
4
+ t.belongs_to :subj, polymorphic: true
5
+ t.string :action
6
+ t.belongs_to :dir_obj, polymorphic: true
7
+ t.string :prep
8
+ t.belongs_to :prep_obj, polymorphic: true
9
+ t.integer :level, default: 0
10
+
11
+ t.json :params
12
+
13
+ t.integer :status, default: 0
14
+ t.integer :activity_status, default: 0
15
+ t.integer :activity_type, default: 0
16
+
17
+ t.datetime :deleted_at
18
+ t.timestamps
19
+ end
20
+ add_index :activities, [:subj_id, :subj_type]
21
+ add_index :activities, [:dir_obj_id, :dir_obj_type]
22
+ add_index :activities, [:prep_obj_id, :prep_obj_type]
23
+ end
24
+ end
@@ -0,0 +1,11 @@
1
+ module Activityko
2
+ module Generators
3
+ class ModelGenerator < Rails::Generators::Base
4
+ source_root File.expand_path("../templates", __FILE__)
5
+ desc "generates models/activity.rb"
6
+ def generate_model
7
+ copy_file 'activity.rb', 'app/models/activity.rb'
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ class Activity <ActiveRecord::Base
2
+ belongs_to :subj, polymorphic: true
3
+ belongs_to :dir_obj, polymorphic: true, optional: true
4
+ belongs_to :prep_obj, polymorphic: true, optional: true
5
+ end
metadata ADDED
@@ -0,0 +1,207 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activityko
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Joseph Nelson Valeros
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-11-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '5.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '5.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: actionview
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '5.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '5.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: actionpack
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '5.1'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '5.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: railties
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '5.1'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '5.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: activesupport
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '5.1'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '5.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: generator_spec
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: bundler
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.14'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.14'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '10.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '10.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.0'
153
+ description: An activity logger for rails 5 that provides view helpers to render basic
154
+ format of activity.
155
+ email:
156
+ - valerosjoseph@gmail.com
157
+ executables: []
158
+ extensions: []
159
+ extra_rdoc_files: []
160
+ files:
161
+ - ".gitignore"
162
+ - ".rspec"
163
+ - ".travis.yml"
164
+ - CODE_OF_CONDUCT.md
165
+ - Gemfile
166
+ - LICENSE.txt
167
+ - README.md
168
+ - Rakefile
169
+ - activityko.gemspec
170
+ - bin/console
171
+ - bin/setup
172
+ - lib/activityko.rb
173
+ - lib/activityko/activity_object.rb
174
+ - lib/activityko/activity_subject.rb
175
+ - lib/activityko/loggable.rb
176
+ - lib/activityko/version.rb
177
+ - lib/activityko/view_helpers.rb
178
+ - lib/generators/activityko/install/install_generator.rb
179
+ - lib/generators/activityko/migration/migration_generator.rb
180
+ - lib/generators/activityko/migration/templates/migration.rb
181
+ - lib/generators/activityko/model/model_generator.rb
182
+ - lib/generators/activityko/model/templates/activity.rb
183
+ homepage: https://github.com/neume/activityko
184
+ licenses:
185
+ - MIT
186
+ metadata: {}
187
+ post_install_message:
188
+ rdoc_options: []
189
+ require_paths:
190
+ - lib
191
+ required_ruby_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ required_rubygems_version: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
201
+ requirements: []
202
+ rubyforge_project:
203
+ rubygems_version: 2.5.1
204
+ signing_key:
205
+ specification_version: 4
206
+ summary: An activity logger for Rails 5
207
+ test_files: []