has_blob_bit_field 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: 5a4b7e6ba65aac5f80f706712c97b16456023f06
4
- data.tar.gz: 2f52dae5f3e2fe587bf3dbb1509f8cce48204cd2
3
+ metadata.gz: 49981851b7b6ee4e6f47c6dd40d972da94f2214c
4
+ data.tar.gz: 42fd5835bb8f988c99e3ec6e79c9d08e9112bccc
5
5
  SHA512:
6
- metadata.gz: f9aaf3bb20548a3148d0e92d8f1a0039e75a304516ab8222d000c408fec5021d63cc159f81ea8e239bd8fd66ab633e4389ea22a9449974291516d10d846ef4ea
7
- data.tar.gz: 203935e84e9f56f9485c0fc325380c283dbbee70fe1de92aeed93a907f2da8c435238e875553b58b1baa994c1816eb658a38468dfdc6a495700bd81f4cc99d7b
6
+ metadata.gz: 55d8342bd3714c23dcd756a1f075f5eb77ae464e78f4d674b3d02181e1c1cd9712c676a6eb680570cb33967c6647e2bb32518de8a672dae5e24dd0ef4bf90b3d
7
+ data.tar.gz: dcb70d44e7418e9f96f289c80a13437fc0c96e75ef4437b6355294b0ec2c698ce617d448502504bb9a87a14c0ac3ecf03e650d97a2746955cb80c82215867c99
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
3
  /Gemfile.lock
4
+ /gemfiles/*.lock
4
5
  /_yardoc/
5
6
  /coverage/
6
7
  /doc/
@@ -1,5 +1,10 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.1.2
5
- before_install: gem install bundler -v 1.12.5
4
+ - 2.0.0
5
+ - 2.2.5
6
+ gemfile:
7
+ - gemfiles/rails_3.gemfile
8
+ - gemfiles/rails_4.gemfile
9
+ - gemfiles/rails_5.gemfile
10
+ before_install: gem install bundler
data/README.md CHANGED
@@ -52,6 +52,8 @@ o.many_flags[700] # => IndexError
52
52
 
53
53
  * Accessing out of bounds indices raises an `IndexError`, but code could be adapted easily to return `nil` instead.
54
54
 
55
+ * Targets: Ruby 2.0+, Rails 3.0+
56
+
55
57
  ## Development
56
58
 
57
59
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activemodel", "~>3.0"
4
+
5
+ gemspec :path => "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activemodel", "~>4.0"
6
+
7
+ gemspec :path => "../"
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activemodel", "~>3.0"
4
+
5
+ gemspec :path => "../"
@@ -3,6 +3,6 @@ require_relative "has_blob_bit_field/version"
3
3
  require_relative "has_blob_bit_field/accessor"
4
4
  require_relative "has_blob_bit_field/extension"
5
5
 
6
- module HasBlobBitField
7
- ActiveModel::Dirty.include HasBlobBitField::Extension
6
+ module ActiveModel::Dirty
7
+ include HasBlobBitField::Extension
8
8
  end
@@ -4,7 +4,7 @@ module HasBlobBitField
4
4
  module Extension
5
5
  extend ActiveSupport::Concern
6
6
 
7
- class_methods do
7
+ module ClassMethods
8
8
  def has_blob_bit_field field, column: :"#{field}_blob"
9
9
  class_eval <<-EVAL, __FILE__, __LINE__
10
10
  def #{field}
@@ -1,3 +1,3 @@
1
1
  module HasBlobBitField
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_blob_bit_field
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
  - Marc-Andre Lafortune
@@ -110,6 +110,9 @@ files:
110
110
  - Rakefile
111
111
  - bin/console
112
112
  - bin/setup
113
+ - gemfiles/rails_3.gemfile
114
+ - gemfiles/rails_4.gemfile
115
+ - gemfiles/rails_5.gemfile
113
116
  - has_blob_bit_field.gemspec
114
117
  - lib/has_blob_bit_field.rb
115
118
  - lib/has_blob_bit_field/accessor.rb