edge_rider 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -50,12 +50,10 @@ services:
50
50
  - mysql
51
51
 
52
52
  install:
53
- # Shave yaks
54
- - gem uninstall bundler -I -x --force
55
- # Old Travis CI bundler explodes when lockfile version doesn't match recently bumped version
56
- - gem install bundler --version='=1.12.5'
57
- # This is the default Travis CI install step
58
- - bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}
53
+ # Replace default Travis CI bundler script with a version that doesn't
54
+ # explode when lockfile doesn't match recently bumped version
55
+ - bundle install --no-deployment --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
56
+
59
57
 
60
58
  before_script:
61
59
  - psql -c 'create database edge_rider_test;' -U postgres
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
5
+
6
+ ## 0.3.3
7
+
8
+ ### Compatible changes
9
+
10
+ - Fix for deprecation warning in Rails 5.2 in `collect_id`
11
+ - Added this CHANGELOG file.
data/README.md CHANGED
@@ -59,7 +59,7 @@ fetch all IDs in a single query without instantiating a single ActiveRecord obje
59
59
  posts = Post.where(:archived => false)
60
60
  post_ids = posts.collect_ids
61
61
 
62
- *Implemenation note:* In Rails 3.2+, `#collect_ids` delegates to [`#pluck`](http://apidock.com/rails/ActiveRecord/Calculations/pluck),
62
+ *Implementation note:* In Rails 3.2+, `#collect_ids` delegates to [`#pluck`](http://apidock.com/rails/ActiveRecord/Calculations/pluck),
63
63
  which can be used for the same purpose.
64
64
 
65
65
 
@@ -76,7 +76,7 @@ any kind of argument that can be turned into a list of IDs:
76
76
 
77
77
  For this use case Edge Rider defines `#collect_ids` on many different types:
78
78
 
79
- Post.where(:id => [1, 2]).collect_ids # => [1, 2, 3]
79
+ Post.where(:id => [1, 2]).collect_ids # => [1, 2]
80
80
  [Post.find(1), Post.find(2)].collect_ids # => [1, 2]
81
81
  Post.find(1).collect_ids # => [1]
82
82
  [1, 2, 3].collect_ids # => [1, 2, 3]
@@ -24,7 +24,7 @@ GEM
24
24
  builder (3.2.2)
25
25
  database_cleaner (1.0.1)
26
26
  diff-lcs (1.2.5)
27
- gemika (0.3.2)
27
+ gemika (0.3.3)
28
28
  has_defaults (0.4.4)
29
29
  activerecord
30
30
  i18n (0.7.0)
@@ -63,4 +63,4 @@ DEPENDENCIES
63
63
  rspec
64
64
 
65
65
  BUNDLED WITH
66
- 1.12.5
66
+ 1.16.4
@@ -7,9 +7,15 @@ module EdgeRider
7
7
  def qualify_column_name(model, column_name)
8
8
  column_name = column_name.to_s
9
9
  unless column_name.include?('.')
10
- quoted_table_name = model.connection.quote_table_name(model.table_name)
11
- quoted_column_name = model.connection.quote_column_name(column_name)
12
- column_name = "#{quoted_table_name}.#{quoted_column_name}"
10
+ column_name = if ActiveRecord::VERSION::MAJOR < 4
11
+ quoted_table_name = model.connection.quote_table_name(model.table_name)
12
+ quoted_column_name = model.connection.quote_column_name(column_name)
13
+ "#{quoted_table_name}.#{quoted_column_name}"
14
+ else
15
+ # Rails 4+ will quote correctly and Rails 5.2 will print
16
+ # deprecation warnings if there are surplus quotes
17
+ "#{model.table_name}.#{column_name}"
18
+ end
13
19
  end
14
20
  column_name
15
21
  end
@@ -1,3 +1,3 @@
1
1
  module EdgeRider
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,38 +1,49 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: edge_rider
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.2
3
+ version: !ruby/object:Gem::Version
4
+ hash: 21
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 3
10
+ version: 0.3.3
5
11
  platform: ruby
6
- authors:
12
+ authors:
7
13
  - Henning Koch
8
14
  autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
- date: 2017-05-29 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2018-08-29 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
14
21
  name: activerecord
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
22
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
24
26
  - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
27
34
  description: Power tools for ActiveRecord relations (scopes)
28
35
  email: henning.koch@makandra.de
29
36
  executables: []
37
+
30
38
  extensions: []
39
+
31
40
  extra_rdoc_files: []
32
- files:
33
- - ".gitignore"
34
- - ".ruby-version"
35
- - ".travis.yml"
41
+
42
+ files:
43
+ - .gitignore
44
+ - .ruby-version
45
+ - .travis.yml
46
+ - CHANGELOG.md
36
47
  - LICENSE
37
48
  - README.md
38
49
  - Rakefile
@@ -76,27 +87,38 @@ files:
76
87
  - spec/support/database.travis.yml
77
88
  - spec/support/models.rb
78
89
  homepage: https://github.com/makandra/edge_rider
79
- licenses:
90
+ licenses:
80
91
  - MIT
81
- metadata: {}
82
92
  post_install_message:
83
93
  rdoc_options: []
84
- require_paths:
94
+
95
+ require_paths:
85
96
  - lib
86
- required_ruby_version: !ruby/object:Gem::Requirement
87
- requirements:
97
+ required_ruby_version: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
88
100
  - - ">="
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- required_rubygems_version: !ruby/object:Gem::Requirement
92
- requirements:
101
+ - !ruby/object:Gem::Version
102
+ hash: 3
103
+ segments:
104
+ - 0
105
+ version: "0"
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
93
109
  - - ">="
94
- - !ruby/object:Gem::Version
95
- version: '0'
110
+ - !ruby/object:Gem::Version
111
+ hash: 3
112
+ segments:
113
+ - 0
114
+ version: "0"
96
115
  requirements: []
116
+
97
117
  rubyforge_project:
98
- rubygems_version: 2.4.5.1
118
+ rubygems_version: 1.8.30
99
119
  signing_key:
100
- specification_version: 4
120
+ specification_version: 3
101
121
  summary: Power tools for ActiveRecord relations (scopes)
102
122
  test_files: []
123
+
124
+ has_rdoc:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: c06662e9706f085023e24d24a60f9b966e2b6976
4
- data.tar.gz: 1e294dc9431870a9db9430671a823dd64d8cedd0
5
- SHA512:
6
- metadata.gz: 5aaeb7c80c0c64a523787c4ed2a5c99acf1564cec2f7b74252bc58e796d8ecafd3113ba6d6cc4ea553b79118de5bc03dcbccca3de97ae20db331e81beb860c6c
7
- data.tar.gz: bbcd4ea9a827837f07dc65d1269fd8f0de9a3c433caf59b42bb1e7d1fd6945482be708095aa5b0c6a85e829ce230908577190ca3691743a19534eb0809d574b8