glean 0.0.6 → 0.0.7

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.
@@ -1,9 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- glean (0.0.3)
4
+ glean (0.0.6)
5
5
  git (= 1.2.5)
6
6
  gli (= 2.5.4)
7
+ toml (= 0.0.3)
7
8
 
8
9
  GEM
9
10
  remote: http://rubygems.org/
@@ -12,6 +13,7 @@ GEM
12
13
  childprocess (~> 0.3.6)
13
14
  cucumber (>= 1.1.1)
14
15
  rspec-expectations (>= 2.7.0)
16
+ blankslate (2.1.2.4)
15
17
  builder (3.1.4)
16
18
  childprocess (0.3.8)
17
19
  ffi (~> 1.0, >= 1.0.11)
@@ -27,11 +29,15 @@ GEM
27
29
  git (1.2.5)
28
30
  gli (2.5.4)
29
31
  json (1.7.7)
32
+ parslet (1.5.0)
33
+ blankslate (~> 2.0)
30
34
  rake (10.0.3)
31
35
  rdoc (3.12.1)
32
36
  json (~> 1.4)
33
37
  rspec-expectations (2.12.1)
34
38
  diff-lcs (~> 1.1.3)
39
+ toml (0.0.3)
40
+ parslet
35
41
 
36
42
  PLATFORMS
37
43
  ruby
@@ -20,4 +20,5 @@ spec = Gem::Specification.new do |s|
20
20
  s.add_development_dependency('aruba')
21
21
  s.add_runtime_dependency('gli','2.5.4')
22
22
  s.add_runtime_dependency('git','1.2.5')
23
+ s.add_runtime_dependency('toml', '0.0.3')
23
24
  end
@@ -27,23 +27,9 @@ module Glean
27
27
  end
28
28
 
29
29
  def each
30
- Dir.glob(File.join(path, "*")) do |d|
31
- yield directory_hash(d)
30
+ Dir.glob(File.join(path, "**/*.toml")) do |f|
31
+ yield TOML.load_file(f)
32
32
  end
33
33
  end
34
-
35
- def directory_hash(path)
36
- data = {}
37
- Dir.foreach(path) do |entry|
38
- next if (entry == '..' || entry == '.')
39
- full_path = File.join(path, entry)
40
- if File.directory?(full_path)
41
- data[entry.to_sym] = directory_hash(full_path)
42
- else
43
- data[entry.to_sym] = File.read(full_path).chomp
44
- end
45
- end
46
- return data
47
- end
48
34
  end
49
35
  end
@@ -1,3 +1,3 @@
1
1
  module Glean
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-20 00:00:00.000000000 Z
12
+ date: 2013-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -91,6 +91,22 @@ dependencies:
91
91
  - - '='
92
92
  - !ruby/object:Gem::Version
93
93
  version: 1.2.5
94
+ - !ruby/object:Gem::Dependency
95
+ name: toml
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - '='
100
+ - !ruby/object:Gem::Version
101
+ version: 0.0.3
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - '='
108
+ - !ruby/object:Gem::Version
109
+ version: 0.0.3
94
110
  description:
95
111
  email: public@johndbritton.com
96
112
  executables: