acts_as_footprintable 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +21 -4
- data/Gemfile +12 -1
- data/acts_as_footprintable.gemspec +7 -8
- data/lib/acts_as_footprintable/version.rb +1 -1
- data/lib/generators/acts_as_footprintable/migration/migration_generator.rb +11 -1
- data/lib/generators/acts_as_footprintable/migration/templates/active_record/migration.rb +1 -1
- metadata +23 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85e9ba8e6751b4b6283c82ec50f63b47020346e6
|
4
|
+
data.tar.gz: a3b0911907c9e35b53265be7e9be4bba2a726cb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6099f7edf3f822541610d8ad545b6c0c8204e5bce974374465432f38f99694c43720b5acb9589c1832b3922c7d74a180708872509267972bacf91ca7fd30ee50
|
7
|
+
data.tar.gz: f5ba915af7149fc90fea6bfebd431c671b83713deb332c9746688277d36a73f4b29410993095557b45c4eabc8ffcb0733c5af7d7b4ca4fced45e09a118a0e384
|
data/.travis.yml
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.4.
|
4
|
-
- 2.3.
|
5
|
-
- 2.2.
|
3
|
+
- 2.4.2
|
4
|
+
- 2.3.4
|
5
|
+
- 2.2.7
|
6
6
|
- 2.1.10
|
7
7
|
env:
|
8
|
+
- "RAILS_VERSION=5.1.4"
|
8
9
|
- "RAILS_VERSION=5.0.0"
|
10
|
+
- "RAILS_VERSION=4.2.8"
|
9
11
|
- "RAILS_VERSION=4.2.0"
|
10
12
|
- "RAILS_VERSION=4.1.0"
|
11
13
|
- "RAILS_VERSION=4.0.0"
|
@@ -13,4 +15,19 @@ env:
|
|
13
15
|
branches:
|
14
16
|
only:
|
15
17
|
- master
|
16
|
-
- travis
|
18
|
+
- travis
|
19
|
+
|
20
|
+
matrix:
|
21
|
+
exclude:
|
22
|
+
- rvm: 2.1.10
|
23
|
+
env: "RAILS_VERSION=5.1.4"
|
24
|
+
- rvm: 2.1.10
|
25
|
+
env: "RAILS_VERSION=5.0.0"
|
26
|
+
- rvm: 2.4.2
|
27
|
+
env: "RAILS_VERSION=4.2.0"
|
28
|
+
- rvm: 2.4.2
|
29
|
+
env: "RAILS_VERSION=4.1.0"
|
30
|
+
- rvm: 2.4.2
|
31
|
+
env: "RAILS_VERSION=4.0.0"
|
32
|
+
- rvm: 2.4.2
|
33
|
+
env: "RAILS_VERSION=3.2.0"
|
data/Gemfile
CHANGED
@@ -16,5 +16,16 @@ rails = case rails_version
|
|
16
16
|
|
17
17
|
gem 'rails', rails
|
18
18
|
group :development do
|
19
|
-
|
19
|
+
if rails_version == 'default' ||
|
20
|
+
(Gem::Version.correct?(rails_version) && Gem::Version.new(rails_version) < Gem::Version.new("4.0.0"))
|
21
|
+
# rails < 4 needs combustion v0.5.2 (does not work with v0.5.3)
|
22
|
+
# An error occurred while loading ./spec/footprinter_spec.rb.
|
23
|
+
# Failure/Error: Combustion.initialize! :active_record
|
24
|
+
#
|
25
|
+
# PG::ConnectionBad:
|
26
|
+
# FATAL: database "acts_as_footprintable" does not exist
|
27
|
+
gem 'combustion', "0.5.2"
|
28
|
+
else
|
29
|
+
gem 'combustion'
|
30
|
+
end
|
20
31
|
end
|
@@ -18,12 +18,11 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency
|
22
|
-
spec.add_development_dependency 'rake'
|
23
|
-
spec.add_development_dependency 'rspec',
|
24
|
-
spec.add_development_dependency 'pg'
|
25
|
-
spec.add_development_dependency 'timecop'
|
26
|
-
spec.add_development_dependency 'database_cleaner',
|
27
|
-
spec.add_development_dependency 'pry'
|
28
|
-
#spec.add_development_dependency 'combustion', '~> 0.5.1'
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
22
|
+
spec.add_development_dependency 'rake', '~> 0'
|
23
|
+
spec.add_development_dependency 'rspec', '~> 3.0', '>= 3.0.0'
|
24
|
+
spec.add_development_dependency 'pg', '~> 0'
|
25
|
+
spec.add_development_dependency 'timecop', '~> 0'
|
26
|
+
spec.add_development_dependency 'database_cleaner', '~> 1.0', '>= 1.0.1'
|
27
|
+
spec.add_development_dependency 'pry', '~> 0'
|
29
28
|
end
|
@@ -25,8 +25,18 @@ module ActsAsFootprintable
|
|
25
25
|
|
26
26
|
def create_migration_file
|
27
27
|
if self.class.orm_has_migration?
|
28
|
-
migration_template 'migration.rb', 'db/migrate/acts_as_footprintable_migration'
|
28
|
+
migration_template 'migration.rb', 'db/migrate/acts_as_footprintable_migration.rb', migration_version: migration_version
|
29
29
|
end
|
30
30
|
end
|
31
|
+
|
32
|
+
def migration_version
|
33
|
+
if rails5?
|
34
|
+
"[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def rails5?
|
39
|
+
Rails.version.start_with? '5'
|
40
|
+
end
|
31
41
|
end
|
32
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_footprintable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toyoaki Oko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,20 +28,23 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
45
48
|
- - ">="
|
46
49
|
- !ruby/object:Gem::Version
|
47
50
|
version: 3.0.0
|
@@ -49,6 +52,9 @@ dependencies:
|
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '3.0'
|
52
58
|
- - ">="
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: 3.0.0
|
@@ -56,28 +62,28 @@ dependencies:
|
|
56
62
|
name: pg
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - "
|
65
|
+
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
67
|
version: '0'
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- - "
|
72
|
+
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
74
|
version: '0'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: timecop
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
|
-
- - "
|
79
|
+
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
81
|
version: '0'
|
76
82
|
type: :development
|
77
83
|
prerelease: false
|
78
84
|
version_requirements: !ruby/object:Gem::Requirement
|
79
85
|
requirements:
|
80
|
-
- - "
|
86
|
+
- - "~>"
|
81
87
|
- !ruby/object:Gem::Version
|
82
88
|
version: '0'
|
83
89
|
- !ruby/object:Gem::Dependency
|
@@ -85,6 +91,9 @@ dependencies:
|
|
85
91
|
requirement: !ruby/object:Gem::Requirement
|
86
92
|
requirements:
|
87
93
|
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1.0'
|
96
|
+
- - ">="
|
88
97
|
- !ruby/object:Gem::Version
|
89
98
|
version: 1.0.1
|
90
99
|
type: :development
|
@@ -92,20 +101,23 @@ dependencies:
|
|
92
101
|
version_requirements: !ruby/object:Gem::Requirement
|
93
102
|
requirements:
|
94
103
|
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '1.0'
|
106
|
+
- - ">="
|
95
107
|
- !ruby/object:Gem::Version
|
96
108
|
version: 1.0.1
|
97
109
|
- !ruby/object:Gem::Dependency
|
98
110
|
name: pry
|
99
111
|
requirement: !ruby/object:Gem::Requirement
|
100
112
|
requirements:
|
101
|
-
- - "
|
113
|
+
- - "~>"
|
102
114
|
- !ruby/object:Gem::Version
|
103
115
|
version: '0'
|
104
116
|
type: :development
|
105
117
|
prerelease: false
|
106
118
|
version_requirements: !ruby/object:Gem::Requirement
|
107
119
|
requirements:
|
108
|
-
- - "
|
120
|
+
- - "~>"
|
109
121
|
- !ruby/object:Gem::Version
|
110
122
|
version: '0'
|
111
123
|
description: Rails gem to allowing records to leave footprints
|
@@ -162,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
174
|
version: '0'
|
163
175
|
requirements: []
|
164
176
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.
|
177
|
+
rubygems_version: 2.6.13
|
166
178
|
signing_key:
|
167
179
|
specification_version: 4
|
168
180
|
summary: Rails gem to allowing records to leave footprints
|