native_enum 1.0.0 → 2.0.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: 7c36fa38e55ef02bee0cd0f847e761369a3bd3ee
4
- data.tar.gz: b99e44f639de95c7fd18e131421845436a9ca998
3
+ metadata.gz: 1930d8bc4e8a07bc5be7d1239656652edadfe04e
4
+ data.tar.gz: 9bc5351a6d15bd0e4ac0887b3a13ee1df481d802
5
5
  SHA512:
6
- metadata.gz: fddecaf480a6468c31fbde72d2a71a970ca2dc29d16dfd6f999716edb9c27ae3d3c3f21d1debb35a6b1c95c566d62855548705196559ef5fc231b222145db33e
7
- data.tar.gz: 4f6870e00b9837cad9143f5d472bb4098acc3cdebc2b0ba1e27554518c9c4b49b46d85afc38c30a2b6ee58338d5244cd82929fd0838269272ebef06247ac9e42
6
+ metadata.gz: efada9d62f110f931f80d4dcb83816ddd4a0528055ca8007fa3659a627b623a1eef77c282e99c7bfc44443e2c79dadd9cb5b2f118c3e6edc4e318ca2927867a7
7
+ data.tar.gz: 15a1938520b28a0002642ed4dae3c289a7bb670b186e68289efbcd173045006ba47e57d77336653d124b6e0faf381604e8068eef02557259e0aced82433a2da4
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  *.gem
2
2
  .bundle
3
- Gemfile*.lock
3
+ Gemfile.lock
4
+ gemfiles/*.gemfile.lock
4
5
  pkg/*
5
6
  spec/database.yml
6
7
  spec/vendor
data/.travis.yml CHANGED
@@ -1,11 +1,34 @@
1
1
  language: ruby
2
+ services:
3
+ - mysql
2
4
  rvm:
3
- - 1.9.3
4
5
  - "2.0"
5
6
  - "2.1"
6
7
  - "2.2"
8
+ - "2.3"
9
+ - "2.4"
10
+ - "2.5"
11
+ - "2.6"
12
+ gemfile:
13
+ - gemfiles/activerecord_4.1.gemfile
14
+ - gemfiles/activerecord_4.2.gemfile
15
+ - gemfiles/activerecord_5.0.gemfile
16
+ - gemfiles/activerecord_5.1.gemfile
17
+ env:
18
+ - DB=mysql
19
+ - DB=sqlite
20
+ matrix:
21
+ exclude:
22
+ - rvm: "2.0"
23
+ gemfile: gemfiles/activerecord_5.0.gemfile
24
+ - rvm: "2.0"
25
+ gemfile: gemfiles/activerecord_5.1.gemfile
26
+ - rvm: "2.1"
27
+ gemfile: gemfiles/activerecord_5.0.gemfile
28
+ - rvm: "2.1"
29
+ gemfile: gemfiles/activerecord_5.1.gemfile
7
30
  before_script:
8
- - "mysql -e 'create database native_enum_test;' >/dev/null"
9
31
  - "cp spec/{.travis.,}database.yml"
10
- script: bundle exec rake spec:rails_all
32
+ - "bundle exec rake db:prepare"
33
+ script: bundle exec rake spec
11
34
  sudo: false
data/Appraisals ADDED
@@ -0,0 +1,18 @@
1
+ appraise "activerecord-4.1" do
2
+ gem "activerecord", "~> 4.1.0"
3
+ gem "minitest", "< 5.12"
4
+ gem "mysql2", "~> 0.3.13"
5
+ end
6
+
7
+ appraise "activerecord-4.2" do
8
+ gem "activerecord", "~> 4.2.0"
9
+ gem "minitest", "< 5.12"
10
+ end
11
+
12
+ appraise "activerecord-5.0" do
13
+ gem "activerecord", "~> 5.0.0"
14
+ end
15
+
16
+ appraise "activerecord-5.1" do
17
+ gem "activerecord", "~> 5.1.0"
18
+ end
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Unreleased
2
+
3
+ # 2.0.0
4
+
5
+ * [Support Rails 5.0 and 5.1](https://github.com/iangreenleaf/native_enum/pull/13)
6
+ * Drop support for Ruby 1.9.3
7
+ * Drop support for Rails < 4.1.0
8
+
9
+ # 1.0.0
10
+
11
+ * First version
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (C) 2011 by Ian Young
1
+ Copyright (C) 2015 by Ian Young
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/README.markdown CHANGED
@@ -41,9 +41,9 @@ That's it!
41
41
 
42
42
  It currently works with:
43
43
 
44
- * ActiveRecord 3.x and 4.0, 4.1, and 4.2.
44
+ * ActiveRecord 4.0, 4.1, 4.2, 5.0, and 5.1.
45
45
  * The `mysql2` and `sqlite` adapters.
46
- * Ruby 1.9.3, 2.0.x, 2.1.x, and 2.2.x.
46
+ * Ruby 2.0 and above.
47
47
 
48
48
  If you'd like to support other adapters, pull requests are welcome!
49
49
 
@@ -79,14 +79,14 @@ Pull requests welcome! Join
79
79
 
80
80
  ### Running the tests ###
81
81
 
82
- To run the tests for all supported database adapters:
83
-
84
- rake spec:all
85
-
86
82
  To run the tests for all adapters and all versions of ActiveRecord:
87
83
 
88
- rake spec:rails_all
84
+ appraisal rake spec:all
89
85
 
90
- To run the tests for just one adapter:
86
+ To run the tests for a specific adapter:
91
87
 
92
88
  DB=mysql rake spec
89
+
90
+ To run the tests for a specific version of ActiveRecord:
91
+
92
+ appraisal activerecord-5.2 rake spec:all
data/Rakefile CHANGED
@@ -9,13 +9,36 @@ require 'rake'
9
9
  desc 'Default: run all unit tests.'
10
10
  task :default => :"spec:all"
11
11
 
12
+ require 'active_record'
13
+
14
+ # For more info on DatabaseTasks, see:
15
+ # https://github.com/rails/rails/blob/v5.0.7/activerecord/lib/active_record/tasks/database_tasks.rb
12
16
  namespace :db do
17
+ task :load_config do
18
+ db_configs = YAML.load_file('spec/database.yml')
19
+ ActiveRecord::Tasks::DatabaseTasks.tap do |db_tasks|
20
+ ActiveRecord::Base.configurations = db_configs
21
+ db_tasks.database_configuration = db_configs
22
+ db_tasks.db_dir = 'db'
23
+ db_tasks.root = File.dirname(__FILE__)
24
+ end
25
+ end
26
+
13
27
  desc 'Prepare the databases.'
14
- task :prepare do
28
+ task prepare: :load_config do
15
29
  unless File.exist? DB_CONFIG
16
- cp "#{config_file}.tmpl", DB_CONFIG
30
+ cp "#{DB_CONFIG}.tmpl", DB_CONFIG
31
+ end
32
+
33
+ ActiveRecord::Tasks::DatabaseTasks.tap do |db_tasks|
34
+ db_tasks.create_current('mysql')
35
+ db_tasks.create_current('sqlite')
17
36
  end
18
- #TODO would be nice to create the DBs here
37
+ end
38
+
39
+ desc "Drop all databases created for testing"
40
+ task drop_all: :load_config do
41
+ ActiveRecord::Tasks::DatabaseTasks.drop_all
19
42
  end
20
43
  end
21
44
 
@@ -30,23 +53,10 @@ desc 'Run the test suite for all DBs.'
30
53
  namespace :spec do
31
54
  task :all do
32
55
  db_config = YAML::load(IO.read(DB_CONFIG))
33
- db_config.each do |db,config|
56
+ db_config.each do |db, config|
34
57
  ENV["DB"] = db
35
58
  Rake::Task["spec"].reenable
36
59
  Rake::Task["spec"].invoke
37
60
  end
38
61
  end
39
-
40
- desc 'Run the test suite for all supported versions of rails and all DBs'
41
- task :rails_all do
42
- STDOUT.sync = true
43
- versions = Dir.glob(GEMFILES)
44
- versions.each do |gemfile|
45
- puts "Running specs for Gemfile: #{gemfile}"
46
- Bundler.with_clean_env do
47
- sh "bundle install --gemfile '#{gemfile}' --path 'vendor/#{File.extname(gemfile).slice(1..-1)}'"
48
- sh "BUNDLE_GEMFILE='#{gemfile}' bundle exec rake spec:all"
49
- end
50
- end
51
- end
52
62
  end
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activerecord", "~> 4.1.0"
6
+ gem "minitest", "< 5.12"
7
+ gem "mysql2", "~> 0.3.13"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activerecord", "~> 4.2.0"
6
+ gem "minitest", "< 5.12"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.0.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "http://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.1.0"
6
+
7
+ gemspec path: "../"
@@ -2,26 +2,50 @@ require 'active_record/connection_adapters/mysql2_adapter'
2
2
 
3
3
  module ActiveRecord
4
4
  module ConnectionAdapters
5
- existing_class = defined?( Mysql2Adapter ) ? Mysql2Adapter : AbstractMysqlAdapter
5
+ existing_class = defined?(Mysql2Adapter) ? Mysql2Adapter : AbstractMysqlAdapter
6
6
 
7
7
  existing_class.class_eval do
8
8
  def native_database_types_with_enum
9
- native_database_types_without_enum.merge( :enum => { :name => "enum" }, :set => { :name => "set" } )
9
+ native_database_types_without_enum.merge({
10
+ :enum => { :name => "enum" },
11
+ :set => { :name => "set" }
12
+ })
10
13
  end
11
14
  alias_method :native_database_types_without_enum, :native_database_types
12
15
  alias_method :native_database_types, :native_database_types_with_enum
13
16
 
14
- def type_to_sql_with_enum type, limit=nil, *args
15
- if type.to_s == "enum" || type.to_s == "set"
16
- "#{type}(#{quoted_comma_list limit})"
17
- else
18
- type_to_sql_without_enum type, limit, *args
17
+
18
+
19
+ if ActiveRecord::VERSION::MAJOR >= 5 && ActiveRecord::VERSION::MINOR >= 1
20
+ def type_to_sql_with_enum(type, limit: nil, **args)
21
+ if type.to_s == "enum" || type.to_s == "set"
22
+ list = limit
23
+ if limit.is_a?(Hash)
24
+ list = limit[:limit]
25
+ end
26
+ "#{type}(#{quoted_comma_list(list)})"
27
+ else
28
+ type_to_sql_without_enum(type, limit: limit, **args)
29
+ end
30
+ end
31
+ else
32
+ def type_to_sql_with_enum(type, limit=nil, *args)
33
+ if type.to_s == "enum" || type.to_s == "set"
34
+ list = limit
35
+ if limit.is_a?(Hash)
36
+ list = limit[:limit]
37
+ end
38
+ "#{type}(#{quoted_comma_list(list)})"
39
+ else
40
+ type_to_sql_without_enum(type, limit, *args)
41
+ end
19
42
  end
20
43
  end
21
44
  alias_method :type_to_sql_without_enum, :type_to_sql
22
45
  alias_method :type_to_sql, :type_to_sql_with_enum
23
46
 
24
47
  private
48
+
25
49
  def quoted_comma_list list
26
50
  list.to_a.map{|n| "'#{n}'"}.join(",")
27
51
  end
@@ -3,11 +3,20 @@ require 'active_record/connection_adapters/sqlite3_adapter'
3
3
  module ActiveRecord
4
4
  module ConnectionAdapters
5
5
  class SQLite3Adapter < (defined?(SQLiteAdapter) ? SQLiteAdapter : AbstractAdapter)
6
- def type_to_sql_with_enum type, limit=nil, *args
7
- if type.to_s == "enum" || type.to_s == "set"
8
- type, limit = :string, nil
6
+ if ActiveRecord::VERSION::MAJOR >= 5 && ActiveRecord::VERSION::MINOR >= 1
7
+ def type_to_sql_with_enum(type, limit: nil, **args)
8
+ if type.to_s == "enum" || type.to_s == "set"
9
+ type, limit = :string, nil
10
+ end
11
+ type_to_sql_without_enum(type, limit: limit, **args)
12
+ end
13
+ else
14
+ def type_to_sql_with_enum(type, limit=nil, *args)
15
+ if type.to_s == "enum" || type.to_s == "set"
16
+ type, limit = :string, nil
17
+ end
18
+ type_to_sql_without_enum(type, limit, *args)
9
19
  end
10
- type_to_sql_without_enum type, limit, *args
11
20
  end
12
21
  alias_method :type_to_sql_without_enum, :type_to_sql
13
22
  alias_method :type_to_sql, :type_to_sql_with_enum
@@ -3,7 +3,7 @@ module ActiveRecord
3
3
  if defined?(AbstractMysqlAdapter)
4
4
  class AbstractMysqlAdapter
5
5
  protected
6
- def initialize_type_map_with_enum(m)
6
+ def initialize_type_map_with_enum(m = type_map)
7
7
  initialize_without_enum(m)
8
8
  register_enum_type(m, %r(^enum)i)
9
9
  register_set_type(m, %r(^set)i)
@@ -55,9 +55,14 @@ module ActiveRecord
55
55
  @limit = options[:limit]
56
56
  end
57
57
 
58
- def type_cast_from_database(value)
58
+ # Deserialize value from the database
59
+ #
60
+ # See: https://github.com/rails/rails/blob/v5.0.7/activemodel/lib/active_model/type/value.rb#L15-L23
61
+ def deserialize(value)
59
62
  value.split(",")
60
63
  end
64
+ # deserialize used to be called type_cast_from_database before v5
65
+ alias_method :type_cast_from_database, :deserialize
61
66
  end
62
67
  end
63
68
  end
@@ -1,3 +1,3 @@
1
1
  module NativeEnum
2
- VERSION = "1.0.0"
2
+ VERSION = "2.0.0"
3
3
  end
data/native_enum.gemspec CHANGED
@@ -11,15 +11,17 @@ Gem::Specification.new do |s|
11
11
  s.homepage = ""
12
12
  s.summary = %q{Enum data types for ActiveRecord}
13
13
  s.description = %q{Adds the ENUM data type natively to ActiveRecord.}
14
+ s.license = "MIT"
14
15
 
15
16
  s.rubyforge_project = "native_enum"
16
17
 
17
18
  s.add_dependency "activerecord", ">= 3.0"
18
19
  s.add_development_dependency "rake"
19
20
  s.add_development_dependency "bundler"
20
- s.add_development_dependency "mysql2", "~> 0.3.11"
21
+ s.add_development_dependency "mysql2", ">= 0.3.11", "< 0.5"
21
22
  s.add_development_dependency "sqlite3", "~>1.3.4"
22
- s.add_development_dependency "rspec", "~> 3.1.0"
23
+ s.add_development_dependency "rspec", "~> 3.1"
24
+ s.add_development_dependency "appraisal"
23
25
 
24
26
  s.files = `git ls-files`.split("\n")
25
27
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,7 +1,7 @@
1
1
  mysql:
2
2
  adapter: mysql2
3
3
  database: native_enum_test
4
- username:
4
+ username: root
5
5
  supports_enums: true
6
6
  sqlite:
7
7
  adapter: sqlite3
data/spec/enum_spec.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe "ENUM datatype" do
3
+ RSpec.describe "ENUM datatype" do
4
4
 
5
5
  describe "schema dump", :db_support => true do
6
6
  before { load_schema "enum_old" }
data/spec/set_spec.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe "SET datatype" do
3
+ RSpec.describe "SET datatype" do
4
4
 
5
5
  describe "schema dump", :db_support => true do
6
6
  before { load_schema "set_old" }
data/spec/spec_helper.rb CHANGED
@@ -1,48 +1,77 @@
1
1
  require 'rspec'
2
2
  require 'yaml'
3
3
 
4
- def db
5
- ENV["DB"] || "mysql"
4
+ module DBConfig
5
+ class << self
6
+ def db
7
+ ENV["DB"] || "mysql"
8
+ end
9
+
10
+ def all_configs
11
+ @all_configs ||= YAML::load(IO.read("spec/database.yml"))
12
+ end
13
+
14
+ def current
15
+ all_configs[db]
16
+ end
17
+ end
6
18
  end
7
19
 
8
- def load_schema filename
9
- # silence verbose schema loading
10
- original_stdout = $stdout
11
- $stdout = StringIO.new
20
+ module DatabaseHelpers
21
+ def load_schema(filename)
22
+ root = File.expand_path(File.dirname(__FILE__))
23
+ load root + "/schema/#{filename}.rb"
24
+ end
12
25
 
13
- root = File.expand_path(File.dirname(__FILE__))
14
- load root + "/schema/#{filename}.rb"
26
+ def dumped_schema
27
+ stream = StringIO.new
28
+ ActiveRecord::SchemaDumper.ignore_tables = []
29
+ ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
30
+ stream.string.lines.select {|l| /^\s*#/.match(l).nil? }.join
31
+ end
15
32
 
16
- ensure
17
- $stdout = original_stdout
18
- end
33
+ def column_props(table, column)
34
+ case DBConfig.db
35
+ when "mysql"
36
+ result = ActiveRecord::Base.connection.select_one(
37
+ "SHOW FIELDS FROM #{table} WHERE Field='#{column}'"
38
+ )
39
+ {
40
+ :type => result["Type"],
41
+ :default => result["Default"],
42
+ :null => ( result["Null"] == "YES" )
43
+ }
44
+ when "sqlite"
45
+ result = ActiveRecord::Base.connection.select_value "SELECT sql FROM sqlite_master WHERE type='table' AND name='#{table}'"
46
+ matches = /"#{column}" ([^[:space:]]+) (?:DEFAULT '([^[:space:]]+)')?( NOT NULL)?,/.match result
47
+ { :type => matches[1], :default => matches[2], :null => matches[3].nil? }
48
+ end
49
+ end
19
50
 
20
- def dumped_schema
21
- stream = StringIO.new
22
- ActiveRecord::SchemaDumper.ignore_tables = []
23
- ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
24
- stream.string.lines.select {|l| /^\s*#/.match(l).nil? }.join
25
- end
51
+ def db_config
52
+ DBConfig.db_config
53
+ end
26
54
 
27
- def column_props table, column
28
- case db
29
- when "mysql"
30
- result = ActiveRecord::Base.connection.select_one "SHOW FIELDS FROM #{table} WHERE Field='#{column}'"
31
- { :type => result["Type"], :default => result["Default"], :null => ( result["Null"] == "YES" ) }
32
- when "sqlite"
33
- result = ActiveRecord::Base.connection.select_value "SELECT sql FROM sqlite_master WHERE type='table' AND name='#{table}'"
34
- matches = /"#{column}" ([^[:space:]]+) (?:DEFAULT '([^[:space:]]+)')?( NOT NULL)?,/.match result
35
- { :type => matches[1], :default => matches[2], :null => matches[3].nil? }
55
+ def db
56
+ DBConfig.db
36
57
  end
37
58
  end
38
59
 
39
- db_config = YAML::load(IO.read("spec/database.yml"))
40
-
41
- require db_config[db]["adapter"]
60
+ require DBConfig.current["adapter"]
42
61
  require 'native_enum'
43
62
 
44
- ActiveRecord::Base.configurations = db_config
45
- ActiveRecord::Base.establish_connection db.to_sym
46
63
  RSpec.configure do |c|
47
- c.filter_run_excluding :db_support => ! db_config[db]["supports_enums"]
64
+ c.disable_monkey_patching!
65
+ c.expose_dsl_globally = false
66
+
67
+ c.include DatabaseHelpers
68
+ c.filter_run_excluding db_support: !DBConfig.current["supports_enums"]
69
+ c.before :suite do
70
+ db_config = DBConfig.all_configs
71
+ db = DBConfig.db
72
+ ActiveRecord::Base.configurations = db_config
73
+ ActiveRecord::Base.establish_connection db.to_sym
74
+ # Silence AR's logging (e.g. when loading the schema)
75
+ ActiveRecord::Migration.verbose = false
76
+ end
48
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: native_enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Young
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-01 00:00:00.000000000 Z
11
+ date: 2019-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -56,16 +56,22 @@ dependencies:
56
56
  name: mysql2
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.3.11
62
+ - - "<"
63
+ - !ruby/object:Gem::Version
64
+ version: '0.5'
62
65
  type: :development
63
66
  prerelease: false
64
67
  version_requirements: !ruby/object:Gem::Requirement
65
68
  requirements:
66
- - - "~>"
69
+ - - ">="
67
70
  - !ruby/object:Gem::Version
68
71
  version: 0.3.11
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '0.5'
69
75
  - !ruby/object:Gem::Dependency
70
76
  name: sqlite3
71
77
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +92,28 @@ dependencies:
86
92
  requirements:
87
93
  - - "~>"
88
94
  - !ruby/object:Gem::Version
89
- version: 3.1.0
95
+ version: '3.1'
90
96
  type: :development
91
97
  prerelease: false
92
98
  version_requirements: !ruby/object:Gem::Requirement
93
99
  requirements:
94
100
  - - "~>"
95
101
  - !ruby/object:Gem::Version
96
- version: 3.1.0
102
+ version: '3.1'
103
+ - !ruby/object:Gem::Dependency
104
+ name: appraisal
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
97
117
  description: Adds the ENUM data type natively to ActiveRecord.
98
118
  email:
99
119
  - dev@iangreenleaf.com
@@ -102,12 +122,17 @@ extensions: []
102
122
  extra_rdoc_files: []
103
123
  files:
104
124
  - ".gitignore"
105
- - ".ruby-version"
106
125
  - ".travis.yml"
126
+ - Appraisals
127
+ - CHANGELOG.md
107
128
  - Gemfile
108
129
  - LICENSE
109
130
  - README.markdown
110
131
  - Rakefile
132
+ - gemfiles/activerecord_4.1.gemfile
133
+ - gemfiles/activerecord_4.2.gemfile
134
+ - gemfiles/activerecord_5.0.gemfile
135
+ - gemfiles/activerecord_5.1.gemfile
111
136
  - lib/connection_adapters/mysql2.rb
112
137
  - lib/connection_adapters/sqlite3.rb
113
138
  - lib/native_enum.rb
@@ -116,12 +141,6 @@ files:
116
141
  - lib/native_enum/version.rb
117
142
  - native_enum.gemspec
118
143
  - spec/.travis.database.yml
119
- - spec/Gemfile.rails_3_0
120
- - spec/Gemfile.rails_3_1
121
- - spec/Gemfile.rails_3_2
122
- - spec/Gemfile.rails_4_0
123
- - spec/Gemfile.rails_4_1
124
- - spec/Gemfile.rails_4_2
125
144
  - spec/database.yml.tmpl
126
145
  - spec/enum_spec.rb
127
146
  - spec/schema/enum_new.rb
@@ -131,7 +150,8 @@ files:
131
150
  - spec/set_spec.rb
132
151
  - spec/spec_helper.rb
133
152
  homepage: ''
134
- licenses: []
153
+ licenses:
154
+ - MIT
135
155
  metadata: {}
136
156
  post_install_message:
137
157
  rdoc_options: []
@@ -149,17 +169,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
169
  version: '0'
150
170
  requirements: []
151
171
  rubyforge_project: native_enum
152
- rubygems_version: 2.4.2
172
+ rubygems_version: 2.6.11
153
173
  signing_key:
154
174
  specification_version: 4
155
175
  summary: Enum data types for ActiveRecord
156
176
  test_files:
157
- - spec/Gemfile.rails_3_0
158
- - spec/Gemfile.rails_3_1
159
- - spec/Gemfile.rails_3_2
160
- - spec/Gemfile.rails_4_0
161
- - spec/Gemfile.rails_4_1
162
- - spec/Gemfile.rails_4_2
163
177
  - spec/database.yml.tmpl
164
178
  - spec/enum_spec.rb
165
179
  - spec/schema/enum_new.rb
@@ -168,4 +182,3 @@ test_files:
168
182
  - spec/schema/set_old.rb
169
183
  - spec/set_spec.rb
170
184
  - spec/spec_helper.rb
171
- has_rdoc:
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.1.2
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
- gemspec :path => ".."
3
- gem "mysql2", "~> 0.2.0"
4
- gem "activerecord", "~> 3.0.20"
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
- gemspec :path => ".."
3
- gem "mysql2", "~> 0.3.11"
4
- gem "activerecord", "~> 3.1.12"
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
- gemspec :path => ".."
3
- gem "mysql2", "~> 0.3.11"
4
- gem "activerecord", "~> 3.2.13"
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
- gemspec :path => ".."
3
- gem "mysql2", "~> 0.3.11"
4
- gem "activerecord", "~> 4.0.0", "< 4.1.0"
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
- gemspec :path => ".."
3
- gem "mysql2", "~> 0.3.11"
4
- gem "activerecord", "~> 4.1.0"
@@ -1,4 +0,0 @@
1
- source "http://rubygems.org"
2
- gemspec :path => ".."
3
- gem "mysql2", "~> 0.3.11"
4
- gem "activerecord", "~> 4.2.0"