logical_model 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/logical_model.rb +4 -2
- data/logical_model.gemspec +11 -11
- metadata +75 -80
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/logical_model.rb
CHANGED
@@ -209,11 +209,13 @@ class LogicalModel
|
|
209
209
|
#
|
210
210
|
# Parameters:
|
211
211
|
# - id, id of object to find
|
212
|
+
# @param [String/Integer] id
|
213
|
+
# @param [Hash] params
|
212
214
|
#
|
213
215
|
# Usage:
|
214
216
|
# Person.async_find(params[:id])
|
215
|
-
def self.async_find(id)
|
216
|
-
params = self.merge_key
|
217
|
+
def self.async_find(id, params = {})
|
218
|
+
params = self.merge_key(params)
|
217
219
|
request = Typhoeus::Request.new( resource_uri(id), :params => params )
|
218
220
|
|
219
221
|
request.on_complete do |response|
|
data/logical_model.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.2.
|
7
|
+
s.name = "logical_model"
|
8
|
+
s.version = "0.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Dwayne Macgowan"]
|
12
|
+
s.date = "2011-09-28"
|
13
|
+
s.description = "LogicalModel allows to use a resource as a model. It is based on web presentation http://www.slideshare.net/ihower/serviceoriented-design-and-implement-with-rails3"
|
14
|
+
s.email = "dwaynemac@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.rdoc"
|
@@ -29,11 +29,11 @@ Gem::Specification.new do |s|
|
|
29
29
|
"test/helper.rb",
|
30
30
|
"test/test_logical_model.rb"
|
31
31
|
]
|
32
|
-
s.homepage =
|
33
|
-
s.licenses = [
|
34
|
-
s.require_paths = [
|
35
|
-
s.rubygems_version =
|
36
|
-
s.summary =
|
32
|
+
s.homepage = "http://github.com/dwaynemac/logical_model"
|
33
|
+
s.licenses = ["MIT"]
|
34
|
+
s.require_paths = ["lib"]
|
35
|
+
s.rubygems_version = "1.8.10"
|
36
|
+
s.summary = "LogicalModel allows to use a resource as a model."
|
37
37
|
|
38
38
|
if s.respond_to? :specification_version then
|
39
39
|
s.specification_version = 3
|
metadata
CHANGED
@@ -1,115 +1,113 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: logical_model
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.1
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Dwayne Macgowan
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-09-28 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: activemodel
|
17
|
-
requirement: &
|
16
|
+
requirement: &78606350 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
26
|
-
- !ruby/object:Gem::Dependency
|
24
|
+
version_requirements: *78606350
|
25
|
+
- !ruby/object:Gem::Dependency
|
27
26
|
name: activesupport
|
28
|
-
requirement: &
|
27
|
+
requirement: &78606030 !ruby/object:Gem::Requirement
|
29
28
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version:
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
|
-
version_requirements: *
|
37
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *78606030
|
36
|
+
- !ruby/object:Gem::Dependency
|
38
37
|
name: typhoeus
|
39
|
-
requirement: &
|
38
|
+
requirement: &78605520 !ruby/object:Gem::Requirement
|
40
39
|
none: false
|
41
|
-
requirements:
|
40
|
+
requirements:
|
42
41
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
42
|
+
- !ruby/object:Gem::Version
|
44
43
|
version: 0.2.4
|
45
44
|
type: :runtime
|
46
45
|
prerelease: false
|
47
|
-
version_requirements: *
|
48
|
-
- !ruby/object:Gem::Dependency
|
46
|
+
version_requirements: *78605520
|
47
|
+
- !ruby/object:Gem::Dependency
|
49
48
|
name: kaminari
|
50
|
-
requirement: &
|
49
|
+
requirement: &78604490 !ruby/object:Gem::Requirement
|
51
50
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version:
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
56
55
|
type: :runtime
|
57
56
|
prerelease: false
|
58
|
-
version_requirements: *
|
59
|
-
- !ruby/object:Gem::Dependency
|
57
|
+
version_requirements: *78604490
|
58
|
+
- !ruby/object:Gem::Dependency
|
60
59
|
name: shoulda
|
61
|
-
requirement: &
|
60
|
+
requirement: &78600180 !ruby/object:Gem::Requirement
|
62
61
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version:
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0'
|
67
66
|
type: :development
|
68
67
|
prerelease: false
|
69
|
-
version_requirements: *
|
70
|
-
- !ruby/object:Gem::Dependency
|
68
|
+
version_requirements: *78600180
|
69
|
+
- !ruby/object:Gem::Dependency
|
71
70
|
name: bundler
|
72
|
-
requirement: &
|
71
|
+
requirement: &78584740 !ruby/object:Gem::Requirement
|
73
72
|
none: false
|
74
|
-
requirements:
|
73
|
+
requirements:
|
75
74
|
- - ~>
|
76
|
-
- !ruby/object:Gem::Version
|
75
|
+
- !ruby/object:Gem::Version
|
77
76
|
version: 1.0.0
|
78
77
|
type: :development
|
79
78
|
prerelease: false
|
80
|
-
version_requirements: *
|
81
|
-
- !ruby/object:Gem::Dependency
|
79
|
+
version_requirements: *78584740
|
80
|
+
- !ruby/object:Gem::Dependency
|
82
81
|
name: jeweler
|
83
|
-
requirement: &
|
82
|
+
requirement: &78584370 !ruby/object:Gem::Requirement
|
84
83
|
none: false
|
85
|
-
requirements:
|
84
|
+
requirements:
|
86
85
|
- - ~>
|
87
|
-
- !ruby/object:Gem::Version
|
86
|
+
- !ruby/object:Gem::Version
|
88
87
|
version: 1.6.4
|
89
88
|
type: :development
|
90
89
|
prerelease: false
|
91
|
-
version_requirements: *
|
92
|
-
- !ruby/object:Gem::Dependency
|
90
|
+
version_requirements: *78584370
|
91
|
+
- !ruby/object:Gem::Dependency
|
93
92
|
name: rcov
|
94
|
-
requirement: &
|
93
|
+
requirement: &78583820 !ruby/object:Gem::Requirement
|
95
94
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version:
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
100
99
|
type: :development
|
101
100
|
prerelease: false
|
102
|
-
version_requirements: *
|
103
|
-
description: LogicalModel allows to use a resource as a model. It is based on web
|
101
|
+
version_requirements: *78583820
|
102
|
+
description: LogicalModel allows to use a resource as a model. It is based on web
|
103
|
+
presentation http://www.slideshare.net/ihower/serviceoriented-design-and-implement-with-rails3
|
104
104
|
email: dwaynemac@gmail.com
|
105
105
|
executables: []
|
106
|
-
|
107
106
|
extensions: []
|
108
|
-
|
109
|
-
extra_rdoc_files:
|
107
|
+
extra_rdoc_files:
|
110
108
|
- LICENSE.txt
|
111
109
|
- README.rdoc
|
112
|
-
files:
|
110
|
+
files:
|
113
111
|
- .document
|
114
112
|
- Gemfile
|
115
113
|
- Gemfile.lock
|
@@ -122,34 +120,31 @@ files:
|
|
122
120
|
- test/helper.rb
|
123
121
|
- test/test_logical_model.rb
|
124
122
|
homepage: http://github.com/dwaynemac/logical_model
|
125
|
-
licenses:
|
123
|
+
licenses:
|
126
124
|
- MIT
|
127
125
|
post_install_message:
|
128
126
|
rdoc_options: []
|
129
|
-
|
130
|
-
require_paths:
|
127
|
+
require_paths:
|
131
128
|
- lib
|
132
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
130
|
none: false
|
134
|
-
requirements:
|
135
|
-
- -
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
|
138
|
-
segments:
|
131
|
+
requirements:
|
132
|
+
- - ! '>='
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
version: '0'
|
135
|
+
segments:
|
139
136
|
- 0
|
140
|
-
|
141
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
|
+
hash: 60320061
|
138
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
139
|
none: false
|
143
|
-
requirements:
|
144
|
-
- -
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version:
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
147
144
|
requirements: []
|
148
|
-
|
149
145
|
rubyforge_project:
|
150
|
-
rubygems_version: 1.8.
|
146
|
+
rubygems_version: 1.8.10
|
151
147
|
signing_key:
|
152
148
|
specification_version: 3
|
153
149
|
summary: LogicalModel allows to use a resource as a model.
|
154
150
|
test_files: []
|
155
|
-
|