sequel-attribute_callbacks 0.1.3 → 0.1.4

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: c86323078c1bbdd9eb54064ad9eeb75b9941c35d
4
- data.tar.gz: d219e62c1052581cca87af63234a0bc8106f2447
3
+ metadata.gz: 6bfb373da36fdd401b30d2ec851109717446f35d
4
+ data.tar.gz: e1e9d1a4cd2a2bd4b2a76a0b70cc0ace27673f0b
5
5
  SHA512:
6
- metadata.gz: fdc18ac6de5dbe5f270a32111930f8fb09ede2496210a97b8b0d17f99116b47e2885fe1d758a4995d39787bb2475a87a62863c4c045cc5a6f1544d3dd94c904b
7
- data.tar.gz: 991f382b752d07d1b595419dd0861645a0eb0875527ca2379c359cfb68695108e1283bebf65500d233b74c7179f9d528c5f55a0d980415cf7a36a6c56ccf6232
6
+ metadata.gz: d7c74abe4f6310c827494a91fdbf965bb1a1f7a5046b37f537b33089feba37e37586e16fe9ab324104e6a6ee674a4e84b4256e20f2d8a1ca57d5ea49c1ac0c44
7
+ data.tar.gz: 503bfff5f472b894da5e6a567001f65b85023fd42e86cb134f1a6596cd91f05bc264debd0ee77354646f49971a0b6d861addc424e6b8ab5f7a3f43cd035deaff
@@ -1,2 +1,2 @@
1
- require "sequel-attribute_callbacks/version"
1
+ require 'sequel/plugins/attribute_callbacks/version'
2
2
  require 'sequel/plugins/attribute_callbacks'
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module AttributeCallbacks
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'sequel-attribute_callbacks/version'
4
+ require 'sequel/plugins/attribute_callbacks/version'
5
5
 
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "sequel-attribute_callbacks"
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
- gem.add_runtime_dependency 'sequel', '~>3.44'
21
+ gem.add_runtime_dependency 'sequel', '>= 3.44', '< 5.0'
22
22
 
23
23
  gem.add_development_dependency 'rake', '~>10.0'
24
24
  gem.add_development_dependency 'rspec', '~>2.12'
@@ -4,8 +4,8 @@ describe 'attribute_callbacks plugin' do
4
4
  include_context 'database'
5
5
 
6
6
  before :all do
7
- db.execute "CREATE EXTENSION IF NOT EXISTS hstore"
8
- db.create_table :widgets do
7
+ @db.execute "CREATE EXTENSION IF NOT EXISTS hstore"
8
+ @db.create_table :widgets do
9
9
  primary_key :id
10
10
  String :name
11
11
  column :colors, 'text[]'
@@ -1,15 +1,16 @@
1
1
  require 'sequel-attribute_callbacks'
2
2
 
3
3
  shared_context 'database' do
4
- let(:dburl) { ENV['TEST_DATABASE_URL'] || 'postgres:///sequel-attribute_callbacks_test' }
5
- let(:db) { Sequel::connect dburl }
4
+ dburl = ENV['TEST_DATABASE_URL'] || 'postgres:///sequel-attribute_callbacks_test'
5
+ before(:all) { @db = Sequel::connect dburl }
6
+ let(:db) { @db }
6
7
 
7
- let(:clean_database) {
8
- db.execute """
8
+ def clean_database
9
+ @db.execute """
9
10
  DROP SCHEMA public CASCADE;
10
11
  CREATE SCHEMA public;
11
12
  """
12
- }
13
+ end
13
14
 
14
15
  before(:all) { clean_database }
15
16
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-attribute_callbacks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafał Rzepecki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-03 00:00:00.000000000 Z
11
+ date: 2013-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.44'
20
+ - - <
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ~>
27
+ - - '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.44'
30
+ - - <
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rake
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -80,9 +86,9 @@ files:
80
86
  - README.md
81
87
  - Rakefile
82
88
  - lib/sequel-attribute_callbacks.rb
83
- - lib/sequel-attribute_callbacks/version.rb
84
89
  - lib/sequel/plugins/attribute_callbacks.rb
85
90
  - lib/sequel/plugins/attribute_callbacks/rich_data_fixes.rb
91
+ - lib/sequel/plugins/attribute_callbacks/version.rb
86
92
  - sequel-attribute_callbacks.gemspec
87
93
  - spec/callbacks_spec.rb
88
94
  - spec/spec_helper.rb
@@ -106,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
112
  version: '0'
107
113
  requirements: []
108
114
  rubyforge_project:
109
- rubygems_version: 2.0.3
115
+ rubygems_version: 2.1.4
110
116
  signing_key:
111
117
  specification_version: 4
112
118
  summary: Attribute modification callbacks