ar_protobuf_store 1.0.0 → 1.0.1

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: 98e9759f6a95859a2855c87b78b2d64e07f5ad51
4
- data.tar.gz: dd06b77140489773f24e6f1b38aa1e8213fdcc7c
3
+ metadata.gz: 1b848c2f865f9be4c7fbb44e93d8b11382d6d248
4
+ data.tar.gz: d8748e034e946ac28fc72863c08d325c65fdc750
5
5
  SHA512:
6
- metadata.gz: 07c55b3e1e88d423f33efd5426dd0fafdfe1eb742fa51714d1f2baef0ef9226ad0e3cbd49b5f28980700bdce25f6a4d36e13c471f3e96202419fbdf585bbfb87
7
- data.tar.gz: 0852128fcfc9d4786a991ee07836bd753a78ae2d30c841008b117ac74c76d67e6efa6f2be825ca676abf59c2a01ad66f281b91850a88901f969235c8f3a3e6fe
6
+ metadata.gz: c0345e48136f001ee4fc8fe3257ed2c576b1f838a36705cdcb474da506c85d47204f35153de712c296a863b2f49662cf83b91434b1119de57e767f8b28c33246
7
+ data.tar.gz: 577845ea05fea5be4735fc3ee61270429f07d9c9189875ca77de7501030b46f8e1348a4ddbfb9c7d5c7a44d9fc44fd1fac0fd98b9c6e61913aab51786770d6a3
data/.travis.yml CHANGED
@@ -1,28 +1,26 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - 2.1.0
6
- - 2.1.1
3
+ - 2.0
4
+ - 2.1
5
+ - 2.2
6
+ - 2.3
7
7
  gemfile:
8
8
  - gemfiles/rails3.2_protobuf.gemfile
9
9
  - gemfiles/rails3.2_ruby_protobuf.gemfile
10
- - gemfiles/rails4.0_protobuf.gemfile
11
- - gemfiles/rails4.0_ruby_protobuf.gemfile
12
- - gemfiles/rails4.1_protobuf.gemfile
13
- - gemfiles/rails4.1_ruby_protobuf.gemfile
10
+ - gemfiles/rails4.0.0_protobuf.gemfile
11
+ - gemfiles/rails4.0.0_ruby_protobuf.gemfile
12
+ - gemfiles/rails4.1.0_protobuf.gemfile
13
+ - gemfiles/rails4.1.0_ruby_protobuf.gemfile
14
+ - gemfiles/rails4.2.0_protobuf.gemfile
15
+ - gemfiles/rails4.2.0_ruby_protobuf.gemfile
14
16
  matrix:
15
- exclude:
16
- - rvm: 1.8.7
17
- gemfile: gemfiles/rails3.2_protobuf.gemfile
18
- - rvm: 1.8.7
19
- gemfile: gemfiles/rails4.0_protobuf.gemfile
20
- - rvm: 1.8.7
21
- gemfile: gemfiles/rails4.0_ruby_protobuf.gemfile
22
- - rvm: 1.8.7
23
- gemfile: gemfiles/rails4.1_protobuf.gemfile
24
- - rvm: 1.8.7
25
- gemfile: gemfiles/rails4.1_ruby_protobuf.gemfile
17
+ include:
18
+ - rvm: 2.3
19
+ gemfile: gemfiles/rails5.0.1_protobuf.gemfile
20
+ - rvm: 2.3
21
+ gemfile: gemfiles/rails5.0.1_ruby_protobuf.gemfile
22
+ after_success:
23
+ - bundle exec codeclimate-test-reporter
26
24
  addons:
27
25
  code_climate:
28
26
  repo_token: 6bdbd657ebc3097c1ca86672a45b6408a457a5d80cea234937f4d4adfbf004bd
data/Appraisals CHANGED
@@ -1,4 +1,4 @@
1
- RAILS_VERSIONS = ["3.2", "4.0.0", "4.1.0", "4.2.0", "4.2.6"]
1
+ RAILS_VERSIONS = ["3.2", "4.0.0", "4.1.0", "4.2.0", "4.2.6", "5.0.1"]
2
2
  PROTOBUF_SPECS = [
3
3
  ["protobuf", "~> 3.0"],
4
4
  ["ruby_protobuf", "~> 0.4"]
data/ChangeLog.md CHANGED
@@ -1,4 +1,9 @@
1
- ### 1.0.0 / 2015-05-15
1
+ ### 1.0.1 / 2016-05-15
2
+
3
+ * Declare support for Rails 5.
4
+ * Upgrade development gems, reducing the deprecation warning spam.
5
+
6
+ ### 1.0.0 / 2016-05-15
2
7
 
3
8
  * Don't allow coder's dump method to fail. Instead, return nil.
4
9
  * Pass options through correctly, so coder can respect defaults.
data/LICENSE.txt CHANGED
@@ -1,20 +1,21 @@
1
+ The MIT License (MIT)
2
+
1
3
  Copyright (c) 2014 Hsiu-Fan Wang
2
4
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
10
11
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
13
14
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ rescue LoadError => e
14
14
  end
15
15
 
16
16
  begin
17
- gem 'rspec', '~> 2.4'
17
+ gem 'rspec', '~> 3.5.0'
18
18
  require 'rspec/core/rake_task'
19
19
 
20
20
  RSpec::Core::RakeTask.new
@@ -31,7 +31,7 @@ begin
31
31
  gem 'yard', '~> 0.8'
32
32
  require 'yard'
33
33
 
34
- YARD::Rake::YardocTask.new
34
+ YARD::Rake::YardocTask.new
35
35
  rescue LoadError => e
36
36
  task :yard do
37
37
  abort "Please run `gem install yard` to install YARD."
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_runtime_dependency "activerecord", ">= 3.0", "< 4.3"
20
+ gem.add_runtime_dependency "activerecord", ">= 3.0", "< 5.1"
21
21
 
22
22
  # Install this by default to make development easier
23
23
  gem.add_development_dependency "ruby-protocol-buffers", "~> 1.5"
@@ -26,7 +26,7 @@ Gem::Specification.new do |gem|
26
26
  gem.add_development_dependency "pry", "~> 0.9"
27
27
  gem.add_development_dependency "sqlite3", "~> 1.3"
28
28
  gem.add_development_dependency "appraisal", "~> 1.0.0"
29
- gem.add_development_dependency "rspec", "~> 2.4"
29
+ gem.add_development_dependency "rspec", "~> 3.5.0"
30
30
  gem.add_development_dependency "rubygems-tasks", "~> 0.2"
31
31
  gem.add_development_dependency "yard", "~> 0.8"
32
32
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 4.2"
5
+ gem "rails", "~> 5.0.1"
6
6
  gem "protobuf", "~> 3.0"
7
7
 
8
8
  gemspec :path => "../"
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 4.1"
5
+ gem "rails", "~> 5.0.1"
6
6
  gem "ruby_protobuf", "~> 0.4"
7
7
 
8
8
  gemspec :path => "../"
@@ -1,4 +1,4 @@
1
1
  module ArProtobufStore
2
2
  # ar_protobuf_store version
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
@@ -4,6 +4,6 @@ require 'protocol_buffers'
4
4
 
5
5
  describe ArProtobufStore do
6
6
  it "should have a VERSION constant" do
7
- subject.const_get('VERSION').should_not be_empty
7
+ expect(subject.const_get('VERSION')).not_to be_empty
8
8
  end
9
9
  end
data/spec/spec_helper.rb CHANGED
@@ -4,8 +4,8 @@ require "ar_protobuf_store"
4
4
  require "active_record"
5
5
 
6
6
  if RUBY_VERSION > "1.8.7"
7
- require "codeclimate-test-reporter"
8
- CodeClimate::TestReporter.start
7
+ require 'simplecov'
8
+ SimpleCov.start
9
9
  end
10
10
 
11
11
  ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
@@ -18,7 +18,14 @@ def setup_db(&block)
18
18
  end
19
19
 
20
20
  def teardown_db
21
- ActiveRecord::Base.connection.tables.each do |table|
21
+ # ActiveRecord::Base.connection.tables is deprecated in Rails 5.
22
+ tables = if ActiveRecord::Base.connection.respond_to?(:data_sources)
23
+ ActiveRecord::Base.connection.data_sources
24
+ else
25
+ ActiveRecord::Base.connection.tables
26
+ end
27
+
28
+ tables.each do |table|
22
29
  ActiveRecord::Base.connection.drop_table(table)
23
30
  end
24
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_protobuf_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hsiu-Fan Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-16 00:00:00.000000000 Z
11
+ date: 2016-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '4.3'
22
+ version: '5.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '4.3'
32
+ version: '5.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ruby-protocol-buffers
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '2.4'
109
+ version: 3.5.0
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '2.4'
116
+ version: 3.5.0
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: rubygems-tasks
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -156,7 +156,6 @@ files:
156
156
  - Appraisals
157
157
  - ChangeLog.md
158
158
  - Gemfile
159
- - LICENSE
160
159
  - LICENSE.txt
161
160
  - README.md
162
161
  - Rakefile
@@ -165,20 +164,16 @@ files:
165
164
  - gemfiles/rails3.2_ruby_protobuf.gemfile
166
165
  - gemfiles/rails4.0.0_protobuf.gemfile
167
166
  - gemfiles/rails4.0.0_ruby_protobuf.gemfile
168
- - gemfiles/rails4.0_protobuf.gemfile
169
- - gemfiles/rails4.0_ruby_protobuf.gemfile
170
167
  - gemfiles/rails4.1.0_protobuf.gemfile
171
168
  - gemfiles/rails4.1.0_ruby_protobuf.gemfile
172
- - gemfiles/rails4.1_protobuf.gemfile
173
- - gemfiles/rails4.1_ruby_protobuf.gemfile
174
169
  - gemfiles/rails4.2.0_protobuf.gemfile
175
170
  - gemfiles/rails4.2.0_ruby_protobuf.gemfile
176
171
  - gemfiles/rails4.2.5_protobuf.gemfile
177
172
  - gemfiles/rails4.2.5_ruby_protobuf.gemfile
178
173
  - gemfiles/rails4.2.6_protobuf.gemfile
179
174
  - gemfiles/rails4.2.6_ruby_protobuf.gemfile
180
- - gemfiles/rails4.2_protobuf.gemfile
181
- - gemfiles/rails4.2_ruby_protobuf.gemfile
175
+ - gemfiles/rails5.0.1_protobuf.gemfile
176
+ - gemfiles/rails5.0.1_ruby_protobuf.gemfile
182
177
  - lib/ar_protobuf_store.rb
183
178
  - lib/ar_protobuf_store/codekitchen_protobuf_parser.rb
184
179
  - lib/ar_protobuf_store/protobuf_parser.rb
@@ -209,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
204
  version: '0'
210
205
  requirements: []
211
206
  rubyforge_project:
212
- rubygems_version: 2.4.8
207
+ rubygems_version: 2.5.1
213
208
  signing_key:
214
209
  specification_version: 4
215
210
  summary: Serialize Ar attributes with Protocol Buffers
data/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2014 Hsiu-Fan Wang
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 4.0"
6
- gem "protobuf", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 4.0"
6
- gem "ruby_protobuf", "~> 0.4"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 4.1"
6
- gem "protobuf", "~> 3.0"
7
-
8
- gemspec :path => "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 4.2"
6
- gem "ruby_protobuf", "~> 0.4"
7
-
8
- gemspec :path => "../"