sentient_model 1.0.2 → 1.0.3
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.
- data/Gemfile +0 -4
- data/Gemfile.lock +2 -1
- data/sentient_model.gemspec +3 -7
- data/spec/sentient_model_spec.rb +1 -1
- metadata +23 -7
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -8,7 +8,7 @@ GEM
|
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
10
|
diff-lcs (1.1.2)
|
11
|
-
rake (0.9.
|
11
|
+
rake (0.9.1)
|
12
12
|
rspec (2.6.0)
|
13
13
|
rspec-core (~> 2.6.0)
|
14
14
|
rspec-expectations (~> 2.6.0)
|
@@ -19,6 +19,7 @@ GEM
|
|
19
19
|
rspec-mocks (2.6.0)
|
20
20
|
|
21
21
|
PLATFORMS
|
22
|
+
java
|
22
23
|
ruby
|
23
24
|
|
24
25
|
DEPENDENCIES
|
data/sentient_model.gemspec
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'sentient_model'
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.3'
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.summary = 'Simple piece of code trying to solve a common problem.'
|
6
|
-
s.description = 'Replace methods like `current_account` in your controllers with globally accessible methods
|
6
|
+
s.description = 'Replace methods like `current_account` in your controllers with globally accessible methods such as `Account.current`.'
|
7
7
|
|
8
8
|
s.required_ruby_version = '>= 1.8.7'
|
9
9
|
s.required_rubygems_version = ">= 1.3.6"
|
@@ -12,12 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.email = 'chs@proactive.cc'
|
13
13
|
s.homepage = "http://github.com/cs/sentientmodel"
|
14
14
|
|
15
|
-
s.homepage = %q{http://github.com/bokmann/sentient_user}
|
16
15
|
s.require_paths = ["lib"]
|
17
|
-
s.rubygems_version = %q{1.3.7}
|
18
|
-
s.summary = %q{A trivial bit of common code}
|
19
|
-
|
20
|
-
s.require_path = "lib"
|
21
16
|
|
22
17
|
s.files = [
|
23
18
|
"README.md",
|
@@ -37,4 +32,5 @@ Gem::Specification.new do |s|
|
|
37
32
|
|
38
33
|
s.add_dependency('bundler', '>= 1.0')
|
39
34
|
s.add_development_dependency('rake', '>= 0.9')
|
35
|
+
s.add_development_dependency('rspec', '>= 2.6.0')
|
40
36
|
end
|
data/spec/sentient_model_spec.rb
CHANGED
@@ -14,7 +14,7 @@ describe SentientModel do
|
|
14
14
|
@bar = TestClass.new
|
15
15
|
end
|
16
16
|
|
17
|
-
context "by default there
|
17
|
+
context "by default there shouldn't be a sentient model" do
|
18
18
|
it { TestClass.current.should be_nil }
|
19
19
|
it { TestClass.has_current?.should be_false }
|
20
20
|
it { @foo.current?.should be_false }
|
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 3
|
10
|
+
version: 1.0.3
|
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-
|
18
|
+
date: 2011-06-02 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bundler
|
@@ -47,7 +47,23 @@ dependencies:
|
|
47
47
|
version: "0.9"
|
48
48
|
type: :development
|
49
49
|
version_requirements: *id002
|
50
|
-
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: rspec
|
52
|
+
prerelease: false
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 23
|
59
|
+
segments:
|
60
|
+
- 2
|
61
|
+
- 6
|
62
|
+
- 0
|
63
|
+
version: 2.6.0
|
64
|
+
type: :development
|
65
|
+
version_requirements: *id003
|
66
|
+
description: Replace methods like `current_account` in your controllers with globally accessible methods such as `Account.current`.
|
51
67
|
email: chs@proactive.cc
|
52
68
|
executables: []
|
53
69
|
|
@@ -64,7 +80,7 @@ files:
|
|
64
80
|
- sentient_model.gemspec
|
65
81
|
- spec/spec_helper.rb
|
66
82
|
- spec/sentient_model_spec.rb
|
67
|
-
homepage: http://github.com/
|
83
|
+
homepage: http://github.com/cs/sentientmodel
|
68
84
|
licenses: []
|
69
85
|
|
70
86
|
post_install_message:
|
@@ -100,7 +116,7 @@ rubyforge_project:
|
|
100
116
|
rubygems_version: 1.8.4
|
101
117
|
signing_key:
|
102
118
|
specification_version: 3
|
103
|
-
summary:
|
119
|
+
summary: Simple piece of code trying to solve a common problem.
|
104
120
|
test_files:
|
105
121
|
- spec/spec_helper.rb
|
106
122
|
- spec/sentient_model_spec.rb
|