Skip to content

Commit 5610b34

Browse files
authored
Merge pull request #1523 from fatfreecrm/fix-packaging
Swap from our fork of acts_as_commentable via github, to our fork of acts_as_commentable via rubygems
2 parents 36f362f + 5f1eb4d commit 5610b34

File tree

7 files changed

+48
-23
lines changed

7 files changed

+48
-23
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ group :heroku do
9393
gem 'puma'
9494
end
9595

96-
gem 'responds_to_parent', git: 'https://github.com/RedPatchTechnologies/responds_to_parent.git', branch: 'master' # Temporarily pointed at git until https://github.com/zendesk/responds_to_parent/pull/7 is released
97-
gem 'acts_as_commentable', git: 'https://github.com/fatfreecrm/acts_as_commentable.git', branch: 'main' # Our fork
96+
gem 'responds_to_parent2'
97+
gem 'acts_as_commentable2'
9898
gem 'sassc-rails'
9999
gem 'coffee-rails'
100100
gem 'uglifier'

Gemfile.lock

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
GIT
2-
remote: https://github.com/RedPatchTechnologies/responds_to_parent.git
3-
revision: 36337ac1cb69245bdf551bc852abb9bd77c3826f
4-
branch: master
5-
specs:
6-
responds_to_parent (2.0.0)
7-
actionpack (>= 3.2.22, < 8.0)
8-
9-
GIT
10-
remote: https://github.com/fatfreecrm/acts_as_commentable.git
11-
revision: 28df5959f8c17168be7c5d4ed3ea2f3d06275773
12-
branch: main
13-
specs:
14-
acts_as_commentable (7.1.0)
15-
activerecord (~> 7.1.0)
16-
171
GIT
182
remote: https://github.com/jquery-ui-rails/jquery-ui-rails.git
193
revision: 413265e81f790f795239e07e7e25e01429b2f18d
@@ -109,6 +93,8 @@ GEM
10993
acts-as-taggable-on (11.0.0)
11094
activerecord (>= 7.0, < 8.0)
11195
zeitwerk (>= 2.4, < 3.0)
96+
acts_as_commentable2 (7.1.0.1)
97+
activerecord (~> 7.1.0)
11298
acts_as_list (1.2.4)
11399
activerecord (>= 6.1)
114100
activesupport (>= 6.1)
@@ -430,6 +416,8 @@ GEM
430416
responders (3.1.1)
431417
actionpack (>= 5.2)
432418
railties (>= 5.2)
419+
responds_to_parent2 (2.1.0)
420+
actionpack (>= 3.2.22, < 8.0)
433421
rexml (3.3.9)
434422
rspec (3.13.0)
435423
rspec-core (~> 3.13.0)
@@ -575,7 +563,7 @@ DEPENDENCIES
575563
activejob
576564
activemodel-serializers-xml
577565
acts-as-taggable-on (>= 3.4.3)
578-
acts_as_commentable!
566+
acts_as_commentable2
579567
acts_as_list
580568
base64
581569
bigdecimal
@@ -637,7 +625,7 @@ DEPENDENCIES
637625
rb-fsevent
638626
rb-inotify
639627
responders (~> 3.0)
640-
responds_to_parent!
628+
responds_to_parent2
641629
rspec-activemodel-mocks
642630
rspec-rails
643631
rubocop

fat_free_crm.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Gem::Specification.new do |gem|
3030
gem.add_dependency 'paper_trail', '~> 15.1.0'
3131
gem.add_dependency 'devise', '~> 4.6'
3232
gem.add_dependency 'devise-encryptable', '~> 0.2.0'
33-
gem.add_dependency 'acts_as_commentable', '>= 6.1'
33+
gem.add_dependency 'acts_as_commentable2', '~> 7.1.0'
3434
gem.add_dependency 'acts-as-taggable-on', '>= 3.4.3'
3535
gem.add_dependency 'dynamic_form'
3636
gem.add_dependency 'haml'
@@ -41,7 +41,7 @@ Gem::Specification.new do |gem|
4141
gem.add_dependency 'font-awesome-rails'
4242
gem.add_dependency 'premailer'
4343
gem.add_dependency 'nokogiri'
44-
gem.add_dependency 'responds_to_parent'
44+
gem.add_dependency 'responds_to_parent2'
4545
gem.add_dependency 'rails3-jquery-autocomplete'
4646
gem.add_dependency 'thor'
4747
gem.add_dependency 'rails_autolink'

lib/fat_free_crm/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module FatFreeCRM
99
module VERSION # :nodoc:
1010
MAJOR = 0
1111
MINOR = 24
12-
TINY = 0
12+
TINY = 2
1313
PRE = nil
1414

1515
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')

sample_hooks/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Sample Git Hooks
2+
3+
This directory contains sample git hooks. To use them, copy them to the `.git/hooks` directory in your local repository.
4+
5+
## Pre-commit
6+
7+
This hook runs `rubocop` on all staged `.rb` files and `erblint` on all staged `.js` files. If either of these linters fail, the commit will be aborted.
8+
9+
## Pre-push
10+
11+
This hook runs `rspec`. If the test suite fails, the push will be aborted.

sample_hooks/pre-commit

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
# Stash unstaged changes
4+
git stash -q --keep-index
5+
6+
# Run rubocop on staged .rb files
7+
git diff --name-only --cached --diff-filter=AM | grep '\.rb$' | xargs bundle exec rubocop
8+
rubocop_exit_code=$?
9+
10+
# Run erblint on staged .js files
11+
git diff --name-only --cached --diff-filter=AM | grep '\.js$' | xargs bundle exec erblint
12+
erblint_exit_code=$?
13+
14+
# Unstash unstaged changes
15+
git stash pop -q
16+
17+
# Exit with a non-zero exit code if either linter failed
18+
if [ $rubocop_exit_code -ne 0 ] || [ $erblint_exit_code -ne 0 ]; then
19+
exit 1
20+
fi
21+
22+
exit 0

sample_hooks/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
bundle exec rspec
4+
exit $?

0 commit comments

Comments
 (0)