sunstone 6.0.0.4 → 6.1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml DELETED
@@ -1,49 +0,0 @@
1
- dist: xenial
2
- language: ruby
3
- sudo: false
4
-
5
- cache:
6
- bundler: true
7
- directories:
8
- - /home/travis/.rvm/gems
9
-
10
- rvm:
11
- - 2.6
12
-
13
- env:
14
- matrix:
15
- - RAILS_VERSION=v6.0.0.rc1 GEM=activerecord:mysql2
16
- - RAILS_VERSION=v6.0.0.rc1 GEM=activerecord:sqlite3
17
- - RAILS_VERSION=v6.0.0.rc1 GEM=activerecord:postgresql
18
-
19
- services:
20
- - mysql
21
- addons:
22
- postgresql: "10"
23
-
24
- before_install:
25
- - unset BUNDLE_GEMFILE
26
- - gem update --system
27
- - gem update bundler
28
-
29
- install:
30
- - git clone --branch $RAILS_VERSION https://github.com/rails/rails.git ~/build/rails
31
-
32
- before_script:
33
- - sed -i "s/t.warning = true/t.warning = false/g" Rakefile
34
- - pushd ~/build/rails
35
- - git status
36
- - sed -i "s/Gem.ruby, '-w'/Gem.ruby, '-w0'/" ~/build/rails/activerecord/Rakefile
37
- - sed -i "s/t.warning = true/t.warning = false/g" ~/build/rails/activerecord/Rakefile
38
- - sed -i "/require 'support\/connection'/a \$LOAD_PATH.unshift\(File.expand_path\('~\/build\/malomalo\/sunstone\/lib'\)\)\nrequire 'sunstone'" ~/build/rails/activerecord/test/cases/helper.rb
39
- - cat ~/build/rails/Gemfile
40
- - rm ~/build/rails/Gemfile.lock
41
- - "sed -i \"/# Active Record./a gem 'sunstone', path: File.expand_path\\('~\\/build\\/malomalo\\/sunstone'\\)\" ~/build/rails/Gemfile"
42
- - cat ~/build/rails/Gemfile
43
- - bundle update --jobs=3 --retry=3
44
- - popd
45
- - bundle install --jobs=3 --retry=3
46
-
47
- script:
48
- - bundle exec rake test
49
- - cd ~/build/rails && ci/travis.rb
@@ -1,31 +0,0 @@
1
- module Arel
2
- module Attributes
3
- class Relation < Attribute
4
-
5
- attr_accessor :collection, :for_write
6
-
7
- def initialize(relation, name, collection = false, for_write=false)
8
- self[:relation] = relation
9
- self[:name] = name
10
- @collection = collection
11
- @for_write = for_write
12
- end
13
-
14
- def able_to_type_cast?
15
- false
16
- end
17
-
18
- def table_name
19
- nil
20
- end
21
-
22
- def eql? other
23
- self.class == other.class &&
24
- self.relation == other.relation &&
25
- self.name == other.name &&
26
- self.collection == other.collection
27
- end
28
-
29
- end
30
- end
31
- end