sentient_model 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/LICENCE +20 -0
  2. data/README.md +8 -1
  3. data/sentient_model.gemspec +2 -2
  4. metadata +5 -5
  5. data/Gemfile.lock +0 -28
data/LICENCE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011 Christoph Schiessl (http://github.com/cs)
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
@@ -6,6 +6,8 @@ Imagine you are writing an authentication system for [Ruby on Rails](http://ruby
6
6
 
7
7
  However, if you need `current_user` in locations where you can't easily expose the method, sentient_model is the perfect solution. Instead of manually exposing `current_user`, you would just rely on `User.current`. sentient_model's methods are globally accessible - therefore you don't have to worry about anything - it just works.
8
8
 
9
+ This Gem has been inspired by David Bock's [sentient_user](https://github.com/bokmann/sentient_user).
10
+
9
11
  ## Usage
10
12
 
11
13
  Define your models as usual and include the module `SentientModel`:
@@ -32,4 +34,9 @@ By including `SentientModel`, the following methods are added to your model:
32
34
  ## How to contribute?
33
35
 
34
36
  1. Fork on [GitHub](http://github.com/cs/sentient_model).
35
- 2. Send Pull Request.
37
+ 2. Make sure, that all specs are still passing (run `rake spec`).
38
+ 3. Send Pull Request.
39
+
40
+ ## Copyright
41
+
42
+ Copyright ©2011 [Christoph Schiessl](http://github.com/cs). See LICENSE for details.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'sentient_model'
3
- s.version = '1.0.3'
3
+ s.version = '1.0.4'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.summary = 'Simple piece of code trying to solve a common problem.'
6
6
  s.description = 'Replace methods like `current_account` in your controllers with globally accessible methods such as `Account.current`.'
@@ -16,9 +16,9 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.files = [
18
18
  "README.md",
19
+ "LICENCE",
19
20
  "Rakefile",
20
21
  "Gemfile",
21
- "Gemfile.lock",
22
22
  "lib/sentient_model.rb",
23
23
  "sentient_model.gemspec",
24
24
  "spec/spec_helper.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentient_model
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Christoph Schiessl
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-02 00:00:00 Z
18
+ date: 2011-06-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -73,9 +73,9 @@ extra_rdoc_files: []
73
73
 
74
74
  files:
75
75
  - README.md
76
+ - LICENCE
76
77
  - Rakefile
77
78
  - Gemfile
78
- - Gemfile.lock
79
79
  - lib/sentient_model.rb
80
80
  - sentient_model.gemspec
81
81
  - spec/spec_helper.rb
data/Gemfile.lock DELETED
@@ -1,28 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- sentient_model (1.0.2)
5
- bundler (>= 1.0)
6
-
7
- GEM
8
- remote: http://rubygems.org/
9
- specs:
10
- diff-lcs (1.1.2)
11
- rake (0.9.1)
12
- rspec (2.6.0)
13
- rspec-core (~> 2.6.0)
14
- rspec-expectations (~> 2.6.0)
15
- rspec-mocks (~> 2.6.0)
16
- rspec-core (2.6.3)
17
- rspec-expectations (2.6.0)
18
- diff-lcs (~> 1.1.2)
19
- rspec-mocks (2.6.0)
20
-
21
- PLATFORMS
22
- java
23
- ruby
24
-
25
- DEPENDENCIES
26
- rake (>= 0.9)
27
- rspec (>= 2.6.0)
28
- sentient_model!