restpack_service 0.0.38 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/restpack_service/loader.rb +31 -0
- data/lib/restpack_service/version.rb +1 -1
- data/lib/restpack_service.rb +1 -0
- data/restpack_service.gemspec +9 -4
- metadata +74 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e8bf3dc72bcd9896881927f110bf3a58ddc07fb
|
4
|
+
data.tar.gz: 6e612fed348575264e174f9688dabc68aa463262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d991fa226451a79832a4cc74c4144df6f09f79fed7b62cc67aec4c45b87c5e2860df94d07942e3cd15a02e56db10e0cffa5eae9f688b42ada1f03e1a30a74934
|
7
|
+
data.tar.gz: 6b7481c144bb052f9e9d2d2fefc594902b9313ea85ab336fe8766d5af2240415c87e917a94709f9c50112f20882315cad1af41d7ebab1b78b0780f2f9909ec20
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# restpack_service [![Build Status](https://api.travis-ci.org/RestPack/restpack_service.png?branch=master)](https://travis-ci.org/RestPack/restpack_service) [![Code Climate](https://codeclimate.com/github/RestPack/restpack_service.png)](https://codeclimate.com/github/RestPack/restpack_service) [![Dependency Status](https://gemnasium.com/RestPack/restpack_service.png)](https://gemnasium.com/RestPack/restpack_service)
|
1
|
+
# restpack_service [![Build Status](https://api.travis-ci.org/RestPack/restpack_service.png?branch=master)](https://travis-ci.org/RestPack/restpack_service) [![Code Climate](https://codeclimate.com/github/RestPack/restpack_service.png)](https://codeclimate.com/github/RestPack/restpack_service) [![Dependency Status](https://gemnasium.com/RestPack/restpack_service.png)](https://gemnasium.com/RestPack/restpack_service) [![Gem Version](https://badge.fury.io/rb/restpack_service.png)](http://badge.fury.io/rb/restpack_service)
|
2
2
|
|
3
3
|
Base functionality for RestPack services
|
4
4
|
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module RestPack::Service
|
2
|
+
class Loader
|
3
|
+
def self.load(name, dir)
|
4
|
+
require 'require_all'
|
5
|
+
|
6
|
+
require 'restpack_serializer'
|
7
|
+
require 'active_support/core_ext'
|
8
|
+
|
9
|
+
restpack_service_name = "restpack_#{name}_service"
|
10
|
+
restpack_namespace = "RestPack::#{name.capitalize}"
|
11
|
+
service_path = "#{dir}/lib/#{restpack_service_name}"
|
12
|
+
|
13
|
+
require "#{service_path}/version"
|
14
|
+
require "#{service_path}/configuration"
|
15
|
+
require_all "#{service_path}/tasks"
|
16
|
+
|
17
|
+
require_service_module 'models', service_path, restpack_namespace
|
18
|
+
require_service_module 'serializers', service_path, restpack_namespace
|
19
|
+
require_service_module 'commands', service_path, restpack_namespace
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.require_service_module(module_name, service_path, restpack_namespace)
|
23
|
+
require_all "#{service_path}/#{module_name.downcase}"
|
24
|
+
proxy_module = Module.new
|
25
|
+
proxy_module.module_eval do
|
26
|
+
include Object.const_get("#{restpack_namespace}::Service::#{module_name.capitalize}")
|
27
|
+
end
|
28
|
+
Object.const_set module_name.capitalize, proxy_module
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/restpack_service.rb
CHANGED
data/restpack_service.gemspec
CHANGED
@@ -18,12 +18,17 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "mutations",
|
22
|
-
spec.add_dependency "yajl-ruby",
|
23
|
-
spec.add_dependency "restpack_gem",
|
21
|
+
spec.add_dependency "mutations", "~> 0.6.0"
|
22
|
+
spec.add_dependency "yajl-ruby", "~> 1.1.0"
|
23
|
+
spec.add_dependency "restpack_gem", "~> 0.0.8"
|
24
24
|
spec.add_dependency "protected_attributes", "~> 1.0.3"
|
25
|
+
spec.add_dependency "require_all", "~> 1.3.0"
|
26
|
+
spec.add_dependency "restpack_serializer"
|
27
|
+
spec.add_dependency "restpack_gem"
|
28
|
+
spec.add_dependency "sinatra", "~> 1.4.3"
|
29
|
+
spec.add_dependency "pg", "~> 0.16.0"
|
25
30
|
|
26
|
-
spec.add_development_dependency "bundler",
|
31
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
27
32
|
spec.add_development_dependency "rake"
|
28
33
|
spec.add_development_dependency "rspec"
|
29
34
|
spec.add_development_dependency "bump"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restpack_service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Joyce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mutations
|
@@ -66,6 +66,76 @@ dependencies:
|
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.0.3
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: require_all
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.3.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 1.3.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: restpack_serializer
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: restpack_gem
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sinatra
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.4.3
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.4.3
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pg
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.16.0
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.16.0
|
69
139
|
- !ruby/object:Gem::Dependency
|
70
140
|
name: bundler
|
71
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -139,6 +209,7 @@ files:
|
|
139
209
|
- lib/restpack_service.rb
|
140
210
|
- lib/restpack_service/command.rb
|
141
211
|
- lib/restpack_service/configuration.rb
|
212
|
+
- lib/restpack_service/loader.rb
|
142
213
|
- lib/restpack_service/response.rb
|
143
214
|
- lib/restpack_service/support/matchers.rb
|
144
215
|
- lib/restpack_service/support/spec_helper.rb
|
@@ -168,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
239
|
version: '0'
|
169
240
|
requirements: []
|
170
241
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.0.
|
242
|
+
rubygems_version: 2.0.5
|
172
243
|
signing_key:
|
173
244
|
specification_version: 4
|
174
245
|
summary: A base for RestPack services
|