activerecord-id_regions 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 311c4aec4507ba10f0ef0dc54286ae9ef6e89859
4
- data.tar.gz: 963d40797fafcf583d75d265fb621a6f38508e8a
3
+ metadata.gz: 11c3818bfad626f47dc0c68e09d030a1c977b0b3
4
+ data.tar.gz: c07e9d64102ee08b1c2718c512a56321e8d68a43
5
5
  SHA512:
6
- metadata.gz: 7871b4b62f685946bdc40adbace67b839fb31e91c036dcf4eac39c751104280166d481c47c93f6e1844086457295177b1ff227e3fd456ad08d1b149931b9604d
7
- data.tar.gz: 0066d121e0479d4955f4159e923d6b0c9a1ef24181602881f1953e72a635d4f947a967a1c65268a1562bb4e74fb45c9e215365e7a9637addaa7666a9b9582046
6
+ metadata.gz: '03579a1cecb1dc82b1c97fe862c65424d6316eebb7ebb266137e5427e6e3e82cc675931f26d566568bca7190f2fa3dcf07e3ee1a346bfd6aa860576bfbd67d08'
7
+ data.tar.gz: 3758552f03dfc1f54dfe1c0b10fccc85cd52001f5037ee8b1b1bdb099c08aa2dfaab59185490a23154047a16669e96ace1f27f81719e4edd397888a19c2861ef
data/.codeclimate.yml ADDED
@@ -0,0 +1,47 @@
1
+ ---
2
+ exclude_paths:
3
+ - ".git/"
4
+ - "**.xml"
5
+ - "**.yaml"
6
+ - "**.yml"
7
+ - "locale/"
8
+ - "spec/"
9
+ - "tools/"
10
+ engines:
11
+ brakeman:
12
+ # very slow :sad_panda:
13
+ enabled: false
14
+ bundler-audit:
15
+ # requires Gemfile.lock
16
+ enabled: false
17
+ csslint:
18
+ enabled: false
19
+ duplication:
20
+ enabled: true
21
+ config:
22
+ languages:
23
+ - ruby
24
+ - javascript
25
+ eslint:
26
+ enabled: false
27
+ channel: "eslint-3"
28
+ fixme:
29
+ # let's enable later
30
+ enabled: false
31
+ markdownlint:
32
+ # let's enable later
33
+ enabled: false
34
+ rubocop:
35
+ enabled: true
36
+ config: '.rubocop_cc.yml'
37
+ prepare:
38
+ fetch:
39
+ - url: "https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml"
40
+ path: ".rubocop_base.yml"
41
+ - url: "https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_cc_base.yml"
42
+ path: ".rubocop_cc_base.yml"
43
+ ratings:
44
+ paths:
45
+ - Gemfile.lock
46
+ - "**.rake"
47
+ - "**.rb"
data/.rspec CHANGED
@@ -1,3 +1,4 @@
1
1
  --require spec_helper
2
- --format documentation
3
2
  --color
3
+ --order random
4
+ --format documentation
data/.rspec_ci ADDED
@@ -0,0 +1,4 @@
1
+ --require spec_helper
2
+ --color
3
+ --order random
4
+ --profile
data/.rubocop.yml ADDED
@@ -0,0 +1,4 @@
1
+ inherit_from:
2
+ - https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml
3
+ # put all local rubocop config into .rubocop_local.yml as it will be loaded by .rubocop_cc.yml as well
4
+ - .rubocop_local.yml
data/.rubocop_cc.yml ADDED
@@ -0,0 +1,5 @@
1
+ inherit_from:
2
+ # this is downloaded by .codeclimate.yml
3
+ - .rubocop_base.yml
4
+ - .rubocop_cc_base.yml
5
+ - .rubocop_local.yml
@@ -0,0 +1,11 @@
1
+ #
2
+ # Special Exclusions
3
+ #
4
+ AllCops:
5
+ TargetRubyVersion: 2.2
6
+ Metrics/LineLength:
7
+ Exclude:
8
+ - Gemfile
9
+ Style/ExtraSpacing:
10
+ Exclude:
11
+ - Gemfile
data/.travis.yml CHANGED
@@ -1,5 +1,15 @@
1
- sudo: false
2
1
  language: ruby
3
2
  rvm:
4
- - 2.4.1
3
+ - '2.3.1'
4
+ - '2.4.1'
5
+ sudo: false
6
+ cache: bundler
5
7
  before_install: gem install bundler -v 1.14.6
8
+ after_script: bundle exec codeclimate-test-reporter
9
+ notifications:
10
+ webhooks:
11
+ urls:
12
+ - https://webhooks.gitter.im/e/d69f1b2b4c21a45fd023
13
+ on_success: change
14
+ on_failure: always
15
+ on_start: never
data/README.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # ActiveRecord::IdRegions
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/activerecord-id_regions.svg)](http://badge.fury.io/rb/activerecord-id_regions)
4
+ [![Build Status](https://travis-ci.org/ManageIQ/activerecord-id_regions.svg)](https://travis-ci.org/ManageIQ/activerecord-id_regions)
5
+ [![Code Climate](https://codeclimate.com/github/ManageIQ/activerecord-id_regions.svg)](https://codeclimate.com/github/ManageIQ/activerecord-id_regions)
6
+ [![Test Coverage](https://codeclimate.com/github/ManageIQ/activerecord-id_regions/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/activerecord-id_regions/coverage)
7
+ [![Dependency Status](https://gemnasium.com/ManageIQ/activerecord-id_regions.svg)](https://gemnasium.com/ManageIQ/activerecord-id_regions)
8
+ [![Security](https://hakiri.io/github/ManageIQ/activerecord-id_regions/master.svg)](https://hakiri.io/github/ManageIQ/activerecord-id_regions/master)
9
+
10
+ [![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/activerecord-id_regions?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
11
+
3
12
  ActiveRecord extension to allow partitioning ids into regions, for merge replication purposes
4
13
 
5
14
  ## Installation
@@ -27,4 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency "bundler"
28
28
  spec.add_development_dependency "rake"
29
29
  spec.add_development_dependency "rspec", "~> 3.0"
30
+
31
+ spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
32
+ spec.add_development_dependency "simplecov"
30
33
  end
@@ -154,10 +154,6 @@ module ActiveRecord::IdRegions
154
154
  end
155
155
  alias_method :region_id, :region_number
156
156
 
157
- def region_description
158
- miq_region.description if miq_region
159
- end
160
-
161
157
  def compressed_id
162
158
  self.class.compress_id(id)
163
159
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module IdRegions
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-id_regions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-02 00:00:00.000000000 Z
11
+ date: 2017-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -106,6 +106,34 @@ dependencies:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
108
  version: '3.0'
109
+ - !ruby/object:Gem::Dependency
110
+ name: codeclimate-test-reporter
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: 1.0.0
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: 1.0.0
123
+ - !ruby/object:Gem::Dependency
124
+ name: simplecov
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ type: :development
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
109
137
  description: ActiveRecord extension to allow partitioning ids into regions, for merge
110
138
  replication purposes
111
139
  email:
@@ -113,8 +141,13 @@ executables: []
113
141
  extensions: []
114
142
  extra_rdoc_files: []
115
143
  files:
144
+ - ".codeclimate.yml"
116
145
  - ".gitignore"
117
146
  - ".rspec"
147
+ - ".rspec_ci"
148
+ - ".rubocop.yml"
149
+ - ".rubocop_cc.yml"
150
+ - ".rubocop_local.yml"
118
151
  - ".travis.yml"
119
152
  - Gemfile
120
153
  - LICENSE.txt