routengn 0.3.1 → 0.4.0
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/lib/routengn/mapper.rb +6 -1
- data/routengn.gemspec +3 -2
- metadata +3 -3
data/lib/routengn/mapper.rb
CHANGED
@@ -96,7 +96,7 @@ module RouteNGN
|
|
96
96
|
|
97
97
|
def belongs_to(klass, opts = {}) # This isn't really a klass (in the traditional sense) but a symbol rather... so we need to_s
|
98
98
|
attr = opts[:column] ? opts[:column] : :"#{klass}_id"
|
99
|
-
field attr
|
99
|
+
field attr
|
100
100
|
define_method(klass) { klass.to_s.camelize.constantize.first :id => send(attr) }
|
101
101
|
end
|
102
102
|
|
@@ -115,6 +115,11 @@ module RouteNGN
|
|
115
115
|
response.success?
|
116
116
|
end
|
117
117
|
|
118
|
+
def delete_all(opts = {})
|
119
|
+
response = RouteNGN.delete base_url, opts
|
120
|
+
response.success?
|
121
|
+
end
|
122
|
+
|
118
123
|
def find(*args)
|
119
124
|
case args.first
|
120
125
|
when :all
|
data/routengn.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{routengn}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Keith Larrimore", "Quin Hoxie"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-06-04}
|
13
13
|
s.default_executable = %q{ngncmd}
|
14
14
|
s.description = %q{RouteNGN is an Advanced SIP Redirect Routing Platform.}
|
15
15
|
s.email = %q{keithlarrimore+github@gmail.com}
|
@@ -41,6 +41,7 @@ Gem::Specification.new do |s|
|
|
41
41
|
"routengn.gemspec",
|
42
42
|
"script/console"
|
43
43
|
]
|
44
|
+
s.has_rdoc = false
|
44
45
|
s.homepage = %q{http://github.com/klarrimore/routengn}
|
45
46
|
s.rdoc_options = ["--inline-source", "--charset=UTF-8"]
|
46
47
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: routengn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Larrimore
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2010-
|
13
|
+
date: 2010-06-04 00:00:00 -04:00
|
14
14
|
default_executable: ngncmd
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -94,7 +94,7 @@ files:
|
|
94
94
|
- lib/routengn/uploader.rb
|
95
95
|
- routengn.gemspec
|
96
96
|
- script/console
|
97
|
-
has_rdoc:
|
97
|
+
has_rdoc: false
|
98
98
|
homepage: http://github.com/klarrimore/routengn
|
99
99
|
licenses: []
|
100
100
|
|