tg_config 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module TechnoGate
2
2
  class TgConfig
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
  PRE = ''
7
7
 
8
8
  def self.version
data/lib/tg_config.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require "rubygems"
2
+ require "bundler/setup"
3
+
1
4
  require "yaml"
2
5
  require "active_support/core_ext/hash/indifferent_access"
3
6
  require "tg_config/errors"
@@ -62,6 +65,7 @@ module TechnoGate
62
65
  #
63
66
  # @return [HashWithIndifferentAccess] The config
64
67
  def parse_config_file
68
+ # XXX: We should handle errors
65
69
  YAML.load_file(config_file).with_indifferent_access
66
70
  end
67
71
 
data/tg_config.gemspec CHANGED
@@ -22,8 +22,12 @@ Gem::Specification.new do |s|
22
22
  # Run-time dependencies
23
23
  ####
24
24
 
25
+ # Bundler
26
+ s.add_dependency 'bundler', '~>1.0.0'
27
+
25
28
  # Active Support
26
29
  s.add_dependency 'activesupport', '~>3.1.1'
30
+ s.add_dependency 'i18n'
27
31
 
28
32
  ####
29
33
  # Development dependencies
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tg_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,9 +11,20 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2011-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: &22579640 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *22579640
14
25
  - !ruby/object:Gem::Dependency
15
26
  name: activesupport
16
- requirement: &21161080 !ruby/object:Gem::Requirement
27
+ requirement: &22576540 !ruby/object:Gem::Requirement
17
28
  none: false
18
29
  requirements:
19
30
  - - ~>
@@ -21,10 +32,21 @@ dependencies:
21
32
  version: 3.1.1
22
33
  type: :runtime
23
34
  prerelease: false
24
- version_requirements: *21161080
35
+ version_requirements: *22576540
36
+ - !ruby/object:Gem::Dependency
37
+ name: i18n
38
+ requirement: &22592200 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *22592200
25
47
  - !ruby/object:Gem::Dependency
26
48
  name: guard
27
- requirement: &21174660 !ruby/object:Gem::Requirement
49
+ requirement: &22620700 !ruby/object:Gem::Requirement
28
50
  none: false
29
51
  requirements:
30
52
  - - ~>
@@ -32,10 +54,10 @@ dependencies:
32
54
  version: 0.8.4
33
55
  type: :development
34
56
  prerelease: false
35
- version_requirements: *21174660
57
+ version_requirements: *22620700
36
58
  - !ruby/object:Gem::Dependency
37
59
  name: guard-bundler
38
- requirement: &21172060 !ruby/object:Gem::Requirement
60
+ requirement: &22618820 !ruby/object:Gem::Requirement
39
61
  none: false
40
62
  requirements:
41
63
  - - ~>
@@ -43,10 +65,10 @@ dependencies:
43
65
  version: 0.1.3
44
66
  type: :development
45
67
  prerelease: false
46
- version_requirements: *21172060
68
+ version_requirements: *22618820
47
69
  - !ruby/object:Gem::Dependency
48
70
  name: guard-rspec
49
- requirement: &21169760 !ruby/object:Gem::Requirement
71
+ requirement: &22615960 !ruby/object:Gem::Requirement
50
72
  none: false
51
73
  requirements:
52
74
  - - ~>
@@ -54,10 +76,10 @@ dependencies:
54
76
  version: 0.4.5
55
77
  type: :development
56
78
  prerelease: false
57
- version_requirements: *21169760
79
+ version_requirements: *22615960
58
80
  - !ruby/object:Gem::Dependency
59
81
  name: yard
60
- requirement: &21197220 !ruby/object:Gem::Requirement
82
+ requirement: &22637200 !ruby/object:Gem::Requirement
61
83
  none: false
62
84
  requirements:
63
85
  - - ~>
@@ -65,10 +87,10 @@ dependencies:
65
87
  version: 0.7.2
66
88
  type: :development
67
89
  prerelease: false
68
- version_requirements: *21197220
90
+ version_requirements: *22637200
69
91
  - !ruby/object:Gem::Dependency
70
92
  name: rspec
71
- requirement: &21195700 !ruby/object:Gem::Requirement
93
+ requirement: &22634280 !ruby/object:Gem::Requirement
72
94
  none: false
73
95
  requirements:
74
96
  - - ~>
@@ -76,10 +98,10 @@ dependencies:
76
98
  version: 2.6.0
77
99
  type: :development
78
100
  prerelease: false
79
- version_requirements: *21195700
101
+ version_requirements: *22634280
80
102
  - !ruby/object:Gem::Dependency
81
103
  name: mocha
82
- requirement: &21193100 !ruby/object:Gem::Requirement
104
+ requirement: &22646980 !ruby/object:Gem::Requirement
83
105
  none: false
84
106
  requirements:
85
107
  - - ~>
@@ -87,10 +109,10 @@ dependencies:
87
109
  version: 0.10.0
88
110
  type: :development
89
111
  prerelease: false
90
- version_requirements: *21193100
112
+ version_requirements: *22646980
91
113
  - !ruby/object:Gem::Dependency
92
114
  name: pry
93
- requirement: &21217660 !ruby/object:Gem::Requirement
115
+ requirement: &22646220 !ruby/object:Gem::Requirement
94
116
  none: false
95
117
  requirements:
96
118
  - - ~>
@@ -98,7 +120,7 @@ dependencies:
98
120
  version: 0.9.6.2
99
121
  type: :development
100
122
  prerelease: false
101
- version_requirements: *21217660
123
+ version_requirements: *22646220
102
124
  description: A simple YAML configuration reader and writer
103
125
  email:
104
126
  - wael.nasreddine@gmail.com
@@ -138,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
160
  version: '0'
139
161
  segments:
140
162
  - 0
141
- hash: -2039472653472340343
163
+ hash: 4005192496713745643
142
164
  requirements: []
143
165
  rubyforge_project:
144
166
  rubygems_version: 1.8.11