artisan-ar-repository 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/artisan_ar_repository.rb +52 -0
- metadata +3 -2
@@ -0,0 +1,52 @@
|
|
1
|
+
require "active_record"
|
2
|
+
require "acts-as-taggable-on"
|
3
|
+
|
4
|
+
dbconfig = YAML::load(File.open('config/database.yml'))
|
5
|
+
ActiveRecord::Base.establish_connection(dbconfig)
|
6
|
+
|
7
|
+
require 'artisan/repository'
|
8
|
+
require 'artisan-ar-repository/story_repository'
|
9
|
+
require 'artisan-ar-repository/project_repository'
|
10
|
+
require 'artisan-ar-repository/iteration_repository'
|
11
|
+
require 'artisan-ar-repository/future_user_repository'
|
12
|
+
require 'artisan-ar-repository/member_repository'
|
13
|
+
require 'artisan-ar-repository/project_configuration_repository'
|
14
|
+
require 'artisan-ar-repository/change_repository'
|
15
|
+
require 'artisan-ar-repository/user_repository'
|
16
|
+
|
17
|
+
module ArtisanArRepository
|
18
|
+
|
19
|
+
def self.story
|
20
|
+
@story_repo ||= StoryRepository.new
|
21
|
+
end
|
22
|
+
|
23
|
+
def self.project
|
24
|
+
@project_repo ||= ProjectRepository.new
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.iteration
|
28
|
+
@iteration_repo ||= IterationRepository.new
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.user
|
32
|
+
@user_repo ||= UserRepository.new
|
33
|
+
end
|
34
|
+
|
35
|
+
def self.future_user
|
36
|
+
@future_user_repo ||= FutureUserRepository.new
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.member
|
40
|
+
@member_repo ||= MemberRepository.new
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.project_configuration
|
44
|
+
@project_config_repo ||= ProjectConfigurationRepository.new
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.change
|
48
|
+
@change_repo ||= ChangeRepository.new
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
Artisan::Repository.register_repo(ArtisanArRepository)
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: artisan-ar-repository
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- 8th Light Craftsmen
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- lib/artisan-ar-repository/project_repository.rb
|
46
46
|
- lib/artisan-ar-repository/story_repository.rb
|
47
47
|
- lib/artisan-ar-repository/user_repository.rb
|
48
|
+
- lib/artisan_ar_repository.rb
|
48
49
|
- spec/artisan_ar_repository_spec.rb
|
49
50
|
- spec/change_repository_spec.rb
|
50
51
|
- spec/future_user_repository_spec.rb
|
@@ -66,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
67
|
requirements:
|
67
68
|
- - ">="
|
68
69
|
- !ruby/object:Gem::Version
|
69
|
-
hash: -
|
70
|
+
hash: -1762344199915488473
|
70
71
|
segments:
|
71
72
|
- 0
|
72
73
|
version: "0"
|