multiplicity 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: dbb437285df420a10c5468ccbf46f342d5688356
4
- data.tar.gz: f2de70fd4eedac87e4af6a0eef0f597a48c25212
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MWRjYTBjYjRlNDU4OTE5M2M0ZWU5ZGRhOWE1YjA3MzgxZDlhOTM5ZA==
5
+ data.tar.gz: !binary |-
6
+ ZmNmOWQ3ZmVlMDgzMDEzZWQwNjNlYmFkOWQ2MGNkZGEyM2NlNGM1Mw==
5
7
  SHA512:
6
- metadata.gz: 63a4d8ec0b7e4d764364326081b743fa12e564229474b1469f0c33ba05f83548066b38aaed2bcb7a144a86ff3caa667abd897b94e587645afd3d48e6fc69d114
7
- data.tar.gz: 564a6288b57e4ffb1a789725784a6e5c581bdde1206173df73ad075143ee2a44c6692a3e538e228ee22d60ab1e73a9cb11112ce01d439a156a34dbb45425d9ce
8
+ metadata.gz: !binary |-
9
+ M2VjNTE3YWQ0OWE5ZTI3MGM0YTVhZGNmNjdmNmVkNTU4MGYzMzZjNzM2Nzky
10
+ YWZkMzE0ZjljNjRjMjA3MTk1ZDYyZjhhYTdjYTMyMDlmOGI2ODVjNTUxN2Iz
11
+ YTU0ZjA1ZjYzNTc0YWRkMmU5NWI5MDYzNzU4NDFlNDY5MWY4OTI=
12
+ data.tar.gz: !binary |-
13
+ NmUwMzFhZGMwYmUzMTc2MDU2ZDhmOGM4N2U2OGZkN2QzNjU2NWJmNDQwNDFk
14
+ ZDgxOTUzNTA2ZTliYjA4YTc3ZTNlZWNhOGY0M2JhNzM1NmQxNzU4YzkyMTM4
15
+ MTY3NjMxMDA0ZDkzOTk5NDk4NTQxYzQ2MmFlNWZkMGU5YzQ5MzQ=
data/.travis.yml ADDED
@@ -0,0 +1,26 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.9
6
+ - 2.2.5
7
+ - 2.3.1
8
+
9
+ gemfile:
10
+ - gemfiles/Gemfile.rails-5_0
11
+ - gemfiles/Gemfile.rails-4_2
12
+ - gemfiles/Gemfile.rails-3_2
13
+
14
+ matrix:
15
+ include:
16
+ - rvm: 2.3.1
17
+ gemfile: gemfiles/Gemfile.rails-edge
18
+ exclude:
19
+ - rvm: 1.9.3
20
+ gemfile: gemfiles/Gemfile.rails-5_0
21
+ - rvm: 2.0.0
22
+ gemfile: gemfiles/Gemfile.rails-5_0
23
+ - rvm: 2.1.9
24
+ gemfile: gemfiles/Gemfile.rails-5_0
25
+ allow_failures:
26
+ - gemfile: gemfiles/Gemfile.rails-edge
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Multiplicity
2
2
 
