artisan-ar-repository 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,8 @@ require "active_record"
|
|
2
2
|
require "acts-as-taggable-on"
|
3
3
|
|
4
4
|
dbconfig = YAML::load(File.open(Rails.root + '/config/database.yml'))
|
5
|
-
|
5
|
+
|
6
|
+
ActiveRecord::Base.establish_connection(dbconfig[Rails.env])
|
6
7
|
|
7
8
|
require 'artisan/repository'
|
8
9
|
require 'artisan-ar-repository/story_repository'
|
@@ -15,7 +16,7 @@ require 'artisan-ar-repository/change_repository'
|
|
15
16
|
require 'artisan-ar-repository/user_repository'
|
16
17
|
|
17
18
|
module ArtisanArRepository
|
18
|
-
|
19
|
+
|
19
20
|
def self.story
|
20
21
|
@story_repo ||= StoryRepository.new
|
21
22
|
end
|
@@ -27,7 +28,7 @@ module ArtisanArRepository
|
|
27
28
|
def self.iteration
|
28
29
|
@iteration_repo ||= IterationRepository.new
|
29
30
|
end
|
30
|
-
|
31
|
+
|
31
32
|
def self.user
|
32
33
|
@user_repo ||= UserRepository.new
|
33
34
|
end
|
@@ -39,14 +40,14 @@ module ArtisanArRepository
|
|
39
40
|
def self.member
|
40
41
|
@member_repo ||= MemberRepository.new
|
41
42
|
end
|
42
|
-
|
43
|
+
|
43
44
|
def self.project_configuration
|
44
45
|
@project_config_repo ||= ProjectConfigurationRepository.new
|
45
46
|
end
|
46
|
-
|
47
|
+
|
47
48
|
def self.change
|
48
49
|
@change_repo ||= ChangeRepository.new
|
49
50
|
end
|
50
51
|
end
|
51
52
|
|
52
|
-
Artisan::Repository.register_repo(ArtisanArRepository)
|
53
|
+
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.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- 8th Light Craftsmen
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-10-
|
13
|
+
date: 2012-10-18 00:00:00 Z
|
14
14
|
dependencies: []
|
15
15
|
|
16
16
|
description: An interface to the artisan active record persistance layer
|
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
68
68
|
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
hash:
|
70
|
+
hash: 4267388053848949209
|
71
71
|
segments:
|
72
72
|
- 0
|
73
73
|
version: "0"
|