unscoped_associations 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ .bundle
2
+ pkg
3
+ .rvmrc
4
+ Gemfile.lock
data/Gemfile CHANGED
@@ -1,9 +1,3 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
- gem 'activerecord'
4
-
5
- group :development do
6
- gem 'bundler'
7
- gem 'jeweler'
8
- gem 'debugger'
9
- end
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2013-2014 Marc Anguera Insa
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
- Unscoped Associations
2
- =====================
1
+ # Unscoped Associations
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/unscoped_associations.png)](http://badge.fury.io/rb/unscoped_associations)
4
+
3
5
  Want to skip the `default_scope` when you get objects through associations (for some strange reasons)? Do it easily with this lib. Supported associations:
4
6
  * `:belongs_to`
5
7
  * `:has_one`
@@ -60,4 +62,4 @@ Anyway, you can use `unscoped` option, if you prefer.
60
62
  Ideas, fixes, improvements or any comment are welcome!
61
63
 
62
64
  ## License
63
- Copyright (c) 2013 Marc Anguera. Unscoped Associations is released under the [MIT](http://opensource.org/licenses/MIT) License.
65
+ Copyright (c) 2013-2014 Marc Anguera. Unscoped Associations is released under the [MIT](LICENSE) License.
data/Rakefile CHANGED
@@ -1,53 +1 @@
1
- # encoding: utf-8
2
-
3
- require 'rubygems'
4
- require 'bundler'
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- $stderr.puts e.message
9
- $stderr.puts "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require 'rake'
13
-
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "unscoped_associations"
18
- gem.homepage = "http://github.com/markets/unscoped_associations"
19
- gem.license = "MIT"
20
- gem.summary = %Q{Skip default_scope in your associations}
21
- gem.description = %Q{Skip default_scope in your associations}
22
- gem.email = "srmarc.ai@gmail.com"
23
- gem.authors = ["markets"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
-
28
- # Release tasks
29
- namespace :release do
30
- desc "create a patch release, create tag and push to github"
31
- task :patch do
32
- Rake::Task['version:bump:patch'].invoke
33
- Rake::Task['gemspec'].invoke
34
- `git commit -am 'Regenerate gemspec'`
35
- Rake::Task['git:release'].invoke
36
- end
37
-
38
- desc "create a minor, create tag and push to github"
39
- task :minor do
40
- Rake::Task['version:bump:minor'].invoke
41
- Rake::Task['gemspec'].invoke
42
- `git commit -am 'Regenerate gemspec'`
43
- Rake::Task['git:release'].invoke
44
- end
45
-
46
- desc "create a major, create tag and push to github"
47
- task :major do
48
- Rake::Task['version:bump:major'].invoke
49
- Rake::Task['gemspec'].invoke
50
- `git commit -am 'Regenerate gemspec'`
51
- Rake::Task['git:release'].invoke
52
- end
53
- end
1
+ require "bundler/gem_tasks"
@@ -1,3 +1,5 @@
1
+ require 'unscoped_associations/version'
2
+
1
3
  module UnscopedAssociations
2
4
 
3
5
  def self.included(base)
@@ -0,0 +1,3 @@
1
+ module UnscopedAssociations
2
+ VERSION = "0.4.2"
3
+ end
@@ -1,53 +1,23 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+ require 'unscoped_associations/version'
5
3
 
6
- Gem::Specification.new do |s|
7
- s.name = "unscoped_associations"
8
- s.version = "0.4.1"
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "unscoped_associations"
6
+ spec.version = UnscopedAssociations::VERSION
7
+ spec.authors = ["Marc Anguera Insa"]
8
+ spec.email = ["srmarc.ai@gmail.com"]
9
+ spec.description = %q{Skip default_scope in your associations}
10
+ spec.summary = %q{Skip default_scope in your associations}
11
+ spec.homepage = "https://github.com/markets/unscoped_associations"
12
+ spec.license = "MIT"
9
13
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["markets"]
12
- s.date = "2013-10-02"
13
- s.description = "Skip default_scope in your associations"
14
- s.email = "srmarc.ai@gmail.com"
15
- s.extra_rdoc_files = [
16
- "README.md"
17
- ]
18
- s.files = [
19
- "Gemfile",
20
- "README.md",
21
- "Rakefile",
22
- "VERSION",
23
- "lib/unscoped_associations.rb",
24
- "unscoped_associations.gemspec"
25
- ]
26
- s.homepage = "http://github.com/markets/unscoped_associations"
27
- s.licenses = ["MIT"]
28
- s.require_paths = ["lib"]
29
- s.rubygems_version = "1.8.24"
30
- s.summary = "Skip default_scope in your associations"
14
+ spec.files = `git ls-files`.split($/)
15
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.require_paths = ["lib"]
31
18
 
32
- if s.respond_to? :specification_version then
33
- s.specification_version = 3
19
+ spec.add_dependency "activerecord", ">= 0"
34
20
 
35
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
36
- s.add_runtime_dependency(%q<activerecord>, [">= 0"])
37
- s.add_development_dependency(%q<bundler>, [">= 0"])
38
- s.add_development_dependency(%q<jeweler>, [">= 0"])
39
- s.add_development_dependency(%q<debugger>, [">= 0"])
40
- else
41
- s.add_dependency(%q<activerecord>, [">= 0"])
42
- s.add_dependency(%q<bundler>, [">= 0"])
43
- s.add_dependency(%q<jeweler>, [">= 0"])
44
- s.add_dependency(%q<debugger>, [">= 0"])
45
- end
46
- else
47
- s.add_dependency(%q<activerecord>, [">= 0"])
48
- s.add_dependency(%q<bundler>, [">= 0"])
49
- s.add_dependency(%q<jeweler>, [">= 0"])
50
- s.add_dependency(%q<debugger>, [">= 0"])
51
- end
21
+ spec.add_development_dependency "debugger"
52
22
  end
53
23
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unscoped_associations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - markets
8
+ - Marc Anguera Insa
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-02 00:00:00.000000000 Z
12
+ date: 2014-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -27,38 +27,6 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: bundler
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: jeweler
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
30
  - !ruby/object:Gem::Dependency
63
31
  name: debugger
64
32
  requirement: !ruby/object:Gem::Requirement
@@ -76,19 +44,21 @@ dependencies:
76
44
  - !ruby/object:Gem::Version
77
45
  version: '0'
78
46
  description: Skip default_scope in your associations
79
- email: srmarc.ai@gmail.com
47
+ email:
48
+ - srmarc.ai@gmail.com
80
49
  executables: []
81
50
  extensions: []
82
- extra_rdoc_files:
83
- - README.md
51
+ extra_rdoc_files: []
84
52
  files:
53
+ - .gitignore
85
54
  - Gemfile
55
+ - LICENSE
86
56
  - README.md
87
57
  - Rakefile
88
- - VERSION
89
58
  - lib/unscoped_associations.rb
59
+ - lib/unscoped_associations/version.rb
90
60
  - unscoped_associations.gemspec
91
- homepage: http://github.com/markets/unscoped_associations
61
+ homepage: https://github.com/markets/unscoped_associations
92
62
  licenses:
93
63
  - MIT
94
64
  post_install_message:
@@ -101,9 +71,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
71
  - - ! '>='
102
72
  - !ruby/object:Gem::Version
103
73
  version: '0'
104
- segments:
105
- - 0
106
- hash: 3195594206111851995
107
74
  required_rubygems_version: !ruby/object:Gem::Requirement
108
75
  none: false
109
76
  requirements:
@@ -112,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
79
  version: '0'
113
80
  requirements: []
114
81
  rubyforge_project:
115
- rubygems_version: 1.8.24
82
+ rubygems_version: 1.8.23
116
83
  signing_key:
117
84
  specification_version: 3
118
85
  summary: Skip default_scope in your associations
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.4.1