Skip to content

Commit c3e4ae5

Browse files
authored
Merge pull request #5 from TINYhr/support-rails-6
Support ActiveSupport 6.0 (so it can be used in Rails 6)
2 parents a546fae + 56c795d commit c3e4ae5

11 files changed

+271
-4
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
sudo: false
22
language: ruby
33
rvm:
4-
- 2.4.0
4+
- 2.5.3
5+
gemfile:
6+
- gemfiles/activesupport_4.gemfile
7+
- gemfiles/activesupport_5.gemfile
8+
- gemfiles/activesupport_6.gemfile
59
deploy:
610
provider: rubygems
711
api_key:

Appraisals

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
appraise "activesupport-4" do
2+
gem 'activesupport', '~> 4.0'
3+
end
4+
5+
appraise "activesupport-5" do
6+
gem 'activesupport', '~> 5.0'
7+
end
8+
9+
appraise "activesupport-6" do
10+
gem 'activesupport', '~> 6.0'
11+
end

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,21 @@ TINYclient is inspired by [Active Record](http://guides.rubyonrails.org/active_r
99
* install the gem
1010

1111
```sh
12-
gem install tiny_client
12+
gem install tp_client
1313
```
1414

15+
* Or in Gemfile
16+
17+
```ruby
18+
# As gem main class is different from gem name, we must require file name explicitly
19+
gem 'tp_client', '~> 0.1', require: 'tiny_client'
20+
```
21+
22+
Please notice, we have 2 similar gems:
23+
24+
* [tp_client](https://rubygems.org/gems/tp_client) active, maintained by TINYpulse
25+
* [tiny_client](https://rubygems.org/gems/tiny_client) inactive. **PLEASE DO NOT USE tiny_client GEM**.
26+
1527
### Getting Started
1628

1729

gemfiles/.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
BUNDLE_RETRY: "1"

gemfiles/activesupport_4.gemfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "activesupport", "~> 4.0"
6+
7+
group :test, :development do
8+
gem "byebug"
9+
gem "minitest"
10+
gem "mocha"
11+
gem "rake"
12+
gem "webmock"
13+
gem "yard"
14+
end
15+
16+
gemspec path: "../"
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
tp_client (0.2.1)
5+
activesupport (>= 4.0, < 7.0)
6+
curb (> 0.7.0, < 1.0.0)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
activesupport (4.2.11.1)
12+
i18n (~> 0.7)
13+
minitest (~> 5.1)
14+
thread_safe (~> 0.3, >= 0.3.4)
15+
tzinfo (~> 1.1)
16+
addressable (2.6.0)
17+
public_suffix (>= 2.0.2, < 4.0)
18+
appraisal (2.2.0)
19+
bundler
20+
rake
21+
thor (>= 0.14.0)
22+
byebug (11.0.1)
23+
concurrent-ruby (1.1.5)
24+
crack (0.4.3)
25+
safe_yaml (~> 1.0.0)
26+
curb (0.9.10)
27+
hashdiff (1.0.0)
28+
i18n (0.9.5)
29+
concurrent-ruby (~> 1.0)
30+
metaclass (0.0.4)
31+
minitest (5.11.3)
32+
mocha (1.9.0)
33+
metaclass (~> 0.0.1)
34+
public_suffix (3.1.1)
35+
rake (12.3.3)
36+
safe_yaml (1.0.5)
37+
thor (0.20.3)
38+
thread_safe (0.3.6)
39+
tzinfo (1.2.5)
40+
thread_safe (~> 0.1)
41+
webmock (3.7.0)
42+
addressable (>= 2.3.6)
43+
crack (>= 0.3.2)
44+
hashdiff (>= 0.4.0, < 2.0.0)
45+
yard (0.9.20)
46+
47+
PLATFORMS
48+
ruby
49+
50+
DEPENDENCIES
51+
activesupport (~> 4.0)
52+
appraisal (~> 2.2, >= 2.2.0)
53+
byebug
54+
minitest
55+
mocha
56+
rake
57+
tp_client!
58+
webmock
59+
yard
60+
61+
BUNDLED WITH
62+
1.17.3

gemfiles/activesupport_5.gemfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "activesupport", "~> 5.0"
6+
7+
group :test, :development do
8+
gem "byebug"
9+
gem "minitest"
10+
gem "mocha"
11+
gem "rake"
12+
gem "webmock"
13+
gem "yard"
14+
end
15+
16+
gemspec path: "../"
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
tp_client (0.2.1)
5+
activesupport (>= 4.0, < 7.0)
6+
curb (> 0.7.0, < 1.0.0)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
activesupport (5.2.3)
12+
concurrent-ruby (~> 1.0, >= 1.0.2)
13+
i18n (>= 0.7, < 2)
14+
minitest (~> 5.1)
15+
tzinfo (~> 1.1)
16+
addressable (2.6.0)
17+
public_suffix (>= 2.0.2, < 4.0)
18+
appraisal (2.2.0)
19+
bundler
20+
rake
21+
thor (>= 0.14.0)
22+
byebug (11.0.1)
23+
concurrent-ruby (1.1.5)
24+
crack (0.4.3)
25+
safe_yaml (~> 1.0.0)
26+
curb (0.9.10)
27+
hashdiff (1.0.0)
28+
i18n (1.6.0)
29+
concurrent-ruby (~> 1.0)
30+
metaclass (0.0.4)
31+
minitest (5.11.3)
32+
mocha (1.9.0)
33+
metaclass (~> 0.0.1)
34+
public_suffix (3.1.1)
35+
rake (12.3.3)
36+
safe_yaml (1.0.5)
37+
thor (0.20.3)
38+
thread_safe (0.3.6)
39+
tzinfo (1.2.5)
40+
thread_safe (~> 0.1)
41+
webmock (3.7.0)
42+
addressable (>= 2.3.6)
43+
crack (>= 0.3.2)
44+
hashdiff (>= 0.4.0, < 2.0.0)
45+
yard (0.9.20)
46+
47+
PLATFORMS
48+
ruby
49+
50+
DEPENDENCIES
51+
activesupport (~> 5.0)
52+
appraisal (~> 2.2, >= 2.2.0)
53+
byebug
54+
minitest
55+
mocha
56+
rake
57+
tp_client!
58+
webmock
59+
yard
60+
61+
BUNDLED WITH
62+
1.17.3

gemfiles/activesupport_6.gemfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "activesupport", "~> 6.0"
6+
7+
group :test, :development do
8+
gem "byebug"
9+
gem "minitest"
10+
gem "mocha"
11+
gem "rake"
12+
gem "webmock"
13+
gem "yard"
14+
end
15+
16+
gemspec path: "../"
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
PATH
2+
remote: ..
3+
specs:
4+
tp_client (0.2.1)
5+
activesupport (>= 4.0, < 7.0)
6+
curb (> 0.7.0, < 1.0.0)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
activesupport (6.0.0)
12+
concurrent-ruby (~> 1.0, >= 1.0.2)
13+
i18n (>= 0.7, < 2)
14+
minitest (~> 5.1)
15+
tzinfo (~> 1.1)
16+
zeitwerk (~> 2.1, >= 2.1.8)
17+
addressable (2.6.0)
18+
public_suffix (>= 2.0.2, < 4.0)
19+
appraisal (2.2.0)
20+
bundler
21+
rake
22+
thor (>= 0.14.0)
23+
byebug (11.0.1)
24+
concurrent-ruby (1.1.5)
25+
crack (0.4.3)
26+
safe_yaml (~> 1.0.0)
27+
curb (0.9.10)
28+
hashdiff (1.0.0)
29+
i18n (1.6.0)
30+
concurrent-ruby (~> 1.0)
31+
metaclass (0.0.4)
32+
minitest (5.11.3)
33+
mocha (1.9.0)
34+
metaclass (~> 0.0.1)
35+
public_suffix (3.1.1)
36+
rake (12.3.3)
37+
safe_yaml (1.0.5)
38+
thor (0.20.3)
39+
thread_safe (0.3.6)
40+
tzinfo (1.2.5)
41+
thread_safe (~> 0.1)
42+
webmock (3.7.0)
43+
addressable (>= 2.3.6)
44+
crack (>= 0.3.2)
45+
hashdiff (>= 0.4.0, < 2.0.0)
46+
yard (0.9.20)
47+
zeitwerk (2.1.9)
48+
49+
PLATFORMS
50+
ruby
51+
52+
DEPENDENCIES
53+
activesupport (~> 6.0)
54+
appraisal (~> 2.2, >= 2.2.0)
55+
byebug
56+
minitest
57+
mocha
58+
rake
59+
tp_client!
60+
webmock
61+
yard
62+
63+
BUNDLED WITH
64+
1.17.3

0 commit comments

Comments
 (0)