3
+ ![build status](https://travis-ci.org/alassek/multiplicity.svg?branch=master)
4
+
3
5
  Multiplicity is a gem for building a multitenant application in a Rack application,
4
6
  with a much less opinionated approach than e.g. [Apartment](https://github.com/influitive/apartment) might entail.
5
7
 
data/Rakefile CHANGED
@@ -1,2 +1,8 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec) do |t|
5
+ t.pattern = Dir.glob('spec/**/*_spec.rb')
6
+ end
7
+
2
8
  task :default => :spec
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'rack', '~> 1.4.5'
6
+ gem 'activerecord', '~> 3.2'
@@ -0,0 +1,83 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ multiplicity (0.1.0)
5
+ rack
6
+ virtus (>= 1.0.5)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (3.2.22.2)
12
+ activesupport (= 3.2.22.2)
13
+ builder (~> 3.0.0)
14
+ activerecord (3.2.22.2)
15
+ activemodel (= 3.2.22.2)
16
+ activesupport (= 3.2.22.2)
17
+ arel (~> 3.0.2)
18
+ tzinfo (~> 0.3.29)
19
+ activesupport (3.2.22.2)
20
+ i18n (~> 0.6, >= 0.6.4)
21
+ multi_json (~> 1.0)
22
+ arel (3.0.3)
23
+ axiom-types (0.1.1)
24
+ descendants_tracker (~> 0.0.4)
25
+ ice_nine (~> 0.11.0)
26
+ thread_safe (~> 0.3, >= 0.3.1)
27
+ builder (3.0.4)
28
+ coderay (1.1.1)
29
+ coercible (1.0.0)
30
+ descendants_tracker (~> 0.0.1)
31
+ descendants_tracker (0.0.4)
32
+ thread_safe (~> 0.3, >= 0.3.1)
33
+ diff-lcs (1.2.5)
34
+ equalizer (0.0.11)
35
+ i18n (0.7.0)
36
+ ice_nine (0.11.2)
37
+ method_source (0.8.2)
38
+ multi_json (1.12.1)
39
+ pry (0.10.4)
40
+ coderay (~> 1.1.0)
41
+ method_source (~> 0.8.1)
42
+ slop (~> 3.4)
43
+ rack (1.4.7)
44
+ rake (11.2.2)
45
+ rspec (3.5.0)
46
+ rspec-core (~> 3.5.0)
47
+ rspec-expectations (~> 3.5.0)
48
+ rspec-mocks (~> 3.5.0)
49
+ rspec-core (3.5.2)
50
+ rspec-support (~> 3.5.0)
51
+ rspec-expectations (3.5.0)
52
+ diff-lcs (>= 1.2.0, < 2.0)
53
+ rspec-support (~> 3.5.0)
54
+ rspec-mocks (3.5.0)
55
+ diff-lcs (>= 1.2.0, < 2.0)
56
+ rspec-support (~> 3.5.0)
57
+ rspec-support (3.5.0)
58
+ slop (3.6.0)
59
+ sqlite3 (1.3.11)
60
+ thread_safe (0.3.5)
61
+ tzinfo (0.3.51)
62
+ virtus (1.0.5)
63
+ axiom-types (~> 0.1)
64
+ coercible (~> 1.0)
65
+ descendants_tracker (~> 0.0, >= 0.0.3)
66
+ equalizer (~> 0.0, >= 0.0.9)
67
+
68
+ PLATFORMS
69
+ ruby
70
+
71
+ DEPENDENCIES
72
+ activerecord (~> 3.2)
73
+ bundler
74
+ multiplicity!
75
+ pry
76
+ rack (~> 1.4.5)
77
+ rake
78
+ rspec
79
+ rspec-expectations
80
+ sqlite3
81
+
82
+ BUNDLED WITH
83
+ 1.10.6
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'rack', '~> 1.6'
6
+ gem 'activerecord', '~> 4.2'
@@ -0,0 +1,87 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ multiplicity (0.1.0)
5
+ rack
6
+ virtus (>= 1.0.5)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (4.2.7)
12
+ activesupport (= 4.2.7)
13
+ builder (~> 3.1)
14
+ activerecord (4.2.7)
15
+ activemodel (= 4.2.7)
16
+ activesupport (= 4.2.7)
17
+ arel (~> 6.0)
18
+ activesupport (4.2.7)
19
+ i18n (~> 0.7)
20
+ json (~> 1.7, >= 1.7.7)
21
+ minitest (~> 5.1)
22
+ thread_safe (~> 0.3, >= 0.3.4)
23
+ tzinfo (~> 1.1)
24
+ arel (6.0.3)
25
+ axiom-types (0.1.1)
26
+ descendants_tracker (~> 0.0.4)
27
+ ice_nine (~> 0.11.0)
28
+ thread_safe (~> 0.3, >= 0.3.1)
29
+ builder (3.2.2)
30
+ coderay (1.1.1)
31
+ coercible (1.0.0)
32
+ descendants_tracker (~> 0.0.1)
33
+ descendants_tracker (0.0.4)
34
+ thread_safe (~> 0.3, >= 0.3.1)
35
+ diff-lcs (1.2.5)
36
+ equalizer (0.0.11)
37
+ i18n (0.7.0)
38
+ ice_nine (0.11.2)
39
+ json (1.8.3)
40
+ method_source (0.8.2)
41
+ minitest (5.9.0)
42
+ pry (0.10.4)
43
+ coderay (~> 1.1.0)
44
+ method_source (~> 0.8.1)
45
+ slop (~> 3.4)
46
+ rack (1.6.4)
47
+ rake (11.2.2)
48
+ rspec (3.5.0)
49
+ rspec-core (~> 3.5.0)
50
+ rspec-expectations (~> 3.5.0)
51
+ rspec-mocks (~> 3.5.0)
52
+ rspec-core (3.5.2)
53
+ rspec-support (~> 3.5.0)
54
+ rspec-expectations (3.5.0)
55
+ diff-lcs (>= 1.2.0, < 2.0)
56
+ rspec-support (~> 3.5.0)
57
+ rspec-mocks (3.5.0)
58
+ diff-lcs (>= 1.2.0, < 2.0)
59
+ rspec-support (~> 3.5.0)
60
+ rspec-support (3.5.0)
61
+ slop (3.6.0)
62
+ sqlite3 (1.3.11)
63
+ thread_safe (0.3.5)
64
+ tzinfo (1.2.2)
65
+ thread_safe (~> 0.1)
66
+ virtus (1.0.5)
67
+ axiom-types (~> 0.1)
68
+ coercible (~> 1.0)
69
+ descendants_tracker (~> 0.0, >= 0.0.3)
70
+ equalizer (~> 0.0, >= 0.0.9)
71
+
72
+ PLATFORMS
73
+ ruby
74
+
75
+ DEPENDENCIES
76
+ activerecord (~> 4.2)
77
+ bundler
78
+ multiplicity!
79
+ pry
80
+ rack (~> 1.6)
81
+ rake
82
+ rspec
83
+ rspec-expectations
84
+ sqlite3
85
+
86
+ BUNDLED WITH
87
+ 1.10.6
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'activerecord', '~> 5.0'
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'activerecord', github: 'rails/rails', branch: 'master'
6
+ gem 'arel', github: 'rails/arel', branch: 'master'
@@ -1,3 +1,3 @@
1
1
  module Multiplicity
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/multiplicity.gemspec CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
20
20
  spec.add_dependency 'virtus', '>= 1.0.5'
21
21
  spec.add_dependency 'rack'
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.12"
24
- spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "bundler"
24
+ spec.add_development_dependency "rake"
25
25
  spec.add_development_dependency "pry"
26
26
  spec.add_development_dependency "sqlite3"
27
27
  spec.add_development_dependency "rspec"
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multiplicity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Lassek
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-05 00:00:00.000000000 Z
11
+ date: 2016-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.0.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.0.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
- version: '1.12'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: '1.12'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pry
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: sqlite3
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec-expectations
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - ! '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description:
@@ -129,14 +129,21 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
- - ".gitignore"
133
- - ".rspec"
132
+ - .gitignore
133
+ - .rspec
134
+ - .travis.yml
134
135
  - Gemfile
135
136
  - LICENSE.txt
136
137
  - README.md
137
138
  - Rakefile
138
139
  - bin/console
139
140
  - bin/setup
141
+ - gemfiles/Gemfile.rails-3_2
142
+ - gemfiles/Gemfile.rails-3_2.lock
143
+ - gemfiles/Gemfile.rails-4_2
144
+ - gemfiles/Gemfile.rails-4_2.lock
145
+ - gemfiles/Gemfile.rails-5_0
146
+ - gemfiles/Gemfile.rails-edge
140
147
  - lib/multiplicity.rb
141
148
  - lib/multiplicity/adapters/active_record.rb
142
149
  - lib/multiplicity/middleware.rb
@@ -153,18 +160,19 @@ require_paths:
153
160
  - lib
154
161
  required_ruby_version: !ruby/object:Gem::Requirement
155
162
  requirements:
156
- - - ">="
163
+ - - ! '>='
157
164
  - !ruby/object:Gem::Version
158
165
  version: '0'
159
166
  required_rubygems_version: !ruby/object:Gem::Requirement
160
167
  requirements:
161
- - - ">="
168
+ - - ! '>='
162
169
  - !ruby/object:Gem::Version
163
170
  version: '0'
164
171
  requirements: []
165
172
  rubyforge_project:
166
- rubygems_version: 2.5.1
173
+ rubygems_version: 2.6.6
167
174
  signing_key:
168
175
  specification_version: 4
169
176
  summary: Simple multitenancy for rack-based web servers
170
177
  test_files: []
178
+ has_rdoc: